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

Side by Side Diff: build/common.gypi

Issue 424123003: Replace the use of CLD_DATA_FROM* and CLD-related ifdefs with runtime checks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 'defines': ['ENABLE_GOOGLE_NOW=1'], 2757 'defines': ['ENABLE_GOOGLE_NOW=1'],
2758 }], 2758 }],
2759 ['cld_version!=0', { 2759 ['cld_version!=0', {
2760 'defines': ['CLD_VERSION=<(cld_version)'], 2760 'defines': ['CLD_VERSION=<(cld_version)'],
2761 }], 2761 }],
2762 ['cld_version==2', { 2762 ['cld_version==2', {
2763 # This is used to populate the "CLD Data Source" field in: 2763 # This is used to populate the "CLD Data Source" field in:
2764 # chrome://translate-internals 2764 # chrome://translate-internals
2765 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'], 2765 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
2766 }], 2766 }],
2767 ['cld_version==2 and cld2_data_source=="static"', {
2768 'defines': ['CLD_DATA_FROM_STATIC'],
2769 }],
2770 ['cld_version==2 and cld2_data_source=="standalone"', {
2771 'defines': ['CLD_DATA_FROM_STANDALONE'],
2772 }],
2773 ['cld_version==2 and cld2_data_source=="component"', {
2774 'defines': ['CLD_DATA_FROM_COMPONENT'],
2775 }],
2776 ['enable_printing==1', { 2767 ['enable_printing==1', {
2777 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 2768 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2778 }], 2769 }],
2779 ['enable_printing==2', { 2770 ['enable_printing==2', {
2780 'defines': ['ENABLE_PRINTING=1'], 2771 'defines': ['ENABLE_PRINTING=1'],
2781 }], 2772 }],
2782 ['OS=="win" and win_pdf_metafile_for_printing==1', { 2773 ['OS=="win" and win_pdf_metafile_for_printing==1', {
2783 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'], 2774 'defines': ['WIN_PDF_METAFILE_FOR_PRINTING=1'],
2784 }], 2775 }],
2785 ['enable_spellcheck==1', { 2776 ['enable_spellcheck==1', {
(...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after
5681 # settings in target dicts. SYMROOT is a special case, because many other 5672 # settings in target dicts. SYMROOT is a special case, because many other
5682 # Xcode variables depend on it, including variables such as 5673 # Xcode variables depend on it, including variables such as
5683 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5674 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5684 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5675 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5685 # files to appear (when present) in the UI as actual files and not red 5676 # files to appear (when present) in the UI as actual files and not red
5686 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5677 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5687 # and therefore SYMROOT, needs to be set at the project level. 5678 # and therefore SYMROOT, needs to be set at the project level.
5688 'SYMROOT': '<(DEPTH)/xcodebuild', 5679 'SYMROOT': '<(DEPTH)/xcodebuild',
5689 }, 5680 },
5690 } 5681 }
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