Skip to content

Commit 459a045

Browse files
committed
[CMAKE]
* Simplify the way we handle importlib targets by taking control of the importlib name. svn path=/trunk/; revision=55764
1 parent d720941 commit 459a045

File tree

132 files changed

+145
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+145
-177
lines changed

reactos/base/shell/explorer/notifyhook/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ add_library(notifyhook SHARED ${SOURCE})
1313
set_module_type(notifyhook win32dll)
1414

1515
add_importlibs(notifyhook user32 msvcrt kernel32)
16-
add_importlib_target(notifyhook.spec)
16+
add_importlib_target(notifyhook.spec notifyhook.dll)
1717
add_cd_file(TARGET notifyhook DESTINATION reactos/system32 FOR all)

reactos/cmake/gcc.cmake

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -192,33 +192,24 @@ if(NOT ARCH MATCHES i386)
192192
set(DECO_OPTION "-@")
193193
endif()
194194

195-
function(add_importlib_target _exports_file)
195+
function(add_importlib_target _exports_file _implib_name)
196196

197197
get_filename_component(_name ${_exports_file} NAME_WE)
198198
get_filename_component(_extension ${_exports_file} EXT)
199-
get_target_property(_suffix ${_name} SUFFIX)
200-
if(${_suffix} STREQUAL "_suffix-NOTFOUND")
201-
get_target_property(_type ${_name} TYPE)
202-
if(${_type} MATCHES EXECUTABLE)
203-
set(_suffix ".exe")
204-
else()
205-
set(_suffix ".dll")
206-
endif()
207-
endif()
208199

209200
if(${_extension} STREQUAL ".spec")
210201

211202
# Normal importlib creation
212203
add_custom_command(
213204
OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a
214-
COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
205+
COMMAND native-spec2def -n=${_implib_name} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
215206
COMMAND ${CMAKE_DLLTOOL} --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a
216207
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
217208

218209
# Delayed importlib creation
219210
add_custom_command(
220211
OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a
221-
COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
212+
COMMAND native-spec2def -n=${_implib_name} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
222213
COMMAND ${CMAKE_DLLTOOL} --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def --kill-at --output-delaylib ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a
223214
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
224215

reactos/cmake/msvc.cmake

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,14 @@ function(set_rc_compiler)
132132
endfunction()
133133

134134
# Thanks MS for creating a stupid linker
135-
function(add_importlib_target _exports_file)
135+
function(add_importlib_target _exports_file _implib_name)
136+
136137
get_filename_component(_name ${_exports_file} NAME_WE)
137-
get_target_property(_suffix ${_name} SUFFIX)
138-
if(${_suffix} STREQUAL "_suffix-NOTFOUND")
139-
get_target_property(_type ${_name} TYPE)
140-
if(${_type} MATCHES EXECUTABLE)
141-
set(_suffix ".exe")
142-
else()
143-
set(_suffix ".dll")
144-
endif()
145-
endif()
146138

147139
# Generate the asm stub file and the export def file
148140
add_custom_command(
149141
OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def
150-
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} --implib -n=${_name}${_suffix} -d=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def -l=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
142+
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} --implib -n=${_implib_name} -d=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def -l=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
151143
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
152144

153145
# Assemble the stub file

reactos/dll/directx/dinput/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ add_importlibs(dinput
3737
ntdll)
3838

3939
add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)
40-
add_importlib_target(dinput.spec)
40+
add_importlib_target(dinput.spec dinput.dll)

