blob: 733a0cba6dfcb5a2710ec8fdf58a43c0f9defc86 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(w-ciss C)
SET(EDJE_CC_DEFINITIONS "")
IF(_WEARABLE_CIRCLE_UI)
ADD_DEFINITIONS("-D_CISS_WEARABLE_CIRCLE_UI")
ENDIF(_WEARABLE_CIRCLE_UI)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(BINDIR "${PREFIX}/bin")
SET(RESDIR "${PREFIX}/res")
SET(LOCALEDIR "${RESDIR}/locale")
SET(EDJDIR "${RESDIR}/edje")
SET(IMGDIR "${RESDIR}/images")
SET(DATADIR "/opt/usr/apps/org.tizen.w-ciss/data")
ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
ADD_DEFINITIONS("-DBINDIR=\"${BINDIR}\"")
ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
ADD_DEFINITIONS("-DIMGDIR=\"${IMGDIR}\"")
ADD_DEFINITIONS("-DDATADIR=\"${DATADIR}\"")
SET(SRCS
src/ciss-main.c
src/ciss-parser.c
src/ciss-tapi-request.c
src/ciss-ussd.c
src/ciss-resp.c
src/ciss-widget.c
src/ciss-util.c
src/ciss-respnd.c
src/ciss-converter.c
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
tapi appcore-efl glib-2.0 gobject-2.0 vconf elementary
dlog aul bundle capi-appfw-application ecore ecore-imf
ecore-input feedback appsvc capi-system-device
efl-extension capi-ui-efl-util
)
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ${EXTRA_CFLAGS}")
ADD_DEFINITIONS("-D_CISS_HW_BACK_KEY")
#ADD_DEFINITIONS("-D_CISS_USE_CUTLINK")
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} "-pie" ${pkgs_LDFLAGS})
ADD_CUSTOM_TARGET(ciss-mmi.edj
COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/resource ${EDJE_CC_DEFINITIONS}
${CMAKE_SOURCE_DIR}/resource/ciss-mmi.edc ${CMAKE_BINARY_DIR}/ciss-mmi.edj
DEPENDS ${CMAKE_SOURCE_DIR}/resource/ciss-mmi.edc
)
ADD_DEPENDENCIES(${PROJECT_NAME} ciss-mmi.edj)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
INSTALL(DIRECTORY DESTINATION ${DATADIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.${PROJECT_NAME}.xml DESTINATION /usr/share/packages/)
INSTALL(FILES ${CMAKE_BINARY_DIR}/ciss-mmi.edj DESTINATION ${EDJDIR})
# i18n
ADD_SUBDIRECTORY(res/po)
|