reactos/dll/win32/msxml3/CMakeLists.txt
Timo Kreuzer 9cc4f5ceee [CMAKE]
Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation.

svn path=/branches/cmake-bringup/; revision=50574
2011-01-31 14:20:53 +00:00

85 lines
1.3 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)
set_rc_compiler()
spec2def(msxml3.dll msxml3.spec)
list(APPEND SOURCE
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_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
add_library(msxml3 SHARED ${SOURCE})
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)