summaryrefslogtreecommitdiff
path: root/composer/CMakeLists.txt
blob: cde262bb494f5f5c496eccca991a6cfc6902c16a (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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(ug-msg-composer-efl C)

#SET (COMPOSER composer)
SET (UGCOMPOSER ug-msg-composer-efl)
#################################
#	Message composer	#
#################################
SET(COMPOSER_SRCS
	./src/gadget/msg-ui-composer-gadget.c
	./src/external/msg-ui-composer-external.c
	./src/message/msg-ui-composer-message.c
	./src/util/msg-ui-composer-util.c
	./src/ui-composer/msg-ui-composer-attachment.c
	./src/ui-composer/msg-ui-composer-body.c
	./src/ui-composer/msg-ui-composer-body-page.c
	./src/ui-composer/msg-ui-composer-body-callback.c
	./src/ui-composer/msg-ui-composer-recipient.c
	./src/ui-composer/msg-ui-composer-recipient-callback.c
	./src/ui-composer/msg-ui-composer-popup.c
	./src/ui-composer/msg-ui-composer-predictsearch.c
	./src/ui-composer/msg-ui-composer-subject.c
	./src/ui-composer/msg-ui-composer-common.c
	./src/ui-composer/msg-ui-composer-pageduration.c
	./src/ui-composer/msg-ui-composer-main.c
	./src/bubble/msg-ui-composer-bubble-main.c
	./src/bubble/msg-ui-composer-bubble-list.c
	./src/bubble/msg-ui-composer-bubble-callback.c
	./src/bubble/msg-ui-composer-bubble-util.c
)

INCLUDE_DIRECTORIES(
		${CMAKE_CURRENT_SOURCE_DIR}/include
		${CMAKE_CURRENT_SOURCE_DIR}/src/ui-composer
		${CMAKE_CURRENT_SOURCE_DIR}/src/util
		${CMAKE_SOURCE_MAIN_DIR}
		${CMAKE_SOURCE_COMMON_DIR}
)

FOREACH(flag ${pkgs_CFLAGS})
	SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -Wall")
SET(CMAKE_LDFLAGS "-Wl,-zdefs" )

ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{PREFIX}\"")
ADD_DEFINITIONS("-DDATAFS=\"$ENV{DATADIR}\"")
ADD_DEFINITIONS("-DTARGET")
ADD_DEFINITIONS("-DSLP_PROF")

ADD_LIBRARY(${UGCOMPOSER} SHARED ${COMPOSER_SRCS})
TARGET_LINK_LIBRARIES(${UGCOMPOSER} ${CMAKE_LDFLAGS} ${pkgs_LDFLAGS} -L${CMAKE_SOURCE_COMMON_DIR} -lmsg-common)

ADD_CUSTOM_TARGET(composer.edj
                COMMAND edje_cc -id
				${CMAKE_SOURCE_COMMON_DIR}/data/edc_image
				${CMAKE_CURRENT_SOURCE_DIR}/data/composer_edc/composer_main.edc
				${CMAKE_CURRENT_SOURCE_DIR}/data/composer_edc/composer.edj
				DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/composer_edc/composer_main.edc

)

ADD_DEPENDENCIES(${UGCOMPOSER} composer.edj)

INSTALL(TARGETS ${UGCOMPOSER} DESTINATION ${UGDIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/composer/data/composer_edc/composer.edj DESTINATION ${EDJDIR})