2013-05-18 06:39:08 +04:00
--
2015-01-03 01:43:11 +03:00
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
2013-05-18 06:39:08 +04:00
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
2013-06-05 08:43:43 +04:00
project ( " example-common " )
2013-05-18 06:39:08 +04:00
uuid ( " 21cc0e26-bf62-11e2-a01e-0291bd4c8125 " )
kind " StaticLib "
includedirs {
2015-02-28 02:44:24 +03:00
path.join ( BX_DIR , " include " ) ,
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
2013-05-18 06:39:08 +04:00
}
files {
2015-02-28 02:44:24 +03:00
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/**.h " ) ,
2013-05-18 06:39:08 +04:00
}
2014-08-23 15:24:39 +04:00
2014-10-12 08:55:24 +04:00
if _OPTIONS [ " with-sdl " ] then
defines {
" ENTRY_CONFIG_USE_SDL=1 " ,
}
2014-10-12 20:58:06 +04:00
includedirs {
" $(SDL2_DIR)/include " ,
}
2014-10-12 08:55:24 +04:00
end
2014-12-24 13:46:49 +03:00
configuration { " mingw* or vs2008 " }
includedirs {
" $(DXSDK_DIR)/include " ,
}
2015-03-07 15:11:45 +03:00
if ( _OPTIONS [ " vs " ] == " vs2012-xp " ) or ( _OPTIONS [ " vs " ] == " vs2013-xp " ) then
configuration { " vs201* " }
includedirs {
" $(DXSDK_DIR)/include " ,
}
end
2014-11-10 02:24:22 +03:00
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
}