2013-05-17 19:39:08 -07:00
--
2014-02-10 22:07:04 -08:00
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
2013-05-17 19:39:08 -07:00
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
2013-02-21 21:13:56 -08:00
project " shaderc "
uuid " f3cd2e90-52a4-11e1-b86c-0800200c9a66 "
kind " ConsoleApp "
local GLSL_OPTIMIZER = ( BGFX_DIR .. " 3rdparty/glsl-optimizer/ " )
local FCPP_DIR = ( BGFX_DIR .. " 3rdparty/fcpp/ " )
2014-10-11 12:32:43 -07:00
includedirs {
GLSL_OPTIMIZER .. " src " ,
}
2013-02-21 21:13:56 -08:00
configuration { " vs* " }
includedirs {
GLSL_OPTIMIZER .. " src/glsl/msvc " ,
}
2013-03-20 21:44:17 -07:00
defines { -- glsl-optimizer
" __STDC__ " ,
" __STDC_VERSION__=199901L " ,
" strdup=_strdup " ,
" alloca=_alloca " ,
" isascii=__isascii " ,
}
2013-03-19 23:34:17 -07:00
buildoptions {
" /wd4996 " -- warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup.
}
2014-10-18 15:44:45 -07:00
configuration { " mingw* or linux or osx " }
2013-04-08 22:06:00 -07:00
buildoptions {
" -fno-strict-aliasing " -- glsl-optimizer has bugs if strict aliasing is used.
}
2013-08-04 20:18:33 -07:00
configuration { " osx " }
links {
" Cocoa.framework " ,
}
2013-02-21 21:13:56 -08:00
configuration { " windows " , " vs* " }
includedirs {
GLSL_OPTIMIZER .. " include/c99 " ,
}
configuration { " windows " }
includedirs {
" $(DXSDK_DIR)/include " ,
}
links {
" d3dx9 " ,
" d3dcompiler " ,
" dxguid " ,
}
configuration { }
2013-03-20 21:44:17 -07:00
defines { -- fcpp
2013-02-21 21:13:56 -08:00
" NINCLUDE=64 " ,
" NWORK=65536 " ,
" NBUFF=65536 " ,
2014-08-22 09:53:14 -07:00
" OLD_PREPROCESSOR=0 " ,
2013-02-21 21:13:56 -08:00
}
includedirs {
2014-08-17 17:20:15 -07:00
BX_DIR .. " include " ,
BGFX_DIR .. " include " ,
2013-02-21 21:13:56 -08:00
FCPP_DIR ,
GLSL_OPTIMIZER .. " include " ,
GLSL_OPTIMIZER .. " src/mesa " ,
GLSL_OPTIMIZER .. " src/mapi " ,
GLSL_OPTIMIZER .. " src/glsl " ,
}
files {
BGFX_DIR .. " tools/shaderc/**.cpp " ,
BGFX_DIR .. " tools/shaderc/**.h " ,
2014-08-17 17:20:15 -07:00
BGFX_DIR .. " src/vertexdecl.** " ,
2013-02-21 21:13:56 -08:00
FCPP_DIR .. " **.h " ,
FCPP_DIR .. " cpp1.c " ,
FCPP_DIR .. " cpp2.c " ,
FCPP_DIR .. " cpp3.c " ,
FCPP_DIR .. " cpp4.c " ,
FCPP_DIR .. " cpp5.c " ,
FCPP_DIR .. " cpp6.c " ,
FCPP_DIR .. " cpp6.c " ,
GLSL_OPTIMIZER .. " src/mesa/**.c " ,
GLSL_OPTIMIZER .. " src/glsl/**.cpp " ,
GLSL_OPTIMIZER .. " src/mesa/**.h " ,
GLSL_OPTIMIZER .. " src/glsl/**.c " ,
GLSL_OPTIMIZER .. " src/glsl/**.cpp " ,
GLSL_OPTIMIZER .. " src/glsl/**.h " ,
2014-10-11 12:32:43 -07:00
GLSL_OPTIMIZER .. " src/util/**.c " ,
GLSL_OPTIMIZER .. " src/util/**.h " ,
2013-02-21 21:13:56 -08:00
}
excludes {
GLSL_OPTIMIZER .. " src/glsl/glcpp/glcpp.c " ,
GLSL_OPTIMIZER .. " src/glsl/glcpp/tests/** " ,
GLSL_OPTIMIZER .. " src/glsl/glcpp/**.l " ,
GLSL_OPTIMIZER .. " src/glsl/glcpp/**.y " ,
GLSL_OPTIMIZER .. " src/glsl/ir_set_program_inouts.cpp " ,
GLSL_OPTIMIZER .. " src/glsl/main.cpp " ,
GLSL_OPTIMIZER .. " src/glsl/builtin_stubs.cpp " ,
}
2013-04-28 14:08:59 -07:00
strip ( )