Skip to content
Snippets Groups Projects
Commit 340c4080 authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Factor out common installation path for helpers

parent c93aa4f9
No related branches found
No related tags found
1 merge request!77Look for vulkaninfo, wflinfo in SRT_HELPERS_PATH
...@@ -25,10 +25,7 @@ executable( ...@@ -25,10 +25,7 @@ executable(
multiarch + '-true', multiarch + '-true',
'true.c', 'true.c',
install : true, install : true,
install_dir : join_paths( install_dir : pkglibexecdir,
get_option('libexecdir'),
'steam-runtime-tools-' + api_major,
)
) )
executable( executable(
...@@ -37,10 +34,7 @@ executable( ...@@ -37,10 +34,7 @@ executable(
include_directories : project_include_dirs, include_directories : project_include_dirs,
dependencies : [json_glib, glib], dependencies : [json_glib, glib],
install : true, install : true,
install_dir : join_paths( install_dir : pkglibexecdir,
get_option('libexecdir'),
'steam-runtime-tools-' + api_major,
)
) )
executable( executable(
...@@ -48,10 +42,7 @@ executable( ...@@ -48,10 +42,7 @@ executable(
'inspect-library.c', 'inspect-library.c',
dependencies : [libdl], dependencies : [libdl],
install : true, install : true,
install_dir : join_paths( install_dir : pkglibexecdir,
get_option('libexecdir'),
'steam-runtime-tools-' + api_major,
)
) )
executable( executable(
......
...@@ -150,6 +150,11 @@ libdl = c_compiler.find_library('dl', required : false) ...@@ -150,6 +150,11 @@ libdl = c_compiler.find_library('dl', required : false)
project_include_dirs = include_directories('.') project_include_dirs = include_directories('.')
pkglibexecdir = join_paths(
get_option('libexecdir'),
'steam-runtime-tools-' + api_major,
)
if host_machine.cpu_family() == 'x86_64' if host_machine.cpu_family() == 'x86_64'
multiarch = 'x86_64-linux-gnu' multiarch = 'x86_64-linux-gnu'
elif host_machine.cpu_family() == 'x86' elif host_machine.cpu_family() == 'x86'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment