forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrapper_cgo_hack.go
More file actions
20 lines (17 loc) · 790 Bytes
/
wrapper_cgo_hack.go
File metadata and controls
20 lines (17 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build required
package imgui
// This file exists purely to prevent the golang toolchain from stripping
// away the c source directories and files when `go mod vendor` is used
// to populate a `vendor/` directory of a project depending on `imgui-go`.
// https://github.com/golang/go/issues/26366
//
// How it works:
// - every directory which only includes c source files receives a govendorkeep.go file.
// - every directory we want to preserve is included here as a _ import.
// - this file is given a build to exclude it from the regular build.
import (
// Prevent go tooling from stripping out the c source files.
_ "github.com/inkyblackness/imgui-go/v4/imgui"
_ "github.com/inkyblackness/imgui-go/v4/wrapper"
_ "github.com/inkyblackness/imgui-go/v4/imgui/misc/freetype"
)