GO_PACKAGE_NAME() macro to define current package name when package name doesn't match last syllable of import path
@@ -3501,6 +3501,11 @@ macro GO_FAKE_OUTPUT(FILES...) {
CGO_ENABLED=yes
+GO_PACKAGE_VALUE=
+macro GO_PACKAGE_NAME(NAME) {
+ SET(GO_PACKAGE_VALUE $NAME)
+}
+
GO_SRCS_VALUE=
macro GO_SRCS(FILES...) {
GO_FAKE_OUTPUT($FILES)
