blob: 32594340907d530fa4adee4b267ee13cea5ea69b (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
bin_PROGRAMS = \
wgtpkg-installer \
wgtpkg-pack \
wgtpkg-sign \
wgtpkg-info \
af-usrd
OTHERSRCS = \
utils-dir.c \
utils-jbus.c \
verbose.c
WGTPKGSRCS = \
wgtpkg-base64.c \
wgtpkg-certs.c \
wgtpkg-digsig.c \
wgtpkg-files.c \
wgtpkg-install.c \
wgtpkg-permissions.c \
wgtpkg-workdir.c \
wgtpkg-xmlsec.c \
wgtpkg-zip.c
WGTSRCS = \
wgt-config.c \
wgt-info.c \
wgt.c
SECWRP = \
secmgr-wrap.c
APPFWK = \
appfwk.c \
appfwk-run.c
AM_CFLAGS = -Wall -Wno-pointer-sign
AM_CFLAGS += -ffunction-sections -fdata-sections
fwk_name = aglfwk
fwk_confdir = $(sysconfdir)/$(fwk_name)
fwk_datadir = $(datadir)/$(fwk_name)
fwk_appdir = $(fwk_datadir)/applications
fwk_icondir = $(fwk_datadir)/icons
fwk_prefix = urn:agl:
fwk_prefix_permission = $(fwk_prefix)perm:
fwk_prefix_plugin = $(fwk_prefix)plugin:
wgtpkg_trusted_cert_dir = $(fwk_confdir)/certs
AM_CFLAGS += -DFWK_CONFIG_DIR=\"$(fwk_confdir)\"
AM_CFLAGS += -DFWK_PREFIX_PERMISSION=\"$(fwk_prefix_permission)\"
AM_CFLAGS += -DFWK_PREFIX_PLUGIN=\"$(fwk_prefix_plugin)\"
AM_CFLAGS += -DFWK_ICON_DIR=\"$(fwk_icondir)\"
AM_CFLAGS += -DFWK_APP_DIR=\"$(fwk_appdir)\"
AM_CFLAGS += -DWGTPKG_TRUSTED_CERT_DIR=\"$(wgtpkg_trusted_cert_dir)\"
AM_LDFLAGS = -Wl,--gc-sections
AM_CFLAGS += \
${DBUS_CFLAGS} \
${JSON_CFLAGS} \
${OPENSSL_CFLAGS} \
${XML2_CFLAGS} \
${XMLSEC_CFLAGS} \
${ZIP_CFLAGS}
LDADD = \
${DBUS_LIBS} \
${JSON_LIBS} \
${OPENSSL_LIBS} \
${XML2_LIBS} \
${XMLSEC_LIBS} \
${ZIP_LIBS}
# remove (or comment) following line to really use simulated components
AM_CFLAGS += -Isimulation
wgtpkg_sign_SOURCES = wgtpkg-sign.c ${WGTPKGSRCS} ${OTHERSRCS}
wgtpkg_pack_SOURCES = wgtpkg-pack.c ${WGTPKGSRCS} ${OTHERSRCS}
wgtpkg_installer_SOURCES = wgtpkg-installer.c ${WGTPKGSRCS} ${WGTSRCS} ${SECWRP} ${OTHERSRCS}
wgtpkg_info_SOURCES = wgtpkg-info.c ${WGTPKGSRCS} ${WGTSRCS} ${OTHERSRCS}
af_usrd_SOURCES = af-usrd.c ${APPFWK} ${WGTSRCS} ${OTHERSRCS}
|