mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Changes include: - File structure - Header guards - Include paths - Namespaces - Integration with the engine's GN build - Conversion from jsoncpp to rapidjson - Style and clang-format adjustment to match engine repository
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Publishes client wrapper files to the output directory for distribution.
|
|
# This can be used multiple times to combine various portions of a wrapper
|
|
# library into one cohesive library for clients to consume.
|
|
#
|
|
# Files that should be built by clients go into 'sources', while headers meant
|
|
# to be included by the consuming code go into 'public'.
|
|
#
|
|
# All public code is assumed to be in the 'flutter' namespace.
|
|
template("publish_client_wrapper") {
|
|
template_target_name = target_name
|
|
publish_dir_root = "$root_out_dir/cpp_client_wrapper"
|
|
namespace = "flutter"
|
|
|
|
group(template_target_name) {
|
|
deps = [
|
|
":${template_target_name}_publish_includes",
|
|
":${template_target_name}_publish_sources",
|
|
]
|
|
}
|
|
|
|
copy("${template_target_name}_publish_includes") {
|
|
visibility = [ ":$template_target_name" ]
|
|
|
|
sources = invoker.public
|
|
outputs = [
|
|
"$publish_dir_root/include/$namespace/{{source_file_part}}",
|
|
]
|
|
}
|
|
|
|
copy("${template_target_name}_publish_sources") {
|
|
visibility = [ ":$template_target_name" ]
|
|
|
|
sources = invoker.sources
|
|
outputs = [
|
|
"$publish_dir_root/{{source_file_part}}",
|
|
]
|
|
}
|
|
}
|