Use tz platform config API to get the user content directory instead of hard-wired... 68/16268/1 tizen_3.0.m14.2_ivi submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 tizen_3.0.m14.2_ivi_release
authorRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 12 Feb 2014 11:12:09 +0000 (16:42 +0530)
committerRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 12 Feb 2014 11:23:54 +0000 (16:53 +0530)
configure.ac: module specification for libtzplatform-config
Makefile.am: Include tz platform config flags and lib
mm_util_jpeg_testsuite.c: Remove hard-wired path and get path from tzplatform_makepath
libmm-utility.spec: include package tzplatform-config

Bug-Tizen: PTREL-203
Change-Id: I9e7c15391e22156f695ec519afe4f22b6dd50c26
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
configure.ac
jpeg/test/Makefile.am
jpeg/test/mm_util_jpeg_testsuite.c
packaging/libmm-utility.spec

index caa2aba..ad84831 100755 (executable)
@@ -53,6 +53,11 @@ PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
 AC_SUBST(GMODULE_CFLAGS)
 AC_SUBST(GMODULE_LIBS)
 
+#tz-platform-config lib
+PKG_CHECK_MODULES(TZ_PLATFORM_CONFIG, libtzplatform-config)
+AC_SUBST(TZ_PLATFORM_CONFIG_CFLAGS)
+AC_SUBST(TZ_PLATFORM_CONFIG_LIBS)
+
 AC_CONFIG_FILES([Makefile
                 imgp/Makefile
                 imgp/test/Makefile
index 290d3ed..3efb66d 100755 (executable)
@@ -5,7 +5,8 @@ mm_util_jpeg_testsuite_SOURCES = mm_util_jpeg_testsuite.c
 mm_util_jpeg_testsuite_CFLAGS = -I$(srcdir)/../include
 mm_util_jpeg_testsuite_CFLAGS += $(MMTA_CFLAGS) -DGST_EXT_TIME_ANALYSIS \
                                 $(MMCOMMON_CFLAGS) \
-                                $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x0100 -DMMF_DEBUG_PREFIX=\"MMF-IMAGE\"
+                                $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x0100 -DMMF_DEBUG_PREFIX=\"MMF-IMAGE\" \
+                                $(TZ_PLATFORM_CONFIG_FLAGS)
 
 
 ############################################
@@ -14,5 +15,6 @@ mm_util_jpeg_testsuite_DEPENDENCIES = $(srcdir)/../libmmutil_jpeg.la
                                                
 mm_util_jpeg_testsuite_LDADD = $(srcdir)/../libmmutil_jpeg.la 
 mm_util_jpeg_testsuite_LDADD += $(MMTA_LIBS) \
-                               $(MMCOMMON_LIBS)
+                               $(MMCOMMON_LIBS) \
+                               $(TZ_PLATFORM_CONFIG_LIBS)
 
index c41b365..9e1480a 100755 (executable)
 #include <mm_ta.h>
 #include <mm_error.h>
 #include <mm_debug.h>
-#define ENCODE_RESULT_PATH "/opt/usr/media/encode_test.jpg"
-#define DECODE_RESULT_PATH "/opt/usr/media/decode_test."
+#include <tzplatform_config.h>
+
+#define ENCODE_RESULT_PATH tzplatform_mkpath(TZ_USER_CONTENT, "encode_test.jpg")
+#define DECODE_RESULT_PATH tzplatform_mkpath(TZ_USER_CONTENT, "decode_test.")
+
 #define TRUE  1
 #define FALSE 0
 #define BUFFER_SIZE 128
index 9e0bf42..2a1f9e3 100644 (file)
@@ -14,6 +14,7 @@ BuildRequires:  pkgconfig(mm-ta)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gmodule-2.0)
 BuildRequires:  libjpeg-turbo-devel
+BuildRequires:  pkgconfig(libtzplatform-config)
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build