-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMagefile.go
More file actions
34 lines (27 loc) · 752 Bytes
/
Copy pathMagefile.go
File metadata and controls
34 lines (27 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//go:build mage
// +build mage
package main
import (
"fmt"
// mage:import
build "github.com/grafana/grafana-plugin-sdk-go/build"
"github.com/magefile/mage/mg"
)
// Hello prints a message (shows that you can define custom Mage targets).
func Hello() {
fmt.Println("hello plugin developer!")
}
// Only build for windows, because our ibm_db_go import is built for windows only.
// Need to build for only Linux on a Linux platform, with ibm_db_go installed for Linux in order to build for Linux.
func BuildDarwin() {
b := build.Build{}
mg.Deps(b.Darwin)
}
func BuildLinux() {
b := build.Build{}
mg.Deps(b.Linux)
}
//var Default = BuildDarwin
var Default = BuildLinux
// Default configures the default target.
//var Default = build.BuildAll