summaryrefslogtreecommitdiffstats
path: root/src/libtdeobex/interfaces/CMakeLists.txt
blob: c93ec009fa4f174b00cde142f6b445ce3268d7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#################################################
#
#  (C) 2020 Emanoil Kotsev
#  deloptes (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${DBUS_TQT_INCLUDE_DIRS}
)

set( INTROSPECTIONPATH ${CMAKE_SOURCE_DIR}/src/interfaces )

set( ObjectManager_HDRS objectmanagerInterface.h objectmanagerProxy.h introspectableInterface.h )
set( ObjectManager_SRCS objectmanagerInterface.cpp objectmanagerProxy.cpp introspectableInterface.cpp )

set (Agent_HDRS agent1Interface.h agent1Proxy.h dbusbaseNode.h tdeobexNode.h)
set (Agent_SRCS agent1Interface.cpp agent1Proxy.cpp dbusbaseNode.cpp tdeobexNode.cpp)

set (Client_HDRS agentmanager1Interface.h agentmanager1Proxy.h client1Interface.h client1Proxy.h filetransfer1Interface.h filetransfer1Proxy.h obexNode.h objectpush1Interface.h objectpush1Proxy.h phonebookaccess1Interface.h phonebookaccess1Proxy.h session1Interface.h session1Proxy.h synchronization1Interface.h synchronization1Proxy.h transfer1Interface.h transfer1Proxy.h)
set (Client_SRCS agentmanager1Interface.cpp agentmanager1Proxy.cpp client1Interface.cpp client1Proxy.cpp filetransfer1Interface.cpp filetransfer1Proxy.cpp obexNode.cpp objectpush1Interface.cpp objectpush1Proxy.cpp phonebookaccess1Interface.cpp phonebookaccess1Proxy.cpp session1Interface.cpp session1Proxy.cpp synchronization1Interface.cpp synchronization1Proxy.cpp transfer1Interface.cpp transfer1Proxy.cpp propertiesProxy.h propertiesProxy.cpp )


##### ObjectManager #########################
add_custom_command( 
    OUTPUT  ${ObjectManager_HDRS} ${ObjectManager_SRCS}
    COMMAND ${DBUSXML2QT3_EXECUTABLE} ${INTROSPECTIONPATH}/org.freedesktop.DBus.ObjectManager.xml 2>/dev/null
    DEPENDS ${INTROSPECTIONPATH}/org.freedesktop.DBus.ObjectManager.xml
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 
)


##### Agent #########################
add_custom_command( 
    OUTPUT  ${Agent_HDRS} ${Agent_SRCS}
    COMMAND ${DBUSXML2QT3_EXECUTABLE} ${INTROSPECTIONPATH}/org.bluez.obex.Agent1.xml 2>/dev/null
    DEPENDS ${INTROSPECTIONPATH}/org.bluez.obex.Agent1.xml 
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 
)


##### Client #########################
add_custom_command( 
    OUTPUT  ${Client_HDRS} ${Client_SRCS}
    COMMAND ${DBUSXML2QT3_EXECUTABLE} ${INTROSPECTIONPATH}/org.bluez.obex.client.xml 2>/dev/null
    DEPENDS ${INTROSPECTIONPATH}/org.bluez.obex.client.xml 
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 
)

tde_add_library( obexinterfaces STATIC_PIC AUTOMOC
  SOURCES ${ObjectManager_SRCS} ${Agent_SRCS} ${Client_SRCS}
  LINK ${DBUS_TQT_LIBRARIES} 
)


##### headers ###################################

install(
    DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    DESTINATION ${INCLUDE_INSTALL_DIR}/tdeobex
    USE_SOURCE_PERMISSIONS
    FILES_MATCHING PATTERN PATTERN "*.h"
    PATTERN "CMakeFiles" EXCLUDE
)