OLD | NEW |
1 # Copyright 2015 The Crashpad Authors. All rights reserved. | 1 # Copyright 2015 The Crashpad Authors. All rights reserved. |
2 # | 2 # |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
6 # | 6 # |
7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
8 # | 8 # |
9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 # See the License for the specific language governing permissions and | 12 # See the License for the specific language governing permissions and |
13 # limitations under the License. | 13 # limitations under the License. |
14 | 14 |
15 { | 15 { |
16 'includes': [ | 16 'includes': [ |
17 '../../build/crashpad_dependencies.gypi', | 17 '../../build/crashpad_dependencies.gypi', |
18 ], | 18 ], |
19 'targets': [ | 19 'targets': [ |
20 { | 20 { |
21 # To support Crashpad’s standalone build and its build depending on | 21 # To support Crashpad’s standalone build, its in-Chromium build, and its |
22 # external libraries, Crashpad code depending on base should do so through | 22 # build depending on external libraries, Crashpad code depending on base |
23 # this shim, which will either get base from mini_chromium or an external | 23 # should do so through this shim, which will either get base from |
24 # library depending on the build type. | 24 # mini_chromium, Chromium, or an external library depending on the build |
| 25 # type. |
25 'target_name': 'base', | 26 'target_name': 'base', |
26 'type': 'none', | 27 'type': 'none', |
27 'conditions': [ | 28 'conditions': [ |
28 ['crashpad_dependencies=="standalone"', { | 29 ['crashpad_dependencies=="standalone"', { |
29 'dependencies': [ | 30 'dependencies': [ |
30 'mini_chromium/base/base.gyp:base', | 31 'mini_chromium/base/base.gyp:base', |
31 ], | 32 ], |
32 'export_dependent_settings': [ | 33 'export_dependent_settings': [ |
33 'mini_chromium/base/base.gyp:base', | 34 'mini_chromium/base/base.gyp:base', |
34 ], | 35 ], |
35 }], | 36 }], |
| 37 ['crashpad_dependencies=="chromium"', { |
| 38 'dependencies': [ |
| 39 '<(DEPTH)/base/base.gyp:base', |
| 40 ], |
| 41 'export_dependent_settings': [ |
| 42 '<(DEPTH)/base/base.gyp:base', |
| 43 ], |
| 44 }], |
36 ['crashpad_dependencies=="external"', { | 45 ['crashpad_dependencies=="external"', { |
37 'dependencies': [ | 46 'dependencies': [ |
38 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', | 47 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', |
39 ], | 48 ], |
40 'export_dependent_settings': [ | 49 'export_dependent_settings': [ |
41 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', | 50 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', |
42 ], | 51 ], |
43 }], | 52 }], |
44 ], | 53 ], |
45 }, | 54 }, |
46 ], | 55 ], |
47 } | 56 } |
OLD | NEW |