summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-10-09 21:58:15 +0200
committerRuben Pollan <meskio@sindominio.net>2020-10-13 19:08:55 +0200
commitf8c05f3dee29c7ab1eb3eba82c917fe18333fc41 (patch)
tree4dc17ad736d670652c8f6f9437afd9a71f4cdada /Makefile
parent73d0c7a96df2212d5a3ee6289fc286f3e6459028 (diff)
[pkg] add vendor icon to app
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3525c44..f2c462d 100644
--- a/Makefile
+++ b/Makefile
@@ -73,18 +73,26 @@ else
EXTRA_FLAGS =
endif
+ifeq ($(PLATFORM), windows)
+EXTRA_GO_LDFLAGS = "-H windowsgui"
+endif
+
golib:
# TODO stop building golib in gui/build.sh, it's redundant.
# we should port the buildGoLib parts of the gui/build.sh script here
@echo "doing nothing"
-build: golib build_helper build_openvpn
- @XBUILD=no TARGET=${TARGET} gui/build.sh
+build_gui:
+ @XBUILD=no TARGET=${TARGET} VENDOR_PATH=${VENDOR_PATH}/${PROVIDER} gui/build.sh
+
+build: golib build_helper build_openvpn build_gui
build_helper:
@echo "PLATFORM: ${PLATFORM}"
@mkdir -p build/bin/${PLATFORM}
- go build -o build/bin/${PLATFORM}/bitmask-helper -ldflags "-X main.AppName=${APPNAME} -X main.Version=${VERSION} -H windowsgui" ./cmd/bitmask-helper/
+
+ go build -o build/bin/${PLATFORM}/bitmask-helper -ldflags "-X main.AppName=${APPNAME} -X main.Version=${VERSION} ${EXTRA_GO_LDFLAGS}" ./cmd/bitmask-helper/
+ @echo "build helper done."
build_openvpn:
@[ -f $(OPENVPN_BIN) ] && echo "OpenVPN already built at" $(OPENVPN_BIN) || ./branding/thirdparty/openvpn/build_openvpn.sh