pass FLUTTER_TARGET_PLATFORM flag to cmake. (#150)

* pass FLUTTER_TARGET_PLATFORM flag to cmake.

* chore: update AUTHORS.

* Update elinux_build_target.dart
This commit is contained in:
CloudWebRTC
2022-11-15 11:24:32 +08:00
committed by GitHub
parent 30df9ed71e
commit 8d3e9fb098
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -8,3 +8,4 @@ Sony Group Corporation
Michael Lamers (info@devmil.de)
Andrea Daoud (andreadaoud6@gmail.com)
Taha Firoz (mtahafiroz@gmail.com)
Weiwei Duan (duanweiwei1982@gmail.com)
+1
View File
@@ -365,6 +365,7 @@ class NativeBundle {
'cmake',
'-DCMAKE_BUILD_TYPE=$cmakeBuildType',
'-DFLUTTER_TARGET_BACKEND_TYPE=${buildInfo.targetBackendType}',
'-DFLUTTER_TARGET_PLATFORM=elinux-${buildInfo.targetArch}',
if (targetSysroot != '/') '-DCMAKE_SYSROOT=$targetSysroot',
if (buildInfo.targetArch != hostArch)
'-DCMAKE_SYSTEM_PROCESSOR=$targetArch',