From e42391c459d97f85738885931c9d5ece26a227ab Mon Sep 17 00:00:00 2001 From: Ghislain MARY <ghislain.mary@belledonne-communications.com> Date: Tue, 11 Feb 2014 15:45:42 +0100 Subject: [PATCH] Fix resources path on BlackBerry 10. --- configure.ac | 9 ++++++++- tester/liblinphone_tester.c | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fc5e5a52ee..c12172764d 100644 --- a/configure.ac +++ b/configure.ac @@ -491,7 +491,14 @@ if test "$relativeprefix" = "yes" ; then fi dnl Set PACKAGE_LOCALE_DIR in config.h. -DATADIRNAME=share +case "$target_os" in + *qnx*) + DATADIRNAME=app/native/assets + ;; + *) + DATADIRNAME=share + ;; +esac AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${package_prefix}/${DATADIRNAME}/locale",[Defines the place where locales can be found]) AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/${DATADIRNAME}",[Defines the place where data are found]) diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index dc844e5398..9f654542cc 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -46,8 +46,12 @@ const char* test_route="sip2.linphone.org"; #if WINAPI_FAMILY_PHONE_APP const char *liblinphone_tester_file_prefix="Assets"; #else +#ifdef __QNX__ +const char *liblinphone_tester_file_prefix="./app/native/assets/"; +#else const char *liblinphone_tester_file_prefix="."; #endif +#endif const char *userhostsfile = "tester_hosts"; -- GitLab