CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(attach-panel-voicerecorder C)
+PROJECT(ug-attach-panel-voicerecorder C)
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
SET(CMAKE_BUILD_TYPE "Release")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fpie")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -fpie")
SET(CMAKE_LDFLAGS "-Wl,-zdefs" )
-SET(voicerecorder_UG_PROJECT_NAME attach-panel-voicerecorder)
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
INSTALL(FILES ${CMAKE_BINARY_DIR}/audio_recorder.edj DESTINATION ${RESDIR}/edje/${PROJECT_NAME}/)
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/images/ DESTINATION ${RESDIR}/images/${PROJECT_NAME}/)
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/images/ DESTINATION ${RESDIR}/images/attach-panel-voicerecorder)
-
-#INSTALL(FILES ${PROJECT_NAME}.xml DESTINATION /usr/share/packages)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.xml DESTINATION ${TZ_SYS_RO_PACKAGES}/)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/attach-panel-voicerecorder.xml DESTINATION ${TZ_SYS_RO_PACKAGES}/)
# i18n
ADD_SUBDIRECTORY(res/po)
BuildRequires: pkgconfig(libtzplatform-config)
%description
-Description: voicerecorder UG
+Description: attach-panel-voicerecorder UG
%prep
%setup -q
%post
mkdir -p /usr/ug/bin/
-ln -sf %{_prefix}/bin/ug-client %{TZ_SYS_RO_UG}/bin/%{name}
+ln -sf /usr/bin/ug-client %{TZ_SYS_RO_UG}/bin/attach-panel-voicerecorder
%postun
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%{TZ_SYS_RO_UG}/lib/libattach-panel-voicerecorder.so*
-%{TZ_SYS_RO_UG}/res/edje/attach-panel-voicerecorder/*
+%{TZ_SYS_RO_UG}/lib/libug-attach-panel-voicerecorder.so*
+%{TZ_SYS_RO_UG}/res/edje/ug-attach-panel-voicerecorder/*
%{TZ_SYS_RO_UG}/res/images/attach-panel-voicerecorder/*
%{TZ_SYS_RO_UG}/res/locale/*
%{TZ_SYS_RO_PACKAGES}/attach-panel-voicerecorder.xml
#define STR_NOTIFICATION_TEXT "IDS_VR_TPOP_UNABLE_TO_SAVE_RECORDING_RECORDING_TOO_SHORT"
#define VR_STR_DOMAIN_SYS "sys_string"
#define VR_STR_DOMAIN_LOCAL "attach-panel-voicerecorder"
-#define EDJ_FILE_NAME "audio_recorder.edj"
+#define EDJ_FILE_NAME PREFIX"/res/edje/ug-attach-panel-voicerecorder/audio_recorder.edj"
static audio_recorder_view *viewhandle = NULL;
// set layout file
double scale = elm_config_scale_get();
- char edj_path[1024] = {0};
- char *path = app_get_resource_path();
- if (path == NULL) {
- LOGD("resource path is null");
- return;
- }
-
- snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_FILE_NAME);
- LOGD("edj_path path = %s", edj_path);
- free(path);
if ((scale - 1.8) < 0.0001) {
- elm_layout_file_set(layout, edj_path, "audio_recorder_wvga");
+ elm_layout_file_set(layout, EDJ_FILE_NAME, "audio_recorder_wvga");
} else if ((scale - 2.6) < 0.0001) {
- elm_layout_file_set(layout, edj_path, "audio_recorder_hd");
+ elm_layout_file_set(layout, EDJ_FILE_NAME, "audio_recorder_hd");
} else {
- elm_layout_file_set(layout, edj_path, "audio_recorder_hd");
+ elm_layout_file_set(layout, EDJ_FILE_NAME, "audio_recorder_hd");
}
char *domain = VR_STR_DOMAIN_LOCAL;