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
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)
############################################
mm_util_jpeg_testsuite_LDADD = $(srcdir)/../libmmutil_jpeg.la
mm_util_jpeg_testsuite_LDADD += $(MMTA_LIBS) \
- $(MMCOMMON_LIBS)
+ $(MMCOMMON_LIBS) \
+ $(TZ_PLATFORM_CONFIG_LIBS)
#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
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: libjpeg-turbo-devel
+BuildRequires: pkgconfig(libtzplatform-config)
BuildRoot: %{_tmppath}/%{name}-%{version}-build