Commit Graph

42 Commits

Author SHA1 Message Date
Erik de Castro Lopo
b9574fe589 Fix a bunch of compiler warnings (mainly MinGW). 2013-04-07 13:44:45 +10:00
Erik de Castro Lopo
6a9a18ff7a For windows, make UTF-8 mode into a runtime choice.
The smaller patch makes the utf-8 library use ANSI codepage by
default. When frontends call the "get_utf8_argv" function it
changes Unicode conversion codepage from ANSI to UTF-8.

Patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-07 13:11:19 +10:00
Erik de Castro Lopo
ae7eda1815 Rename all parameters and locals from 'index' to 'indx'. 2013-04-05 20:21:22 +11:00
Erik de Castro Lopo
0cd2e9ed69 Purge FLAC__STRINGS_IN_UTF8 from VC project files. 2013-04-01 20:01:37 +11:00
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
2d6354ff2a Replace broken str* functions with safe versions. 2013-03-19 20:23:44 +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
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
Max Horn
66c0a581d2 autogen.sh: replace this by a simple call to autoreconf
The autoreconf tool is provided by autoconf to do what custom
autogen.sh scripts in many projects used to do. Only it is more
robust and widely tested. It has been available for several years,
too. No reason to rely on custom code for this.

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:14 +11:00
Miroslav Lichvar
6a1f59b58f Update FSF address. 2012-12-06 06:17:26 +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
Josh Coalson
75e6cabe05 mingw fixes (SF#2209829: https://sourceforge.net/tracker2/?func=detail&aid=2209829&group_id=13478&atid=313478) 2009-01-03 01:55:17 +00:00
Josh Coalson
546ba794ca fixes for msvc 2007-09-12 02:39:28 +00:00
Josh Coalson
7819f0b318 add missing EXTRA_DIST files 2007-09-12 01:02:36 +00:00
Josh Coalson
0f008d2e9e extra checking on memory allocation sizes to prevent a class of overflow attacks 2007-09-11 04:49:56 +00:00
Josh Coalson
f9cf27fcc8 prototype-related fixes 2007-07-25 03:11: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
ba457d7327 remove unused vars 2007-06-14 06:13:25 +00:00
Josh Coalson
cb6dc724f4 *** empty log message *** 2007-02-22 01:57:21 +00:00
Josh Coalson
b9d8b9e927 remove special makefile variants for libiconv on darwin 2007-02-14 05:47:38 +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
b1ec796bda complete largefile support 2006-05-24 04:41:36 +00:00
Josh Coalson
85425426e8 update iconv settings 2006-05-18 07:35:30 +00:00
Josh Coalson
b54ce2e4f9 improved handling of libiconv 2005-01-07 01:02:30 +00:00
Matt Zimmerman
ca56e93b03 Build libtool archives instead of plain .a archives, so that PIC versions are
built and can they be portably linked into shared libraries.
2003-02-07 02:43:02 +00:00
Josh Coalson
630d22ed7b remove reference to obsolete Makefile.vc 2003-01-25 18:32:56 +00:00
Josh Coalson
d8109c2d93 obsolete now that .dsp files are complete 2003-01-25 18:24:13 +00:00
Josh Coalson
8dea208c85 Second patch from X-Fixer: tweaks for better MSVC build 2003-01-14 09:05:41 +00:00
Josh Coalson
a7101b1ea2 minor formatting 2003-01-14 03:56:45 +00:00
Josh Coalson
709b7fcef4 fix uninitialized var 2002-12-23 19:50:36 +00:00
Josh Coalson
5e31be1500 #include config.h 2002-12-04 07:07:35 +00:00
Josh Coalson
91f8c71aff remove README from EXTRA_DIST 2002-12-03 06:30:57 +00:00
Josh Coalson
942eee8a1c obsolete 2002-12-03 06:28:14 +00:00
Josh Coalson
fcc7a6884d get Makefile.vc system working again with new debug/release dirs and static/dynamic targets 2002-11-22 07:50:26 +00:00
Josh Coalson
bfc8e319c2 revamp MSVC build system, separate dynamic and static builds, separate debug and release intermediate directories 2002-11-21 09:00:25 +00:00
Josh Coalson
b74fc98b48 revamp Makefile.lite system, use separate dirs and names for debug and release targets and object files 2002-11-20 06:40:08 +00:00
Josh Coalson
ca8660193b reorg share directory, split each lib into its own dir 2002-10-23 22:24:33 +00:00