-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
executable file
·73 lines (53 loc) · 1.82 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
72
73
sources = {
"muda_impl.h",
"muda_device_ocl.cc",
"OptionParser.cpp",
"main.cc",
"third_party/clew/src/clew.c",
}
-- premake4.lua
solution "OCLCSolution"
configurations { "Release", "Debug" }
if (os.is("windows")) then
platforms { "x64" }
else
platforms { "native", "x32", "x64" }
end
-- A project defines one build target
project "OCLC"
kind "ConsoleApp"
language "C++"
files { sources }
includedirs {
"./",
"./third_party/clew/include",
}
defines { 'HAVE_OPENCL' }
-- MacOSX. Guess we use gcc.
configuration { "macosx", "gmake" }
defines { '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' }
-- Windows specific
configuration { "windows", "gmake" }
defines { '__STDC_CONSTANT_MACROS', '__STDC_LIMIT_MACROS' } -- c99
links { "stdc++", "msvcrt", "ws2_32", "winmm" }
configuration { "windows", "vs2013", "x64" }
defines { '_CRT_SECURE_NO_WARNINGS' }
defines { 'NOMINMAX', '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' }
configuration { "windows", "vs2015", "x64" }
defines { '_CRT_SECURE_NO_WARNINGS' }
defines { 'NOMINMAX', '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' }
configuration { "windows", "vs2017", "x64" }
defines { '_CRT_SECURE_NO_WARNINGS' }
defines { 'NOMINMAX', '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' }
-- Linux specific
configuration {"linux", "gmake"}
defines { '__STDC_CONSTANT_MACROS', '__STDC_LIMIT_MACROS' } -- c99
links { "dl" }
configuration "Debug"
defines { "DEBUG" } -- -DDEBUG
symbols "On"
targetname "oclc_d"
configuration "Release"
-- defines { "NDEBUG" } -- -NDEBUG
symbols "On"
targetname "oclc"