Eugene Kliuchnikov | 378485b | 2016-06-16 10:52:57 +0200 | [diff] [blame] | 1 | -- A solution contains projects, and defines the available configurations |
| 2 | solution "brotli" |
| 3 | configurations { "Release", "Debug" } |
| 4 | platforms { "Static", "Shared" } |
| 5 | targetdir "bin" |
| 6 | location "build" |
| 7 | flags "RelativeLinks" |
| 8 | |
| 9 | filter "configurations:Release" |
| 10 | optimize "Speed" |
| 11 | flags { "StaticRuntime" } |
| 12 | |
| 13 | filter "configurations:Debug" |
| 14 | flags { "Symbols" } |
| 15 | |
| 16 | filter { "platforms:Static" } |
| 17 | kind "StaticLib" |
| 18 | |
| 19 | filter { "platforms:Shared" } |
| 20 | kind "SharedLib" |
| 21 | |
| 22 | configuration { "gmake" } |
| 23 | buildoptions { "-Wall -fno-omit-frame-pointer" } |
| 24 | location "build/gmake" |
| 25 | |
| 26 | configuration { "macosx" } |
| 27 | defines { "DOS_MACOSX" } |
| 28 | |
| 29 | project "brotli_common" |
| 30 | language "C" |
| 31 | files { "common/**.h", "common/**.c" } |
| 32 | |
| 33 | project "brotli_dec" |
| 34 | language "C" |
| 35 | files { "dec/**.h", "dec/**.c" } |
| 36 | links "brotli_common" |
| 37 | |
| 38 | project "brotli_enc" |
| 39 | language "C" |
| 40 | files { "enc/**.h", "enc/**.c" } |
| 41 | links "brotli_common" |
| 42 | |
| 43 | project "bro" |
| 44 | kind "ConsoleApp" |
| 45 | language "C++" |
| 46 | files { "tools/bro.cc" } |
| 47 | links { "brotli_common", "brotli_dec", "brotli_enc" } |