| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//sky/engine/config.gni") | 6 import("//sky/engine/config.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 visibility = [ "//sky/*" ] | 9 visibility = [ "//sky/*" ] |
| 10 | 10 |
| 11 platform_web_unittest_files = [ | 11 platform_web_unittest_files = [ |
| 12 "//sky/engine/platform/graphics/BitmapImageTest.cpp", | 12 "//sky/engine/platform/graphics/BitmapImageTest.cpp", |
| 13 "//sky/engine/platform/graphics/DeferredImageDecoderTest.cpp", | 13 "//sky/engine/platform/graphics/DeferredImageDecoderTest.cpp", |
| 14 "//sky/engine/platform/graphics/ImageDecodingStoreTest.cpp", | 14 "//sky/engine/platform/graphics/ImageDecodingStoreTest.cpp", |
| 15 "//sky/engine/platform/graphics/ImageFrameGeneratorTest.cpp", | 15 "//sky/engine/platform/graphics/ImageFrameGeneratorTest.cpp", |
| 16 "//sky/engine/platform/graphics/test/MockImageDecoder.h", | 16 "//sky/engine/platform/graphics/test/MockImageDecoder.h", |
| 17 "//sky/engine/platform/graphics/test/MockWebGraphicsContext3D.h", | 17 "//sky/engine/platform/graphics/test/MockWebGraphicsContext3D.h", |
| 18 "//sky/engine/platform/image-decoders/gif/GIFImageDecoderTest.cpp", | 18 "//sky/engine/platform/image-decoders/gif/GIFImageDecoderTest.cpp", |
| 19 "//sky/engine/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp", | 19 "//sky/engine/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp", |
| 20 ] | 20 ] |
| 21 | 21 |
| 22 component("web") { | 22 component("web") { |
| 23 output_name = "sky_web" | 23 output_name = "sky_web" |
| 24 | 24 |
| 25 deps = [ | 25 deps = [ |
| 26 "//sky/engine/core", | 26 "//sky/engine/core", |
| 27 "//sky/engine/platform", | 27 "//sky/engine/platform", |
| 28 | |
| 29 # FIXME: v8_inspector should not depend on core types and be separate | |
| 30 # from both web and core. | |
| 31 "//sky/engine/v8_inspector", | |
| 32 ] | 28 ] |
| 33 | 29 |
| 34 configs += [ | 30 configs += [ |
| 35 "//sky/engine:config", | 31 "//sky/engine:config", |
| 36 "//sky/engine:inside_blink", | 32 "//sky/engine:inside_blink", |
| 37 "//sky/engine:non_test_config", | 33 "//sky/engine:non_test_config", |
| 38 ] | 34 ] |
| 39 | 35 |
| 40 sources = [ | 36 sources = [ |
| 41 "AssertMatchingEnums.cpp", | 37 "AssertMatchingEnums.cpp", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 "WebCache.cpp", | 49 "WebCache.cpp", |
| 54 "WebCachedURLRequest.cpp", | 50 "WebCachedURLRequest.cpp", |
| 55 "WebDocument.cpp", | 51 "WebDocument.cpp", |
| 56 "WebElement.cpp", | 52 "WebElement.cpp", |
| 57 "WebFontDescription.cpp", | 53 "WebFontDescription.cpp", |
| 58 "WebFontImpl.cpp", | 54 "WebFontImpl.cpp", |
| 59 "WebFontImpl.h", | 55 "WebFontImpl.h", |
| 60 "WebFrame.cpp", | 56 "WebFrame.cpp", |
| 61 "WebHitTestResult.cpp", | 57 "WebHitTestResult.cpp", |
| 62 "Sky.cpp", | 58 "Sky.cpp", |
| 63 "WebLeakDetector.cpp", | |
| 64 "WebLocalFrameImpl.cpp", | 59 "WebLocalFrameImpl.cpp", |
| 65 "WebLocalFrameImpl.h", | 60 "WebLocalFrameImpl.h", |
| 66 "WebNode.cpp", | 61 "WebNode.cpp", |
| 67 "WebRange.cpp", | 62 "WebRange.cpp", |
| 68 "WebRuntimeFeatures.cpp", | 63 "WebRuntimeFeatures.cpp", |
| 69 "WebSettingsImpl.cpp", | 64 "WebSettingsImpl.cpp", |
| 70 "WebSettingsImpl.h", | 65 "WebSettingsImpl.h", |
| 71 "WebTextCheckingCompletionImpl.cpp", | 66 "WebTextCheckingCompletionImpl.cpp", |
| 72 "WebTextCheckingCompletionImpl.h", | 67 "WebTextCheckingCompletionImpl.h", |
| 73 "WebTextCheckingResult.cpp", | 68 "WebTextCheckingResult.cpp", |
| 74 "WebTextInputInfo.cpp", | 69 "WebTextInputInfo.cpp", |
| 75 "WebTextRun.cpp", | 70 "WebTextRun.cpp", |
| 76 "WebViewImpl.cpp", | 71 "WebViewImpl.cpp", |
| 77 "WebViewImpl.h", | 72 "WebViewImpl.h", |
| 78 "linux/WebFontRendering.cpp", | 73 "linux/WebFontRendering.cpp", |
| 79 ] | 74 ] |
| 80 } | 75 } |
| 81 | 76 |
| 82 test("sky_unittests") { | 77 test("sky_unittests") { |
| 83 deps = [ | 78 deps = [ |
| 84 "//base", | 79 "//base", |
| 85 "//base/test:test_support", | 80 "//base/test:test_support", |
| 86 "//base:i18n", | 81 "//base:i18n", |
| 87 "//sky/engine/testing/platform", | 82 "//sky/engine/testing/platform", |
| 88 "//sky/engine/wtf:test_support", | 83 "//sky/engine/wtf:test_support", |
| 89 "//testing/gmock", | 84 "//testing/gmock", |
| 90 "//testing/gtest", | 85 "//testing/gtest", |
| 91 "//third_party/zlib", | 86 "//third_party/zlib", |
| 92 "//url", | 87 "//url", |
| 93 "//v8", | |
| 94 ":web", | 88 ":web", |
| 95 ] | 89 ] |
| 96 | 90 |
| 97 # TODO(abarth): This is a lie - this test is not embedded in an environment | 91 # TODO(abarth): This is a lie - this test is not embedded in an environment |
| 98 # that injects the system thunks, so system calls don't actually work. This | 92 # that injects the system thunks, so system calls don't actually work. This |
| 99 # just tricks the linker into thinking that an implementation of these calls | 93 # just tricks the linker into thinking that an implementation of these calls |
| 100 # will be injected at runtime so the link succeeds. | 94 # will be injected at runtime so the link succeeds. |
| 101 deps += [ "//mojo/public/platform/native:system" ] | 95 deps += [ "//mojo/public/platform/native:system" ] |
| 102 | 96 |
| 103 sources = [ | 97 sources = [ |
| 104 "tests/RunAllTests.cpp", | 98 "tests/RunAllTests.cpp", |
| 105 ] | 99 ] |
| 106 | 100 |
| 107 configs += [ "//sky/engine:config" ] | 101 configs += [ "//sky/engine:config" ] |
| 108 | 102 |
| 109 if (!is_component_build) { | 103 if (!is_component_build) { |
| 110 deps += [ "//sky/engine/core" ] | 104 deps += [ "//sky/engine/core" ] |
| 111 | 105 |
| 112 configs += [ "//sky/engine:inside_blink" ] | 106 configs += [ "//sky/engine:inside_blink" ] |
| 113 | 107 |
| 114 sources += platform_web_unittest_files | 108 sources += platform_web_unittest_files |
| 115 } | 109 } |
| 116 } | 110 } |
| OLD | NEW |