aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Haag2018-01-18 12:01:55 -0600
committerDylan Baker2018-01-18 12:13:43 -0600
commit3509e7cd2b9098193b9f8c97ecd68fae929eb131 (patch)
treed3a5ce955c9161a68534f95cc95c42b330707ed9 /amdgpu/meson.build
parent032bb3b11d2d559d2f03008e14dcf8ec10e28150 (diff)
downloadexternal-libdrm-3509e7cd2b9098193b9f8c97ecd68fae929eb131.tar.gz
external-libdrm-3509e7cd2b9098193b9f8c97ecd68fae929eb131.tar.xz
external-libdrm-3509e7cd2b9098193b9f8c97ecd68fae929eb131.zip
meson: fix the install path of amdgpu.ids
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Diffstat (limited to 'amdgpu/meson.build')
-rw-r--r--amdgpu/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu/meson.build b/amdgpu/meson.build
index 55ab9d1d..8b045205 100644
--- a/amdgpu/meson.build
+++ b/amdgpu/meson.build
@@ -19,7 +19,7 @@
19# SOFTWARE. 19# SOFTWARE.
20 20
21 21
22datadir_amdgpu = join_paths(get_option('datadir'), 'libdrm', 'amdgpu.ids') 22datadir_amdgpu = join_paths(get_option('prefix'), get_option('datadir'), 'libdrm')
23 23
24libdrm_amdgpu = shared_library( 24libdrm_amdgpu = shared_library(
25 'drm_amdgpu', 25 'drm_amdgpu',
@@ -33,7 +33,7 @@ libdrm_amdgpu = shared_library(
33 ], 33 ],
34 c_args : [ 34 c_args : [
35 warn_c_args, 35 warn_c_args,
36 '-DAMDGPU_ASIC_ID_TABLE="@0@"'.format(datadir_amdgpu), 36 '-DAMDGPU_ASIC_ID_TABLE="@0@"'.format(join_paths(datadir_amdgpu, 'amdgpu.ids')),
37 ], 37 ],
38 include_directories : [inc_root, inc_drm], 38 include_directories : [inc_root, inc_drm],
39 link_with : libdrm, 39 link_with : libdrm,