[Tizen] Build watch.cpp only on wearable profile 58/183058/2 accepted/tizen/unified/20180703.062135 submit/tizen/20180702.090459
authorminho.sun <minho.sun@samsung.com>
Mon, 2 Jul 2018 05:00:43 +0000 (14:00 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 2 Jul 2018 08:44:01 +0000 (08:44 +0000)
We use watch.cpp when profile is wearable.
So, build watch.cpp only on wearable profile.

Change-Id: I15664296f09a444a03da04042eadfc2f488cf574
Signed-off-by: minho.sun <minho.sun@samsung.com>
configure.ac
dali-csharp-binder/Makefile.am
dali-csharp-binder/file.list
packaging/dali-csharp-binder.spec

index 7e7d29c..90744ce 100755 (executable)
@@ -23,8 +23,16 @@ AC_ARG_ENABLE(ecoreWl2,
               enable_ecoreWl2=yes,
               enable_ecoreWl2=no)
 
+# Tizen Profile options
+AC_ARG_ENABLE([profile],
+              [AC_HELP_STRING([--enable-profile=COMMON,MOBILE,WEARABLE,TV,IVI,UBUNTU],
+                            [Select the variant of tizen])],
+              [enable_profile=$enableval],
+              [enable_profile=UBUNTU])
+
 AM_CONDITIONAL([TIZENBUILD], [test x$enable_tizenBuild = xyes])
 AM_CONDITIONAL([ECOREWL2], [test x$enable_ecoreWl2 = xyes])
+AM_CONDITIONAL([WEARABLE_PROFILE], [test x$enable_profile = xWEARABLE])
 
 PKG_PROG_PKG_CONFIG
 # Checks for libraries. added for widget_viewer_dali binding only for tizen
index 8a7eb07..13cd6cc 100755 (executable)
@@ -29,7 +29,11 @@ else
 libdali_csharp_binder_la_SOURCES = $(dali_csharp_binder_src_files)
 endif
 
+if WEARABLE_PROFILE
+libdali_csharp_binder_la_SOURCES += \
+                  $(dali_csharp_binder_src_files_watch)
+endif
+
 libdali_csharp_binderdir = $(includedir)/dali-csharp-binder
 libdali_csharp_binder_HEADERS = $(dali_csharp_binder_header_files)
 
-
index 2abbf77..b429bbd 100755 (executable)
@@ -30,7 +30,6 @@ dali_csharp_binder_src_files = \
   src/input-method-context.cpp \
   src/input-method-options.cpp \
   src/animation.cpp \
-  src/watch.cpp \
   src/adaptor.cpp \
   src/extents.cpp
 
@@ -64,7 +63,6 @@ dali_csharp_binder_src_files_tizen = \
   src/input-method-options.cpp \
   src/animation.cpp \
   src/key-grab.cpp \
-  src/watch.cpp \
   src/widget_view.cpp \
   src/widget_view_manager.cpp \
   src/adaptor.cpp \
@@ -75,3 +73,5 @@ dali_csharp_binder_src_files_tizen = \
 dali_csharp_binder_header_files = \
   src/common.h
 
+dali_csharp_binder_src_files_tizen_watch = \
+  src/watch.cpp
index 59f1282..0073909 100755 (executable)
@@ -50,11 +50,15 @@ This package includes developer files common to all packages.
 # added for key grab binding only for tizen
 %if 0%{?tizen_version_major} >= 5
 %configure --enable-ecoreWl2=yes \
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+           --enable-profile=WEARABLE \
+%endif
            --enable-tizenBuild=yes
 %else
 %configure --enable-tizenBuild=yes
 %endif
 
+
 make %{?_smp_mflags}
 
 ##############################