-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@6.agl.guppy #19
base: master
Are you sure you want to change the base?
@6.agl.guppy #19
Changes from all commits
53e8804
16551c9
76ecdec
4d9330b
6720608
d62bc2c
16cf102
59db579
4d81d37
d630f64
1a0f910
aebdb29
c2bfbe0
7cfb6d4
f08868f
ae1928e
defc0d4
418cad6
cb342f3
d0a0b71
d73fa58
1dcc143
95af1ff
688011c
c631f32
524140c
4e314a1
c7b6bca
a0dabc2
f7c5fde
cf4a138
ac9a16b
6d79a2d
71fda64
5d1c5f8
58ce001
9da6bb7
a4d577f
14213fa
7904407
af07c1a
a179a02
cb5b4d7
62975de
6ea59fa
aef3401
0a4bd6a
b7fa465
8d7e56c
5254eb4
ed37e18
9c875f1
159cef4
ba798eb
700e456
75aaf56
8949895
e055f56
20f57de
502b9f6
903e2fa
ba7ece0
47bd88b
815191c
41ecf4c
a5ebdc5
9f74ec6
00f7a1f
45108f9
0c7d257
42770ee
2615c15
20a1ec2
aaa56e3
971df2a
3e9ce0d
9244327
574c65b
f0166b5
8271e13
dcb4779
272d3a3
2342700
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2019 LG Electronics, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.0.0) | ||
project(WebAppMgr VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
set(PLATFORM_NAME "WebOS" CACHE STRING "Target platform name") | ||
set(CHROMIUM_SRC_DIR "" CACHE PATH "Chromium source directory path") | ||
|
||
option(USE_PMLOG "Use PmLog library (WebOS)") | ||
option(USE_LUNA_SERVICE "Use Luna service (WebOS)") | ||
option(USE_SNAPSHOT_BOOT "Use snapshot boot (WebOS)") | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
add_subdirectory(src) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,198 @@ | ||
XDG_SESSION_ID="c2" | ||
XDG_RUNTIME_DIR="/run/user/0" | ||
|
||
# Set wam executable file path | ||
HOOK_SEGV=NO | ||
WAM_EXE_PATH="/usr/bin/WebAppMgr" | ||
|
||
# Set wam name for user-agent | ||
WAM_NAME="WebAppManager" | ||
|
||
# Only allow UTF8 encoding for luna-service messages. | ||
LS_ENABLE_UTF8=1 | ||
|
||
# Set effective userid and groupid | ||
#WAM_UID="wam" | ||
#WAM_GID="compositor" | ||
|
||
# Set location of error page (will follow localization rules based on this path) | ||
#WAM_ERROR_PAGE="file:///usr/share/localization/wam/loaderror.html" | ||
|
||
# suspending javascript execution delay for page visibility | ||
WAM_SUSPEND_DELAY_IN_MS=250 | ||
|
||
#if [ -e "etc/wam/make_shm.sh" ] ; then | ||
# /etc/wam/make_shm.sh | ||
#fi | ||
|
||
# Set user data directory for WebAppMgr | ||
WAM_DATA_PATH="/home/0/wamdata" | ||
|
||
# ensure that wam data directories exist | ||
#mkdir -p ${WAM_DATA_PATH} | ||
|
||
# set directories permission | ||
#chown ${WAM_UID}:${WAM_GID} ${WAM_DATA_PATH} | ||
|
||
# setup 50 Mb maximum for ApplicationCache | ||
WAM_APPCACHE_MAXSIZE=52428800 | ||
|
||
# setup 10 Mb maximum for ApplicationCache per domain | ||
WAM_APPCACHE_DOMAINLIMIT=10485760 | ||
|
||
# setup 50 Mb maximum for DiskCache | ||
WAM_DISKCACHE_MAXSIZE=52428800 | ||
|
||
# setup 256 Kb maximum for resource buffer allocation | ||
WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE=262144 | ||
|
||
# setup 1 Mb for resource buffer | ||
WAM_RESOURCE_BUFFER_SIZE=1048576 | ||
|
||
# setup 200 seconds for watchdog timeout of render process | ||
WATCHDOG_RENDER_TIMEOUT=200 | ||
|
||
# setup nubmer of raster threads to 1 | ||
BLINK_NUM_RASTER_THREADS=2 | ||
|
||
# use default tile width if not sed by recipe | ||
#if [ "$BLINK_NUM_RASTER_THREADS" = "WEBOS${BLINK_NUM_RASTER_THREADS#WEBOS}" ]; then | ||
BLINK_NUM_RASTER_THREADS=1 | ||
#fi | ||
|
||
# setup 6 Mb maximum for the program GPU cache | ||
GPU_PROGRAM_CACHE_SIZE=6144 | ||
|
||
# disable using enyo system app specfic optimization | ||
# currently used optimizations : inline caching off | ||
#USE_SYSTEM_APP_OPTIMIZATION="0" | ||
|
||
# Set location of NaCl modules | ||
#CHROMIUM_PATH="/usr/palm/applications/com.lge.app.chromium" | ||
#NACL_PLUGIN=${CHROMIUM_PATH}"/libppGoogleNaClPluginChrome.so" | ||
#NACL_IRT_LIBRARY=${CHROMIUM_PATH}"/nacl_irt_arm.nexe" | ||
#NACL_HELPER=${CHROMIUM_PATH}"/nacl_helper" | ||
#NACL_HELPER_BOOTSTRAP=${CHROMIUM_PATH}"/nacl_helper_bootstrap" | ||
|
||
# Set location of NPAPI plugins for all Apps including default Apps | ||
# This is for the flash plugin of Signage, webOS TV doesn't use it. | ||
#PRIVILEGED_PLUGIN_PATH="" | ||
|
||
# Set location of NPAPI plugins for NetCast Apps | ||
# NetCast Apps should access only the plugins in this path | ||
#NETCAST_PLUGIN_PATH="/usr/lib/BrowserPlugins" | ||
|
||
# Set location of NPAPI plugins for HbbTV app. | ||
#HBBTV_PLUGIN_PATH="/usr/lib/HbbtvPlugins" | ||
|
||
# Set InetTV player stored path | ||
#INETTV_HTML_PLAYER_PATH="/usr/share/inettv/inettv_player/index.html" | ||
|
||
# Set location of extra libraries | ||
#CDM_LIB_PATH="/usr/lib" | ||
|
||
# Set location of all NPAPI plugins | ||
NPAPI_PLUGIN_PATH=${HBBTV_PLUGIN_PATH}":"${NETCAST_PLUGIN_PATH}":"${PRIVILEGED_PLUGIN_PATH} | ||
|
||
#if [ -e "etc/wam/make_shm.sh" ] ; then | ||
# /etc/wam/make_shm.sh | ||
#fi | ||
|
||
# setup 8 Mb minimum codecache capacity | ||
JSC_minGlobalCodeCacheCapacity=8388608 | ||
|
||
# Enable more explicit logging of timing with regards to rendering | ||
# export WAM2_ENABLE_DEBUG_RENDER_TIMING=1 | ||
|
||
# enable Web Inspector and Tellurium if in developer mode | ||
TELLURIUM_NUB_PATH=/usr/palm/tellurium/telluriumnub.js | ||
ENABLE_INSPECTOR=1 | ||
|
||
# Enable cursor by default | ||
ENABLE_CURSOR_BY_DEFAULT=1 | ||
|
||
# Enable launch optimization | ||
ENABLE_LAUNCH_OPTIMIZATION=1 | ||
|
||
# Set the duration(seconds) passed from last network activity (e.g. FMP Detector) | ||
# If set to a positive value, adjust a custom timeout for a network stable timer in FMPDetector | ||
NETWORK_STABLE_TIMEOUT=3 | ||
|
||
# please keep it in alphabetical order | ||
#WAM_EXTRA_FLAGS="" | ||
#WAM_JS_FLAGS="" | ||
#WAM_COMMON_SWITCHES=" \ | ||
# --application-cache-domain-limit=$WAM_APPCACHE_DOMAINLIMIT \ | ||
# --application-cache-size=$WAM_APPCACHE_MAXSIZE \ | ||
# --browser-subprocess-path=$WAM_EXE_PATH \ | ||
# --disable-direct-npapi-requests \ | ||
# --disable-extensions \ | ||
# --disable-low-res-tiling \ | ||
# --disable-new-video-renderer \ | ||
# --disk-cache-size=$WAM_DISKCACHE_MAXSIZE \ | ||
# --enable-aggressive-release-policy \ | ||
# --enable-accelerated-plugin-rendering \ | ||
# --accelerated-plugin-rendering-blacklist=device;drmAgent;sound;service \ | ||
# --enable-gpu-rasterization \ | ||
# --disable-gpu-rasterization-for-first-frame \ | ||
# --enable-key-event-throttling \ | ||
# --enable-threaded-compositing \ | ||
# --enable-watchdog \ | ||
# --hide-selection-handles \ | ||
# --ignore-gpu-blacklist \ | ||
# --ignore-netif=p2p \ | ||
# --in-process-gpu \ | ||
# --max-unused-resource-memory-usage-percentage=0 \ | ||
# --network-stable-timeout=$NETWORK_STABLE_TIMEOUT \ | ||
# --noerrdialogs \ | ||
# --num-raster-threads=$BLINK_NUM_RASTER_THREADS \ | ||
# --ozone-platform=wayland \ | ||
# --remote-debugging-port=9998 \ | ||
# --resource-buffer-max-allocation-size=$WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE \ | ||
# --resource-buffer-size=$WAM_RESOURCE_BUFFER_SIZE \ | ||
# --touch-events=disabled \ | ||
# --ui-disable-opaque-shader-program \ | ||
# --user-agent-suffix=SmartTV \ | ||
# --user-data-dir=$WAM_DATA_PATH \ | ||
# --enable-devtools-experiments \ | ||
# --webos-wam \ " | ||
|
||
#WAM_LITE_SWITCHES=" --in-process-zygote " | ||
|
||
#export WAM_WEBOS_LITE=NO | ||
#if [ "${WAM_WEBOS_LITE}" = "YES" ] ; then | ||
# export WAM_SWITCHES=${WAM_COMMON_SWITCHES}${WAM_LITE_SWITCHES} | ||
# export SKIA_FONT_CACHE_SIZE=1 | ||
# export SKIA_IMAGE_CACHE_SIZE=40 | ||
# export SKIA_BACKGROUND_FONT_CACHE_SIZE=0 | ||
#else | ||
# export WAM_SWITCHES=${WAM_COMMON_SWITCHES} | ||
# export SKIA_FONT_CACHE_SIZE=8 | ||
# export SKIA_IMAGE_CACHE_SIZE=80 | ||
# export SKIA_BACKGROUND_FONT_CACHE_SIZE=512 | ||
#fi | ||
|
||
#export WAM_EXTRA_SKIA_CACHE_SWITCHES=" \ | ||
# --skia-font-cache-size-mb=$SKIA_FONT_CACHE_SIZE \ | ||
# --skia-image-cache-size-mb=$SKIA_IMAGE_CACHE_SIZE \ | ||
# --skia-background-font-cache-size-kb=$SKIA_BACKGROUND_FONT_CACHE_SIZE \ | ||
# " | ||
|
||
#export WAM_EXTRA_GPU_TUNING_SWITCHES=" \ | ||
# --gpu-program-cache-size-kb=$GPU_PROGRAM_CACHE_SIZE \ | ||
# " | ||
#export WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES=" \ | ||
# --watchdog-render-timeout=$WATCHDOG_RENDER_TIMEOUT \ | ||
# " | ||
|
||
#WEBOS_LOAD_ACCESSIBILITY_PLUGIN=1 | ||
|
||
#WAM_V8_CODE_CACHE_SWITCHES=" --enable-local-resource-code-cache --disallow-code-cache-from-file-uris-with-query-string " | ||
|
||
# Load any special configuration from plugins | ||
#if [ -e "/etc/wam/plugins/conf.sh" ] ; then | ||
# . /etc/wam/plugins/conf.sh || true | ||
#fi | ||
|
||
#exec $WAM_EXE_PATH $WAM_SWITCHES $WAM_EXTRA_SKIA_CACHE_SWITCHES $WAM_EXTRA_GPU_TUNING_SWITCHES $WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES $WAM_EXTRA_FLAGS $WAM_V8_CODE_CACHE_SWITCHES --js-flags="$WAM_JS_FLAGS" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need some cleanup here: remove all the comments, then move the launch files for AGL to an independent folder. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# @@@LICENSE | ||
# | ||
# Copyright (c) 2017-2018 LG Electronics, Inc. | ||
# | ||
# Confidential computer software. Valid license from LG required for | ||
# possession, use or copying. Consistent with FAR 12.211 and 12.212, | ||
# Commercial Computer Software, Computer Software Documentation, and | ||
# Technical Data for Commercial Items are licensed to the U.S. Government | ||
# under vendor's standard commercial license. | ||
# | ||
# LICENSE@@@ | ||
|
||
[Unit] | ||
Description="WebAppMgr is responsible for running web apps and manage their lifecycle" | ||
After=afm-service-windowmanager-service-2017@0.1.service afm-appli-homescreen-2017@0.1.service | ||
Wants=afm-service-windowmanager-service-2017@0.1.service afm-appli-homescreen-2017@0.1.service | ||
|
||
[Service] | ||
Type=simple | ||
OOMScoreAdjust=-1000 | ||
EnvironmentFile=-/etc/default/WebAppMgr.env | ||
ExecStart=/usr/bin/WebAppMgr --no-sandbox --in-process-gpu --remote-debugging-port=9998 --user-data-dir="/home/0/wamdata" --webos-wam | ||
Restart=on-failure | ||
RestartSec=50 | ||
|
||
[Install] | ||
WantedBy=default.target | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, as said, it'd be better to move this to an independent folder. I.e. files/launch/agl/... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=@WAM_DEST_DIR@ | ||
exec_prefix=${prefix} | ||
libdir=${prefix}/lib | ||
includedir=${prefix}/include/webappmanager | ||
|
||
Name: libWebAppMgr | ||
Description: Web Application Manager library | ||
Version: 1.0.0 | ||
|
||
Libs: -L${libdir} @PKGCONFIG_WAM_LIBS@ | ||
Cflags: -I${includedir} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, this needs to be fixed. If AGL is now using cmake, I guess we can avoid the AGL specific changes in qmake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. We can forget about this patch.