Skip to content

Commit df48e8c

Browse files
committed
Get back linux defs.
1 parent c1952f2 commit df48e8c

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

vulkan_android.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package vulkan
44

55
/*
6-
#cgo CFLAGS: -I. -DVK_NO_PROTOTYPES
76
#cgo android LDFLAGS: -Wl,--no-warn-mismatch -lm_hard
87
#cgo android CFLAGS: -DVK_USE_PLATFORM_ANDROID_KHR -D__ARM_ARCH_7A__ -D_NDK_MATH_NO_SOFTFP=1 -mfpu=vfp -mfloat-abi=hard -march=armv7-a
98

vulkan_darwin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package vulkan
44

55
/*
6-
#cgo CFLAGS: -I. -DVK_NO_PROTOTYPES
76
#cgo darwin CFLAGS: -DVK_USE_PLATFORM_MACOS_MVK -Wno-deprecated-declarations
87
#cgo darwin LDFLAGS: -F/Library/Frameworks -framework Cocoa -framework IOKit -framework IOSurface -framework QuartzCore -framework Metal -framework MoltenVK -lc++
98

vulkan_ios.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package vulkan
55

66
/*
7-
#cgo CFLAGS: -I. -DVK_NO_PROTOTYPES
87
#cgo LDFLAGS: -framework Foundation -framework Metal -framework QuartzCore -framework MoltenVK -lc++
98
#cgo CFLAGS: -x objective-c -DVK_USE_PLATFORM_IOS_MVK
109

vulkan_linux.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build linux,!android
2+
3+
package vulkan
4+
5+
/*
6+
#cgo LDFLAGS: -ldl
7+
8+
#include "vk_wrapper.h"
9+
#include "vk_bridge.h"
10+
*/
11+
import "C"

0 commit comments

Comments
 (0)