+%bcond_with x
%bcond_with mesa
%bcond_with wayland
%bcond_with decrypt
Name: wrt
Summary: web runtime
Version: 0.8.288
-Release: 1
+Release: 0
Group: Development/Libraries
License: Apache-2.0
URL: N/A
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(ui-gadget-1)
+BuildRequires: pkgconfig(libcurl)
+%if %{with x}
BuildRequires: pkgconfig(utilX)
+%endif
BuildRequires: pkgconfig(secure-storage)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(libiri)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(app2sd)
+BuildRequires: pkgconfig(libtzplatform-config)
%if %{with mesa}
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: gettext
BuildRequires: edje-tools
Requires: libss-client
+Requires: libtzplatform-config
## wrt-launchpad-daemon #######################################################
BuildRequires: pkgconfig(app-checker)
security-client
security-core
secure-storage
+ libtzplatform-config
REQUIRED
)
#include <widget_model.h>
#include <application_launcher.h>
+#include <tzplatform_config.h>
+
namespace ViewModule {
namespace {
const char* const SCHEME_TYPE_HTML5_VIDEO = "html5video";
const char* const HTTP_STREAMING_APPLE_MIMETYPE =
"application/vnd.apple.mpegurl";
const char* const SCHEM_FILE = "file";
-const char* const DOWNLOAD_PATH = "/opt/usr/media/Downloads/";
+const char* const DOWNLOAD_PATH = tzplatform_mkpath(TZ_USER_DOWNLOADS,"/");
}
//Implementation class
appsvc
efl-assist
libsystemd-daemon
+ libtzplatform-config
REQUIRED
)
// env
const char* const HOME = "HOME";
-const char* const APP_HOME_PATH = "/opt/home/app";
-const char* const ROOT_HOME_PATH = "/opt/home/root";
+const char* const APP_HOME_PATH = tzplatform_getenv(TZ_USER_HOME);
+const char* const ROOT_HOME_PATH = tzplatform_getenv(TZ_SYS_ROOT);
WrtClient::WrtClient(int argc, char **argv) :
Application(argc, argv, "wrt-client", false),
#define TIMEOUT_DEFAULT 10
#define ROOT_DEFAULT_UID 0
#define ROOT_DEFAULT_GID 0
-#define WEBAPP_DEFAULT_UID 5000
-#define WEBAPP_DEFAULT_GID 5000
#define LOGGING_DEFAULT_GID 6509
#define RETURN_ERROR -1
x11
sqlite3
libsystemd-daemon
+ libtzplatform-config
REQUIRED
)
#include <privilege-control.h>
#include <sys/prctl.h>
+#include <tzplatform_config.h>
+
#include "config.h"
#include "gl.h"
#include "app_sock.h"
#define PKG_ID_LENGTH 11
#define SDK_CODE_COVERAGE "CODE_COVERAGE"
#define SDK_DYNAMIC_ANALYSIS "DYNAMIC_ANALYSIS"
-#define PATH_DA_SO "/home/developer/sdk_tools/da/da_probe.so"
-#define PATH_APP_ROOT "/opt/usr/apps"
+#define PATH_DA_SO tzplatform_mkpath(TZ_SDK_TOOLS,"da/da_probe.so")
#define PATH_DATA "/data"
// Prototype
if (strncmp(str, SDK_CODE_COVERAGE, strlen(str)) == 0) {
snprintf(buf,
MAX_LOCAL_BUFSZ,
- PATH_APP_ROOT "/%s" PATH_DATA,
- _get_pkgname(menu_info));
+ "%s/%s" PATH_DATA,
+ tzplatform_getenv(TZ_USER_APP),_get_pkgname(menu_info));
ret = setenv("GCOV_PREFIX", buf, 1);
_D("GCOV_PREFIX : %d", ret);
ret = setenv("GCOV_PREFIX_STRIP", "4096", 1);