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
    "compositing/scene.cc",
    "compositing/scene.h",
9 10
    "compositing/scene_builder.cc",
    "compositing/scene_builder.h",
11 12
    "dart_runtime_hooks.cc",
    "dart_runtime_hooks.h",
13 14
    "dart_ui.cc",
    "dart_ui.h",
15 16
    "painting/canvas.cc",
    "painting/canvas.h",
17 18
    "painting/gradient.cc",
    "painting/gradient.h",
19 20
    "painting/image.cc",
    "painting/image.h",
21 22
    "painting/image_decoding.cc",
    "painting/image_decoding.h",
23 24 25 26 27 28 29 30
    "painting/image_filter.cc",
    "painting/image_filter.h",
    "painting/image_shader.cc",
    "painting/image_shader.h",
    "painting/mask_filter.cc",
    "painting/mask_filter.h",
    "painting/matrix.cc",
    "painting/matrix.h",
31 32
    "painting/paint.cc",
    "painting/paint.h",
33 34 35 36
    "painting/path.cc",
    "painting/path.h",
    "painting/picture.cc",
    "painting/picture.h",
37 38
    "painting/picture_recorder.cc",
    "painting/picture_recorder.h",
39 40
    "painting/resource_context.cc",
    "painting/resource_context.h",
41 42 43 44
    "painting/rrect.cc",
    "painting/rrect.h",
    "painting/shader.cc",
    "painting/shader.h",
45
    "painting/utils.h",
46 47 48 49
    "semantics/semantics_node.cc",
    "semantics/semantics_node.h",
    "semantics/semantics_update.cc",
    "semantics/semantics_update.h",
50 51
    "semantics/semantics_update_builder.cc",
    "semantics/semantics_update_builder.h",
A
Adam Barth 已提交
52 53
    "text/paragraph.cc",
    "text/paragraph.h",
54 55
    "text/paragraph_builder.cc",
    "text/paragraph_builder.h",
A
Adam Barth 已提交
56 57
    "text/text_box.cc",
    "text/text_box.h",
58 59
    "ui_dart_state.cc",
    "ui_dart_state.h",
60 61
    "window/platform_message.cc",
    "window/platform_message.h",
62 63 64 65
    "window/platform_message_response.cc",
    "window/platform_message_response.h",
    "window/platform_message_response_dart.cc",
    "window/platform_message_response_dart.h",
66 67
    "window/pointer_data.cc",
    "window/pointer_data.h",
68 69
    "window/pointer_data_packet.cc",
    "window/pointer_data_packet.h",
70
    "window/viewport_metrics.h",
71 72
    "window/window.cc",
    "window/window.h",
73 74 75
  ]

  deps = [
76
    "//dart/runtime/bin:embedded_dart_io",
77
    "//flutter/common",
78 79
    "//flutter/flow",
    "//flutter/glue",
A
Adam Barth 已提交
80
    "//flutter/sky/engine",
81
    "//lib/tonic",
82 83
    "//third_party/skia",
    "//third_party/skia:gpu",
84
  ]
85 86 87 88 89 90 91

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