aboutsummaryrefslogtreecommitdiffstats
path: root/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc')
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc96
1 files changed, 96 insertions, 0 deletions
diff --git a/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc
new file mode 100644
index 0000000..9a1f8c9
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc
@@ -0,0 +1,96 @@
+DESCRIPTION = "APP-CORE example app"
+HOMEPAGE = "https://wiki.tizen.org/wiki/IVI/Tizen-Core-development-EFL"
+SECTION = "Application Framework/Libraries"
+LICENSE = "Apache-2.0"
+PV = "1.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+
+RDEPENDS = ""
+
+inherit tizen_cmake
+DEPENDS += "app-core app-core-efl-dev"
+inherit pkgconfig
+DEPENDS += "ecore"
+DEPENDS += "elementary"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ #cp ${S}/packaging/ail.manifest .
+}
+
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ CFLAGS="$CFLAGS -fpic"
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . \
+ -DBUILD_PKGTYPE=deb
+
+ oe_runmake ${PARALLEL_MAKE}
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ #rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+}
+
+amhelloworld_files = ""
+amhelloworld_files += "${prefix}/packages/org.tizen.amhelloworld.xml"
+amhelloworld_files += "${prefix}/share/packages/org.tizen.amhelloworld.xml"
+amhelloworld_files += "${prefix}/bin/amhelloworld"
+MANIFESTFILES_${PN} = "org.tizen.amhelloworld.manifest"
+
+
+FILES_${PN} = "${amhelloworld_files}"
+
+PKG_aul= "amhelloworld"
+
+require amhelloworld-extraconf.inc
+