From: ws29.jung Date: Wed, 25 Jul 2018 07:41:54 +0000 (+0900) Subject: Separate Watch app implementation from TV build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=897ac8b1502a71d58977d69bcdee4d7610e6fe5e;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Separate Watch app implementation from TV build Tizen build has 2 type build: Standard, TV. Wath App implementation files must include within only Standard build but gyp and sources files were including watch app files on both Standard and TV. In this patch, files relate to the Watch App are separated from TV build. Change-Id: Id355deae9b6316e3a65d237d434cbaff1a620dfd Signed-off-by: ws29.jung --- diff --git a/atom/app/runtime.cc b/atom/app/runtime.cc index c08943622..6e27d1a27 100644 --- a/atom/app/runtime.cc +++ b/atom/app/runtime.cc @@ -16,7 +16,9 @@ #include "atom/app/runtime.h" #include "atom/app/ui_runtime.h" +#if !defined(OS_TIZEN_TV_PRODUCT) #include "atom/app/watch_runtime.h" +#endif #include "atom/browser/atom_browser_main_parts.h" #include "atom/browser/native_window_efl.h" #include "base/logging.h" @@ -43,9 +45,11 @@ std::unique_ptr Runtime::MakeRuntime(content::ContentMainParams *params #endif // IME_FEATURE_SUPPORT */ auto app_data = common::ApplicationDataManager::GetCurrentAppData(); efl::WindowFactory::SetDelegate(&atom::NativeWindowEfl::GetHostWindowDelegate); +#if !defined(OS_TIZEN_TV_PRODUCT) if (app_data->app_type() == common::ApplicationData::WATCH) return std::unique_ptr(new WatchRuntime(params)); else +#endif return std::unique_ptr(new UiRuntime(params)); } diff --git a/atom/browser/native_window_efl.cc b/atom/browser/native_window_efl.cc index d032579a2..1fac54187 100644 --- a/atom/browser/native_window_efl.cc +++ b/atom/browser/native_window_efl.cc @@ -6,7 +6,12 @@ #include #include +#if defined(OS_TIZEN_TV_PRODUCT) +#include +#include +#else #include +#endif #include "atom/common/options_switches.h" #include "base/command_line.h" @@ -26,11 +31,6 @@ #include "tizen/common/application_data.h" #endif -#if defined(OS_TIZEN_TV_PRODUCT) -#include -#include -#endif - namespace atom { namespace { @@ -73,6 +73,7 @@ Evas_Object* NativeWindowEfl::GetHostWindowDelegate(const content::WebContents* Evas_Object* win = NULL; auto app_data = common::ApplicationDataManager::GetCurrentAppData(); +#if !defined(OS_TIZEN_TV_PRODUCT) if (app_data->app_type() == common::ApplicationData::WATCH) { elm_config_accel_preference_set("opengl"); watch_app_get_elm_win(&win); @@ -80,9 +81,12 @@ Evas_Object* NativeWindowEfl::GetHostWindowDelegate(const content::WebContents* evas_object_render_op_set(win, EVAS_RENDER_COPY); } else { +#endif win = elm_win_util_standard_add("", ""); elm_win_autodel_set(win, EINA_TRUE); +#if !defined(OS_TIZEN_TV_PRODUCT) } +#endif window_map_[web_contents] = win; return win; diff --git a/efl/build/system.gyp b/efl/build/system.gyp index ebbc96515..4b56c0d9a 100644 --- a/efl/build/system.gyp +++ b/efl/build/system.gyp @@ -243,7 +243,7 @@ 'target_name': 'capi-appfw-watch-application', 'type': 'none', 'conditions': [ - ['is_tizen==1', { + ['tizen_product_tv==0', { 'direct_dependent_settings': { 'cflags': [ '