summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt98
-rw-r--r--src/canvas/CMakeLists.txt29
-rw-r--r--src/codecs/CMakeLists.txt50
-rw-r--r--src/dialogs/CMakeLists.txt49
-rw-r--r--src/inputmethod/CMakeLists.txt31
-rw-r--r--src/kernel/CMakeLists.txt187
-rw-r--r--src/kernel/ntqgif.h4
-rw-r--r--src/kernel/qapplication_x11.cpp4
-rw-r--r--src/moc/CMakeLists.txt98
-rw-r--r--src/network/CMakeLists.txt44
-rw-r--r--src/opengl/CMakeLists.txt48
-rw-r--r--src/sql/CMakeLists.txt100
-rw-r--r--src/styles/CMakeLists.txt80
-rw-r--r--src/table/CMakeLists.txt30
-rw-r--r--src/tools/CMakeLists.txt75
-rw-r--r--src/tools/qconfig.cpp.cmake27
-rw-r--r--src/tools/qcstring.cpp9
-rw-r--r--src/tools/qstring.cpp3
-rw-r--r--src/tqt3.pc.cmake12
-rw-r--r--src/widgets/CMakeLists.txt91
-rw-r--r--src/workspace/CMakeLists.txt30
-rw-r--r--src/xml/CMakeLists.txt32
22 files changed, 1128 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 000000000..40a42f635
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,98 @@
+
+# prepare includes
+
+file( GLOB_RECURSE _includes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h )
+list( SORT _includes )
+
+unset( _private_includes )
+foreach( _include IN LISTS _includes )
+
+ # skip 3rdparty, attic, moc, sql drivers and obsolete includes
+ if( "${_include}" MATCHES "^(3rdparty/|attic/|moc/|sql/drivers/|kernel/(qt_pch|qwindow))" )
+ list( REMOVE_ITEM _includes "${_include}" )
+ endif()
+
+ # split private includes
+ if( "${_include}" MATCHES "_p.h$" )
+ list( REMOVE_ITEM _includes "${_include}" )
+ list( APPEND _private_includes "${_include}" )
+ endif()
+
+endforeach( _include )
+
+if( BUILD_LIB )
+ unset( _prepare_includes )
+else()
+ set( _prepare_includes "ONLY_SYMLINK" )
+endif()
+
+tqt_install_includes( ${_includes} ${_prepare_includes} )
+tqt_install_includes( ${_private_includes} DESTINATION "private" ${_prepare_includes} )
+
+
+if( BUILD_LIB )
+
+# subdirectories
+
+set( tqtlib_embed "" )
+
+add_subdirectory( tools )
+add_subdirectory( kernel )
+add_subdirectory( codecs )
+#add_subdirectory( moc )
+
+tde_conditional_add_subdirectory( WITH_MODULE_STYLES styles )
+tde_conditional_add_subdirectory( WITH_MODULE_CANVAS canvas )
+tde_conditional_add_subdirectory( WITH_MODULE_DIALOGS dialogs )
+tde_conditional_add_subdirectory( WITH_MODULE_INPUTMETHOD inputmethod )
+tde_conditional_add_subdirectory( WITH_MODULE_TABLE table )
+tde_conditional_add_subdirectory( WITH_MODULE_WIDGETS widgets )
+tde_conditional_add_subdirectory( WITH_MODULE_WORKSPACE workspace )
+tde_conditional_add_subdirectory( WITH_MODULE_XML xml )
+tde_conditional_add_subdirectory( WITH_MODULE_NETWORK network )
+tde_conditional_add_subdirectory( WITH_MODULE_OPENGL opengl )
+tde_conditional_add_subdirectory( WITH_MODULE_SQL sql )
+
+
+##### tqt3 library
+
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
+
+tde_add_library( tqt-mt SHARED
+
+ SOURCES
+ dummy.cpp
+ EMBED
+ ${tqtlib_embed}
+ LINK
+ ${CMAKE_THREAD_LIBS_INIT}
+
+ VERSION 3.5.0
+
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### other data
+
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" QT_INSTALL_HEADERS ${INCLUDE_INSTALL_DIR} )
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" QT_INSTALL_LIBS ${LIB_INSTALL_DIR} )
+
+configure_file( ${PROJECT_NAME}.pc.cmake ${PROJECT_NAME}.pc @ONLY )
+
+install(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
+ DESTINATION ${PKGCONFIG_INSTALL_DIR}
+)
+
+install(
+ FILES
+ ${CMAKE_BINARY_DIR}/include/ntqconfig.h
+ ${CMAKE_BINARY_DIR}/include/ntqmodules.h
+
+ DESTINATION
+ ${QT_INSTALL_HEADERS}
+)
+
+endif()
diff --git a/src/canvas/CMakeLists.txt b/src/canvas/CMakeLists.txt
new file mode 100644
index 000000000..b130c95e9
--- /dev/null
+++ b/src/canvas/CMakeLists.txt
@@ -0,0 +1,29 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### canvas (static)
+
+set( target canvas )
+set( _SRC_ qcanvas.cpp )
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/codecs/CMakeLists.txt b/src/codecs/CMakeLists.txt
new file mode 100644
index 000000000..b200b3167
--- /dev/null
+++ b/src/codecs/CMakeLists.txt
@@ -0,0 +1,50 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### codecs (static)
+
+set( target codecs )
+set( _SRC_ qbig5codec.cpp
+ qeucjpcodec.cpp
+ qeuckrcodec.cpp
+ qisciicodec.cpp
+ qgb18030codec.cpp
+ qjiscodec.cpp
+ qjpunicode.cpp
+ qrtlcodec.cpp
+ qsjiscodec.cpp
+ qtextcodec.cpp
+ qtsciicodec.cpp
+ qutfcodec.cpp
+ qtextcodecfactory.cpp
+ qtextcodecplugin.cpp
+ qfontcncodec.cpp
+ qfonthkcodec.cpp
+ qfontjpcodec.cpp
+ qfontkrcodec.cpp
+ qfontlaocodec.cpp
+ qfonttwcodec.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/dialogs/CMakeLists.txt b/src/dialogs/CMakeLists.txt
new file mode 100644
index 000000000..0e85ffa38
--- /dev/null
+++ b/src/dialogs/CMakeLists.txt
@@ -0,0 +1,49 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${TIRPC_INCLUDE_DIRS}
+ ${FREETYPE_INCLUDE_DIRS}
+ ${CUPS_INCLUDE_DIR}
+)
+
+link_directories()
+
+
+##### dialogs (static)
+
+set( target dialogs )
+set( _SRC_ qprintdialog.cpp
+ qcolordialog.cpp
+ qdialog.cpp
+ qerrormessage.cpp
+ qfiledialog.cpp
+ qfontdialog.cpp
+ qmessagebox.cpp
+ qprogressdialog.cpp
+ qtabdialog.cpp
+ qwizard.cpp
+ qinputdialog.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ ${NO_CUPS}
+)
diff --git a/src/inputmethod/CMakeLists.txt b/src/inputmethod/CMakeLists.txt
new file mode 100644
index 000000000..27ef77133
--- /dev/null
+++ b/src/inputmethod/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### inputmethod (static)
+
+set( target inputmethod )
+set( _SRC_ qinputcontextfactory.cpp
+ qinputcontextplugin.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/kernel/CMakeLists.txt b/src/kernel/CMakeLists.txt
new file mode 100644
index 000000000..4a1d6408d
--- /dev/null
+++ b/src/kernel/CMakeLists.txt
@@ -0,0 +1,187 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${FREETYPE_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/src/3rdparty/opentype
+ ${NAS_INCLUDE_DIRS}
+ ${GLIB2_INCLUDE_DIRS}
+ ${X11_X11_INCLUDE_PATH}
+ ${X11_Xutil_INCLUDE_PATH}
+ ${X11_Xft_INCLUDE_PATH}
+ ${X11_Xshape_INCLUDE_PATH}
+ ${X11_Xinput_INCLUDE_PATH}
+ ${X11_Xinerama_INCLUDE_PATH}
+ ${X11_Xrandr_INCLUDE_PATH}
+ ${X11_Xrender_INCLUDE_PATH}
+ ${X11_XSync_INCLUDE_PATH}
+ ${X11_Xkblib_INCLUDE_PATH}
+ ${X11_SM_INCLUDE_PATH}
+ ${X11_Xcursor_INCLUDE_PATH}
+ ${LIB_MNG_INCLUDE_DIRS}
+ ${JPEG_INCLUDE_DIR}
+ ${PNG_INCLUDE_DIRS}
+ ${ZLIB_INCLUDE_DIRS}
+)
+
+link_directories()
+
+
+##### kernel (static)
+
+set( target kernel )
+set( _SRC_ qtaddons_x11.cpp
+ tqttdeintegration_x11.cpp
+ qapplication_x11.cpp
+ qclipboard_x11.cpp
+ qcolor_x11.cpp
+ qcursor_x11.cpp
+ qdnd_x11.cpp
+ qdesktopwidget_x11.cpp
+ qfont_x11.cpp
+ qinputcontext.cpp
+ qinputcontext_x11.cpp
+ qmotifdnd_x11.cpp
+ qpixmap_x11.cpp
+ qpaintdevice_x11.cpp
+ qpainter_x11.cpp
+ qregion_x11.cpp
+ qsound_x11.cpp
+ qwidget_x11.cpp
+ qwidgetcreate_x11.cpp
+ qfontengine_x11.cpp
+ qprinter_unix.cpp
+ qpsprinter.cpp
+ qprocess_unix.cpp
+ qthread_unix.cpp
+ qabstractlayout.cpp
+ qucomextra.cpp
+ qaccel.cpp
+ qapplication.cpp
+ qasyncimageio.cpp
+ qasyncio.cpp
+ qbitmap.cpp
+ qclipboard.cpp
+ qcolor.cpp
+ qcolor_p.cpp
+ qconnection.cpp
+ qcursor.cpp
+ qdragobject.cpp
+ qdrawutil.cpp
+ qdropsite.cpp
+ qevent.cpp
+ qeventloop.cpp
+ qfocusdata.cpp
+ qfont.cpp
+ qfontdatabase.cpp
+ qguardedptr.cpp
+ qiconset.cpp
+ qimage.cpp
+ qimageformatplugin.cpp
+ qkeysequence.cpp
+ qlayout.cpp
+ qlayoutengine.cpp
+ qtranslator.cpp
+ qmetaobject.cpp
+ qmime.cpp
+ qmovie.cpp
+ qnetworkprotocol.cpp
+ qobject.cpp
+ qobjectcleanuphandler.cpp
+ qpainter.cpp
+ qpalette.cpp
+ qpaintdevicemetrics.cpp
+ qpicture.cpp
+ qpixmap.cpp
+ qpixmapcache.cpp
+ qpointarray.cpp
+ qpoint.cpp
+ qpolygonscanner.cpp
+ qprinter.cpp
+ qprocess.cpp
+ qrect.cpp
+ qregion.cpp
+ qsignal.cpp
+ qsignalmapper.cpp
+ qsize.cpp
+ qsizegrip.cpp
+ qstyle.cpp
+ qsocketnotifier.cpp
+ qsound.cpp
+ qstylesheet.cpp
+ qthread.cpp
+ qtimer.cpp
+ qurl.cpp
+ qlocalfs.cpp
+ qurloperator.cpp
+ qurlinfo.cpp
+ qwidget.cpp
+ qwmatrix.cpp
+ qvariant.cpp
+ qrichtext.cpp
+ qinternal.cpp
+ qrichtext_p.cpp
+ qgplugin.cpp
+ qsimplerichtext.cpp
+ qscriptengine.cpp
+ qtextlayout.cpp
+ qtextengine.cpp
+ qmngio.cpp
+ qjpegio.cpp
+ qpngio.cpp
+ qaccessible.cpp
+)
+if( WITH_GLIBMAINLOOP )
+ list( APPEND _SRC_ qeventloop_x11_glib.cpp qeventloop_unix_glib.cpp )
+ else()
+ list( APPEND _SRC_ qeventloop_x11.cpp qeventloop_unix.cpp )
+endif()
+
+if( WITH_XFT )
+ list( APPEND _SRC_ ../3rdparty/opentype/ftxopentype.c )
+endif()
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+ LINK
+ ${LIBICE_LIBRARIES}
+ ${NAS_LIBRARIES}
+ ${X11_X11_LIB}
+ ${X11_Xft_LIB}
+ ${X11_Xext_LIB}
+ ${X11_Xinput_LIB}
+ ${X11_Xinerama_LIB}
+ ${X11_Xrandr_LIB}
+ ${X11_Xrender_LIB}
+ ${X11_SM_LIB}
+ ${X11_Xcursor_LIB}
+ ${LIB_MNG_LIBRARIES}
+ ${JPEG_LIBRARIES}
+ ${PNG_LIBRARIES}
+ ${ZLIB_LIBRARIES}
+ ${LIBFONTCONFIG_LIBRARIES}
+ ${GLIB2_LIBRARIES}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ ${NO_SOUND} ${NAS_SUPPORT} ${USE_GLIBMAINLOOP}
+ ${NO_XFTFREETYPE} ${USE_XFT2_HEADER} ${NO_SHAPE} ${TABLET_SUPPORT}
+ ${NO_XINERAMA} ${NO_XRANDR} ${NO_XRENDER} ${NO_XSYNC}
+ ${NO_XKB} ${NO_SM} ${NO_XCURSOR} ${NO_IMAGEIO_MNG}
+ ${NO_IMAGEIO_JPEG} ${NO_IMAGEIO_PNG} ${BUILTIN_GIF_READER}
+ ${QT_ACCESSIBILITY_SUPPORT}
+)
diff --git a/src/kernel/ntqgif.h b/src/kernel/ntqgif.h
index f5fee77be..5ef852ed4 100644
--- a/src/kernel/ntqgif.h
+++ b/src/kernel/ntqgif.h
@@ -52,6 +52,10 @@
#include "ntqglobal.h"
#endif // QT_H
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#ifndef QT_BUILTIN_GIF_READER
#define QT_BUILTIN_GIF_READER 0
#endif
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 2cda2b8b3..432d8f3e8 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -6049,9 +6049,9 @@ bool TQETWidget::translateConfigEvent( const XEvent *event )
;
repaint( !testWFlags(WResizeNoErase) || transbg );
}
-
+#ifndef TQT_NO_XSYNC
incrementSyncCounter();
-
+#endif
return TRUE;
}
diff --git a/src/moc/CMakeLists.txt b/src/moc/CMakeLists.txt
new file mode 100644
index 000000000..fc649d84a
--- /dev/null
+++ b/src/moc/CMakeLists.txt
@@ -0,0 +1,98 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+remove_definitions( -DTQT_THREAD_SUPPORT )
+
+
+##### tmoc-tools (static)
+
+set( target tmoc-tools )
+set( _SRC_ ${CMAKE_SOURCE_DIR}/src/tools/qbuffer.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qptrcollection.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qcstring.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qdatastream.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qdatetime.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qfile.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qdir.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qfileinfo.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qgarray.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qgdict.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qglist.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qglobal.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qgvector.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qiodevice.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qregexp.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qstring.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qlocale.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qunicodetables.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qstringlist.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qtextstream.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qbitarray.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qmap.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qgcache.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qfile_unix.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qdir_unix.cpp
+ ${CMAKE_SOURCE_DIR}/src/tools/qfileinfo_unix.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ QT_MOC TQT_NO_CODECS QT_LITE_UNICODE TQT_NO_COMPONENT TQT_NO_STL TQT_NO_COMPRESS
+)
+
+
+##### tmoc-codecs (static)
+
+set( target tmoc-codecs )
+set( _SRC_ ${CMAKE_SOURCE_DIR}/src/codecs/qtextcodec.cpp
+ ${CMAKE_SOURCE_DIR}/src/codecs/qutfcodec.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ QT_MOC TQT_NO_CODECS QT_LITE_UNICODE TQT_NO_COMPONENT TQT_NO_STL TQT_NO_COMPRESS
+)
+
+
+##### tmoc (executable)
+
+set( target tmoc )
+set( _SRC_ moc_yacc.cpp )
+
+tde_add_executable( ${target}
+
+ SOURCES
+ ${_SRC_}
+ LINK
+ tmoc-tools-static
+ tmoc-codecs-static
+
+ DEPENDENCIES
+ tmoc-tools-static
+ tmoc-codecs-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
new file mode 100644
index 000000000..b56019d4d
--- /dev/null
+++ b/src/network/CMakeLists.txt
@@ -0,0 +1,44 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_SOURCE_DIR}/src/tools
+)
+
+link_directories()
+
+
+##### network (static)
+
+set( target network )
+set( _SRC_ qdns.cpp
+ qftp.cpp
+ qhostaddress.cpp
+ qhttp.cpp
+ qnetwork.cpp
+ qserversocket.cpp
+ qsocket.cpp
+ qsocketdevice.cpp
+ qsocketdevice_unix.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ ${NO_IPV6}
+)
diff --git a/src/opengl/CMakeLists.txt b/src/opengl/CMakeLists.txt
new file mode 100644
index 000000000..1ab02176d
--- /dev/null
+++ b/src/opengl/CMakeLists.txt
@@ -0,0 +1,48 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${OPENGL_INCLUDE_DIR}
+ ${X11_X11_INCLUDE_PATH}
+ ${X11_Xutil_INCLUDE_PATH}
+ ${FREETYPE_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/src/3rdparty/opentype
+)
+
+link_directories()
+
+
+##### opengl (static)
+
+set( target opengl )
+set( _SRC_ qgl.cpp
+ qgl_x11.cpp
+ qglcolormap.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ LINK
+ ${OPENGL_gl_LIBRARY}
+ ${OPENGL_glu_LIBRARY}
+ ${X11_Xmu_LIB}
+ ${FREETYPE_LIBRARIES}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ ${DLOPEN_OPENGL} ${NO_XFTFREETYPE} ${XFT2}
+)
diff --git a/src/sql/CMakeLists.txt b/src/sql/CMakeLists.txt
new file mode 100644
index 000000000..1f42df9cc
--- /dev/null
+++ b/src/sql/CMakeLists.txt
@@ -0,0 +1,100 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_SOURCE_DIR}/src/sql/drivers/cache
+ ${PostgreSQL_INCLUDE_DIRS}
+ ${MYSQL_INCLUDE_DIRS}
+ ${ODBC_INCLUDE_DIRS}
+ ${FBCLIENT_INCLUDE_DIRS}
+ ${SQLITE3_INCLUDE_DIRS}
+)
+
+link_directories()
+
+
+##### sql (static)
+
+set( target sql )
+set( _SRC_ qsqlquery.cpp
+ qsqldatabase.cpp
+ qsqlfield.cpp
+ qsqlrecord.cpp
+ qsqlform.cpp
+ qsqlcursor.cpp
+ qeditorfactory.cpp
+ qsqleditorfactory.cpp
+ qsqldriver.cpp
+ qsqlextension_p.cpp
+ qsqldriverplugin.cpp
+ qsqlerror.cpp
+ qsqlresult.cpp
+ qsqlindex.cpp
+ qsqlpropertymap.cpp
+ qsqlmanager_p.cpp
+ qdatatable.cpp
+ qdataview.cpp
+ qdatabrowser.cpp
+ qsqlselectcursor.cpp
+ ./drivers/cache/qsqlcachedresult.cpp
+)
+
+set( _sql_drivers "" )
+set( _sql_libraries "" )
+
+if( WITH_SQL_DRIVER_PSQL )
+ list( APPEND _SRC_ drivers/psql/qsql_psql.cpp )
+ list( APPEND _sql_drivers "QT_SQL_POSTGRES" )
+ list( APPEND _sql_libraries ${PostgreSQL_LIBRARIES} )
+endif()
+if ( WITH_SQL_DRIVER_MYSQL )
+ list( APPEND _SRC_ drivers/mysql/qsql_mysql.cpp )
+ list( APPEND _sql_drivers "QT_SQL_MYSQL" )
+ list( APPEND _sql_libraries ${MYSQL_LIBRARIES} )
+endif()
+if( WITH_SQL_DRIVER_ODBC )
+ list( APPEND _SRC_ drivers/odbc/qsql_odbc.cpp )
+ list( APPEND _sql_drivers "QT_SQL_ODBC" )
+ list( APPEND _sql_libraries ${ODBC_LIBRARIES} )
+endif()
+if( WITH_SQL_DRIVER_IBASE )
+ list( APPEND _SRC_ drivers/ibase/qsql_ibase.cpp )
+ list( APPEND _sql_drivers "QT_SQL_IBASE" )
+ list( APPEND _sql_libraries ${FBCLIENT_LIBRARIES} )
+endif()
+if( WITH_SQL_DRIVER_SQLITE2 )
+ list( APPEND _SRC_ drivers/sqlite/qsql_sqlite.cpp )
+ list( APPEND _sql_drivers "QT_SQL_SQLITE" )
+ list( APPEND _sql_libraries ${SQLITE_LIBRARIES} )
+endif()
+if( WITH_SQL_DRIVER_SQLITE3 )
+ list( APPEND _SRC_ drivers/sqlite3/qsql_sqlite3.cpp )
+ list( APPEND _sql_drivers "QT_SQL_SQLITE3" )
+ list( APPEND _sql_libraries ${SQLITE3_LIBRARIES} )
+endif()
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+ LINK
+ ${_sql_libraries}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property( TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ ${NO_XCURSOR} TQT_NO_MESSAGEBOX
+ ${_sql_drivers}
+)
+set_property( SOURCE qsql_psql.h APPEND PROPERTY COMPILE_DEFINITIONS QT_PLUGIN )
diff --git a/src/styles/CMakeLists.txt b/src/styles/CMakeLists.txt
new file mode 100644
index 000000000..bee32d5ac
--- /dev/null
+++ b/src/styles/CMakeLists.txt
@@ -0,0 +1,80 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_SOURCE_DIR}/src/kernel
+)
+
+link_directories()
+
+
+##### styles (static)
+
+set( target styles )
+set( _SRC_ qcdestyle.cpp
+ qcommonstyle.cpp
+ qcompactstyle.cpp
+ qinterlacestyle.cpp
+ qmotifplusstyle.cpp
+ qmotifstyle.cpp
+ qplatinumstyle.cpp
+ qsgistyle.cpp
+ qstylefactory.cpp
+ qstyleplugin.cpp
+ qwindowsstyle.cpp
+)
+
+set( _disabled_styles "" )
+list( APPEND _disabled_styles
+ TQT_NO_STYLE_WINDOWSXP
+ TQT_NO_STYLE_AQUA
+ TQT_NO_STYLE_POCKETPC
+ TQT_NO_STYLE_MAC
+)
+
+if( WITH_STYLE_WINDOWS )
+ if( NOT WITH_STYLE_INTERLACE )
+ list( APPEND _disabled_styles TQT_NO_STYLE_INTERLACE )
+ endif()
+ if( NOT WITH_STYLE_PLATINIUM )
+ list( APPEND _disabled_styles TQT_NO_STYLE_PLATINUM )
+ endif()
+ else()
+ tde_message_fatal( "Windows style is required for this build" )
+endif( WITH_STYLE_WINDOWS )
+
+if( WITH_STYLE_MOTIF )
+ if( NOT WITH_STYLE_SGI )
+ list( APPEND _disabled_styles TQT_NO_STYLE_SGI )
+ endif()
+ if( NOT WITH_STYLE_MOTIFPLUS)
+ list( APPEND _disabled_styles TQT_NO_STYLE_MOTIFPLUS )
+ endif()
+ if( NOT WITH_STYLE_CDE )
+ list( APPEND _disabled_styles TQT_NO_STYLE_CDE )
+ endif()
+ else()
+ tde_message_fatal( "Motif style is required for this build" )
+endif( WITH_STYLE_MOTIF )
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
+
+set_property(
+ TARGET ${target}-static
+ APPEND PROPERTY COMPILE_DEFINITIONS ${_disabled_styles}
+)
diff --git a/src/table/CMakeLists.txt b/src/table/CMakeLists.txt
new file mode 100644
index 000000000..4bb6a3349
--- /dev/null
+++ b/src/table/CMakeLists.txt
@@ -0,0 +1,30 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### table (static)
+
+set( target table )
+set( _SRC_ qtable.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
new file mode 100644
index 000000000..7cb02c111
--- /dev/null
+++ b/src/tools/CMakeLists.txt
@@ -0,0 +1,75 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_BINARY_DIR}/include
+ ${ZLIB_INCLUDE_DIRS}
+)
+
+link_directories()
+
+
+##### tools (static)
+
+set( target tools )
+set( _SRC_ qdir_unix.cpp
+ qfile_unix.cpp
+ qfileinfo_unix.cpp
+ qmutex_unix.cpp
+ qthreadstorage_unix.cpp
+ qwaitcondition_unix.cpp
+ qlibrary_unix.cpp
+ qbitarray.cpp
+ qbuffer.cpp
+ qcomponentfactory.cpp
+ qcomlibrary.cpp
+ qcstring.cpp
+ qdatastream.cpp
+ qdatetime.cpp
+ qdeepcopy.cpp
+ qdir.cpp
+ qfile.cpp
+ qfileinfo.cpp
+ qgarray.cpp
+ qgcache.cpp
+ qgdict.cpp
+ qglist.cpp
+ qglobal.cpp
+ qgpluginmanager.cpp
+ qgvector.cpp
+ qiodevice.cpp
+ qlibrary.cpp
+ qlocale.cpp
+ qmap.cpp
+ qmutexpool.cpp
+ qptrcollection.cpp
+ qregexp.cpp
+ qstring.cpp
+ qsemaphore.cpp
+ qsettings.cpp
+ qstringlist.cpp
+ qtextstream.cpp
+ qunicodetables.cpp
+ qucom.cpp
+ quuid.cpp
+ ${CMAKE_BINARY_DIR}/src/tools/qconfig.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+ LINK
+ ${_UUID_LIBRARIES}
+ ${CMAKE_DL_LIBS}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/tools/qconfig.cpp.cmake b/src/tools/qconfig.cpp.cmake
new file mode 100644
index 000000000..170254fbc
--- /dev/null
+++ b/src/tools/qconfig.cpp.cmake
@@ -0,0 +1,27 @@
+/* Install paths from configure */
+#include "ntqglobal.h"
+
+// might use nameless namespace as storage class here instead of static keyword specifier
+
+static const char QT_INSTALL_PREFIX[] = "qt_nstpath=@QT_INSTALL_PREFIX@";
+static const char QT_INSTALL_BINS[] = "qt_binpath=@QT_INSTALL_BINS@";
+static const char QT_INSTALL_DOCS[] = "qt_docpath=@QT_INSTALL_DOCS@";
+static const char QT_INSTALL_HEADERS[] = "qt_hdrpath=@QT_INSTALL_HEADERS@";
+static const char QT_INSTALL_LIBS[] = "qt_libpath=@QT_INSTALL_LIBS@";
+static const char QT_INSTALL_PLUGINS[] = "qt_plgpath=@QT_INSTALL_PLUGINS@";
+static const char QT_INSTALL_DATA[] = "qt_datpath=@QT_INSTALL_DATA@";
+static const char QT_INSTALL_TRANSLATIONS[] = "qt_trnpath=@QT_INSTALL_TRANSLATIONS@";
+static const char QT_INSTALL_SYSCONF[] = "qt_cnfpath=@QT_INSTALL_SYSCONF@";
+static const char QT_INSTALL_SHARE[] = "qt_shapath=@QT_INSTALL_SHARE@";
+
+/* strlen( "qt_xxxpath=" ) == 11 */
+const char *tqInstallPath() { return QT_INSTALL_PREFIX + 11; }
+const char *tqInstallPathDocs() { return QT_INSTALL_DOCS + 11; }
+const char *tqInstallPathHeaders() { return QT_INSTALL_HEADERS + 11; }
+const char *tqInstallPathLibs() { return QT_INSTALL_LIBS + 11; }
+const char *tqInstallPathBins() { return QT_INSTALL_BINS + 11; }
+const char *tqInstallPathPlugins() { return QT_INSTALL_PLUGINS + 11; }
+const char *tqInstallPathData() { return QT_INSTALL_DATA + 11; }
+const char *tqInstallPathTranslations() { return QT_INSTALL_TRANSLATIONS + 11; }
+const char *tqInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; }
+const char *tqInstallPathShare() { return QT_INSTALL_SHARE + 11; }
diff --git a/src/tools/qcstring.cpp b/src/tools/qcstring.cpp
index 83e351a23..67a831970 100644
--- a/src/tools/qcstring.cpp
+++ b/src/tools/qcstring.cpp
@@ -39,6 +39,10 @@
**
**********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "ntqstring.h"
#include "ntqregexp.h"
#include "ntqdatastream.h"
@@ -52,7 +56,10 @@
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
-#ifndef TQT_NO_COMPRESS
+
+#ifdef HAVE_ZLIB_H
+#include <zlib.h>
+#else
#include "../3rdparty/zlib/zlib.h"
#endif
diff --git a/src/tools/qstring.cpp b/src/tools/qstring.cpp
index 26e9b61cd..536951b8e 100644
--- a/src/tools/qstring.cpp
+++ b/src/tools/qstring.cpp
@@ -38,6 +38,9 @@
** herein.
**
**********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
// Don't define it while compiling this module, or USERS of TQt will
// not be able to link.
diff --git a/src/tqt3.pc.cmake b/src/tqt3.pc.cmake
new file mode 100644
index 000000000..9c94d1a31
--- /dev/null
+++ b/src/tqt3.pc.cmake
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@PC_EXEC_PREFIX@
+libdir=@QT_INSTALL_LIBS@
+includedir=@QT_INSTALL_HEADERS@
+pluginsdir=@QT_INSTALL_PLUGINS@
+
+Name: @PROJECT_NAME@
+Description: @PROJECT_NAME@ is a multiplatform C++ GUI application framework.
+Version: 3.5
+
+Libs: -L${libdir} -ltqt-mt
+Cflags: -I${includedir}
diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt
new file mode 100644
index 000000000..f78efe72e
--- /dev/null
+++ b/src/widgets/CMakeLists.txt
@@ -0,0 +1,91 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### widgets (static)
+
+set( target widgets )
+set( _SRC_ qbuttongroup.cpp
+ qbutton.cpp
+ qdialogbuttons.cpp
+ qcheckbox.cpp
+ qcombobox.cpp
+ qwidgetresizehandler.cpp
+ qdial.cpp
+ qdockarea.cpp
+ qdockwindow.cpp
+ qframe.cpp
+ qgrid.cpp
+ qgridview.cpp
+ qgroupbox.cpp
+ qhbuttongroup.cpp
+ qheader.cpp
+ qhgroupbox.cpp
+ qhbox.cpp
+ qiconview.cpp
+ qlabel.cpp
+ qlcdnumber.cpp
+ qlineedit.cpp
+ qlistbox.cpp
+ qlistview.cpp
+ qmainwindow.cpp
+ qmenubar.cpp
+ qmenudata.cpp
+ qmultilineedit.cpp
+ qpopupmenu.cpp
+ qprogressbar.cpp
+ qpushbutton.cpp
+ qradiobutton.cpp
+ qrangecontrol.cpp
+ qscrollbar.cpp
+ qscrollview.cpp
+ qslider.cpp
+ qsplashscreen.cpp
+ qspinbox.cpp
+ qspinwidget.cpp
+ qsplitter.cpp
+ qstatusbar.cpp
+ qsyntaxhighlighter.cpp
+ qtabbar.cpp
+ qtabwidget.cpp
+ qtitlebar.cpp
+ qtoolbar.cpp
+ qtoolbox.cpp
+ qtoolbutton.cpp
+ qtooltip.cpp
+ qvalidator.cpp
+ qvbox.cpp
+ qvbuttongroup.cpp
+ qvgroupbox.cpp
+ qwhatsthis.cpp
+ qwidgetstack.cpp
+ qaction.cpp
+ qdatetimeedit.cpp
+ qeffects.cpp
+ qtextview.cpp
+ qtextbrowser.cpp
+ qtextedit.cpp
+ qwidgetplugin.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/workspace/CMakeLists.txt b/src/workspace/CMakeLists.txt
new file mode 100644
index 000000000..4228fd45d
--- /dev/null
+++ b/src/workspace/CMakeLists.txt
@@ -0,0 +1,30 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### workspace (static)
+
+set( target workspace )
+set( _SRC_ qworkspace.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
diff --git a/src/xml/CMakeLists.txt b/src/xml/CMakeLists.txt
new file mode 100644
index 000000000..afdcbd79e
--- /dev/null
+++ b/src/xml/CMakeLists.txt
@@ -0,0 +1,32 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/include
+)
+
+link_directories()
+
+
+##### xml (static)
+
+set( target xml )
+set( _SRC_ qxml.cpp
+ qdom.cpp
+ qsvgdevice.cpp
+)
+
+
+tde_add_library( ${target} STATIC_PIC
+
+ SOURCES
+ ${_SRC_}
+
+ DEPENDENCIES
+ tqt-includes
+)
+
+tqt_automoc( ${target}-static )
+
+list( APPEND tqtlib_embed ${target}-static )
+set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )