Chromium Code Reviews| 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/util/version.gypi', | 9 '../build/util/version.gypi', |
| 10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
| 11 'blacklist.gypi', | 11 'blacklist.gypi', |
| 12 'dll_hash.gypi', | 12 'dll_hash.gypi', |
| 13 ], | 13 ], |
| 14 'targets': [ | 14 'targets': [ |
| 15 ##-------------------------------------------------------------------------- ---- | |
|
robertshield
2016/06/17 13:40:03
nit: wrap
penny
2016/06/22 23:13:14
Done.
| |
| 16 ## chrome_elf | |
| 17 ##-------------------------------------------------------------------------- ---- | |
| 15 { | 18 { |
| 16 'target_name': 'chrome_elf_resources', | 19 'target_name': 'chrome_elf_resources', |
| 17 'type': 'none', | 20 'type': 'none', |
| 18 'variables': { | 21 'variables': { |
| 19 'output_dir': 'chrome_elf', | 22 'output_dir': 'chrome_elf', |
| 20 'branding_path': '../chrome/app/theme/<(branding_path_component)/BRANDIN G', | 23 'branding_path': '../chrome/app/theme/<(branding_path_component)/BRANDIN G', |
| 21 'template_input_path': '../chrome/app/chrome_version.rc.version', | 24 'template_input_path': '../chrome/app/chrome_version.rc.version', |
| 22 }, | 25 }, |
| 23 'sources': [ | 26 'sources': [ |
| 24 'chrome_elf.ver', | 27 'chrome_elf.ver', |
| 25 ], | 28 ], |
| 26 'includes': [ | 29 'includes': [ |
| 27 '../chrome/version_resource_rules.gypi', | 30 '../chrome/version_resource_rules.gypi', |
| 28 ], | 31 ], |
| 29 }, | 32 }, |
| 30 { | 33 { |
| 31 'target_name': 'chrome_elf', | 34 'target_name': 'chrome_elf', |
| 32 'type': 'shared_library', | 35 'type': 'shared_library', |
| 33 'include_dirs': [ | 36 'include_dirs': [ |
| 34 '..', | 37 '..', |
| 35 ], | 38 ], |
| 36 'sources': [ | 39 'sources': [ |
| 37 'chrome_elf.def', | 40 'chrome_elf.def', |
| 38 'chrome_elf_main.cc', | 41 'chrome_elf_main.cc', |
| 39 'chrome_elf_main.h', | 42 'chrome_elf_main.h', |
| 40 '<(SHARED_INTERMEDIATE_DIR)/chrome_elf/chrome_elf_version.rc', | 43 '<(SHARED_INTERMEDIATE_DIR)/chrome_elf/chrome_elf_version.rc', |
| 41 ], | 44 ], |
| 42 'dependencies': [ | 45 'dependencies': [ |
| 46 '../chrome/chrome.gyp:install_static_util', | |
| 43 'blacklist', | 47 'blacklist', |
| 44 'chrome_elf_breakpad', | 48 'chrome_elf_breakpad', |
| 49 'chrome_elf_hook_util', | |
| 45 'chrome_elf_resources', | 50 'chrome_elf_resources', |
| 46 '../chrome/chrome.gyp:install_static_util', | 51 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry', |
| 47 ], | 52 ], |
| 48 'msvs_settings': { | 53 'msvs_settings': { |
| 49 'VCLinkerTool': { | 54 'VCLinkerTool': { |
| 50 'conditions': [ | 55 'conditions': [ |
| 51 ['target_arch=="ia32"', { | 56 ['target_arch=="ia32"', { |
| 52 # Don't set an x64 base address (to avoid breaking HE-ASLR). | 57 # Don't set an x64 base address (to avoid breaking HE-ASLR). |
| 53 'BaseAddress': '0x01c20000', | 58 'BaseAddress': '0x01c20000', |
| 54 }], | 59 }], |
| 55 ], | 60 ], |
| 56 # Set /SUBSYSTEM:WINDOWS. | 61 # Set /SUBSYSTEM:WINDOWS. |
| 57 'SubSystem': '2', | 62 'SubSystem': '2', |
| 58 'AdditionalDependencies!': [ | 63 'AdditionalDependencies!': [ |
| 59 'user32.lib', | 64 'user32.lib', |
| 60 ], | 65 ], |
| 61 'IgnoreDefaultLibraryNames': [ | 66 'IgnoreDefaultLibraryNames': [ |
| 62 'user32.lib', | 67 'user32.lib', |
| 63 ], | 68 ], |
| 64 }, | 69 }, |
| 65 }, | 70 }, |
| 66 }, | 71 }, |
| 72 ##-------------------------------------------------------------------------- ---- | |
|
robertshield
2016/06/17 13:40:03
nit: wrap
penny
2016/06/22 23:13:14
Done.
| |
| 73 ## chrome_elf sub targets | |
| 74 ##-------------------------------------------------------------------------- ---- | |
| 75 { | |
| 76 'target_name': 'chrome_elf_constants', | |
| 77 'type': 'static_library', | |
| 78 'include_dirs': [ | |
| 79 '..', | |
| 80 ], | |
| 81 'sources': [ | |
| 82 'chrome_elf_constants.cc', | |
| 83 'chrome_elf_constants.h', | |
| 84 ], | |
| 85 }, | |
| 86 { | |
| 87 'target_name': 'chrome_elf_breakpad', | |
| 88 'type': 'static_library', | |
| 89 'include_dirs': [ | |
| 90 '..', | |
| 91 '<(SHARED_INTERMEDIATE_DIR)', | |
| 92 ], | |
| 93 'sources': [ | |
| 94 'breakpad/breakpad.cc', | |
| 95 'breakpad/breakpad.h', | |
| 96 ], | |
| 97 'dependencies': [ | |
| 98 '../breakpad/breakpad.gyp:breakpad_handler', | |
| 99 '../chrome/chrome.gyp:install_static_util', | |
| 100 '../chrome/common_constants.gyp:version_header', | |
| 101 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry', | |
| 102 ], | |
| 103 }, | |
| 104 { | |
| 105 'target_name': 'chrome_elf_hook_util', | |
| 106 'type': 'static_library', | |
| 107 'include_dirs': [ | |
| 108 '..', | |
| 109 ], | |
| 110 'sources': [ | |
| 111 'hook_util/thunk_getter.cc', | |
| 112 'hook_util/thunk_getter.h', | |
| 113 ], | |
| 114 }, | |
| 115 ##-------------------------------------------------------------------------- ---- | |
|
robertshield
2016/06/17 13:40:03
nit: wrap
penny
2016/06/22 23:13:14
Done.
| |
| 116 ## tests | |
| 117 ##-------------------------------------------------------------------------- ---- | |
| 67 { | 118 { |
| 68 'target_name': 'chrome_elf_unittests_exe', | 119 'target_name': 'chrome_elf_unittests_exe', |
| 69 'product_name': 'chrome_elf_unittests', | 120 'product_name': 'chrome_elf_unittests', |
| 70 'type': 'executable', | 121 'type': 'executable', |
| 71 'sources': [ | 122 'sources': [ |
| 72 'blacklist/test/blacklist_test.cc', | 123 'blacklist/test/blacklist_test.cc', |
| 73 'chrome_elf_util_unittest.cc', | 124 'chrome_elf_util_unittest.cc', |
| 74 'elf_imports_unittest.cc', | 125 'elf_imports_unittest.cc', |
| 75 ], | 126 ], |
| 76 'include_dirs': [ | 127 'include_dirs': [ |
| 77 '..', | 128 '..', |
| 78 '<(SHARED_INTERMEDIATE_DIR)', | 129 '<(SHARED_INTERMEDIATE_DIR)', |
| 79 ], | 130 ], |
| 80 'dependencies': [ | 131 'dependencies': [ |
| 81 '../base/base.gyp:base', | 132 '../base/base.gyp:base', |
| 82 '../base/base.gyp:run_all_unittests', | 133 '../base/base.gyp:run_all_unittests', |
| 83 '../base/base.gyp:test_support_base', | 134 '../base/base.gyp:test_support_base', |
| 84 '../chrome/chrome.gyp:install_static_util', | 135 '../chrome/chrome.gyp:install_static_util', |
| 85 '../sandbox/sandbox.gyp:sandbox', | 136 '../sandbox/sandbox.gyp:sandbox', |
| 86 '../testing/gtest.gyp:gtest', | 137 '../testing/gtest.gyp:gtest', |
| 87 'blacklist', | 138 'blacklist', |
| 88 'blacklist_test_dll_1', | 139 'blacklist_test_dll_1', |
| 89 'blacklist_test_dll_2', | 140 'blacklist_test_dll_2', |
| 90 'blacklist_test_dll_3', | 141 'blacklist_test_dll_3', |
| 91 'blacklist_test_main_dll', | 142 'blacklist_test_main_dll', |
| 143 'chrome_elf_hook_util', | |
| 144 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry', | |
| 92 ], | 145 ], |
| 93 }, | 146 }, |
| 94 { | 147 { |
| 95 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets built | 148 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets built |
| 96 # when building chrome_elf_unittests.exe without introducing an | 149 # when building chrome_elf_unittests.exe without introducing an |
| 97 # explicit runtime dependency. | 150 # explicit runtime dependency. |
| 98 'target_name': 'chrome_elf_unittests', | 151 'target_name': 'chrome_elf_unittests', |
| 99 'type': 'none', | 152 'type': 'none', |
| 100 'dependencies': [ | 153 'dependencies': [ |
| 101 '../chrome/chrome.gyp:chrome', | 154 '../chrome/chrome.gyp:chrome', |
| 102 '../chrome/chrome.gyp:install_static_util', | 155 '../chrome/chrome.gyp:install_static_util', |
| 103 'chrome_elf', | 156 'chrome_elf', |
| 104 'chrome_elf_unittests_exe', | 157 'chrome_elf_unittests_exe', |
| 105 ], | 158 ], |
| 106 }, | 159 }, |
| 107 { | |
| 108 'target_name': 'chrome_elf_constants', | |
| 109 'type': 'static_library', | |
| 110 'include_dirs': [ | |
| 111 '..', | |
| 112 ], | |
| 113 'sources': [ | |
| 114 'chrome_elf_constants.cc', | |
| 115 'chrome_elf_constants.h', | |
| 116 ], | |
| 117 }, | |
| 118 { | |
| 119 'target_name': 'chrome_elf_common', | |
| 120 'type': 'static_library', | |
| 121 'dependencies': [ | |
| 122 'chrome_elf_constants', | |
| 123 ], | |
| 124 'include_dirs': [ | |
| 125 '..', | |
| 126 ], | |
| 127 'sources': [ | |
| 128 'thunk_getter.cc', | |
| 129 'thunk_getter.h', | |
| 130 ], | |
| 131 }, | |
| 132 { | |
| 133 'target_name': 'chrome_elf_breakpad', | |
| 134 'type': 'static_library', | |
| 135 'include_dirs': [ | |
| 136 '..', | |
| 137 '<(SHARED_INTERMEDIATE_DIR)', | |
| 138 ], | |
| 139 'sources': [ | |
| 140 'breakpad.cc', | |
| 141 'breakpad.h', | |
| 142 ], | |
| 143 'dependencies': [ | |
| 144 'chrome_elf_common', | |
| 145 '../breakpad/breakpad.gyp:breakpad_handler', | |
| 146 '../chrome/common_constants.gyp:version_header', | |
| 147 '../chrome/chrome.gyp:install_static_util', | |
| 148 ], | |
| 149 }, | |
| 150 ], # targets | 160 ], # targets |
| 161 ##---------------------------------------------------------------------------- -- | |
|
robertshield
2016/06/17 13:40:03
nit: wrap
penny
2016/06/22 23:13:14
Done.
| |
| 162 ## conditionals | |
| 163 ##---------------------------------------------------------------------------- -- | |
| 151 'conditions': [ | 164 'conditions': [ |
| 152 ['test_isolation_mode != "noop"', { | 165 ['test_isolation_mode != "noop"', { |
| 153 'targets': [ | 166 'targets': [ |
| 154 { | 167 { |
| 155 'target_name': 'chrome_elf_unittests_run', | 168 'target_name': 'chrome_elf_unittests_run', |
| 156 'type': 'none', | 169 'type': 'none', |
| 157 'dependencies': [ | 170 'dependencies': [ |
| 158 'chrome_elf_unittests', | 171 'chrome_elf_unittests', |
| 159 ], | 172 ], |
| 160 'includes': [ '../build/isolate.gypi' ], | 173 'includes': [ '../build/isolate.gypi' ], |
| 161 'sources': [ 'chrome_elf_unittests.isolate' ], | 174 'sources': [ 'chrome_elf_unittests.isolate' ], |
| 162 }, | 175 }, |
| 163 ], | 176 ], |
| 164 }], | 177 }], |
| 165 ], | 178 ], |
| 166 } | 179 } |
| OLD | NEW |