Commit 7725ec7b authored by Bart Ribbers's avatar Bart Ribbers

Allow to disable building of examples and tests

parent 71176bfd
Pipeline #201897 passed with stage
in 3 minutes and 41 seconds
......@@ -63,10 +63,16 @@ m_dep = c.find_library('m')
subdir('shaders')
subdir('res')
subdir('src')
subdir('tests')
subdir('examples')
subdir('settings')
if get_option('tests')
subdir('tests')
endif
if get_option('examples')
subdir('examples')
endif
if get_option('api_doc')
subdir('doc')
endif
......@@ -11,3 +11,15 @@ option('renderdoc',
)
option('introspection', type : 'boolean', value : false)
option('tests',
type: 'boolean',
value: true,
description: 'Build the examples'
)
option('examples',
type: 'boolean',
value: true,
description: 'Build the tests'
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment