mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 01:18:56 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
47 lines
1.2 KiB
CMake
47 lines
1.2 KiB
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
add_definitions(-D__WINESRC__)
|
|
spec2def(ieframe.dll ieframe.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
classinfo.c
|
|
client.c
|
|
dochost.c
|
|
events.c
|
|
frame.c
|
|
ie.c
|
|
ieframe_main.c
|
|
iehtmlwnd.c
|
|
iexplore.c
|
|
intshcut.c
|
|
navigate.c
|
|
oleobject.c
|
|
persist.c
|
|
shellbrowser.c
|
|
shelluihelper.c
|
|
urlhist.c
|
|
view.c
|
|
webbrowser.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/ieframe_stubs.c)
|
|
|
|
add_library(ieframe MODULE
|
|
${SOURCE}
|
|
ieframe.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/ieframe.def)
|
|
|
|
add_typelib(ieframe_v1.idl)
|
|
|
|
list(APPEND ieframe_rc_deps
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ieframe.rgs
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ieframe_v1.rgs
|
|
${CMAKE_CURRENT_BINARY_DIR}/ieframe_v1.tlb)
|
|
|
|
set_source_files_properties(ieframe.rc PROPERTIES OBJECT_DEPENDS "${ieframe_rc_deps}")
|
|
add_dependencies(ieframe stdole2)
|
|
set_module_type(ieframe win32dll)
|
|
target_link_libraries(ieframe uuid wine)
|
|
add_importlibs(ieframe urlmon shell32 comctl32 shlwapi oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(ieframe precomp.h SOURCE)
|
|
add_cd_file(TARGET ieframe DESTINATION reactos/system32 FOR all)
|