forked from google/brotli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
71 lines (58 loc) · 1.51 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
-- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
includedirs { "include" }
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" }
defines { "OS_MACOSX" }
project "brotlicommon"
kind "SharedLib"
language "C"
files { "common/**.h", "common/**.c" }
project "brotlicommon_static"
kind "StaticLib"
targetname "brotlicommon"
language "C"
files { "common/**.h", "common/**.c" }
project "brotlidec"
kind "SharedLib"
language "C"
files { "dec/**.h", "dec/**.c" }
links "brotlicommon"
project "brotlidec_static"
kind "StaticLib"
targetname "brotlidec"
language "C"
files { "dec/**.h", "dec/**.c" }
links "brotlicommon_static"
project "brotlienc"
kind "SharedLib"
language "C"
files { "enc/**.h", "enc/**.c" }
links "brotlicommon"
project "brotlienc_static"
kind "StaticLib"
targetname "brotlienc"
language "C"
files { "enc/**.h", "enc/**.c" }
links "brotlicommon_static"
project "bro"
kind "ConsoleApp"
language "C"
linkoptions "-static"
files { "tools/bro.c" }
links { "brotlicommon_static", "brotlidec_static", "brotlienc_static" }