[fuchsia] Fix --unopt build for Fuchsia. (flutter/engine#32502)
This commit is contained in:
@@ -132,6 +132,7 @@ template("runner_sources") {
|
||||
"//flutter/assets",
|
||||
"//flutter/common",
|
||||
"//flutter/fml",
|
||||
"//flutter/shell/platform/common/client_wrapper:client_wrapper_library_stubs",
|
||||
"//flutter/vulkan",
|
||||
]
|
||||
|
||||
@@ -507,6 +508,7 @@ if (enable_unittests) {
|
||||
":flutter_runner_sources",
|
||||
"//build/fuchsia/pkg:async-testing",
|
||||
"//build/fuchsia/pkg:sys_cpp_testing",
|
||||
"//flutter/shell/platform/common/client_wrapper:client_wrapper_library_stubs",
|
||||
"//flutter/testing",
|
||||
] + flutter_deps
|
||||
}
|
||||
@@ -525,6 +527,7 @@ if (enable_unittests) {
|
||||
# embedder API.
|
||||
flutter_deps = [
|
||||
"//flutter/lib/ui",
|
||||
"//flutter/shell/platform/common/client_wrapper:client_wrapper_library_stubs",
|
||||
"//third_party/dart/runtime:libdart_jit",
|
||||
"//third_party/dart/runtime/platform:libdart_platform_jit",
|
||||
]
|
||||
|
||||
@@ -49,6 +49,7 @@ executable("flutter-embedder-test2-bin") {
|
||||
"$fuchsia_sdk_root/pkg:zx",
|
||||
"//flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/lib/ui/base_view",
|
||||
"//flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/ui/testing/views",
|
||||
"//third_party/dart/runtime:libdart_jit",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ void PlatformView::OnKeyEvent(
|
||||
}
|
||||
|
||||
void PlatformView::ActivateIme() {
|
||||
DEBUG_CHECK(last_text_state_, LOG_TAG, "");
|
||||
DEBUG_CHECK(last_text_state_ != nullptr, LOG_TAG, "");
|
||||
|
||||
text_sync_service_->GetInputMethodEditor(
|
||||
fuchsia::ui::input::KeyboardType::TEXT, // keyboard type
|
||||
|
||||
@@ -6,6 +6,7 @@ assert(is_fuchsia)
|
||||
|
||||
import("//build/fuchsia/sdk.gni")
|
||||
import("//flutter/common/config.gni")
|
||||
import("//flutter/testing/testing.gni")
|
||||
|
||||
config("utils_config") {
|
||||
include_dirs = [ "../../.." ]
|
||||
@@ -80,6 +81,10 @@ make_utils("utils") {
|
||||
deps = [ "//third_party/dart/runtime/bin:elf_loader" ]
|
||||
}
|
||||
|
||||
test_fixtures("utils_fixtures") {
|
||||
fixtures = []
|
||||
}
|
||||
|
||||
executable("dart_utils_unittests") {
|
||||
testonly = true
|
||||
|
||||
@@ -87,13 +92,18 @@ executable("dart_utils_unittests") {
|
||||
|
||||
sources = [ "build_info_unittests.cc" ]
|
||||
|
||||
# This is needed for //third_party/googletest for linking zircon symbols.
|
||||
libs = [ "$fuchsia_sdk_path/arch/$target_cpu/sysroot/lib/libzircon.so" ]
|
||||
libs = [
|
||||
# This is needed for //third_party/googletest for linking zircon symbols.
|
||||
"$fuchsia_sdk_path/arch/$target_cpu/sysroot/lib/libzircon.so",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":utils",
|
||||
":utils_fixtures",
|
||||
"$fuchsia_sdk_root/pkg:sys_inspect_cpp",
|
||||
"//flutter/testing",
|
||||
"//third_party/dart/runtime:libdart_jit",
|
||||
"//third_party/dart/runtime/bin:dart_io_api",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user