Browse Source

move include install logic outside src/

master
Daniel Kolesa 1 month ago
parent
commit
9a2de6ffd3
3 changed files with 14 additions and 14 deletions
  1. +13
    -0
      include/meson.build
  2. +1
    -0
      meson.build
  3. +0
    -14
      src/meson.build

+ 13
- 0
include/meson.build View File

@ -0,0 +1,13 @@
libcubescript_headers = [
'cubescript/cubescript.hh',
'cubescript/cubescript_conf.hh',
'cubescript/cubescript/callable.hh',
'cubescript/cubescript/error.hh',
'cubescript/cubescript/ident.hh',
'cubescript/cubescript/platform.hh',
'cubescript/cubescript/state.hh',
'cubescript/cubescript/util.hh',
'cubescript/cubescript/value.hh',
]
install_headers(libcubescript_headers, install_dir: dir_package_include)

+ 1
- 0
meson.build View File

@ -47,6 +47,7 @@ if get_option('cpp_std') == 'none'
endif
endif
subdir('include')
subdir('src')
subdir('tools')


+ 0
- 14
src/meson.build View File

@ -1,15 +1,3 @@
libcubescript_header_src = [
'../include/cubescript/cubescript.hh',
'../include/cubescript/cubescript_conf.hh',
'../include/cubescript/cubescript/callable.hh',
'../include/cubescript/cubescript/error.hh',
'../include/cubescript/cubescript/ident.hh',
'../include/cubescript/cubescript/platform.hh',
'../include/cubescript/cubescript/state.hh',
'../include/cubescript/cubescript/util.hh',
'../include/cubescript/cubescript/value.hh',
]
libcubescript_src = [
'cs_bcode.cc',
'cs_error.cc',
@ -71,5 +59,3 @@ libcubescript = declare_dependency(
include_directories: libcubescript_includes,
link_with: libcubescript_target
)
install_headers(libcubescript_header_src, install_dir: dir_package_include)

Loading…
Cancel
Save