{ 'includes': [ 'filenames.gypi', 'vendor/native_mate/native_mate_files.gypi', ], 'targets': [ { 'target_name': 'wrt', 'type': 'executable', 'dependencies': [ '<(DEPTH)/electron.gyp:js2asar', '<(DEPTH)/electron.gyp:app2asar', 'wrt_lib', 'wrt-service', '<(DEPTH)/tizen/common/common.gyp:wrt_common', '<(DEPTH)/tizen/loader/loader.gyp:wrt-loader', '<(DEPTH)/tizen/renderer/injected_bundle.gyp:xwalk_injected_bundle', '<(DEPTH)/efl/build/system.gyp:ecore', '<(DEPTH)/efl/build/system.gyp:launchpad', '<(DEPTH)/efl/build/system.gyp:capi-appfw-application', '<(DEPTH)/efl/build/system.gyp:capi-system-device', '<(DEPTH)/efl/build/system.gyp:elementary', '<(DEPTH)/efl/build/system.gyp:tts', 'electron_shell_copy', ], 'sources': [ 'tizen/src/wrt_main.cc', 'tizen/src/wrt_main.h', 'tizen/loader/prelauncher.h', 'tizen/loader/prelauncher.cc', ], 'include_dirs': [ 'tizen/src', ], 'includes': [ 'tizen/build/common.gypi', ], 'ldflags': [ '-pie', '-export-dynamic', ], 'cflags': [ '-fPIC' ], 'cflags_cc': [ '-fPIC' ], 'copies': [ { 'destination': '<(SHARED_INTERMEDIATE_DIR)', 'files': [ 'tizen/pwrt_env.sh', ], }, ], }, # target wrt { 'target_name': 'wrt-service', 'type': 'executable', 'dependencies': [ 'wrt_lib', '<(DEPTH)/efl/build/system.gyp:capi-appfw-application', '<(DEPTH)/efl/build/system.gyp:capi-system-device', '<(DEPTH)/tizen/common/common.gyp:wrt_common', ], 'sources': [ 'tizen/src/app/service_main.cc', ], 'include_dirs': [ 'tizen/src', ], 'includes': [ 'tizen/build/common.gypi', ], }, # target wrt-service { 'target_name': 'wrt_lib', 'type': 'static_library', 'dependencies': [ '<(DEPTH)/tizen/extensions/extensions.gyp:xwalk_extension_shared', 'electron.gyp:atom_js2c', 'vendor/pdf_viewer/pdf_viewer.gyp:pdf_viewer', 'vendor/brightray/brightray.gyp:brightray', 'vendor/node/node.gyp:node', ], 'defines': [ # We need to access internal implementations of Node. 'NODE_WANT_INTERNALS=1', 'NODE_SHARED_MODE', # This is defined in skia/skia_common.gypi. 'SK_SUPPORT_LEGACY_GETTOPDEVICE', # Disable warnings for g_settings_list_schemas. 'GLIB_DISABLE_DEPRECATION_WARNINGS', # Defined in Chromium but not exposed in its gyp file. 'V8_USE_EXTERNAL_STARTUP_DATA', 'V8_SHARED', 'USING_V8_SHARED', 'USING_V8_PLATFORM_SHARED', 'USING_V8_BASE_SHARED', # Remove this after enable_plugins becomes a feature flag. 'ENABLE_PLUGINS', 'USE_PROPRIETARY_CODECS', 'ATOM_PRODUCT_NAME="WRT"', 'ATOM_PROJECT_NAME="WRT"', 'USE_SYSTEM_ICU', ], 'sources': [ '<@(lib_sources)', 'atom/app/runtime.cc', 'atom/app/runtime.h', 'atom/app/ui_runtime.cc', 'atom/app/ui_runtime.h', 'atom/app/watch_runtime.cc', 'atom/app/watch_runtime.h', 'atom/browser/api/atom_api_menu_efl.cc', 'atom/browser/api/atom_api_menu_efl.h', 'atom/browser/api/atom_api_web_contents_efl.cc', 'atom/browser/common_web_contents_delegate_efl.cc', 'atom/browser/native_browser_view_efl.cc', 'atom/browser/native_browser_view_efl.h', 'atom/browser/native_window_efl.cc', 'atom/browser/native_window_efl.h', 'atom/browser/splash_screen.h', 'atom/browser/splash_screen.cc', 'atom/browser/ui/accelerator_util_efl.cc', 'atom/browser/ui/drag_util_efl.cc', 'atom/browser/ui/file_dialog_efl.cc', 'atom/browser/ui/message_box_efl.cc', 'atom/browser/ui/tray_icon_efl.cc', 'atom/browser/ui/tray_icon_efl.h', 'chromium_src/chrome/browser/extensions/global_shortcut_listener_ozone.cc', 'chromium_src/chrome/browser/extensions/global_shortcut_listener_ozone.h', 'chromium_src/chrome/browser/icon_loader_efllinux.cc', 'tizen/src/app/wrt_main_delegate.cc', 'tizen/src/app/wrt_main_delegate.h', 'tizen/src/browser/api/wrt_api_core.cc', 'tizen/src/browser/api/wrt_api_core.h', 'tizen/src/browser/native_web_runtime.cc', 'tizen/src/browser/native_web_runtime.h', 'tizen/src/browser/native_web_runtime_observer.h', 'tizen/src/browser/popup.cc', 'tizen/src/browser/popup.h', 'tizen/src/browser/popup_string.cc', 'tizen/src/browser/popup_string.h', 'tizen/src/browser/wrt_ipc.cc', 'tizen/src/browser/wrt_ipc.h', 'tizen/src/browser/wrt_service.cc', 'tizen/src/browser/wrt_service.h', 'tizen/browser/tizen_browser_parts.cc', 'tizen/browser/tizen_browser_parts.h', 'tizen/browser/vibration_manager.cc', 'tizen/browser/vibration_manager.h', ], 'sources/': [ # chromium-efl supports only tizen webrtc using CAPI # which is not working on desktop linux. ['exclude', 'atom/browser/api/atom_api_desktop_capturer.cc'], ['exclude', 'atom/browser/api/atom_api_desktop_capturer.h'], ], 'include_dirs': [ '.', 'tizen', 'chromium_src', 'vendor/brightray', 'vendor/native_mate', # Include atom_natives.h. '<(SHARED_INTERMEDIATE_DIR)', # Include directories for uv and node. 'vendor/node/src', 'vendor/node/deps/http_parser', 'vendor/node/deps/uv/include', # The `node.h` is using `#include"v8.h"`. '<(libchromiumcontent_src_dir)/v8/include', # The `node.h` is using `#include"ares.h"`. 'vendor/node/deps/cares/include', # The `third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h` is using `platform/PlatformExport.h`. '<(libchromiumcontent_src_dir)/third_party/WebKit/Source', # The 'third_party/libyuv/include/libyuv/scale_argb.h' is using 'libyuv/basic_types.h'. '<(libchromiumcontent_src_dir)/third_party/libyuv/include', # The 'third_party/webrtc/modules/desktop_capture/desktop_frame.h' is using 'webrtc/base/scoped_ptr.h'. '<(libchromiumcontent_src_dir)/third_party/', '<(libchromiumcontent_src_dir)/components/cdm', '<(libchromiumcontent_src_dir)/third_party/widevine', '<(libchromiumcontent_src_dir)/tizen_src/chromium_impl', '<(libchromiumcontent_src_dir)/tizen_src/ewk/efl_integration', ], 'direct_dependent_settings': { 'include_dirs': [ '.', ], }, 'export_dependent_settings': [ 'vendor/brightray/brightray.gyp:brightray', ], 'conditions': [ ['libchromiumcontent_component', { 'link_settings': { 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ], }, }], ['OS=="linux"', { 'sources': [ '<@(lib_sources_linux)', '<@(lib_sources_nss)', ], 'link_settings': { }, # Required settings of using breakpad. 'cflags_cc': [ '-Wno-empty-body', '-Wno-reserved-user-defined-literal', ], 'include_dirs': [ 'vendor/breakpad/src', ], 'dependencies': [ 'vendor/breakpad/breakpad.gyp:breakpad_client', ], }], # OS=="linux" ['is_tizen==1', { 'cflags': [ '-fPIC' ], 'cflags_cc': [ '-fPIC' ], 'dependencies': [ '<(DEPTH)/efl/build/system.gyp:appcore-watch', '<(DEPTH)/efl/build/system.gyp:capi-appfw-application', '<(DEPTH)/efl/build/system.gyp:capi-appfw-watch-application', '<(DEPTH)/efl/build/system.gyp:efl-extension', '<(DEPTH)/efl/build/system.gyp:elementary', '<(DEPTH)/efl/build/system.gyp:evas', '<(DEPTH)/efl/build/system.gyp:icu', ], }, { 'dependencies': [ '<(DEPTH)/efl/build/system.gyp:ecore-x', '<(DEPTH)/efl/build/system.gyp:elocation', '<(DEPTH)/efl/build/system.gyp:elementary', '<(DEPTH)/efl/build/system.gyp:evas', '<(DEPTH)/efl/build/system.gyp:icu', ], }], ['tizen_product_tv==1', { 'sources!': [ 'atom/app/watch_runtime.cc', 'atom/app/watch_runtime.h', ], 'dependencies!': [ '<(DEPTH)/efl/build/system.gyp:appcore-watch', '<(DEPTH)/efl/build/system.gyp:capi-appfw-watch-application', ], 'dependencies': [ # `media_player_efl.h` internally includes `player.h`. '<(DEPTH)/efl/build/system.gyp:capi-media-player', '<(DEPTH)/efl/build/system.gyp:vd-win-util', ], }], ], }, # target wrt_lib { 'target_name': 'electron_shell_copy', 'type': 'none', 'copies': [ { 'destination': '<(PRODUCT_DIR)', 'files': [ '<(DEPTH)/efl/build/desktop/electron.sh', '<(DEPTH)/efl/build/desktop/launch.sh', ], }, ], }, # target electron_shell_copy ], }