2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2012-12-22 10:47:06 +00:00
|
|
|
add_definitions(-D__WINESRC__)
|
2011-05-16 13:12:07 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(hhctrl.ocx hhctrl.ocx.spec)
|
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
chm.c
|
|
|
|
content.c
|
|
|
|
help.c
|
|
|
|
hhctrl.c
|
|
|
|
index.c
|
|
|
|
search.c
|
|
|
|
stream.c
|
|
|
|
webbrowser.c
|
2014-02-10 12:19:56 +00:00
|
|
|
hhctrl.h)
|
|
|
|
|
|
|
|
add_library(hhctrl SHARED
|
|
|
|
${SOURCE}
|
2013-12-25 14:23:09 +00:00
|
|
|
guid.c
|
2013-04-08 16:35:35 +00:00
|
|
|
hhctrl.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/hhctrl.def)
|
|
|
|
|
2013-04-08 16:35:35 +00:00
|
|
|
add_typelib(hhctrl_tlb.idl)
|
2013-04-23 16:35:53 +00:00
|
|
|
|
|
|
|
list(APPEND hhctrl_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/hhctrl_tlb.rgs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/hhctrl_tlb.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(hhctrl.rc PROPERTIES OBJECT_DEPENDS "${hhctrl_rc_deps}")
|
2013-04-22 15:21:38 +00:00
|
|
|
|
|
|
|
# hhctrl_tlb.tlb needs stdole2.tlb
|
|
|
|
add_dependencies(hhctrl stdole2)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(hhctrl win32ocx)
|
2013-12-25 14:23:09 +00:00
|
|
|
target_link_libraries(hhctrl uuid wine)
|
2013-04-08 16:35:35 +00:00
|
|
|
add_importlibs(hhctrl advapi32 comctl32 shlwapi ole32 oleaut32 user32 gdi32 msvcrt kernel32 ntdll)
|
2011-08-11 15:11:25 +00:00
|
|
|
add_dependencies(hhctrl wineheaders)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(hhctrl hhctrl.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET hhctrl DESTINATION reactos/system32 FOR all)
|