diff options
Diffstat (limited to 'tdehtml/CMakeLists.txt')
-rw-r--r-- | tdehtml/CMakeLists.txt | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/tdehtml/CMakeLists.txt b/tdehtml/CMakeLists.txt new file mode 100644 index 000000000..bab7d78e2 --- /dev/null +++ b/tdehtml/CMakeLists.txt @@ -0,0 +1,137 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WOVERLOADED_VIRTUAL}" ) + +add_subdirectory( misc ) +add_subdirectory( dom ) +add_subdirectory( css ) +add_subdirectory( xml ) +add_subdirectory( html ) +add_subdirectory( rendering ) +add_subdirectory( pics ) +add_subdirectory( java ) +add_subdirectory( ecma ) +add_subdirectory( tdemultipart ) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_BINARY_DIR}/tdecore + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/tdefx + ${CMAKE_SOURCE_DIR}/tdecore + ${CMAKE_SOURCE_DIR}/tdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/tdeutils + ${CMAKE_SOURCE_DIR}/tdewallet/client + ${CMAKE_SOURCE_DIR}/tdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + tdehtmlview.h tdehtml_part.h tdehtml_events.h + tdehtml_settings.h tdehtmldefaults.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES tdehtml.desktop tdehtmlimage.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdehtml.rc tdehtml_browser.rc tdehtml_popupmenu.rc DESTINATION ${DATA_INSTALL_DIR}/tdehtml ) + + +##### tdehtml ##################################### + +set( target tdehtml ) + +set( ${target}_SRCS + tdehtmlview.cpp tdehtml_part.cpp tdehtml_run.cpp + tdehtml_factory.cpp tdehtml_settings.cc tdehtml_events.cpp + tdehtml_ext.cpp tdehtml_pagecache.cpp tdehtml_iface.cc + tdehtml_printsettings.cpp tdehtmlimage.cpp kjserrordlg.ui + htmlpageinfo.ui tdehtml_iface.skel +) + +### FIXME what is this? +### if include_VERSION_SCRIPT +### VSCRIPT = -Wl,--version-script=$(srcdir)/libtdehtml.map +### endif + +### FIXME what about java? +### FIXME maybe static libs must be embedded? + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK ${VSCRIPT} kjava-static kjs_html-static tdehtmldom-static tdehtmlcss-static + tdehtmlhtml-static tdehtmlxml-static tdehtmlrender-static tdehtmlmisc-static + tdeutils-shared tdeprint-shared kjs-shared ${JPEG_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### libtdehtmlpart ############################## + +set( target libtdehtmlpart ) + +set( ${target}_SRCS + dummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp +"#include <tdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_libtdehtml(); +extern \"C\" KDE_EXPORT void* init_libtdehtmlpart() { return init_libtdehtml(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### tdehtmlimagepart ############################ + +set( target tdehtmlimagepart ) + +set( ${target}_SRCS + imgdummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/imgdummy.cpp +" +#include <tdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_tdehtmlimagefactory(); +extern \"C\" KDE_EXPORT void* init_tdehtmlimagepart() { return init_tdehtmlimagefactory(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) |