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

Side by Side Diff: build/common.gypi

Issue 333603002: Modularize Compact Language Detector 2 (CLD2) data sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge https://codereview.chromium.org/326383005 Created 6 years, 6 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 | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 # For CLD2, the size of the tables that should be included in the build 451 # For CLD2, the size of the tables that should be included in the build
452 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data 452 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
453 # tool explicitly. 453 # tool explicitly.
454 # See third_party/cld_2/cld_2.gyp for more information. 454 # See third_party/cld_2/cld_2.gyp for more information.
455 # 0: Small tables, lower accuracy 455 # 0: Small tables, lower accuracy
456 # 1: Medium tables, medium accuracy 456 # 1: Medium tables, medium accuracy
457 # 2: Large tables, high accuracy 457 # 2: Large tables, high accuracy
458 'cld2_table_size%': 2, 458 'cld2_table_size%': 2,
459 459
460 # Set the way CLD is compiled. Only evaluated if cld_version == 2. 460 # The data acquisition mode for CLD2. Possible values are:
461 # 0: static, language scoring tables compiled into the binary 461 # static: CLD2 data is statically linked to the executable.
462 # 1: dynamic, language scoring tables live in a data file that must 462 # standalone: CLD2 data is provided in a standalone file that is
463 # be loaded at runtime. 463 # bundled with the executable.
464 'cld2_dynamic%': 0, 464 # component: CLD2 data is provided as a Chrome "component" and is
465 465 # downloaded via the component updater.
466 # Whether CLD2 is a component. Only evaluated if cld_version == 2 and 466 'cld2_data_source': 'static',
467 # cld2_dynamic == 1.
468 # 0: Not a component. If cld2_dynamic == 1, it is up to the distribution
469 # to ensure that the data file is provided if desired.
470 # 1: Componentized. CLD data should be obtained via the Component
471 # Updater.
472 'cld2_is_component%': 0,
473 467
474 # Enable spell checker. 468 # Enable spell checker.
475 'enable_spellcheck%': 1, 469 'enable_spellcheck%': 1,
476 470
477 # Webrtc compilation is enabled by default. Set to 0 to disable. 471 # Webrtc compilation is enabled by default. Set to 0 to disable.
478 'enable_webrtc%': 1, 472 'enable_webrtc%': 1,
479 473
480 # Enables use of the session service, which is enabled by default. 474 # Enables use of the session service, which is enabled by default.
481 # Support for disabling depends on the platform. 475 # Support for disabling depends on the platform.
482 'enable_session_service%': 1, 476 'enable_session_service%': 1,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 681
688 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { 682 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
689 'enable_one_click_signin%': 1, 683 'enable_one_click_signin%': 1,
690 'enable_pre_sync_backup%': 1, 684 'enable_pre_sync_backup%': 1,
691 }], 685 }],
692 686
693 ['OS=="android"', { 687 ['OS=="android"', {
694 'enable_extensions%': 0, 688 'enable_extensions%': 0,
695 'enable_google_now%': 0, 689 'enable_google_now%': 0,
696 'cld_version%': 1, 690 'cld_version%': 1,
697 'cld2_dynamic%': 0,
698 'cld2_is_component%': 0,
699 'enable_spellcheck%': 0, 691 'enable_spellcheck%': 0,
700 'enable_themes%': 0, 692 'enable_themes%': 0,
701 'remoting%': 0, 693 'remoting%': 0,
702 'arm_neon%': 0, 694 'arm_neon%': 0,
703 'arm_neon_optional%': 1, 695 'arm_neon_optional%': 1,
704 'native_discardable_memory%': 1, 696 'native_discardable_memory%': 1,
705 'native_memory_pressure_signals%': 1, 697 'native_memory_pressure_signals%': 1,
706 'enable_printing%': 2, 698 'enable_printing%': 2,
707 'enable_task_manager%':0, 699 'enable_task_manager%':0,
708 # Set to 1 once we have a notification system for Android. 700 # Set to 1 once we have a notification system for Android.
(...skipping 29 matching lines...) Expand all
738 730
739 ['OS=="android"', { 731 ['OS=="android"', {
740 'enable_webrtc%': 1, 732 'enable_webrtc%': 1,
741 }], 733 }],
742 734
743 ['OS=="ios"', { 735 ['OS=="ios"', {
744 'disable_ftp_support%': 1, 736 'disable_ftp_support%': 1,
745 'enable_extensions%': 0, 737 'enable_extensions%': 0,
746 'enable_google_now%': 0, 738 'enable_google_now%': 0,
747 'cld_version%': 1, 739 'cld_version%': 1,
748 'cld2_dynamic%': 0,
749 'enable_printing%': 0, 740 'enable_printing%': 0,
750 'enable_session_service%': 0, 741 'enable_session_service%': 0,
751 'enable_themes%': 0, 742 'enable_themes%': 0,
752 'enable_webrtc%': 0, 743 'enable_webrtc%': 0,
753 'notifications%': 0, 744 'notifications%': 0,
754 'remoting%': 0, 745 'remoting%': 0,
755 'safe_browsing%': 0, 746 'safe_browsing%': 0,
756 'enable_managed_users%': 0, 747 'enable_managed_users%': 0,
757 'enable_task_manager%': 0, 748 'enable_task_manager%': 0,
758 }], 749 }],
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 'use_canvas_skia%': '<(use_canvas_skia)', 1086 'use_canvas_skia%': '<(use_canvas_skia)',
1096 'test_isolation_mode%': '<(test_isolation_mode)', 1087 'test_isolation_mode%': '<(test_isolation_mode)',
1097 'test_isolation_outdir%': '<(test_isolation_outdir)', 1088 'test_isolation_outdir%': '<(test_isolation_outdir)',
1098 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', 1089 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
1099 'enable_printing%': '<(enable_printing)', 1090 'enable_printing%': '<(enable_printing)',
1100 'win_pdf_metafile_for_printing%': '<(win_pdf_metafile_for_printing)', 1091 'win_pdf_metafile_for_printing%': '<(win_pdf_metafile_for_printing)',
1101 'enable_spellcheck%': '<(enable_spellcheck)', 1092 'enable_spellcheck%': '<(enable_spellcheck)',
1102 'enable_google_now%': '<(enable_google_now)', 1093 'enable_google_now%': '<(enable_google_now)',
1103 'cld_version%': '<(cld_version)', 1094 'cld_version%': '<(cld_version)',
1104 'cld2_table_size%': '<(cld2_table_size)', 1095 'cld2_table_size%': '<(cld2_table_size)',
1105 'cld2_dynamic%': '<(cld2_dynamic)', 1096 'cld2_data_source%': '<(cld2_data_source)',
1106 'cld2_is_component%': '<(cld2_is_component)',
1107 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1097 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1108 'disable_file_support%': '<(disable_file_support)', 1098 'disable_file_support%': '<(disable_file_support)',
1109 'disable_ftp_support%': '<(disable_ftp_support)', 1099 'disable_ftp_support%': '<(disable_ftp_support)',
1110 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 1100 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
1111 'enable_task_manager%': '<(enable_task_manager)', 1101 'enable_task_manager%': '<(enable_task_manager)',
1112 'sas_dll_path%': '<(sas_dll_path)', 1102 'sas_dll_path%': '<(sas_dll_path)',
1113 'wix_path%': '<(wix_path)', 1103 'wix_path%': '<(wix_path)',
1114 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1104 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1115 'use_system_libjpeg%': '<(use_system_libjpeg)', 1105 'use_system_libjpeg%': '<(use_system_libjpeg)',
1116 'android_webview_build%': '<(android_webview_build)', 1106 'android_webview_build%': '<(android_webview_build)',
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2703 }], 2693 }],
2704 ['enable_background==1', { 2694 ['enable_background==1', {
2705 'defines': ['ENABLE_BACKGROUND=1'], 2695 'defines': ['ENABLE_BACKGROUND=1'],
2706 }], 2696 }],
2707 ['enable_google_now==1', { 2697 ['enable_google_now==1', {
2708 'defines': ['ENABLE_GOOGLE_NOW=1'], 2698 'defines': ['ENABLE_GOOGLE_NOW=1'],
2709 }], 2699 }],
2710 ['cld_version!=0', { 2700 ['cld_version!=0', {
2711 'defines': ['CLD_VERSION=<(cld_version)'], 2701 'defines': ['CLD_VERSION=<(cld_version)'],
2712 }], 2702 }],
2713 ['cld2_dynamic!=0', { 2703 ['cld2_data_source=="static"', {
2714 'defines': ['CLD2_DYNAMIC_MODE=1'], 2704 'defines': ['CLD_DATA_FROM_STATIC'],
2705 }, {
2706 # CLD2 headers use this #define to control the visibility of dynamic
2707 # mode functions. We use these functions, so we must define here for
2708 # our #includes to work right.
2709 'defines': ['CLD2_DYNAMIC_MODE'],
2715 }], 2710 }],
2716 ['cld2_is_component!=0', { 2711 ['cld2_data_source=="standalone"', {
2717 'defines': ['CLD2_IS_COMPONENT=1'], 2712 'defines': ['CLD_DATA_FROM_STANDALONE'],
2713 }],
2714 ['cld2_data_source=="component"', {
2715 'defines': ['CLD_DATA_FROM_COMPONENT'],
2718 }], 2716 }],
2719 ['enable_printing==1', { 2717 ['enable_printing==1', {
2720 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 2718 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2721 }], 2719 }],
2722 ['enable_printing==2', { 2720 ['enable_printing==2', {
2723 'defines': ['ENABLE_PRINTING=1'], 2721 'defines': ['ENABLE_PRINTING=1'],
2724 }], 2722 }],
2725 ['OS=="win" and win_pdf_metafile_for_printing==1', { 2723 ['OS=="win" and win_pdf_metafile_for_printing==1', {
2726 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'], 2724 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'],
2727 }], 2725 }],
(...skipping 2785 matching lines...) Expand 10 before | Expand all | Expand 10 after
5513 # settings in target dicts. SYMROOT is a special case, because many other 5511 # settings in target dicts. SYMROOT is a special case, because many other
5514 # Xcode variables depend on it, including variables such as 5512 # Xcode variables depend on it, including variables such as
5515 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5513 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5516 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5514 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5517 # files to appear (when present) in the UI as actual files and not red 5515 # files to appear (when present) in the UI as actual files and not red
5518 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5516 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5519 # and therefore SYMROOT, needs to be set at the project level. 5517 # and therefore SYMROOT, needs to be set at the project level.
5520 'SYMROOT': '<(DEPTH)/xcodebuild', 5518 'SYMROOT': '<(DEPTH)/xcodebuild',
5521 }, 5519 },
5522 } 5520 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698