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 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 # See http://crbug.com/145503. | 1427 # See http://crbug.com/145503. |
1428 'component': "static_library", | 1428 'component': "static_library", |
1429 }], | 1429 }], |
1430 ['tsan==1', { | 1430 ['tsan==1', { |
1431 'clang%': 1, | 1431 'clang%': 1, |
1432 }], | 1432 }], |
1433 | 1433 |
1434 ['OS=="linux" and clang_type_profiler==1', { | 1434 ['OS=="linux" and clang_type_profiler==1', { |
1435 'clang%': 1, | 1435 'clang%': 1, |
1436 'clang_use_chrome_plugins%': 0, | 1436 'clang_use_chrome_plugins%': 0, |
1437 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', | 1437 'conditions': [ |
| 1438 ['host_arch=="x64"', { |
| 1439 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', |
| 1440 }], |
| 1441 ['host_arch=="ia32"', { |
| 1442 # 32-bit Clang is unsupported. It may not build. Put your 32-bit |
| 1443 # Clang in this directory at your own risk if needed for some |
| 1444 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory |
| 1445 # usage). Any failure by this compiler should not close the tree. |
| 1446 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32', |
| 1447 }], |
| 1448 ], |
1438 }], | 1449 }], |
1439 | 1450 |
1440 # On valgrind bots, override the optimizer settings so we don't inline too | 1451 # On valgrind bots, override the optimizer settings so we don't inline too |
1441 # much and make the stacks harder to figure out. | 1452 # much and make the stacks harder to figure out. |
1442 # | 1453 # |
1443 # TODO(rnk): Kill off variables that no one else uses and just implement | 1454 # TODO(rnk): Kill off variables that no one else uses and just implement |
1444 # them under a build_for_tool== condition. | 1455 # them under a build_for_tool== condition. |
1445 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { | 1456 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { |
1446 # gcc flags | 1457 # gcc flags |
1447 'mac_debug_optimization': '1', | 1458 'mac_debug_optimization': '1', |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 'cflags_cc+': [ | 1624 'cflags_cc+': [ |
1614 '-frtti', | 1625 '-frtti', |
1615 '-gline-tables-only', | 1626 '-gline-tables-only', |
1616 '-fintercept-allocation-functions', | 1627 '-fintercept-allocation-functions', |
1617 ], | 1628 ], |
1618 'defines': ['TYPE_PROFILING'], | 1629 'defines': ['TYPE_PROFILING'], |
1619 'dependencies': [ | 1630 'dependencies': [ |
1620 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', | 1631 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
1621 ], | 1632 ], |
1622 }], | 1633 }], |
| 1634 ['OS=="linux" and clang==1 and host_arch=="ia32"', { |
| 1635 # TODO(dmikurube): Remove -Wno-sentinel when Clang/LLVM is fixed. |
| 1636 # See http://crbug.com/162818. |
| 1637 'cflags+': ['-Wno-sentinel'], |
| 1638 }], |
1623 ['OS=="win" and "<(msbuild_toolset)"!=""', { | 1639 ['OS=="win" and "<(msbuild_toolset)"!=""', { |
1624 'msbuild_toolset': '<(msbuild_toolset)', | 1640 'msbuild_toolset': '<(msbuild_toolset)', |
1625 }], | 1641 }], |
1626 ['branding=="Chrome"', { | 1642 ['branding=="Chrome"', { |
1627 'defines': ['GOOGLE_CHROME_BUILD'], | 1643 'defines': ['GOOGLE_CHROME_BUILD'], |
1628 }, { # else: branding!="Chrome" | 1644 }, { # else: branding!="Chrome" |
1629 'defines': ['CHROMIUM_BUILD'], | 1645 'defines': ['CHROMIUM_BUILD'], |
1630 }], | 1646 }], |
1631 ['OS=="mac" and component=="shared_library"', { | 1647 ['OS=="mac" and component=="shared_library"', { |
1632 'xcode_settings': { | 1648 'xcode_settings': { |
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3985 # settings in target dicts. SYMROOT is a special case, because many other | 4001 # settings in target dicts. SYMROOT is a special case, because many other |
3986 # Xcode variables depend on it, including variables such as | 4002 # Xcode variables depend on it, including variables such as |
3987 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4003 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3988 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4004 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3989 # files to appear (when present) in the UI as actual files and not red | 4005 # files to appear (when present) in the UI as actual files and not red |
3990 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4006 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3991 # and therefore SYMROOT, needs to be set at the project level. | 4007 # and therefore SYMROOT, needs to be set at the project level. |
3992 'SYMROOT': '<(DEPTH)/xcodebuild', | 4008 'SYMROOT': '<(DEPTH)/xcodebuild', |
3993 }, | 4009 }, |
3994 } | 4010 } |
OLD | NEW |