move pkgconfig/cflags all into c_util.go file, include only gst.go.h in go files

This commit is contained in:
tinyzimmer
2020-09-27 11:32:48 +03:00
parent 7731ccd6f1
commit 73f398e3e5
25 changed files with 25 additions and 148 deletions

View File

@@ -1,7 +1,7 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
*/

View File

@@ -1,12 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -Wno-unused-function -g
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import "errors"

View File

@@ -1,12 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import "time"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"fmt"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"bytes"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,12 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include <glib-object.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import "time"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
const (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"fmt"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"unsafe"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -Wno-incompatible-pointer-types -g
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
// Plugin is a go representation of a GstPlugin.

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"unsafe"

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"fmt"

View File

@@ -1,12 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -Wno-unused-function -g
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
// Sample is a go wrapper around a GstSample object.

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (

View File

@@ -1,10 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
*/
// #include "gst.go.h"
import "C"
// URIType casts C GstURIType to a go type

View File

@@ -1,11 +1,6 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
// #include "gst.go.h"
import "C"
import (
"unsafe"