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 ], | 11 ], |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'chrome_elf', | 14 'target_name': 'chrome_elf', |
15 'type': 'shared_library', | 15 'type': 'shared_library', |
16 'include_dirs': [ | 16 'include_dirs': [ |
17 '..', | 17 '..', |
18 ], | 18 ], |
19 'sources': [ | 19 'sources': [ |
20 'chrome_elf.def', | 20 'chrome_elf.def', |
21 'chrome_elf_main.cc', | 21 'chrome_elf_main.cc', |
22 'chrome_elf_main.h', | 22 'chrome_elf_main.h', |
23 ], | 23 ], |
| 24 'dependencies': [ |
| 25 'chrome_elf_lib', |
| 26 ], |
24 'msvs_settings': { | 27 'msvs_settings': { |
25 'VCLinkerTool': { | 28 'VCLinkerTool': { |
26 'BaseAddress': '0x01c20000', | 29 'BaseAddress': '0x01c20000', |
27 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). | 30 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). |
28 'SubSystem': '2', | 31 'SubSystem': '2', |
29 }, | 32 }, |
30 }, | 33 }, |
31 }, | 34 }, |
| 35 { |
| 36 'target_name': 'chrome_elf_unittests', |
| 37 'type': 'executable', |
| 38 'sources': [ |
| 39 'ntdll_cache_unittest.cc', |
| 40 ], |
| 41 'include_dirs': [ |
| 42 '..', |
| 43 ], |
| 44 'dependencies': [ |
| 45 'chrome_elf_lib', |
| 46 '<(DEPTH)/base/base.gyp:run_all_unittests', |
| 47 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 48 ], |
| 49 }, |
| 50 { |
| 51 'target_name': 'chrome_elf_lib', |
| 52 'type': 'static_library', |
| 53 'include_dirs': [ |
| 54 '..', |
| 55 ], |
| 56 'sources': [ |
| 57 'chrome_elf_types.h', |
| 58 'ntdll_cache.cc', |
| 59 'ntdll_cache.h', |
| 60 ], |
| 61 }, |
32 ], | 62 ], |
33 } | 63 } |
OLD | NEW |