- define _MIDL_USE_GUIDDEF_ when building iid libraries, so that the guids have declspec(selectany)
- add xml_uuids library
[MSXML3]
- Add an include for MSVC to define missing IIDs
- add CLSID_DOMDocument2
fixes build of msxml3 with MSVC

svn path=/trunk/; revision=52391
This commit is contained in:
Timo Kreuzer 2011-06-20 18:34:57 +00:00
parent fb1a75454e
commit aecc36df54
4 changed files with 25 additions and 1 deletions

View file

@ -11,7 +11,7 @@ add_definitions(
-DLIBXML_STATIC)
if(MSVC)
add_compiler_flags(/FIwine/typeof.h)
add_compiler_flags(/FIwine/typeof.h /FImsvc.h)
endif(MSVC)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
@ -51,6 +51,10 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
if(MSVC)
list(APPEND SOURCE msvc_uuid.c)
endif()
add_library(msxml3 SHARED ${SOURCE})
set_module_type(msxml3 win32dll)
@ -61,6 +65,10 @@ target_link_libraries(msxml3
wine
wineldr)
if(MSVC)
target_link_libraries(msxml3 xml_uuids)
endif()
add_importlibs(msxml3
msvcrt
urlmon

View file

@ -0,0 +1,6 @@
extern const struct _GUID CLSID_DOMDocument;
extern const struct _GUID CLSID_XMLDocument;
extern const struct _GUID CLSID_DOMFreeThreadedDocument;
extern const struct _GUID CLSID_XMLHTTPRequest;
extern const struct _GUID CLSID_XMLDSOControl;

View file

@ -0,0 +1,7 @@
#define INITGUID
#include <guiddef.h>
// This is actually CLSID_DOMDocument, but on gcc builds its defined to be like this
DEFINE_GUID(CLSID_DOMDocument2, 0x2933bf90, 0x7b36, 0x11d2, 0xb2,0x0e, 0x00,0xc0,0x4f,0x98,0x3e,0x60);

View file

@ -1,4 +1,6 @@
add_definitions(-D_MIDL_USE_GUIDDEF_)
list(APPEND SOURCE
# access.idl
activaut.idl
@ -113,5 +115,6 @@ add_idl_headers(psdk ${SOURCE})
add_typelib(stdole2 stdole2.idl)
add_iid_library(wuguid wuapi.idl)
add_iid_library(xml_uuids msxml2.idl)
generate_idl_iids(wincodec.idl)