2 # This file is generated by update.py, please edit CMakeLists.txt.in instead
3 # Generated from %WINE_GIT_VERSION%
7 function (add_apiset apiset_name baseaddress)
8 spec2def(${apiset_name}.dll ${apiset_name}.spec ADD_IMPORTLIB)
11 -D_CTYPE_DISABLE_MACROS
14 -D__STDC_WANT_SECURE_LIB__=0
20 add_library(${apiset_name} SHARED
21 ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}_stubs.c
22 ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)
24 add_dependencies(${apiset_name} xdk)
25 set_module_type(${apiset_name} win32dll ENTRYPOINT 0 UNICODE IMAGEBASE ${baseaddress})
28 add_target_compile_flags(${apiset_name} "-fno-builtin")
30 add_target_compile_flags(${apiset_name} "/wd4026 /wd4273")
33 add_importlibs(${apiset_name} ${ARGN} kernel32 ntdll)
35 add_cd_file(TARGET ${apiset_name} DESTINATION reactos/system32 FOR all)
38 # Apisets will be appended