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.
9 '../build/util/version.gypi',
10 '../build/win_precompile.gypi',
16 'target_name': 'chrome_elf_resources',
19 ['branding == "Chrome"', {
21 'branding_path': '../chrome/app/theme/google_chrome/BRANDING',
23 }, { # else branding!="Chrome"
25 'branding_path': '../chrome/app/theme/chromium/BRANDING',
30 'output_dir': 'chrome_elf',
31 'template_input_path': '../chrome/app/chrome_version.rc.version',
37 '../chrome/version_resource_rules.gypi',
41 'target_name': 'chrome_elf',
42 'type': 'shared_library',
50 '<(SHARED_INTERMEDIATE_DIR)/chrome_elf/chrome_elf_version.rc',
54 'chrome_elf_breakpad',
56 'chrome_elf_resources',
61 ['target_arch=="ia32"', {
62 # Don't set an x64 base address (to avoid breaking HE-ASLR).
63 'BaseAddress': '0x01c20000',
66 # Set /SUBSYSTEM:WINDOWS.
68 'AdditionalDependencies!': [
71 'IgnoreDefaultLibraryNames': [
78 'target_name': 'chrome_elf_unittests_exe',
79 'product_name': 'chrome_elf_unittests',
82 'blacklist/test/blacklist_test.cc',
83 'chrome_elf_util_unittest.cc',
84 'create_file/chrome_create_file_unittest.cc',
85 'elf_imports_unittest.cc',
86 'ntdll_cache_unittest.cc',
90 '<(SHARED_INTERMEDIATE_DIR)',
94 '../base/base.gyp:base',
95 '../base/base.gyp:run_all_unittests',
96 '../base/base.gyp:test_support_base',
97 '../sandbox/sandbox.gyp:sandbox',
98 '../testing/gtest.gyp:gtest',
100 'blacklist_test_dll_1',
101 'blacklist_test_dll_2',
102 'blacklist_test_dll_3',
103 'blacklist_test_main_dll',
107 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets built
108 # when building chrome_elf_unittests.exe without introducing an
109 # explicit runtime dependency.
110 'target_name': 'chrome_elf_unittests',
113 '../chrome/chrome.gyp:chrome',
115 'chrome_elf_unittests_exe',
119 'target_name': 'chrome_elf_lib',
120 'type': 'static_library',
125 'create_file/chrome_create_file.cc',
126 'create_file/chrome_create_file.h',
132 '../base/base.gyp:base_static',
133 '../sandbox/sandbox.gyp:sandbox',
137 'target_name': 'chrome_elf_constants',
138 'type': 'static_library',
143 'chrome_elf_constants.cc',
144 'chrome_elf_constants.h',
148 'target_name': 'chrome_elf_common',
149 'type': 'static_library',
151 'chrome_elf_constants',
157 'chrome_elf_types.h',
158 'chrome_elf_util.cc',
165 'target_name': 'chrome_elf_breakpad',
166 'type': 'static_library',
169 '<(SHARED_INTERMEDIATE_DIR)',
177 '../breakpad/breakpad.gyp:breakpad_handler',
178 '../chrome/chrome.gyp:chrome_version_header',
183 ['component=="shared_library"', {
186 'target_name': 'chrome_redirects',
187 'type': 'shared_library',
192 'chrome_redirects.def',
193 'chrome_redirects_main.cc',
201 ['target_arch=="ia32"', {
202 # Don't set an x64 base address (to avoid breaking HE-ASLR).
203 'BaseAddress': '0x01c20000',
206 # Set /SUBSYSTEM:WINDOWS.