mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 11:00:52 +08:00
11 lines
409 B
Bash
Executable File
11 lines
409 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
|
export CGO_ENABLED=1
|
|
export GOOS=android
|
|
export GOARCH=amd64
|
|
export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/x86_64-unknown-linux-ohos-clang
|
|
export CGO_CFLAGS="-I/mnt/f/log-adaptor/include"
|
|
export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/x86_64"
|
|
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .
|