mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
0b1a19f343
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
465 B
Go
13 lines
465 B
Go
// +build !dynamic
|
|
|
|
package openh264
|
|
|
|
//#cgo CFLAGS: -I${SRCDIR}/include
|
|
//#cgo CXXFLAGS: -I${SRCDIR}/include
|
|
//#cgo linux,arm LDFLAGS: ${SRCDIR}/lib/libopenh264-linux-armv7.a
|
|
//#cgo linux,arm64 LDFLAGS: ${SRCDIR}/lib/libopenh264-linux-arm64.a
|
|
//#cgo linux,amd64 LDFLAGS: ${SRCDIR}/lib/libopenh264-linux-x64.a
|
|
//#cgo darwin,amd64 LDFLAGS: ${SRCDIR}/lib/libopenh264-darwin-x64.a
|
|
//#cgo windows,amd64 LDFLAGS: ${SRCDIR}/lib/libopenh264-windows-x64.a -lssp
|
|
import "C"
|