2016-06-16 08:52:57 +00:00
|
|
|
-- A solution contains projects, and defines the available configurations
|
|
|
|
solution "brotli"
|
|
|
|
configurations { "Release", "Debug" }
|
2017-07-10 17:57:05 +00:00
|
|
|
platforms { "x64", "x86" }
|
2016-06-16 08:52:57 +00:00
|
|
|
targetdir "bin"
|
2016-06-17 14:24:51 +00:00
|
|
|
location "buildfiles"
|
2016-06-16 08:52:57 +00:00
|
|
|
flags "RelativeLinks"
|
2017-04-23 12:07:08 +00:00
|
|
|
includedirs { "c/include" }
|
2016-06-16 08:52:57 +00:00
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "Speed"
|
|
|
|
flags { "StaticRuntime" }
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
flags { "Symbols" }
|
|
|
|
|
2017-07-10 17:57:05 +00:00
|
|
|
filter { "platforms:x64" }
|
|
|
|
architecture "x86_64"
|
|
|
|
|
|
|
|
filter { "platforms:x86" }
|
|
|
|
architecture "x86"
|
|
|
|
|
2016-06-16 08:52:57 +00:00
|
|
|
configuration { "gmake" }
|
|
|
|
buildoptions { "-Wall -fno-omit-frame-pointer" }
|
2016-06-17 14:24:51 +00:00
|
|
|
location "buildfiles/gmake"
|
|
|
|
|
2016-06-20 15:20:17 +00:00
|
|
|
configuration { "xcode4" }
|
|
|
|
location "buildfiles/xcode4"
|
|
|
|
|
2016-06-17 14:24:51 +00:00
|
|
|
configuration "linux"
|
|
|
|
links "m"
|
2016-06-16 08:52:57 +00:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
2016-06-24 13:32:51 +00:00
|
|
|
defines { "OS_MACOSX" }
|
2016-06-16 08:52:57 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlicommon"
|
2016-06-20 15:20:17 +00:00
|
|
|
kind "SharedLib"
|
2016-06-16 08:52:57 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/common/**.h", "c/common/**.c" }
|
2016-06-16 08:52:57 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlicommon_static"
|
2016-06-24 13:32:51 +00:00
|
|
|
kind "StaticLib"
|
2016-10-12 16:23:34 +00:00
|
|
|
targetname "brotlicommon"
|
2016-06-24 13:32:51 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/common/**.h", "c/common/**.c" }
|
2016-06-24 13:32:51 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlidec"
|
2016-06-20 15:20:17 +00:00
|
|
|
kind "SharedLib"
|
2016-06-16 08:52:57 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/dec/**.h", "c/dec/**.c" }
|
2016-10-12 16:23:34 +00:00
|
|
|
links "brotlicommon"
|
2016-06-16 08:52:57 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlidec_static"
|
2016-06-24 13:32:51 +00:00
|
|
|
kind "StaticLib"
|
2016-10-12 16:23:34 +00:00
|
|
|
targetname "brotlidec"
|
2016-06-24 13:32:51 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/dec/**.h", "c/dec/**.c" }
|
2016-10-12 16:23:34 +00:00
|
|
|
links "brotlicommon_static"
|
2016-06-24 13:32:51 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlienc"
|
2016-06-20 15:20:17 +00:00
|
|
|
kind "SharedLib"
|
2016-06-16 08:52:57 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/enc/**.h", "c/enc/**.c" }
|
2016-10-12 16:23:34 +00:00
|
|
|
links "brotlicommon"
|
2016-06-16 08:52:57 +00:00
|
|
|
|
2016-10-12 16:23:34 +00:00
|
|
|
project "brotlienc_static"
|
2016-06-20 15:20:17 +00:00
|
|
|
kind "StaticLib"
|
2016-10-12 16:23:34 +00:00
|
|
|
targetname "brotlienc"
|
2016-06-20 15:20:17 +00:00
|
|
|
language "C"
|
2017-04-23 12:07:08 +00:00
|
|
|
files { "c/enc/**.h", "c/enc/**.c" }
|
2016-10-12 16:23:34 +00:00
|
|
|
links "brotlicommon_static"
|
2016-06-20 15:20:17 +00:00
|
|
|
|
2017-05-29 15:55:14 +00:00
|
|
|
project "brotli"
|
2016-06-16 08:52:57 +00:00
|
|
|
kind "ConsoleApp"
|
2016-06-17 14:24:51 +00:00
|
|
|
language "C"
|
2016-06-24 13:32:51 +00:00
|
|
|
linkoptions "-static"
|
2017-05-29 15:55:14 +00:00
|
|
|
files { "c/tools/brotli.c" }
|
2016-10-12 16:23:34 +00:00
|
|
|
links { "brotlicommon_static", "brotlidec_static", "brotlienc_static" }
|