* Remove wrong librz.pc.in file * Add plugindir variable to .pc files to allow easy plugin configuration * Add CMake config files to find Rizin in CMake projects * Add CI jobs to check cmake files * Provide workaround for mesonbuild/meson#9702 * Use .lib suffix and no prefix on MSVC to make CMake files work * Disable cmake files on static libraries build
48 lines
1.4 KiB
Meson
48 lines
1.4 KiB
Meson
rz_syscall_sources = [
|
|
'syscall.c',
|
|
]
|
|
|
|
rz_syscall = library('rz_syscall', rz_syscall_sources,
|
|
include_directories: [platform_inc],
|
|
c_args: library_cflags,
|
|
dependencies: [rz_util_dep],
|
|
install: true,
|
|
implicit_include_directories: false,
|
|
install_rpath: rpath_lib,
|
|
link_args: library_linkflags,
|
|
soversion: rizin_libversion,
|
|
name_suffix: lib_name_suffix,
|
|
name_prefix: lib_name_prefix,
|
|
)
|
|
|
|
rz_syscall_dep = declare_dependency(link_with: rz_syscall,
|
|
include_directories: [platform_inc])
|
|
|
|
pkgconfig_mod.generate(rz_syscall,
|
|
subdirs: 'librz',
|
|
version: rizin_version,
|
|
name: 'rz_syscall',
|
|
filebase: 'rz_syscall',
|
|
requires: [
|
|
'rz_util'
|
|
],
|
|
description: 'rizin foundation libraries'
|
|
)
|
|
|
|
if not is_static_libs_only
|
|
conf = configuration_data()
|
|
conf.set('RZ_VERSION', rizin_version)
|
|
conf.set('RIZIN_MODULE', rz_syscall.name())
|
|
conf.set('RIZIN_MODULE_DEPS', ' '.join(['rz_util']))
|
|
conf.set('PACKAGE_RELATIVE_PATH', cmake_package_relative_path)
|
|
conf.set('INSTALL_INCDIR', rizin_incdir)
|
|
conf.set('INSTALL_LIBDIR', rizin_libdir)
|
|
conf.set('INSTALL_PLUGDIR', rizin_plugins)
|
|
conf.set('rizin_libname', rz_syscall.name())
|
|
cmake_mod.configure_package_config_file(
|
|
name: conf.get('rizin_libname'),
|
|
input: '../RzModulesConfig.cmake.in',
|
|
install_dir: rizin_cmakedir / conf.get('rizin_libname'),
|
|
configuration: conf,
|
|
)
|
|
endif
|