Merge "fix: use EINA_* booleans instread of TRUE/FALSE" into tizen tizen submit/tizen_common/20140521.163740
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Fri, 28 Feb 2014 11:29:03 +0000 (03:29 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 28 Feb 2014 11:29:03 +0000 (03:29 -0800)
packaging/wrt.spec
src/view/common/CMakeLists.txt
src/view/common/view_logic_apps_support.cpp
src/wrt-client/CMakeLists.txt
src/wrt-client/wrt-client.cpp
src/wrt-launcher/wrt-launcher.cpp
src/wrt-launchpad-daemon/CMakeLists.txt
src/wrt-launchpad-daemon/include/launchpad_util.h

index 8662de1..079c9a2 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_with x
 %bcond_with mesa
 %bcond_with wayland
 %bcond_with decrypt
@@ -6,7 +7,7 @@
 Name:       wrt
 Summary:    web runtime
 Version:    0.8.288
-Release:    1
+Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
 URL:        N/A
@@ -31,7 +32,10 @@ BuildRequires:  pkgconfig(libpcrecpp)
 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)
@@ -55,6 +59,7 @@ BuildRequires:  pkgconfig(wrt-popup-ace-runner)
 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)
@@ -70,6 +75,7 @@ BuildRequires:  libss-client-devel
 BuildRequires:  gettext
 BuildRequires:  edje-tools
 Requires: libss-client
+Requires: libtzplatform-config
 
 ## wrt-launchpad-daemon #######################################################
 BuildRequires:  pkgconfig(app-checker)
index 3338fb0..60f9eb2 100644 (file)
@@ -37,6 +37,7 @@ PKG_CHECK_MODULES(SYS_VIEW_COMMON_DEP
     security-client
     security-core
     secure-storage
+    libtzplatform-config
     REQUIRED
 )
 
index fdf502c..9b1f778 100644 (file)
@@ -33,6 +33,8 @@
 #include <widget_model.h>
 #include <application_launcher.h>
 
+#include <tzplatform_config.h>
+
 namespace ViewModule {
 namespace {
 const char* const SCHEME_TYPE_HTML5_VIDEO = "html5video";
@@ -40,7 +42,7 @@ const char* const HTTP_STREAMING_MPEG_MIMETYPE = "application/x-mpegurl";
 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
index 43877a8..f8631e9 100644 (file)
@@ -37,6 +37,7 @@ PKG_CHECK_MODULES(CLIENT_DEP
     appsvc
     efl-assist
     libsystemd-daemon
+    libtzplatform-config
     REQUIRED
 )
 
index 10fdda1..c28b405 100644 (file)
@@ -68,8 +68,8 @@ static char** app_argv = NULL;
 
 // 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),
index 66e4824..0dbb8c4 100644 (file)
@@ -38,8 +38,6 @@
 #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
 
index 6428e9a..90f9004 100644 (file)
@@ -34,6 +34,7 @@ PKG_CHECK_MODULES(WRT_LAUNCH_PAD_DEPS
     x11
     sqlite3
     libsystemd-daemon
+    libtzplatform-config
     REQUIRED
 )
 
index e46c74b..827a161 100644 (file)
@@ -28,6 +28,8 @@
 #include <privilege-control.h>
 #include <sys/prctl.h>
 
+#include <tzplatform_config.h>
+
 #include "config.h"
 #include "gl.h"
 #include "app_sock.h"
@@ -40,8 +42,7 @@
 #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
@@ -80,8 +81,8 @@ _static_ void __set_sdk_env(app_info_from_db* menu_info, char* str)
     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);