2018-02-13 03:55:28 +01:00
|
|
|
|
2018-02-20 03:17:25 +01:00
|
|
|
local base_dir = (solution().basedir .. "/external/celt-e18de77/")
|
2018-02-13 03:55:28 +01:00
|
|
|
|
|
|
|
group "external"
|
|
|
|
project "celt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C"
|
|
|
|
location (_ACTION .. "/" .. project().name)
|
|
|
|
|
2018-03-30 21:42:17 +02:00
|
|
|
-- disable sse and sse2 for valve binary compat.
|
|
|
|
-- the osx build of vaudio_celt uses sse2
|
|
|
|
configuration "windows"
|
|
|
|
buildoptions "/arch:IA32"
|
|
|
|
configuration "linux"
|
|
|
|
buildoptions "-mfpmath=387"
|
|
|
|
configuration "macosx"
|
|
|
|
buildoptions { "-mfpmath=sse", "-msse2" }
|
|
|
|
configuration {}
|
|
|
|
|
2018-02-13 03:55:28 +01:00
|
|
|
defines
|
|
|
|
{
|
2018-02-13 05:48:32 +01:00
|
|
|
"CUSTOM_MODES",
|
2018-02-20 03:17:25 +01:00
|
|
|
"CUSTOM_MODES_ONLY",
|
|
|
|
"DISABLE_FLOAT_API",
|
|
|
|
"HAVE_CONFIG_H"
|
2018-02-13 03:55:28 +01:00
|
|
|
}
|
|
|
|
includedirs
|
|
|
|
{
|
2018-02-13 05:47:50 +01:00
|
|
|
base_dir .. "include/celt/"
|
2018-02-13 03:55:28 +01:00
|
|
|
}
|
|
|
|
files
|
|
|
|
{
|
2018-02-13 04:29:11 +01:00
|
|
|
base_dir .. "**.h",
|
|
|
|
base_dir .. "**.c"
|
2018-02-13 03:55:28 +01:00
|
|
|
}
|
|
|
|
excludes
|
|
|
|
{
|
|
|
|
base_dir .. "static_modes_fixed.c",
|
|
|
|
base_dir .. "static_modes_float.c"
|
|
|
|
}
|
|
|
|
project "*"
|
|
|
|
group ""
|