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

Side by Side Diff: content/test/BUILD.gn

Issue 418453002: Improve content test GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 5 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
« no previous file with comments | « BUILD.gn ('k') | ipc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 content_tests_gypi_values = exec_script( 8 content_tests_gypi_values = exec_script(
9 "//build/gypi_to_gn.py", 9 "//build/gypi_to_gn.py",
10 [ rebase_path("../content_tests.gypi"), 10 [ rebase_path("../content_tests.gypi"),
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ], 11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ],
12 "scope", 12 "scope",
13 [ "../content_tests.gypi" ]) 13 [ "../content_tests.gypi" ])
14 14
15 # GYP version //content/content_tests.gypi:test_support_content
15 static_library("test_support") { 16 static_library("test_support") {
16 # GYP version //content/content_tests.gypi:test_support_content
17 deps = [ 17 deps = [
18 "//net:test_support", 18 "//net:test_support",
19 "//skia", 19 "//skia",
20 "//testing/gmock", 20 "//testing/gmock",
21 "//testing/gtest", 21 "//testing/gtest",
22 "//ui/accessibility:ax_gen", 22 "//ui/accessibility:ax_gen",
23 "//ui/base", 23 "//ui/base",
24 "//ui/base:test_support", 24 "//ui/base:test_support",
25 "//ui/events:dom4_keycode_converter", 25 "//ui/events:dom4_keycode_converter",
26 "//ui/events:events_base", 26 "//ui/events:events_base",
(...skipping 20 matching lines...) Expand all
47 "//content/ppapi_plugin", 47 "//content/ppapi_plugin",
48 "//content/renderer", 48 "//content/renderer",
49 "//content/utility", 49 "//content/utility",
50 "//content/worker", 50 "//content/worker",
51 "//cc", 51 "//cc",
52 "//cc:test_support", 52 "//cc:test_support",
53 "//media", 53 "//media",
54 "//ppapi:ppapi_host", 54 "//ppapi:ppapi_host",
55 "//ppapi:ppapi_proxy", 55 "//ppapi:ppapi_proxy",
56 "//ppapi:ppapi_shared", 56 "//ppapi:ppapi_shared",
57 "//ppapi:ppapi_unittest_shared",
57 "//third_party/WebKit/public:blink", 58 "//third_party/WebKit/public:blink",
58 "//ui/surface", 59 "//ui/surface",
59 "//v8", 60 "//v8",
60 "//webkit/child", 61 "//webkit/child",
61 "//webkit/common/gpu", 62 "//webkit/common/gpu",
62 "//webkit/browser:storage", 63 "//webkit/browser:storage",
63 "//webkit/common:storage", 64 "//webkit/common:storage",
64 # TODO(GYP)
65 #"//ppapi:unittest_shared",
66 ] 65 ]
67 66
68 forward_dependent_configs_from = [ 67 forward_dependent_configs_from = [
69 "//third_party/WebKit/public:blink", 68 "//third_party/WebKit/public:blink",
70 ] 69 ]
71 70
72 # TODO(GYP) 71 if (enable_webrtc) {
73 # These targets need include dirs and defines from the libjingle target in order 72 # TODO(GYP) remove this when libjingle is converted.
74 # to compile. 73 configs += [ "//content:libjingle_stub_config" ]
75 if (false && enable_webrtc) { 74
76 sources += [ 75 sources += [
77 "../renderer/media/mock_media_stream_dispatcher.cc", 76 "../renderer/media/mock_media_stream_dispatcher.cc",
78 "../renderer/media/mock_media_stream_dispatcher.h", 77 "../renderer/media/mock_media_stream_dispatcher.h",
79 "../renderer/media/mock_peer_connection_impl.cc", 78 "../renderer/media/mock_peer_connection_impl.cc",
80 "../renderer/media/mock_peer_connection_impl.h", 79 "../renderer/media/mock_peer_connection_impl.h",
81 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc", 80 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
82 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h", 81 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
83 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc", 82 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
84 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h", 83 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
85 ] 84 ]
86 85
87 deps += [ 86 deps += [
88 "//third_party/libjingle:webrtc", 87 #"//third_party/libjingle:webrtc", TODO(GYP)
89 "//third_party/libjingle:peerconnection", 88 #"//third_party/libjingle:peerconnection", TODO(GYP)
90 "//third_party/webrtc/modules:video_capture", 89 #"//third_party/webrtc/modules:video_capture", TODO(GYP)
91 ] 90 ]
92 } 91 }
93 92
94 if (use_glib) { 93 if (use_glib) {
95 configs += [ 94 configs += [ "//build/config/linux:glib" ]
96 "//build/config/linux:glib",
97 ]
98 } 95 }
99 96
100 if (use_aura) { 97 if (use_aura) {
101 deps += [ 98 deps += [
102 "//ui/aura:test_support", 99 "//ui/aura:test_support",
103 "//ui/resources:ui_test_pak", 100 "//ui/resources:ui_test_pak",
104 "//ui/wm", 101 "//ui/wm",
105 ] 102 ]
106 } 103 }
107 104
108 if (use_aura || is_mac) { 105 if (use_aura || is_mac) {
109 deps += [ "//ui/compositor" ] 106 deps += [ "//ui/compositor" ]
110 } 107 }
111 108
112 if (is_win) { 109 if (is_win) {
113 deps += [ "//third_party/iaccessible2" ] 110 deps += [ "//third_party/iaccessible2" ]
114 } 111 }
115 112
116 if (!is_android && !is_ios) { 113 if (!is_android && !is_ios) {
117 # TODO(GYP) 114 #deps += [ "//third_party/libvpx" ] TODO(GYP)
118 #deps += [ "//third_party/libvpx" ]
119 } 115 }
120 116
121 if (is_android) { 117 if (is_android) {
122 deps += [ "//ui/shell_dialogs" ] 118 deps += [ "//ui/shell_dialogs" ]
123 } 119 }
124 120
125 if (is_win) { 121 if (is_win) {
126 deps += [ "//sandbox" ] 122 deps += [ "//sandbox" ]
127 } 123 }
128 } else { # is_ios 124 } else { # is_ios
129 sources = [ 125 sources = [
130 "public/test/content_test_suite_base.cc", 126 "public/test/content_test_suite_base.cc",
131 "public/test/mock_notification_observer.cc", 127 "public/test/mock_notification_observer.cc",
132 "public/test/mock_resource_context.cc", 128 "public/test/mock_resource_context.cc",
133 "public/test/test_browser_thread.cc", 129 "public/test/test_browser_thread.cc",
134 "public/test/test_content_client_initializer.cc", 130 "public/test/test_content_client_initializer.cc",
135 "public/test/test_notification_tracker.cc", 131 "public/test/test_notification_tracker.cc",
136 "public/test/test_utils.cc", 132 "public/test/test_utils.cc",
137 "public/test/unittest_test_suite.cc", 133 "public/test/unittest_test_suite.cc",
138 "test/content_test_suite.cc", 134 "test/content_test_suite.cc",
139 "test/test_content_browser_client.cc", 135 "test/test_content_browser_client.cc",
140 "test/test_content_client.cc", 136 "test/test_content_client.cc",
141 ] 137 ]
142 } 138 }
143 } 139 }
144 140
145 if (!is_ios) { 141 if (!is_ios) {
146 142
143 # GYP version //content/content_tests.gypi:layouttest_support_content
147 static_library("layouttest_support") { 144 static_library("layouttest_support") {
148 # GYP version //content/content_tests.gypi:layouttest_support_content
149 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources, 145 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources,
150 ".", "//content") 146 ".", "//content")
151 147
152 deps = [ 148 deps = [
153 ":test_support", 149 ":test_support",
154 "//skia", 150 "//skia",
155 "//v8", 151 "//v8",
156 "//ui/accessibility:ax_gen", 152 "//ui/accessibility:ax_gen",
157 ] 153 ]
158 154
159 if (is_android) { 155 if (is_android) {
160 # TODO(GYP) 156 #deps += [ "test_support_content_jni_headers" ] TODO(GYP)
161 # deps += [ "test_support_content_jni_headers" ]
162 } 157 }
163 } 158 }
164 159
165 } # !is_ios 160 } # !is_ios
166 161
167 # TODO(GYP): Unit test targets 162 # TODO(GYP): Unit test targets
168 163
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | ipc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698