-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
68 lines (53 loc) · 1.69 KB
/
premake5.lua
File metadata and controls
68 lines (53 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
-- premake5.lua
workspace "RoboArena"
architecture "x64"
configurations { "Debug", "Release", "Python" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include_directories = {}
include_directories["Python"] = "/usr/local/include/python3.8/"
include_directories["spdlog"] = "RoboArena/vendor/spdlog/include"
include_directories["glm"] = "RoboArena/vendor/glm"
project "RoboArena"
location "RoboArena"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
pic "On"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("obj/" .. outputdir .. "/%{prj.name}")
pchheader "rapch.h"
files {
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp"
}
defines {
"_CRT_SECURE_NO_WARNINGS",
}
includedirs {
"%{prj.location}/src",
"%{include_directories.spdlog}",
"%{include_directories.Python}",
"%{include_directories.glm}",
}
links {
"dl",
"pthread"
}
filter "system:macosx"
links {"Python.framework"}
linkoptions {"-F /usr/local/Cellar/python@3.8/3.8.12_1/Frameworks"}
buildoptions {"-F /usr/local/Cellar/python@3.8/3.8.12_1/Frameworks"}
filter "configurations:Debug"
defines { "DEBUG", "RA_ENABLE_ASSERTS" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "configurations:Python"
kind "StaticLib"
defines { "NDEBUG" }
optimize "On"
postbuildcommands {
("{COPY} %{cfg.buildtarget.relpath} ../PyRoboArena/lib/%{cfg.buildtarget.name}"),
("cd ../PyRoboArena && python setup.py build_ext --inplace"),
}