app_get_resource_path function returns correct resource path
in case of global and per user installation.
Change-Id: I03dfac82342675adf3616e9cd8bfef34b3de640f
context
)
-ADD_DEFINITIONS("-DINSTALL_RESDIR=\"${INSTALL_RESDIR}\"")
-
FOREACH (flag ${MENU_PKGS_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
prefix = app_get_cache_path();
break;
case APP_DIR_RESOURCE:
-#ifdef INSTALL_RESDIR
- prefix = strdup(INSTALL_RESDIR);
-#else
prefix = app_get_resource_path();
-#endif
break;
case APP_DIR_SHARED_DATA:
prefix = app_get_shared_data_path();