Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladimir KozLove
bitmask-vpn
Commits
163f14df
Unverified
Commit
163f14df
authored
4 years ago
by
Kali Kaneko
Committed by
Kali Kaneko
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[pkg] add golib target to makefile
- Resolves: #363
parent
cee6f137
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+8
-15
8 additions, 15 deletions
Makefile
gui/build.sh
+38
-10
38 additions, 10 deletions
gui/build.sh
with
46 additions
and
25 deletions
Makefile
+
8
−
15
View file @
163f14df
...
@@ -77,13 +77,15 @@ ifeq ($(PLATFORM), windows)
...
@@ -77,13 +77,15 @@ ifeq ($(PLATFORM), windows)
EXTRA_GO_LDFLAGS
=
"-H windowsgui"
EXTRA_GO_LDFLAGS
=
"-H windowsgui"
endif
endif
golib
:
# TODO port the buildGoLib parts of the gui/build.sh script here
(
issue
#363
)
PKGFILES
=
$(
shell find pkg
-type
f
-name
'*.go'
)
# or at least call that function from here --
lib/%.a
:
$(PKGFILES)
@
echo
"doing nothing"
@
./gui/build.sh
--just-golib
golib
:
lib/libgoshim.a
build_gui
:
build_gui
:
@
XBUILD
=
no
TARGET
=
${
TARGET
}
VENDOR_PATH
=
${
VENDOR_PATH
}
/
${
PROVIDER
}
gui/build.sh
@
XBUILD
=
no
TARGET
=
${
TARGET
}
VENDOR_PATH
=
${
VENDOR_PATH
}
/
${
PROVIDER
}
gui/build.sh
--skip-golib
build
:
golib build_helper build_openvpn build_gui
build
:
golib build_helper build_openvpn build_gui
...
@@ -96,9 +98,6 @@ build_helper:
...
@@ -96,9 +98,6 @@ build_helper:
build_openvpn
:
build_openvpn
:
@
[
-f
$(
OPENVPN_BIN
)
]
&&
echo
"OpenVPN already built at"
$(
OPENVPN_BIN
)
||
./branding/thirdparty/openvpn/build_openvpn.sh
@
[
-f
$(
OPENVPN_BIN
)
]
&&
echo
"OpenVPN already built at"
$(
OPENVPN_BIN
)
||
./branding/thirdparty/openvpn/build_openvpn.sh
debug_installer
:
@
VERSION
=
${
VERSION
}
${
SCRIPTS
}
/gen-qtinstaller osx
${
INSTALLER
}
build_installer
:
check_qtifw build
build_installer
:
check_qtifw build
@
mkdir
-p
${
INST_DATA
}
@
mkdir
-p
${
INST_DATA
}
@
cp
-r
${
TEMPLATES
}
/qtinstaller/packages
${
INSTALLER
}
@
cp
-r
${
TEMPLATES
}
/qtinstaller/packages
${
INSTALLER
}
...
@@ -106,7 +105,7 @@ build_installer: check_qtifw build
...
@@ -106,7 +105,7 @@ build_installer: check_qtifw build
@
cp
-r
${
TEMPLATES
}
/qtinstaller/config
${
INSTALLER
}
@
cp
-r
${
TEMPLATES
}
/qtinstaller/config
${
INSTALLER
}
ifeq
(${PLATFORM}, darwin)
ifeq
(${PLATFORM}, darwin)
@
mkdir
-p
${
INST_DATA
}
/helper
@
mkdir
-p
${
INST_DATA
}
/helper
@
VERSION
=
${
VERSION
}
${
SCRIPTS
}
/gen-qtinstaller osx
${
INSTALLER
}
@
VERSION
=
${
VERSION
}
VENDOR_PATH
=
${
VENDOR_PATH
}
${
SCRIPTS
}
/gen-qtinstaller osx
${
INSTALLER
}
@
cp
"
${
TEMPLATES
}
/osx/bitmask.pf.conf"
${
INST_DATA
}
helper/bitmask.pf.conf
@
cp
"
${
TEMPLATES
}
/osx/bitmask.pf.conf"
${
INST_DATA
}
helper/bitmask.pf.conf
@
cp
"
${
TEMPLATES
}
/osx/client.up.sh"
${
INST_DATA
}
@
cp
"
${
TEMPLATES
}
/osx/client.up.sh"
${
INST_DATA
}
@
cp
"
${
TEMPLATES
}
/osx/client.down.sh"
${
INST_DATA
}
@
cp
"
${
TEMPLATES
}
/osx/client.down.sh"
${
INST_DATA
}
...
@@ -265,9 +264,6 @@ packages: package_deb package_snap package_osx package_win
...
@@ -265,9 +264,6 @@ packages: package_deb package_snap package_osx package_win
package_snap_in_docker
:
package_snap_in_docker
:
@
make
-C
docker package_snap
@
make
-C
docker package_snap
package_win_in_docker
:
@
make
-C
docker package_win
package_snap
:
package_snap
:
@
unlink
snap
||
true
@
unlink
snap
||
true
@
ln
-s
build/
${
PROVIDER
}
/snap snap
@
ln
-s
build/
${
PROVIDER
}
/snap snap
...
@@ -276,9 +272,6 @@ package_snap:
...
@@ -276,9 +272,6 @@ package_snap:
package_deb
:
package_deb
:
@
make
-C
build/
${
PROVIDER
}
pkg_deb
@
make
-C
build/
${
PROVIDER
}
pkg_deb
package_osx
:
@
echo
"tbd"
#########################################################################
#########################################################################
# icons & locales
# icons & locales
...
...
This diff is collapsed.
Click to expand it.
gui/build.sh
+
38
−
10
View file @
163f14df
...
@@ -20,6 +20,7 @@ VENDOR_PATH=${VENDOR_PATH-providers/riseup}
...
@@ -20,6 +20,7 @@ VENDOR_PATH=${VENDOR_PATH-providers/riseup}
PLATFORM
=
$(
uname
-s
)
PLATFORM
=
$(
uname
-s
)
LDFLAGS
=
""
LDFLAGS
=
""
BUILD_GOLIB
=
"yes"
if
[
"
$TARGET
"
==
""
]
if
[
"
$TARGET
"
==
""
]
then
then
...
@@ -45,7 +46,6 @@ function init {
...
@@ -45,7 +46,6 @@ function init {
mkdir
-p
lib
mkdir
-p
lib
}
}
# TODO this should be moved to the makefile
function
buildGoLib
{
function
buildGoLib
{
echo
"[+] Using go in"
$GO
"[
`
go version
`
]"
echo
"[+] Using go in"
$GO
"[
`
go version
`
]"
$GO
generate ./pkg/config/version/genver/gen.go
$GO
generate ./pkg/config/version/genver/gen.go
...
@@ -101,16 +101,44 @@ function renameOutput {
...
@@ -101,16 +101,44 @@ function renameOutput {
fi
fi
}
}
echo
"[+] Building BitmaskVPN"
function
buildDefault
{
echo
"[+] Building BitmaskVPN"
lrelease bitmask.pro
if
[
"
$BUILD_GOLIB
"
==
"yes"
]
then
buildGoLib
fi
buildQmake
lrelease bitmask.pro
make
-C
$QTBUILD
clean
make
-C
$QTBUILD
-j4
all
renameOutput
echo
"[+] Done."
}
# FIXME move buildGoLib to the main makefile, to avoid redundant builds if possible
buildGoLib
buildQmake
make
-C
$QTBUILD
clean
for
i
in
"
$@
"
make
-C
$QTBUILD
-j4
all
do
case
$i
in
--skip-golib
)
BUILD_GOLIB
=
"no"
shift
# past argument=value
;;
--just-golib
)
BUILD_GOLIB
=
"just"
shift
# past argument=value
;;
*
)
# unknown option
;;
esac
done
if
[
"
$BUILD_GOLIB
"
==
"just"
]
then
buildGoLib
else
buildDefault
fi
renameOutput
echo
"[+] Done."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment