2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(xmllite.dll xmllite.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
reader.c
|
2012-03-19 15:17:34 +00:00
|
|
|
writer.c
|
2011-05-16 13:12:07 +00:00
|
|
|
xmllite_main.c
|
|
|
|
#${REACTOS_BINARY_DIR}/include/psdk/xmllite_i.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/xmllite_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
|
|
|
|
|
2012-12-11 10:53:36 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
|
|
#allow_warnings(xmllite)
|
2012-12-11 11:04:27 +00:00
|
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
|
2012-12-11 10:53:36 +00:00
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-12-11 10:53:36 +00:00
|
|
|
add_library(xmllite SHARED ${SOURCE})
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(xmllite win32dll)
|
|
|
|
target_link_libraries(xmllite wine uuid)
|
|
|
|
add_importlibs(xmllite msvcrt kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET xmllite DESTINATION reactos/system32 FOR all)
|