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