improve (support): prepare support for raspberry pi

This commit is contained in:
Mickael Kerjean
2020-01-20 13:42:20 +11:00
parent 2617a3f1d3
commit f3c8aed75f
7 changed files with 29 additions and 7 deletions

View File

@ -3,6 +3,13 @@ set -e
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$(dirname "$0")"/deps
echo `pwd`
curl -s https://downloads.filestash.app/upload/libresize_`uname -s`-`uname -m`.a > libresize.a
curl -s https://downloads.filestash.app/upload/libtranscode_`uname -s`-`uname -m`.a > libtranscode.a
# AMD64 dependencies
curl -s https://downloads.filestash.app/upload/libresize_`uname -s`-`uname -m`.a > libresize_linux_amd64.a &
curl -s https://downloads.filestash.app/upload/libtranscode_`uname -s`-`uname -m`.a > libtranscode_linux_amd64.a &
# ARM dependencies
curl -s https://downloads.filestash.app/upload/libresize_`uname -s`-`uname -m`.a > libresize_linux_arm.a &
curl -s https://downloads.filestash.app/upload/libtranscode_`uname -s`-`uname -m`.a > libtranscode_linux_arm.a &
wait

View File

@ -1,9 +1,9 @@
package plg_image_light
// #cgo pkg-config:glib-2.0
// #cgo CFLAGS: -I./deps/src
// #cgo LDFLAGS: -lm -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -ldl -L./deps -l:libresize.a
// #include "libresize.h"
// #cgo pkg-config:glib-2.0
// #include "glib-2.0/glib.h"
// #include "libresize.h"
import "C"
import (

View File

@ -0,0 +1,4 @@
package plg_image_light
// #cgo LDFLAGS: -lm -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -ldl -L./deps -l:libresize_linux_amd64.a
import "C"

View File

@ -0,0 +1,4 @@
package plg_image_light
// #cgo LDFLAGS: -lm -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -ldl -L./deps -l:libresize_linux_arm.a
import "C"

View File

@ -1,6 +1,5 @@
package plg_image_light
// #cgo CFLAGS: -I./deps/src
// #cgo LDFLAGS: -lm -lpthread -L./deps -l:libtranscode.a
// #include "libtranscode.h"
import "C"

View File

@ -0,0 +1,4 @@
package plg_image_light
// #cgo LDFLAGS: -lm -lpthread -L./deps -l:libtranscode_linux_amd64.a
import "C"

View File

@ -0,0 +1,4 @@
package plg_image_light
// #cgo LDFLAGS: -lm -lpthread -L./deps -l:libtranscode_linux_arm.a
import "C"