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

Side by Side Diff: build/common.gypi

Issue 11065040: Make ninja + clang + goma work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | no next file » | 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 3490 matching lines...) Expand 10 before | Expand all | Expand 10 after
3501 }, 3501 },
3502 }], 3502 }],
3503 ['enable_new_npdevice_api==1', { 3503 ['enable_new_npdevice_api==1', {
3504 'target_defaults': { 3504 'target_defaults': {
3505 'defines': [ 3505 'defines': [
3506 'ENABLE_NEW_NPDEVICE_API', 3506 'ENABLE_NEW_NPDEVICE_API',
3507 ], 3507 ],
3508 }, 3508 },
3509 }], 3509 }],
3510 ['clang==1', { 3510 ['clang==1', {
3511 'make_global_settings': [ 3511 'conditions': [
3512 ['CC', '<(make_clang_dir)/bin/clang'], 3512 ['OS=="android"', {
3513 ['CXX', '<(make_clang_dir)/bin/clang++'], 3513 # Android could use the goma with clang.
3514 ['LINK', '$(CXX)'], 3514 'make_global_settings': [
3515 ['CC.host', '$(CC)'], 3515 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'],
3516 ['CXX.host', '$(CXX)'], 3516 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'],
3517 ['LINK.host', '$(LINK)'], 3517 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma ke_clang_dir)/bin/clang++)'],
3518 ['CC.host', '$(CC)'],
3519 ['CXX.host', '$(CXX)'],
3520 ['LINK.host', '$(LINK)'],
3521 ],
3522 }, {
3523 'make_global_settings': [
3524 ['CC', '<(make_clang_dir)/bin/clang'],
3525 ['CXX', '<(make_clang_dir)/bin/clang++'],
3526 ['LINK', '$(CXX)'],
3527 ['CC.host', '$(CC)'],
3528 ['CXX.host', '$(CXX)'],
3529 ['LINK.host', '$(LINK)'],
3530 ],
3531 }],
3518 ], 3532 ],
3519 }], 3533 }],
3520 ['OS=="android" and clang==0', { 3534 ['OS=="android" and clang==0', {
3521 # Hardcode the compiler names in the Makefile so that 3535 # Hardcode the compiler names in the Makefile so that
3522 # it won't depend on the environment at make time. 3536 # it won't depend on the environment at make time.
3523 'make_global_settings': [ 3537 'make_global_settings': [
3524 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 3538 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'],
3525 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 3539 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'],
3526 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], 3540 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'],
3527 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 3541 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'],
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3569 # settings in target dicts. SYMROOT is a special case, because many other 3583 # settings in target dicts. SYMROOT is a special case, because many other
3570 # Xcode variables depend on it, including variables such as 3584 # Xcode variables depend on it, including variables such as
3571 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3585 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3572 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3586 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3573 # files to appear (when present) in the UI as actual files and not red 3587 # files to appear (when present) in the UI as actual files and not red
3574 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3588 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3575 # and therefore SYMROOT, needs to be set at the project level. 3589 # and therefore SYMROOT, needs to be set at the project level.
3576 'SYMROOT': '<(DEPTH)/xcodebuild', 3590 'SYMROOT': '<(DEPTH)/xcodebuild',
3577 }, 3591 },
3578 } 3592 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698