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

Side by Side Diff: components/sessions.gypi

Issue 673843002: Splits components/sessions into separate core and content targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clobber. Created 6 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
« no previous file with comments | « no previous file | components/sessions/BUILD.gn » ('j') | components/sessions/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 { 5 {
6 'targets': [ 6 'conditions': [
7 { 7 ['component=="static_library"', {
8 # GN version: //components/sessions 8 'targets': [
9 'target_name': 'sessions', 9 {
10 'type': '<(component)', 10 # GN version: //components/sessions:sessions
11 'dependencies': [ 11 'target_name': 'sessions',
12 '../base/base.gyp:base', 12 'type': 'none',
blundell 2014/10/24 07:23:13 I don't understand the use of 'none' here.
13 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 13 'dependencies': [
14 '../content/content.gyp:content_browser', 14 'sessions_core',
15 '../skia/skia.gyp:skia', 15 ],
16 '../third_party/protobuf/protobuf.gyp:protobuf_lite', 16 'conditions': [
17 '../ui/base/ui_base.gyp:ui_base', 17 ['OS!="ios"', {
18 '../url/url.gyp:url_lib', 18 'dependencies': [
19 ], 19 'sessions_content',
20 'include_dirs': [ 20 ],
21 '..', 21 }],
22 ], 22 ],
23 'defines': [ 23 },
24 'SESSIONS_IMPLEMENTATION', 24 {
25 ], 25 # GN version: //components/sessions:sessions_core
26 'sources': [ 26 'target_name': 'sessions_core',
27 # Note: sources list duplicated in GN build. 27 'type': 'static_library',
28 28 'includes': [
29 # TODO(rohitrao): Split this target into three separate core, content, 29 'sessions/sessions_core.gypi',
30 # and web targets. 30 ],
31 'sessions/content/content_serialized_navigation_builder.cc', 31 },
32 'sessions/content/content_serialized_navigation_builder.h',
33 'sessions/content/content_serialized_navigation_driver.cc',
34 'sessions/content/content_serialized_navigation_driver.h',
35 'sessions/core/serialized_navigation_driver.h',
36 'sessions/serialized_navigation_entry.cc',
37 'sessions/serialized_navigation_entry.h',
38 'sessions/session_id.cc',
39 'sessions/session_id.h',
40 ], 32 ],
41 'conditions': [ 33 'conditions': [
42 ['android_webview_build == 0', { 34 ['OS!="ios"', {
43 'dependencies': [ 35 'targets': [
44 '../sync/sync.gyp:sync', 36 {
45 ] 37 # GN version: //components/sessions:sessions_content
38 'target_name': 'sessions_content',
39 'type': 'static_library',
40 'includes': [
41 'sessions/sessions_content.gypi',
42 ],
43 'dependencies': [
44 'sessions_core',
45 ],
46 },
47 ],
46 }], 48 }],
47 ], 49 ],
48 }, 50 }, { # component=="static_library"
blundell 2014/10/24 07:23:13 s/static_library/shared_library
51 'targets': [
52 {
53 # GN version: //components/sessions:sessions
54 'target_name': 'sessions',
55 'type': 'shared_library',
56 'includes': [
57 'sessions/sessions_core.gypi',
58 ],
59 'conditions': [
60 ['OS!="ios"', {
61 'includes': [
62 'sessions/sessions_content.gypi',
63 ],
64 }],
65 ],
66 },
67 {
68 # GN version: //components/sessions:sessions_core
69 'target_name': 'sessions_core',
70 'type': 'none',
blundell 2014/10/24 07:23:13 I don't understand the use of 'none' here.
rohitrao (ping after 24h) 2014/10/24 12:18:29 I think this is how the GYP file is structured: I
71 'dependencies': [
72 'sessions',
73 ],
74 },
75 ],
76 'conditions': [
77 ['OS!="ios"', {
78 'targets': [
79 {
80 # GN version: //components/sessions:sessions_content
81 'target_name': 'sessions_content',
82 'type': 'none',
83 'dependencies': [
84 'sessions',
85 ],
86 },
87 ],
88 }],
89 ],
90 }],
91 ],
92 'targets': [
49 { 93 {
50 # GN version: //components/sessions:test_support 94 # GN version: //components/sessions:test_support
51 'target_name': 'sessions_test_support', 95 'target_name': 'sessions_test_support',
52 'type': 'static_library', 96 'type': 'static_library',
53 'defines!': ['SESSIONS_IMPLEMENTATION'], 97 'defines!': ['SESSIONS_IMPLEMENTATION'],
54 'dependencies': [ 98 'dependencies': [
99 'sessions_core',
55 '../skia/skia.gyp:skia', 100 '../skia/skia.gyp:skia',
56 '../testing/gtest.gyp:gtest', 101 '../testing/gtest.gyp:gtest',
57 ], 102 ],
58 'include_dirs': [ 103 'include_dirs': [
59 '..', 104 '..',
60 ], 105 ],
61 'sources': [ 106 'sources': [
62 # Note: sources list duplicated in GN build. 107 # Note: sources list duplicated in GN build.
63 'sessions/serialized_navigation_entry_test_helper.cc', 108 'sessions/serialized_navigation_entry_test_helper.cc',
64 'sessions/serialized_navigation_entry_test_helper.h', 109 'sessions/serialized_navigation_entry_test_helper.h',
65 ], 110 ],
66 'conditions': [ 111 'conditions': [
67 ['android_webview_build == 0', { 112 ['android_webview_build == 0', {
68 'dependencies': [ 113 'dependencies': [
69 '../sync/sync.gyp:sync', 114 '../sync/sync.gyp:sync',
70 ] 115 ]
71 }], 116 }],
72 ], 117 ],
73 }, 118 },
74 ], 119 ],
75 } 120 }
121
blundell 2014/10/24 07:23:13 kill
122
123
OLDNEW
« no previous file with comments | « no previous file | components/sessions/BUILD.gn » ('j') | components/sessions/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698