mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-18 06:24:21 +01:00
Change script paths to langs directory
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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 '
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user