2022-06-07 18:38:24 +00:00
|
|
|
{ callPackage, meta, source, goBuildLdFlags }:
|
2020-04-23 18:19:12 +00:00
|
|
|
|
|
|
|
{
|
2023-08-17 11:51:37 +00:00
|
|
|
android = {abis ? [ "armeabi-v7a" "arm64-v8a" "x86" ]}: callPackage ./build.nix {
|
2020-04-23 18:19:12 +00:00
|
|
|
platform = "android";
|
2022-06-07 18:38:24 +00:00
|
|
|
platformVersion = "23";
|
2023-08-17 11:51:37 +00:00
|
|
|
# Hide different arch naming in gomobile from Android builds.
|
|
|
|
targets = let
|
|
|
|
abiMap = {
|
|
|
|
"armeabi-v7a" = "android/arm";
|
|
|
|
"arm64-v8a" = "android/arm64";
|
|
|
|
"x86" = "android/386";
|
|
|
|
"x86_64" = "android/amd64";
|
|
|
|
};
|
|
|
|
in map (arch: abiMap."${arch}") abis;
|
2020-04-23 18:19:12 +00:00
|
|
|
outputFileName = "status-go-${source.shortRev}.aar";
|
2022-06-07 18:38:24 +00:00
|
|
|
inherit meta source goBuildLdFlags;
|
2019-11-29 10:20:08 +00:00
|
|
|
};
|
2019-05-02 18:13:16 +00:00
|
|
|
|
2023-08-29 13:18:14 +00:00
|
|
|
ios = {targets ? [ "ios/arm64" "iossimulator/amd64"]}: callPackage ./build.nix {
|
2020-04-23 18:19:12 +00:00
|
|
|
platform = "ios";
|
2022-06-07 18:38:24 +00:00
|
|
|
platformVersion = "8.0";
|
2022-05-10 16:09:29 +00:00
|
|
|
outputFileName = "Statusgo.xcframework";
|
2023-08-29 13:18:14 +00:00
|
|
|
inherit meta source goBuildLdFlags targets;
|
2020-04-23 18:19:12 +00:00
|
|
|
};
|
|
|
|
}
|