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

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: PRESUBMIT to allow chrome_elf directory files to use wstring. Created 4 years, 5 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
« no previous file with comments | « chrome_elf/breakpad/breakpad.cc ('k') | chrome_elf/chrome_elf_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'DelayLoadDLLs': [ 154 'DelayLoadDLLs': [
101 'dbghelp.dll', 155 'dbghelp.dll',
102 'ole32.dll', 156 'ole32.dll',
103 'psapi.dll', 157 'psapi.dll',
104 'rpcrt4.dll', 158 'rpcrt4.dll',
105 'shell32.dll', 159 'shell32.dll',
106 'shlwapi.dll', 160 'shlwapi.dll',
(...skipping 11 matching lines...) Expand all
118 # explicit runtime dependency. 172 # explicit runtime dependency.
119 'target_name': 'chrome_elf_unittests', 173 'target_name': 'chrome_elf_unittests',
120 'type': 'none', 174 'type': 'none',
121 'dependencies': [ 175 'dependencies': [
122 '../chrome/chrome.gyp:chrome', 176 '../chrome/chrome.gyp:chrome',
123 '../chrome/chrome.gyp:install_static_util', 177 '../chrome/chrome.gyp:install_static_util',
124 'chrome_elf', 178 'chrome_elf',
125 'chrome_elf_unittests_exe', 179 'chrome_elf_unittests_exe',
126 ], 180 ],
127 }, 181 },
128 {
129 'target_name': 'chrome_elf_constants',
130 'type': 'static_library',
131 'include_dirs': [
132 '..',
133 ],
134 'sources': [
135 'chrome_elf_constants.cc',
136 'chrome_elf_constants.h',
137 ],
138 },
139 {
140 'target_name': 'chrome_elf_common',
141 'type': 'static_library',
142 'dependencies': [
143 'chrome_elf_constants',
144 ],
145 'include_dirs': [
146 '..',
147 ],
148 'sources': [
149 'thunk_getter.cc',
150 'thunk_getter.h',
151 ],
152 },
153 {
154 'target_name': 'chrome_elf_breakpad',
155 'type': 'static_library',
156 'include_dirs': [
157 '..',
158 '<(SHARED_INTERMEDIATE_DIR)',
159 ],
160 'sources': [
161 'breakpad.cc',
162 'breakpad.h',
163 ],
164 'dependencies': [
165 'chrome_elf_common',
166 '../breakpad/breakpad.gyp:breakpad_handler',
167 '../chrome/common_constants.gyp:version_header',
168 '../chrome/chrome.gyp:install_static_util',
169 ],
170 },
171 ], # targets 182 ], # targets
183 ##----------------------------------------------------------------------------
184 ## conditionals
185 ##----------------------------------------------------------------------------
172 'conditions': [ 186 'conditions': [
173 ['test_isolation_mode != "noop"', { 187 ['test_isolation_mode != "noop"', {
174 'targets': [ 188 'targets': [
175 { 189 {
176 'target_name': 'chrome_elf_unittests_run', 190 'target_name': 'chrome_elf_unittests_run',
177 'type': 'none', 191 'type': 'none',
178 'dependencies': [ 192 'dependencies': [
179 'chrome_elf_unittests', 193 'chrome_elf_unittests',
180 ], 194 ],
181 'includes': [ '../build/isolate.gypi' ], 195 'includes': [ '../build/isolate.gypi' ],
182 'sources': [ 'chrome_elf_unittests.isolate' ], 196 'sources': [ 'chrome_elf_unittests.isolate' ],
183 }, 197 },
184 ], 198 ],
185 }], 199 }],
186 ], 200 ],
187 } 201 }
OLDNEW
« no previous file with comments | « chrome_elf/breakpad/breakpad.cc ('k') | chrome_elf/chrome_elf_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698