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

Side by Side Diff: chrome_elf/chrome_elf.gyp

Issue 154653002: Breakpad coverage for chrome_elf start up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and catch crashes in blacklist intercept code Created 6 years, 10 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 | Annotate | Revision Log
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/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',
29 # TODO(caitkp): Why do we need this here?
30 '../breakpad/breakpad.gyp:breakpad_handler',
28 ], 31 ],
29 'msvs_settings': { 32 'msvs_settings': {
30 'VCLinkerTool': { 33 'VCLinkerTool': {
31 'BaseAddress': '0x01c20000', 34 'BaseAddress': '0x01c20000',
32 # Set /SUBSYSTEM:WINDOWS. 35 # Set /SUBSYSTEM:WINDOWS.
33 'SubSystem': '2', 36 'SubSystem': '2',
34 'AdditionalDependencies!': [ 37 'AdditionalDependencies!': [
35 'user32.lib', 38 'user32.lib',
36 ], 39 ],
37 'IgnoreDefaultLibraryNames': [ 40 'IgnoreDefaultLibraryNames': [
38 'user32.lib', 41 'user32.lib',
39 ], 42 ],
40 }, 43 },
41 }, 44 },
42 }, 45 },
43 { 46 {
44 'target_name': 'chrome_elf_unittests_exe', 47 'target_name': 'chrome_elf_unittests_exe',
45 'product_name': 'chrome_elf_unittests', 48 'product_name': 'chrome_elf_unittests',
46 'type': 'executable', 49 'type': 'executable',
47 'sources': [ 50 'sources': [
48 'blacklist/test/blacklist_test.cc', 51 'blacklist/test/blacklist_test.cc',
49 'create_file/chrome_create_file_unittest.cc', 52 'create_file/chrome_create_file_unittest.cc',
50 'elf_imports_unittest.cc', 53 'elf_imports_unittest.cc',
51 'ntdll_cache_unittest.cc', 54 'ntdll_cache_unittest.cc',
52 ], 55 ],
53 'include_dirs': [ 56 'include_dirs': [
54 '..', 57 '..',
55 '<(SHARED_INTERMEDIATE_DIR)',
56 ], 58 ],
57 'dependencies': [ 59 'dependencies': [
58 'chrome_elf_lib', 60 'chrome_elf_lib',
59 '../base/base.gyp:base', 61 '../base/base.gyp:base',
60 '../base/base.gyp:run_all_unittests', 62 '../base/base.gyp:run_all_unittests',
61 '../base/base.gyp:test_support_base', 63 '../base/base.gyp:test_support_base',
62 '../sandbox/sandbox.gyp:sandbox', 64 '../sandbox/sandbox.gyp:sandbox',
65 '../testing/gmock.gyp:gmock',
63 '../testing/gtest.gyp:gtest', 66 '../testing/gtest.gyp:gtest',
64 'blacklist', 67 'blacklist',
65 'blacklist_test_dll_1', 68 'blacklist_test_dll_1',
66 'blacklist_test_dll_2', 69 'blacklist_test_dll_2',
67 'blacklist_test_dll_3', 70 'blacklist_test_dll_3',
68 'blacklist_test_main_dll', 71 'blacklist_test_main_dll',
69 ], 72 ],
70 }, 73 },
71 { 74 {
72 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build 75 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build
(...skipping 16 matching lines...) Expand all
89 'sources': [ 92 'sources': [
90 'chrome_elf_constants.cc', 93 'chrome_elf_constants.cc',
91 'chrome_elf_constants.h', 94 'chrome_elf_constants.h',
92 'chrome_elf_types.h', 95 'chrome_elf_types.h',
93 'create_file/chrome_create_file.cc', 96 'create_file/chrome_create_file.cc',
94 'create_file/chrome_create_file.h', 97 'create_file/chrome_create_file.h',
95 'ntdll_cache.cc', 98 'ntdll_cache.cc',
96 'ntdll_cache.h', 99 'ntdll_cache.h',
97 ], 100 ],
98 }, 101 },
102 {
103 'target_name': 'chrome_elf_breakpad',
104 'type': 'static_library',
105 'include_dirs': [
106 '..',
107 '<(SHARED_INTERMEDIATE_DIR)',
108 ],
109 'sources': [
110 'breakpad.cc',
111 'breakpad.h',
112 ],
113 'dependencies': [
114 '../breakpad/breakpad.gyp:breakpad_handler',
115 '../chrome/chrome.gyp:chrome_version_header',
116 ],
117 },
99 ], # targets 118 ], # targets
100 'conditions': [ 119 'conditions': [
101 ['component=="shared_library"', { 120 ['component=="shared_library"', {
102 'targets': [ 121 'targets': [
103 { 122 {
104 'target_name': 'chrome_redirects', 123 'target_name': 'chrome_redirects',
105 'type': 'shared_library', 124 'type': 'shared_library',
106 'include_dirs': [ 125 'include_dirs': [
107 '..', 126 '..',
108 ], 127 ],
109 'sources': [ 128 'sources': [
110 'chrome_redirects.def', 129 'chrome_redirects.def',
111 ], 130 ],
112 'dependencies': [ 131 'dependencies': [
113 'chrome_elf_lib', 132 'chrome_elf_lib',
114 ], 133 ],
115 'msvs_settings': { 134 'msvs_settings': {
116 'VCLinkerTool': { 135 'VCLinkerTool': {
117 'BaseAddress': '0x01c10000', 136 'BaseAddress': '0x01c10000',
118 # Set /SUBSYSTEM:WINDOWS. 137 # Set /SUBSYSTEM:WINDOWS.
119 'SubSystem': '2', 138 'SubSystem': '2',
120 }, 139 },
121 }, 140 },
122 }, 141 },
123 ], 142 ],
124 }], 143 }],
125 ], 144 ],
126 } 145 }
127 146
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698