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 3647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3658 ], | 3658 ], |
3659 'ldflags': [ | 3659 'ldflags': [ |
3660 '-m64', | 3660 '-m64', |
3661 ], | 3661 ], |
3662 }], | 3662 }], |
3663 ], | 3663 ], |
3664 }], | 3664 }], |
3665 ['target_arch=="arm"', { | 3665 ['target_arch=="arm"', { |
3666 'target_conditions': [ | 3666 'target_conditions': [ |
3667 ['_toolset=="target"', { | 3667 ['_toolset=="target"', { |
3668 'cflags_cc': [ | |
3669 # The codesourcery arm-2009q3 toolchain warns at that the ABI | |
3670 # has changed whenever it encounters a varargs function. This | |
3671 # silences those warnings, as they are not helpful and | |
3672 # clutter legitimate warnings. | |
3673 '-Wno-abi', | |
3674 ], | |
3675 'conditions': [ | 3668 'conditions': [ |
3676 ['arm_arch!=""', { | 3669 ['clang==0', { |
3670 'cflags_cc': [ | |
3671 # The codesourcery arm-2009q3 toolchain warns at that the ABI | |
3672 # has changed whenever it encounters a varargs function. T his | |
3673 # silences those warnings, as they are not helpful and | |
3674 # clutter legitimate warnings. | |
3675 '-Wno-abi', | |
3676 ], | |
3677 }], | |
3678 ['clang==1 and arm_arch!=""', { | |
3679 'cflags': [ | |
3680 '-target <(arm_arch)-linux-gnueabihf', | |
3681 ], | |
3682 }], | |
3683 ['clang==1 and arm_arch!=""', { | |
3677 'cflags': [ | 3684 'cflags': [ |
3678 '-march=<(arm_arch)', | 3685 '-march=<(arm_arch)', |
3679 ], | 3686 ], |
3680 }], | 3687 }], |
3688 ['clang==1', { | |
3689 'cflags': [ | |
3690 # We need to disable clang's builtin assember and have | |
3691 # it use arm-linux-gnueabihf-as instead, but if I enable | |
3692 # this flag it currently picks /usr/bin/as :( | |
3693 # '-no-integrated-as', | |
Nico
2014/07/22 22:27:44
Look at what the android build does. I think it us
Sam Clegg
2014/07/22 22:31:27
Yes, but I think android cross compiler is called
| |
3694 ], | |
3695 }], | |
3681 ['arm_tune!=""', { | 3696 ['arm_tune!=""', { |
3682 'cflags': [ | 3697 'cflags': [ |
3683 '-mtune=<(arm_tune)', | 3698 '-mtune=<(arm_tune)', |
3684 ], | 3699 ], |
3685 }], | 3700 }], |
3686 ['arm_fpu!=""', { | 3701 ['arm_fpu!=""', { |
3687 'cflags': [ | 3702 'cflags_cc': [ |
3688 '-mfpu=<(arm_fpu)', | 3703 '-mfpu=<(arm_fpu)', |
3689 ], | 3704 ], |
3690 }], | 3705 }], |
3691 ['arm_float_abi!=""', { | 3706 ['arm_float_abi!=""', { |
3692 'cflags': [ | 3707 'cflags': [ |
3693 '-mfloat-abi=<(arm_float_abi)', | 3708 '-mfloat-abi=<(arm_float_abi)', |
3694 ], | 3709 ], |
3695 }], | 3710 }], |
3696 ['arm_thumb==1', { | 3711 ['arm_thumb==1', { |
3697 'cflags': [ | 3712 'cflags': [ |
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5655 # settings in target dicts. SYMROOT is a special case, because many other | 5670 # settings in target dicts. SYMROOT is a special case, because many other |
5656 # Xcode variables depend on it, including variables such as | 5671 # Xcode variables depend on it, including variables such as |
5657 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5672 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5658 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5673 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5659 # files to appear (when present) in the UI as actual files and not red | 5674 # files to appear (when present) in the UI as actual files and not red |
5660 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5675 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5661 # and therefore SYMROOT, needs to be set at the project level. | 5676 # and therefore SYMROOT, needs to be set at the project level. |
5662 'SYMROOT': '<(DEPTH)/xcodebuild', | 5677 'SYMROOT': '<(DEPTH)/xcodebuild', |
5663 }, | 5678 }, |
5664 } | 5679 } |
OLD | NEW |