reactos/dll/win32/msxml3/CMakeLists.txt
Joachim Henze 1e367ccbb7 [0.4.13] Fix VSSolution's msbuild CORE-15991
It regressed by 0.4.12-dev-1064-g 09c4d0a74b
when we tried to mute compiler warnings in the GCC Release configuration
for all modules, that do contain .y files.

In master we switched to use flex+bison to process those files at build-time
in 0.4.15-dev-2277-g 28dadda8be and at the same
time reverted the guilty rev.

In the backport to the old releases we do only revert, but do not introduce
flex+bison. This will reintroduce the warnings in GCC Release configuration.
2021-06-20 00:29:30 +02:00

76 lines
1.7 KiB
CMake

add_definitions(
-D__WINESRC__
-D_WINE
-DLIBXML_STATIC
-DCOM_NO_WINDOWS_H)
if(MSVC)
add_compile_flags("/FIwine/typeof.h /FImsvc.h")
endif()
include_directories(
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv)
spec2def(msxml3.dll msxml3.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
add_typelib(msxml3_v1.idl)
list(APPEND SOURCE
attribute.c
bsc.c
cdata.c
comment.c
dispex.c
docfrag.c
doctype.c
domdoc.c
domimpl.c
element.c
entityref.c
httprequest.c
main.c
mxnamespace.c
mxwriter.c
node.c
nodelist.c
nodemap.c
parseerror.c
pi.c
saxreader.c
schema.c
selection.c
stylesheet.c
text.c
xdr.c
xmldoc.c
xmlelem.c
xmlparser.c
xmlview.c
precomp.h
${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c)
list(APPEND msxml3_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/msxml3.manifest
${CMAKE_CURRENT_SOURCE_DIR}/msxml3_v1.rgs
${CMAKE_CURRENT_SOURCE_DIR}/xmlparser.rgs
${CMAKE_CURRENT_BINARY_DIR}/msxml3_v1.tlb)
set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${msxml3_rc_deps}")
add_library(msxml3 MODULE
${SOURCE}
xslpattern.tab.c
xslpattern.yy.c
factory.c
uuid.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
add_idl_headers(xmlparser_idlheader xmlparser.idl)
set_module_type(msxml3 win32dll)
target_link_libraries(msxml3 libxml2 iconv-static uuid wine zlib)
add_importlibs(msxml3 urlmon ws2_32 shlwapi oleaut32 ole32 user32 msvcrt kernel32 ntdll)
add_dependencies(msxml3 xmlparser_idlheader stdole2) # msxml3_v1.tlb needs stdole2.tlb
add_pch(msxml3 precomp.h SOURCE)
add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)