~mardy/ubuntu-system-settings-online-accounts/qml-dialog

1 by Alberto Mardegan
First iteration
1
#-----------------------------------------------------------------------------
2
# Common configuration for all projects.
3
#-----------------------------------------------------------------------------
4
5
# we don't like warnings...
6
QMAKE_CXXFLAGS += -Werror
7
# Disable RTTI
8
QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti
9
10
TOP_SRC_DIR = $$PWD
11
TOP_BUILD_DIR = $${TOP_SRC_DIR}/$(BUILD_DIR)
12
13
include(coverage.pri)
14
15
#-----------------------------------------------------------------------------
16
# setup the installation prefix
17
#-----------------------------------------------------------------------------
18
INSTALL_PREFIX = /usr  # default installation prefix
19
20
# default prefix can be overriden by defining PREFIX when running qmake
21
isEmpty(PREFIX) {
22
    message("====")
23
    message("==== NOTE: To override the installation path run: `qmake PREFIX=/custom/path'")
24
    message("==== (current installation path is `$${INSTALL_PREFIX}')")
25
} else {
26
    INSTALL_PREFIX = $${PREFIX}
27
    message("====")
28
    message("==== install prefix set to `$${INSTALL_PREFIX}'")
29
}
30
35.1.10 by Alberto Mardegan
Support multiarch
31
INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib
32
35.1.12 by Alberto Mardegan
Fix tests
33
isEmpty(LIBDIR) {
35.1.10 by Alberto Mardegan
Support multiarch
34
    message("====")
35
    message("==== NOTE: To override the library installation path run: `qmake LIBDIR=/custom/path'")
36
    message("==== (current installation path is `$${INSTALL_LIBDIR}')")
37
} else {
38
    INSTALL_LIBDIR = $${LIBDIR}
39
    message("====")
40
    message("==== install prefix set to `$${INSTALL_LIBDIR}'")
41
}
42
4.1.1 by Alberto Mardegan
WIP
43
ONLINE_ACCOUNTS_PLUGIN_DIR_BASE = share/accounts/qml-plugins
44
ONLINE_ACCOUNTS_PLUGIN_DIR = $${INSTALL_PREFIX}/$${ONLINE_ACCOUNTS_PLUGIN_DIR_BASE}
45
1 by Alberto Mardegan
First iteration
46
PLUGIN_MANIFEST_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_manifest_dir SystemSettings")
47
PLUGIN_MODULE_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_module_dir SystemSettings")
48
PLUGIN_QML_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_qml_dir SystemSettings")
35.2.4 by Ken VanDine
Install module in the private dir and depend on libsystemsettings-dev that
49
PLUGIN_PRIVATE_MODULE_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_private_module_dir SystemSettings")