mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
34134f4cfa
- More work on the missing modules. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=49325
24 lines
922 B
CMake
24 lines
922 B
CMake
|
|
ADD_TYPELIB(mshtml_tlb mshtml_tlb.idl)
|
|
add_dependencies(mshtml_tlb stdole2)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def
|
|
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.tlb.spec --filename mshtml.tlb
|
|
DEPENDS native-winebuild)
|
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def PROPERTIES GENERATED TRUE)
|
|
add_custom_target(mshtml.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
|
|
|
|
add_library(mshtml.tlb SHARED rsrc.rc)
|
|
|
|
set_entrypoint(mshtml.tlb 0)
|
|
set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
|
|
|
|
target_link_libraries(mshtml.tlb ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
|
|
|
|
add_dependencies(mshtml.tlb mshtml_tlb mshtml.tlb_def)
|
|
add_livecd_target(mshtml.tlb reactos/system32)
|