mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
95 lines
2.7 KiB
Plaintext
95 lines
2.7 KiB
Plaintext
# 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)
|
|
|
|
import("//build/vulkan/config.gni")
|
|
|
|
template("flutter_content_handler") {
|
|
invoker_output_name = invoker.output_name
|
|
extra_deps = invoker.extra_deps
|
|
|
|
executable(target_name) {
|
|
output_name = invoker_output_name
|
|
|
|
defines = []
|
|
|
|
libs = []
|
|
|
|
sources = [
|
|
"app.cc",
|
|
"app.h",
|
|
"application_controller_impl.cc",
|
|
"application_controller_impl.h",
|
|
"main.cc",
|
|
"rasterizer.cc",
|
|
"rasterizer.h",
|
|
"runtime_holder.cc",
|
|
"runtime_holder.h",
|
|
"service_protocol_hooks.cc",
|
|
"service_protocol_hooks.h",
|
|
"session_connection.cc",
|
|
"session_connection.h",
|
|
"vulkan_rasterizer.cc",
|
|
"vulkan_rasterizer.h",
|
|
"vulkan_surface.cc",
|
|
"vulkan_surface.h",
|
|
"vulkan_surface_pool.cc",
|
|
"vulkan_surface_pool.h",
|
|
"vulkan_surface_producer.cc",
|
|
"vulkan_surface_producer.h",
|
|
]
|
|
|
|
deps = [
|
|
"//application/lib/app",
|
|
"//application/lib/svc",
|
|
"//apps/icu_data/lib",
|
|
"//apps/mozart/lib/flutter/sdk_ext",
|
|
"//apps/mozart/lib/scene:client",
|
|
"//apps/mozart/services/input",
|
|
"//apps/mozart/services/views",
|
|
"//apps/tracing/lib/trace:provider",
|
|
"//dart/runtime/bin:libdart_builtin",
|
|
"//dart/runtime/platform:libdart_platform",
|
|
"//flutter/assets",
|
|
"//flutter/common",
|
|
"//flutter/flow",
|
|
"//flutter/glue",
|
|
"//flutter/lib/ui",
|
|
"//flutter/runtime",
|
|
"//flutter/sky/engine/platform",
|
|
"//flutter/vulkan",
|
|
"//lib/fidl/dart/sdk_ext",
|
|
"//lib/ftl",
|
|
"//lib/mtl",
|
|
"//lib/tonic",
|
|
"//lib/zip",
|
|
"//magma:vulkan",
|
|
"//third_party/rapidjson",
|
|
"//third_party/skia",
|
|
] + extra_deps
|
|
|
|
# The flags below are needed so that Dart's CPU profiler can walk the
|
|
# C++ stack.
|
|
cflags = [
|
|
"-mno-omit-leaf-frame-pointer",
|
|
"-fno-omit-frame-pointer",
|
|
]
|
|
|
|
# This flag is needed so that the call to dladdr() in Dart's native symbol
|
|
# resolver can report good symbol information for the CPU profiler.
|
|
ldflags = [ "-rdynamic" ]
|
|
}
|
|
}
|
|
|
|
flutter_content_handler("content_handler") {
|
|
output_name = "flutter_runner"
|
|
extra_deps = [ "//dart/runtime:libdart_jit" ]
|
|
}
|
|
|
|
flutter_content_handler("aot_content_handler") {
|
|
output_name = "flutter_aot_runner"
|
|
extra_deps = [ "//dart/runtime:libdart_precompiled_runtime" ]
|
|
}
|