ffi

command
v3.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

iotics-identity-go/ffi

FFI wrapper for iotics-identity-go

Build

With make installed you can compile for the current platform with make compile. The script will detect the OS and ARCH and build for your system.

If you want to override the target OS (the GOOS variable), define $OS_FLAG to the desired value. For example if you want to compile for an iOS target run env OS_FLAG=ios make compile

On Windows, if you don't have make you can run the powershell script build.ps1 like so:

powershell -ExecutionPolicy Bypass -File build.ps1

Alternatively you can build your version manually using the following command, paying attention to setup the extension of the built library to the correct value for your OS (so, dll, dylib):

env GOOS=<$OS_FLAG> GOARCH=<$OS_ARCH> go build -buildmode=c-shared -o lib/lib-iotics-id-sdk.<$EXT> ./ffi_wrapper.go

Verifying goreleaser locally

# verify build (optional)
goreleaser build --snapshot --rm-dist --single-target
# verify packaging
goreleaser release --auto-snapshot --rm-dist
# verify content of the packages
tar -tvf dist/*.tar.gz

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL