Commit graph

23 commits

Author SHA1 Message Date
Nirbheek Chauhan
907a52315d
Replace WIN32 with _WIN32 everywhere
_WIN32 is defined on all Windows platforms by every compiler that
targets Windows. We do not need WIN32 at all.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Resolves https://github.com/xiph/opus/pull/104
2020-08-21 23:35:29 -07:00
Joshua Bowman
bc4ecf1917
win32: Add ambisonics sources to VS project
[mark.hsj: Add other missing files and update filter file]
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Fixes https://github.com/xiph/libopusenc/issues/9
Fixes https://github.com/xiph/opus-tools/issues/32
2018-07-26 19:07:26 -07:00
Ralph Giles
6db968e9ad
Rename SSE 4.1 files to match their targets.
Distinguish source files for the SSE 4.1 instruction
set extension consistently by their filename. This makes
it easier to check the correct flags are being set at
build time.

Signed-off-by: Jonathan Lennox <jonathan@vidyo.com>
2017-09-11 09:11:13 -07:00
Ricardo Constantino
c293dede4a
VS2015: remove previously ignored C4146 in kiss_fft.c
C4146: unary minus operator applied to unsigned type, result still unsigned

Fixed in a previous commit.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2017-03-02 18:39:34 -08:00
Ricardo Constantino
b95c5e784f
VS2015: Ignore LNK4221 and properly force SSE off for Win32
This warning complains of files that don't define any new symbols
not being included in linking.
GCC doesn't seem to complain about those, so neither should VS.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Closes https://github.com/xiph/opus/pull/34
2017-03-02 18:39:15 -08:00
Ricardo Constantino
4d883288de
VS2015: ignore C4244 warning in opus_compare.c
opus_compare.c defines the bitstream so we avoid changing it by
ignoring the non-breaking warning instead of changing the file.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Resolves https://github.com/xiph/opus/issues/21
2017-03-02 18:38:27 -08:00
Ricardo Constantino
61168921d9
VS2015: only compile fixed silk for appropriate configs
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Closes https://github.com/xiph/opus/pull/26
2017-02-20 17:18:58 -08:00
Ricardo Constantino
9c2736dc0d
VS2015: Move back PreprocessorDefinitions to opus
They're only needed in that project, no need to be in common.props.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2017-02-20 17:18:45 -08:00
Ricardo Constantino
daf1d12c86
VS2015: join common options in a properties file
Should make the projects a bit easier to digest and the differences
between the different configurations and platforms be more obvious.

A (happy?) side effect of this is the static libraries are now about
the same size as the ones produced by GCC and seem to build fine with
opus-tools.

Needs testing with other third party applications to make sure nothing
is missing that shouldn't.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2017-02-20 17:18:28 -08:00
Ricardo Constantino
0335534fe6
VS2015: remove dead options for linker in static configurations
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2017-02-20 17:18:03 -08:00
Ricardo Constantino
ab148485da
vs2015: reenable DebugDLL versions of opus_demo
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-11-10 19:53:20 -08:00
Ricardo Constantino
e619ea76bf
vs2015: Add missing file to test_opus_encode.
Signed-off-by: Ralph Giles <giles@thaumas.net>
2016-11-03 14:16:41 -07:00
Ricardo Constantino (:RiCON)
08eb1b8b27
vs2015: include files added in 76674fea
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2016-09-01 14:24:02 -04:00
Ricardo Constantino (:RiCON)
eca752f100 VS2015: Ignore warning 4146 in celt/kiss_fft.c.
Warning 4146 is "unary minus operator applied to unsigned type,
result still unsigned"

Signed-off-by: Ralph Giles <giles@mozilla.com>
2016-07-27 11:48:46 -07:00
Ricardo Constantino (:RiCON)
07a51ebb89 VS2015: Disable building DebugDLL opus_demo.
This works around the issue with using private symbols.

Signed-off-by: Ralph Giles <giles@mozilla.com>
2016-07-27 11:48:18 -07:00
Ricardo Constantino (:RiCON)
385d49e55c vs2015: Merge opus dependencies into its project.
Since DLL builds can't include both fixed and float, separate DLL_fixed
configurations added that include fixed silk code and also set FIXED_POINT.

Signed-off-by: Ralph Giles <giles@mozilla.com>
2016-07-27 11:47:45 -07:00
Ricardo Constantino (:RiCON)
1aa851445b VS2015: Mirror changes in *.mk files from exp_lbr_tune merge.
Signed-off-by: Ralph Giles <giles@mozilla.com>
2016-07-26 09:53:00 -07:00
Ricardo Constantino (:RiCON)
b6ac6ce6b1 VS2015: Suppress a few warnings.
SDLCheck is a superset of BufferSecurityCheck and is off by default.
If it's set, it complains that it's overriden by BufferSecurityCheck.

Warning 4996 is already ignored in other binaries (fopen being deprecated and
suggesting fopen_s).

NoExtensions isn't a valid value for EnableEnhancedInstructionSet in x64 builds.
2016-07-26 09:51:07 -07:00
Ricardo Constantino (:RiCON)
a79bf19a5e Create a simple project to create version.h.
Run before any other project.

Avoids trying to create and replace version.h more than once which
led to file-locking errors with multicore builds.

Signed-off-by: Ralph Giles <giles@mozilla.com>
2016-07-26 09:50:13 -07:00
Orestes Zoupanos
d274f57a70 Fix DLL errors and Additional Library Directories 2016-05-17 23:06:54 +01:00
Ricardo Constantino (:RiCON)
5ff11c02da Fix VS2015 dynamic builds by adding DLL_EXPORT to CFLAGS
Needed after 6e96173.
2016-05-11 17:54:30 -07:00
uraymeiviar
ae8fec4cb4 fix build settings for DLL project, runtime library must be linked to DLL too to prevent heap deallocation error 2016-05-11 15:50:55 -07:00
uraymeiviar
3aaddaf5fb Added Visual Studio 2015 solution and added ReleaseDLL and DebugDLL Project settings to produce .dll file instead of .lib 2016-05-11 15:50:55 -07:00