infra: install capi header file only its binding option is enabled.
authorHermet Park <chuneon.park@samsung.com>
Wed, 2 Jun 2021 11:27:05 +0000 (20:27 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 7 Jun 2021 03:22:48 +0000 (12:22 +0900)
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
src/bindings/capi/meson.build
src/bindings/capi/thorvg_capi.h [moved from inc/thorvg_capi.h with 100% similarity]

index 90e3fc4..e9d002d 100644 (file)
@@ -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)
index 919442a..8b5354f 100644 (file)
@@ -6,3 +6,6 @@ subbinding_dep += [declare_dependency(
     include_directories : include_directories('.'),
     sources : source_file
 )]
+
+install_headers('thorvg_capi.h')
+headers += include_directories('.')