summaryrefslogtreecommitdiff
path: root/setting/CMakeLists.txt
blob: 5918207c5ef6d5f10a4030345cbe7588c2fc4281 (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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 
PROJECT(message C)

SET (SETTING_THEME setting_theme)
SET (MSG_UI_SETTING msg_ui_setting)

######################## 
# Message Setting List # 
########################
SET(SETTING_SRCS
	./src/main/msg-ui-setting-gadget.c
        ./src/main/msg-ui-setting-main.c
        ./src/main/msg-ui-setting-callback.c
        ./src/main/msg-ui-setting-common-util.c
        ./src/main/msg-ui-setting-msg-service-wrapper.c
        ./src/spam/msg-ui-setting-spam-setting.c
        ./src/spam/msg-ui-setting-spam-block-word.c
        ./src/spam/msg-ui-setting-spam-block-number.c
        ./src/text/msg-ui-setting-text-message.c
        ./src/text/msg-ui-setting-text-service-center.c
        ./src/multimedia/msg-ui-setting-mm-message.c
        ./src/multimedia/msg-ui-setting-mm-recv-option.c
)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_SETTING_DIR}/include 
		${CMAKE_SOURCE_MAIN_DIR}
		${CMAKE_SOURCE_COMMON_DIR}
		/usr/include/msg-service/
)


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

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")

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


ADD_CUSTOM_TARGET(${SETTING_THEME}.edj
                COMMAND edje_cc -id ${CMAKE_SOURCE_COMMON_DIR}/data/edc_image
                ${CMAKE_SOURCE_SETTING_DIR}/theme/${SETTING_THEME}.edc ${CMAKE_SOURCE_SETTING_DIR}/theme/${SETTING_THEME}.edj
                DEPENDS ${CMAKE_SOURCE_SETTING_DIR}/theme/${SETTING_THEME}.edc
)

ADD_DEPENDENCIES(${PROJECT_NAME} ${SETTING_THEME}.edj)


# Install executable and .edj files. 
INSTALL(FILES ${CMAKE_SOURCE_SETTING_DIR}/theme/${SETTING_THEME}.edj DESTINATION ${EDJDIR})
ADD_LIBRARY(ug-msg-setting-efl SHARED ${SETTING_SRCS}) 
TARGET_LINK_LIBRARIES(ug-msg-setting-efl ${pkgs_LDFLAGS} -L${CMAKE_SOURCE_COMMON_DIR} -lmsg-common)

INSTALL(TARGETS ug-msg-setting-efl  DESTINATION ${UGDIR})

#i18n
#ADD_SUBDIRECTORY(po)