#include <flutter_project_bundle.h>
Definition at line 21 of file flutter_project_bundle.h.
◆ FlutterProjectBundle()
Definition at line 15 of file flutter_project_bundle.cc.
21 }
22
25 }
26
28 dart_entrypoint_arguments_.push_back(
30 }
31
32
33 if (assets_path_.is_relative() || icu_path_.is_relative() ||
34 (!aot_library_path_.empty() && aot_library_path_.is_relative())) {
36 if (executable_location.empty()) {
38 << "Unable to find executable location to resolve resource paths.";
41 } else {
44 if (!aot_library_path_.empty()) {
45 aot_library_path_ =
47 }
48 }
49 }
50}
#define FML_LOG(severity)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
std::filesystem::path GetExecutableDirectory()
const char * dart_entrypoint
const char * aot_library_path
const char * icu_data_path
const char ** dart_entrypoint_argv
◆ ~FlutterProjectBundle()
flutter::FlutterProjectBundle::~FlutterProjectBundle |
( |
| ) |
|
◆ assets_path()
const std::filesystem::path & flutter::FlutterProjectBundle::assets_path |
( |
| ) |
|
|
inline |
◆ dart_entrypoint()
const std::string & flutter::FlutterProjectBundle::dart_entrypoint |
( |
| ) |
const |
|
inline |
◆ dart_entrypoint_arguments()
const std::vector< std::string > & flutter::FlutterProjectBundle::dart_entrypoint_arguments |
( |
| ) |
const |
|
inline |
◆ GetSwitches()
const std::vector< std::string > flutter::FlutterProjectBundle::GetSwitches |
( |
| ) |
|
Definition at line 90 of file flutter_project_bundle.cc.
90 {
91 if (engine_switches_.size() == 0) {
93 }
94 std::vector<std::string> switches;
95 switches.insert(switches.end(), engine_switches_.begin(),
96 engine_switches_.end());
97
99 switches.insert(switches.end(), env_switches.begin(), env_switches.end());
100
101 return switches;
102}
std::vector< std::string > GetSwitchesFromEnvironment()
◆ HasValidPaths()
bool flutter::FlutterProjectBundle::HasValidPaths |
( |
| ) |
|
◆ icu_path()
const std::filesystem::path & flutter::FlutterProjectBundle::icu_path |
( |
| ) |
|
|
inline |
◆ LoadAotData()
Definition at line 58 of file flutter_project_bundle.cc.
59 {
60 if (aot_library_path_.empty()) {
62 << "Attempted to load AOT data, but no aot_library_path was provided.";
64 }
65 if (!std::filesystem::exists(aot_library_path_)) {
67 << aot_library_path_.u8string() << "; no such file.";
69 }
70 std::string path_string = aot_library_path_.u8string();
73 source.elf_path = path_string.c_str();
77 FML_LOG(
ERROR) <<
"Failed to load AOT data from: " << path_string;
79 }
81}
@ kFlutterEngineAOTDataSourceTypeElfPath
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
std::unique_ptr< _FlutterEngineAOTData, FlutterEngineCollectAOTDataFnPtr > UniqueAotDataPtr
FlutterEngineCreateAOTDataFnPtr CreateAOTData
FlutterEngineCollectAOTDataFnPtr CollectAOTData
◆ SetSwitches()
void flutter::FlutterProjectBundle::SetSwitches |
( |
const std::vector< std::string > & |
switches | ) |
|
The documentation for this class was generated from the following files: