|
2 | 2 | # Use of this source code is governed by a BSD-style license that can be |
3 | 3 | # found in the LICENSE file. |
4 | 4 |
|
| 5 | +import("//flutter/build/zip_bundle.gni") |
5 | 6 | import("//flutter/shell/platform/common/client_wrapper/publish.gni") |
6 | 7 | import("//flutter/testing/testing.gni") |
7 | 8 |
|
@@ -97,3 +98,57 @@ executable("client_wrapper_windows_unittests") { |
97 | 98 | "//third_party/dart/runtime:libdart_jit", |
98 | 99 | ] |
99 | 100 | } |
| 101 | + |
| 102 | +client_wrapper_file_archive_list = [ |
| 103 | + "core_implementations.cc", |
| 104 | + "engine_method_result.cc", |
| 105 | + "plugin_registrar.cc", |
| 106 | + "README", |
| 107 | + "standard_codec.cc", |
| 108 | +] |
| 109 | + |
| 110 | +win_client_wrapper_file_archive_list = [ |
| 111 | + "flutter_engine.cc", |
| 112 | + "flutter_view_controller.cc", |
| 113 | +] |
| 114 | + |
| 115 | +zip_bundle("client_wrapper_archive") { |
| 116 | + output = "$full_platform_name/flutter-cpp-client-wrapper.zip" |
| 117 | + deps = [ |
| 118 | + ":client_wrapper_windows", |
| 119 | + ":publish_wrapper_windows", |
| 120 | + "//flutter/shell/platform/common/client_wrapper:client_wrapper", |
| 121 | + ] |
| 122 | + tmp_files = [] |
| 123 | + foreach(source, client_wrapper_file_archive_list) { |
| 124 | + tmp_files += [ |
| 125 | + { |
| 126 | + source = "//flutter/shell/platform/common/client_wrapper/$source" |
| 127 | + destination = "cpp_client_wrapper/$source" |
| 128 | + }, |
| 129 | + ] |
| 130 | + } |
| 131 | + |
| 132 | + # Windows specific source code files |
| 133 | + foreach(source, win_client_wrapper_file_archive_list) { |
| 134 | + tmp_files += [ |
| 135 | + { |
| 136 | + source = "//flutter/shell/platform/windows/client_wrapper/$source" |
| 137 | + destination = "cpp_client_wrapper/$source" |
| 138 | + }, |
| 139 | + ] |
| 140 | + } |
| 141 | + headers = core_cpp_client_wrapper_includes + |
| 142 | + core_cpp_client_wrapper_internal_headers |
| 143 | + foreach(header, headers) { |
| 144 | + rebased_path = |
| 145 | + rebase_path(header, "//flutter/shell/platform/common/client_wrapper") |
| 146 | + tmp_files += [ |
| 147 | + { |
| 148 | + source = header |
| 149 | + destination = "cpp_client_wrapper/$rebased_path" |
| 150 | + }, |
| 151 | + ] |
| 152 | + } |
| 153 | + files = tmp_files |
| 154 | +} |
0 commit comments