flutter/packages/flutter_tools/lib/src/native_assets.dart
Gabriel Terwesten f0860d83f5
[native assets] Rewrite install names for relocated native libraries (#153054)
Native libraries that are contributed by native asset builders can depend on each other. For macOS and iOS, native libraries are repackaged into Frameworks, which renders install names that have been written into dependent libraries invalid. 

With this change, a mapping between old and new install names is maintained, and install names in dependent libraries are rewritten as a final step.

Related to https://github.com/dart-lang/native/issues/190
2024-08-29 14:51:23 +00:00

21 lines
824 B
Dart

// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'build_info.dart';
import 'project.dart';
/// An interface to enable overriding native assets build logic in other
/// build systems.
abstract class TestCompilerNativeAssetsBuilder {
Future<Uri?> build(BuildInfo buildInfo);
/// Returns the Windows native assets build directory.
///
/// By prepending the PATH environment variable for the flutter tester with the
/// return value of this function, DLLs in the native assets build directory can
/// be found by the dynamic linker. This is necessary to support native asset
/// libraries that dynamically link to other libraries.
String windowsBuildDirectory(FlutterProject project);
}