File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,13 @@ function(add_importlib_target _exports_file)
268
268
endfunction ()
269
269
270
270
function (spec2def _dllname _spec_file )
271
- get_filename_component (_file ${_spec_file} NAME_WE )
271
+
272
+ if (${ARGC} GREATER 2 )
273
+ set (_file ${ARGV2} )
274
+ else ()
275
+ get_filename_component (_file ${_spec_file} NAME_WE )
276
+ endif ()
277
+
272
278
add_custom_command (
273
279
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /${_file}.def ${CMAKE_CURRENT_BINARY_DIR} /${_file}_stubs.c
274
280
COMMAND native-spec2def -n=${_dllname} --kill-at -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR} /${_spec_file}
Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ macro(add_delay_importlibs MODULE)
186
186
endmacro ()
187
187
188
188
function (spec2def _dllname _spec_file )
189
- get_filename_component (_file ${_spec_file} NAME_WE )
189
+ if (${ARGC} GREATER 2 )
190
+ set (_file ${ARGV2} )
191
+ else ()
192
+ get_filename_component (_file ${_spec_file} NAME_WE )
193
+ endif ()
190
194
add_custom_command (
191
195
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /${_file}.def ${CMAKE_CURRENT_BINARY_DIR} /${_file}_stubs.c
192
196
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR} /${_spec_file}
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ list(APPEND HAL_GENERIC_ACPI_SOURCE
47
47
generic/legacy/bus/pcibus.c )
48
48
49
49
if (ARCH MATCHES i386 )
50
+ list (APPEND HAL_GENERIC_ACPI_SOURCE
51
+ generic/halinit.c )
50
52
51
53
list (APPEND HAL_GENERIC_UP_SOURCE
52
54
generic/spinlock.c
@@ -102,6 +104,24 @@ if(ARCH MATCHES i386)
102
104
103
105
add_cd_file (TARGET hal DESTINATION reactos/system32 NO_CAB FOR all )
104
106
107
+ # hal acpi
108
+ spec2def (halacpi.dll ../hal.spec halacpi )
109
+ add_library (halacpi SHARED
110
+ ${HAL_GENERIC_SOURCE}
111
+ ${HAL_GENERIC_ACPI_SOURCE}
112
+ ${HAL_GENERIC_UP_SOURCE}
113
+ up/halinit_up.c
114
+ up/halup.rc
115
+ ${CMAKE_CURRENT_BINARY_DIR} /halacpi.def )
116
+ add_dependencies (halacpi psdk bugcodes )
117
+ set_entrypoint (halacpi HalInitSystem@8 )
118
+ set_subsystem (halacpi native )
119
+ set_image_base (halacpi 0x00010000 )
120
+ add_importlibs (halacpi ntoskrnl )
121
+ target_link_libraries (halacpi libcntpr )
122
+ set_property (TARGET halacpi PROPERTY COMPILE_DEFINITIONS CONFIG_ACPI )
123
+ add_cd_file (TARGET halacpi DESTINATION reactos/system32 NO_CAB FOR all )
124
+
105
125
# mini_hal
106
126
add_library (mini_hal ${MINI_HAL_SOURCE} )
107
127
set_property (TARGET mini_hal PROPERTY COMPILE_DEFINITIONS "_BLDR_;_MINIHAL_" )
You can’t perform that action at this time.
0 commit comments