Add missing file and fix hard path.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
5c853efed8
commit
f118f9ef4b
|
@ -53,4 +53,3 @@ fastlane/screenshots
|
|||
fastlane/test_output
|
||||
Preview.html
|
||||
output
|
||||
wireguard-go-bridge
|
||||
|
|
|
@ -389,7 +389,7 @@
|
|||
buildPhases = (
|
||||
);
|
||||
buildToolPath = "$(PROJECT_DIR)/wireguard-go-bridge/xcode-build-helper.sh";
|
||||
buildWorkingDirectory = "/Users/jeroenleenarts/code/wireguard-ios/wireguard-go-bridge";
|
||||
buildWorkingDirectory = "$(PROJECT_DIR)/wireguard-go-bridge";
|
||||
dependencies = (
|
||||
);
|
||||
name = WireGuardGoBridge;
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
cd "$PROJECT_DIR"/wireguard-go-bridge
|
||||
case $1 in
|
||||
clean)
|
||||
make clean
|
||||
;;
|
||||
*)
|
||||
if [ -e "$DERIVED_FILE_DIR/libwg-go.a" ]
|
||||
then
|
||||
echo "Clean before building"
|
||||
else
|
||||
make
|
||||
fi
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f "libwg-go.a" ]
|
||||
then
|
||||
mkdir -p "$DERIVED_FILE_DIR"
|
||||
mv *.a "$DERIVED_FILE_DIR"
|
||||
ln -sf "$DERIVED_FILE_DIR/libwg-go.a" libwg-go.a
|
||||
fi
|
Loading…
Reference in New Issue