TizenRefApp-7222 Privileges were added to manifest file, also added path to edje... 44/88544/4 submit/tizen/20160920.142530 submit/tizen/20160926.063918
authorOleksander Kostenko <o.kostenko@samsung.com>
Mon, 19 Sep 2016 14:12:00 +0000 (17:12 +0300)
committerOleksander Kostenko <o.kostenko@samsung.com>
Tue, 20 Sep 2016 10:39:30 +0000 (13:39 +0300)
Change-Id: Iefa7f3333caf05c2874dae7cb3c6d8ca3f2be67b
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
CMakeLists.txt
res/CMakeLists.txt [new file with mode: 0644]
setting-notification.manifest.xml

index fd6610625a7bd754ceb5d7b99929a75112361cd5..43d6ce6f5f4c07beaa0eb949b49f47d2888d2d16 100644 (file)
@@ -3,6 +3,7 @@ PROJECT(setting-notification C)
 
 # subdir
 ADD_SUBDIRECTORY(src)
+ADD_SUBDIRECTORY(res)
 ADD_SUBDIRECTORY(res/po)
 
 CONFIGURE_FILE(setting-notification.manifest-3.0.in ${PKGNAME}.manifest)
diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1339593
--- /dev/null
@@ -0,0 +1,25 @@
+
+SET(SRC_EDC ${CMAKE_CURRENT_SOURCE_DIR}/edje)
+SET(SRC_IMG ${CMAKE_CURRENT_SOURCE_DIR}/images)
+SET(SRC_EDJ_RES ${CMAKE_SOURCE_DIR}/edje)
+
+FILE(GLOB EDC_FILES ${SRC_EDC}/*.edc)
+
+FOREACH(FILE ${EDC_FILES})
+
+    get_filename_component(FILE_NAME ${FILE} NAME_WE)
+
+    ADD_CUSTOM_TARGET(${FILE_NAME}.edj
+            COMMAND edje_cc
+            -id ${SRC_EDJ_RES}/images
+            -sd ${SRC_EDJ_RES}/sounds
+            ${SRC_EDC}/${FILE_NAME}.edc ${CMAKE_BINARY_DIR}/${FILE_NAME}.edj
+            DEPENDS ${SRC_EDC}/${FILE_NAME}.edc
+    )
+
+    ADD_DEPENDENCIES(${PROJECT_NAME} ${FILE_NAME}.edj)
+    INSTALL(FILES ${CMAKE_BINARY_DIR}/${FILE_NAME}.edj DESTINATION ${EDJDIR})
+
+ENDFOREACH()
+
+INSTALL(DIRECTORY ${SRC_IMG}/ DESTINATION ${IMGDIR})
index e3f719141e5317e84ad144cc6429bd71b4e124a3..adb735a559b71d66e6f3fe13bbcd03b49741ea68 100644 (file)
@@ -5,5 +5,13 @@
        <ui-application appid="org.tizen.setting-notification" exec="/usr/apps/org.tizen.setting-notification/bin/setting-notification" launch_mode="caller" nodisplay="true" taskmanage="false" multiple="false" type="capp" hw-acceleration="on" process-pool="true">
                <icon>/usr/share/icons/default/small/setting-notification.png</icon>
                <label>setting-notification</label>
+               <app-control>
+            <operation name="http://tizen.org/appcontrol/operation/setting/do_not_disturb"/>
+            <operation name="http://tizen.org/appcontrol/operation/setting/app_notifications"/>
+        </app-control>
        </ui-application>
+       <privileges>
+        <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
+        <privilege>http://tizen.org/privilege/notification</privilege>
+    </privileges>
 </manifest>