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