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

Side by Side Diff: chrome/chrome_dll.gypi

Issue 1412803002: Switch Chrome to dlopen() the Google Chrome Framework.framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a shim so that Chrome does not link chrome_dll Created 5 years, 1 month 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'conditions': [ 5 'conditions': [
6 # Dummy target to allow chrome to require chrome_dll to build
7 # without actually linking to the library
8 ['OS=="mac"', {
9 'targets': [
10 {
11 'target_name': 'chrome_dll_dependency_shim',
12 'type': 'executable',
13 'dependencies': [
14 'chrome_dll',
15 ],
16 # In release, we end up with a strip step that is unhappy if there is
17 # no binary. Rather than check in a new file for this hack, just
18 # generate a source file on the fly.
19 'actions': [
20 {
21 'action_name': 'generate_stub_main',
22 'process_outputs_as_sources': 1,
23 'inputs': [],
24 'outputs': [ '<(INTERMEDIATE_DIR)/dummy_main.c' ],
25 'action': [
26 'bash', '-c',
27 'echo "int main() { return 0; }" > <(INTERMEDIATE_DIR)/dummy_mai n.c'
28 ],
29 },
30 ],
31 },
32 ],
33 },
34 ],
6 ['OS=="mac" or OS=="win"', { 35 ['OS=="mac" or OS=="win"', {
7 'targets': [ 36 'targets': [
8 { 37 {
9 # GN version: //chrome:chrome_dll 38 # GN version: //chrome:chrome_dll
10 'target_name': 'chrome_dll', 39 'target_name': 'chrome_dll',
11 'type': 'none', 40 'type': 'none',
12 'dependencies': [ 41 'dependencies': [
13 'chrome_main_dll', 42 'chrome_main_dll',
14 ], 43 ],
15 'conditions': [ 44 'conditions': [
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 'dependencies': [ 408 'dependencies': [
380 '../pdf/pdf.gyp:pdf', 409 '../pdf/pdf.gyp:pdf',
381 ], 410 ],
382 }], 411 }],
383 ], 412 ],
384 }, # target chrome_child_dll 413 }, # target chrome_child_dll
385 ], 414 ],
386 }], 415 }],
387 ], 416 ],
388 } 417 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698