Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit eaf73cd

Browse files
Update embedder example apps to run with the current engine tree (#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
1 parent 8dd3ba8 commit eaf73cd

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

examples/glfw/BUILD.gn

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ if (build_embedder_examples) {
1010

1111
sources = [ "FlutterEmbedderGLFW.cc" ]
1212

13+
ldflags = [ "-rdynamic" ]
14+
1315
deps = [
1416
"//flutter/shell/platform/embedder:embedder",
1517
"//flutter/third_party/glfw",

examples/glfw/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class _MyHomePageState extends State<MyHomePage> {
107107
),
108108
Text(
109109
'$_counter',
110-
style: Theme.of(context).textTheme.headline4,
110+
style: Theme.of(context).textTheme.headlineMedium,
111111
),
112112
],
113113
),

examples/glfw/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ cd -
3535
#################################################################
3636
# Run the Flutter Engine Embedder
3737
#################################################################
38-
./flutter_glfw ./myapp ../../../../third_party/icu/common/icudtl.dat
38+
./flutter_glfw ./myapp ../../../third_party/icu/common/icudtl.dat

examples/glfw_drm/BUILD.gn

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ if (build_embedder_examples) {
1010

1111
sources = [ "FlutterEmbedderGLFW.cc" ]
1212

13+
ldflags = [ "-rdynamic" ]
14+
1315
deps = [
1416
"//flutter/shell/platform/embedder:embedder",
1517
"//flutter/third_party/glfw",

examples/glfw_drm/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ cd -
3131
#################################################################
3232
# Run the Flutter Engine Embedder
3333
#################################################################
34-
./flutter_glfw ./myapp ../../../../third_party/icu/common/icudtl.dat
34+
./flutter_glfw ./myapp ../../../third_party/icu/common/icudtl.dat

examples/vulkan_glfw/BUILD.gn

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ executable("vulkan_glfw") {
1010

1111
sources = [ "src/main.cc" ]
1212

13+
ldflags = [ "-rdynamic" ]
14+
1315
deps = [
1416
"//flutter/shell/platform/embedder:embedder",
1517
"//flutter/third_party/glfw",

examples/vulkan_glfw/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ popd > /dev/null
2525
#################################################################
2626
# Run the Flutter Engine Embedder
2727
#################################################################
28-
./embedder_example_vulkan ./myapp ../../../../third_party/icu/common/icudtl.dat
28+
./embedder_example_vulkan ./myapp ../../../third_party/icu/common/icudtl.dat
2929

3030
popd > /dev/null

0 commit comments

Comments
 (0)