@@ -136,11 +136,6 @@ inc_private = include_directories('src')
136136
137137hdrs_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+
159162src = files (
160163 ' src/MetaInfo.c' ,
161164 ' src/Mnemonic.c' ,
@@ -223,7 +226,7 @@ if segment.enabled()
223226 )
224227endif
225228
226- hdrs = hdrs_common + hdrs_internal
229+ hdrs = hdrs_common + hdrs_internal + hdrs_generated
227230
228231if host_machine .system() == ' windows'
229232 windows = import (' windows' )
@@ -244,6 +247,7 @@ zydis_lib = library(
244247
245248install_headers (hdrs_common, subdir : ' Zydis' )
246249install_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