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

Side by Side Diff: build/common.gypi

Issue 187393005: Make it possible to read CLD data from a file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Guard static initialization with #ifdef Created 6 years, 9 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
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 # print, UI, etc. 418 # print, UI, etc.
419 'enable_printing%': 1, 419 'enable_printing%': 1,
420 420
421 # Set the version of CLD. 421 # Set the version of CLD.
422 # 0: Don't specify the version. This option is for the Finch testing. 422 # 0: Don't specify the version. This option is for the Finch testing.
423 # 1: Use only CLD1. 423 # 1: Use only CLD1.
424 # 2: Use only CLD2. 424 # 2: Use only CLD2.
425 'cld_version%': 2, 425 'cld_version%': 2,
426 426
427 # For CLD2, the size of the tables that should be included in the build 427 # For CLD2, the size of the tables that should be included in the build
428 # Only evaluated if cld_version == 2. 428 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
429 # tool explicitly.
429 # See third_party/cld_2/cld_2.gyp for more information. 430 # See third_party/cld_2/cld_2.gyp for more information.
430 # 0: Small tables, lower accuracy 431 # 0: Small tables, lower accuracy
431 # 1: Medium tables, medium accuracy 432 # 1: Medium tables, medium accuracy
432 # 2: Large tables, high accuracy 433 # 2: Large tables, high accuracy
433 'cld2_table_size%': 2, 434 'cld2_table_size%': 2,
434 435
436 # Set the way CLD is compiled. Only evaluated if cld_version == 2.
437 # 0: static, language scoring tables compiled into the binary
438 # 1: dynamic, language scoring tables live in a data file that must
439 # be loaded at runtime.
440 'cld2_dynamic%': 0,
441
435 # Enable spell checker. 442 # Enable spell checker.
436 'enable_spellcheck%': 1, 443 'enable_spellcheck%': 1,
437 444
438 # Webrtc compilation is enabled by default. Set to 0 to disable. 445 # Webrtc compilation is enabled by default. Set to 0 to disable.
439 'enable_webrtc%': 1, 446 'enable_webrtc%': 1,
440 447
441 # Enables use of the session service, which is enabled by default. 448 # Enables use of the session service, which is enabled by default.
442 # Support for disabling depends on the platform. 449 # Support for disabling depends on the platform.
443 'enable_session_service%': 1, 450 'enable_session_service%': 1,
444 451
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 629
623 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', { 630 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
624 'enable_one_click_signin%': 1, 631 'enable_one_click_signin%': 1,
625 }], 632 }],
626 633
627 ['OS=="android"', { 634 ['OS=="android"', {
628 'enable_automation%': 0, 635 'enable_automation%': 0,
629 'enable_extensions%': 0, 636 'enable_extensions%': 0,
630 'enable_google_now%': 0, 637 'enable_google_now%': 0,
631 'cld_version%': 1, 638 'cld_version%': 1,
639 'cld2_dynamic%': 0,
632 'enable_spellcheck%': 0, 640 'enable_spellcheck%': 0,
633 'enable_themes%': 0, 641 'enable_themes%': 0,
634 'remoting%': 0, 642 'remoting%': 0,
635 'arm_neon%': 0, 643 'arm_neon%': 0,
636 'arm_neon_optional%': 1, 644 'arm_neon_optional%': 1,
637 'native_discardable_memory%': 1, 645 'native_discardable_memory%': 1,
638 'native_memory_pressure_signals%': 1, 646 'native_memory_pressure_signals%': 1,
639 'enable_printing%': 2, 647 'enable_printing%': 2,
640 'enable_task_manager%':0, 648 'enable_task_manager%':0,
641 # Set to 1 once we have a notification system for Android. 649 # Set to 1 once we have a notification system for Android.
(...skipping 30 matching lines...) Expand all
672 ['OS=="android" and android_webview_build==1', { 680 ['OS=="android" and android_webview_build==1', {
673 'enable_webrtc%': 0, 681 'enable_webrtc%': 0,
674 }], 682 }],
675 683
676 ['OS=="ios"', { 684 ['OS=="ios"', {
677 'disable_ftp_support%': 1, 685 'disable_ftp_support%': 1,
678 'enable_automation%': 0, 686 'enable_automation%': 0,
679 'enable_extensions%': 0, 687 'enable_extensions%': 0,
680 'enable_google_now%': 0, 688 'enable_google_now%': 0,
681 'cld_version%': 1, 689 'cld_version%': 1,
690 'cld2_dynamic%': 0,
682 'enable_printing%': 0, 691 'enable_printing%': 0,
683 'enable_session_service%': 0, 692 'enable_session_service%': 0,
684 'enable_themes%': 0, 693 'enable_themes%': 0,
685 'enable_webrtc%': 0, 694 'enable_webrtc%': 0,
686 'notifications%': 0, 695 'notifications%': 0,
687 'remoting%': 0, 696 'remoting%': 0,
688 'safe_browsing%': 0, 697 'safe_browsing%': 0,
689 'enable_managed_users%': 0, 698 'enable_managed_users%': 0,
690 'enable_task_manager%': 0, 699 'enable_task_manager%': 0,
691 }], 700 }],
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 'use_canvas_skia%': '<(use_canvas_skia)', 997 'use_canvas_skia%': '<(use_canvas_skia)',
989 'test_isolation_mode%': '<(test_isolation_mode)', 998 'test_isolation_mode%': '<(test_isolation_mode)',
990 'test_isolation_outdir%': '<(test_isolation_outdir)', 999 'test_isolation_outdir%': '<(test_isolation_outdir)',
991 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', 1000 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
992 'enable_automation%': '<(enable_automation)', 1001 'enable_automation%': '<(enable_automation)',
993 'enable_printing%': '<(enable_printing)', 1002 'enable_printing%': '<(enable_printing)',
994 'enable_spellcheck%': '<(enable_spellcheck)', 1003 'enable_spellcheck%': '<(enable_spellcheck)',
995 'enable_google_now%': '<(enable_google_now)', 1004 'enable_google_now%': '<(enable_google_now)',
996 'cld_version%': '<(cld_version)', 1005 'cld_version%': '<(cld_version)',
997 'cld2_table_size%': '<(cld2_table_size)', 1006 'cld2_table_size%': '<(cld2_table_size)',
1007 'cld2_dynamic%': '<(cld2_dynamic)',
998 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1008 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
999 'disable_ftp_support%': '<(disable_ftp_support)', 1009 'disable_ftp_support%': '<(disable_ftp_support)',
1000 'enable_task_manager%': '<(enable_task_manager)', 1010 'enable_task_manager%': '<(enable_task_manager)',
1001 'sas_dll_path%': '<(sas_dll_path)', 1011 'sas_dll_path%': '<(sas_dll_path)',
1002 'wix_path%': '<(wix_path)', 1012 'wix_path%': '<(wix_path)',
1003 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1013 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1004 'use_system_libjpeg%': '<(use_system_libjpeg)', 1014 'use_system_libjpeg%': '<(use_system_libjpeg)',
1005 'android_webview_build%': '<(android_webview_build)', 1015 'android_webview_build%': '<(android_webview_build)',
1006 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', 1016 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)',
1007 'gyp_managed_install%': 0, 1017 'gyp_managed_install%': 0,
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 }], 2505 }],
2496 ['enable_automation==1', { 2506 ['enable_automation==1', {
2497 'defines': ['ENABLE_AUTOMATION=1'], 2507 'defines': ['ENABLE_AUTOMATION=1'],
2498 }], 2508 }],
2499 ['enable_google_now==1', { 2509 ['enable_google_now==1', {
2500 'defines': ['ENABLE_GOOGLE_NOW=1'], 2510 'defines': ['ENABLE_GOOGLE_NOW=1'],
2501 }], 2511 }],
2502 ['cld_version!=0', { 2512 ['cld_version!=0', {
2503 'defines': ['CLD_VERSION=<(cld_version)'], 2513 'defines': ['CLD_VERSION=<(cld_version)'],
2504 }], 2514 }],
2515 ['cld2_dynamic!=0', {
2516 'defines': ['CLD2_DYNAMIC_MODE=1'],
2517 }],
2505 ['enable_printing==1', { 2518 ['enable_printing==1', {
2506 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 2519 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2507 }], 2520 }],
2508 ['enable_printing==2', { 2521 ['enable_printing==2', {
2509 'defines': ['ENABLE_PRINTING=1'], 2522 'defines': ['ENABLE_PRINTING=1'],
2510 }], 2523 }],
2511 ['enable_spellcheck==1', { 2524 ['enable_spellcheck==1', {
2512 'defines': ['ENABLE_SPELLCHECK=1'], 2525 'defines': ['ENABLE_SPELLCHECK=1'],
2513 }], 2526 }],
2514 ['enable_captive_portal_detection==1', { 2527 ['enable_captive_portal_detection==1', {
(...skipping 2643 matching lines...) Expand 10 before | Expand all | Expand 10 after
5158 # settings in target dicts. SYMROOT is a special case, because many other 5171 # settings in target dicts. SYMROOT is a special case, because many other
5159 # Xcode variables depend on it, including variables such as 5172 # Xcode variables depend on it, including variables such as
5160 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5173 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5161 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5174 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5162 # files to appear (when present) in the UI as actual files and not red 5175 # files to appear (when present) in the UI as actual files and not red
5163 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5176 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5164 # and therefore SYMROOT, needs to be set at the project level. 5177 # and therefore SYMROOT, needs to be set at the project level.
5165 'SYMROOT': '<(DEPTH)/xcodebuild', 5178 'SYMROOT': '<(DEPTH)/xcodebuild',
5166 }, 5179 },
5167 } 5180 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/translate/translate_tab_helper.h » ('j') | chrome/renderer/translate/translate_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698