2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2020-03-26 13:40:39 +00:00
|
|
|
-D__ROS_LONG64__
|
2011-05-16 13:12:07 +00:00
|
|
|
-D_WINE
|
2012-09-09 19:47:25 +00:00
|
|
|
-DLIBXML_STATIC
|
|
|
|
-DCOM_NO_WINDOWS_H)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-04-18 19:33:35 +00:00
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv)
|
2014-04-18 19:33:35 +00:00
|
|
|
|
2015-02-07 23:54:15 +00:00
|
|
|
spec2def(msxml3.dll msxml3.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
|
2012-01-03 00:17:18 +00:00
|
|
|
add_typelib(msxml3_v1.idl)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
attribute.c
|
2012-09-09 19:47:25 +00:00
|
|
|
bsc.c
|
|
|
|
cdata.c
|
2011-05-16 13:12:07 +00:00
|
|
|
comment.c
|
2012-09-09 19:47:25 +00:00
|
|
|
dispex.c
|
|
|
|
docfrag.c
|
|
|
|
doctype.c
|
2011-05-16 13:12:07 +00:00
|
|
|
domdoc.c
|
2012-09-09 19:47:25 +00:00
|
|
|
domimpl.c
|
2011-05-16 13:12:07 +00:00
|
|
|
element.c
|
2012-09-09 19:47:25 +00:00
|
|
|
entityref.c
|
2011-05-16 13:12:07 +00:00
|
|
|
httprequest.c
|
2012-09-09 19:47:25 +00:00
|
|
|
main.c
|
|
|
|
mxnamespace.c
|
|
|
|
mxwriter.c
|
2011-05-16 13:12:07 +00:00
|
|
|
node.c
|
|
|
|
nodelist.c
|
|
|
|
nodemap.c
|
|
|
|
parseerror.c
|
|
|
|
pi.c
|
2012-09-09 19:47:25 +00:00
|
|
|
saxreader.c
|
2011-05-16 13:12:07 +00:00
|
|
|
schema.c
|
2012-09-09 19:47:25 +00:00
|
|
|
selection.c
|
|
|
|
stylesheet.c
|
2011-05-16 13:12:07 +00:00
|
|
|
text.c
|
2012-09-09 19:47:25 +00:00
|
|
|
xdr.c
|
2011-05-16 13:12:07 +00:00
|
|
|
xmldoc.c
|
|
|
|
xmlelem.c
|
2012-09-09 19:47:25 +00:00
|
|
|
xmlparser.c
|
2020-05-09 21:37:40 +00:00
|
|
|
xmlview.c)
|
|
|
|
|
2021-01-28 03:36:00 +00:00
|
|
|
FLEX_TARGET(xslpattern_scanner xslpattern.l ${CMAKE_CURRENT_BINARY_DIR}/xslpattern.yy.c)
|
|
|
|
BISON_TARGET(xslpattern_parser xslpattern.y ${CMAKE_CURRENT_BINARY_DIR}/xslpattern.tab.c COMPILE_FLAGS "-p xslpattern_")
|
|
|
|
ADD_FLEX_BISON_DEPENDENCY(xslpattern_scanner xslpattern_parser)
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
factory.c
|
|
|
|
uuid.c
|
2021-01-28 03:36:00 +00:00
|
|
|
${FLEX_xslpattern_scanner_OUTPUTS}
|
|
|
|
${BISON_xslpattern_parser_OUTPUTS})
|
2019-04-06 21:35:37 +00:00
|
|
|
|
2013-09-23 11:38:27 +00:00
|
|
|
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)
|
2012-09-09 19:47:25 +00:00
|
|
|
|
2013-09-23 11:38:27 +00:00
|
|
|
set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${msxml3_rc_deps}")
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(msxml3 MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
version.rc
|
2020-05-09 21:37:40 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c
|
2014-02-10 12:19:56 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
|
|
|
|
|
2012-09-09 19:47:25 +00:00
|
|
|
add_idl_headers(xmlparser_idlheader xmlparser.idl)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(msxml3 win32dll)
|
2014-04-18 19:33:35 +00:00
|
|
|
target_link_libraries(msxml3 libxml2 iconv-static uuid wine zlib)
|
2020-09-21 10:16:02 +00:00
|
|
|
|
2020-10-16 06:41:35 +00:00
|
|
|
if(MSVC)
|
2020-09-21 10:16:02 +00:00
|
|
|
target_compile_options(msxml3 PRIVATE /FIwine/typeof.h /FImsvc.h)
|
2021-06-29 08:03:28 +00:00
|
|
|
|
|
|
|
# Disable warning C4090: 'function': different 'const' qualifiers
|
|
|
|
target_compile_options(msxml3 PRIVATE /wd4090)
|
2020-09-21 10:16:02 +00:00
|
|
|
endif()
|
|
|
|
|
2013-09-23 11:38:27 +00:00
|
|
|
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
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(msxml3 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)
|