Commit Graph

62 Commits

Author SHA1 Message Date
Erik de Castro Lopo
f25b2602dc Fix a couple of Windows 2Gig file size issues.
Patch submitted by Janne Hyvärinen <cse@sci.fi>.
2013-03-14 18:22:37 +11:00
Erik de Castro Lopo
168c258aa3 Purge old un-maintained MSVC 6 project files. 2013-03-10 11:17:20 +11:00
Erik de Castro Lopo
91790ef965 Fix compiler warnings from new compiler flags. 2013-03-06 07:42:08 +11:00
Erik de Castro Lopo
f67928dec4 Fix VC project files to use /objs/ directory instead of /obj/ directory. 2013-01-02 22:49:55 +11:00
Erik de Castro Lopo
85d5c53803 Fix all Makefile.lite to use /objs/ directory instead of /obj/ directory. 2013-01-02 22:49:37 +11:00
Hendricks266
96d081c1c9 Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:

make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples

This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0

These improvements make use of some use-time Makefile variable expansion.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-02 21:35:47 +11:00
Miroslav Lichvar
6a1f59b58f Update FSF address. 2012-12-06 06:17:26 +11:00
Erik de Castro Lopo
86efeb5903 Replace printfs with "%s" format strings with puts.
Thanks to Elan Ruusamäe for the suggestion.
2012-11-13 17:26:08 +11:00
Cristian Rodríguez
9b7cb22f84 Update and improve autotools build
- INCLUDES is deprecated, and CPPFLAGS is an user-defined
  variable, use the proper AM_CPPFLAGS instead

- Remove FLAC__INLINE definition, providing proper
  replacement for MSVC compilers.

- Detect if we have C99 's lround and provide a replacement
  for windows...
2012-04-08 09:03:03 +10:00
Erik de Castro Lopo
6c2040dc90 Remove casting of return value from *alloc() functions. 2012-04-04 21:29:25 +10:00
Erik de Castro Lopo
a4ffcc0239 Fix -Werror=format-security errors.
Fixes "format not a string literal and no format arguments
 [-Werror=format-security]" errors.

Patch from Fabian Greffrath <fabian+debian@greffrath.com> via Debian.
Closes Debian bug #643377.
2012-02-13 19:58:08 +11:00
Erik de Castro Lopo
698ee5c7ed Purge MINGW_WINSOCK_LIBS config variable.
This was only needed for ntohl() function which has already been removed.
2012-02-05 16:25:22 +11:00
Erik de Castro Lopo
59afe36f71 Add file include/share/compat.h and start moving CPP hackery into it. 2012-02-04 16:13:37 +11:00
Erik de Castro Lopo
d5bb4be5b4 Patch from David Yeo to conditionally include <inttypes.h>. 2012-02-04 11:06:12 +11:00
Erik de Castro Lopo
9c2290ade5 Fix more printf formatting issues and remove un-necessary casts. 2012-02-01 21:46:35 +11:00
Erik de Castro Lopo
ce8a75134c Fix a bunch of printf format warnings. 2012-02-01 20:34:04 +11:00
Josh Coalson
dea0f5a044 add 2009 copyright 2009-01-07 07:31:28 +00:00
Josh Coalson
c10f978fa6 update Makefile.lite system to work on x86_64 linux 2008-09-14 19:59:52 +00:00
Josh Coalson
9777974f3f remove VCWebDeploymentTool item for better proj compatibility with vs9 2008-06-03 06:33:12 +00:00
Josh Coalson
82b128050e update copyright for 2008 2008-02-28 05:34:21 +00:00
Josh Coalson
8f0723230c make SIGINT only stop the current mode, not the whole run 2007-09-11 07:33:25 +00:00
Josh Coalson
968e4bdaae better handling for OSs with small RAND_MAX (SF#1783630: https://sourceforge.net/tracker/index.php?func=detail&aid=1783630&group_id=13478&atid=113478) 2007-09-09 06:57:27 +00:00
Josh Coalson
330fc08a3f more mingw fixes 2007-08-01 03:03:51 +00:00
Josh Coalson
12d3a41896 change default extension for ogg flac from .ogg to .oga (SF#1762492: http://sourceforge.net/tracker/index.php?func=detail&aid=1762492&group_id=13478&atid=113478) 2007-08-01 03:02:00 +00:00
Josh Coalson
766539637f improvements to compile/link options 2007-07-16 06:03:32 +00:00
Josh Coalson
4fb6132d13 add vcproj files to EXTRA_DIST 2007-07-11 04:13:09 +00:00
Josh Coalson
74d568926b fix windows bugs 2007-06-20 01:26:52 +00:00
Josh Coalson
d7ebbe53b8 fix mem leaks and open files 2007-06-19 04:18:55 +00:00
Josh Coalson
5c24bb88ec add support for reading the raw pcm samples so that seeker can check that decoding resumes at the right place 2007-06-16 00:43:15 +00:00
Josh Coalson
cb6dc724f4 *** empty log message *** 2007-02-22 01:57:21 +00:00
Josh Coalson
9bedd7827c fix compiler warnings 2007-02-22 01:37:33 +00:00
Josh Coalson
147dbe2baa fix minor leaks 2007-02-13 02:05:19 +00:00
Josh Coalson
1c91ee3bc7 add debugging defines with /D 2007-02-04 19:46:19 +00:00
Josh Coalson
e74bd9516c add 2007 copyright 2007-02-02 06:58:19 +00:00
Josh Coalson
b0627a4e42 fixes from MSVC compile 2006-11-17 06:05:02 +00:00
Josh Coalson
f1ac7d9bde make "#if FLAC__HAS_OGG" checking consistent 2006-11-16 07:20:09 +00:00
Josh Coalson
f8d544f2b0 add argument to test_seeking to accept #samples in the input, to better evaluate whether or not seeking near/past end-of-stream 2006-11-16 01:22:33 +00:00
Josh Coalson
e58aabdb75 fixes from MSVC6 2006-11-14 05:40:34 +00:00
Josh Coalson
acd4a4345e fix compiler warnings 2006-11-11 22:43:25 +00:00
Josh Coalson
b1c3798d77 add multiple read modes to simulate different seeking/playback patterns 2006-11-04 06:59:03 +00:00
Josh Coalson
8da98c897b merge libOggFLAC into libFLAC and libOggFLAC++ into FLAC++; documentation still needs work 2006-10-15 04:24:05 +00:00
Josh Coalson
719bdaa87e minor bug fix in argc checking 2006-10-03 01:03:32 +00:00
Josh Coalson
982ea3a260 fix recovery logic when seek fails 2006-09-16 00:23:01 +00:00
Josh Coalson
0973d4edd7 in FLAC tester, process til end-of-stream before seek barrage, to make sure the decoder can still seek while in the EOS state 2006-09-15 00:06:24 +00:00
Josh Coalson
6b21f66784 merge down from merged-API-layer branch: cvs -q up -dP -j API_LAYER_MERGING_BASELINE -j API_LAYER_MERGING_BRANCH 2006-09-13 01:42:27 +00:00
Josh Coalson
f27a8ac726 minor EMX fix 2006-07-09 17:54:09 +00:00
Josh Coalson
b1ec796bda complete largefile support 2006-05-24 04:41:36 +00:00
Josh Coalson
0395dac13f add 2206 to copyright notice 2006-04-25 06:59:33 +00:00
Josh Coalson
e9a638d004 add support for building on os/2 with emx 2005-09-03 03:54:16 +00:00
Josh Coalson
725efa6461 fix bug in random sampling 2005-02-04 06:42:00 +00:00