mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
infra: install capi header file only its binding option is enabled.
decouple the capi header from the default headers by replacing it in capi folder. now it's also installed optionally.
This commit is contained in:
parent
bbfbe95ecc
commit
c2b2aa92c3
3 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,3 @@
|
|||
header_files = ['thorvg.h']
|
||||
|
||||
if get_option('bindings').contains('capi') == true
|
||||
header_files += ['thorvg_capi.h']
|
||||
endif
|
||||
|
||||
install_headers(header_files)
|
||||
|
|
|
@ -6,3 +6,6 @@ subbinding_dep += [declare_dependency(
|
|||
include_directories : include_directories('.'),
|
||||
sources : source_file
|
||||
)]
|
||||
|
||||
install_headers('thorvg_capi.h')
|
||||
headers += include_directories('.')
|
||||
|
|
Loading…
Add table
Reference in a new issue