bgfx/premake/example-01-cubes.lua

40 lines
770 B
Lua
Raw Normal View History

2012-09-17 04:36:08 +04:00
project "example-01-cubes"
uuid "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51"
2012-06-02 06:55:56 +04:00
kind "WindowedApp"
2012-10-08 07:41:18 +04:00
debugdir (BGFX_DIR .. "examples/runtime/")
2012-09-17 04:36:08 +04:00
2012-06-02 06:55:56 +04:00
includedirs {
BGFX_DIR .. "../bx/include",
BGFX_DIR .. "include",
}
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
2012-09-17 04:36:08 +04:00
BGFX_DIR .. "examples/01-cubes/**.cpp",
BGFX_DIR .. "examples/01-cubes/**.h",
2012-06-02 06:55:56 +04:00
}
links {
"bgfx",
}
2012-10-22 09:09:14 +04:00
configuration { "emscripten" }
targetextension ".bc"
2012-06-02 06:55:56 +04:00
configuration { "nacl" }
targetextension ".nexe"
configuration { "nacl", "Release" }
postbuildcommands {
"@echo Stripping symbols.",
"@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
}
2012-06-02 23:44:37 +04:00
configuration { "linux" }
links {
"GL",
"pthread",
}