Change script paths to langs directory

This commit is contained in:
Ross Savage
2024-05-21 15:38:13 +02:00
parent c6c5755973
commit 337b52d40e
19 changed files with 136 additions and 136 deletions

View File

@@ -19,7 +19,7 @@ rustup target add \
# Build the android libraries in the jniLibs directory
cargo ndk -o $JNI_DIR \
--manifest-path ../../../core/Cargo.toml \
--manifest-path ../../../../core/Cargo.toml \
-t aarch64-linux-android \
-t armv7-linux-androideabi \
-t i686-linux-android \

View File

@@ -68,7 +68,7 @@ Future<void> mainImpl(List<String> args) async {
Directory.current = buildDir;
final outputs = targets.map((target) {
return observer.mark('../../../target/$target/$profile/$libName');
return observer.mark('../../../../target/$target/$profile/$libName');
}).toList();
for (final target in targets) {
@@ -96,21 +96,21 @@ Future<void> mainImpl(List<String> args) async {
'-library $lipoOut -headers $headers '
'-output $framework');
} else {
final armIos = '../../../target/aarch64-apple-ios/$profile/$libName';
final armIos = '../../../../target/aarch64-apple-ios/$profile/$libName';
var shouldBuildFramework = !fileExists(frameworkZip) || observer.hasChanged(armIos);
if (!fileExists(iosSimLipo) ||
outputs.where((output) => output.contains('ios')).any(observer.hasChanged)) {
shouldBuildFramework = true;
await run('lipo -create -output $iosSimLipo '
'../../../target/aarch64-apple-ios-sim/$profile/$libName '
'../../../target/x86_64-apple-ios/$profile/$libName ');
'../../../../target/aarch64-apple-ios-sim/$profile/$libName '
'../../../../target/x86_64-apple-ios/$profile/$libName ');
}
if (!fileExists(macLipo) ||
outputs.where((output) => output.contains('darwin')).any(observer.hasChanged)) {
shouldBuildFramework = true;
await run('lipo -create -output $macLipo '
'../../../target/aarch64-apple-darwin/$profile/$libName '
'../../../target/x86_64-apple-darwin/$profile/$libName');
'../../../../target/aarch64-apple-darwin/$profile/$libName '
'../../../../target/x86_64-apple-darwin/$profile/$libName');
}
if (shouldBuildFramework) {
await run('xcodebuild -create-xcframework '

View File

@@ -48,7 +48,7 @@ Future<void> mainImpl(List<String> args) async {
await run('rustup target add $triple');
await run('${target.compiler} --target $triple $profileArg', args: compilerOpts);
await run('mkdir -p $flutterIdentifier');
await run('cp ../../../target/$triple/$profile/${target.libName} $flutterIdentifier/');
await run('cp ../../../../target/$triple/$profile/${target.libName} $flutterIdentifier/');
}
final hasLinux = targets.any((target) => !target.isWindows);

View File

@@ -19,7 +19,7 @@ zig_build () {
rustup target add "$TARGET"
cargo zigbuild --package breez-liquid-sdk --target "$TARGET" --profile $PROFILE
mkdir "$PLATFORM_NAME"
cp "../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
cp "../../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
}
win_build () {
@@ -30,7 +30,7 @@ win_build () {
rustup target add "$TARGET"
cargo xwin build --package breez-liquid-sdk --target "$TARGET" --profile $PROFILE
mkdir "$PLATFORM_NAME"
cp "../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
cp "../../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
}
PROFILE=frb-min