Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: build/common.gypi

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error in chrome/browser/BUILD.gn Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | chrome/browser/translate/cld_data_harness.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 # For CLD2, the size of the tables that should be included in the build 487 # For CLD2, the size of the tables that should be included in the build
488 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data 488 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
489 # tool explicitly. 489 # tool explicitly.
490 # See third_party/cld_2/cld_2.gyp for more information. 490 # See third_party/cld_2/cld_2.gyp for more information.
491 # 0: Small tables, lower accuracy 491 # 0: Small tables, lower accuracy
492 # 1: Medium tables, medium accuracy 492 # 1: Medium tables, medium accuracy
493 # 2: Large tables, high accuracy 493 # 2: Large tables, high accuracy
494 'cld2_table_size%': 2, 494 'cld2_table_size%': 2,
495 495
496 # The data acquisition mode for CLD2. Possible values are:
497 # static: CLD2 data is statically linked to the executable.
498 # standalone: CLD2 data is provided in a standalone file that is
499 # bundled with the executable.
500 # component: CLD2 data is provided as a Chrome "component" and is
501 # downloaded via the component updater.
502 #
503 # For more information on switching the CLD2 data source, see:
504 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact -language-detector-cld-data-source-configuration
505 #
506 # This string will be exposed in chrome://translate-internals under the
507 # heading "CLD Data Source". This allows easy determination of which
508 # data source the browser was built with.
509 'cld2_data_source%': 'static',
510
511 # Enable spell checker. 496 # Enable spell checker.
512 'enable_spellcheck%': 1, 497 'enable_spellcheck%': 1,
513 498
514 # Webrtc compilation is enabled by default. Set to 0 to disable. 499 # Webrtc compilation is enabled by default. Set to 0 to disable.
515 'enable_webrtc%': 1, 500 'enable_webrtc%': 1,
516 501
517 # Enables use of the session service, which is enabled by default. 502 # Enables use of the session service, which is enabled by default.
518 # Support for disabling depends on the platform. 503 # Support for disabling depends on the platform.
519 'enable_session_service%': 1, 504 'enable_session_service%': 1,
520 505
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 }], 714 }],
730 715
731 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { 716 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
732 'enable_one_click_signin%': 1, 717 'enable_one_click_signin%': 1,
733 'enable_pre_sync_backup%': 1, 718 'enable_pre_sync_backup%': 1,
734 }], 719 }],
735 720
736 ['OS=="android"', { 721 ['OS=="android"', {
737 'enable_extensions%': 0, 722 'enable_extensions%': 0,
738 'enable_google_now%': 0, 723 'enable_google_now%': 0,
739 'cld_version%': 1, 724 'cld_version%': 2,
740 'enable_spellcheck%': 0, 725 'enable_spellcheck%': 0,
741 'enable_themes%': 0, 726 'enable_themes%': 0,
742 'remoting%': 0, 727 'remoting%': 0,
743 'arm_neon%': 0, 728 'arm_neon%': 0,
744 'arm_neon_optional%': 1, 729 'arm_neon_optional%': 1,
745 'native_discardable_memory%': 1, 730 'native_discardable_memory%': 1,
746 'native_memory_pressure_signals%': 1, 731 'native_memory_pressure_signals%': 1,
747 'enable_printing%': 2, 732 'enable_printing%': 2,
748 'enable_task_manager%':0, 733 'enable_task_manager%':0,
749 # Set to 1 once we have a notification system for Android. 734 # Set to 1 once we have a notification system for Android.
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 'linux_use_debug_fission%': '<(linux_use_debug_fission)', 1123 'linux_use_debug_fission%': '<(linux_use_debug_fission)',
1139 'use_canvas_skia%': '<(use_canvas_skia)', 1124 'use_canvas_skia%': '<(use_canvas_skia)',
1140 'test_isolation_mode%': '<(test_isolation_mode)', 1125 'test_isolation_mode%': '<(test_isolation_mode)',
1141 'test_isolation_outdir%': '<(test_isolation_outdir)', 1126 'test_isolation_outdir%': '<(test_isolation_outdir)',
1142 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', 1127 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
1143 'enable_printing%': '<(enable_printing)', 1128 'enable_printing%': '<(enable_printing)',
1144 'enable_spellcheck%': '<(enable_spellcheck)', 1129 'enable_spellcheck%': '<(enable_spellcheck)',
1145 'enable_google_now%': '<(enable_google_now)', 1130 'enable_google_now%': '<(enable_google_now)',
1146 'cld_version%': '<(cld_version)', 1131 'cld_version%': '<(cld_version)',
1147 'cld2_table_size%': '<(cld2_table_size)', 1132 'cld2_table_size%': '<(cld2_table_size)',
1148 'cld2_data_source%': '<(cld2_data_source)',
1149 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1133 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1150 'disable_file_support%': '<(disable_file_support)', 1134 'disable_file_support%': '<(disable_file_support)',
1151 'disable_ftp_support%': '<(disable_ftp_support)', 1135 'disable_ftp_support%': '<(disable_ftp_support)',
1152 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 1136 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
1153 'enable_task_manager%': '<(enable_task_manager)', 1137 'enable_task_manager%': '<(enable_task_manager)',
1154 'sas_dll_path%': '<(sas_dll_path)', 1138 'sas_dll_path%': '<(sas_dll_path)',
1155 'wix_path%': '<(wix_path)', 1139 'wix_path%': '<(wix_path)',
1156 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1140 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1157 'use_system_libjpeg%': '<(use_system_libjpeg)', 1141 'use_system_libjpeg%': '<(use_system_libjpeg)',
1158 'android_webview_build%': '<(android_webview_build)', 1142 'android_webview_build%': '<(android_webview_build)',
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 }], 2819 }],
2836 ['enable_background==1', { 2820 ['enable_background==1', {
2837 'defines': ['ENABLE_BACKGROUND=1'], 2821 'defines': ['ENABLE_BACKGROUND=1'],
2838 }], 2822 }],
2839 ['enable_google_now==1', { 2823 ['enable_google_now==1', {
2840 'defines': ['ENABLE_GOOGLE_NOW=1'], 2824 'defines': ['ENABLE_GOOGLE_NOW=1'],
2841 }], 2825 }],
2842 ['cld_version!=0', { 2826 ['cld_version!=0', {
2843 'defines': ['CLD_VERSION=<(cld_version)'], 2827 'defines': ['CLD_VERSION=<(cld_version)'],
2844 }], 2828 }],
2845 ['cld_version==2', {
2846 # This is used to populate the "CLD Data Source" field in:
2847 # chrome://translate-internals
2848 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
2849 }],
2850 ['enable_printing==1', { 2829 ['enable_printing==1', {
2851 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 2830 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2852 }], 2831 }],
2853 ['enable_printing==2', { 2832 ['enable_printing==2', {
2854 'defines': ['ENABLE_PRINTING=1'], 2833 'defines': ['ENABLE_PRINTING=1'],
2855 }], 2834 }],
2856 ['enable_spellcheck==1', { 2835 ['enable_spellcheck==1', {
2857 'defines': ['ENABLE_SPELLCHECK=1'], 2836 'defines': ['ENABLE_SPELLCHECK=1'],
2858 }], 2837 }],
2859 ['enable_captive_portal_detection==1', { 2838 ['enable_captive_portal_detection==1', {
(...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5729 # settings in target dicts. SYMROOT is a special case, because many other 5708 # settings in target dicts. SYMROOT is a special case, because many other
5730 # Xcode variables depend on it, including variables such as 5709 # Xcode variables depend on it, including variables such as
5731 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5710 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5732 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5711 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5733 # files to appear (when present) in the UI as actual files and not red 5712 # files to appear (when present) in the UI as actual files and not red
5734 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5713 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5735 # and therefore SYMROOT, needs to be set at the project level. 5714 # and therefore SYMROOT, needs to be set at the project level.
5736 'SYMROOT': '<(DEPTH)/xcodebuild', 5715 'SYMROOT': '<(DEPTH)/xcodebuild',
5737 }, 5716 },
5738 } 5717 }
OLDNEW
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | chrome/browser/translate/cld_data_harness.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698