Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: chrome_elf/chrome_elf.gyp

Issue 1841573002: [Chrome ELF] New NT registry API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes & CreateRegKey now recursive. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ##--------------------------------------------------------------------------
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',
(...skipping 10 matching lines...) Expand all
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 '../chrome/app/chrome_crash_reporter_client_win.cc', 43 '../chrome/app/chrome_crash_reporter_client_win.cc',
41 '../chrome/app/chrome_crash_reporter_client_win.h', 44 '../chrome/app/chrome_crash_reporter_client_win.h',
42 '<(SHARED_INTERMEDIATE_DIR)/chrome_elf/chrome_elf_version.rc', 45 '<(SHARED_INTERMEDIATE_DIR)/chrome_elf/chrome_elf_version.rc',
43 ], 46 ],
44 'dependencies': [ 47 'dependencies': [
48 '../chrome/chrome.gyp:install_static_util',
45 'blacklist', 49 'blacklist',
46 'chrome_elf_breakpad', 50 'chrome_elf_breakpad',
51 'chrome_elf_hook_util',
47 'chrome_elf_resources', 52 'chrome_elf_resources',
53 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry',
48 '../chrome/chrome.gyp:install_static_util', 54 '../chrome/chrome.gyp:install_static_util',
49 '../components/components.gyp:crash_component', 55 '../components/components.gyp:crash_component',
50 '../components/components.gyp:crash_core_common', 56 '../components/components.gyp:crash_core_common',
51 ], 57 ],
52 'msvs_settings': { 58 'msvs_settings': {
53 'VCLinkerTool': { 59 'VCLinkerTool': {
54 'conditions': [ 60 'conditions': [
55 ['target_arch=="ia32"', { 61 ['target_arch=="ia32"', {
56 # Don't set an x64 base address (to avoid breaking HE-ASLR). 62 # Don't set an x64 base address (to avoid breaking HE-ASLR).
57 'BaseAddress': '0x01c20000', 63 'BaseAddress': '0x01c20000',
58 }], 64 }],
59 ], 65 ],
60 # Set /SUBSYSTEM:WINDOWS. 66 # Set /SUBSYSTEM:WINDOWS.
61 'SubSystem': '2', 67 'SubSystem': '2',
62 'AdditionalDependencies!': [ 68 'AdditionalDependencies!': [
63 'user32.lib', 69 'user32.lib',
64 ], 70 ],
65 'IgnoreDefaultLibraryNames': [ 71 'IgnoreDefaultLibraryNames': [
66 'user32.lib', 72 'user32.lib',
67 ], 73 ],
68 }, 74 },
69 }, 75 },
70 }, 76 },
77 ##--------------------------------------------------------------------------
78 ## chrome_elf sub targets
79 ##--------------------------------------------------------------------------
80 {
81 'target_name': 'chrome_elf_constants',
82 'type': 'static_library',
83 'include_dirs': [
84 '..',
85 ],
86 'sources': [
87 'chrome_elf_constants.cc',
88 'chrome_elf_constants.h',
89 ],
90 },
91 {
92 'target_name': 'chrome_elf_breakpad',
93 'type': 'static_library',
94 'include_dirs': [
95 '..',
96 '<(SHARED_INTERMEDIATE_DIR)',
97 ],
98 'sources': [
99 'breakpad/breakpad.cc',
100 'breakpad/breakpad.h',
101 ],
102 'dependencies': [
103 '../breakpad/breakpad.gyp:breakpad_handler',
104 '../chrome/chrome.gyp:install_static_util',
105 '../chrome/common_constants.gyp:version_header',
106 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry',
107 ],
108 },
109 {
110 'target_name': 'chrome_elf_hook_util',
111 'type': 'static_library',
112 'include_dirs': [
113 '..',
114 ],
115 'sources': [
116 'hook_util/thunk_getter.cc',
117 'hook_util/thunk_getter.h',
118 ],
119 },
120 ##--------------------------------------------------------------------------
121 ## tests
122 ##--------------------------------------------------------------------------
71 { 123 {
72 'target_name': 'chrome_elf_unittests_exe', 124 'target_name': 'chrome_elf_unittests_exe',
73 'product_name': 'chrome_elf_unittests', 125 'product_name': 'chrome_elf_unittests',
74 'type': 'executable', 126 'type': 'executable',
75 'sources': [ 127 'sources': [
76 'blacklist/test/blacklist_test.cc', 128 'blacklist/test/blacklist_test.cc',
77 'chrome_elf_util_unittest.cc', 129 'chrome_elf_util_unittest.cc',
78 'elf_imports_unittest.cc', 130 'elf_imports_unittest.cc',
79 'run_all_unittests.cc', 131 'run_all_unittests.cc',
80 ], 132 ],
81 'include_dirs': [ 133 'include_dirs': [
82 '..', 134 '..',
83 '<(SHARED_INTERMEDIATE_DIR)', 135 '<(SHARED_INTERMEDIATE_DIR)',
84 ], 136 ],
85 'dependencies': [ 137 'dependencies': [
86 '../base/base.gyp:base', 138 '../base/base.gyp:base',
87 '../base/base.gyp:run_all_unittests', 139 '../base/base.gyp:run_all_unittests',
88 '../base/base.gyp:test_support_base', 140 '../base/base.gyp:test_support_base',
89 '../chrome/chrome.gyp:install_static_util', 141 '../chrome/chrome.gyp:install_static_util',
90 '../sandbox/sandbox.gyp:sandbox', 142 '../sandbox/sandbox.gyp:sandbox',
91 '../testing/gtest.gyp:gtest', 143 '../testing/gtest.gyp:gtest',
92 'blacklist', 144 'blacklist',
93 'blacklist_test_dll_1', 145 'blacklist_test_dll_1',
94 'blacklist_test_dll_2', 146 'blacklist_test_dll_2',
95 'blacklist_test_dll_3', 147 'blacklist_test_dll_3',
96 'blacklist_test_main_dll', 148 'blacklist_test_main_dll',
149 'chrome_elf_hook_util',
150 'nt_registry/nt_registry.gyp:chrome_elf_nt_registry',
97 ], 151 ],
98 'msvs_settings': { 152 'msvs_settings': {
99 'VCLinkerTool': { 153 'VCLinkerTool': {
100 'AdditionalDependencies!': [ 154 'AdditionalDependencies!': [
101 'user32.lib', 155 'user32.lib',
102 ], 156 ],
103 'IgnoreDefaultLibraryNames': [ 157 'IgnoreDefaultLibraryNames': [
104 'user32.lib', 158 'user32.lib',
105 ], 159 ],
106 'DelayLoadDLLs': [ 160 'DelayLoadDLLs': [
(...skipping 17 matching lines...) Expand all
124 # explicit runtime dependency. 178 # explicit runtime dependency.
125 'target_name': 'chrome_elf_unittests', 179 'target_name': 'chrome_elf_unittests',
126 'type': 'none', 180 'type': 'none',
127 'dependencies': [ 181 'dependencies': [
128 '../chrome/chrome.gyp:chrome', 182 '../chrome/chrome.gyp:chrome',
129 '../chrome/chrome.gyp:install_static_util', 183 '../chrome/chrome.gyp:install_static_util',
130 'chrome_elf', 184 'chrome_elf',
131 'chrome_elf_unittests_exe', 185 'chrome_elf_unittests_exe',
132 ], 186 ],
133 }, 187 },
134 {
135 'target_name': 'chrome_elf_constants',
136 'type': 'static_library',
137 'include_dirs': [
138 '..',
139 ],
140 'sources': [
141 'chrome_elf_constants.cc',
142 'chrome_elf_constants.h',
143 ],
144 },
145 {
146 'target_name': 'chrome_elf_common',
147 'type': 'static_library',
148 'dependencies': [
149 'chrome_elf_constants',
150 ],
151 'include_dirs': [
152 '..',
153 ],
154 'sources': [
155 'thunk_getter.cc',
156 'thunk_getter.h',
157 ],
158 },
159 {
160 'target_name': 'chrome_elf_breakpad',
161 'type': 'static_library',
162 'include_dirs': [
163 '..',
164 '<(SHARED_INTERMEDIATE_DIR)',
165 ],
166 'sources': [
167 'breakpad.cc',
168 'breakpad.h',
169 ],
170 'dependencies': [
171 'chrome_elf_common',
172 '../breakpad/breakpad.gyp:breakpad_handler',
173 '../chrome/common_constants.gyp:version_header',
174 '../chrome/chrome.gyp:install_static_util',
175 ],
176 },
177 ], # targets 188 ], # targets
189 ##----------------------------------------------------------------------------
190 ## conditionals
191 ##----------------------------------------------------------------------------
178 'conditions': [ 192 'conditions': [
179 ['test_isolation_mode != "noop"', { 193 ['test_isolation_mode != "noop"', {
180 'targets': [ 194 'targets': [
181 { 195 {
182 'target_name': 'chrome_elf_unittests_run', 196 'target_name': 'chrome_elf_unittests_run',
183 'type': 'none', 197 'type': 'none',
184 'dependencies': [ 198 'dependencies': [
185 'chrome_elf_unittests', 199 'chrome_elf_unittests',
186 ], 200 ],
187 'includes': [ '../build/isolate.gypi' ], 201 'includes': [ '../build/isolate.gypi' ],
188 'sources': [ 'chrome_elf_unittests.isolate' ], 202 'sources': [ 'chrome_elf_unittests.isolate' ],
189 }, 203 },
190 ], 204 ],
191 }], 205 }],
192 ], 206 ],
193 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698