| 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', |
| 28 ], | 29 ], |
| 29 'msvs_settings': { | 30 'msvs_settings': { |
| 30 'VCLinkerTool': { | 31 'VCLinkerTool': { |
| 31 'BaseAddress': '0x01c20000', | 32 'BaseAddress': '0x01c20000', |
| 32 # Set /SUBSYSTEM:WINDOWS. | 33 # Set /SUBSYSTEM:WINDOWS. |
| 33 'SubSystem': '2', | 34 'SubSystem': '2', |
| 34 'AdditionalDependencies!': [ | 35 'AdditionalDependencies!': [ |
| 35 'user32.lib', | 36 'user32.lib', |
| 36 ], | 37 ], |
| 37 'IgnoreDefaultLibraryNames': [ | 38 'IgnoreDefaultLibraryNames': [ |
| 38 'user32.lib', | 39 'user32.lib', |
| 39 ], | 40 ], |
| 40 }, | 41 }, |
| 41 }, | 42 }, |
| 42 }, | 43 }, |
| 43 { | 44 { |
| 44 'target_name': 'chrome_elf_unittests_exe', | 45 'target_name': 'chrome_elf_unittests_exe', |
| 45 'product_name': 'chrome_elf_unittests', | 46 'product_name': 'chrome_elf_unittests', |
| 46 'type': 'executable', | 47 'type': 'executable', |
| 47 'sources': [ | 48 'sources': [ |
| 48 'blacklist/test/blacklist_test.cc', | 49 'blacklist/test/blacklist_test.cc', |
| 50 'chrome_elf_util_unittest.cc', |
| 49 'create_file/chrome_create_file_unittest.cc', | 51 'create_file/chrome_create_file_unittest.cc', |
| 50 'elf_imports_unittest.cc', | 52 'elf_imports_unittest.cc', |
| 51 'ntdll_cache_unittest.cc', | 53 'ntdll_cache_unittest.cc', |
| 52 ], | 54 ], |
| 53 'include_dirs': [ | 55 'include_dirs': [ |
| 54 '..', | 56 '..', |
| 55 '<(SHARED_INTERMEDIATE_DIR)', | 57 '<(SHARED_INTERMEDIATE_DIR)', |
| 56 ], | 58 ], |
| 57 'dependencies': [ | 59 'dependencies': [ |
| 58 'chrome_elf_lib', | 60 'chrome_elf_lib', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 89 'chrome_elf_unittests_exe', | 91 'chrome_elf_unittests_exe', |
| 90 ], | 92 ], |
| 91 }, | 93 }, |
| 92 { | 94 { |
| 93 'target_name': 'chrome_elf_lib', | 95 'target_name': 'chrome_elf_lib', |
| 94 'type': 'static_library', | 96 'type': 'static_library', |
| 95 'include_dirs': [ | 97 'include_dirs': [ |
| 96 '..', | 98 '..', |
| 97 ], | 99 ], |
| 98 'sources': [ | 100 'sources': [ |
| 99 'chrome_elf_constants.cc', | |
| 100 'chrome_elf_constants.h', | |
| 101 'chrome_elf_types.h', | |
| 102 'create_file/chrome_create_file.cc', | 101 'create_file/chrome_create_file.cc', |
| 103 'create_file/chrome_create_file.h', | 102 'create_file/chrome_create_file.h', |
| 104 'ntdll_cache.cc', | 103 'ntdll_cache.cc', |
| 105 'ntdll_cache.h', | 104 'ntdll_cache.h', |
| 106 ], | 105 ], |
| 106 'dependencies': [ |
| 107 'chrome_elf_common', |
| 108 ], |
| 107 'conditions': [ | 109 'conditions': [ |
| 108 ['component=="shared_library"', { | 110 ['component=="shared_library"', { |
| 109 # In component builds, all targets depend on chrome_redirects by | 111 # In component builds, all targets depend on chrome_redirects by |
| 110 # default. Remove it here to avoid a circular dependency. | 112 # default. Remove it here to avoid a circular dependency. |
| 111 'dependencies!': [ | 113 'dependencies!': [ |
| 112 '../chrome_elf/chrome_elf.gyp:chrome_redirects', | 114 '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
| 113 ], | 115 ], |
| 114 }], | 116 }], |
| 115 ], | 117 ], |
| 116 }, | 118 }, |
| 119 { |
| 120 'target_name': 'chrome_elf_common', |
| 121 'type': 'static_library', |
| 122 'include_dirs': [ |
| 123 '..', |
| 124 ], |
| 125 'sources': [ |
| 126 'chrome_elf_constants.cc', |
| 127 'chrome_elf_constants.h', |
| 128 'chrome_elf_types.h', |
| 129 'chrome_elf_util.cc', |
| 130 'chrome_elf_util.h', |
| 131 ], |
| 132 'conditions': [ |
| 133 ['component=="shared_library"', { |
| 134 # In component builds, all targets depend on chrome_redirects by |
| 135 # default. Remove it here so we are able to test it. |
| 136 'dependencies!': [ |
| 137 '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
| 138 ], |
| 139 }], |
| 140 ], |
| 141 }, |
| 142 { |
| 143 'target_name': 'chrome_elf_breakpad', |
| 144 'type': 'static_library', |
| 145 'include_dirs': [ |
| 146 '..', |
| 147 '<(SHARED_INTERMEDIATE_DIR)', |
| 148 ], |
| 149 'sources': [ |
| 150 'breakpad.cc', |
| 151 'breakpad.h', |
| 152 ], |
| 153 'dependencies': [ |
| 154 'chrome_elf_common', |
| 155 '../breakpad/breakpad.gyp:breakpad_handler', |
| 156 '../chrome/chrome.gyp:chrome_version_header', |
| 157 ], |
| 158 }, |
| 117 ], # targets | 159 ], # targets |
| 118 'conditions': [ | 160 'conditions': [ |
| 119 ['component=="shared_library"', { | 161 ['component=="shared_library"', { |
| 120 'targets': [ | 162 'targets': [ |
| 121 { | 163 { |
| 122 'target_name': 'chrome_redirects', | 164 'target_name': 'chrome_redirects', |
| 123 'type': 'shared_library', | 165 'type': 'shared_library', |
| 124 'include_dirs': [ | 166 'include_dirs': [ |
| 125 '..', | 167 '..', |
| 126 ], | 168 ], |
| (...skipping 18 matching lines...) Expand all Loading... |
| 145 '../chrome_elf/chrome_elf.gyp:chrome_redirects', | 187 '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
| 146 ], | 188 ], |
| 147 }], | 189 }], |
| 148 ], | 190 ], |
| 149 }, | 191 }, |
| 150 ], | 192 ], |
| 151 }], | 193 }], |
| 152 ], | 194 ], |
| 153 } | 195 } |
| 154 | 196 |
| OLD | NEW |