OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'includes': [ | 8 'includes': [ |
9 '../build/win_precompile.gypi', | 9 '../build/win_precompile.gypi', |
10 '../chrome/version.gypi', | 10 '../chrome/version.gypi', |
11 'blacklist.gypi', | 11 'blacklist.gypi', |
12 ], | 12 ], |
13 'targets': [ | 13 'targets': [ |
| 14 { |
| 15 'target_name': 'chrome_redirects', |
| 16 'type': 'shared_library', |
| 17 'include_dirs': [ |
| 18 '..', |
| 19 ], |
| 20 'sources': [ |
| 21 'chrome_redirects.def', |
| 22 ], |
| 23 'dependencies': [ |
| 24 'chrome_elf_lib', |
| 25 ], |
| 26 'msvs_settings': { |
| 27 'VCLinkerTool': { |
| 28 'BaseAddress': '0x01c10000', |
| 29 # Set /SUBSYSTEM:WINDOWS. |
| 30 'SubSystem': '2', |
| 31 }, |
| 32 }, |
| 33 'conditions': [ |
| 34 ['component=="shared_library"', { |
| 35 # In component builds, all targets depend on chrome_redirects by |
| 36 # default. Remove it here to avoid a circular dependency. |
| 37 'dependencies!': [ |
| 38 '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
| 39 ], |
| 40 }], |
| 41 ], |
| 42 }, |
14 { | 43 { |
15 'target_name': 'chrome_elf', | 44 'target_name': 'chrome_elf', |
16 'type': 'shared_library', | 45 'type': 'shared_library', |
17 'include_dirs': [ | 46 'include_dirs': [ |
18 '..', | 47 '..', |
19 ], | 48 ], |
20 'sources': [ | 49 'sources': [ |
21 'chrome_elf.def', | 50 'chrome_elf.def', |
22 'chrome_elf_main.cc', | 51 'chrome_elf_main.cc', |
23 'chrome_elf_main.h', | 52 'chrome_elf_main.h', |
24 ], | 53 ], |
25 'dependencies': [ | 54 'dependencies': [ |
26 'blacklist', | 55 'blacklist', |
27 'chrome_elf_lib', | 56 'chrome_elf_lib', |
| 57 'chrome_redirects', |
28 ], | 58 ], |
29 'msvs_settings': { | 59 'msvs_settings': { |
30 'VCLinkerTool': { | 60 'VCLinkerTool': { |
31 'BaseAddress': '0x01c20000', | 61 'BaseAddress': '0x01c20000', |
32 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). | 62 # Set /SUBSYSTEM:WINDOWS. |
33 'SubSystem': '2', | 63 'SubSystem': '2', |
34 'AdditionalDependencies!': [ | 64 'AdditionalDependencies!': [ |
35 'user32.lib', | 65 'user32.lib', |
36 ], | 66 ], |
37 'IgnoreDefaultLibraryNames': [ | 67 'IgnoreDefaultLibraryNames': [ |
38 'user32.lib', | 68 'user32.lib', |
39 ], | 69 ], |
40 }, | 70 }, |
41 }, | 71 }, |
42 }, | 72 }, |
43 { | 73 { |
44 'target_name': 'chrome_elf_unittests_exe', | 74 'target_name': 'chrome_elf_unittests_exe', |
45 'product_name': 'chrome_elf_unittests', | 75 'product_name': 'chrome_elf_unittests', |
46 'type': 'executable', | 76 'type': 'executable', |
47 'sources': [ | 77 'sources': [ |
48 'blacklist/test/blacklist_test.cc', | 78 'blacklist/test/blacklist_test.cc', |
| 79 'create_file/chrome_create_file_unittest.cc', |
49 'elf_imports_unittest.cc', | 80 'elf_imports_unittest.cc', |
50 'ntdll_cache_unittest.cc', | 81 'ntdll_cache_unittest.cc', |
51 ], | 82 ], |
52 'include_dirs': [ | 83 'include_dirs': [ |
53 '..', | 84 '..', |
54 '<(SHARED_INTERMEDIATE_DIR)', | 85 '<(SHARED_INTERMEDIATE_DIR)', |
55 ], | 86 ], |
56 'dependencies': [ | 87 'dependencies': [ |
57 'chrome_elf_lib', | 88 'chrome_elf_lib', |
58 '../base/base.gyp:base', | 89 '../base/base.gyp:base', |
(...skipping 20 matching lines...) Expand all Loading... |
79 'chrome_elf_unittests_exe', | 110 'chrome_elf_unittests_exe', |
80 ], | 111 ], |
81 }, | 112 }, |
82 { | 113 { |
83 'target_name': 'chrome_elf_lib', | 114 'target_name': 'chrome_elf_lib', |
84 'type': 'static_library', | 115 'type': 'static_library', |
85 'include_dirs': [ | 116 'include_dirs': [ |
86 '..', | 117 '..', |
87 ], | 118 ], |
88 'sources': [ | 119 'sources': [ |
| 120 'chrome_elf_constants.cc', |
| 121 'chrome_elf_constants.h', |
89 'chrome_elf_types.h', | 122 'chrome_elf_types.h', |
| 123 'create_file/chrome_create_file.cc', |
| 124 'create_file/chrome_create_file.h', |
90 'ntdll_cache.cc', | 125 'ntdll_cache.cc', |
91 'ntdll_cache.h', | 126 'ntdll_cache.h', |
92 ], | 127 ], |
| 128 'conditions': [ |
| 129 ['component=="shared_library"', { |
| 130 # In component builds, all targets depend on chrome_redirects by |
| 131 # default. Remove it here to avoid a circular dependency. |
| 132 'dependencies!': [ |
| 133 '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
| 134 ], |
| 135 }], |
| 136 ], |
93 }, | 137 }, |
94 ], | 138 ], |
95 } | 139 } |
OLD | NEW |