Don't install unnecessary files

This commit is contained in:
King_DuckZ 2020-08-28 01:35:07 +01:00
parent 85f7ac321e
commit 440fbd52b9
4 changed files with 46 additions and 42 deletions

View file

@ -29,7 +29,7 @@ sqlitecpp_target = library(meson.project_name(),
'src/Exception.cpp',
'src/Statement.cpp',
'src/Transaction.cpp',
install: true,
install: (not meson.is_subproject() or get_option('default_library')=='shared'),
include_directories: [pub_incdir],
dependencies: [sqlite_dep],
c_args: compiler_opts,
@ -43,17 +43,19 @@ sqlitecpp_dep = declare_dependency(
dependencies: sqlite_dep.partial_dependency(includes: true),
)
install_headers(
'include/SQLiteCpp/Assertion.h',
'include/SQLiteCpp/Backup.h',
'include/SQLiteCpp/Column.h',
'include/SQLiteCpp/Database.h',
'include/SQLiteCpp/Exception.h',
'include/SQLiteCpp/ExecuteMany.h',
'include/SQLiteCpp/SQLiteCpp.h',
'include/SQLiteCpp/Statement.h',
'include/SQLiteCpp/Transaction.h',
'include/SQLiteCpp/Utils.h',
'include/SQLiteCpp/VariadicBind.h',
subdir: meson.project_name(),
)
if not meson.is_subproject()
install_headers(
'include/SQLiteCpp/Assertion.h',
'include/SQLiteCpp/Backup.h',
'include/SQLiteCpp/Column.h',
'include/SQLiteCpp/Database.h',
'include/SQLiteCpp/Exception.h',
'include/SQLiteCpp/ExecuteMany.h',
'include/SQLiteCpp/SQLiteCpp.h',
'include/SQLiteCpp/Statement.h',
'include/SQLiteCpp/Transaction.h',
'include/SQLiteCpp/Utils.h',
'include/SQLiteCpp/VariadicBind.h',
subdir: meson.project_name(),
)
endif

View file

@ -9,28 +9,30 @@ curl_dep = dependency('libcurl', version: '>=7.28.0')
public_incl = include_directories('include')
subdir('src')
install_headers(
'include/cookie.h',
'include/cookie_date.h',
'include/cookie_datetime.h',
'include/cookie_time.h',
'include/curl_config.h',
'include/curl_cookie.h',
'include/curl_easy.h',
'include/curl_easy_info.h',
'include/curl_exception.h',
'include/curl_form.h',
'include/curl_global.h',
'include/curl_header.h',
'include/curl_info.h',
'include/curl_interface.h',
'include/curl_ios.h',
'include/curl_multi.h',
'include/curl_option.h',
'include/curl_pair.h',
'include/curl_receiver.h',
'include/curl_sender.h',
'include/curl_share.h',
'include/curl_utility.h',
subdir: meson.project_name(),
)
if not meson.is_subproject()
install_headers(
'include/cookie.h',
'include/cookie_date.h',
'include/cookie_datetime.h',
'include/cookie_time.h',
'include/curl_config.h',
'include/curl_cookie.h',
'include/curl_easy.h',
'include/curl_easy_info.h',
'include/curl_exception.h',
'include/curl_form.h',
'include/curl_global.h',
'include/curl_header.h',
'include/curl_info.h',
'include/curl_interface.h',
'include/curl_ios.h',
'include/curl_multi.h',
'include/curl_option.h',
'include/curl_pair.h',
'include/curl_receiver.h',
'include/curl_sender.h',
'include/curl_share.h',
'include/curl_utility.h',
subdir: meson.project_name(),
)
endif

View file

@ -14,7 +14,7 @@ curlcpp = library(meson.project_name(),
'cookie_datetime.cpp',
dependencies: [curl_dep],
include_directories: public_incl,
install: true,
install: (not meson.is_subproject() or get_option('default_library')=='shared')
)
curlcpp_dep = declare_dependency(

View file

@ -2,7 +2,7 @@ simdjson = static_library(meson.project_name(),
'simdjson.cpp',
'error.cpp',
include_directories: public_incl,
install: true,
install: not meson.is_subproject(),
cpp_args: compiler_opts,
dependencies: [thread_dep],
)