mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 13:02:33 +01:00
config: Factor out crosscompile tool search
Add search for shaderc, texturec, texturev and geometryv
This commit is contained in:
@@ -4,38 +4,38 @@
|
||||
with section("parse"):
|
||||
|
||||
# Specify structure for custom cmake functions
|
||||
additional_commands = { 'compile_shader_to_header': { 'kwargs': { 'OUTPUT_DIR': 1,
|
||||
'SHADERS': '+',
|
||||
'TYPE': 1,
|
||||
'VARYING_DEF': 1},
|
||||
'pargs': {'flags': [], 'nargs': '*'}},
|
||||
'get_profile_ext': {'pargs': {'nargs': 2}},
|
||||
'shaderc_parse': { 'kwargs': { 'BIN2C': 1,
|
||||
'DEFINES': '+',
|
||||
'FILE': 1,
|
||||
'INCLUDES': '+',
|
||||
'O': 1,
|
||||
'OUTPUT': 1,
|
||||
'PROFILE': 1,
|
||||
'VARYINGDEF': 1},
|
||||
'pargs': { 'flags': [ 'DEPENDS',
|
||||
'ANDROID',
|
||||
'ASM_JS',
|
||||
'IOS',
|
||||
'LINUX',
|
||||
'NACL',
|
||||
'OSX',
|
||||
'WINDOWS',
|
||||
'PREPROCESS',
|
||||
'RAW',
|
||||
'FRAGMENT',
|
||||
'VERTEX',
|
||||
'COMPUTE',
|
||||
'VERBOSE',
|
||||
'DEBUG',
|
||||
'DISASM',
|
||||
'WERROR'],
|
||||
'nargs': '1+'}}}
|
||||
additional_commands = { '_bgfx_get_profile_ext': {'pargs': {'nargs': 2}},
|
||||
'_bgfx_shaderc_parse': { 'kwargs': { 'BIN2C': 1,
|
||||
'DEFINES': '+',
|
||||
'FILE': 1,
|
||||
'INCLUDES': '+',
|
||||
'O': 1,
|
||||
'OUTPUT': 1,
|
||||
'PROFILE': 1,
|
||||
'VARYINGDEF': 1},
|
||||
'pargs': { 'flags': [ 'DEPENDS',
|
||||
'ANDROID',
|
||||
'ASM_JS',
|
||||
'IOS',
|
||||
'LINUX',
|
||||
'NACL',
|
||||
'OSX',
|
||||
'WINDOWS',
|
||||
'PREPROCESS',
|
||||
'RAW',
|
||||
'FRAGMENT',
|
||||
'VERTEX',
|
||||
'COMPUTE',
|
||||
'VERBOSE',
|
||||
'DEBUG',
|
||||
'DISASM',
|
||||
'WERROR'],
|
||||
'nargs': '1+'}},
|
||||
'bgfx_compile_shader_to_header': { 'kwargs': { 'OUTPUT_DIR': 1,
|
||||
'SHADERS': '+',
|
||||
'TYPE': 1,
|
||||
'VARYING_DEF': 1},
|
||||
'pargs': {'flags': [], 'nargs': '*'}}}
|
||||
|
||||
# Override configurations per-command where available
|
||||
override_spec = {}
|
||||
|
||||
Reference in New Issue
Block a user