blob: a6db6ba185b54c515366bebba60cb70c522bd9e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(ug-attach-panel-document C)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(RESDIR ${PREFIX1}/res)
ADD_DEFINITIONS("-D_USE_DLOG_")
ADD_DEFINITIONS("-D_USE_SECURE_LOG_")
# subdir
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(res/edje)
ADD_SUBDIRECTORY(res/edje/icons)
ADD_SUBDIRECTORY(res/po)
ADD_SUBDIRECTORY(res/edje/sounds)
CONFIGURE_FILE(attach-panel-document.manifest ${PKGNAME}.manifest)
FUNCTION (BUILD_EDJ _in _out)
ADD_CUSTOM_TARGET(${_out}
COMMAND
edje_cc
-id ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/icons
-sd ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/sounds
${CMAKE_CURRENT_SOURCE_DIR}/res/edje/${_in}
${CMAKE_BINARY_DIR}/${_out}
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/res/edje/${_in}
)
ADD_DEPENDENCIES(${PROJECT_NAME} ${_out})
INSTALL(FILES ${CMAKE_BINARY_DIR}/${_out} DESTINATION ${RESDIR}/edje/${PROJECT_NAME}/)
ENDFUNCTION (BUILD_EDJ)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/res/edje)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/res/po)
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
libtzplatform-config
)
# Build edc files
BUILD_EDJ(attach-panel-document.edc attach-panel-document.edj)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/icons DESTINATION ${RESDIR}/edje/icons/)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/sounds DESTINATION ${RESDIR}/edje/${PROJECT_NAME}/)
INSTALL(FILES attach-panel-document.xml DESTINATION /usr/share/packages)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/icons DESTINATION ${PREFIX1}/res/images/ug-attach-panel-document)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/shared/res/org.tizen.attach-panel-document.png DESTINATION ${PREFIX1}/shared/res)
|