~alan-griffiths/miral/debug

« back to all changes in this revision

Viewing changes to miral-qt/src/modules/Unity/Application/CMakeLists.txt

  • Committer: Gerry Boland
  • Date: 2016-06-01 22:06:51 UTC
  • mto: This revision was merged to the branch mainline in revision 178.
  • Revision ID: gerry.boland@canonical.com-20160601220651-ge508tffql4e7u7c
Import QtMir code into miral-qt subdirectory. Disabled by default, use -DMIRAL_ENABLE_QT=1 to build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${GLIB_INCLUDE_DIRS}
 
3
    ${GIO_INCLUDE_DIRS}
 
4
    ${GIO_UNIX_INCLUDE_DIRS}
 
5
    ${MIRSERVER_INCLUDE_DIRS}
 
6
    ${MIRRENDERERGLDEV_INCLUDE_DIRS}
 
7
    ${PROCESS_CPP_INCLUDE_DIRS}
 
8
    ${UBUNTU_PLATFORM_API_INCLUDE_DIRS}
 
9
    ${UBUNTU_APP_LAUNCH_INCLUDE_DIRS}
 
10
    ${MIRAL_QT_SOURCE_DIR}/src/platforms/mirserver
 
11
    ${MIRAL_QT_SOURCE_DIR}/src/common
 
12
    ${GSETTINGS_QT_INCLUDE_DIRS}
 
13
 
 
14
    ${LTTNG_INCLUDE_DIRS}
 
15
    ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
 
16
    ${Qt5Qml_PRIVATE_INCLUDE_DIRS}
 
17
    ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
 
18
)
 
19
 
 
20
# We have to remove -pedantic in order to compile tracepoints.c
 
21
string (REPLACE " -pedantic " " " CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
 
22
# Needed to compile tracepoints in C99 mode.
 
23
add_definitions(-DBYTE_ORDER=__BYTE_ORDER)
 
24
 
 
25
set(QMLMIRPLUGIN_SRC
 
26
    application_manager.cpp
 
27
    application.cpp
 
28
    ../../../common/abstractdbusservicemonitor.cpp
 
29
    ../../../common/debughelpers.cpp
 
30
    plugin.cpp
 
31
    dbuswindowstack.cpp
 
32
    mirsurfacemanager.cpp
 
33
    ubuntukeyboardinfo.cpp
 
34
    mirfocuscontroller.cpp
 
35
    mirsurface.cpp
 
36
    mirsurfaceinterface.h
 
37
    mirsurfaceitem.cpp
 
38
    mirsurfacelistmodel.cpp
 
39
    mirbuffersgtexture.cpp
 
40
    proc_info.cpp
 
41
    session.cpp
 
42
    sessionmanager.cpp
 
43
    sharedwakelock.cpp
 
44
    upstart/applicationinfo.cpp
 
45
    upstart/taskcontroller.cpp
 
46
    timer.cpp
 
47
    timesource.cpp
 
48
    tracepoints.c
 
49
    settings.cpp
 
50
# We need to run moc on these headers
 
51
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
 
52
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
 
53
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/Mir.h
 
54
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirFocusControllerInterface.h
 
55
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirSurfaceInterface.h
 
56
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirSurfaceItemInterface.h
 
57
    ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirSurfaceListInterface.h
 
58
# Feed the automoc monster
 
59
    session_interface.h
 
60
    applicationinfo.h
 
61
    taskcontroller.h
 
62
    settings_interface.h
 
63
    )
 
64
 
 
65
add_library(unityapplicationplugin SHARED
 
66
    ${QMLMIRPLUGIN_SRC}
 
67
)
 
68
 
 
69
target_link_libraries(
 
70
    unityapplicationplugin
 
71
 
 
72
    ${CMAKE_THREAD_LIBS_INIT}
 
73
 
 
74
    ${GLIB_LDFLAGS}
 
75
    ${UBUNTU_PLATFORM_API_LDFLAGS}
 
76
    ${MIRSERVER_LDFLAGS}
 
77
    ${PROCESS_CPP_LDFLAGS}
 
78
    ${UBUNTU_APP_LAUNCH_LDFLAGS}
 
79
    ${LTTNG_LDFLAGS}
 
80
    ${GSETTINGS_QT_LDFLAGS}
 
81
 
 
82
    ${GL_LIBRARIES}
 
83
 
 
84
    Qt5::Core
 
85
    Qt5::DBus
 
86
    Qt5::Qml
 
87
    Qt5::Quick
 
88
 
 
89
    qpa-mirserver
 
90
)
 
91
 
 
92
# Generate tracepoints.c and .h from tracepoints.tp
 
93
include(UseLttngGenTp)
 
94
add_lttng_gen_tp(NAME tracepoints)
 
95
 
 
96
 
 
97
# install
 
98
add_qml_plugin(Unity.Application 0.1 Unity/Application TARGETS unityapplicationplugin)
 
99
install(FILES com.canonical.qtmir.gschema.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/glib-2.0/schemas)