Update according to the actual Q1 tizen common release
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-application-framework / app-core / app-core.inc
1 DESCRIPTION = "Application basic"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Application Framework/Libraries"
4 LICENSE = "Apache-2.0"
5 PV = "1.2"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by app-core-efl
17 PROVIDES += "app-core-efl"
18
19
20 #PROVIDES by app-core-template
21 PROVIDES += "app-core-template"
22
23
24 #PROVIDES by app-core
25
26
27 #PROVIDES by app-core-common-dev
28 PROVIDES += "app-core-common-dev"
29
30
31 #PROVIDES by app-core-common
32 PROVIDES += "app-core-common"
33
34
35 #PROVIDES by app-core-efl-dev
36 PROVIDES += "app-core-efl-dev"
37
38
39 RDEPENDS = ""
40 #RDEPENDS of app-core-efl (${PN}-efl)
41 RDEPENDS_${PN}-efl += "glibc"
42
43 #RDEPENDS of app-core-common-dev (${PN}-common-dev)
44 RDEPENDS_${PN}-common-dev += "elementary"
45 RDEPENDS_${PN}-common-dev += "sensord"
46 RDEPENDS_${PN}-common-dev += "app-core-common"
47 RDEPENDS_${PN}-common-dev += "vconf"
48 RDEPENDS_${PN}-common-dev += "aul"
49
50 #RDEPENDS of app-core-common (${PN}-common)
51 RDEPENDS_${PN}-common += "glibc"
52
53 #RDEPENDS of app-core-efl-dev (${PN}-efl-dev)
54 RDEPENDS_${PN}-efl-dev += "app-core-efl"
55 RDEPENDS_${PN}-efl-dev += "app-core-common-dev"
56
57
58 DEPENDS = ""
59 #DEPENDS of app-core
60 DEPENDS += "librua"
61 inherit tizen_cmake
62 DEPENDS += "tizen-platform-config"
63 DEPENDS += "aul"
64 DEPENDS += "dlog"
65 inherit pkgconfig
66 DEPENDS += "elementary"
67 DEPENDS += "ecore"
68 DEPENDS += "glib-2.0"
69 DEPENDS += "sensord"
70 DEPENDS += "vconf"
71
72 do_prep() {
73  cd ${S}
74  chmod -Rf a+rX,u+w,g-w,o-w ${S}
75  #setup -q 
76  cp ${S}/packaging/app-core.manifest .
77  
78  
79  
80 }
81 do_patch_append() {
82     bb.build.exec_func('do_prep', d)
83 }
84
85 do_configure() {
86 }
87
88 do_compile() {
89  cd ${S}
90  LANG=C
91  export LANG
92  unset DISPLAY
93  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
94  
95  
96  
97    cmake \
98          -DCMAKE_VERBOSE_MAKEFILE=ON \
99          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
100          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
101          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
102          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
103          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
104          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
105          -DCMAKE_SKIP_RPATH:BOOL=ON \
106          -DBUILD_SHARED_LIBS:BOOL=ON \
107          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
108          ${EXTRA_OECMAKE} . \
109  -Dwith_wayland=TRUE\
110  -DENABLE_GTK=OFF
111  
112  oe_runmake
113  
114  
115  
116  
117 }
118
119 do_install() {
120  export RPM_BUILD_ROOT=${D}
121  cd ${S}
122  LANG=C
123  export LANG
124  unset DISPLAY
125  rm -rf ${D}
126  mkdir -p ${D}
127  
128  rm -rf ${D}
129  
130    oe_runmake \
131          DESTDIR=${D} \
132          INSTALL_ROOT=${D} \
133          BINDIR=${prefix}/bin \
134    install  
135    rm -f ${D}${infodir}/dir 
136    find ${D} -regex ".*\.la$" | xargs rm -f -- 
137    find ${D} -regex ".*\.a$" | xargs rm -f --
138  install -d ${D}${prefix}/lib/systemd/user/core-efl.target.wants
139  install -m0644 ${S}/packaging/core-efl-wayland.target ${D}${prefix}/lib/systemd/user/core-efl.target
140  
141  
142  
143 }
144
145 pkg_postinst_app-core-common() {
146     #!/bin/sh -e
147
148     [ "x$D" == "x" ] && ldconfig
149 }
150
151 pkg_postinst_app-core-efl() {
152     #!/bin/sh -e
153
154     [ "x$D" == "x" ] && ldconfig
155 }
156
157 pkg_postrm_app-core-efl() {
158     #!/bin/sh -e
159
160     [ "x$D" == "x" ] && ldconfig
161 }
162
163 pkg_postrm_app-core-common() {
164     #!/bin/sh -e
165
166     [ "x$D" == "x" ] && ldconfig
167 }
168
169 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
170 PACKAGES += " app-core-efl-dev "
171 PACKAGES += " app-core-efl "
172 PACKAGES += " app-core-common "
173 PACKAGES += " app-core-common-dev "
174
175 app-core-efl-dev_files = ""
176 app-core-efl-dev_files += "${prefix}/include/appcore/appcore-efl.h"
177 app-core-efl-dev_files += "${prefix}/lib/libappcore-efl.so"
178 app-core-efl-dev_files += "${prefix}/lib/pkgconfig/appcore-efl.pc"
179 MANIFESTFILES_${PN}-efl-dev = "app-core.manifest"
180
181 app-core-efl_files = ""
182 app-core-efl_files += "${prefix}/lib/libappcore-efl.so.*"
183 MANIFESTFILES_${PN}-efl = "app-core.manifest"
184
185 app-core-common_files = ""
186 app-core-common_files += "${prefix}/lib/libappcore-common.so.*"
187 app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target"
188 app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target.wants/"
189 MANIFESTFILES_${PN}-common = "app-core.manifest"
190
191 app-core-common-dev_files = ""
192 app-core-common-dev_files += "${prefix}/lib/libappcore-common.so"
193 app-core-common-dev_files += "${prefix}/lib/pkgconfig/appcore-common.pc"
194 app-core-common-dev_files += "${prefix}/include/appcore/appcore-common.h"
195 app-core-common-dev_files += "${prefix}/include/SLP_Appcore_PG.h"
196 MANIFESTFILES_${PN}-common-dev = "app-core.manifest"
197
198 FILES_${PN}-efl-dev = "${app-core-efl-dev_files}"
199 FILES_${PN}-efl = "${app-core-efl_files}"
200 FILES_${PN}-common = "${app-core-common_files}"
201 FILES_${PN}-common-dev = "${app-core-common-dev_files}"
202
203 PKG_app-core-efl-dev= "app-core-efl-dev"
204 PKG_app-core-efl= "app-core-efl"
205 PKG_app-core-common= "app-core-common"
206 PKG_app-core-common-dev= "app-core-common-dev"
207
208 require app-core-extraconf.inc
209