engine.build.lua: add platform defines.
This commit is contained in:
parent
090646b61a
commit
0540f5d201
1 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ if global_settings.debug then
|
||||||
settings.cc.flags:Add("-DSPECTRE_DEBUG")
|
settings.cc.flags:Add("-DSPECTRE_DEBUG")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Platform
|
||||||
|
if TARGET_OS == "Win32" then
|
||||||
|
settings.cc.defines:Add("SPECTRE_PLATFORM_WIN=1")
|
||||||
|
elseif TARGET_OS == "Unix" then
|
||||||
|
settings.cc.defines:Add("SPECTRE_PLATFORM_UNIX=1")
|
||||||
|
end
|
||||||
|
|
||||||
-- FreeType2
|
-- FreeType2
|
||||||
if TARGET_OS == "Win32" then
|
if TARGET_OS == "Win32" then
|
||||||
settings.cc.includes:Add("vendor/FreeType2/include")
|
settings.cc.includes:Add("vendor/FreeType2/include")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue