xref: /reactos/dll/win32/mshtml.tlb/CMakeLists.txt (revision 34134f4c)
1
2ADD_TYPELIB(mshtml_tlb mshtml_tlb.idl)
3add_dependencies(mshtml_tlb stdole2)
4
5add_definitions(-D__WINESRC__)
6
7include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9add_custom_command(
10    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def
11    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.tlb.spec --filename mshtml.tlb
12    DEPENDS native-winebuild)
13set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def PROPERTIES GENERATED TRUE)
14add_custom_target(mshtml.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
15
16add_library(mshtml.tlb SHARED rsrc.rc)
17
18set_entrypoint(mshtml.tlb 0)
19set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
20
21target_link_libraries(mshtml.tlb ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
22
23add_dependencies(mshtml.tlb mshtml_tlb mshtml.tlb_def)
24add_livecd_target(mshtml.tlb reactos/system32)
25