Commit Graph

32 Commits

Author SHA1 Message Date
Erik de Castro Lopo
5705b4d7b2 Huge Windows utf8 I/O patch.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
c152d1adf9 More Microsoft Visual Studio project file updates.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-18 06:22:57 +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
a4c321e492 Large patch from Ben Allison fixing the MSVC build.
Patch tweaked a little to fix Linux build and clean up minor problems.
2013-03-06 22:17:51 +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
605f920816 Fix more compiler warnings. 2012-05-08 20:08:06 +10: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
df80b9b659 Add missing <csting> include.
Patch from Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> via
Debian. Closes Debian bug #455304.
2012-02-12 20:45:53 +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
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
0a4ecd8ddb fix #includes (SF#1834168: https://sourceforge.net/tracker/index.php?func=detail&aid=1834168&group_id=13478&atid=313478) 2007-11-27 04:17:15 +00:00
Josh Coalson
402a9ed7cf final automake-related fixes 2007-09-16 20:58:48 +00:00
Josh Coalson
24b58c0c4c *** empty log message *** 2007-09-13 16:44:23 +00:00
Josh Coalson
fe7ea995e9 minor fixes 2007-09-13 00:39:45 +00:00
Josh Coalson
703d0d4aa7 add encoder examples 2007-09-13 00:38:08 +00:00
Josh Coalson
8bc1cde8bb minor improvements 2007-09-13 00:37:21 +00:00
Josh Coalson
044303c98d *** empty log message *** 2007-09-13 00:33:25 +00:00
Josh Coalson
1b21c25c4f add example_cpp_decode_file 2007-09-12 05:35:12 +00:00
Josh Coalson
0af1527d46 *** empty log message *** 2007-09-12 05:34:36 +00:00
Josh Coalson
1364a1e8b5 minor fixes 2007-09-12 05:34:06 +00:00
Josh Coalson
0577344cb3 *** empty log message *** 2007-09-12 05:27:34 +00:00
Josh Coalson
6d6afdce3e msvc fixes 2007-09-12 03:01:17 +00:00
Josh Coalson
44937a7652 add new top level examples/ directory with one example for now (example_c_decode_file) 2007-09-12 02:42:05 +00:00