File tree 5 files changed +41
-0
lines changed
5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ //go:build vendorkeep
2
+ // +build vendorkeep
3
+
4
+ package cgowrapper
Original file line number Diff line number Diff line change
1
+ //go:build vendorkeep
2
+ // +build vendorkeep
3
+
4
+ package libde265
5
+
6
+ // https://github.com/golang/go/issues/26366
7
+
8
+ // This file exists purely to prevent the golang toolchain from stripping
9
+ // away the c source directories and files when `go mod vendor` is used
10
+ // to populate a `vendor/` directory of a project depending on `goheif`.
11
+ //
12
+ // How it works:
13
+ // - every directory which only includes c/c++ source files receives a
14
+ // vendorkeep.go file.
15
+ // - every directory we want to preserve is included here as a _ import.
16
+ // - every dummy go file is given a build tag to exclude it from the regular
17
+ // build.
18
+
19
+ import (
20
+ // Prevent go tooling from stripping out the c source files.
21
+ _ "github.com/jdeng/goheif/libde265/extra"
22
+ _ "github.com/jdeng/goheif/libde265/libde265"
23
+ _ "github.com/jdeng/goheif/libde265/libde265/arm"
24
+ _ "github.com/jdeng/goheif/libde265/libde265/x86"
25
+ )
Original file line number Diff line number Diff line change
1
+ //go:build vendorkeep
2
+ // +build vendorkeep
3
+
4
+ package cgowrapper
Original file line number Diff line number Diff line change
1
+ //go:build vendorkeep
2
+ // +build vendorkeep
3
+
4
+ package cgowrapper
Original file line number Diff line number Diff line change
1
+ //go:build vendorkeep
2
+ // +build vendorkeep
3
+
4
+ package cgowrapper
You can’t perform that action at this time.
0 commit comments