mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
infra: disable capi in default.
capi is not mandatory option in v0.1. we can manually toggle it on when it's necessary.
This commit is contained in:
parent
28008e2f91
commit
3a538340aa
2 changed files with 19 additions and 5 deletions
|
@ -19,7 +19,7 @@ option('vectors',
|
||||||
option('bindings',
|
option('bindings',
|
||||||
type: 'array',
|
type: 'array',
|
||||||
choices: ['', 'capi'],
|
choices: ['', 'capi'],
|
||||||
value: ['capi'],
|
value: [''],
|
||||||
description: 'Enable C API binding')
|
description: 'Enable C API binding')
|
||||||
|
|
||||||
option('tools',
|
option('tools',
|
||||||
|
|
|
@ -5,7 +5,6 @@ source_file = [
|
||||||
'Async.cpp',
|
'Async.cpp',
|
||||||
'Blending.cpp',
|
'Blending.cpp',
|
||||||
'Boundary.cpp',
|
'Boundary.cpp',
|
||||||
'Capi.cpp',
|
|
||||||
'CustomTransform.cpp',
|
'CustomTransform.cpp',
|
||||||
'DirectUpdate.cpp',
|
'DirectUpdate.cpp',
|
||||||
'Duplicate.cpp',
|
'Duplicate.cpp',
|
||||||
|
@ -42,7 +41,22 @@ source_file = [
|
||||||
foreach current_file : source_file
|
foreach current_file : source_file
|
||||||
name = current_file.split('.')[0]
|
name = current_file.split('.')[0]
|
||||||
executable(name, current_file,
|
executable(name, current_file,
|
||||||
include_directories : headers,
|
include_directories : headers,
|
||||||
link_with : thorvg_lib,
|
link_with : thorvg_lib,
|
||||||
dependencies : examples_dep)
|
dependencies : examples_dep)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
|
||||||
|
if get_option('bindings').contains('capi') == true
|
||||||
|
capi_source_file = [
|
||||||
|
'Capi.cpp'
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach current_file : capi_source_file
|
||||||
|
name = current_file.split('.')[0]
|
||||||
|
executable(name, current_file,
|
||||||
|
include_directories : headers,
|
||||||
|
link_with : thorvg_lib,
|
||||||
|
dependencies : examples_dep)
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue