OLD | NEW |
---|---|
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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 | 442 |
443 # For CLD2, the size of the tables that should be included in the build | 443 # For CLD2, the size of the tables that should be included in the build |
444 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data | 444 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data |
445 # tool explicitly. | 445 # tool explicitly. |
446 # See third_party/cld_2/cld_2.gyp for more information. | 446 # See third_party/cld_2/cld_2.gyp for more information. |
447 # 0: Small tables, lower accuracy | 447 # 0: Small tables, lower accuracy |
448 # 1: Medium tables, medium accuracy | 448 # 1: Medium tables, medium accuracy |
449 # 2: Large tables, high accuracy | 449 # 2: Large tables, high accuracy |
450 'cld2_table_size%': 2, | 450 'cld2_table_size%': 2, |
451 | 451 |
452 # Set the way CLD is compiled. Only evaluated if cld_version == 2. | 452 # The data acquisition mode for CLD2. Possible values are: |
453 # 0: static, language scoring tables compiled into the binary | 453 # static: CLD2 data is statically linked to the executable. |
454 # 1: dynamic, language scoring tables live in a data file that must | 454 # standalone: CLD2 data is provided in a standalone file that is |
455 # be loaded at runtime. | 455 # bundled with the executable. |
456 'cld2_dynamic%': 0, | 456 # component: CLD2 data is provided as a Chrome "component" and is |
457 | 457 # downloaded via the component updater. |
458 # Whether CLD2 is a component. Only evaluated if cld_version == 2 and | 458 'cld2_data_source': 'static', |
459 # cld2_dynamic == 1. | |
460 # 0: Not a component. If cld2_dynamic == 1, it is up to the distribution | |
461 # to ensure that the data file is provided if desired. | |
462 # 1: Componentized. CLD data should be obtained via the Component | |
463 # Updater. | |
464 'cld2_is_component%': 0, | |
465 | 459 |
466 # Enable spell checker. | 460 # Enable spell checker. |
467 'enable_spellcheck%': 1, | 461 'enable_spellcheck%': 1, |
468 | 462 |
469 # Webrtc compilation is enabled by default. Set to 0 to disable. | 463 # Webrtc compilation is enabled by default. Set to 0 to disable. |
470 'enable_webrtc%': 1, | 464 'enable_webrtc%': 1, |
471 | 465 |
472 # Enables use of the session service, which is enabled by default. | 466 # Enables use of the session service, which is enabled by default. |
473 # Support for disabling depends on the platform. | 467 # Support for disabling depends on the platform. |
474 'enable_session_service%': 1, | 468 'enable_session_service%': 1, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
678 }], | 672 }], |
679 | 673 |
680 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { | 674 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { |
681 'enable_one_click_signin%': 1, | 675 'enable_one_click_signin%': 1, |
682 }], | 676 }], |
683 | 677 |
684 ['OS=="android"', { | 678 ['OS=="android"', { |
685 'enable_extensions%': 0, | 679 'enable_extensions%': 0, |
686 'enable_google_now%': 0, | 680 'enable_google_now%': 0, |
687 'cld_version%': 1, | 681 'cld_version%': 1, |
688 'cld2_dynamic%': 0, | |
689 'cld2_is_component%': 0, | |
690 'enable_spellcheck%': 0, | 682 'enable_spellcheck%': 0, |
691 'enable_themes%': 0, | 683 'enable_themes%': 0, |
692 'remoting%': 0, | 684 'remoting%': 0, |
693 'arm_neon%': 0, | 685 'arm_neon%': 0, |
694 'arm_neon_optional%': 1, | 686 'arm_neon_optional%': 1, |
695 'native_discardable_memory%': 1, | 687 'native_discardable_memory%': 1, |
696 'native_memory_pressure_signals%': 1, | 688 'native_memory_pressure_signals%': 1, |
697 'enable_printing%': 2, | 689 'enable_printing%': 2, |
698 'enable_task_manager%':0, | 690 'enable_task_manager%':0, |
699 # Set to 1 once we have a notification system for Android. | 691 # Set to 1 once we have a notification system for Android. |
(...skipping 29 matching lines...) Expand all Loading... | |
729 | 721 |
730 ['OS=="android"', { | 722 ['OS=="android"', { |
731 'enable_webrtc%': 1, | 723 'enable_webrtc%': 1, |
732 }], | 724 }], |
733 | 725 |
734 ['OS=="ios"', { | 726 ['OS=="ios"', { |
735 'disable_ftp_support%': 1, | 727 'disable_ftp_support%': 1, |
736 'enable_extensions%': 0, | 728 'enable_extensions%': 0, |
737 'enable_google_now%': 0, | 729 'enable_google_now%': 0, |
738 'cld_version%': 1, | 730 'cld_version%': 1, |
739 'cld2_dynamic%': 0, | |
740 'enable_printing%': 0, | 731 'enable_printing%': 0, |
741 'enable_session_service%': 0, | 732 'enable_session_service%': 0, |
742 'enable_themes%': 0, | 733 'enable_themes%': 0, |
743 'enable_webrtc%': 0, | 734 'enable_webrtc%': 0, |
744 'notifications%': 0, | 735 'notifications%': 0, |
745 'remoting%': 0, | 736 'remoting%': 0, |
746 'safe_browsing%': 0, | 737 'safe_browsing%': 0, |
747 'enable_managed_users%': 0, | 738 'enable_managed_users%': 0, |
748 'enable_task_manager%': 0, | 739 'enable_task_manager%': 0, |
749 }], | 740 }], |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1084 'use_canvas_skia%': '<(use_canvas_skia)', | 1075 'use_canvas_skia%': '<(use_canvas_skia)', |
1085 'test_isolation_mode%': '<(test_isolation_mode)', | 1076 'test_isolation_mode%': '<(test_isolation_mode)', |
1086 'test_isolation_outdir%': '<(test_isolation_outdir)', | 1077 'test_isolation_outdir%': '<(test_isolation_outdir)', |
1087 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', | 1078 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', |
1088 'enable_printing%': '<(enable_printing)', | 1079 'enable_printing%': '<(enable_printing)', |
1089 'win_pdf_metafile_for_printing%': '<(win_pdf_metafile_for_printing)', | 1080 'win_pdf_metafile_for_printing%': '<(win_pdf_metafile_for_printing)', |
1090 'enable_spellcheck%': '<(enable_spellcheck)', | 1081 'enable_spellcheck%': '<(enable_spellcheck)', |
1091 'enable_google_now%': '<(enable_google_now)', | 1082 'enable_google_now%': '<(enable_google_now)', |
1092 'cld_version%': '<(cld_version)', | 1083 'cld_version%': '<(cld_version)', |
1093 'cld2_table_size%': '<(cld2_table_size)', | 1084 'cld2_table_size%': '<(cld2_table_size)', |
1094 'cld2_dynamic%': '<(cld2_dynamic)', | 1085 'cld2_data_source%': '<(cld2_data_source)', |
1095 'cld2_is_component%': '<(cld2_is_component)', | |
1096 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 1086 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
1097 'disable_file_support%': '<(disable_file_support)', | 1087 'disable_file_support%': '<(disable_file_support)', |
1098 'disable_ftp_support%': '<(disable_ftp_support)', | 1088 'disable_ftp_support%': '<(disable_ftp_support)', |
1099 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', | 1089 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', |
1100 'enable_task_manager%': '<(enable_task_manager)', | 1090 'enable_task_manager%': '<(enable_task_manager)', |
1101 'sas_dll_path%': '<(sas_dll_path)', | 1091 'sas_dll_path%': '<(sas_dll_path)', |
1102 'wix_path%': '<(wix_path)', | 1092 'wix_path%': '<(wix_path)', |
1103 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', | 1093 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', |
1104 'use_system_libjpeg%': '<(use_system_libjpeg)', | 1094 'use_system_libjpeg%': '<(use_system_libjpeg)', |
1105 'android_webview_build%': '<(android_webview_build)', | 1095 'android_webview_build%': '<(android_webview_build)', |
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2689 }], | 2679 }], |
2690 ['enable_background==1', { | 2680 ['enable_background==1', { |
2691 'defines': ['ENABLE_BACKGROUND=1'], | 2681 'defines': ['ENABLE_BACKGROUND=1'], |
2692 }], | 2682 }], |
2693 ['enable_google_now==1', { | 2683 ['enable_google_now==1', { |
2694 'defines': ['ENABLE_GOOGLE_NOW=1'], | 2684 'defines': ['ENABLE_GOOGLE_NOW=1'], |
2695 }], | 2685 }], |
2696 ['cld_version!=0', { | 2686 ['cld_version!=0', { |
2697 'defines': ['CLD_VERSION=<(cld_version)'], | 2687 'defines': ['CLD_VERSION=<(cld_version)'], |
2698 }], | 2688 }], |
2699 ['cld2_dynamic!=0', { | 2689 ['cld2_data_source=="static"', { |
2700 'defines': ['CLD2_DYNAMIC_MODE=1'], | 2690 'defines': ['CLD_DATA_FROM_STATIC'], |
2691 }, { | |
2692 # This is for CLD2 itself, which uses this check to enable dynamic mode | |
2693 # during compilation. Don't check this flag in Chromium. | |
2694 'defines': ['CLD2_DYNAMIC_MODE'], | |
Takashi Toyoshima
2014/06/23 08:49:59
Would it be safe to move this CLD2_DYNAMIC_MODE de
Andrew Hayden (chromium.org)
2014/06/23 13:20:34
Almost, but not quite. The forward declarations of
Takashi Toyoshima
2014/06/24 02:09:47
OK. Current approach sounds reasonable.
| |
2701 }], | 2695 }], |
2702 ['cld2_is_component!=0', { | 2696 ['cld2_data_source=="standalone"', { |
2703 'defines': ['CLD2_IS_COMPONENT=1'], | 2697 'defines': ['CLD_DATA_FROM_STANDALONE'], |
2698 }], | |
2699 ['cld2_data_source=="component"', { | |
2700 'defines': ['CLD_DATA_FROM_COMPONENT'], | |
2704 }], | 2701 }], |
2705 ['enable_printing==1', { | 2702 ['enable_printing==1', { |
2706 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], | 2703 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], |
2707 }], | 2704 }], |
2708 ['enable_printing==2', { | 2705 ['enable_printing==2', { |
2709 'defines': ['ENABLE_PRINTING=1'], | 2706 'defines': ['ENABLE_PRINTING=1'], |
2710 }], | 2707 }], |
2711 ['OS=="win" and win_pdf_metafile_for_printing==1', { | 2708 ['OS=="win" and win_pdf_metafile_for_printing==1', { |
2712 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'], | 2709 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'], |
2713 }], | 2710 }], |
(...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5473 # settings in target dicts. SYMROOT is a special case, because many other | 5470 # settings in target dicts. SYMROOT is a special case, because many other |
5474 # Xcode variables depend on it, including variables such as | 5471 # Xcode variables depend on it, including variables such as |
5475 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5472 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5476 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5473 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5477 # files to appear (when present) in the UI as actual files and not red | 5474 # files to appear (when present) in the UI as actual files and not red |
5478 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5475 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5479 # and therefore SYMROOT, needs to be set at the project level. | 5476 # and therefore SYMROOT, needs to be set at the project level. |
5480 'SYMROOT': '<(DEPTH)/xcodebuild', | 5477 'SYMROOT': '<(DEPTH)/xcodebuild', |
5481 }, | 5478 }, |
5482 } | 5479 } |
OLD | NEW |