diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2016-09-26 02:35:54 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2016-10-17 21:43:52 +0000 |
commit | 21ae572d2152bd52096aef759534a803b98eb50d (patch) | |
tree | e8c7c6c4136f8348f312c0f450c3932e07df9a18 /src/manager-lib/manager-lib.pro | |
parent | d475d73d9f292cf26e6cd1c6284a0da3efd69d09 (diff) | |
download | qtapplicationmanager-21ae572d2152bd52096aef759534a803b98eb50d.tar.gz |
Reimplemented build-system as a real Qt module
This should help with doc generation and actually running the unit-tests
in the CI system.
Please note that the binaries are now installed into $$[QT_INSTALL_BINS]
Change-Id: I6f27ba39f8e5d923e1aeff550ba11c1fbd8ac5cf
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/manager-lib/manager-lib.pro')
-rw-r--r-- | src/manager-lib/manager-lib.pro | 78 |
1 files changed, 34 insertions, 44 deletions
diff --git a/src/manager-lib/manager-lib.pro b/src/manager-lib/manager-lib.pro index 44b44393..b76523cd 100644 --- a/src/manager-lib/manager-lib.pro +++ b/src/manager-lib/manager-lib.pro @@ -1,52 +1,40 @@ - -TEMPLATE = lib -TARGET = manager-lib +TARGET = QtAppManManager +MODULE = appman_manager load(am-config) -CONFIG += static create_prl - -QT = core network qml qml-private +QT = core network qml !headless:QT *= gui quick qtHaveModule(dbus):QT *= dbus +QT_FOR_PRIVATE *= \ + appman_common-private \ + appman_crypto-private \ + appman_application-private \ + appman_notification-private \ + +CONFIG *= static internal_module multi-process { PKGCONFIG += "'dbus-1 >= 1.6'" } -DEFINES *= AM_BUILD_APPMAN - -load(add-static-library) -addStaticLibrary(../common-lib) -addStaticLibrary(../crypto-lib) -addStaticLibrary(../notification-lib) - HEADERS += \ - application.h \ - applicationdatabase.h \ applicationmanager.h \ - applicationscanner.h \ - runtimefactory.h \ applicationinterface.h \ - abstractruntime.h \ - yamlapplicationscanner.h \ - installationlocation.h \ - installationreport.h \ - dbus-policy.h \ + applicationdatabase.h \ notificationmanager.h \ - qmlinprocessruntime.h \ - qmlinprocessapplicationinterface.h \ - qml-utilities.h \ - processcontainer.h \ abstractcontainer.h \ containerfactory.h \ + plugincontainer.h \ + processcontainer.h \ + abstractruntime.h \ + runtimefactory.h \ quicklauncher.h \ - systemmonitor.h \ - systemmonitor_p.h \ applicationipcmanager.h \ applicationipcinterface.h \ applicationipcinterface_p.h \ - plugincontainer.h \ + systemmonitor.h \ + systemmonitor_p.h \ processmonitor.h \ memorymonitor.h \ fpsmonitor.h \ @@ -62,30 +50,26 @@ multi-process:HEADERS += \ linux:HEADERS += \ sysfsreader.h \ +qtHaveModule(qml):HEADERS += \ + qmlinprocessruntime.h \ + qmlinprocessapplicationinterface.h \ + SOURCES += \ - application.cpp \ - applicationdatabase.cpp \ applicationmanager.cpp \ - runtimefactory.cpp \ applicationinterface.cpp \ - abstractruntime.cpp \ - yamlapplicationscanner.cpp \ - installationlocation.cpp \ - installationreport.cpp \ - dbus-policy.cpp \ + applicationdatabase.cpp \ notificationmanager.cpp \ - qmlinprocessruntime.cpp \ - qmlinprocessapplicationinterface.cpp \ - qml-utilities.cpp \ - processcontainer.cpp \ abstractcontainer.cpp \ containerfactory.cpp \ + plugincontainer.cpp \ + processcontainer.cpp \ + abstractruntime.cpp \ + runtimefactory.cpp \ quicklauncher.cpp \ - systemmonitor.cpp \ - systemmonitor_p.cpp \ applicationipcmanager.cpp \ applicationipcinterface.cpp \ - plugincontainer.cpp \ + systemmonitor.cpp \ + systemmonitor_p.cpp \ processmonitor.cpp \ memorymonitor.cpp \ fpsmonitor.cpp \ @@ -100,6 +84,12 @@ multi-process:SOURCES += \ linux:SOURCES += \ sysfsreader.cpp \ +qtHaveModule(qml):SOURCES += \ + qmlinprocessruntime.cpp \ + qmlinprocessapplicationinterface.cpp \ + # we have an external plugin interface with signals, so we need to # compile the moc-data into the exporting binary (appman itself) HEADERS += ../plugin-interfaces/containerinterface.h + +load(qt_module) |