From aa1ece6126ad8521a71df8b5b3abb227ba73c3c2 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 1 Sep 2024 17:16:33 +1200 Subject: [PATCH] qt: add separate per-OS cflags files (1/X) --- qt/cflags_linux.go | 7 +++++++ qt/cflags_windows.go | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 qt/cflags_linux.go create mode 100644 qt/cflags_windows.go diff --git a/qt/cflags_linux.go b/qt/cflags_linux.go new file mode 100644 index 00000000..7fd2cbdd --- /dev/null +++ b/qt/cflags_linux.go @@ -0,0 +1,7 @@ +package qt + +/* +#cgo CFLAGS: -fPIC +#cgo pkg-config: Qt5Widgets +*/ +import "C" diff --git a/qt/cflags_windows.go b/qt/cflags_windows.go new file mode 100644 index 00000000..9be4537d --- /dev/null +++ b/qt/cflags_windows.go @@ -0,0 +1,7 @@ +package qt + +/* +#cgo CXXFLAGS: -std=c++11 +#cgo pkg-config: Qt5Widgets +*/ +import "C"