-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake4.lua
More file actions
97 lines (78 loc) · 1.69 KB
/
premake4.lua
File metadata and controls
97 lines (78 loc) · 1.69 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
solution "precache"
configurations { "debug", "release" }
project "precache"
objdir "obj"
targetdir "build/bin"
uuid( "e713b970-81b8-11e0-b278-0800200c9a66" )
platforms{ "native", "x32", "x64" }
kind "WindowedApp"
language ("C")
baseDefines = {}
files
{
"src/**.c",
"include/**.h",
}
includedirs
{
"include",
}
baseExcludes =
{
}
excludes { baseExcludes }
configuration {"windows"}
-- use static runtime on Windows
flags { "StaticRuntime" }
files
{
"resources/precache.rc",
"resources/resource.h"
}
includedirs
{
"resources/"
}
defines { "WIN32", "UNICODE", baseDefines }
links
{
"opengl32"
}
configuration {"macosx"}
files
{
"src/**.m",
"../xwl2/src/**.m"
}
links { "Cocoa.framework", "OpenGL.framework" }
configuration {"linux"}
defines { "LINUX=1", baseDefines }
links
{
"pthread",
"Xinerama",
"X11",
"GL"
}
configuration { "debug" }
targetsuffix "d"
defines { "DEBUG" }
flags { "Symbols" }
configuration { "macosx", "release" }
postbuildcommands
{
"cp ./resources/Info.plist build/bin/precache.app/Contents/",
"mkdir -p build/bin/precache.app/Contents/Resources/",
"cp ./resources/precache.icns build/bin/precache.app/Contents/Resources/"
}
-- workaround for issue w/ premake not applying the suffix to the bundle
configuration { "macosx", "debug", "gmake" }
targetname "precached"
targetsuffix ""
configuration { "macosx", "debug" }
postbuildcommands
{
"cp ./resources/Info.plist build/bin/precached.app/Contents/",
"mkdir -p build/bin/precached.app/Contents/Resources/",
"cp ./resources/precache.icns build/bin/precached.app/Contents/Resources/"
}