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, its in-Chromium build, and its | 21 # To support Crashpad’s standalone build and its build depending on |
22 # build depending on external libraries, Crashpad code depending on base | 22 # external libraries, Crashpad code depending on base should do so through |
23 # should do so through this shim, which will either get base from | 23 # this shim, which will either get base from mini_chromium or an external |
24 # mini_chromium, Chromium, or an external library depending on the build | 24 # library depending on the build type. |
25 # type. | |
26 'target_name': 'base', | 25 'target_name': 'base', |
27 'type': 'none', | 26 'type': 'none', |
28 'conditions': [ | 27 'conditions': [ |
29 ['crashpad_dependencies=="standalone"', { | 28 ['crashpad_dependencies=="standalone"', { |
30 'dependencies': [ | 29 'dependencies': [ |
31 'mini_chromium/base/base.gyp:base', | 30 'mini_chromium/base/base.gyp:base', |
32 ], | 31 ], |
33 'export_dependent_settings': [ | 32 'export_dependent_settings': [ |
34 'mini_chromium/base/base.gyp:base', | 33 'mini_chromium/base/base.gyp:base', |
35 ], | 34 ], |
36 }], | 35 }], |
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 }], | |
45 ['crashpad_dependencies=="external"', { | 36 ['crashpad_dependencies=="external"', { |
46 'dependencies': [ | 37 'dependencies': [ |
47 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', | 38 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', |
48 ], | 39 ], |
49 'export_dependent_settings': [ | 40 'export_dependent_settings': [ |
50 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', | 41 '../../../../mini_chromium/mini_chromium/base/base.gyp:base', |
51 ], | 42 ], |
52 }], | 43 }], |
53 ], | 44 ], |
54 }, | 45 }, |
55 ], | 46 ], |
56 } | 47 } |
OLD | NEW |