BUILD.gn 2.5 KB
Newer Older
1 2 3 4 5 6
# Copyright 2016 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.

source_set("ui") {
  sources = [
7 8 9 10
    "compositing/scene_builder.cc",
    "compositing/scene_builder.h",
    "compositing/scene.cc",
    "compositing/scene.h",
11 12
    "dart_runtime_hooks.cc",
    "dart_runtime_hooks.h",
13 14 15 16
    "dart_ui.cc",
    "dart_ui.h",
    "mojo_services.cc",
    "mojo_services.h",
17 18
    "painting/canvas.cc",
    "painting/canvas.h",
19 20
    "painting/gradient.cc",
    "painting/gradient.h",
21 22
    "painting/image_decoding.cc",
    "painting/image_decoding.h",
23 24 25 26
    "painting/image_filter.cc",
    "painting/image_filter.h",
    "painting/image_shader.cc",
    "painting/image_shader.h",
27 28
    "painting/image.cc",
    "painting/image.h",
29 30 31 32
    "painting/mask_filter.cc",
    "painting/mask_filter.h",
    "painting/matrix.cc",
    "painting/matrix.h",
33 34
    "painting/paint.cc",
    "painting/paint.h",
35 36
    "painting/path.cc",
    "painting/path.h",
37 38
    "painting/picture_recorder.cc",
    "painting/picture_recorder.h",
39 40
    "painting/picture.cc",
    "painting/picture.h",
41 42
    "painting/resource_context.cc",
    "painting/resource_context.h",
43 44 45 46
    "painting/rrect.cc",
    "painting/rrect.h",
    "painting/shader.cc",
    "painting/shader.h",
47 48 49 50
    "ui_dart_state.cc",
    "ui_dart_state.h",
    "window/window.cc",
    "window/window.h",
51 52 53
  ]

  deps = [
54
    "//dart/runtime/bin:embedded_dart_io",
55
    "//flutter/common",
56 57
    "//flutter/flow",
    "//flutter/glue",
58 59
    "//flutter/services/engine:interfaces",
    "//flutter/services/pointer:interfaces",
60
    "//flutter/skia",
61
    "//lib/tonic",
62
    "//lib/tonic/mojo",
63 64 65 66
    "//mojo/public/cpp/application",
    "//mojo/public/cpp/bindings",
    "//mojo/public/interfaces/application",
    "//mojo/services/asset_bundle/interfaces",
67
  ]
68

69 70 71 72 73 74 75
  if (is_fuchsia) {
    sources += [
      "text/paragraph_builder_stub.cc",
      "text/paragraph_builder_stub.h",
      "text/paragraph_stub.cc",
      "text/paragraph_stub.h",
    ]
A
Adam Barth 已提交
76 77 78 79

    deps += [
      "//flutter/sky/engine/wtf",
    ]
80
  } else {
81 82 83 84 85 86 87 88 89 90 91 92 93 94
    sources += [
      "text/paragraph_builder.cc",
      "text/paragraph_builder.h",
      "text/paragraph.cc",
      "text/paragraph.h",
      "text/text_box.cc",
      "text/text_box.h",
    ]

    deps += [
      "//flutter/sky/engine",
    ]
  }

95 96 97 98 99 100
  if (is_android) {
    deps += [
      # TODO(abarth): In principle, these libraries should be fully independent.
      "//flutter/lib/jni",
    ]
  }
101
}