mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
34 lines
854 B
CMake
34 lines
854 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
spec2def(localspl.dll localspl.spec)
|
|
|
|
list(APPEND SOURCE
|
|
localmon.c
|
|
localspl_main.c
|
|
provider.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/localspl_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/localspl.def)
|
|
|
|
add_library(localspl SHARED ${SOURCE} localspl.rc)
|
|
set_module_type(localspl win32dll)
|
|
target_link_libraries(localspl wine)
|
|
|
|
add_importlibs(localspl
|
|
spoolss
|
|
user32
|
|
advapi32
|
|
msvcrt
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_cd_file(TARGET localspl DESTINATION reactos/system32 FOR all)
|
|
|
|
if(NOT MSVC)
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
#allow_warnings(localspl)
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
|
|
endif()
|