Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 53a27e0

Browse files
committed
cgo: split windows/unix support
Split cgo-flags support into Windows and Unix. Windows installations do not usually export a pkg-config installation. Fixes #32.
1 parent 17c9f53 commit 53a27e0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
// +build !windows
2+
13
package python
24

35
// #cgo pkg-config: python-2.7
46
// #include "go-python.h"
57
import "C"
6-
7-
// EOF

cgoflags_windows.go

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// +build windows
2+
3+
package python
4+
5+
// #cgo CFLAGS: -IC:/Python27/include
6+
// #cgo LDFLAGS: -LC:/Python27/libs -lpython27
7+
// #include "go-python.h"
8+
import "C"

0 commit comments

Comments
 (0)