Update embedder example apps to run with the current engine tree (flutter/engine#51995)

* Update ICU data paths for the move of third_party/icu out of the buildroot
* Link with -rdynamic to enable lookup of Dart resource symbols within the app executables
* Use Material 3 text styles that are supported by the current Flutter framework
This commit is contained in:
Jason Simmons
2024-04-09 16:37:18 -07:00
committed by GitHub
parent 24bec612e1
commit 2d015148d2
7 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ if (build_embedder_examples) {
sources = [ "FlutterEmbedderGLFW.cc" ]
ldflags = [ "-rdynamic" ]
deps = [
"//flutter/shell/platform/embedder:embedder",
"//flutter/third_party/glfw",

View File

@@ -107,7 +107,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headline4,
style: Theme.of(context).textTheme.headlineMedium,
),
],
),

View File

@@ -35,4 +35,4 @@ cd -
#################################################################
# Run the Flutter Engine Embedder
#################################################################
./flutter_glfw ./myapp ../../../../third_party/icu/common/icudtl.dat
./flutter_glfw ./myapp ../../../third_party/icu/common/icudtl.dat

View File

@@ -10,6 +10,8 @@ if (build_embedder_examples) {
sources = [ "FlutterEmbedderGLFW.cc" ]
ldflags = [ "-rdynamic" ]
deps = [
"//flutter/shell/platform/embedder:embedder",
"//flutter/third_party/glfw",

View File

@@ -31,4 +31,4 @@ cd -
#################################################################
# Run the Flutter Engine Embedder
#################################################################
./flutter_glfw ./myapp ../../../../third_party/icu/common/icudtl.dat
./flutter_glfw ./myapp ../../../third_party/icu/common/icudtl.dat

View File

@@ -10,6 +10,8 @@ executable("vulkan_glfw") {
sources = [ "src/main.cc" ]
ldflags = [ "-rdynamic" ]
deps = [
"//flutter/shell/platform/embedder:embedder",
"//flutter/third_party/glfw",

View File

@@ -25,6 +25,6 @@ popd > /dev/null
#################################################################
# Run the Flutter Engine Embedder
#################################################################
./embedder_example_vulkan ./myapp ../../../../third_party/icu/common/icudtl.dat
./embedder_example_vulkan ./myapp ../../../third_party/icu/common/icudtl.dat
popd > /dev/null