diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-27 00:21:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-27 00:21:43 +0900 |
commit | f9c9e15267bd0319a8190ba146d7be95c37dac2e (patch) | |
tree | 1180022eddef0ffc8f44b030e721b6efef4f8b2a | |
parent | 7d3c2ed4e8cdf9292059a4fc8f3678ca9d1d7c5c (diff) | |
download | dbus-1-tqt-f9c9e15267bd0319a8190ba146d7be95c37dac2e.tar.gz dbus-1-tqt-f9c9e15267bd0319a8190ba146d7be95c37dac2e.zip |
Moved source files to "src" folder.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | CMakeLists.txt | 67 | ||||
-rw-r--r-- | dbus-1-tqt.Doxyfile.in | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 73 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/LICENSE (renamed from tools/dbusxml2qt3/LICENSE) | 0 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/classgen.cpp (renamed from tools/dbusxml2qt3/classgen.cpp) | 0 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/classgen.h (renamed from tools/dbusxml2qt3/classgen.h) | 0 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/main.cpp (renamed from tools/dbusxml2qt3/main.cpp) | 0 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/methodgen.cpp (renamed from tools/dbusxml2qt3/methodgen.cpp) | 0 | ||||
-rw-r--r-- | src/tools/dbusxml2qt3/methodgen.h (renamed from tools/dbusxml2qt3/methodgen.h) | 0 | ||||
-rw-r--r-- | src/tqdbusatomic.h (renamed from tqdbusatomic.h) | 0 | ||||
-rw-r--r-- | src/tqdbusconnection.cpp (renamed from tqdbusconnection.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusconnection.h (renamed from tqdbusconnection.h) | 0 | ||||
-rw-r--r-- | src/tqdbusconnection_p.h (renamed from tqdbusconnection_p.h) | 0 | ||||
-rw-r--r-- | src/tqdbusdata.cpp (renamed from tqdbusdata.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusdata.h (renamed from tqdbusdata.h) | 0 | ||||
-rw-r--r-- | src/tqdbusdataconverter.cpp (renamed from tqdbusdataconverter.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusdataconverter.h (renamed from tqdbusdataconverter.h) | 0 | ||||
-rw-r--r-- | src/tqdbusdatalist.cpp (renamed from tqdbusdatalist.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusdatalist.h (renamed from tqdbusdatalist.h) | 0 | ||||
-rw-r--r-- | src/tqdbusdatamap.h (renamed from tqdbusdatamap.h) | 0 | ||||
-rw-r--r-- | src/tqdbuserror.cpp (renamed from tqdbuserror.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbuserror.h (renamed from tqdbuserror.h) | 0 | ||||
-rw-r--r-- | src/tqdbusintegrator.cpp (renamed from tqdbusintegrator.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusmacros.h (renamed from tqdbusmacros.h) | 0 | ||||
-rw-r--r-- | src/tqdbusmarshall.cpp (renamed from tqdbusmarshall.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusmarshall.h (renamed from tqdbusmarshall.h) | 0 | ||||
-rw-r--r-- | src/tqdbusmessage.cpp (renamed from tqdbusmessage.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusmessage.h (renamed from tqdbusmessage.h) | 0 | ||||
-rw-r--r-- | src/tqdbusmessage_p.h (renamed from tqdbusmessage_p.h) | 0 | ||||
-rw-r--r-- | src/tqdbusobject.h (renamed from tqdbusobject.h) | 0 | ||||
-rw-r--r-- | src/tqdbusobjectpath.cpp (renamed from tqdbusobjectpath.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusobjectpath.h (renamed from tqdbusobjectpath.h) | 0 | ||||
-rw-r--r-- | src/tqdbusproxy.cpp (renamed from tqdbusproxy.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusproxy.h (renamed from tqdbusproxy.h) | 0 | ||||
-rw-r--r-- | src/tqdbusserver.cpp (renamed from tqdbusserver.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusserver.h (renamed from tqdbusserver.h) | 0 | ||||
-rw-r--r-- | src/tqdbusunixfd.cpp (renamed from tqdbusunixfd.cpp) | 0 | ||||
-rw-r--r-- | src/tqdbusunixfd.h (renamed from tqdbusunixfd.h) | 0 | ||||
-rw-r--r-- | src/tqdbusvariant.h (renamed from tqdbusvariant.h) | 0 |
39 files changed, 82 insertions, 62 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5097178..880eec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,19 +44,6 @@ tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/$ tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" ) -##### install headers ########################### - -install( FILES - tqdbuserror.h tqdbusmessage.h tqdbusconnection.h - tqdbusvariant.h tqdbusobject.h tqdbusproxy.h - tqdbusmacros.h tqdbusdata.h tqdbusdatalist.h - tqdbusdatamap.h tqdbusobjectpath.h tqdbusunixfd.h - tqdbusdataconverter.h - DESTINATION ${INCLUDE_INSTALL_DIR} ) - - -##### install other data ######################## - ##### write pkgconfig file ###################### string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} ) @@ -68,8 +55,9 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-1-tqt.pc DESTINATION ${PKGCONFIG ##### build setup ############################### -set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) add_definitions( -DDBUS_COMPILATION @@ -77,57 +65,16 @@ add_definitions( ${TQT_CFLAGS_OTHER} ) -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} - ${TQT_INCLUDE_DIRS} - ${DBUS_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - - -##### dbus-1-tqt (shared) ######################### +set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" ) +set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" ) -tde_add_library( dbus-1-tqt SHARED AUTOMOC - SOURCES ${dbus_tqt_MOCS} - tqdbusconnection.cpp tqdbuserror.cpp tqdbusintegrator.cpp - tqdbusmarshall.cpp tqdbusmessage.cpp tqdbusserver.cpp - tqdbusproxy.cpp tqdbusdata.cpp tqdbusdatalist.cpp - tqdbusobjectpath.cpp tqdbusunixfd.cpp - tqdbusdataconverter.cpp - VERSION 0.0.0 - LINK ${TQT_LIBRARIES} ${DBUS_LIBRARIES} - DESTINATION ${LIB_INSTALL_DIR} -) +##### source directories ######################## -##### dbusxml2qt3 (executable) ################## +add_subdirectory( src ) -tde_add_executable( dbusxml2qt3 - SOURCES - tools/dbusxml2qt3/classgen.cpp - tools/dbusxml2qt3/main.cpp - tools/dbusxml2qt3/methodgen.cpp - LINK ${TQT_LIBRARIES} - DESTINATION ${BIN_INSTALL_DIR} -) +##### write configure files ##################### -##### add apidox targets ############ -set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" ) -set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" ) configure_file( ${CMAKE_SOURCE_DIR}/dbus-1-tqt.Doxyfile.in ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile ) -add_custom_target( apidox - COMMAND test -d ${APIDOX_DIRECTORY} || mkdir -p ${APIDOX_DIRECTORY} - COMMAND doxygen ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) - -add_custom_target( install-apidox - COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}" - WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/" - ) diff --git a/dbus-1-tqt.Doxyfile.in b/dbus-1-tqt.Doxyfile.in index bdb4455..396e8f2 100644 --- a/dbus-1-tqt.Doxyfile.in +++ b/dbus-1-tqt.Doxyfile.in @@ -582,7 +582,7 @@ WARN_LOGFILE = # ./include \ # ./scripts -INPUT = ${CMAKE_SOURCE_DIR} +INPUT = ${CMAKE_SOURCE_DIR}/src # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is @@ -651,7 +651,7 @@ RECURSIVE = NO # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. -EXCLUDE = tools doc admin cmake obj-x86_64-linux-gnu dbus-apidocs debian +EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..fa3fa5c --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,73 @@ + ################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TQT_INCLUDE_DIRS} + ${DBUS_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### install headers ########################### + +install( FILES + tqdbuserror.h tqdbusmessage.h tqdbusconnection.h + tqdbusvariant.h tqdbusobject.h tqdbusproxy.h + tqdbusmacros.h tqdbusdata.h tqdbusdatalist.h + tqdbusdatamap.h tqdbusobjectpath.h tqdbusunixfd.h + tqdbusdataconverter.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### dbus-1-tqt (shared) ######################### + +tde_add_library( dbus-1-tqt SHARED AUTOMOC + SOURCES ${dbus_tqt_MOCS} + tqdbusconnection.cpp tqdbuserror.cpp tqdbusintegrator.cpp + tqdbusmarshall.cpp tqdbusmessage.cpp tqdbusserver.cpp + tqdbusproxy.cpp tqdbusdata.cpp tqdbusdatalist.cpp + tqdbusobjectpath.cpp tqdbusunixfd.cpp + tqdbusdataconverter.cpp + VERSION 0.0.0 + LINK ${TQT_LIBRARIES} ${DBUS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### dbusxml2qt3 (executable) ################## + +tde_add_executable( dbusxml2qt3 + SOURCES + tools/dbusxml2qt3/classgen.cpp + tools/dbusxml2qt3/main.cpp + tools/dbusxml2qt3/methodgen.cpp + LINK ${TQT_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### add apidox targets ############ + +add_custom_target( apidox + COMMAND test -d ${APIDOX_DIRECTORY} || mkdir -p ${APIDOX_DIRECTORY} + COMMAND doxygen ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) + +add_custom_target( install-apidox + COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/" + ) diff --git a/tools/dbusxml2qt3/LICENSE b/src/tools/dbusxml2qt3/LICENSE index 1edf08c..1edf08c 100644 --- a/tools/dbusxml2qt3/LICENSE +++ b/src/tools/dbusxml2qt3/LICENSE diff --git a/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp index 12051c0..12051c0 100644 --- a/tools/dbusxml2qt3/classgen.cpp +++ b/src/tools/dbusxml2qt3/classgen.cpp diff --git a/tools/dbusxml2qt3/classgen.h b/src/tools/dbusxml2qt3/classgen.h index 3597890..3597890 100644 --- a/tools/dbusxml2qt3/classgen.h +++ b/src/tools/dbusxml2qt3/classgen.h diff --git a/tools/dbusxml2qt3/main.cpp b/src/tools/dbusxml2qt3/main.cpp index 0208072..0208072 100644 --- a/tools/dbusxml2qt3/main.cpp +++ b/src/tools/dbusxml2qt3/main.cpp diff --git a/tools/dbusxml2qt3/methodgen.cpp b/src/tools/dbusxml2qt3/methodgen.cpp index 4e407d5..4e407d5 100644 --- a/tools/dbusxml2qt3/methodgen.cpp +++ b/src/tools/dbusxml2qt3/methodgen.cpp diff --git a/tools/dbusxml2qt3/methodgen.h b/src/tools/dbusxml2qt3/methodgen.h index 9954fb2..9954fb2 100644 --- a/tools/dbusxml2qt3/methodgen.h +++ b/src/tools/dbusxml2qt3/methodgen.h diff --git a/tqdbusatomic.h b/src/tqdbusatomic.h index 50ceec3..50ceec3 100644 --- a/tqdbusatomic.h +++ b/src/tqdbusatomic.h diff --git a/tqdbusconnection.cpp b/src/tqdbusconnection.cpp index 0360456..0360456 100644 --- a/tqdbusconnection.cpp +++ b/src/tqdbusconnection.cpp diff --git a/tqdbusconnection.h b/src/tqdbusconnection.h index 9fde84b..9fde84b 100644 --- a/tqdbusconnection.h +++ b/src/tqdbusconnection.h diff --git a/tqdbusconnection_p.h b/src/tqdbusconnection_p.h index 6e4efd1..6e4efd1 100644 --- a/tqdbusconnection_p.h +++ b/src/tqdbusconnection_p.h diff --git a/tqdbusdata.cpp b/src/tqdbusdata.cpp index 629df57..629df57 100644 --- a/tqdbusdata.cpp +++ b/src/tqdbusdata.cpp diff --git a/tqdbusdata.h b/src/tqdbusdata.h index ae64706..ae64706 100644 --- a/tqdbusdata.h +++ b/src/tqdbusdata.h diff --git a/tqdbusdataconverter.cpp b/src/tqdbusdataconverter.cpp index 50575b8..50575b8 100644 --- a/tqdbusdataconverter.cpp +++ b/src/tqdbusdataconverter.cpp diff --git a/tqdbusdataconverter.h b/src/tqdbusdataconverter.h index 2ca21a0..2ca21a0 100644 --- a/tqdbusdataconverter.h +++ b/src/tqdbusdataconverter.h diff --git a/tqdbusdatalist.cpp b/src/tqdbusdatalist.cpp index 23f60a5..23f60a5 100644 --- a/tqdbusdatalist.cpp +++ b/src/tqdbusdatalist.cpp diff --git a/tqdbusdatalist.h b/src/tqdbusdatalist.h index bd0b467..bd0b467 100644 --- a/tqdbusdatalist.h +++ b/src/tqdbusdatalist.h diff --git a/tqdbusdatamap.h b/src/tqdbusdatamap.h index ecb06d2..ecb06d2 100644 --- a/tqdbusdatamap.h +++ b/src/tqdbusdatamap.h diff --git a/tqdbuserror.cpp b/src/tqdbuserror.cpp index d0b1eb9..d0b1eb9 100644 --- a/tqdbuserror.cpp +++ b/src/tqdbuserror.cpp diff --git a/tqdbuserror.h b/src/tqdbuserror.h index ff11ffb..ff11ffb 100644 --- a/tqdbuserror.h +++ b/src/tqdbuserror.h diff --git a/tqdbusintegrator.cpp b/src/tqdbusintegrator.cpp index c7129bd..c7129bd 100644 --- a/tqdbusintegrator.cpp +++ b/src/tqdbusintegrator.cpp diff --git a/tqdbusmacros.h b/src/tqdbusmacros.h index 2470094..2470094 100644 --- a/tqdbusmacros.h +++ b/src/tqdbusmacros.h diff --git a/tqdbusmarshall.cpp b/src/tqdbusmarshall.cpp index 7f0781f..7f0781f 100644 --- a/tqdbusmarshall.cpp +++ b/src/tqdbusmarshall.cpp diff --git a/tqdbusmarshall.h b/src/tqdbusmarshall.h index 6c41587..6c41587 100644 --- a/tqdbusmarshall.h +++ b/src/tqdbusmarshall.h diff --git a/tqdbusmessage.cpp b/src/tqdbusmessage.cpp index 455e549..455e549 100644 --- a/tqdbusmessage.cpp +++ b/src/tqdbusmessage.cpp diff --git a/tqdbusmessage.h b/src/tqdbusmessage.h index 665a83f..665a83f 100644 --- a/tqdbusmessage.h +++ b/src/tqdbusmessage.h diff --git a/tqdbusmessage_p.h b/src/tqdbusmessage_p.h index 657460f..657460f 100644 --- a/tqdbusmessage_p.h +++ b/src/tqdbusmessage_p.h diff --git a/tqdbusobject.h b/src/tqdbusobject.h index aa16750..aa16750 100644 --- a/tqdbusobject.h +++ b/src/tqdbusobject.h diff --git a/tqdbusobjectpath.cpp b/src/tqdbusobjectpath.cpp index 0f42860..0f42860 100644 --- a/tqdbusobjectpath.cpp +++ b/src/tqdbusobjectpath.cpp diff --git a/tqdbusobjectpath.h b/src/tqdbusobjectpath.h index 7a166c6..7a166c6 100644 --- a/tqdbusobjectpath.h +++ b/src/tqdbusobjectpath.h diff --git a/tqdbusproxy.cpp b/src/tqdbusproxy.cpp index 7ca6118..7ca6118 100644 --- a/tqdbusproxy.cpp +++ b/src/tqdbusproxy.cpp diff --git a/tqdbusproxy.h b/src/tqdbusproxy.h index 8d594cd..8d594cd 100644 --- a/tqdbusproxy.h +++ b/src/tqdbusproxy.h diff --git a/tqdbusserver.cpp b/src/tqdbusserver.cpp index 6bad746..6bad746 100644 --- a/tqdbusserver.cpp +++ b/src/tqdbusserver.cpp diff --git a/tqdbusserver.h b/src/tqdbusserver.h index 0660a87..0660a87 100644 --- a/tqdbusserver.h +++ b/src/tqdbusserver.h diff --git a/tqdbusunixfd.cpp b/src/tqdbusunixfd.cpp index 3aa4ba2..3aa4ba2 100644 --- a/tqdbusunixfd.cpp +++ b/src/tqdbusunixfd.cpp diff --git a/tqdbusunixfd.h b/src/tqdbusunixfd.h index 9f48a37..9f48a37 100644 --- a/tqdbusunixfd.h +++ b/src/tqdbusunixfd.h diff --git a/tqdbusvariant.h b/src/tqdbusvariant.h index 11c0ec5..11c0ec5 100644 --- a/tqdbusvariant.h +++ b/src/tqdbusvariant.h |