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

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

Issue 542883003: GN: Make content and content_shell work when !enable_plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « content/shell/BUILD.gn ('k') | no next file » | 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"),
(...skipping 26 matching lines...) Expand all
37 ] 37 ]
38 38
39 if (!is_ios) { 39 if (!is_ios) {
40 sources = rebase_path(content_tests_gypi_values.test_support_content_sources , 40 sources = rebase_path(content_tests_gypi_values.test_support_content_sources ,
41 ".", "//content") 41 ".", "//content")
42 42
43 deps += [ 43 deps += [
44 "//content/browser/speech/proto", 44 "//content/browser/speech/proto",
45 "//content/child", 45 "//content/child",
46 "//content/gpu", 46 "//content/gpu",
47 "//content/ppapi_plugin",
48 "//content/public/renderer", 47 "//content/public/renderer",
49 "//content/public/utility", 48 "//content/public/utility",
50 "//cc", 49 "//cc",
51 "//cc:test_support", 50 "//cc:test_support",
52 "//media", 51 "//media",
53 "//ppapi:ppapi_host", 52 "//ppapi:ppapi_host",
54 "//ppapi:ppapi_proxy", 53 "//ppapi:ppapi_proxy",
55 "//ppapi:ppapi_shared", 54 "//ppapi:ppapi_shared",
56 "//ppapi:ppapi_unittest_shared", 55 "//ppapi:ppapi_unittest_shared",
57 "//storage/browser", 56 "//storage/browser",
58 "//storage/common", 57 "//storage/common",
59 "//third_party/WebKit/public:blink", 58 "//third_party/WebKit/public:blink",
60 "//ui/surface", 59 "//ui/surface",
61 "//v8", 60 "//v8",
62 "//webkit/common/gpu", 61 "//webkit/common/gpu",
63 ] 62 ]
64 63
65 forward_dependent_configs_from = [ 64 forward_dependent_configs_from = [
66 "//third_party/WebKit/public:blink", 65 "//third_party/WebKit/public:blink",
67 ] 66 ]
68 67
68 if (enable_plugins) {
69 deps += [ "//content/ppapi_plugin" ]
70 }
71
69 if (enable_webrtc) { 72 if (enable_webrtc) {
70 # TODO(GYP) remove this when libjingle is converted. 73 # TODO(GYP) remove this when libjingle is converted.
71 configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ] 74 configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ]
72 75
73 sources += [ 76 sources += [
74 "../renderer/media/mock_media_stream_dispatcher.cc", 77 "../renderer/media/mock_media_stream_dispatcher.cc",
75 "../renderer/media/mock_media_stream_dispatcher.h", 78 "../renderer/media/mock_media_stream_dispatcher.h",
76 "../renderer/media/mock_peer_connection_impl.cc", 79 "../renderer/media/mock_peer_connection_impl.cc",
77 "../renderer/media/mock_peer_connection_impl.h", 80 "../renderer/media/mock_peer_connection_impl.h",
78 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc", 81 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
79 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h", 82 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
80 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc", 83 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
81 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h", 84 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
82 ] 85 ]
83 86
84 deps += [ 87 deps += [
85 #"//third_party/libjingle:webrtc", TODO(GYP) 88 #"//third_party/libjingle:webrtc", TODO(GYP)
86 #"//third_party/libjingle:peerconnection", TODO(GYP) 89 #"//third_party/libjingle:peerconnection", TODO(GYP)
87 "//third_party/webrtc/modules/video_capture", 90 "//third_party/webrtc/modules/video_capture",
88 ] 91 ]
89 } 92 }
93 if (!enable_plugins) {
94 sources -= [ "ppapi_unittest.cc" ]
95 }
90 96
91 if (use_glib) { 97 if (use_glib) {
92 configs += [ "//build/config/linux:glib" ] 98 configs += [ "//build/config/linux:glib" ]
93 } 99 }
94 100
95 if (use_aura) { 101 if (use_aura) {
96 deps += [ 102 deps += [
97 "//ui/aura:test_support", 103 "//ui/aura:test_support",
98 "//ui/resources:ui_test_pak", 104 "//ui/resources:ui_test_pak",
99 "//ui/wm", 105 "//ui/wm",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 159
154 if (is_android) { 160 if (is_android) {
155 #deps += [ "test_support_content_jni_headers" ] TODO(GYP) 161 #deps += [ "test_support_content_jni_headers" ] TODO(GYP)
156 } 162 }
157 } 163 }
158 164
159 } # !is_ios 165 } # !is_ios
160 166
161 # TODO(GYP): Unit test targets 167 # TODO(GYP): Unit test targets
162 168
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698