-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake5.lua
More file actions
70 lines (59 loc) · 1.61 KB
/
premake5.lua
File metadata and controls
70 lines (59 loc) · 1.61 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
-- premake5.lua
workspace "RayTracing"
configurations { "Debug", "Release" }
platforms { "x64", "ARM64" }
-- includedirs { ".", "engine" }
defines { "_CRT_SECURE_NO_WARNINGS" }
startproject "RayTracing"
filter "action:vs*"
system "windows"
architecture "x86_64"
vectorextensions "SSE4.1"
toolset "msc-clangcl"
defines("WINDOWS")
-- editandcontinue "Off"
-- includedirs { "external/glfw-3.3/include", "external/glew-2.1.0/include", "external/fmod/api/core/inc", "external/stb" }
filter "action:xcode*"
system "macosx"
architecture "arm64"
vectorextensions "NEON"
toolset "clang"
defines { "MACOS" }
buildoptions { "-Xclang -flto-visibility-public-std -fblocks" }
--filter "platforms:x64"
-- system "windows"
-- architecture "x86_64"
-- vectorextensions "SSE4.1"
-- toolset "clang"
-- defines("RE_PLATFORM_WIN64")
-- includedirs { "..", "../external/glfw-3.3/include", "../external/glew-2.1.0/include", "../external/fmod/api/core/inc", "../external/stb" }
filter "configurations:Debug"
defines { "_DEBUG" }
filter "configurations:Release"
defines { "NDEBUG" }
project "RayTracing"
location "RayTracing"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
debugdir "."
files
{
"RayTracing/**.h",
"RayTracing/**.cpp",
}
filter "action:xcode*"
excludes
{
"RayTracing/stdafx.cpp",
"RayTracing/targetver.h"
}
filter "configurations:Debug"
defines { "_DEBUG" }
optimize "Off"
symbols "Full"
-- libdirs { "lib/Debug" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "Full"
-- libdirs { "lib/Release" }