BUILD.gn 2.7 KB
Newer Older
1 2 3 4
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

A
Adam Barth 已提交
5
source_set("flow") {
6
  sources = [
7 8
    "compositor_context.cc",
    "compositor_context.h",
9 10
    "debug_print.cc",
    "debug_print.h",
11 12
    "instrumentation.cc",
    "instrumentation.h",
13 14
    "layers/backdrop_filter_layer.cc",
    "layers/backdrop_filter_layer.h",
A
Adam Barth 已提交
15 16 17 18 19 20 21 22 23 24
    "layers/clip_path_layer.cc",
    "layers/clip_path_layer.h",
    "layers/clip_rect_layer.cc",
    "layers/clip_rect_layer.h",
    "layers/clip_rrect_layer.cc",
    "layers/clip_rrect_layer.h",
    "layers/color_filter_layer.cc",
    "layers/color_filter_layer.h",
    "layers/container_layer.cc",
    "layers/container_layer.h",
25 26
    "layers/default_layer_builder.cc",
    "layers/default_layer_builder.h",
A
Adam Barth 已提交
27 28
    "layers/layer.cc",
    "layers/layer.h",
29 30
    "layers/layer_builder.cc",
    "layers/layer_builder.h",
A
Adam Barth 已提交
31 32 33 34 35 36
    "layers/layer_tree.cc",
    "layers/layer_tree.h",
    "layers/opacity_layer.cc",
    "layers/opacity_layer.h",
    "layers/performance_overlay_layer.cc",
    "layers/performance_overlay_layer.h",
37 38
    "layers/physical_shape_layer.cc",
    "layers/physical_shape_layer.h",
A
Adam Barth 已提交
39 40 41 42
    "layers/picture_layer.cc",
    "layers/picture_layer.h",
    "layers/shader_mask_layer.cc",
    "layers/shader_mask_layer.h",
43 44
    "layers/texture_layer.cc",
    "layers/texture_layer.h",
A
Adam Barth 已提交
45 46
    "layers/transform_layer.cc",
    "layers/transform_layer.h",
47 48
    "matrix_decomposition.cc",
    "matrix_decomposition.h",
49 50
    "paint_utils.cc",
    "paint_utils.h",
51
    "process_info.h",
52 53
    "raster_cache.cc",
    "raster_cache.h",
54 55
    "raster_cache_key.cc",
    "raster_cache_key.h",
56 57
    "texture.cc",
    "texture.h",
58 59
  ]

A
Adam Barth 已提交
60
  public_deps = [
61
    "//garnet/public/lib/fxl",
A
Adam Barth 已提交
62 63
  ]

64 65 66
  public_configs = [
    "$flutter_root:config",
  ]
67

68
  deps = [
69 70 71
    "$flutter_root/common",
    "$flutter_root/glue",
    "$flutter_root/synchronization",
72 73
    "//third_party/skia",
    "//third_party/skia:gpu",
74
  ]
75 76

  if (is_fuchsia) {
77
    sources += [
78 79
      "export_node.cc",
      "export_node.h",
J
Jeff Brown 已提交
80 81
      "layers/child_scene_layer.cc",
      "layers/child_scene_layer.h",
82 83
      "scene_update_context.cc",
      "scene_update_context.h",
84
    ]
85

86
    public_deps += [
87 88
      "//garnet/public/lib/ui/scenic:client",
      "//garnet/public/lib/ui/scenic/fidl",
89
      "//topaz/public/dart-pkg/zircon",
90 91
    ]

92
    public_deps += [ "//zircon/public/lib/zx" ]
93
  }
94
}
95 96 97 98 99 100 101 102 103 104 105

executable("flow_unittests") {
  testonly = true

  sources = [
    "matrix_decomposition_unittests.cc",
    "raster_cache_unittests.cc",
  ]

  deps = [
    ":flow",
106
    "//third_party/dart/runtime:libdart_jit",  # for tracing
107
    "$flutter_root/testing",
108 109 110
    "//third_party/skia",
  ]
}