Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'sanitizer_options', | 8 'target_name': 'sanitizer_options', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'toolsets': ['host', 'target'], | 10 'toolsets': ['host', 'target'], |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 }, | 54 }, |
| 55 }], | 55 }], |
| 56 ], | 56 ], |
| 57 }, | 57 }, |
| 58 }, | 58 }, |
| 59 { | 59 { |
| 60 # Copy llvm-symbolizer to the product dir so that LKGR bots can package it . | 60 # Copy llvm-symbolizer to the product dir so that LKGR bots can package it . |
| 61 'target_name': 'llvm-symbolizer', | 61 'target_name': 'llvm-symbolizer', |
| 62 'type': 'none', | 62 'type': 'none', |
| 63 'variables': { | 63 'variables': { |
| 64 | |
| 64 # Path is relative to this GYP file. | 65 # Path is relative to this GYP file. |
| 65 'llvm_symbolizer_path': | 66 'conditions': [ |
| 66 '../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer', | 67 ['OS!="win"', { |
| 68 'llvm_symbolizer_path': | |
| 69 '../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolize r', | |
|
Nico
2014/11/21 18:14:08
gyp has a built-in variable for this. Say '.......
Nico
2014/11/21 18:14:45
(allows you to get rid of the conditional too)
| |
| 70 }, { | |
| 71 'llvm_symbolizer_path': | |
| 72 '../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolize r.exe', | |
| 73 }], | |
| 74 ], | |
| 67 }, | 75 }, |
| 68 'conditions': [ | 76 'conditions': [ |
| 69 ['clang==1', { | 77 ['clang==1', { |
| 70 'copies': [ | 78 'copies': [ |
| 71 { | 79 { |
| 72 'destination': '<(PRODUCT_DIR)', | 80 'destination': '<(PRODUCT_DIR)', |
| 73 'files': [ | 81 'files': [ |
| 74 '<(llvm_symbolizer_path)', | 82 '<(llvm_symbolizer_path)', |
| 75 ], | 83 ], |
| 76 }, | 84 }, |
| 77 ], | 85 ], |
| 78 }], | 86 }], |
| 79 ], | 87 ], |
| 80 }, | 88 }, |
| 81 ], | 89 ], |
| 82 } | 90 } |
| 83 | 91 |
| OLD | NEW |