brotli/premake5.lua

71 lines
1.6 KiB
Lua
Raw Normal View History

-- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
filter "configurations:Release"
optimize "Speed"
flags { "StaticRuntime" }
filter "configurations:Debug"
flags { "Symbols" }
configuration { "gmake" }
buildoptions { "-Wall -fno-omit-frame-pointer" }
location "buildfiles/gmake"
configuration { "xcode4" }
location "buildfiles/xcode4"
configuration "linux"
links "m"
configuration { "macosx" }
2016-06-24 13:32:51 +00:00
defines { "OS_MACOSX" }
project "brotli_common"
kind "SharedLib"
language "C"
files { "common/**.h", "common/**.c", "public/**.h" }
2016-06-24 13:32:51 +00:00
project "brotli_common_static"
kind "StaticLib"
targetname "brotli_common"
language "C"
files { "common/**.h", "common/**.c", "public/**.h" }
2016-06-24 13:32:51 +00:00
project "brotli_dec"
kind "SharedLib"
language "C"
files { "dec/**.h", "dec/**.c", "public/**.h" }
links "brotli_common"
2016-06-24 13:32:51 +00:00
project "brotli_dec_static"
kind "StaticLib"
targetname "brotli_dec"
language "C"
files { "dec/**.h", "dec/**.c", "public/**.h" }
2016-06-24 13:32:51 +00:00
links "brotli_common_static"
project "brotli_enc"
kind "SharedLib"
language "C"
files { "enc/**.h", "enc/**.c", "public/**.h" }
links "brotli_common"
2016-06-24 13:32:51 +00:00
project "brotli_enc_static"
kind "StaticLib"
2016-06-24 13:32:51 +00:00
targetname "brotli_enc"
language "C"
files { "enc/**.h", "enc/**.c", "public/**.h" }
2016-06-24 13:32:51 +00:00
links "brotli_common_static"
project "bro"
kind "ConsoleApp"
language "C"
2016-06-24 13:32:51 +00:00
linkoptions "-static"
files { "tools/bro.c" }
2016-06-24 13:32:51 +00:00
links { "brotli_common_static", "brotli_dec_static", "brotli_enc_static" }