mirror of
https://github.com/google/brotli.git
synced 2025-01-01 04:40:08 +00:00
378485b097
There are currently 3 ways to build: * Easy: `./configure; make` * Simple: use Bazel * Portable: use premake5 to generate XCode / MSVS projects
48 lines
1017 B
Lua
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" }
|