2021-11-17 16:03:47 +08:00
|
|
|
//go:build !build_local && cgo
|
|
|
|
// +build !build_local,cgo
|
|
|
|
|
|
|
|
package script
|
|
|
|
|
|
|
|
/*
|
|
|
|
#cgo linux,amd64 pkg-config: python3-embed
|
|
|
|
|
2021-11-21 15:09:22 +08:00
|
|
|
#cgo darwin,amd64 CFLAGS: -I/build/python/python-3.10.0-darwin-amd64/include/python3.10
|
|
|
|
#cgo darwin,arm64 CFLAGS: -I/build/python/python-3.10.0-darwin-arm64/include/python3.10
|
|
|
|
#cgo windows,amd64 CFLAGS: -I/build/python/python-3.10.0-windows-amd64/include -DMS_WIN64
|
|
|
|
#cgo windows,386 CFLAGS: -I/build/python/python-3.10.0-windows-386/include
|
|
|
|
//#cgo linux,amd64 CFLAGS: -I/home/runner/work/clash/clash/bin/python/python-3.10.0-linux-amd64/include/python3.9
|
|
|
|
//#cgo linux,arm64 CFLAGS: -I/build/python/python-3.10.0-linux-arm64/include/python3.9
|
|
|
|
//#cgo linux,386 CFLAGS: -I/build/python/python-3.10.0-linux-386/include/python3.9
|
2021-11-17 16:03:47 +08:00
|
|
|
|
2021-11-21 15:09:22 +08:00
|
|
|
#cgo darwin,amd64 LDFLAGS: -L/build/python/python-3.10.0-darwin-amd64/lib -lpython3.10 -ldl -framework CoreFoundation
|
|
|
|
#cgo darwin,arm64 LDFLAGS: -L/build/python/python-3.10.0-darwin-arm64/lib -lpython3.10 -ldl -framework CoreFoundation
|
|
|
|
#cgo windows,amd64 LDFLAGS: -L/build/python/python-3.10.0-windows-amd64/lib -lpython310 -lpthread -lm
|
|
|
|
#cgo windows,386 LDFLAGS: -L/build/python/python-3.10.0-windows-386/lib -lpython310 -lpthread -lm
|
|
|
|
//#cgo linux,amd64 LDFLAGS: -L/home/runner/work/clash/clash/bin/python/python-3.10.0-linux-amd64/lib -lpython3.9 -lpthread -ldl -lutil -lm
|
|
|
|
//#cgo linux,arm64 LDFLAGS: -L/build/python/python-3.10.0-linux-arm64/lib -lpython3.9 -lpthread -ldl -lutil -lm
|
|
|
|
//#cgo linux,386 LDFLAGS: -L/build/python/python-3.10.0-linux-386/lib -lpython3.9 -lpthread -ldl -lutil -lm
|
2021-11-17 16:03:47 +08:00
|
|
|
*/
|
|
|
|
import "C"
|