gnu_symbol_visibility: 'hidden',
include_directories: configinc)
-libp11_library_dep = declare_dependency(include_directories: [configinc,
- commoninc],
- link_with: libp11_library,
- dependencies: thread_deps)
+libp11_library_dep = declare_dependency(link_with: libp11_library,
+ dependencies: [libp11_common_dep] + thread_deps)
libp11_test_sources = [
'mock.c',
libp11_test = static_library('p11-test', libp11_test_sources,
include_directories: configinc)
-libp11_test_dep = declare_dependency(include_directories: [configinc,
- commoninc],
- link_with: libp11_test,
- dependencies: thread_deps)
+libp11_test_dep = declare_dependency(link_with: libp11_test,
+ dependencies: [libp11_common_dep] + thread_deps)
libp11_tool_sources = [
'tool.c'
libp11_tool = static_library('p11-tool', libp11_tool_sources,
include_directories: configinc)
-libp11_tool_dep = declare_dependency(include_directories: [configinc,
- commoninc],
- link_with: libp11_tool)
+libp11_tool_dep = declare_dependency(link_with: libp11_tool,
+ dependencies: [libp11_common_dep])
# Tests ----------------------------------------------------------------
libp11_kit_internal = static_library('p11-kit-internal',
libp11_kit_internal_sources,
- dependencies: [libp11_common_dep,
- libp11_library_dep] + libffi_deps,
+ dependencies: [libp11_library_dep] + libffi_deps,
c_args: libp11_kit_internal_c_args,
implicit_include_directories: false,
gnu_symbol_visibility: 'hidden')
libp11_kit_sources,
c_args: libp11_kit_testable_c_args,
implicit_include_directories: false,
- dependencies: [libp11_common_dep, libp11_library_dep] + libffi_deps + dlopen_deps)
+ dependencies: [libp11_library_dep] + libffi_deps + dlopen_deps)
p11_kit_sources = [
'lists.c',
executable('p11-kit',
p11_kit_sources,
c_args: common_c_args,
- dependencies: [libp11_tool_dep, libp11_common_dep] + libffi_deps + dlopen_deps,
+ dependencies: [libp11_tool_dep] + libffi_deps + dlopen_deps,
link_with: libp11_kit,
install: true)
executable('p11-kit-remote',
'remote.c',
c_args: common_c_args,
- dependencies: [libp11_tool_dep, libp11_common_dep] + libffi_deps + dlopen_deps,
+ dependencies: [libp11_tool_dep] + libffi_deps + dlopen_deps,
link_with: libp11_kit,
install: true,
install_dir: prefix / privatedir)
executable('p11-kit-remote-testable',
'remote.c',
c_args: common_c_args,
- dependencies: [libp11_tool_dep, libp11_common_dep] + libffi_deps + dlopen_deps,
+ dependencies: [libp11_tool_dep] + libffi_deps + dlopen_deps,
link_with: libp11_kit_testable)
executable('p11-kit-server',
c_args: common_c_args + [
'-DP11_KIT_REMOTE="p11-kit-remote"'
],
- dependencies: [libp11_tool_dep, libp11_common_dep] + libsystemd_deps + libffi_deps + dlopen_deps,
+ dependencies: [libp11_tool_dep] + libsystemd_deps + libffi_deps + dlopen_deps,
implicit_include_directories: false,
link_with: libp11_kit,
install: true,
'-DP11_KIT_REMOTE="p11-kit-remote-testable"'
],
implicit_include_directories: false,
- dependencies: [libp11_tool_dep, libp11_common_dep] + libsystemd_deps + libffi_deps + dlopen_deps,
+ dependencies: [libp11_tool_dep] + libsystemd_deps + libffi_deps + dlopen_deps,
link_with: libp11_kit_testable)
# Check if compilation succeeds with CRYPTOKI_GNU=1
t = executable(name, '@0@.c'.format(name),
c_args: tests_c_args + libp11_kit_testable_c_args,
include_directories: [configinc, commoninc],
- dependencies: [libp11_test_dep, libp11_common_dep] + libffi_deps + dlopen_deps,
+ dependencies: [libp11_test_dep] + libffi_deps + dlopen_deps,
link_with: libp11_kit_testable)
test(name, t)
endforeach
t = executable(name, '@0@.c'.format(name),
c_args: tests_c_args,
include_directories: [configinc, commoninc],
- dependencies: [libp11_test_dep, libp11_common_dep] + libffi_deps + dlopen_deps,
+ dependencies: [libp11_test_dep] + libffi_deps + dlopen_deps,
link_with: libp11_kit_testable)
endforeach
shared_module(name,
sources,
name_prefix: '',
- include_directories: [configinc, commoninc],
- dependencies: [libp11_test_dep, libp11_common_dep])
+ dependencies: [libp11_test_dep])
endforeach
p11_kit_pc_variables = [
'module-init.c',
name_prefix: '',
c_args: p11_kit_trust_c_args,
- dependencies: [libp11_library_dep,
- libp11_common_dep] + libtasn1_deps,
+ dependencies: [libp11_library_dep] + libtasn1_deps,
link_with: libtrust_data,
install: true,
install_dir: prefix / p11_module_path)
c_args: common_c_args,
link_with: libtrust_data,
dependencies: [libp11_kit_dep,
- libp11_common_dep,
libp11_tool_dep] + libffi_deps + dlopen_deps + libtasn1_deps,
install: true)
c_args: common_c_args + tests_c_args + libtrust_testable_c_args,
dependencies: [libp11_kit_dep,
libp11_library_dep,
- libp11_test_dep,
- libp11_common_dep] + dlopen_deps,
+ libp11_test_dep] + dlopen_deps,
link_with: [libtrust_testable, libtrust_data, libtrust_test])
test(name, t)
endforeach
c_args: tests_c_args,
dependencies: [libp11_kit_dep,
libp11_library_dep,
- libp11_test_dep,
- libp11_common_dep] + libffi_deps + dlopen_deps,
+ libp11_test_dep] + libffi_deps + dlopen_deps,
link_with: [libtrust_testable, libtrust_data, libtrust_test])
endforeach