diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
commit | 7ffba8afee76edba6433d97864119501731742e8 (patch) | |
tree | 38b5eb5bd019b77b33f7ad8d7de7ef7666ebe8b1 /khtml | |
parent | 0db4822126702d04068c5761e63ed9684a08981b (diff) | |
download | tdelibs-7ffba8afee76edba6433d97864119501731742e8.tar.gz tdelibs-7ffba8afee76edba6433d97864119501731742e8.zip |
[kdelibs] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml')
-rw-r--r-- | khtml/CMakeLists.txt | 142 | ||||
-rw-r--r-- | khtml/css/CMakeLists.txt | 51 | ||||
-rw-r--r-- | khtml/dom/CMakeLists.txt | 62 | ||||
-rw-r--r-- | khtml/ecma/CMakeLists.txt | 66 | ||||
-rw-r--r-- | khtml/html/CMakeLists.txt | 48 | ||||
-rw-r--r-- | khtml/java/CMakeLists.txt | 79 | ||||
-rw-r--r-- | khtml/java/dummy/CMakeLists.txt | 22 | ||||
-rw-r--r-- | khtml/kmultipart/CMakeLists.txt | 52 | ||||
-rw-r--r-- | khtml/misc/CMakeLists.txt | 45 | ||||
-rw-r--r-- | khtml/pics/CMakeLists.txt | 20 | ||||
-rw-r--r-- | khtml/rendering/CMakeLists.txt | 51 | ||||
-rw-r--r-- | khtml/xml/CMakeLists.txt | 47 |
12 files changed, 685 insertions, 0 deletions
diff --git a/khtml/CMakeLists.txt b/khtml/CMakeLists.txt new file mode 100644 index 000000000..d696ca60c --- /dev/null +++ b/khtml/CMakeLists.txt @@ -0,0 +1,142 @@ +################################################# +# +# (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( kmultipart ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + khtmlview.h khtml_part.h khtml_events.h + khtml_settings.h khtmldefaults.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES khtml.desktop khtmlimage.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES khtml.rc khtml_browser.rc khtml_popupmenu.rc DESTINATION ${DATA_INSTALL_DIR}/khtml ) + + +##### khtml ##################################### + +set( target khtml ) + +set( ${target}_SRCS + khtmlview.cpp khtml_part.cpp khtml_run.cpp + khtml_factory.cpp khtml_settings.cc khtml_events.cpp + khtml_ext.cpp khtml_pagecache.cpp khtml_iface.cc + khtml_printsettings.cpp khtmlimage.cpp kjserrordlg.ui + htmlpageinfo.ui khtml_iface.skel +) + +### FIXME what is this? +### if include_VERSION_SCRIPT +### VSCRIPT = -Wl,--version-script=$(srcdir)/libkhtml.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 khtmldom-static khtmlcss-static + khtmlhtml-static khtmlxml-static khtmlrender-static khtmlmisc-static + kutils-shared kdeprint-shared kjs-shared ${JPEG_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### libkhtmlpart ############################## + +set( target libkhtmlpart ) + +set( ${target}_SRCS + dummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp +"#include <kdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_libkhtml(); +extern \"C\" KDE_EXPORT void* init_libkhtmlpart() { return init_libkhtml(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### khtmlimagepart ############################ + +set( target khtmlimagepart ) + +set( ${target}_SRCS + imgdummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/imgdummy.cpp +" +#include <kdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_khtmlimagefactory(); +extern \"C\" KDE_EXPORT void* init_khtmlimagepart() { return init_khtmlimagefactory(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/css/CMakeLists.txt b/khtml/css/CMakeLists.txt new file mode 100644 index 000000000..53c261559 --- /dev/null +++ b/khtml/css/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### other data ################################ + +install( FILES html4.css quirks.css DESTINATION ${DATA_INSTALL_DIR}/khtml/css ) + + +##### khtmlcss (static) ######################### + +set( target khtmlcss ) + +set( ${target}_SRCS + css_stylesheetimpl.cpp css_ruleimpl.cpp css_valueimpl.cpp + css_base.cpp cssparser.cpp cssstyleselector.cpp + csshelper.cpp parser.cpp css_renderstyledeclarationimpl.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + diff --git a/khtml/dom/CMakeLists.txt b/khtml/dom/CMakeLists.txt new file mode 100644 index 000000000..b3e3e0591 --- /dev/null +++ b/khtml/dom/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (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} ${USE_EXCEPTIONS} ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio +) + + +##### headers ################################### + +install( FILES + dom_exception.h html_base.h html_inline.h + css_rule.h dom_html.h html_block.h html_list.h + css_stylesheet.h dom_misc.h html_document.h html_misc.h + css_value.h dom_node.h html_element.h html_object.h + dom_core.h dom_string.h html_form.h html_table.h + dom_doc.h dom_text.h html_head.h + dom_element.h dom_xml.h html_image.h + dom2_range.h dom2_traversal.h dom2_events.h + dom2_views.h + #css_extensions.h + DESTINATION ${INCLUDE_INSTALL_DIR}/dom ) + + +##### khtmldom-static ############################ + +set( target khtmldom ) + +set( ${target}_SRCS + dom_misc.cpp html_block.cpp html_inline.cpp css_rule.cpp + dom_node.cpp html_document.cpp html_list.cpp css_stylesheet.cpp + dom_string.cpp html_element.cpp html_misc.cpp css_value.cpp + dom_text.cpp html_object.cpp dom_doc.cpp dom_xml.cpp + html_head.cpp dom_element.cpp html_base.cpp html_image.cpp + html_form.cpp dom2_range.cpp html_table.cpp dom2_traversal.cpp + dom2_events.cpp dom2_views.cpp + #css_extensions.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/ecma/CMakeLists.txt b/khtml/ecma/CMakeLists.txt new file mode 100644 index 000000000..6f0fa885b --- /dev/null +++ b/khtml/ecma/CMakeLists.txt @@ -0,0 +1,66 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/bookmarks + ${CMAKE_SOURCE_DIR}/kjs + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kjs_html-static ########################### + +set( target kjs_html ) + +set( ${target}_SRCS + kjs_binding.cpp kjs_dom.cpp kjs_html.cpp kjs_window.cpp + kjs_navigator.cpp kjs_proxy.cpp kjs_css.cpp + kjs_range.cpp kjs_traversal.cpp kjs_events.cpp + kjs_views.cpp kjs_debugwin.cpp kjs_mozilla.cpp + xmlhttprequest.cpp xmlserializer.cpp domparser.cpp +) + +set( ${target}_LUTS + kjs_dom.cpp kjs_html.cpp kjs_css.cpp kjs_events.cpp + kjs_navigator.cpp kjs_mozilla.cpp kjs_range.cpp + kjs_traversal.cpp kjs_views.cpp kjs_window.cpp + xmlhttprequest.cpp xmlserializer.cpp domparser.cpp +) + +tde_add_luts( ${${target}_LUTS} ) +kde3_automoc( ${${target}_SRCS} ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + diff --git a/khtml/html/CMakeLists.txt b/khtml/html/CMakeLists.txt new file mode 100644 index 000000000..4b636dbaa --- /dev/null +++ b/khtml/html/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kwallet/client +) + +##### khtmlhtml-static ########################### + +set( target khtmlhtml ) + +set( ${target}_SRCS + htmlparser.cpp htmltokenizer.cpp dtd.cpp html_headimpl.cpp + html_blockimpl.cpp html_elementimpl.cpp html_inlineimpl.cpp + html_documentimpl.cpp html_baseimpl.cpp html_imageimpl.cpp + html_listimpl.cpp html_miscimpl.cpp html_formimpl.cpp + html_objectimpl.cpp html_tableimpl.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/java/CMakeLists.txt b/khtml/java/CMakeLists.txt new file mode 100644 index 000000000..5e2fcafb0 --- /dev/null +++ b/khtml/java/CMakeLists.txt @@ -0,0 +1,79 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( dummy ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kssl +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### configure ################################# + +set( KJAVA_POLICYPATH "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/kjava/-" ) +configure_file( kjava.policy.in kjava.policy @ONLY ) + + +##### install data ############################## + +install( FILES kjavaappletviewer.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kjava.jar ${CMAKE_CURRENT_BINARY_DIR}/kjava.policy pluginsinfo DESTINATION ${DATA_INSTALL_DIR}/kjava ) +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kjava/icons ) + + +##### kjava-static ############################## + +set( target kjava ) + +set( ${target}_SRCS + kjavaapplet.cpp kjavaappletcontext.cpp kjavaappletserver.cpp + kjavaappletwidget.cpp kjavaprocess.cpp kjavadownloader.cpp +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} +) + + +##### kjavaappletviewer ######################### + +set( target kjavaappletviewer ) + +set( ${target}_SRCS + kjavaapplet.cpp kjavaappletcontext.cpp + kjavaappletserver.cpp kjavaappletwidget.cpp kjavaprocess.cpp + kjavadownloader.cpp kjavaappletviewer.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/java/dummy/CMakeLists.txt b/khtml/java/dummy/CMakeLists.txt new file mode 100644 index 000000000..59fc65eb4 --- /dev/null +++ b/khtml/java/dummy/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### kjava ##################################### + +set( target kjava ) + +configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_library( ${target} SHARED + SOURCES dummy.cpp + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/khtml/kmultipart/CMakeLists.txt b/khtml/kmultipart/CMakeLists.txt new file mode 100644 index 000000000..bcd28ec24 --- /dev/null +++ b/khtml/kmultipart/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kmultipart.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkmultipart ############################# + +set( target libkmultipart ) + +set( ${target}_SRCS + kmultipart.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK httpfilter-static kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/misc/CMakeLists.txt b/khtml/misc/CMakeLists.txt new file mode 100644 index 000000000..93913df3b --- /dev/null +++ b/khtml/misc/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kio/kfile +) + + +##### khtmlmisc-static ########################### + +set( target khtmlmisc ) + +set( ${target}_SRCS + decoder.cpp loader.cpp loader_jpeg.cpp guess_ja.cpp + htmlhashes.cpp helper.cpp arena.cpp stringit.cpp + knsplugininstaller.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/pics/CMakeLists.txt b/khtml/pics/CMakeLists.txt new file mode 100644 index 000000000..49e567671 --- /dev/null +++ b/khtml/pics/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### icons ##################################### + +tde_install_icons( + bug images_display wallet_open + DESTINATION ${DATA_INSTALL_DIR}/khtml/icons ) + +tde_install_icons( + dbgnext dbgrun dbgrunto dbgstep +) diff --git a/khtml/rendering/CMakeLists.txt b/khtml/rendering/CMakeLists.txt new file mode 100644 index 000000000..da4c0c535 --- /dev/null +++ b/khtml/rendering/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### khtmlrender-static ######################### + +set( target khtmlrender ) + +set( ${target}_SRCS + bidi.cpp break_lines.cpp render_block.cpp render_inline.cpp + render_style.cpp render_object.cpp render_container.cpp render_box.cpp + render_flow.cpp render_text.cpp render_arena.cpp render_layer.cpp + render_image.cpp render_table.cpp table_layout.cpp + render_replaced.cpp render_form.cpp render_list.cpp + render_canvas.cpp render_frames.cpp render_br.cpp + render_body.cpp font.cpp render_line.cpp render_generated.cpp + enumerate.cpp counter_tree.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/xml/CMakeLists.txt b/khtml/xml/CMakeLists.txt new file mode 100644 index 000000000..b21335367 --- /dev/null +++ b/khtml/xml/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### khtmlxml-static ############################ + +set( target khtmlxml ) + +set( ${target}_SRCS + dom_docimpl.cpp dom_nodeimpl.cpp dom_textimpl.cpp + dom_elementimpl.cpp dom_stringimpl.cpp dom2_rangeimpl.cpp + dom2_traversalimpl.cpp xml_tokenizer.cpp dom_xmlimpl.cpp + dom2_eventsimpl.cpp dom2_viewsimpl.cpp dom_restyler.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) |