SET(RESDIR "${PREFIX}/res")
SET(LOCALEDIR "${PREFIX}/share/locale")
-IF("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+IF("${TIZEN_PROFILE_NAME}" STREQUAL "COMMON")
+
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/include
- ${CMAKE_SOURCE_DIR}/include/mobile
+ ${CMAKE_SOURCE_DIR}/include/common
)
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
dbus-glib-1
tts
capi-message-port
- security-manager
efl-extension
)
-IF(X11_SUPPORT)
+ELSEIF("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+
+INCLUDE_DIRECTORIES(
+ ${CMAKE_SOURCE_DIR}/include
+ ${CMAKE_SOURCE_DIR}/include/mobile
+)
+INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
- ecore-x
- utilX
- )
-ENDIF(X11_SUPPORT)
+ aul
+ capi-system-media-key
+ db-util
+ dlog
+ ecore
+ ecore-wayland
+ ecore-evas
+ ecore-input
+ edbus
+ eina
+ elementary
+ evas
+ syspopup-caller
+ vconf
+ appcore-efl
+ glib-2.0
+ ui-gadget-1
+ bundle
+ capi-appfw-application
+ capi-appfw-app-manager
+ capi-network-bluetooth
+ capi-system-system-settings
+ capi-system-info
+ capi-telephony
+ feedback
+ alarm-service
+ pkgmgr-info
+ deviced
+ edbus
+ dbus-1
+ dbus-glib-1
+ tts
+ capi-message-port
+ efl-extension
+ liblazymount
+ libsystemd-daemon
+)
+
+ELSEIF("${TIZEN_PROFILE_NAME}" STREQUAL "WEARABLE")
-ELSE()
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include/wearable
ecore
ecore-evas
ecore-input
+ ecore-wayland
edbus
eina
elementary
edbus
dbus-1
dbus-glib-1
+ liblazymount
+ libsystemd-daemon
)
+ENDIF()
+
IF(X11_SUPPORT)
pkg_check_modules(pkgs REQUIRED
ecore-x
)
ENDIF(X11_SUPPORT)
-ENDIF()
-
-
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
ADD_DEFINITIONS("-DHAVE_WAYLAND")
ENDIF(WAYLAND_SUPPORT)
-IF("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+IF("${TIZEN_PROFILE_NAME}" STREQUAL "COMMON")
+
+SET(BUILD_SOURCE
+ src/dbus_util.c
+ src/package_mgr.c
+ src/process_mgr.c
+ src/status.c
+
+ src/common/home_mgr.c
+ src/common/lock_mgr.c
+ src/common/starter.c
+ src/common/popup.c
+ src/common/hw_key.c
+)
+
+ELSEIF("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+
SET(BUILD_SOURCE
src/dbus_util.c
src/package_mgr.c
src/status.c
src/mobile/home_mgr.c
- src/mobile/starter.c
src/mobile/lock_mgr.c
- src/mobile/lock_pwd_util.c
- src/mobile/lock_pwd_simple.c
- src/mobile/lock_pwd_complex.c
- src/mobile/lock_pwd_control_panel.c
- src/mobile/lock_pwd_verification.c
- src/mobile/window_mgr.c
+ src/mobile/starter.c
src/mobile/popup.c
src/mobile/hw_key.c
)
-ELSE("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+ELSEIF("${TIZEN_PROFILE_NAME}" STREQUAL "WEARABLE")
+
SET(BUILD_SOURCE
src/dbus_util.c
src/package_mgr.c
src/wearable/clock_mgr.c
src/wearable/home_mgr.c
src/wearable/hourly_alert.c
- src/wearable/starter.c
-)
-IF(X11_SUPPORT)
-SET(BUILD_SOURCE
- ${BUILD_SOURCE}
src/wearable/hw_key.c
+ src/wearable/starter.c
)
-ENDIF(X11_SUPPORT)
-ENDIF("${TIZEN_PROFILE_NAME}" STREQUAL "MOBILE")
+
+ENDIF()
ADD_EXECUTABLE(${PROJECT_NAME} ${BUILD_SOURCE})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
INSTALL(DIRECTORY DESTINATION ${DATADIR})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/rd4starter DESTINATION /etc/init.d
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/rd3starter DESTINATION /etc/init.d
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
-#INSTALL to /etc/init.d
-
-ADD_SUBDIRECTORY(res)
ADD_SUBDIRECTORY(po)