summaryrefslogtreecommitdiffstats
path: root/tools/Android.mk
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-02-13 08:45:56 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-02-13 14:36:28 +0000
commit4b23250f4cbf3047924c646c1a0c078394f8362d (patch)
tree62bae8c857c85293bcba4bf920ed47ed094e458a /tools/Android.mk
parent8b8adace3511e6fd68c6ae0eb80046d68186f8eb (diff)
downloadart-4b23250f4cbf3047924c646c1a0c078394f8362d.tar.gz
art-4b23250f4cbf3047924c646c1a0c078394f8362d.tar.bz2
art-4b23250f4cbf3047924c646c1a0c078394f8362d.zip
Revert "Revert "Add a script for running art standalone.""
This reverts commit 41dcb9f856a2051527cd595f8fe7d200066acba4. Change-Id: Ide6fa696c6fb43fe17e0993e8c9d1b588c99b1f3
Diffstat (limited to 'tools/Android.mk')
-rw-r--r--tools/Android.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/Android.mk b/tools/Android.mk
new file mode 100644
index 000000000..6c385dcb4
--- /dev/null
+++ b/tools/Android.mk
@@ -0,0 +1,32 @@
+#
+# Copyright (C) 2014 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+ifeq ($(WITH_HOST_DALVIK),true)
+# Copy the art shell script to the host's bin directory
+include $(CLEAR_VARS)
+LOCAL_IS_HOST_MODULE := true
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE := art
+include $(BUILD_SYSTEM)/base_rules.mk
+$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/art $(ACP)
+ @echo "Copy: $(PRIVATE_MODULE) ($@)"
+ $(copy-file-to-new-target)
+ $(hide) chmod 755 $@
+
+endif