[Tizen] Build watch.cpp only on wearable profile
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Jul 2018 06:13:37 +0000 (15:13 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Jul 2018 06:13:39 +0000 (15:13 +0900)
This reverts commit f912c6f75343021144f513f49f66f59176a2ffba.

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 8c67c46..1ff3d8f 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}
 
 ##############################