diff options
author | MITSUNARI Shigeo <[email protected]> | 2024-03-07 17:09:21 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2024-03-07 17:09:21 +0900 |
commit | 487a6d14c59e7601901eae2ae49ebb6ba22ef672 (patch) | |
tree | 6c8a45859d54db056a7a5838ffc017510249aa0c | |
parent | 9c0f5d3ecb06d2c93c2b59becb9b3b763213e74e (diff) | |
parent | 9f535729159baf467c3bd8dc7ec017a40289a12c (diff) | |
download | xbyak-487a6d14c59e7601901eae2ae49ebb6ba22ef672.tar.gz xbyak-487a6d14c59e7601901eae2ae49ebb6ba22ef672.zip |
Merge branch 'dev'
-rw-r--r-- | meson.build | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 9e82420..e5a7c3d 100644 --- a/meson.build +++ b/meson.build @@ -10,7 +10,8 @@ project( default_options: 'b_ndebug=if-release' ) -install_subdir('xbyak', install_dir: get_option('includedir')) +include_dir = get_option('prefix') / get_option('includedir') +install_subdir('xbyak', install_dir: include_dir) xbyak_dep = declare_dependency(include_directories: include_directories('.')) @@ -22,15 +23,19 @@ import('pkgconfig').generate( name: meson.project_name(), description: 'JIT assembler for x86(IA32), x64(AMD64, x86-64)', version: meson.project_version(), - url: 'https://github.com/herumi/xbyak' + url: 'https://github.com/herumi/xbyak', + variables: ['includedir=@0@'.format(include_dir)], + dataonly: true, ) +shared_cmake_dir = get_option('prefix') / 'share/cmake/xbyak' if meson.version().version_compare('>=0.50.0') cmake = import('cmake') cmake.write_basic_package_version_file( name: meson.project_name(), - version: meson.project_version() + version: meson.project_version(), + install_dir: shared_cmake_dir, ) cmake_conf = configuration_data() @@ -40,6 +45,7 @@ if meson.version().version_compare('>=0.50.0') cmake.configure_package_config_file( name: meson.project_name(), input: 'cmake'/'meson-config.cmake.in', - configuration: cmake_conf + configuration: cmake_conf, + install_dir: shared_cmake_dir, ) endif |