| Index: samples/github/ios/compile.sh
|
| diff --git a/samples/github/ios/compile.sh b/samples/github/ios/compile.sh
|
| deleted file mode 100755
|
| index 8f077540673dd6641548a8c6f9ae4d6bd39dd6f4..0000000000000000000000000000000000000000
|
| --- a/samples/github/ios/compile.sh
|
| +++ /dev/null
|
| @@ -1,95 +0,0 @@
|
| -#!/bin/bash
|
| -
|
| -# Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
|
| -# for details. All rights reserved. Use of this source code is governed by a
|
| -# BSD-style license that can be found in the LICENSE.md file.
|
| -
|
| -# Setup
|
| -# - Install and build dartino.
|
| -# - Install Cocoapods.
|
| -# - Run immic (output in generated/packages/immi).
|
| -# - Run servicec (output in generated/packages/service).
|
| -# - Generate libdartino.a for your choice of platforms and add it to xcode.
|
| -# - Generate snapshot of your Dart program and add it to xcode.
|
| -# - Write Podfile that links to {Dartino,Service,Immi}.podspec.
|
| -# - Run pod install.
|
| -
|
| -# Build (implemented by the present script).
|
| -# - Run immic.
|
| -# - Run servicec.
|
| -# - Generate libdartino.
|
| -# - Generate snapshot of your Dart program.
|
| -
|
| -# After this, hit the 'run' button in xcode.
|
| -
|
| -set -ue
|
| -DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| -PROJ=github
|
| -
|
| -DARTINO_DIR="$(cd "$DIR/../../.." && pwd)"
|
| -DARTINO_PKG_DIR="$DARTINO_DIR/package"
|
| -
|
| -TARGET_DIR="$(cd "$DIR/.." && pwd)"
|
| -TARGET_GEN_DIR="$TARGET_DIR/generated"
|
| -TARGET_PKG_FILE="$TARGET_DIR/.packages"
|
| -
|
| -IMMI_GEN_DIR="$TARGET_GEN_DIR/immi"
|
| -SERVICE_GEN_DIR="$TARGET_GEN_DIR/service"
|
| -
|
| -DART="$DARTINO_DIR/out/ReleaseIA32/dart"
|
| -IMMIC="$DART $DARTINO_DIR/tools/immic/bin/immic.dart"
|
| -DARTINO="$DARTINO_DIR/out/ReleaseIA32/dartino"
|
| -SERVICEC="$DARTINO x-servicec"
|
| -
|
| -MOCK_SERVER_SNAPSHOT="$TARGET_DIR/github_mock_service.snapshot"
|
| -
|
| -set -x
|
| -
|
| -cd $DARTINO_DIR
|
| -
|
| -ninja -C out/ReleaseIA32
|
| -
|
| -./tools/persistent_process_info.sh -k
|
| -
|
| -# Generate dart service file and other immi files with the compiler.
|
| -if [[ $# -eq 0 ]] || [[ "$1" == "immi" ]]; then
|
| - rm -rf "$IMMI_GEN_DIR"
|
| - mkdir -p "$IMMI_GEN_DIR"
|
| - $IMMIC --packages "$TARGET_PKG_FILE" --out "$IMMI_GEN_DIR" "$TARGET_DIR/lib/$PROJ.immi"
|
| -
|
| - rm -rf "$SERVICE_GEN_DIR"
|
| - mkdir -p "$SERVICE_GEN_DIR"
|
| - $SERVICEC file "$IMMI_GEN_DIR/idl/immi_service.idl" out "$SERVICE_GEN_DIR"
|
| -
|
| - # Regenerate the mock service after deleting the service-gen directory.
|
| - $DIR/../compile_mock_service.sh service
|
| -fi
|
| -
|
| -if [[ $# -eq 0 ]] || [[ "$1" == "dartino" ]]; then
|
| - ninja -C out/ReleaseIA32IOS libdartino.a
|
| - ninja -C out/ReleaseXARM libdartino.a
|
| - lipo -create -output "$DIR/libdartinovm.a" \
|
| - out/ReleaseIA32IOS/libdartino.a \
|
| - out/ReleaseXARM/libdartino.a
|
| -fi
|
| -
|
| -if [[ $# -eq 0 ]] || [[ "$1" == "snapshot" ]]; then
|
| - $DART -c --packages=.packages \
|
| - -Dsnapshot="$DIR/$PROJ.snapshot" \
|
| - -Dpackages="$TARGET_PKG_FILE" \
|
| - tests/dartino_compiler/run.dart "$TARGET_DIR/bin/$PROJ.dart"
|
| -fi
|
| -
|
| -# Ensure that we have a mock server.
|
| -if [[ $# -eq 0 ]] && [[ ! -f "$MOCK_SERVER_SNAPSHOT" ]]; then
|
| - $DIR/../compile_mock_service.sh
|
| -fi
|
| -
|
| -set +x
|
| -
|
| -if [[ $# -eq 1 ]]; then
|
| - echo
|
| - echo "Only ran task $1."
|
| - echo "Possible tasks: immi, dartino, and snapshot"
|
| - echo "If Dartino or any IMMI files changed re-run compile.sh without arguments."
|
| -fi
|
|
|