Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pkg-config instead of manual -lvlc #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion v3/av.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <stdlib.h>
import "C"
Expand Down
4 changes: 4 additions & 0 deletions v3/cgo_vlc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package vlc

// #cgo pkg-config: libvlc
import "C"
1 change: 0 additions & 1 deletion v3/equalizer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion v3/event_manager.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package vlc

/*
#cgo LDFLAGS: -lvlc
#include <vlc/vlc.h>

typedef const libvlc_event_t constev;
Expand Down
1 change: 0 additions & 1 deletion v3/event_registry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
import "C"
import "sync"
Expand Down
1 change: 0 additions & 1 deletion v3/list_player.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <stdlib.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion v3/logo.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package vlc

/*
#cgo LDFLAGS: -lvlc
#include <vlc/vlc.h>
#include <stdlib.h>
*/
Expand Down
1 change: 0 additions & 1 deletion v3/marquee.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package vlc

/*
#cgo LDFLAGS: -lvlc
#include <vlc/vlc.h>
#include <stdlib.h>
*/
Expand Down
1 change: 0 additions & 1 deletion v3/media.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package vlc

/*
#cgo LDFLAGS: -lvlc
#include <vlc/vlc.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion v3/media_discoverer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <stdlib.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion v3/media_list.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
import "C"
import "io"
Expand Down
1 change: 0 additions & 1 deletion v3/media_track.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion v3/player.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package vlc

/*
#cgo LDFLAGS: -lvlc
#include <vlc/vlc.h>
#include <stdlib.h>
*/
Expand Down
1 change: 0 additions & 1 deletion v3/renderer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion v3/renderer_discoverer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <stdlib.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion v3/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <stdlib.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion v3/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #include <vlc/vlc.h>
// #include <vlc/libvlc_version.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion v3/vlc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package vlc

// #cgo LDFLAGS: -lvlc
// #cgo CFLAGS: -w
// #include <vlc/vlc.h>
// #include <stdlib.h>
Expand Down