Commit Graph

518 Commits

Author SHA1 Message Date
Ralph Giles
7c78ab63ec Only call cpack on linux travis builds.
The DEB package generator isn't available in the cmake version
provided by travis-ci.org, so only skip invoking it there.

Unbreaks cmake build tests after adding macOS coverage.
2019-08-07 15:58:05 -07:00
Stephen G
be336819ac Improve travis coverage
Test on Linux and macOS with both gcc and clang.

Ubuntu 14.04 (trusty) is now the default travis environment.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2019-08-07 15:58:05 -07:00
Marcel Metz
7d034c60d2 Add cmake as build system to AppVeyor configuration
* Use build_script step in AppVeyor configuration.  This is a
  preparation for building with multiple build systems.
* Add BUILD_SYSTEM env variable to AppVeyor build matrix.  This
  allows to switch between different build systems when building
  multiple test matrix configurations.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2019-08-07 15:58:05 -07:00
Ralph Giles
934385378f
Fix documentation typo.
Update cut-and-paste description of the reset functions to reference
resetting instead of clearing.
2019-07-31 09:07:06 -07:00
willson-chen
1b22b8958c Fix memory leak in test_framing
We call ogg_stream_init() in main() of framing.c, but no
ogg_stream_clear() in corresponding. It will cause memory leak.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2019-07-31 09:04:06 -07:00
Ralph Giles
d7ac86c97a
Merge remote-tracking branch 'github/master'
The git.xiph.org and github branches had diverged.
2019-07-31 09:01:33 -07:00
willson-chen
1ab2706e52 Update the comment in config_types.h.in (#53)
@var@ is replaced by configure when autoconf or cmake when use cmake
2019-07-23 16:28:06 +10:00
Erik de Castro Lopo
67acb227d6
CMakeLists.txt: Add detection of uint64_t (#52) 2019-07-22 19:28:38 +10:00
Erik de Castro Lopo
df53eebf72 CMakeLists.txt: Add detection of uint64_t 2019-07-22 18:48:16 +10:00
evpobr
688208e696 cmake: Remove unnessessary variables from configure_file() command (#39)
Just cleanup.

Output path is relative to build directory anyway according
to documentation.

Related to #9.
2019-07-20 18:31:41 +10:00
Vitaly Kirsanov
fb05258b8b CMake: checking type sizes (#48) 2019-07-20 18:27:11 +10:00
evpobr
ec2d16de7c Fixes for CMake config-file package generation (#51) 2019-06-02 09:38:14 +10:00
evpobr
6ccfcc2dce Add CMake config-file package generation 2019-04-23 12:05:50 +10:00
Quipyowert2
f7dadaaf75
Use %lu instead of %ld to fprintf unsigned longs.
Fixes a cppcheck warning. Possibly we should just convert
the array type to `long` since that's what oggpack_look()
returns, using negative values to report error.

However, none of the compared values are out of range
for either type so it doesn't really matter.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Signed-off-by: Ralph Giles <giles@thaumas.net>
2019-03-18 17:58:58 -07:00
Eugene Opalev
6f5e79a95a
Get rid of annoying C4456 warning
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Signed-off-by: Ralph Giles <giles@thaumas.net>
2019-03-18 17:48:53 -07:00
Tristan Matthews
a394849e79 os_types: add ogg_uint64_t for all platforms 2019-03-06 16:58:34 -05:00
Tristan Matthews
ed238f7a53 configure: drop extra parentheses from --disable-crc help
Reported by Mark Harris
2019-03-06 16:18:15 -05:00
Tristan Matthews
f61c6e5625 framing: cast to unsigned when shifting to fix ubsan errors
Suggested-By Mark Harris

Fixes #2297
2019-03-06 16:15:06 -05:00
Tristan Matthews
d9089e3710 configure: add USIZE64 template 2019-03-06 15:39:40 -05:00
Ralph Giles
0acd32d7ca
Remove trailing whitespace from the api documentation. 2018-10-09 13:41:36 -07:00
luz.paz
529ec790cf
Misc. typos
Found via `codespell -q  3`

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-10-09 13:37:51 -07:00
Robert Kausch
bc82844df0 Switch to slicing-by-8 CRC32 algorithm. 2018-04-30 14:49:28 +02:00
Marcel Metz
c8391c2b26 Include CMake build scripts in release archives
Fixes xiph/ogg#35
2018-03-20 18:02:37 -07:00
evpobr
572618e3f5 autotools: use LT_INIT instead of obsolete AM_PROG_LIBTOOL
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
2018-02-12 11:56:28 -05:00
Bradley Clemetson
26213e6456 Apply the directories to include with the target, not globally. 2018-02-12 11:23:49 -05:00
Jean-Marc Valin
686cb2b4ad Fixes ogg-uninstalled.pc.in
Sets the correct include path when the build directory isn't the
the top source directory. Also, uses the .la file for linking,
which makes it possible to use shared libraries (and properly
build when libogg is used from a library).

Signed-off-by: Ralph Giles <giles@thaumas.net>
2017-12-22 10:58:04 -08:00
Ralph Giles
f56d8af4d0 Remove obsolete $Id$ svn substitution marks.
Subversion, like cvs, had a mechanism for replacing inline template
text on checkout for representing things like 'last modified date'.

Git does not support this, so remove the template strings from
file header comments.

Also less aggressive language is os_types.h.
2017-11-08 08:45:28 -08:00
Tristan Matthews
862163e51f configure: add --disable-crc option
Useful for fuzzing
2017-11-07 18:53:17 -05:00
Ralph Giles
c1daa80c20 Add a release checklist. 2017-11-07 13:34:43 -08:00
Ralph Giles
e006f67f3e Update version and release date on the documentation.
Bump the API documentation page footer for the latest release.

I missed this before making the 1.3.3 release, changing it
now and including this version on the website is less confusing,
I think.
2017-11-07 13:28:39 -08:00
Ralph Giles
e8e67823fb Add release checksums for libogg-1.3.3 source packages.
These should match http://downloads.xiph.org/releases/ogg/SHA256SUMS
2017-11-07 13:04:59 -08:00
Ralph Giles
4380566a44 Update version and changelog for 1.3.3 release. 2017-11-07 12:38:19 -08:00
Michael Fink
facdf03524
added missing exported functions ogg_stream_pageout_fill and ogg_stream_flush_fill to compile and use libogg under Visual Studio
Signed-off-by: Ralph Giles <giles@thaumas.net>
2017-11-01 10:48:13 -07:00
James Ross-Gowan
ea2b959407
Fix struct comparison in tests for Win64
On 64-bit Windows, sizeof(unsigned char *) is 8, sizeof(long) is 4 and
alignof(ogg_int64_t) is 8. This results in a 4-byte hole in ogg_packet
after "long e_o_s", which means ogg_packet structs cannot be reliably
compared by memcmp. Compare ogg_packet structs member-by-member instead.

This fixes `make check` for me on mingw-w64/GCC.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2017-11-01 10:42:08 -07:00
Ralph Giles
dd85929dbe travis: Update to the Ubuntu trusty base image.
Move off the end-of-life precise base image.
2017-06-16 21:17:55 -07:00
Ralph Giles
892c43aa36 travis: Add cmake integration test.
Copied from the vorbis implementation by Marcel Metz.
2017-06-16 21:17:02 -07:00
Ralph Giles
f253dd721e cmake: fix install target.
The previous commit changed the generated source file location
without updating the installed-file list or include directories,
breaking installation and downstream integration tests.

Adding the include directory doesn't seem to be necessary on macOS,
but even the initial build step fails on Linux without it.
2017-06-16 21:15:16 -07:00
Timothy B. Terriberry
14920bae03 Make false continued packet handling consistent
A false continued packet occurs if the previous page ended at the
 end of a packet, with no sequence number gap and no continued data
 on that page, while the current page has the continued packet flag
 set.
Previously, if you drained all of the buffered packet data by
 repeatedly calling ogg_stream_packetout() after submitting the
 previous page but before submitting the current page, libogg would
 discard the continued data at the beggining of the current page.
However, if you left the previous page's data in the buffer, then
 libogg would happily return the continued data at the start of the
 current page as a separate packet when you eventually did call
 ogg_stream_packetout().

This patch makes libogg consistently discard this data.
2017-06-16 15:01:08 -07:00
Tomas Maly
a2df21b398
cmake: fix out-of-source build
Generate config_types in the build directory instead of
the source directory.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2017-06-12 10:18:10 -07:00
Ralph Giles
cab46b1984 Use the AppVeyor status for the xiph repo on github. 2016-09-28 08:39:22 -07:00
Chocobo1
ea177df581 Add AppVeyor badge
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-09-28 08:36:18 -07:00
Chocobo1
9da4321c79 Use svg format for TravisCI badge
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-09-28 08:36:14 -07:00
Ricardo Constantino (:RiCON)
d2ec639c54 Add appveyor.yml to test VS2015 builds.
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-07-27 11:17:45 -07:00
Ricardo Constantino (:RiCON)
968e72940b win32/.gitignore: Ignore temporary .vc.opendb files.
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-07-27 11:17:38 -07:00
Ralph Giles
18c401c6bc Remove old Visual Studio project files.
Visual Studio 2015 has been out for some time and has a free
version. It doesn't make since to try to maintain all these
old variants.
2016-05-18 11:52:55 -07:00
Orestes Zoupanos
178dd7a0d0 Add VS Git Ignores 2016-05-18 11:49:06 -07:00
Orestes Zoupanos
271e3ea407 Add VS2015 files 2016-05-18 11:49:06 -07:00
Marcel Metz
e44f1f9a4c CMake: Set install MacOSX Framework location to CMAKE_INSTALL_PREFIX
Users should be able to install the MacOSX Framework by pointing
CMAKE_INSTALL_PREFIX to the corresponding directory. For example to
install into `/Library/Frameworks` configure with

cmake -DCMAKE_INSTALL_PREFIX=/Library/Frameworks <build dir>
2016-04-01 10:46:38 +02:00
Marcel Metz
b85b8596c8 CMake: Install headers with PUBLIC_HEADER property on all platforms
This prevents the duplicate installation of header inside the framework
and in the regular include directory on MacOSX.
2016-04-01 10:43:46 +02:00
Ralph Giles
23264ee60b Fix a documentation typo. 2015-11-09 11:02:53 -08:00