| # 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. |
| |
| assert(is_fuchsia) |
| |
| declare_args() { |
| flutter_enable_vulkan = false |
| } |
| |
| executable("content_handler") { |
| output_name = "flutter_runner" |
| |
| defines = [] |
| |
| libs = [] |
| |
| sources = [ |
| "app.cc", |
| "app.h", |
| "application_controller_impl.cc", |
| "application_controller_impl.h", |
| "content_handler_thread.cc", |
| "content_handler_thread.h", |
| "main.cc", |
| "rasterizer.cc", |
| "rasterizer.h", |
| "runtime_holder.cc", |
| "runtime_holder.h", |
| "software_rasterizer.cc", |
| "software_rasterizer.h", |
| ] |
| |
| deps = [ |
| "//application/lib/app", |
| "//apps/mozart/lib/skia:vmo", |
| "//apps/mozart/services/buffers", |
| "//apps/mozart/services/buffers/cpp", |
| "//apps/mozart/services/composition", |
| "//apps/mozart/services/input", |
| "//apps/mozart/services/views", |
| "//apps/tracing/lib/trace:provider", |
| "//dart/runtime:libdart", |
| |
| # TODO(abarth): We shouldn't need to depend on libdart_builtin but we fail |
| # to link otherwise. |
| "//dart/runtime/bin:libdart_builtin", |
| "//dart/runtime/vm:libdart_platform", |
| "//flutter/assets", |
| "//flutter/common", |
| "//flutter/flow", |
| "//flutter/glue", |
| "//flutter/lib/ui", |
| "//flutter/runtime", |
| "//flutter/sky/engine/platform", |
| "//lib/fidl/dart/sdk_ext", |
| "//lib/ftl", |
| "//lib/mtl", |
| "//lib/tonic/mx", |
| "//lib/zip", |
| "//third_party/rapidjson", |
| "//third_party/skia", |
| ] |
| |
| if (flutter_enable_vulkan) { |
| defines += [ "FLUTTER_ENABLE_VULKAN" ] |
| |
| libs += [ "hid" ] |
| |
| sources += [ |
| "direct_input.cc", |
| "direct_input.h", |
| "vulkan_rasterizer.cc", |
| "vulkan_rasterizer.h", |
| ] |
| |
| deps += [ |
| "//flutter/vulkan", |
| "//magma:vulkan", |
| ] |
| } |
| } |