Skip to content
Snippets Groups Projects
Commit 09416b1d authored by jkito's avatar jkito :skull: Committed by Pea Nut
Browse files

cgo: set cgo compiler flags in backend.go

the C import line is recommended to be on a separate line
this allows to use the comments in the lines preceeding it
to setup various cpp compiler flags

this also uses cgo comments to pass additional import dirs
for the cpp compiler, these are needed for gopls to work
parent 9d62d5e3
No related branches found
No related tags found
1 merge request!223qt: pass char * to go functions from cpp helpers
...@@ -3,10 +3,13 @@ package main ...@@ -3,10 +3,13 @@ package main
/* a wrapper around bitmask that exposes status to a QtQml gui. /* a wrapper around bitmask that exposes status to a QtQml gui.
Have a look at the pkg/backend module for further enlightment. */ Have a look at the pkg/backend module for further enlightment. */
import ( // #cgo pkg-config: Qt6Core Qt6Gui Qt6Widgets Qt6Quick Qt6QuickControls2
"C" // #cgo CXXFLAGS: -I ..
"unsafe" import "C"
import "unsafe"
import (
"0xacab.org/leap/bitmask-vpn/pkg/backend" "0xacab.org/leap/bitmask-vpn/pkg/backend"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment