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 ], | 12 ], |
12 'targets': [ | 13 'targets': [ |
13 { | 14 { |
14 'target_name': 'chrome_elf', | 15 'target_name': 'chrome_elf', |
15 'type': 'shared_library', | 16 'type': 'shared_library', |
16 'include_dirs': [ | 17 'include_dirs': [ |
17 '..', | 18 '..', |
18 ], | 19 ], |
19 'sources': [ | 20 'sources': [ |
20 'chrome_elf.def', | 21 'chrome_elf.def', |
21 'chrome_elf_main.cc', | 22 'chrome_elf_main.cc', |
22 'chrome_elf_main.h', | 23 'chrome_elf_main.h', |
23 ], | 24 ], |
24 'dependencies': [ | 25 'dependencies': [ |
| 26 'blacklist', |
25 'chrome_elf_lib', | 27 'chrome_elf_lib', |
26 ], | 28 ], |
27 'msvs_settings': { | 29 'msvs_settings': { |
28 'VCLinkerTool': { | 30 'VCLinkerTool': { |
29 'BaseAddress': '0x01c20000', | 31 'BaseAddress': '0x01c20000', |
30 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). | 32 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). |
31 'SubSystem': '2', | 33 'SubSystem': '2', |
| 34 'AdditionalDependencies!': [ |
| 35 'user32.lib', |
| 36 ], |
| 37 'IgnoreDefaultLibraryNames': [ |
| 38 'user32.lib', |
| 39 ], |
32 }, | 40 }, |
33 }, | 41 }, |
34 }, | 42 }, |
35 { | 43 { |
36 'target_name': 'chrome_elf_unittests', | 44 'target_name': 'chrome_elf_unittests', |
37 'type': 'executable', | 45 'type': 'executable', |
38 'sources': [ | 46 'sources': [ |
| 47 'blacklist/test/blacklist_test.cc', |
39 'ntdll_cache_unittest.cc', | 48 'ntdll_cache_unittest.cc', |
40 ], | 49 ], |
41 'include_dirs': [ | 50 'include_dirs': [ |
42 '..', | 51 '..', |
43 ], | 52 ], |
44 'dependencies': [ | 53 'dependencies': [ |
45 'chrome_elf_lib', | 54 'chrome_elf_lib', |
46 '<(DEPTH)/base/base.gyp:run_all_unittests', | 55 '../base/base.gyp:base', |
47 '<(DEPTH)/testing/gtest.gyp:gtest', | 56 '../base/base.gyp:run_all_unittests', |
| 57 '../base/base.gyp:test_support_base', |
| 58 '../sandbox/sandbox.gyp:sandbox', |
| 59 '../testing/gtest.gyp:gtest', |
| 60 'blacklist', |
| 61 'blacklist_test_dll_1', |
| 62 'blacklist_test_dll_2', |
| 63 'blacklist_test_dll_3', |
| 64 'blacklist_test_main_dll', |
48 ], | 65 ], |
49 }, | 66 }, |
50 { | 67 { |
51 'target_name': 'chrome_elf_lib', | 68 'target_name': 'chrome_elf_lib', |
52 'type': 'static_library', | 69 'type': 'static_library', |
53 'include_dirs': [ | 70 'include_dirs': [ |
54 '..', | 71 '..', |
55 ], | 72 ], |
56 'sources': [ | 73 'sources': [ |
57 'chrome_elf_types.h', | 74 'chrome_elf_types.h', |
58 'ntdll_cache.cc', | 75 'ntdll_cache.cc', |
59 'ntdll_cache.h', | 76 'ntdll_cache.h', |
60 ], | 77 ], |
61 }, | 78 }, |
62 ], | 79 ], |
63 } | 80 } |
OLD | NEW |