From 51c44f799d056d7df9e7214331f01b17bd22bf1b Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 2 Jun 2021 20:27:05 +0900 Subject: [PATCH] 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. Change-Id: I11f6ebc238cfd1e4086026846560464aab44ec98 --- inc/meson.build | 4 ---- src/bindings/capi/meson.build | 3 +++ {inc => src/bindings/capi}/thorvg_capi.h | 0 3 files changed, 3 insertions(+), 4 deletions(-) rename {inc => src/bindings/capi}/thorvg_capi.h (100%) diff --git a/inc/meson.build b/inc/meson.build index 90e3fc4..e9d002d 100644 --- a/inc/meson.build +++ b/inc/meson.build @@ -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) diff --git a/src/bindings/capi/meson.build b/src/bindings/capi/meson.build index 919442a..8b5354f 100644 --- a/src/bindings/capi/meson.build +++ b/src/bindings/capi/meson.build @@ -6,3 +6,6 @@ subbinding_dep += [declare_dependency( include_directories : include_directories('.'), sources : source_file )] + +install_headers('thorvg_capi.h') +headers += include_directories('.') diff --git a/inc/thorvg_capi.h b/src/bindings/capi/thorvg_capi.h similarity index 100% rename from inc/thorvg_capi.h rename to src/bindings/capi/thorvg_capi.h -- 2.7.4