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 { | 14 { |
15 'target_name': 'chrome_elf', | 15 'target_name': 'chrome_elf', |
16 'type': 'shared_library', | 16 'type': 'shared_library', |
17 'include_dirs': [ | 17 'include_dirs': [ |
18 '..', | 18 '..', |
19 ], | 19 ], |
20 'sources': [ | 20 'sources': [ |
21 'chrome_elf.def', | 21 'chrome_elf.def', |
22 'chrome_elf_main.cc', | 22 'chrome_elf_main.cc', |
23 'chrome_elf_main.h', | 23 'chrome_elf_main.h', |
24 ], | 24 ], |
25 'dependencies': [ | 25 'dependencies': [ |
26 'blacklist', | 26 'blacklist', |
| 27 'chrome_elf_breakpad', |
27 'chrome_elf_lib', | 28 'chrome_elf_lib', |
| 29 # TODO(caitkp): Why do we need this here? |
| 30 '../breakpad/breakpad.gyp:breakpad_handler', |
28 ], | 31 ], |
29 'msvs_settings': { | 32 'msvs_settings': { |
30 'VCLinkerTool': { | 33 'VCLinkerTool': { |
31 'BaseAddress': '0x01c20000', | 34 'BaseAddress': '0x01c20000', |
32 # Set /SUBSYSTEM:WINDOWS. | 35 # Set /SUBSYSTEM:WINDOWS. |
33 'SubSystem': '2', | 36 'SubSystem': '2', |
34 'AdditionalDependencies!': [ | 37 'AdditionalDependencies!': [ |
35 'user32.lib', | 38 'user32.lib', |
36 ], | 39 ], |
37 'IgnoreDefaultLibraryNames': [ | 40 'IgnoreDefaultLibraryNames': [ |
38 'user32.lib', | 41 'user32.lib', |
39 ], | 42 ], |
40 }, | 43 }, |
41 }, | 44 }, |
42 }, | 45 }, |
43 { | 46 { |
44 'target_name': 'chrome_elf_unittests_exe', | 47 'target_name': 'chrome_elf_unittests_exe', |
45 'product_name': 'chrome_elf_unittests', | 48 'product_name': 'chrome_elf_unittests', |
46 'type': 'executable', | 49 'type': 'executable', |
47 'sources': [ | 50 'sources': [ |
48 'blacklist/test/blacklist_test.cc', | 51 'blacklist/test/blacklist_test.cc', |
| 52 'chrome_elf_util_unittest.cc', |
49 'create_file/chrome_create_file_unittest.cc', | 53 'create_file/chrome_create_file_unittest.cc', |
50 'elf_imports_unittest.cc', | 54 'elf_imports_unittest.cc', |
51 'ntdll_cache_unittest.cc', | 55 'ntdll_cache_unittest.cc', |
52 ], | 56 ], |
53 'include_dirs': [ | 57 'include_dirs': [ |
54 '..', | 58 '..', |
55 '<(SHARED_INTERMEDIATE_DIR)', | |
56 ], | 59 ], |
57 'dependencies': [ | 60 'dependencies': [ |
58 'chrome_elf_lib', | 61 'chrome_elf_lib', |
59 '../base/base.gyp:base', | 62 '../base/base.gyp:base', |
60 '../base/base.gyp:run_all_unittests', | 63 '../base/base.gyp:run_all_unittests', |
61 '../base/base.gyp:test_support_base', | 64 '../base/base.gyp:test_support_base', |
62 '../sandbox/sandbox.gyp:sandbox', | 65 '../sandbox/sandbox.gyp:sandbox', |
| 66 '../testing/gmock.gyp:gmock', |
63 '../testing/gtest.gyp:gtest', | 67 '../testing/gtest.gyp:gtest', |
64 'blacklist', | 68 'blacklist', |
65 'blacklist_test_dll_1', | 69 'blacklist_test_dll_1', |
66 'blacklist_test_dll_2', | 70 'blacklist_test_dll_2', |
67 'blacklist_test_dll_3', | 71 'blacklist_test_dll_3', |
68 'blacklist_test_main_dll', | 72 'blacklist_test_main_dll', |
69 ], | 73 ], |
70 }, | 74 }, |
71 { | 75 { |
72 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build | 76 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build |
73 # when building chrome_elf_unittests.exe without introducing an | 77 # when building chrome_elf_unittests.exe without introducing an |
74 # explicit runtime dependency. | 78 # explicit runtime dependency. |
75 'target_name': 'chrome_elf_unittests', | 79 'target_name': 'chrome_elf_unittests', |
76 'type': 'none', | 80 'type': 'none', |
77 'dependencies': [ | 81 'dependencies': [ |
78 '../chrome/chrome.gyp:chrome', | 82 '../chrome/chrome.gyp:chrome', |
79 'chrome_elf', | 83 'chrome_elf', |
80 'chrome_elf_unittests_exe', | 84 'chrome_elf_unittests_exe', |
81 ], | 85 ], |
82 }, | 86 }, |
83 { | 87 { |
84 'target_name': 'chrome_elf_lib', | 88 'target_name': 'chrome_elf_lib', |
85 'type': 'static_library', | 89 'type': 'static_library', |
86 'include_dirs': [ | 90 'include_dirs': [ |
87 '..', | 91 '..', |
88 ], | 92 ], |
89 'sources': [ | 93 'sources': [ |
| 94 'create_file/chrome_create_file.cc', |
| 95 'create_file/chrome_create_file.h', |
| 96 'ntdll_cache.cc', |
| 97 'ntdll_cache.h', |
| 98 ], |
| 99 'dependencies': [ |
| 100 'chrome_elf_common', |
| 101 ], |
| 102 }, |
| 103 { |
| 104 'target_name': 'chrome_elf_common', |
| 105 'type': 'static_library', |
| 106 'include_dirs': [ |
| 107 '..', |
| 108 ], |
| 109 'sources': [ |
90 'chrome_elf_constants.cc', | 110 'chrome_elf_constants.cc', |
91 'chrome_elf_constants.h', | 111 'chrome_elf_constants.h', |
92 'chrome_elf_types.h', | 112 'chrome_elf_types.h', |
93 'create_file/chrome_create_file.cc', | 113 'chrome_elf_util.cc', |
94 'create_file/chrome_create_file.h', | 114 'chrome_elf_util.h', |
95 'ntdll_cache.cc', | 115 ], |
96 'ntdll_cache.h', | 116 }, |
| 117 { |
| 118 'target_name': 'chrome_elf_breakpad', |
| 119 'type': 'static_library', |
| 120 'include_dirs': [ |
| 121 '..', |
| 122 '<(SHARED_INTERMEDIATE_DIR)', |
| 123 ], |
| 124 'sources': [ |
| 125 'breakpad.cc', |
| 126 'breakpad.h', |
| 127 ], |
| 128 'dependencies': [ |
| 129 'chrome_elf_common', |
| 130 '../breakpad/breakpad.gyp:breakpad_handler', |
| 131 '../chrome/chrome.gyp:chrome_version_header', |
97 ], | 132 ], |
98 }, | 133 }, |
99 ], # targets | 134 ], # targets |
100 'conditions': [ | 135 'conditions': [ |
101 ['component=="shared_library"', { | 136 ['component=="shared_library"', { |
102 'targets': [ | 137 'targets': [ |
103 { | 138 { |
104 'target_name': 'chrome_redirects', | 139 'target_name': 'chrome_redirects', |
105 'type': 'shared_library', | 140 'type': 'shared_library', |
106 'include_dirs': [ | 141 'include_dirs': [ |
(...skipping 11 matching lines...) Expand all Loading... |
118 # Set /SUBSYSTEM:WINDOWS. | 153 # Set /SUBSYSTEM:WINDOWS. |
119 'SubSystem': '2', | 154 'SubSystem': '2', |
120 }, | 155 }, |
121 }, | 156 }, |
122 }, | 157 }, |
123 ], | 158 ], |
124 }], | 159 }], |
125 ], | 160 ], |
126 } | 161 } |
127 | 162 |
OLD | NEW |