diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2016-03-14 12:05:47 +0900 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2016-03-15 17:14:17 +0900 |
commit | 9e1d98d3d09a4e430651067ae755ca350e71c251 (patch) | |
tree | 4b5b34c135113dcbf3db0fa80ae04f15ac8bf1f0 /src | |
parent | 598e9ea6cb6b48a8030f3478da46342c890339e6 (diff) | |
download | share-panel-9e1d98d3d09a4e430651067ae755ca350e71c251.tar.gz share-panel-9e1d98d3d09a4e430651067ae755ca350e71c251.tar.bz2 share-panel-9e1d98d3d09a4e430651067ae755ca350e71c251.zip |
Restore gbs buildsubmit/sandbox/stanluk/tizen_sdk/20160315.131416
ABS build system is far from being ready and it doesn't look like it will
be ready in near future. To support submission into Tizen images
the previous build system must have been restored.
From now on two build system must be supported.
Change-Id: I1dc4712104086c4bd331edcb6ab2d3cb55be99fa
Diffstat (limited to 'src')
-rw-r--r-- | src/share_panel.c | 2 | ||||
-rw-r--r-- | src/utils.c | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/share_panel.c b/src/share_panel.c index ac7aa12..a4ff383 100644 --- a/src/share_panel.c +++ b/src/share_panel.c @@ -297,7 +297,7 @@ static void _language_changed(app_event_info_h event_info, void *data) } -int main(int argc, char **argv) +EAPI int main(int argc, char **argv) { int ret; ui_app_lifecycle_callback_s lifecycle_callback = {0, }; diff --git a/src/utils.c b/src/utils.c index e1a810a..48cae7e 100644 --- a/src/utils.c +++ b/src/utils.c @@ -24,6 +24,18 @@ char *utils_get_res_file_path(char *sub_path) { +/* Fix for support for global and user installation + * In case of global installation resoureces should be fetched from + * predefined directory + * + * In case of multi-user installation resources shoudl be fetched using + * app_get_resource_path API. + */ +#ifdef INSTALL_RESDIR + char buf[1024]; + snprintf(buf, sizeof(buf), "%s/%s", INSTALL_RESDIR, sub_path); + return strdup(buf); +#else char *res_path = app_get_resource_path(); if(!res_path) return NULL; @@ -41,4 +53,5 @@ char *utils_get_res_file_path(char *sub_path) free(res_path); return absolute_path; +#endif } |