-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake4.lua
More file actions
104 lines (75 loc) · 2.42 KB
/
premake4.lua
File metadata and controls
104 lines (75 loc) · 2.42 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
solution "Bitable"
configurations { "DebugLib", "ReleaseLib", "DebugDLL", "ReleaseDLL" }
platforms { "x32", "x64" }
includedirs { "include" }
flags { "NoPCH" }
location ( _ACTION )
project "bitable"
language "C"
files { "bitable/*.c", "bitable/*.h", "include/*.h" }
objdir ( _ACTION .. "/bitable" )
configuration "*Lib"
kind "StaticLib"
configuration "*DLL"
kind "SharedLib"
defines { "BITABLE_DLL", "BITABLE_DLL_EXPORT" }
configuration "Debug*"
flags { "Symbols" }
configuration "Release*"
flags { "OptimizeSpeed" }
configuration "windows"
excludes { "bitable/*.posix.c"}
defines "_CRT_SECURE_NO_WARNINGS"
configuration "linux"
excludes { "bitable/*.win32.c"}
buildoptions { "-fvisibility=hidden" }
configuration { "x64", "DebugLib" }
targetdir "bin/64/debug_lib"
configuration { "x64", "ReleaseLib" }
targetdir "bin/64/release_lib"
configuration { "x64", "DebugDLL" }
targetdir "bin/64/debug_dll"
configuration { "x64", "ReleaseDLL" }
targetdir "bin/64/release_dll"
configuration { "x32", "DebugLib" }
targetdir "bin/32/debug_lib"
configuration { "x32", "ReleaseLib" }
targetdir "bin/32/release_lib"
configuration { "x32", "DebugDLL" }
targetdir "bin/32/debug_dll"
configuration { "x32", "ReleaseDLL" }
targetdir "bin/32/release_dll"
project "example"
language "C++"
kind "ConsoleApp"
files { "example/*.cpp", "example/*.c", "example/*.h" }
links { "bitable" }
configuration "Debug*"
flags { "Symbols" }
configuration "Release*"
flags { "OptimizeSpeed" }
configuration "*DLL"
defines { "BITABLE_DLL" }
if os.is( "linux" ) then
if _ACTION == "gmake" then
linkoptions { "-Wl,-rpath,'$$ORIGIN'" }
elseif _ACTION == "codeblocks" then
linkoptions { "-Wl,-R\\\\$$$ORIGIN" }
end
end
configuration { "x64", "DebugLib" }
targetdir "bin/64/debug_lib"
configuration { "x64", "ReleaseLib" }
targetdir "bin/64/release_lib"
configuration { "x64", "DebugDLL" }
targetdir "bin/64/debug_dll"
configuration { "x64", "ReleaseDLL" }
targetdir "bin/64/release_dll"
configuration { "x32", "DebugLib" }
targetdir "bin/32/debug_lib"
configuration { "x32", "ReleaseLib" }
targetdir "bin/32/release_lib"
configuration { "x32", "DebugDLL" }
targetdir "bin/32/debug_dll"
configuration { "x32", "ReleaseDLL" }
targetdir "bin/32/release_dll"