~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to connection-glib/connection-glib.pro

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20130723194704-0o18p2ao0x9sa1zx
Tags: upstream-0.99.0+git20130615+97e8335
ImportĀ upstreamĀ versionĀ 0.99.0+git20130615+97e8335

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
TOP_DIR = ..
2
 
 
3
 
include($$TOP_DIR/config.pri)
4
 
 
5
 
TEMPLATE = lib
6
 
TARGET = $$TOP_DIR/lib/$$MALIIT_CONNECTION_GLIB_LIB
7
 
CONFIG += staticlib
8
 
 
9
 
CONFIG += link_pkgconfig
10
 
PKGCONFIG += glib-2.0 gthread-2.0 dbus-glib-1
11
 
 
12
 
system(pkg-config gio-2.0 --atleast-version 2.26) {
13
 
    DEFINES   += MALIIT_USE_GIO_API
14
 
    PKGCONFIG += gio-2.0
15
 
}
16
 
 
17
 
debug{
18
 
    DEFINES += ENABLE_DEBUG
19
 
}
20
 
 
21
 
!enable-dbus-activation {
22
 
    DEFINES += NO_DBUS_ACTIVATION
23
 
}
24
 
 
25
 
DEFINES += G_LOG_DOMAIN=\\\"Maliit\\\"
26
 
 
27
 
# Generated dbus glue code has warnings of this type, so disable them
28
 
QMAKE_CFLAGS_DEBUG += -Wno-unused-parameter
29
 
QMAKE_CFLAGS_RELEASE += -Wno-unused-parameter
30
 
 
31
 
HEADERS += \
32
 
    meego-im-proxy.h \
33
 
    meego-imcontext-dbus.h \
34
 
    meego-im-connector.h \
35
 
    qt-keysym-map.h \
36
 
    debug.h \
37
 
    meego-imcontext-dbus-private.h \
38
 
    meego-im-connector-private.h \
39
 
 
40
 
SOURCES += \
41
 
    meego-im-proxy.c \
42
 
    meego-imcontext-dbus.c \
43
 
    meego-im-connector.c \
44
 
    qt-keysym-map.cpp \
45
 
    debug.c \
46
 
 
47
 
include($$TOP_DIR/dbus_interfaces/dbus_interfaces.pri)
48
 
 
49
 
# improxy
50
 
# Generate dbus glue
51
 
QMAKE_EXTRA_TARGETS += dbus_glue_improxy
52
 
dbus_glue_improxy.target = $$OUT_PWD/meego-im-proxy-glue.h
53
 
dbus_glue_improxy.output = $$OUT_PWD/meego-im-proxy-glue.h
54
 
dbus_glue_improxy.depends = $$DBUS_SERVER_XML
55
 
dbus_glue_improxy.commands = \
56
 
    dbus-binding-tool --prefix=meego_im_proxy --mode=glib-client \
57
 
        --output=$$OUT_PWD/meego-im-proxy-glue.h \
58
 
        $$DBUS_SERVER_XML
59
 
 
60
 
# Use to work around the fact that qmake looks up the target for the generated header wrong
61
 
QMAKE_EXTRA_TARGETS += fake_dbus_glue_improxy
62
 
fake_dbus_glue_improxy.target = meego-im-proxy-glue.h
63
 
fake_dbus_glue_improxy.depends = dbus_glue_improxy
64
 
 
65
 
# imcontext
66
 
# Generate dbus glue
67
 
QMAKE_EXTRA_TARGETS += dbus_glue_imcontext
68
 
dbus_glue_imcontext.target = $$OUT_PWD/meego-imcontext-dbus-glue.h
69
 
dbus_glue_imcontext.output = $$OUT_PWD/meego-imcontext-dbus-glue.h
70
 
dbus_glue_imcontext.depends = $$DBUS_CONTEXT_XML
71
 
dbus_glue_imcontext.commands = \
72
 
    dbus-binding-tool --prefix=meego_imcontext_dbus --mode=glib-server \
73
 
        --output=$$OUT_PWD/meego-imcontext-dbus-glue.h \
74
 
        $$DBUS_CONTEXT_XML
75
 
 
76
 
# Use to work around the fact that qmake looks up the target for the generated header wrong
77
 
QMAKE_EXTRA_TARGETS += fake_dbus_glue_imcontext
78
 
fake_dbus_glue_imcontext.target = meego-imcontext-dbus-glue.h
79
 
fake_dbus_glue_imcontext.depends = dbus_glue_imcontext
80
 
 
81
 
GLIB_GENMARSHAL_LIST += maliitmarshalers.list
82
 
 
83
 
OTHER_FILES += maliitmarshalers.list
84
 
 
85
 
glib_genmarshal_header.name = glib-genmarshal header ${QMAKE_FILE_IN}
86
 
glib_genmarshal_header.commands = glib-genmarshal --prefix=_maliit_marshal --header --g-fatal-warnings ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
87
 
glib_genmarshal_header.output = ${QMAKE_FILE_IN_BASE}.h
88
 
glib_genmarshal_header.variable_out = HEADERS
89
 
glib_genmarshal_header.input = GLIB_GENMARSHAL_LIST
90
 
 
91
 
glib_genmarshal_source.name = glib-genmarshal source ${QMAKE_FILE_IN}
92
 
glib_genmarshal_source.commands = glib-genmarshal --prefix=_maliit_marshal --body --g-fatal-warnings ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
93
 
glib_genmarshal_source.output = ${QMAKE_FILE_IN_BASE}.c
94
 
glib_genmarshal_source.variable_out = SOURCES
95
 
glib_genmarshal_source.input = GLIB_GENMARSHAL_LIST
96
 
 
97
 
QMAKE_EXTRA_COMPILERS += glib_genmarshal_header glib_genmarshal_source