mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-27 12:52:20 +08:00

By switching to Makefile, parallel builds and single build are now possible. Examples: Parallel Build: make -j Single Build: make opus-darwin-x64 Also, since Makefile has a dependency change detection feature, the build time is reduced significantly when there are only a few things that change, Makefile will not rebuild everything unnecessarily.
13 lines
447 B
Go
13 lines
447 B
Go
// +build !dynamic
|
|
|
|
package opus
|
|
|
|
//#cgo CFLAGS: -I${SRCDIR}/include
|
|
//#cgo CXXFLAGS: -I${SRCDIR}/include
|
|
//#cgo linux,arm LDFLAGS: ${SRCDIR}/lib/libopus-linux-armv7.a -lm
|
|
//#cgo linux,arm64 LDFLAGS: ${SRCDIR}/lib/libopus-linux-arm64.a -lm
|
|
//#cgo linux,amd64 LDFLAGS: ${SRCDIR}/lib/libopus-linux-x64.a -lm
|
|
//#cgo darwin,amd64 LDFLAGS: ${SRCDIR}/lib/libopus-darwin-x64.a
|
|
//#cgo windows,amd64 LDFLAGS: ${SRCDIR}/lib/libopus-windows-x64.a
|
|
import "C"
|