brotli/premake5.lua
Eugene Kliuchnikov 378485b097 Update build system. Now libraries are produced as build artifacts.
There are currently 3 ways to build:
* Easy: `./configure; make`
* Simple: use Bazel
* Portable: use premake5 to generate XCode / MSVS projects
2016-06-16 10:52:57 +02:00

48 lines
1017 B
Lua

-- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
platforms { "Static", "Shared" }
targetdir "bin"
location "build"
flags "RelativeLinks"
filter "configurations:Release"
optimize "Speed"
flags { "StaticRuntime" }
filter "configurations:Debug"
flags { "Symbols" }
filter { "platforms:Static" }
kind "StaticLib"
filter { "platforms:Shared" }
kind "SharedLib"
configuration { "gmake" }
buildoptions { "-Wall -fno-omit-frame-pointer" }
location "build/gmake"
configuration { "macosx" }
defines { "DOS_MACOSX" }
project "brotli_common"
language "C"
files { "common/**.h", "common/**.c" }
project "brotli_dec"
language "C"
files { "dec/**.h", "dec/**.c" }
links "brotli_common"
project "brotli_enc"
language "C"
files { "enc/**.h", "enc/**.c" }
links "brotli_common"
project "bro"
kind "ConsoleApp"
language "C++"
files { "tools/bro.cc" }
links { "brotli_common", "brotli_dec", "brotli_enc" }