aboutsummaryrefslogtreecommitdiffstats
path: root/libhomescreen/libhomescreen.pro
blob: f7cae8eda3f240b5027eb80e8bbf9639796b27c4 (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
TEMPLATE = lib
TARGET = homescreen
CONFIG -= qt

SOURCES += \
        src/libhomescreen.cpp

HEADERS += \
        include/libhomescreen.hpp

CONFIG += link_pkgconfig
PKGCONFIG += glib-2.0 gio-unix-2.0

XMLSOURCES = \
    ../interfaces/homescreen.xml

gen_proxy_skeleton_h.input = XMLSOURCES
gen_proxy_skeleton_h.commands = \
    gdbus-codegen --generate-c-code ${QMAKE_FILE_IN_BASE} --c-namespace LibHomeScreen --interface-prefix org.agl. ${QMAKE_FILE_IN}
gen_proxy_skeleton_h.output = ${QMAKE_FILE_IN_BASE}.h
gen_proxy_skeleton_h.variable_out = HEADERS
gen_proxy_skeleton_h.clean = ${QMAKE_FILE_IN_BASE}.h

gen_proxy_skeleton_c.input = XMLSOURCES
gen_proxy_skeleton_c.commands = \
    gdbus-codegen --generate-c-code ${QMAKE_FILE_IN_BASE} --c-namespace LibHomeScreen --interface-prefix org.agl. ${QMAKE_FILE_IN}
gen_proxy_skeleton_c.output = ${QMAKE_FILE_IN_BASE}.c
gen_proxy_skeleton_c.variable_out = SOURCES
gen_proxy_skeleton_c.clean = ${QMAKE_FILE_IN_BASE}.c

QMAKE_EXTRA_COMPILERS += gen_proxy_skeleton_h gen_proxy_skeleton_c


gen_docbook.target = doc
gen_docbook.commands = \
    gdbus-codegen --generate-docbook doc $$PWD/../interfaces/homescreen.xml

QMAKE_EXTRA_TARGETS += gen_docbook
PRE_TARGETDEPS += doc

CONFIG += create_pc create_prl
QMAKE_PKGCONFIG_NAME = libhomescreen
QMAKE_PKGCONFIG_DESCRIPTION = A generic interface for the HomeScreen app
QMAKE_PKGCONFIG_LIBDIR = /usr/lib64
QMAKE_PKGCONFIG_INCDIR = /usr/include
QMAKE_PKGCONFIG_REQUIRES = glib-2.0 gio-unix-2.0
QMAKE_PKGCONFIG_DESTDIR = pkgconfig