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

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 linux/mac/windows compile issues Created 6 years, 1 month 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
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 # For CLD2, the size of the tables that should be included in the build 499 # For CLD2, the size of the tables that should be included in the build
500 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data 500 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
501 # tool explicitly. 501 # tool explicitly.
502 # See third_party/cld_2/cld_2.gyp for more information. 502 # See third_party/cld_2/cld_2.gyp for more information.
503 # 0: Small tables, lower accuracy 503 # 0: Small tables, lower accuracy
504 # 1: Medium tables, medium accuracy 504 # 1: Medium tables, medium accuracy
505 # 2: Large tables, high accuracy 505 # 2: Large tables, high accuracy
506 'cld2_table_size%': 2, 506 'cld2_table_size%': 2,
507 507
508 # The data acquisition mode for CLD2. Possible values are:
509 # static: CLD2 data is statically linked to the executable.
510 # standalone: CLD2 data is provided in a standalone file that is
511 # bundled with the executable.
512 # component: CLD2 data is provided as a Chrome "component" and is
513 # downloaded via the component updater.
514 #
515 # For more information on switching the CLD2 data source, see:
516 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact -language-detector-cld-data-source-configuration
517 #
518 # This string will be exposed in chrome://translate-internals under the
519 # heading "CLD Data Source". This allows easy determination of which
520 # data source the browser was built with.
521 'cld2_data_source%': 'static',
522
523 # Enable spell checker. 508 # Enable spell checker.
524 'enable_spellcheck%': 1, 509 'enable_spellcheck%': 1,
525 510
526 # Webrtc compilation is enabled by default. Set to 0 to disable. 511 # Webrtc compilation is enabled by default. Set to 0 to disable.
527 'enable_webrtc%': 1, 512 'enable_webrtc%': 1,
528 513
529 # Enables use of the session service, which is enabled by default. 514 # Enables use of the session service, which is enabled by default.
530 # Support for disabling depends on the platform. 515 # Support for disabling depends on the platform.
531 'enable_session_service%': 1, 516 'enable_session_service%': 1,
532 517
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 }], 736 }],
752 737
753 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { 738 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
754 'enable_one_click_signin%': 1, 739 'enable_one_click_signin%': 1,
755 'enable_pre_sync_backup%': 1, 740 'enable_pre_sync_backup%': 1,
756 }], 741 }],
757 742
758 ['OS=="android"', { 743 ['OS=="android"', {
759 'enable_extensions%': 0, 744 'enable_extensions%': 0,
760 'enable_google_now%': 0, 745 'enable_google_now%': 0,
761 'cld_version%': 1, 746 'cld_version%': 2,
762 'enable_spellcheck%': 0, 747 'enable_spellcheck%': 0,
763 'enable_themes%': 0, 748 'enable_themes%': 0,
764 'remoting%': 0, 749 'remoting%': 0,
765 'arm_neon%': 0, 750 'arm_neon%': 0,
766 'arm_neon_optional%': 1, 751 'arm_neon_optional%': 1,
767 'native_discardable_memory%': 1, 752 'native_discardable_memory%': 1,
768 'native_memory_pressure_signals%': 1, 753 'native_memory_pressure_signals%': 1,
769 'enable_printing%': 2, 754 'enable_printing%': 2,
770 'enable_task_manager%':0, 755 'enable_task_manager%':0,
771 # Set to 1 once we have a notification system for Android. 756 # Set to 1 once we have a notification system for Android.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 'linux_use_debug_fission%': '<(linux_use_debug_fission)', 1156 'linux_use_debug_fission%': '<(linux_use_debug_fission)',
1172 'use_canvas_skia%': '<(use_canvas_skia)', 1157 'use_canvas_skia%': '<(use_canvas_skia)',
1173 'test_isolation_mode%': '<(test_isolation_mode)', 1158 'test_isolation_mode%': '<(test_isolation_mode)',
1174 'test_isolation_outdir%': '<(test_isolation_outdir)', 1159 'test_isolation_outdir%': '<(test_isolation_outdir)',
1175 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', 1160 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
1176 'enable_printing%': '<(enable_printing)', 1161 'enable_printing%': '<(enable_printing)',
1177 'enable_spellcheck%': '<(enable_spellcheck)', 1162 'enable_spellcheck%': '<(enable_spellcheck)',
1178 'enable_google_now%': '<(enable_google_now)', 1163 'enable_google_now%': '<(enable_google_now)',
1179 'cld_version%': '<(cld_version)', 1164 'cld_version%': '<(cld_version)',
1180 'cld2_table_size%': '<(cld2_table_size)', 1165 'cld2_table_size%': '<(cld2_table_size)',
1181 'cld2_data_source%': '<(cld2_data_source)',
1182 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1166 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1183 'disable_file_support%': '<(disable_file_support)', 1167 'disable_file_support%': '<(disable_file_support)',
1184 'disable_ftp_support%': '<(disable_ftp_support)', 1168 'disable_ftp_support%': '<(disable_ftp_support)',
1185 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 1169 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
1186 'enable_task_manager%': '<(enable_task_manager)', 1170 'enable_task_manager%': '<(enable_task_manager)',
1187 'sas_dll_path%': '<(sas_dll_path)', 1171 'sas_dll_path%': '<(sas_dll_path)',
1188 'wix_path%': '<(wix_path)', 1172 'wix_path%': '<(wix_path)',
1189 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1173 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1190 'use_system_libjpeg%': '<(use_system_libjpeg)', 1174 'use_system_libjpeg%': '<(use_system_libjpeg)',
1191 'android_channel%': '<(android_channel)', 1175 'android_channel%': '<(android_channel)',
(...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after
2901 }], 2885 }],
2902 ['enable_background==1', { 2886 ['enable_background==1', {
2903 'defines': ['ENABLE_BACKGROUND=1'], 2887 'defines': ['ENABLE_BACKGROUND=1'],
2904 }], 2888 }],
2905 ['enable_google_now==1', { 2889 ['enable_google_now==1', {
2906 'defines': ['ENABLE_GOOGLE_NOW=1'], 2890 'defines': ['ENABLE_GOOGLE_NOW=1'],
2907 }], 2891 }],
2908 ['cld_version!=0', { 2892 ['cld_version!=0', {
2909 'defines': ['CLD_VERSION=<(cld_version)'], 2893 'defines': ['CLD_VERSION=<(cld_version)'],
2910 }], 2894 }],
2911 ['cld_version==2', {
2912 # This is used to populate the "CLD Data Source" field in:
2913 # chrome://translate-internals
2914 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
2915 }],
2916 ['enable_printing==1', { 2895 ['enable_printing==1', {
2917 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 2896 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2918 }], 2897 }],
2919 ['enable_printing==2', { 2898 ['enable_printing==2', {
2920 'defines': ['ENABLE_PRINTING=1'], 2899 'defines': ['ENABLE_PRINTING=1'],
2921 }], 2900 }],
2922 ['enable_spellcheck==1', { 2901 ['enable_spellcheck==1', {
2923 'defines': ['ENABLE_SPELLCHECK=1'], 2902 'defines': ['ENABLE_SPELLCHECK=1'],
2924 }], 2903 }],
2925 ['enable_captive_portal_detection==1', { 2904 ['enable_captive_portal_detection==1', {
(...skipping 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after
5879 # settings in target dicts. SYMROOT is a special case, because many other 5858 # settings in target dicts. SYMROOT is a special case, because many other
5880 # Xcode variables depend on it, including variables such as 5859 # Xcode variables depend on it, including variables such as
5881 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5860 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5882 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5861 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5883 # files to appear (when present) in the UI as actual files and not red 5862 # files to appear (when present) in the UI as actual files and not red
5884 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5863 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5885 # and therefore SYMROOT, needs to be set at the project level. 5864 # and therefore SYMROOT, needs to be set at the project level.
5886 'SYMROOT': '<(DEPTH)/xcodebuild', 5865 'SYMROOT': '<(DEPTH)/xcodebuild',
5887 }, 5866 },
5888 } 5867 }
OLDNEW
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | chrome/browser/component_updater/cld_component_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698