forked from firka/flutter
Remove use of BundleUtilities in Linux build (#59080)
* Explicitly install the Flutter library
* Publish ${FLUTTER_LIBRARY} to parent scope
* Bundle plugin libraries
* Bundle <plugin_name>_bundled_libraries too
* BUNDLED_LIBRARIES -> PLUGIN_BUNDLED_LIBRARIES
* Update Linux plugin test
* Address review comments
This commit is contained in:
@@ -800,9 +800,13 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
||||
{{/plugins}}
|
||||
)
|
||||
|
||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||
|
||||
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||
add_subdirectory({{pluginsDir}}/${plugin}/linux plugins/${plugin})
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
||||
endforeach(plugin)
|
||||
''';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user