Mirror only. Official repository is at https://git.zx2c4.com/wireguard-apple
Go to file
Roopesh Chander be25d9d491 Xcode: Make Xcode build libwg-go.a automatically
This is based on Jeroen Leenarts' work (commit a3cdb84)
and Jason Donenfeld's work (commit 9d01829).

To reproduce:

In Xcode, add a new target called 'WireGuardGoBridge' with
the Cross-platform > External build system template. Configure
that target with the 'make' build tool and ask it to build on the
wireguard-go-bridge directory.

The Makefile in wireguard-go-bridge is already configured to
handle being called from Xcode as an external build system.

In WireGuardNetworkExtension's build phases, add a dependancy to
WireGuardGoBridge, and ask it to link to libwg-go.a (the make command
shall generate this archive). Add libwg-go.a as a library to be linked
with.

Edit the Xcode pbxproj file and in the file reference entry for
libwg-go.a, set path as "libwg-go.a" and sourceTree as
BUILT_PRODUCTS_DIR.
2018-10-27 19:07:16 +05:30
Resources Extract WireGuardGo version at build time. 2018-10-02 21:14:18 +02:00
Scripts Extract WireGuardGo version at build time. 2018-10-02 21:14:18 +02:00
Shared Better handling of CIDR values. 2018-10-03 21:34:51 +02:00
WireGuard Xcode: Make Xcode build libwg-go.a automatically 2018-10-27 19:07:16 +05:30
designs Re-center app icon. 2018-09-15 20:29:28 +02:00
wireguard-go@738d027f0b wireguard-go: Upgrade submodule to version 0.0.20181018 2018-10-27 19:07:16 +05:30
wireguard-go-bridge Allow customizing MTU 2018-10-27 01:03:28 +02:00
.gitignore Prepare for rewrite: Remove CocoaPods and Carthage stuff from .gitignore 2018-10-27 15:13:01 +05:30
.gitmodules First stab at Go bridge 2018-06-09 04:22:11 +02:00
.swiftlint.yml Initial project setup. 2018-05-23 21:50:42 +02:00
COPYING Initial commit 2018-05-20 15:09:03 +02:00
README.md MIT license 2018-10-10 22:34:18 +02:00
icon_20pt.png Add import and export logic. 2018-09-01 00:18:12 +02:00

README.md

DO NOT USE: CODEBASE HORRIBLY BROKEN


WireGuard for iOS

To get started...

Make sure you have Go available. A homebrew install will do. brew install go

  • Clone this repo.
    • git clone https://git.zx2c4.com/wireguard-ios
    • Init and update submodule: git submodule init && git submodule update
  • Prepare Xcode project
    • Run pod install
    • Open WireGuard.xcworkspace

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.