-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
107 lines (85 loc) · 3.46 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
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
105
106
107
solution "corridormap"
platforms { "x64", "x32" }
configurations { "release", "debug" }
language "C++"
objdir ".build/obj"
configuration "debug"
flags "Symbols"
configuration "release"
optimize "Speed"
defines { "NDEBUG" }
configuration { "debug", "x32" }
targetdir "bin/x32/debug"
configuration { "release", "x32" }
targetdir "bin/x32/release"
configuration { "debug", "x64" }
targetdir "bin/x64/debug"
configuration { "release", "x64" }
targetdir "bin/x64/release"
configuration { "vs*" }
defines { "_CRT_SECURE_NO_WARNINGS" }
buildoptions { "/wd4456" } -- declaration of '...' hides previous local declaration.
buildoptions { "/wd4577" } -- 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed.
project "clew"
kind "StaticLib"
language "C"
files { "deps/clew/clew.c" }
project "corridormap-library"
kind "StaticLib"
flags { "NoPCH", "NoRTTI", "FatalWarnings", "NoExceptions" }
warnings "Extra"
files { "source/**.cpp" }
defines { "CORRIDORMAP_CONFIG_USE_CLEW" }
includedirs { "include", "deps/OpenCL", "deps/clew" }
project "glfw"
kind "StaticLib"
language "C"
files {
"example/glfw/src/clipboard.c",
"example/glfw/src/context.c",
"example/glfw/src/gamma.c",
"example/glfw/src/init.c",
"example/glfw/src/input.c",
"example/glfw/src/monitor.c",
"example/glfw/src/time.c",
"example/glfw/src/window.c" }
includedirs { "example/glfw/include" }
defines { "_GLFW_USE_OPENGL" }
configuration { "windows" }
files { "example/glfw/src/win32_*.c", "example/glfw/src/wgl_*.c" }
defines { "_CRT_SECURE_NO_WARNINGS", "_GLFW_WIN32", "_GLFW_WGL" }
project "glew"
kind "StaticLib"
language "C"
files { "example/glew/src/glew.c" }
defines { "GLEW_STATIC" }
includedirs { "example/glew/include" }
configuration { "windows" }
defines { "_CRT_SECURE_NO_WARNINGS" }
project "nanovg"
kind "StaticLib"
language "C"
files { "example/nanovg/src/*.c" }
includedirs { "example/nanovg/src" }
configuration "vs*"
-- x64 build stb_image.c: conversion from '__int64' to 'int', possible loss of data
buildoptions { "/wd4244" }
project "example-voronoi"
kind "ConsoleApp"
flags { "NoPCH", "NoRTTI", "FatalWarnings", "NoExceptions" }
warnings "Extra"
includedirs { "include", "deps/OpenCL", "deps/clew", "example/glfw/include", "example/glew/include" }
files { "example/voronoi.cpp" }
defines { "GLEW_STATIC" }
links { "corridormap-library", "glew", "glfw", "clew" }
configuration { "windows" }
links { "opengl32" }
project "example-corridor"
kind "ConsoleApp"
flags { "NoPCH", "NoRTTI", "FatalWarnings", "NoExceptions" }
includedirs { "include", "deps/OpenCL", "deps/clew", "example/glfw/include", "example/glew/include", "example/nanovg/src" }
files { "example/corridor.cpp", "example/draw.cpp" }
defines { "GLEW_STATIC" }
links { "corridormap-library", "glew", "glfw", "clew", "nanovg" }
configuration { "windows" }
links { "opengl32" }