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