summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjy910.yun <jy910.yun@samsung.com>2014-11-18 22:27:52 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-24 04:21:18 -0800
commit008d8a1017f90b52839a73db7a303875f2872c21 (patch)
treecd8ba15480826f3d7120d16d97da441fddfd5afd
parentb348232c12fe1117548b68c6c5eccfc4ec62cf77 (diff)
downloaddeviced-accepted/tizen/wearable/20141230.002210.tar.gz
deviced-accepted/tizen/wearable/20141230.002210.tar.bz2
deviced-accepted/tizen/wearable/20141230.002210.zip
Features of Deviced: - Common - Battery - Buzzer - Camera led - Display - Extcon - Hall - Sdcard - Sim - Usb - Vibrator Change-Id: I3ee600d299ca1422ac113bc9d91217a8164c162b Signed-off-by: jy910.yun <jy910.yun@samsung.com>
-rwxr-xr-xCMakeLists.txt18
-rwxr-xr-xpackaging/deviced.spec12
2 files changed, 27 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c407a00f..1c983109 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,15 +34,17 @@ SET(SRCS
src/core/main.c
src/core/sig-handler.c
src/gpio/gpio.c
- src/gpio/buzzer.c
- src/gpio/hall.c
- src/gpio/sim.c
src/power/power-handler.c
src/proc/cpu-info.c
src/proc/proc-handler.c
src/time/time-handler.c
)
+IF(TIZEN_BUZZER)
+SET(SRCS ${SRCS}
+ src/gpio/buzzer.c)
+ENDIF(TIZEN_BUZZER)
+
IF(TIZEN_BATTERY)
SET(SRCS ${SRCS}
src/battery/battery-time.c
@@ -60,6 +62,11 @@ SET(SRCS ${SRCS}
)
ENDIF(TIZEN_EXTCON)
+IF(TIZEN_HALL)
+SET(SRCS ${SRCS}
+ src/gpio/hall.c)
+ENDIF(TIZEN_HALL)
+
IF(TIZEN_SDCARD)
SET(SRCS ${SRCS}
src/mmc/config.c
@@ -74,6 +81,11 @@ SET(SRCS ${SRCS}
ENDIF(USE_EMULATOR)
ENDIF(TIZEN_SDCARD)
+IF(TIZEN_SIM)
+SET(SRCS ${SRCS}
+ src/gpio/sim.c)
+ENDIF(TIZEN_SIM)
+
IF(TIZEN_DISPLAY)
SET(SRCS ${SRCS}
src/display/auto-brightness.c
diff --git a/packaging/deviced.spec b/packaging/deviced.spec
index cbdd056f..25e6dc42 100755
--- a/packaging/deviced.spec
+++ b/packaging/deviced.spec
@@ -5,9 +5,12 @@
#These options are DEACTIVATED by default.
%bcond_with x
%bcond_with battery
+%bcond_with buzzer
%bcond_with camera_led
%bcond_with extcon
+%bcond_with hall
%bcond_with sdcard
+%bcond_with sim
%bcond_with usb
%bcond_with vibrator
@@ -187,6 +190,9 @@ export CFLAGS+=" -DX11_SUPPORT"
%if %{with battery}
-DTIZEN_BATTERY:BOOL=ON \
%endif
+%if %{with buzzer}
+ -DTIZEN_BUZZER:BOOL=ON \
+%endif
%if %{with camera_led}
-DTIZEN_CAMERA_LED:BOOL=ON \
%endif
@@ -196,9 +202,15 @@ export CFLAGS+=" -DX11_SUPPORT"
%if %{with extcon}
-DTIZEN_EXTCON:BOOL=ON \
%endif
+%if %{with hall}
+ -DTIZEN_HALL:BOOL=ON \
+%endif
%if %{with sdcard}
-DTIZEN_SDCARD:BOOL=ON \
%endif
+%if %{with sim}
+ -DTIZEN_SIM:BOOL=ON \
+%endif
%if %{with usb}
-DTIZEN_USB:BOOL=ON \
%endif