BUILD.gn 1.6 KB
Newer Older
M
Michael Goderbauer 已提交
1
# Copyright 2013 The Flutter Authors. All rights reserved.
2 3 4
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

5
source_set("testing_lib") {
6 7
  testonly = true

8
  sources = [
9
    "$flutter_root/testing/assertions.h",
10 11
    "$flutter_root/testing/testing.cc",
    "$flutter_root/testing/testing.h",
12 13 14
  ]

  public_deps = [
15
    "$flutter_root/fml",
16
    "//third_party/googletest:gtest",
17
  ]
18
  public_configs = [ "$flutter_root:config" ]
19
}
20

21 22 23 24 25 26 27 28 29 30 31 32 33 34
source_set("testing") {
  testonly = true

  sources = [
    "$flutter_root/testing/run_all_unittests.cc",
    "$flutter_root/testing/thread_test.cc",
    "$flutter_root/testing/thread_test.h",
  ]

  public_deps = [
    ":testing_lib",
  ]
}

35 36 37 38 39 40 41 42 43 44 45 46 47 48
source_set("dart") {
  testonly = true

  sources = [
    "$flutter_root/testing/test_dart_native_resolver.cc",
    "$flutter_root/testing/test_dart_native_resolver.h",
  ]

  public_deps = [
    ":testing",
    "$flutter_root/runtime:libdart",
    "//third_party/tonic",
  ]
}
49

50 51 52 53 54 55 56 57 58 59 60 61 62
source_set("skia") {
  testonly = true

  sources = [
    "$flutter_root/testing/assertions_skia.h",
  ]

  public_deps = [
    ":testing_lib",
    "//third_party/skia",
  ]
}

63 64 65 66 67 68 69 70 71 72 73 74
if (current_toolchain == host_toolchain) {
  source_set("opengl") {
    testonly = true

    configs += [ "//third_party/swiftshader_flutter:swiftshader_config" ]

    sources = [
      "$flutter_root/testing/test_gl_surface.cc",
      "$flutter_root/testing/test_gl_surface.h",
    ]

    deps = [
75
      ":skia",
76 77
      "$flutter_root/fml",
      "//third_party/swiftshader_flutter:swiftshader",
78 79 80
    ]
  }
}