Skip to content

Commit c3707a8

Browse files
committed
Removed the need of build scripts
1 parent 090b5f3 commit c3707a8

File tree

3 files changed

+10
-185
lines changed

3 files changed

+10
-185
lines changed

build.cmd

Lines changed: 0 additions & 102 deletions
This file was deleted.

build.sh

Lines changed: 0 additions & 81 deletions
This file was deleted.

squish.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ The included patch file "libsquish-1.15-c_wrapper.patch" adds a simple C wrapper
99
package squish
1010

1111
/*
12-
// For release: Use CGO_LDFLAGS environment variable to define -Llibdir and -llibname parameters
13-
// Example: CGO_LDFLAGS=-L${SRCDIR} -lsquish -lgomp -lstdc++
12+
// CGO linker flags are defined for selected platforms windows/linux/freebsd/darwin and architectures 386/amd64.
13+
// Set CGO_LDFLAGS environment variable manually for undefined platforms and architectures or non-standard configurations.
14+
#cgo windows,386 LDFLAGS: -Llibs/windows/386 -lsquish -lgomp -lm -lstdc++
15+
#cgo windows,amd64 LDFLAGS: -Llibs/windows/amd64 -lsquish -lgomp -lm -lstdc++
16+
#cgo linux,386 LDFLAGS: -Llibs/linux/386 -lsquish -lgomp -lm -lstdc++
17+
#cgo linux,amd64 LDFLAGS: -Llibs/linux/amd64 -lsquish -lgomp -lm -lstdc++
18+
#cgo freebsd,386 LDFLAGS: -Llibs/freebsd/386 -lsquish -lgomp -lm -lstdc++
19+
#cgo freebsd,amd64 LDFLAGS: -Llibs/freebsd/amd64 -lsquish -lgomp -lm -lstdc++
20+
#cgo darwin,386 LDFLAGS: -Llibs/darwin/386 -lsquish -lm -lstdc++
21+
#cgo darwin,amd64 LDFLAGS: -Llibs/darwin/amd64 -lsquish -lm -lstdc++
1422
#include "csquish.h"
1523
*/
1624
import "C"

0 commit comments

Comments
 (0)