BUILD.gn 2.1 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",
A
Adam Barth 已提交
47 48 49 50 51 52
    "text/paragraph_builder.cc",
    "text/paragraph_builder.h",
    "text/paragraph.cc",
    "text/paragraph.h",
    "text/text_box.cc",
    "text/text_box.h",
53 54 55 56
    "ui_dart_state.cc",
    "ui_dart_state.h",
    "window/window.cc",
    "window/window.h",
57 58 59
  ]

  deps = [
60
    "//dart/runtime/bin:embedded_dart_io",
61
    "//flutter/common",
62 63
    "//flutter/flow",
    "//flutter/glue",
64 65
    "//flutter/services/engine:interfaces",
    "//flutter/services/pointer:interfaces",
66
    "//flutter/skia",
A
Adam Barth 已提交
67
    "//flutter/sky/engine",
68
    "//lib/tonic",
69
    "//lib/tonic/mojo",
70 71 72 73
    "//mojo/public/cpp/application",
    "//mojo/public/cpp/bindings",
    "//mojo/public/interfaces/application",
    "//mojo/services/asset_bundle/interfaces",
74
  ]
75 76 77 78 79 80 81

  if (is_android) {
    deps += [
      # TODO(abarth): In principle, these libraries should be fully independent.
      "//flutter/lib/jni",
    ]
  }
82
}