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

Side by Side Diff: chrome_elf/chrome_elf.gyp

Issue 138593004: Use an alternate mechanism for CreateFile calls in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 {
15 'target_name': 'chrome_redirects',
16 'type': 'shared_library',
17 'include_dirs': [
18 '..',
19 ],
20 'sources': [
21 'chrome_redirects.def',
22 ],
23 'dependencies': [
24 'chrome_elf_lib',
25 ],
26 'msvs_settings': {
27 'VCLinkerTool': {
28 'BaseAddress': '0x01c10000',
29 # Set /SUBSYSTEM:WINDOWS.
30 'SubSystem': '2',
31 },
32 },
33 'conditions': [
34 ['component=="shared_library"', {
35 # In component builds, all targets depend on chrome_redirects by
36 # default. Remove it here to avoid a circular dependency.
37 'dependencies!': [
38 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
39 ],
40 }],
41 ],
42 },
14 { 43 {
15 'target_name': 'chrome_elf', 44 'target_name': 'chrome_elf',
16 'type': 'shared_library', 45 'type': 'shared_library',
17 'include_dirs': [ 46 'include_dirs': [
18 '..', 47 '..',
19 ], 48 ],
20 'sources': [ 49 'sources': [
21 'chrome_elf.def', 50 'chrome_elf.def',
22 'chrome_elf_main.cc', 51 'chrome_elf_main.cc',
23 'chrome_elf_main.h', 52 'chrome_elf_main.h',
24 ], 53 ],
25 'dependencies': [ 54 'dependencies': [
26 'blacklist', 55 'blacklist',
27 'chrome_elf_lib', 56 'chrome_elf_lib',
57 'chrome_redirects',
28 ], 58 ],
29 'msvs_settings': { 59 'msvs_settings': {
30 'VCLinkerTool': { 60 'VCLinkerTool': {
31 'BaseAddress': '0x01c20000', 61 'BaseAddress': '0x01c20000',
32 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). 62 # Set /SUBSYSTEM:WINDOWS.
33 'SubSystem': '2', 63 'SubSystem': '2',
34 'AdditionalDependencies!': [ 64 'AdditionalDependencies!': [
35 'user32.lib', 65 'user32.lib',
36 ], 66 ],
37 'IgnoreDefaultLibraryNames': [ 67 'IgnoreDefaultLibraryNames': [
38 'user32.lib', 68 'user32.lib',
39 ], 69 ],
40 }, 70 },
41 }, 71 },
42 }, 72 },
43 { 73 {
44 'target_name': 'chrome_elf_unittests', 74 'target_name': 'chrome_elf_unittests',
45 'type': 'executable', 75 'type': 'executable',
46 'sources': [ 76 'sources': [
47 'blacklist/test/blacklist_test.cc', 77 'blacklist/test/blacklist_test.cc',
78 'create_file/chrome_create_file_unittest.cc',
48 'ntdll_cache_unittest.cc', 79 'ntdll_cache_unittest.cc',
49 ], 80 ],
50 'include_dirs': [ 81 'include_dirs': [
51 '..', 82 '..',
52 ], 83 ],
53 'dependencies': [ 84 'dependencies': [
54 'chrome_elf_lib', 85 'chrome_elf_lib',
55 '../base/base.gyp:base', 86 '../base/base.gyp:base',
56 '../base/base.gyp:run_all_unittests', 87 '../base/base.gyp:run_all_unittests',
57 '../base/base.gyp:test_support_base', 88 '../base/base.gyp:test_support_base',
58 '../sandbox/sandbox.gyp:sandbox', 89 '../sandbox/sandbox.gyp:sandbox',
59 '../testing/gtest.gyp:gtest', 90 '../testing/gtest.gyp:gtest',
60 'blacklist', 91 'blacklist',
61 'blacklist_test_dll_1', 92 'blacklist_test_dll_1',
62 'blacklist_test_dll_2', 93 'blacklist_test_dll_2',
63 'blacklist_test_dll_3', 94 'blacklist_test_dll_3',
64 'blacklist_test_main_dll', 95 'blacklist_test_main_dll',
65 ], 96 ],
66 }, 97 },
67 { 98 {
68 'target_name': 'chrome_elf_lib', 99 'target_name': 'chrome_elf_lib',
69 'type': 'static_library', 100 'type': 'static_library',
70 'include_dirs': [ 101 'include_dirs': [
71 '..', 102 '..',
72 ], 103 ],
73 'sources': [ 104 'sources': [
105 'chrome_elf_constants.cc',
106 'chrome_elf_constants.h',
74 'chrome_elf_types.h', 107 'chrome_elf_types.h',
108 'create_file/chrome_create_file.cc',
109 'create_file/chrome_create_file.h',
75 'ntdll_cache.cc', 110 'ntdll_cache.cc',
76 'ntdll_cache.h', 111 'ntdll_cache.h',
77 ], 112 ],
113 'conditions': [
114 ['component=="shared_library"', {
115 # In component builds, all targets depend on chrome_redirects by
116 # default. Remove it here to avoid a circular dependency.
117 'dependencies!': [
118 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
119 ],
120 }],
121 ],
78 }, 122 },
79 ], 123 ],
80 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698