* Remove duplicate _DLL and __USE_CRTIMP definitions.
* Link some modules to uuid/oldnames in msvc build.
svn path=/trunk/; revision=52352
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_executable(comctl32_winetest ${SOURCE})
target_link_libraries(comctl32_winetest wine)
+
+if(MSVC)
+ target_link_libraries(comctl32_winetest uuid)
+endif()
+
set_module_type(comctl32_winetest win32cui)
add_importlibs(comctl32_winetest comctl32 ole32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET comctl32_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
list(APPEND SOURCE
filedlg.c
add_executable(comdlg32_winetest ${SOURCE})
target_link_libraries(comdlg32_winetest wine)
+
+if(MSVC)
+ target_link_libraries(comdlg32_winetest uuid)
+endif()
+
set_module_type(comdlg32_winetest win32cui)
add_importlibs(comdlg32_winetest comdlg32 winspool user32 gdi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET comdlg32_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
list(APPEND SOURCE
mimeintl.c
add_executable(inetcomm_winetest ${SOURCE})
target_link_libraries(inetcomm_winetest wine)
+
+if(MSVC)
+ target_link_libraries(inetcomm_winetest uuid)
+endif()
+
set_module_type(inetcomm_winetest win32cui)
add_importlibs(inetcomm_winetest inetcomm oleaut32 ole32 msvcrt kernel32 ntdll)
add_cd_file(TARGET inetcomm_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
set_rc_compiler()
add_executable(itss_winetest protocol.c testlist.c rsrc.rc)
target_link_libraries(itss_winetest wine)
+
+if(MSVC)
+ target_link_libraries(itss_winetest uuid)
+endif()
+
set_module_type(itss_winetest win32cui)
add_importlibs(itss_winetest ole32 msvcrt kernel32 ntdll)
add_cd_file(TARGET itss_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
set_rc_compiler()
add_executable(jscript_winetest ${SOURCE})
target_link_libraries(jscript_winetest wine)
+
+if(MSVC)
+ target_link_libraries(jscript_winetest uuid)
+endif()
+
set_module_type(jscript_winetest win32cui)
add_importlibs(jscript_winetest ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET jscript_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
add_executable(msctf_winetest inputprocessor.c testlist.c)
target_link_libraries(msctf_winetest wine)
+
+if(MSVC)
+ target_link_libraries(msctf_winetest uuid)
+endif()
+
set_module_type(msctf_winetest win32cui)
add_importlibs(msctf_winetest ole32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msctf_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
list(APPEND SOURCE
task.c
add_executable(mstask_winetest ${SOURCE})
target_link_libraries(mstask_winetest wine)
+
+if(MSVC)
+ target_link_libraries(mstask_winetest uuid)
+endif()
+
set_module_type(mstask_winetest win32cui)
add_importlibs(mstask_winetest ole32 msvcrt kernel32 ntdll)
add_cd_file(TARGET mstask_winetest DESTINATION reactos/bin FOR all)
add_definitions(
-D__ROS_LONG64__
- -D_CRT_NONSTDC_NO_DEPRECATE
- -D_DLL -D__USE_CRTIMP)
+ -D_CRT_NONSTDC_NO_DEPRECATE)
list(APPEND SOURCE
cpp.c
time.c)
add_executable(msvcrt_winetest ${SOURCE})
+
+if(MSVC)
+ target_link_libraries(msvcrt_winetest oldnames)
+endif()
+
set_module_type(msvcrt_winetest win32cui)
add_importlibs(msvcrt_winetest msvcrt kernel32 ntdll)
add_cd_file(TARGET msvcrt_winetest DESTINATION reactos/bin FOR all)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
list(APPEND SOURCE
enum_files.c
add_executable(qmgr_winetest ${SOURCE})
target_link_libraries(qmgr_winetest wine)
+
+if(MSVC)
+ target_link_libraries(qmgr_winetest uuid)
+endif()
+
set_module_type(qmgr_winetest win32cui)
add_importlibs(qmgr_winetest ole32 shlwapi user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET qmgr_winetest DESTINATION reactos/bin FOR all)