bgfx/scripts/example-common.lua

46 lines
1.0 KiB
Lua
Raw Normal View History

2013-05-18 06:39:08 +04:00
--
2014-02-11 10:07:04 +04:00
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
2013-05-18 06:39:08 +04:00
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project ("example-common")
2013-05-18 06:39:08 +04:00
uuid ("21cc0e26-bf62-11e2-a01e-0291bd4c8125")
kind "StaticLib"
includedirs {
BX_DIR .. "include",
BGFX_DIR .. "include",
BGFX_DIR .. "3rdparty",
}
files {
BGFX_DIR .. "3rdparty/ib-compress/**.cpp",
BGFX_DIR .. "3rdparty/ib-compress/**.h",
2013-05-18 06:39:08 +04:00
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
}
if _OPTIONS["with-sdl"] then
defines {
"ENTRY_CONFIG_USE_SDL=1",
}
includedirs {
"$(SDL2_DIR)/include",
}
end
configuration { "mingw* or vs2008" }
includedirs {
"$(DXSDK_DIR)/include",
}
configuration { "xcode4" }
includedirs {
BX_DIR .. "include/compat/osx",
}
configuration { "winphone8*"}
linkoptions {
"/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata
}