| OLD | NEW |
| 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 # GYP version //content/content_tests.gypi:test_support_content |
| 16 static_library("test_support") { | 16 static_library("test_support") { |
| 17 testonly = true | 17 testonly = true |
| 18 public_deps = [] |
| 18 deps = [ | 19 deps = [ |
| 19 "//cc/blink", | 20 "//cc/blink", |
| 20 "//content/public/app:both", | 21 "//content/public/app:both", |
| 21 "//content/public/browser:browser_sources", | 22 "//content/public/browser:browser_sources", |
| 22 "//content/public/common:common_sources", | 23 "//content/public/common:common_sources", |
| 23 "//net:test_support", | 24 "//net:test_support", |
| 24 "//skia", | 25 "//skia", |
| 25 "//storage/common", | 26 "//storage/common", |
| 26 "//testing/gmock", | 27 "//testing/gmock", |
| 27 "//testing/gtest", | 28 "//testing/gtest", |
| 28 "//ui/accessibility:ax_gen", | 29 "//ui/accessibility:ax_gen", |
| 29 "//ui/base", | 30 "//ui/base", |
| 30 "//ui/base:test_support", | 31 "//ui/base:test_support", |
| 31 "//ui/events:dom4_keycode_converter", | 32 "//ui/events:dom4_keycode_converter", |
| 32 "//ui/events:events_base", | 33 "//ui/events:events_base", |
| 33 "//ui/events:test_support", | 34 "//ui/events:test_support", |
| 34 "//ui/events:gesture_detection", | 35 "//ui/events:gesture_detection", |
| 35 "//ui/gfx:test_support", | 36 "//ui/gfx:test_support", |
| 36 "//ui/gl", | 37 "//ui/gl", |
| 37 "//ui/resources", | 38 "//ui/resources", |
| 38 "//url", | 39 "//url", |
| 39 ] | 40 ] |
| 40 | 41 |
| 41 if (!is_ios) { | 42 if (!is_ios) { |
| 42 sources = rebase_path(content_tests_gypi_values.test_support_content_sources
, | 43 sources = rebase_path(content_tests_gypi_values.test_support_content_sources
, |
| 43 ".", "//content") | 44 ".", "//content") |
| 44 | 45 |
| 46 public_deps += [ |
| 47 "//third_party/WebKit/public:blink", |
| 48 ] |
| 45 deps += [ | 49 deps += [ |
| 46 "//content/browser/speech/proto", | 50 "//content/browser/speech/proto", |
| 47 "//content/public/child:child_sources", | 51 "//content/public/child:child_sources", |
| 48 "//content/gpu", | 52 "//content/gpu", |
| 49 "//content/public/renderer:renderer_sources", | 53 "//content/public/renderer:renderer_sources", |
| 50 "//content/public/utility:utility_sources", | 54 "//content/public/utility:utility_sources", |
| 51 "//content/shell:pak", | 55 "//content/shell:pak", |
| 52 "//cc", | 56 "//cc", |
| 53 "//cc:test_support", | 57 "//cc:test_support", |
| 54 "//media", | 58 "//media", |
| 55 "//ppapi:ppapi_host", | 59 "//ppapi:ppapi_host", |
| 56 "//ppapi:ppapi_proxy", | 60 "//ppapi:ppapi_proxy", |
| 57 "//ppapi:ppapi_shared", | 61 "//ppapi:ppapi_shared", |
| 58 "//ppapi:ppapi_unittest_shared", | 62 "//ppapi:ppapi_unittest_shared", |
| 59 "//storage/browser", | 63 "//storage/browser", |
| 60 "//storage/common", | 64 "//storage/common", |
| 61 "//third_party/WebKit/public:blink", | |
| 62 "//ui/surface", | 65 "//ui/surface", |
| 63 "//v8", | 66 "//v8", |
| 64 "//webkit/common/gpu", | 67 "//webkit/common/gpu", |
| 65 ] | 68 ] |
| 66 | 69 |
| 67 forward_dependent_configs_from = [ | |
| 68 "//third_party/WebKit/public:blink", | |
| 69 ] | |
| 70 | |
| 71 if (enable_plugins) { | 70 if (enable_plugins) { |
| 72 deps += [ "//content/ppapi_plugin" ] | 71 deps += [ "//content/ppapi_plugin" ] |
| 73 } | 72 } |
| 74 | 73 |
| 75 if (enable_webrtc) { | 74 if (enable_webrtc) { |
| 76 # TODO(GYP) remove this when libjingle is converted. | 75 # TODO(GYP) remove this when libjingle is converted. |
| 77 configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ] | 76 configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ] |
| 78 | 77 |
| 79 sources += [ | 78 sources += [ |
| 80 "../renderer/media/mock_media_stream_dispatcher.cc", | 79 "../renderer/media/mock_media_stream_dispatcher.cc", |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 172 |
| 174 generate_jni("jni") { | 173 generate_jni("jni") { |
| 175 sources = [ "../public/test/android/javatests/src/org/chromium/content/bro
wser/test/NestedSystemMessageHandler.java" ] | 174 sources = [ "../public/test/android/javatests/src/org/chromium/content/bro
wser/test/NestedSystemMessageHandler.java" ] |
| 176 jni_package = "content/public/test" | 175 jni_package = "content/public/test" |
| 177 } | 176 } |
| 178 } | 177 } |
| 179 } # !is_ios | 178 } # !is_ios |
| 180 | 179 |
| 181 # TODO(GYP): Unit test targets | 180 # TODO(GYP): Unit test targets |
| 182 | 181 |
| OLD | NEW |