Change hard coded path to get by using tzplatform API 44/162144/1 accepted/tizen/unified/20171130.113327 submit/tizen/20171130.061035
authorhj kim <backto.kim@samsung.com>
Wed, 29 Nov 2017 08:58:09 +0000 (17:58 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 29 Nov 2017 08:58:23 +0000 (17:58 +0900)
Change-Id: I05eaf38f20f7e7baf7f7166cec2d4918019b51fd

decode-test/CMakeLists.txt
decode-test/image_util_decode_encode_testsuite.c
packaging/capi-media-image-util.spec

index 82f0cad..8ced48c 100755 (executable)
@@ -1,7 +1,7 @@
 SET(fw_test "${fw_name}-decode-test")
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(${fw_test} REQUIRED glib-2.0)
+pkg_check_modules(${fw_test} REQUIRED glib-2.0 libtzplatform-config)
 
 FOREACH(flag ${${fw_test}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
index c93f6ee..35fbddc 100755 (executable)
 #include <image_util.h>
 #include <image_util_internal.h>
 #include <glib.h>
+#include <tzplatform_config.h>
 
-#define DECODE_RESULT_PATH "/home/owner/media/decode_test."
-#define ENCODE_RESULT_PATH "/home/owner/media/encode_test."
+#define DECODE_RESULT_PATH tzplatform_mkpath(TZ_USER_CONTENT, "decode_test.")
+#define ENCODE_RESULT_PATH tzplatform_mkpath(TZ_USER_CONTENT, "encode_test.")
 
 #define ARGC_MIN 3
 #define CMD_MAX 30
index 46b5caa..b598f58 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
-Version:    0.1.30
+Version:    0.1.31
 Release:    2
 Group:      Multimedia/API
 License:    Apache-2.0
@@ -16,6 +16,7 @@ BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(capi-media-tool)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gmodule-2.0)
+BuildRequires:  pkgconfig(libtzplatform-config)
 BuildRequires:  cmake
 BuildRequires:  libpng-devel
 BuildRequires:  giflib-devel