forked from hsutter/cppfront
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
28 lines (22 loc) · 773 Bytes
/
premake5.lua
File metadata and controls
28 lines (22 loc) · 773 Bytes
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
workspace "cppfront"
configurations { "Debug", "Release" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "cppfront"
kind "ConsoleApp"
language "C++" -- "C", "C++", "C#"
cppdialect "C++latest"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files { "source/*.cpp", "source/*.h", "include/*.h", "*.*", "passthrough-tests/*.*", "regression-tests/**" }
filter "configurations:Debug"
runtime "Debug"
symbols "on"
defines { "DEBUG" }
filter "configurations:Release"
runtime "Release"
optimize "on" -- "on", "off", "Debug", "Size", "Speed", "Full"
defines { "NDEBUG" }
filter "configurations:*32"
architecture "x86"
filter "configurations:*64"
architecture "x86_64"