2016-08-29 22:31:11 +02:00
--
2018-02-03 17:39:28 +01:00
-- Copyright 2010-2018 Branimir Karadzic. All rights reserved.
2016-08-29 22:31:11 +02:00
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
2018-02-03 17:39:28 +01:00
project ( " example-glue " )
kind " StaticLib "
includedirs {
path.join ( BX_DIR , " include " ) ,
path.join ( BIMG_DIR , " include " ) ,
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
}
files {
path.join ( BGFX_DIR , " examples/common/example-glue.cpp " ) ,
}
2016-08-29 22:31:11 +02:00
project ( " example-common " )
kind " StaticLib "
includedirs {
2017-04-11 09:15:27 +02:00
path.join ( BX_DIR , " include " ) ,
path.join ( BIMG_DIR , " include " ) ,
2016-08-29 22:31:11 +02:00
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
}
files {
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/ocornut-imgui/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/ocornut-imgui/**.h " ) ,
path.join ( BGFX_DIR , " examples/common/**.cpp " ) ,
path.join ( BGFX_DIR , " examples/common/**.cpp " ) ,
path.join ( BGFX_DIR , " examples/common/**.h " ) ,
}
2018-02-03 17:39:28 +01:00
removefiles {
path.join ( BGFX_DIR , " examples/common/example-glue.cpp " ) ,
}
2016-08-29 22:31:11 +02:00
if _OPTIONS [ " with-scintilla " ] then
defines {
" SCI_NAMESPACE " ,
" SCI_LEXER " ,
}
buildoptions {
-- "-Wno-missing-field-initializers",
}
includedirs {
path.join ( BGFX_DIR , " 3rdparty/scintilla/include " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib " ) ,
}
files {
path.join ( BGFX_DIR , " 3rdparty/scintilla/src/**.cxx " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/src/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib/**.cxx " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexers/**.cxx " ) ,
}
end
if _OPTIONS [ " with-sdl " ] then
defines {
" ENTRY_CONFIG_USE_SDL=1 " ,
}
includedirs {
" $(SDL2_DIR)/include " ,
}
end
if _OPTIONS [ " with-glfw " ] then
defines {
" ENTRY_CONFIG_USE_GLFW=1 " ,
}
end
configuration { " linux-steamlink " }
defines {
" EGL_API_FB " ,
}
configuration { " osx or ios* or tvos* " }
files {
path.join ( BGFX_DIR , " examples/common/**.mm " ) ,
}
2018-02-03 17:39:28 +01:00
configuration { " winstore* or durango " }
2016-08-29 22:31:11 +02:00
files {
path.join ( BGFX_DIR , " examples/common/**.cx " ) ,
}
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
}
premake.vstudio . splashpath = " ../../../examples/runtime/images/SplashScreen.png "