-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
:Release Notes: Move sandstone from PRO layer to OSE layer :Detailed Notes: Move sandstone from PRO layer to OSE layer Move sandstone related code from PRO layer to OSE layer :Testing Performed: Verf built and locally tested :QA Notes: :Issues Addressed: [WRN-6874] Move sandstone from PRO layer to OSE layer [WRN-8410] CCC: Move sandstone from PRO layer to OSE layer Change-Id: Iaab04d02b91486f0bde103b0340a72db4927a87f
- Loading branch information
Showing
2 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
meta-webos/recipes-webos/enactjs-apps/enact-sandstone.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# Copyright (c) 2020-2021 LG Electronics, Inc. | ||
|
||
SUMMARY = "Enact Sandstone standard override used for Enact apps" | ||
AUTHOR = "Jason Robitaille <[email protected]>" | ||
SECTION = "webos/apps" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://enact/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" | ||
|
||
inherit webos_enact_repo | ||
inherit webos_arch_indep | ||
inherit webos_enactjs_env | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
SRC_URI = " \ | ||
${ENACTJS_GIT_REPO}/sandstone.git;name=main;nobranch=1;destsuffix=git/sandstone \ | ||
${ENACTJS_GIT_REPO}/enact;name=enact;nobranch=1;destsuffix=git/enact \ | ||
" | ||
|
||
# NOTE: PV is the Sandstone version (which uses the Semantic Versioning spec), | ||
# with the hyphen converted to a tilde so that the dpkg-style version-comparison | ||
# algorithm properly recognizes that a pre-release precedes the associated final | ||
# release (e.g., 1.0-pre.1 < 1.0). | ||
|
||
PV = "2.0.1" | ||
|
||
SRCREV = "d82b4339adb6b89b060775fc12af0904c6eb8879" | ||
SRCREV_enact = "e5c7a0c9d3b8d15321f5fff3c0d17bc0ae9a786e" | ||
|
||
do_fetch[vardeps] += "SRCREV_enact" | ||
SRCREV_FORMAT = "main_enact" | ||
|
||
# Ordered dependency list for Sandstone; provides shrink-wrap style locking in of package versions | ||
WEBOS_ENACT_DEPENDENCIES ??= "\ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
" | ||
|
||
# NOTE: We only need to bump PR if we change something OTHER than | ||
# PV, SRCREV or the dependencies statement above. | ||
|
||
PR = "r6" | ||
|
||
# Skip unneeded tasks | ||
do_configure[noexec] = "1" | ||
|
||
do_compile() { | ||
cd ${S}/sandstone | ||
${ENACT_JSDOC_TO_TS} | ||
|
||
for LIB in core ui spotlight i18n webos ; do | ||
cd ${S}/enact/packages/$LIB | ||
${ENACT_JSDOC_TO_TS} | ||
done | ||
|
||
cd ${S} | ||
|
||
# cleanup any previous do_compile | ||
rm -fr node_modules | ||
rm -fr package | ||
|
||
${WEBOS_NPM_BIN} pack --loglevel=error ./sandstone | ||
${WEBOS_NPM_BIN} pack --loglevel=error ./enact/packages/core | ||
${WEBOS_NPM_BIN} pack --loglevel=error ./enact/packages/ui | ||
${WEBOS_NPM_BIN} pack --loglevel=error ./enact/packages/spotlight | ||
${WEBOS_NPM_BIN} pack --loglevel=error ./enact/packages/i18n | ||
${WEBOS_NPM_BIN} pack --loglevel=error ./enact/packages/webos | ||
${WEBOS_NPM_BIN} pack --loglevel=error ${WEBOS_ENACT_DEPENDENCIES} | ||
|
||
for ARCHIVE in $(find . -name "*.tgz") ; do | ||
tar --warning=no-unknown-keyword -xzf ${ARCHIVE} package/package.json | ||
PKG=$(${WEBOS_NODE_BIN} -p "require('./package/package.json').name") | ||
mkdir -p node_modules/${PKG} | ||
mv -f ${ARCHIVE} node_modules/${PKG}/package.tgz | ||
done | ||
rm -fr package | ||
} | ||
|
||
do_install() { | ||
install -d ${D}${datadir}/javascript/enact-sandstone/@enact | ||
cp -R --no-dereference --preserve=mode,links -v ${S}/node_modules/* ${D}${datadir}/javascript/enact-sandstone | ||
} | ||
|
||
sysroot_stage_all_append() { | ||
# files don't get staged by default so we must force /opt to be staged | ||
sysroot_stage_dir ${D}${datadir} ${SYSROOT_DESTDIR}${datadir} | ||
} | ||
|
||
FILES_${PN} += "${datadir}" |