mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[build] Add options to disable dxgi/d3d* build
This commit is contained in:
parent
293551dc8d
commit
32e1afc7a1
@ -1 +1,4 @@
|
|||||||
option('enable_tests', type : 'boolean', value : false)
|
option('enable_tests', type : 'boolean', value : false)
|
||||||
|
option('enable_dxgi', type : 'boolean', value : true, description: 'Build DXGI')
|
||||||
|
option('enable_d3d10', type : 'boolean', value : true, description: 'Build D3D10')
|
||||||
|
option('enable_d3d11', type : 'boolean', value : true, description: 'Build D3D11')
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
d3d11_res = wrc_generator.process('version.rc')
|
d3d11_res = wrc_generator.process('version.rc')
|
||||||
|
|
||||||
|
dxgi_shaders = files([
|
||||||
|
'../dxgi/shaders/dxgi_presenter_frag.frag',
|
||||||
|
'../dxgi/shaders/dxgi_presenter_vert.vert',
|
||||||
|
])
|
||||||
|
|
||||||
dxgi_common_src = [
|
dxgi_common_src = [
|
||||||
'../dxgi/dxgi_format.cpp',
|
'../dxgi/dxgi_format.cpp',
|
||||||
'../dxgi/dxgi_monitor.cpp',
|
'../dxgi/dxgi_monitor.cpp',
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
dxgi_res = wrc_generator.process('version.rc')
|
dxgi_res = wrc_generator.process('version.rc')
|
||||||
|
|
||||||
dxgi_shaders = files([
|
|
||||||
'shaders/dxgi_presenter_frag.frag',
|
|
||||||
'shaders/dxgi_presenter_vert.vert',
|
|
||||||
])
|
|
||||||
|
|
||||||
dxgi_src = [
|
dxgi_src = [
|
||||||
'dxgi_adapter.cpp',
|
'dxgi_adapter.cpp',
|
||||||
'dxgi_enums.cpp',
|
'dxgi_enums.cpp',
|
||||||
|
@ -2,7 +2,30 @@ subdir('util')
|
|||||||
subdir('spirv')
|
subdir('spirv')
|
||||||
subdir('vulkan')
|
subdir('vulkan')
|
||||||
subdir('dxvk')
|
subdir('dxvk')
|
||||||
subdir('dxgi')
|
|
||||||
subdir('dxbc')
|
if get_option('enable_dxgi')
|
||||||
subdir('d3d11')
|
if not get_option('enable_d3d10') and not get_option('enable_d3d11')
|
||||||
subdir('d3d10')
|
error('D3D10 and/or D3D11 required for DXGI to properly functionning.')
|
||||||
|
endif
|
||||||
|
subdir('dxgi')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if get_option('enable_d3d10') or get_option('enable_d3d11') or get_option('enable_tests')
|
||||||
|
subdir('dxbc')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if get_option('enable_d3d11')
|
||||||
|
subdir('d3d11')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if get_option('enable_d3d10')
|
||||||
|
if not get_option('enable_d3d11')
|
||||||
|
error('D3D11 required for D3D10 to properly functionning.')
|
||||||
|
endif
|
||||||
|
subdir('d3d10')
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Nothing selected
|
||||||
|
if not get_option('enable_d3d10') and not get_option('enable_d3d11') and not get_option('enable_tests')
|
||||||
|
error('Nothing selected to be built. Please, enable at least D3D11 or TESTS.')
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user