Skip to content

Commit 0d1272f

Browse files
mochaaPathre0z
authored andcommitted
build/meson: fix installing generated headers
1 parent 391a981 commit 0d1272f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

meson.build

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ inc_private = include_directories('src')
136136

137137
hdrs_common = files(
138138
'include/Zydis/Defines.h',
139-
'include/Zydis/Generated/EnumISAExt.h',
140-
'include/Zydis/Generated/EnumISASet.h',
141-
'include/Zydis/Generated/EnumInstructionCategory.h',
142-
'include/Zydis/Generated/EnumMnemonic.h',
143-
'include/Zydis/Generated/EnumRegister.h',
144139
'include/Zydis/MetaInfo.h',
145140
'include/Zydis/Mnemonic.h',
146141
'include/Zydis/Register.h',
@@ -156,6 +151,14 @@ hdrs_internal = files(
156151
'include/Zydis/Internal/String.h',
157152
)
158153

154+
hdrs_generated = files(
155+
'include/Zydis/Generated/EnumISAExt.h',
156+
'include/Zydis/Generated/EnumISASet.h',
157+
'include/Zydis/Generated/EnumInstructionCategory.h',
158+
'include/Zydis/Generated/EnumMnemonic.h',
159+
'include/Zydis/Generated/EnumRegister.h',
160+
)
161+
159162
src = files(
160163
'src/MetaInfo.c',
161164
'src/Mnemonic.c',
@@ -223,7 +226,7 @@ if segment.enabled()
223226
)
224227
endif
225228

226-
hdrs = hdrs_common + hdrs_internal
229+
hdrs = hdrs_common + hdrs_internal + hdrs_generated
227230

228231
if host_machine.system() == 'windows'
229232
windows = import('windows')
@@ -244,6 +247,7 @@ zydis_lib = library(
244247

245248
install_headers(hdrs_common, subdir: 'Zydis')
246249
install_headers(hdrs_internal, subdir: 'Zydis/Internal')
250+
install_headers(hdrs_generated, subdir: 'Zydis/Generated')
247251

248252
# Note: on MSVC, define ZYDIS_STATIC_BUILD and ZYCORE_STATIC_BUILD accordingly
249253
# in the user project.

0 commit comments

Comments
 (0)