diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-06-14 17:05:55 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-06-14 17:08:41 +0900 |
commit | f637f0184d998bf01d6353a7d352fe39e546dc9e (patch) | |
tree | ea882d33e45369251013defee6c140d8225aaa6b | |
parent | bdf76d0705550617e09996cf84ec832a99a9bb7c (diff) | |
download | debug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.tar.gz debug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.tar.bz2 debug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.zip |
Add the root path to the environmentsubmit/tizen/20160614.094055accepted/tizen/wearable/20160615.001547accepted/tizen/tv/20160615.001534accepted/tizen/mobile/20160615.001620accepted/tizen/ivi/20160615.001453accepted/tizen/common/20160615.193245
Change-Id: If77de10a6932acf9be7cb055cdb4701f1800041a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | include/debug_util.h | 1 | ||||
-rw-r--r-- | include/defs.h | 1 | ||||
-rw-r--r-- | src/common.c | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/include/debug_util.h b/include/debug_util.h index b86e07d..f8d7a61 100644 --- a/include/debug_util.h +++ b/include/debug_util.h @@ -28,7 +28,6 @@ int _prepare_debug_tool(bundle *kb, const char *appid, const char **str_arr, int len); void _change_file(const char *path); void _wait_for_valgrind_output(void); -void _set_env(appinfo_t *app_info, bundle *kb); char **_create_argc_argv(bundle *kb, int *margc, const char *app_path); #endif /* __DEBUG_UTIL_H__ */ diff --git a/include/defs.h b/include/defs.h index 698c2a7..b298998 100644 --- a/include/defs.h +++ b/include/defs.h @@ -35,6 +35,7 @@ #define AUL_K_WAYLAND_DISPLAY "__AUL_WAYLAND_DISPLAY__" #define AUL_K_WAYLAND_WORKING_DIR "__AUL_WAYLAND_WORKING_DIR__" #define AUL_K_API_VERSION "__AUL_API_VERSION__" +#define AUL_K_ROOT_PATH "__AUL_ROOT_PATH__" #define SDK_CODE_COVERAGE "CODE_COVERAGE" #define SDK_DEBUG "DEBUG" diff --git a/src/common.c b/src/common.c index 1f76ea4..faed540 100644 --- a/src/common.c +++ b/src/common.c @@ -526,6 +526,10 @@ void _set_env(appinfo_t *appinfo, bundle *kb) if (str) setenv("TIZEN_API_VERSION", str, 1); + str = bundle_get_val(kb, AUL_K_ROOT_PATH); + if (str) + setenv("AUL_ROOT_PATH", str, 1); + libdir = __get_libdir(appinfo->app_path); if (libdir) { setenv("LD_LIBRARY_PATH", libdir, 1); |