mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 10:14:44 +00:00

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
80 lines
1.2 KiB
CMake
80 lines
1.2 KiB
CMake
|
|
ADD_TYPELIB(msxml3_v1 msxml3_v1.idl)
|
|
add_dependencies(msxml3_v1 stdole2)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x601)
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_WINE
|
|
-DLIBXML_STATIC
|
|
-D_DLL
|
|
-D__USE_CRTIMP)
|
|
|
|
if(MSVC)
|
|
add_definitions(/FIwine/typeof.h)
|
|
endif(MSVC)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(msxml3.dll msxml3.spec)
|
|
|
|
add_library(msxml3 SHARED
|
|
attribute.c
|
|
comment.c
|
|
domdoc.c
|
|
element.c
|
|
factory.c
|
|
main.c
|
|
httprequest.c
|
|
node.c
|
|
nodelist.c
|
|
nodemap.c
|
|
parseerror.c
|
|
pi.c
|
|
queryresult.c
|
|
regsvr.c
|
|
schema.c
|
|
text.c
|
|
uuid.c
|
|
xmldoc.c
|
|
xmlelem.c
|
|
saxreader.c
|
|
bsc.c
|
|
cdata.c
|
|
dispex.c
|
|
docfrag.c
|
|
domimpl.c
|
|
entityref.c
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
|
|
|
|
set_module_type(msxml3 win32dll)
|
|
|
|
target_link_libraries(msxml3
|
|
libxml2
|
|
uuid
|
|
wine
|
|
wineldr)
|
|
|
|
add_importlibs(msxml3
|
|
msvcrt
|
|
urlmon
|
|
wininet
|
|
ws2_32
|
|
comctl32
|
|
shell32
|
|
shlwapi
|
|
cabinet
|
|
oleaut32
|
|
ole32
|
|
version
|
|
user32
|
|
gdi32
|
|
advapi32
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(msxml3 msxml3_v1)
|
|
add_cab_target(msxml3 1)
|