Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: samples/todomvc/android/compile.sh

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/todomvc/android/TodoMVC/settings.gradle ('k') | samples/todomvc/cc/todomvc_presenter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/todomvc/android/compile.sh
diff --git a/samples/todomvc/android/compile.sh b/samples/todomvc/android/compile.sh
deleted file mode 100755
index 381d334d225afea3deaa3036b663441aa1a326ba..0000000000000000000000000000000000000000
--- a/samples/todomvc/android/compile.sh
+++ /dev/null
@@ -1,59 +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.
-
-set -ue
-
-DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
-SERVICEC_DIR=$DIR/../../../tools/servicec
-JAVA_DIR=$DIR/../java
-DARTINO_DIR=$DIR/../../..
-
-if [[ $# -eq 1 ]] && [[ "$1" == "snapshot" ]]; then
- echo "Only rebuilding the Dart snapshot."
- echo "If Dartino or any IMMI files changed re-run compile.sh without arguments."
-else
-
-
-# Build the native interpreter src for arm and x86.
-cd $DARTINO_DIR
-ninja
-ninja -C out/ReleaseIA32
-# Regenerate java and jni sources.
-out/ReleaseIA32/dartino x-servicec file samples/todomvc/todomvc_service.idl out samples/todomvc/
-
-ninja -C out/ReleaseXARMAndroid dartino_vm_library_generator
-ninja -C out/ReleaseIA32Android dartino_vm_library_generator
-mkdir -p out/ReleaseXARMAndroid/obj/src/vm/dartino_vm.gen
-mkdir -p out/ReleaseIA32Android/obj/src/vm/dartino_vm.gen
-out/ReleaseXARMAndroid/dartino_vm_library_generator > out/ReleaseXARMAndroid/obj/src/vm/dartino_vm.gen/generated.S
-out/ReleaseIA32Android/dartino_vm_library_generator > out/ReleaseIA32Android/obj/src/vm/dartino_vm.gen/generated.S
-
-# Compile Dartino runtime and jni code into libdartino.so.
-cd $JAVA_DIR
-CPUCOUNT=1
-if [[ $(uname) = 'Darwin' ]]; then
- CPUCOUNT=$(sysctl -n hw.logicalcpu_max)
-else
- CPUCOUNT=$(lscpu -p | grep -vc '^#')
-fi
-NDK_MODULE_PATH=. ndk-build -j$CPUCOUNT
-
-# Copy Java source and dartino library to the right places.
-mkdir -p $DIR/TodoMVC/app/src/main/java/dartino
-cp -R dartino/*.java $DIR/TodoMVC/app/src/main/java/dartino/
-mkdir -p $DIR/TodoMVC/app/src/main/jniLibs/
-cp -R libs/* $DIR/TodoMVC/app/src/main/jniLibs/
-
-fi
-
-# Build snapshot.
-cd $DARTINO_DIR
-mkdir -p $DIR/TodoMVC/app/src/main/res/raw
-
-./out/ReleaseIA32/dart \
- -c --packages=.packages \
- -Dsnapshot="$DIR/TodoMVC/app/src/main/res/raw/todomvc_snapshot" \
- tests/dartino_compiler/run.dart "$DIR/../todomvc.dart"
« no previous file with comments | « samples/todomvc/android/TodoMVC/settings.gradle ('k') | samples/todomvc/cc/todomvc_presenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698