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:
@@ -10,6 +10,8 @@ if (build_embedder_examples) {
|
||||
|
||||
sources = [ "FlutterEmbedderGLFW.cc" ]
|
||||
|
||||
ldflags = [ "-rdynamic" ]
|
||||
|
||||
deps = [
|
||||
"//flutter/shell/platform/embedder:embedder",
|
||||
"//flutter/third_party/glfw",
|
||||
|
||||
@@ -107,7 +107,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
),
|
||||
Text(
|
||||
'$_counter',
|
||||
style: Theme.of(context).textTheme.headline4,
|
||||
style: Theme.of(context).textTheme.headlineMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,6 +10,8 @@ if (build_embedder_examples) {
|
||||
|
||||
sources = [ "FlutterEmbedderGLFW.cc" ]
|
||||
|
||||
ldflags = [ "-rdynamic" ]
|
||||
|
||||
deps = [
|
||||
"//flutter/shell/platform/embedder:embedder",
|
||||
"//flutter/third_party/glfw",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,6 +10,8 @@ executable("vulkan_glfw") {
|
||||
|
||||
sources = [ "src/main.cc" ]
|
||||
|
||||
ldflags = [ "-rdynamic" ]
|
||||
|
||||
deps = [
|
||||
"//flutter/shell/platform/embedder:embedder",
|
||||
"//flutter/third_party/glfw",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user