reactos/dll/directx/dinput8/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ add_importlibs(dinput8
3232
add_dependencies(dinput8 psdk)
3333

3434
add_cd_file(TARGET dinput8 DESTINATION reactos/system32 FOR all)
35-
add_importlib_target(dinput8.spec)
35+
add_importlib_target(dinput8.spec dinput8.dll)

reactos/dll/directx/dplay/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ add_importlibs(dplay
2727
add_dependencies(dplay psdk)
2828

2929
add_cd_file(TARGET dplay DESTINATION reactos/system32 FOR all)
30-
add_importlib_target(dplay.spec libdplayx)
30+
add_importlib_target(dplay.spec dplay.dll libdplayx)

reactos/dll/directx/dplayx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ add_importlibs(dplayx
3737
ntdll)
3838

3939
add_cd_file(TARGET dplayx DESTINATION reactos/system32 FOR all)
40-
add_importlib_target(dplayx.spec)
40+
add_importlib_target(dplayx.spec dplayx.dll)

reactos/dll/directx/dsound/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ add_importlibs(dsound
3939
ntdll)
4040

4141
add_cd_file(TARGET dsound DESTINATION reactos/system32 FOR all)
42-
add_importlib_target(dsound.spec)
42+
add_importlib_target(dsound.spec dsound.dll)

reactos/dll/directx/ksuser/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set_module_type(ksuser win32dll)
88
add_importlibs(ksuser advapi32 msvcrt kernel32 ntdll)
99
add_dependencies(ksuser psdk bugcodes)
1010
add_cd_file(TARGET ksuser DESTINATION reactos/system32 FOR all)
11-
add_importlib_target(ksuser.spec)
11+
add_importlib_target(ksuser.spec ksuser.dll)

reactos/dll/directx/wine/d3d9/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ add_importlibs(d3d9
4747
add_dependencies(d3d9 wineheaders)
4848
add_pch(d3d9 d3d9_private.h)
4949
add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
50-
add_importlib_target(d3d9.spec)
50+
add_importlib_target(d3d9.spec d3d9.dll)

reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ add_importlibs(d3dx9_24
3030

3131
add_dependencies(d3dx9_24 wineheaders)
3232
add_cd_file(TARGET d3dx9_24 DESTINATION reactos/system32 FOR all)
33-
add_importlib_target(d3dx9_24.spec libd3dx9_36)
33+
add_importlib_target(d3dx9_24.spec d3dx9_24.dll libd3dx9_36)

reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ add_importlibs(d3dx9_25
3131

3232
add_dependencies(d3dx9_25 wineheaders)
3333
add_cd_file(TARGET d3dx9_25 DESTINATION reactos/system32 FOR all)
34-
add_importlib_target(d3dx9_25.spec libd3dx9_24 libd3dx9_36)
34+
add_importlib_target(d3dx9_25.spec d3dx9_25.dll libd3dx9_24 libd3dx9_36)

reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
2323

2424
add_library(d3dx9_36 SHARED ${SOURCE})
2525
set_module_type(d3dx9_36 win32dll)
26-
27-
target_link_libraries(d3dx9_36
28-
wine)
26+
target_link_libraries(d3dx9_36 wine)
2927

3028
add_importlibs(d3dx9_36
3129
d3d9
@@ -38,4 +36,4 @@ add_importlibs(d3dx9_36
3836

3937
add_dependencies(d3dx9_36 wineheaders)
4038
add_cd_file(TARGET d3dx9_36 DESTINATION reactos/system32 FOR all)
41-
add_importlib_target(d3dx9_36.spec)
39+
add_importlib_target(d3dx9_36.spec d3dx9_36.dll)

reactos/dll/directx/wine/ddraw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ add_importlibs(ddraw
5454
add_dependencies(ddraw wineheaders)
5555
add_pch(ddraw ddraw_private.h)
5656
add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
57-
add_importlib_target(ddraw.spec)
57+
add_importlib_target(ddraw.spec ddraw.dll)

reactos/dll/directx/wine/wined3d/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ add_importlibs(wined3d
6969
add_dependencies(wined3d wineheaders)
7070
add_pch(wined3d wined3d_private.h)
7171
add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
72-
add_importlib_target(wined3d.spec)
72+
add_importlib_target(wined3d.spec wined3d.dll)
7373

7474
if(NOT MSVC)
7575
allow_warnings(wined3d)

reactos/dll/ntdll/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ add_pch(ntdll include/ntdll.h)
5252
add_dependencies(ntdll ntstatus asm)
5353

5454
add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
55-
add_importlib_target(def/ntdll.spec)
55+
add_importlib_target(def/ntdll.spec ntdll.dll)

reactos/dll/win32/acledit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ set_module_type(acledit win32dll UNICODE)
1414
add_importlibs(acledit msvcrt kernel32 ntdll)
1515
add_pch(acledit acleditint.h)
1616
add_cd_file(TARGET acledit DESTINATION reactos/system32 FOR all)
17-
add_importlib_target(acledit.spec)
17+
add_importlib_target(acledit.spec acledit.dll)

reactos/dll/win32/aclui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ list(APPEND SOURCE
1616
add_library(aclui SHARED ${SOURCE})
1717
allow_warnings(aclui)
1818
set_module_type(aclui win32dll UNICODE)
19-
add_importlib_target(aclui.spec)
19+
add_importlib_target(aclui.spec aclui.dll)
2020
add_importlibs(aclui user32 gdi32 comctl32 ole32 oleaut32 advapi32 uxtheme msvcrt kernel32 ntdll)
2121
add_pch(aclui precomp.h)
2222
add_cd_file(TARGET aclui DESTINATION reactos/system32 FOR all)

reactos/dll/win32/advapi32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ add_pch(advapi32 advapi32.h
6565
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.h)
6666

6767
add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
68-
add_importlib_target(advapi32.spec)
68+
add_importlib_target(advapi32.spec advapi32.dll)

reactos/dll/win32/atl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ add_importlibs(atl
3737
kernel32
3838
ntdll)
3939

40-
add_importlib_target(atl.spec)
40+
add_importlib_target(atl.spec atl.dll)
4141

4242
add_dependencies(atl atl_atliface_header)
4343
add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)

reactos/dll/win32/avicap32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ target_link_libraries(avicap32 wine)
1414
add_importlibs(avicap32 advapi32 user32 version msvcrt kernel32 ntdll)
1515

1616
add_cd_file(TARGET avicap32 DESTINATION reactos/system32 FOR all)
17-
add_importlib_target(avicap32.spec)
17+
add_importlib_target(avicap32.spec avicap32.dll)

reactos/dll/win32/avifil32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ add_importlibs(avifil32
4040
kernel32
4141
ntdll)
4242

43-
add_importlib_target(avifil32.spec)
43+
add_importlib_target(avifil32.spec avifil32.dll)
4444
add_cd_file(TARGET avifil32 DESTINATION reactos/system32 FOR all)

reactos/dll/win32/batt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add_library(batt SHARED
1010

1111
set_module_type(batt win32dll UNICODE)
1212

13-
add_importlib_target(batt.spec)
13+
add_importlib_target(batt.spec batt.dll)
1414

1515
add_importlibs(batt msvcrt kernel32 ntdll)
1616

reactos/dll/win32/beepmidi/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add_library(beepmidi SHARED ${SOURCE})
1010
set_module_type(beepmidi win32dll ENTRYPOINT 0 UNICODE)
1111

1212
add_importlibs(beepmidi winmm kernel32 ntdll msvcrt)
13-
add_importlib_target(beepmidi.spec)
13+
add_importlib_target(beepmidi.spec beepmidi.dll)
1414

1515
add_dependencies(beepmidi psdk)
1616
add_cd_file(TARGET beepmidi DESTINATION reactos/system32 FOR all)

reactos/dll/win32/cabinet/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ add_library(cabinet SHARED ${SOURCE})
2222
set_module_type(cabinet win32dll ENTRYPOINT 0)
2323
target_link_libraries(cabinet wine zlib)
2424
add_importlibs(cabinet msvcrt kernel32 ntdll)
25-
add_importlib_target(cabinet.spec)
25+
add_importlib_target(cabinet.spec cabinet.dll)
2626
add_pch(cabinet cabinet.h)
2727
add_dependencies(cabinet psdk)
2828
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)

reactos/dll/win32/cards/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ add_library(cards SHARED ${SOURCE})
1616

1717
set_module_type(cards win32dll UNICODE)
1818
add_importlibs(cards user32 gdi32 msvcrt kernel32)
19-
add_importlib_target(cards.spec)
19+
add_importlib_target(cards.spec cards.dll)
2020
add_cd_file(TARGET cards DESTINATION reactos/system32 FOR all)

reactos/dll/win32/comctl32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ add_importlibs(comctl32
6969

7070
add_pch(comctl32 comctl32.h)
7171
add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
72-
add_importlib_target(comctl32.spec)
72+
add_importlib_target(comctl32.spec comctl32.dll)

reactos/dll/win32/comdlg32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ add_importlibs(comdlg32
4141
ntdll)
4242

4343
add_cd_file(TARGET comdlg32 DESTINATION reactos/system32 FOR all)
44-
add_importlib_target(comdlg32.spec)
44+
add_importlib_target(comdlg32.spec comdlg32.dll)

reactos/dll/win32/compstui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ target_link_libraries(compstui wine)
1717

1818
add_importlibs(compstui msvcrt kernel32 ntdll)
1919
add_cd_file(TARGET compstui DESTINATION reactos/system32 FOR all)
20-
add_importlib_target(compstui.spec)
20+
add_importlib_target(compstui.spec compstui.dll)

reactos/dll/win32/credui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ set_module_type(credui win32dll)
2020
target_link_libraries(credui wine)
2121

2222
add_importlibs(credui advapi32 user32 comctl32 msvcrt kernel32 ntdll)
23-
add_importlib_target(credui.spec)
23+
add_importlib_target(credui.spec credui.dll)
2424
add_cd_file(TARGET credui DESTINATION reactos/system32 FOR all)

reactos/dll/win32/crypt32/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,9 @@ list(APPEND SOURCE
4242
${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
4343

4444
add_library(crypt32 SHARED ${SOURCE})
45-
4645
allow_warnings(crypt32)
47-
4846
set_module_type(crypt32 win32dll)
49-
50-
target_link_libraries(crypt32
51-
wine
52-
${PSEH_LIB}
53-
oldnames)
54-
47+
target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
5548
add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
5649
add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
57-
add_importlib_target(crypt32.spec)
50+
add_importlib_target(crypt32.spec crypt32.dll)

reactos/dll/win32/cryptnet/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ add_library(cryptnet SHARED ${SOURCE})
1313
set_module_type(cryptnet win32dll)
1414
target_link_libraries(cryptnet wine)
1515
add_delay_importlibs(cryptnet wininet)
16-
17-
add_importlibs(cryptnet
18-
crypt32
19-
msvcrt
20-
kernel32
21-
ntdll)
22-
23-
add_importlib_target(cryptnet.spec)
16+
add_importlibs(cryptnet crypt32 msvcrt kernel32 ntdll)
17+
add_importlib_target(cryptnet.spec cryptnet.dll)
2418
add_cd_file(TARGET cryptnet DESTINATION reactos/system32 FOR all)

reactos/dll/win32/cryptui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ add_importlibs(cryptui
3232
kernel32
3333
ntdll)
3434

35-
add_importlib_target(cryptui.spec)
35+
add_importlib_target(cryptui.spec cryptui.dll)
3636
add_cd_file(TARGET cryptui DESTINATION reactos/system32 FOR all)

reactos/dll/win32/dbghelp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ target_link_libraries(dbghelp wine ${PSEH_LIB} oldnames)
5151
add_delay_importlibs(dbghelp version)
5252
add_importlibs(dbghelp psapi msvcrt kernel32 ntdll)
5353
add_pch(dbghelp dbghelp_private.h)
54-
add_importlib_target(dbghelp.spec)
54+
add_importlib_target(dbghelp.spec dbghelp.dll)
5555
add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)

reactos/dll/win32/devmgr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ add_importlibs(devmgr
3131
add_pch(devmgr precomp.h)
3232

3333
add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all)
34-
add_importlib_target(devmgr.spec)
34+
add_importlib_target(devmgr.spec devmgr.dll)

reactos/dll/win32/dhcpcsvc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ add_library(dhcpcsvc SHARED ${SOURCE})
2828
set_module_type(dhcpcsvc win32dll)
2929

3030
add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
31-
add_importlib_target(dhcpcsvc.spec)
31+
add_importlib_target(dhcpcsvc.spec dhcpcsvc.dll)
3232

3333
add_pch(dhcpcsvc include/rosdhcp.h)
3434

reactos/dll/win32/dnsapi/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
2727
add_pch(dnsapi dnsapi/precomp.h)
2828
add_dependencies(dnsapi psdk)
2929
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
30-
add_importlib_target(dnsapi.spec)
30+
add_importlib_target(dnsapi.spec dnsapi.dll)

reactos/dll/win32/fmifs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ add_importlibs(fmifs kernel32 ntdll)
2020
add_pch(fmifs precomp.h)
2121
add_dependencies(fmifs psdk)
2222
add_cd_file(TARGET fmifs DESTINATION reactos/system32 FOR all)
23-
add_importlib_target(fmifs.spec)
23+
add_importlib_target(fmifs.spec fmifs.dll)

reactos/dll/win32/gdi32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ target_link_libraries(gdi32
5656
add_importlibs(gdi32 user32 advapi32 msvcrt kernel32 ntdll)
5757
add_pch(gdi32 include/precomp.h)
5858
add_cd_file(TARGET gdi32 DESTINATION reactos/system32 FOR all)
59-
add_importlib_target(gdi32.spec)
59+
add_importlib_target(gdi32.spec gdi32.dll)

reactos/dll/win32/gdiplus/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ add_importlibs(gdiplus
4747
kernel32
4848
ntdll)
4949

50-
add_importlib_target(gdiplus.spec)
50+
add_importlib_target(gdiplus.spec gdiplus.dll)
5151

5252
if(ARCH MATCHES amd64)
5353
target_link_libraries(gdiplus crt)

reactos/dll/win32/getuname/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_library(getuname SHARED
99
getuname.rc
1010
${CMAKE_CURRENT_BINARY_DIR}/getuname.def)
1111

12-
add_importlib_target(getuname.spec)
12+
add_importlib_target(getuname.spec getuname.dll)
1313
set_module_type(getuname win32dll UNICODE)
1414
add_importlibs(getuname msvcrt kernel32 ntdll)
1515
add_cd_file(TARGET getuname DESTINATION reactos/system32 FOR all)

reactos/dll/win32/glu32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ add_importlibs(glu32
122122
ntdll)
123123

124124
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
125-
add_importlib_target(glu32.spec)
125+
add_importlib_target(glu32.spec glu32.dll)

reactos/dll/win32/hlink/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ add_importlibs(hlink
2828
ntdll)
2929

3030
add_pch(hlink hlink_private.h)
31-
add_importlib_target(hlink.spec)
31+
add_importlib_target(hlink.spec hlink.dll)
3232
add_cd_file(TARGET hlink DESTINATION reactos/system32 FOR all)

reactos/dll/win32/icmp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ set_module_type(icmp win32dll)
1717

1818
target_link_libraries(icmp wine)
1919
add_importlibs(icmp ws2_32 msvcrt kernel32 ntdll)
20-
add_importlib_target(icmp.spec)
20+
add_importlib_target(icmp.spec icmp.dll)
2121
add_cd_file(TARGET icmp DESTINATION reactos/system32 FOR all)

reactos/dll/win32/imagehlp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ add_library(imagehlp SHARED ${SOURCE})
1818
set_module_type(imagehlp win32dll)
1919
target_link_libraries(imagehlp wine)
2020
add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
21-
add_importlib_target(imagehlp.spec)
21+
add_importlib_target(imagehlp.spec imagehlp.dll)
2222
add_pch(imagehlp precomp.h)
2323
add_cd_file(TARGET imagehlp DESTINATION reactos/system32 FOR all)

reactos/dll/win32/imm32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ set_module_type(imm32 win32dll)
2626
target_link_libraries(imm32 wine)
2727
add_importlibs(imm32 advapi32 user32 msvcrt kernel32 ntdll)
2828
add_cd_file(TARGET imm32 DESTINATION reactos/system32 FOR all)
29-
add_importlib_target(imm32.spec)
29+
add_importlib_target(imm32.spec imm32.dll)

0 commit comments

Comments
 (0)