* Automatically add _DLL and __USE_CRTIMP definitions when linking to msvcrt.
* Separate some flags from definitions (using add_compiler_flags).
svn path=/trunk/; revision=52213
-add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(find find.c find.rc)
-add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(hostname hostname.c hostname.rc)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
-add_executable(findstr
- findstr.c
- findstr.rc)
+add_executable(findstr findstr.c findstr.rc)
set_module_type(findstr win32cui)
add_importlibs(findstr user32 msvcrt kernel32)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
list(APPEND SOURCE
misc.c
logoff.c
-add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
add_importlibs(dwnl urlmon wininet msvcrt kernel32)
if(MSVC)
-add_importlibs(dwnl ntdll)
+ add_importlibs(dwnl ntdll)
endif()
add_cd_file(TARGET dwnl DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D__USE_W32_SOCKETS
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__USE_W32_SOCKETS)
add_executable(finger
finger.c
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -Dlint)
+add_definitions(-Dlint)
add_executable(ftp
cmds.c
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
set_unicode()
add_executable(route route.c route.rc)
-add_definitions(
- -D_CRT_NONSTDC_NO_DEPRECATE
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
set_cpp()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
add_executable(whois whois.c whois.rc)
set_module_type(whois win32cui)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
set_unicode()
set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
list(APPEND SOURCE
misc.c
shutdown.c
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
set_unicode()
list(APPEND SOURCE
dialog.c
- misc.c
+ misc.c
mixer.c
sndvol32.c
sndvol32.rc)
-D__ROS_LONG64__
-D_CRT_NONSTDC_NO_DEPRECATE
-Dfileno=_fileno
- -Disatty=_isatty
- -D_DLL -D__USE_CRTIMP)
+ -Disatty=_isatty)
add_executable(winhlp32
callback.c
rsrc.rc)
set_module_type(winhlp32 win32gui)
-
target_link_libraries(winhlp32 wine)
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__ROS_LONG64__)
set_rc_compiler()
add_executable(wordpad ${SOURCE})
set_module_type(wordpad win32gui)
-
target_link_libraries(wordpad wine uuid)
add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
add_executable(telnetd
telnetd.c
serviceentry.c
add_definitions(
-DWIN32
- -D__WINDRES__
- -D_DLL -D__USE_CRTIMP)
+ -D__WINDRES__)
#add_pch(explorer precomp.h)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
uuid)
add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
-
set_image_base(explorer 0x00400000)
-
add_dependencies(explorer psdk)
add_cd_file(TARGET explorer DESTINATION reactos FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
set_unicode()
add_executable(bootok bootok.c bootok.rc)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_executable(expand expand.c expand.rc)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
-include_directories(.)
set_rc_compiler()
add_executable(format format.c format.rc)
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D__WINESRC__)
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
rsrc.rc)
set_module_type(msiexec win32gui)
-
target_link_libraries(msiexec uuid wine)
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
add_cd_file(TARGET msiexec DESTINATION reactos/system32 FOR all)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
set_unicode()
-include_directories(.)
set_rc_compiler()
add_executable(regsvr32 regsvr32.c regsvr32.rc)
-include_directories(.)
set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
add_executable(subst subst.c subst.rc)
set_module_type(subst win32cui)
add_dependency_node(${MODULE})
foreach(LIB ${ARGN})
if ("${LIB}" MATCHES "msvcrt")
+ add_definitions(-D_DLL -D__USE_CRTIMP)
target_link_libraries(${MODULE} msvcrtex)
endif()
target_link_libraries(${MODULE} ${CMAKE_BINARY_DIR}/importlibs/lib${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX})
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(dxtn.dll dxtn.spec)
add_library(dxtn SHARED
-D_WINDOWS
-D_MBCS
-DJPEG_DLL
- -Dmain=mainptr
- -D_DLL -D__USE_CRTIMP)
+ -Dmain=mainptr)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
jmemnobs.c)
set_entrypoint(libjpeg 0)
-
add_importlibs(libjpeg msvcrt kernel32)
-
add_dependencies(libjpeg psdk)
-
add_cd_file(TARGET libjpeg DESTINATION reactos/system32 FOR all)
-DWIN32
-DNDEBUG
-D_WINDOWS
- -DPNG_BUILD_DLL
- -D_DLL -D__USE_CRTIMP)
+ -DPNG_BUILD_DLL)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
pngwutil.c)
set_entrypoint(libpng 0)
-
target_link_libraries(libpng zlib)
-
add_importlibs(libpng msvcrt kernel32)
-
add_dependencies(libpng psdk)
-
add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)
-DNDEBUG
-DBUILD_LIBTIFF_DLL
-DDLL_EXPORT
- -DUSE_WIN32_FILEIO
- -D_DLL -D__USE_CRTIMP)
+ -DUSE_WIN32_FILEIO)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff
tif_zip.c)
set_entrypoint(libtiff 0)
-
target_link_libraries(libtiff zlib getopt)
-
add_importlibs(libtiff user32 msvcrt kernel32)
-
add_dependencies(libtiff psdk)
-
add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
-DHAVE_WIN32_THREADS
-D_REENTRANT
-D_WINSOCKAPI_
- -DLIBXML_STATIC
- -D_DLL -D__USE_CRTIMP)
+ -DLIBXML_STATIC)
add_library(libxslt SHARED
attributes.c
xsltutils.c)
set_entrypoint(libxslt 0)
-
target_link_libraries(libxslt libxml2)
-
add_importlibs(libxslt msvcrt ws2_32 kernel32)
+
if(MSVC)
-add_importlibs(libxslt ntdll)
+ add_importlibs(libxslt ntdll)
endif()
add_dependencies(libxslt psdk)
-
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
-add_definitions(-w)
+ add_compiler_flags(-w)
endif()
add_definitions(
-DUSE_EXTERNAL_DXTN_LIB=1
-DBUILD_GL32
-DWIN32
- -DUSE_3DNOW_ASM
- -D_DLL -D__USE_CRTIMP)
+ -DUSE_3DNOW_ASM)
if(ARCH MATCHES i386)
-add_definitions(
- -DUSE_X86_ASM
- -DUSE_MMX_ASM
- -DUSE_SSE_ASM)
+ add_definitions(
+ -DUSE_X86_ASM
+ -DUSE_MMX_ASM
+ -DUSE_SSE_ASM)
else()
-add_definitions(-DGL_NO_STDCALL)
+ add_definitions(-DGL_NO_STDCALL)
endif(ARCH MATCHES i386)
if(NOT MSVC)
src/vbo/vbo_split_inplace.c
src/drivers/windows/icd/mesa.def)
-set_source_files_properties(src/drivers/windows/icd/mesa.def PROPERTIES EXTERNAL_OBJECT TRUE)
-
if(ARCH MATCHES i386)
-list(APPEND SOURCE
- src/tnl/t_vertex_sse.c
- src/x86/3dnow.c
- src/x86/3dnow_normal.S
- src/x86/3dnow_xform1.S
- src/x86/3dnow_xform2.S
- src/x86/3dnow_xform3.S
- src/x86/3dnow_xform4.S
- src/x86/common_x86.c
- src/x86/common_x86_asm.S
- src/x86/glapi_x86.S
- src/x86/mmx_blend.S
- src/x86/read_rgba_span_x86.S
- src/x86/sse_normal.S
- src/x86/sse_xform1.S
- src/x86/sse_xform2.S
- src/x86/sse_xform3.S
- src/x86/sse_xform4.S
- src/x86/sse.c
- src/x86/x86.c
- src/x86/x86_cliptest.S
- src/x86/x86_xform2.S
- src/x86/x86_xform3.S
- src/x86/x86_xform4.S
- src/x86/rtasm/x86sse.c)
+ list(APPEND SOURCE
+ src/tnl/t_vertex_sse.c
+ src/x86/3dnow.c
+ src/x86/3dnow_normal.S
+ src/x86/3dnow_xform1.S
+ src/x86/3dnow_xform2.S
+ src/x86/3dnow_xform3.S
+ src/x86/3dnow_xform4.S
+ src/x86/common_x86.c
+ src/x86/common_x86_asm.S
+ src/x86/glapi_x86.S
+ src/x86/mmx_blend.S
+ src/x86/read_rgba_span_x86.S
+ src/x86/sse_normal.S
+ src/x86/sse_xform1.S
+ src/x86/sse_xform2.S
+ src/x86/sse_xform3.S
+ src/x86/sse_xform4.S
+ src/x86/sse.c
+ src/x86/x86.c
+ src/x86/x86_cliptest.S
+ src/x86/x86_xform2.S
+ src/x86/x86_xform3.S
+ src/x86/x86_xform4.S
+ src/x86/rtasm/x86sse.c)
else()
-list(APPEND SOURCE src/x86-64/x86-64.c src/x86-64/xform4.S)
-endif(ARCH MATCHES i386)
+ list(APPEND SOURCE src/x86-64/x86-64.c src/x86-64/xform4.S)
+endif()
add_library(mesa32 SHARED ${SOURCE})
set_entrypoint(mesa32 0)
-
add_importlibs(mesa32 gdi32 user32 msvcrt kernel32 ntdll)
-
add_dependencies(mesa32 psdk)
-
add_cd_file(TARGET mesa32 DESTINATION reactos/system32 FOR all)
-set_unicode()
-
-add_definitions(
- -D_WIN32
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D_WIN32)
+set_unicode()
set_rc_compiler()
+
spec2def(desk.cpl desk.spec)
add_library(desk SHARED
set_unicode()
set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(intl.cpl intl.spec)
add_library(intl SHARED
set_unicode()
set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(main.cpl main.spec)
add_library(main SHARED
set_unicode()
set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(mmsys.cpl mmsys.spec)
add_library(mmsys SHARED
add_definitions(
-D_WINE
- -D_USE_MATH_DEFINES
- -D_DLL -D__USE_CRTIMP)
+ -D_USE_MATH_DEFINES)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(ksproxy.ax ksproxy.spec)
add_definitions(
- -D_DLL -D__USE_CRTIMP
-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
-DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
#FIXME : can't build if this is enabled, check if this is needed
#set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
target_link_libraries(ksproxy -lsupc++ -lgcc -lmingw32 oldnames)
-endif(MSVC)
+endif()
+
+target_link_libraries(ksproxy stlport strmiids)
-target_link_libraries(ksproxy stlport strmiids)
-
add_importlibs(ksproxy
advapi32
ole32
set_unicode()
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-D__WINESRC__
-DENTRY_PREFIX=QUARTZ_
-DREGISTER_PROXY_DLL
- -DPROXY_DELEGATION
- -D_DLL
- -D__USE_CRTIMP)
+ -DPROXY_DELEGATION)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(
-D__WINESRC__
- -D_WINE
- -D_DLL -D__USE_CRTIMP)
+ -D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(
-D__WINESRC__
- -D_DLL
- -D__USE_CRTIMP
-D_WINE)
remove_definitions(-D_WIN32_WINNT=0x502)
oldnames)
add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
add_importlib_target(crypt32.spec)
add_definitions(
-D__WINESRC__
- -D_DLL
- -D__USE_CRTIMP
-D_WINE
-DHAVE_REGEX_H
-DHAVE_ALLOCA_H
-D_IMAGEHLP_SOURCE_)
if(ARCH MATCHES amd64)
-add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
-endif(ARCH MATCHES amd64)
+ add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
+endif()
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_library(dbghelp SHARED ${SOURCE})
set_module_type(dbghelp win32dll)
-
target_link_libraries(dbghelp
wine
${PSEH_LIB}
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/src
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -DADNS_JGAA_WIN32)
+add_definitions(-DADNS_JGAA_WIN32)
spec2def(dnsapi.dll dnsapi.spec)
add_library(dnsapi SHARED ${SOURCE})
set_entrypoint(dnsapi 0)
-
target_link_libraries(dnsapi adns)
add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi dnsapi/precomp.h)
set_unicode()
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -DLANGPACK)
+add_definitions(-DLANGPACK)
include_directories(include)
spec2def(gdi32.dll gdi32.spec)
if(ARCH MATCHES i386)
-list(APPEND SOURCE
- objects/efloat.c)
+ list(APPEND SOURCE
+ objects/efloat.c)
endif()
list(APPEND SOURCE
add_definitions(
-D__WINESRC__
- -D_USE_MATH_DEFINES
- -D_DLL -D__USE_CRTIMP)
+ -D_USE_MATH_DEFINES)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_library(gdiplus SHARED ${SOURCE})
set_module_type(gdiplus win32dll)
-
target_link_libraries(gdiplus uuid wine)
add_importlibs(gdiplus
ntdll)
add_importlib_target(gdiplus.spec)
-
+
if(ARCH MATCHES amd64)
-target_link_libraries(gdiplus crt)
-endif(ARCH MATCHES amd64)
+ target_link_libraries(gdiplus crt)
+endif()
add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
add_definitions(
-DRESOLVE_3D_TEXTURE_SUPPORT
-DBUILD_GL32
- -DLIBRARYBUILD
- -D_DLL -D__USE_CRTIMP)
+ -DLIBRARYBUILD)
include_directories(
include
add_library(glu32 SHARED ${SOURCE})
set_entrypoint(glu32 0)
-
target_link_libraries(glu32 stlport -lsupc++ -lgcc -lmingw32 oldnames)
add_importlibs(glu32
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D__WINESRC__)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(imaadp32.acm imaadp32.acm.spec)
set_entrypoint(imaadp32.acm 0)
set_target_properties(imaadp32.acm PROPERTIES SUFFIX "")
-
target_link_libraries(imaadp32.acm wine)
-
add_importlibs(imaadp32.acm winmm user32 msvcrt kernel32 ntdll)
add_dependencies(imaadp32.acm psdk)
add_cd_file(TARGET imaadp32.acm DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D_IMAGEHLP_SOURCE_)
-
+add_definitions(-D_IMAGEHLP_SOURCE_)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(imagehlp.dll imagehlp.spec)
add_library(imagehlp SHARED ${SOURCE})
set_module_type(imagehlp win32dll)
-
target_link_libraries(imagehlp wine)
-
add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
add_importlib_target(imagehlp.spec)
-
add_pch(imagehlp precomp.h)
-
add_cd_file(TARGET imagehlp DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(inetmib1.dll inetmib1.spec)
add_library(inetmib1 SHARED ${SOURCE})
set_module_type(inetmib1 win32dll)
-
target_link_libraries(inetmib1 wine)
add_importlibs(inetmib1
set_unicode()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
add_library(itss SHARED ${SOURCE})
set_module_type(itss win32dll)
-
target_link_libraries(itss uuid wine)
add_importlibs(itss
add_typelib(jsglobal jsglobal.idl)
+
add_dependencies(jsglobal stdole2)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(
-D__WINESRC__
-D_USE_MATH_DEFINES
- -D_DLL
- -D__USE_CRTIMP
-Disinf=!_finite
-Disnan=_isnan)
add_definitions(
-D__WINESRC__
- -D_DLL -D__USE_CRTIMP
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_library(mlang SHARED ${SOURCE})
set_entrypoint(mlang 0)
-
target_link_libraries(mlang uuid wine)
add_importlibs(mlang
set_unicode()
-add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D__WINESRC__)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(msadp32.acm msadp32.acm.spec)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
+add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_library(msctf SHARED ${SOURCE})
set_module_type(msctf win32dll)
-
target_link_libraries(msctf uuid wine)
add_importlibs(msctf ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msctf DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D__WINESRC__)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(msg711.acm msg711.acm.spec)
set_entrypoint(msg711.acm 0)
set_target_properties(msg711.acm PROPERTIES SUFFIX "")
-
target_link_libraries(msg711.acm wine)
add_importlibs(msg711.acm winmm user32 msvcrt kernel32 ntdll)
add_dependencies(msg711.acm psdk)
-add_definitions(
- -D_DLL -D__USE_CRTIMP
- -D__WINESRC__)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(msgsm32.acm msgsm32.acm.spec)
set_entrypoint(msgsm32.acm 0)
set_target_properties(msgsm32.acm PROPERTIES SUFFIX "")
-
target_link_libraries(msgsm32.acm wine)
-
add_importlibs(msgsm32.acm winmm user32 msvcrt kernel32 ntdll)
add_dependencies(msgsm32.acm psdk)
add_cd_file(TARGET msgsm32.acm DESTINATION reactos/system32 FOR all)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-add_definitions(
- -D__WINESRC__
- -D_DLL
- -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_idl_Headers(mshtml_nsiface_header nsiface.idl)
action.c
alter.c
appsearch.c
- assembly.c
+ assembly.c
automation.c
classes.c
cond.tab.c
add_library(msi SHARED ${SOURCE})
add_idl_Headers(msi_idlheader msiserver.idl)
-
add_typelib(msi_tlb msiserver.idl)
-
set_module_type(msi win32dll)
-
target_link_libraries(msi uuid ${PSEH_LIB} wine)
-
add_dependencies(msi msi_idlheader msi_tlb)
add_importlibs(msi
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
add_definitions(
-D__WINESRC__
-D_WINE
- -DLIBXML_STATIC
- -D_DLL
- -D__USE_CRTIMP)
+ -DLIBXML_STATIC)
if(MSVC)
-add_definitions(/FIwine/typeof.h)
+ add_compiler_flags(/FIwine/typeof.h)
endif(MSVC)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
+
spec2def(msxml3.dll msxml3.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
-add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
kernel32
ntdll)
-
add_cd_file(TARGET odbc32 DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(odbccp32.dll odbccp32.spec)
${CMAKE_CURRENT_BINARY_DIR}/odbccp32.def)
add_library(odbccp32 SHARED ${SOURCE})
-set_entrypoint(odbccp32 0)
+set_entrypoint(odbccp32 0)
target_link_libraries(odbccp32 uuid wine)
add_importlibs(odbccp32
set_unicode()
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(opengl32.dll opengl32.spec)
list(APPEND SOURCE
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(riched20.dll riched20.spec)
+
set_rc_compiler()
list(APPEND SOURCE
ntdll)
add_importlib_target(riched20.spec)
-
add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)
-add_definitions(
- -D__WINESRC__
- -D_DLL -D__USE_CRTIMP)
-
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(rsaenh.dll rsaenh.spec)
set_unicode()
add_definitions(
- -D_DLL
- -D__USE_CRTIMP
-D_SETUPAPI_
-D_CFGMGR32_
-Dwcsnicmp=_wcsnicmp)
${REACTOS_BINARY_DIR}/include/reactos/idl)
set_rc_compiler()
+
spec2def(setupapi.dll setupapi.spec)
list(APPEND SOURCE
kernel32
ntdll)
-
add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
add_importlib_target(setupapi.spec)
-set_unicode()
-
-add_definitions(-D_DLL -D__USE_CRTIMP)
+set_unicode()
set_rc_compiler()
+
spec2def(syssetup.dll syssetup.spec)
list(APPEND SOURCE
set_module_type(syssetup win32dll)
-target_link_libraries(syssetup
- uuid
- ${PSEH_LIB})
+target_link_libraries(syssetup uuid ${PSEH_LIB})
add_importlibs(syssetup
msvcrt
kernel32
ntdll)
-
add_cd_file(TARGET syssetup DESTINATION reactos/system32 FOR all)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
spec2def(twain_32.dll twain_32.spec)
list(APPEND SOURCE
spec2def(user32.dll user32.spec)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
include_directories(
BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_SOURCE_DIR}/include/reactos/subsys
add_definitions(
- -D_DLL -D__USE_CRTIMP
-D__WINESRC__
-DWIN32)
set_entrypoint(winemp3.acm 0)
set_target_properties(winemp3.acm PROPERTIES SUFFIX "")
-
-target_link_libraries(winemp3.acm
- wine
- libmpg123)
+target_link_libraries(winemp3.acm wine libmpg123)
add_importlibs(winemp3.acm
- msvcrt
winmm
user32
+ msvcrt
kernel32
ntdll)
add_dependencies(winemp3.acm psdk)
-
-add_cd_file(TARGET winemp3.acm DESTINATION reactos/system32 FOR all)
\ No newline at end of file
+add_cd_file(TARGET winemp3.acm DESTINATION reactos/system32 FOR all)
-include_directories(
- .
- include)
+include_directories(include)
add_definitions(
-D__MINGW32__
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
if(NOT MSVC)
- add_definitions(-Wpointer-arith -Wwrite-strings)
+ add_compiler_flags(-Wpointer-arith -Wwrite-strings)
endif()
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
target_link_libraries(inflibhost unicode)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
list(APPEND SOURCE
-add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(
BEFORE .
desktopbg.c
dllmain.c
exitros.c
- file.c
+ file.c
guiconsole.c
handle.c
harderror.c