mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
2bbcb92109
Added OSX entry point and OpenGL context
46 lines
896 B
Lua
Executable file
46 lines
896 B
Lua
Executable file
project "example-01-cubes"
|
|
uuid "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51"
|
|
kind "WindowedApp"
|
|
|
|
debugdir (BGFX_DIR .. "examples/runtime/")
|
|
|
|
includedirs {
|
|
BX_DIR .. "include",
|
|
BGFX_DIR .. "include",
|
|
}
|
|
|
|
files {
|
|
BGFX_DIR .. "examples/common/**.cpp",
|
|
BGFX_DIR .. "examples/common/**.h",
|
|
BGFX_DIR .. "examples/common/**.mm",
|
|
BGFX_DIR .. "examples/01-cubes/**.cpp",
|
|
BGFX_DIR .. "examples/01-cubes/**.h",
|
|
}
|
|
|
|
links {
|
|
"bgfx",
|
|
}
|
|
|
|
configuration { "emscripten" }
|
|
targetextension ".bc"
|
|
|
|
configuration { "nacl" }
|
|
targetextension ".nexe"
|
|
|
|
configuration { "nacl", "Release" }
|
|
postbuildcommands {
|
|
"@echo Stripping symbols.",
|
|
"@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
|
|
}
|
|
|
|
configuration { "linux" }
|
|
links {
|
|
"GL",
|
|
"pthread",
|
|
}
|
|
|
|
configuration { "macosx" }
|
|
links {
|
|
"Cocoa.framework",
|
|
"OpenGL.framework",
|
|
}
|