OSDN Git Service

Check in prebuilt build tools
authorYing Wang <wangying@google.com>
Wed, 9 Jun 2010 17:37:46 +0000 (10:37 -0700)
committerYing Wang <wangying@google.com>
Wed, 9 Jun 2010 17:37:46 +0000 (10:37 -0700)
acp is built from froyo and other tools come from released sdk8.

Change-Id: I6ffcb5f7a73c34a22c34ad75ea0be38c8b5638e0

16 files changed:
sdk/4/Android.mk
sdk/5/Android.mk
sdk/6/Android.mk
sdk/7/Android.mk
sdk/8/Android.mk
sdk/tools/Android.mk [new file with mode: 0644]
sdk/tools/darwin/aapt [new file with mode: 0755]
sdk/tools/darwin/acp [new file with mode: 0755]
sdk/tools/darwin/aidl [new file with mode: 0755]
sdk/tools/darwin/zipalign [new file with mode: 0755]
sdk/tools/dx [new file with mode: 0755]
sdk/tools/lib/dx.jar [new file with mode: 0644]
sdk/tools/linux/aapt [new file with mode: 0755]
sdk/tools/linux/acp [new file with mode: 0755]
sdk/tools/linux/aidl [new file with mode: 0755]
sdk/tools/linux/zipalign [new file with mode: 0755]

index de97f0c..688b6cf 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2010 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)
 include $(CLEAR_VARS)
 
index 81b0124..aaeb0a9 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2010 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)
 include $(CLEAR_VARS)
 
index b13c828..6acb9e9 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2010 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)
 include $(CLEAR_VARS)
 
index 7c99ff4..72bad37 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2010 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)
 include $(CLEAR_VARS)
 
index 94405bd..dd7b0c7 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2010 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)
 include $(CLEAR_VARS)
 
diff --git a/sdk/tools/Android.mk b/sdk/tools/Android.mk
new file mode 100644 (file)
index 0000000..06cc0c4
--- /dev/null
@@ -0,0 +1,102 @@
+#
+# Copyright (C) 2010 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 ($(strip $(is_unbundled_app_build)),true)
+##################################
+include $(CLEAR_VARS)
+
+# We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not
+# available yet..
+
+LOCAL_IS_HOST_MODULE := true
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE := acp
+
+$(ACP): $(LOCAL_PATH)/$(HOST_OS)/acp$(HOST_EXECUTABLE_SUFFIX)
+       @echo "Copy: acp ($@)"
+       $(copy-file-to-target-with-cp)
+       $(hide) chmod 755 $@
+
+##################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := aidl
+LOCAL_SRC_FILES := $(HOST_OS)/aidl$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
+LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_IS_HOST_MODULE := true
+
+include $(BUILD_PREBUILT)
+
+##################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := aapt
+LOCAL_SRC_FILES := $(HOST_OS)/aapt$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
+LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_IS_HOST_MODULE := true
+
+include $(BUILD_PREBUILT)
+
+##################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := zipalign
+LOCAL_SRC_FILES := $(HOST_OS)/zipalign$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
+LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX)
+LOCAL_IS_HOST_MODULE := true
+
+include $(BUILD_PREBUILT)
+
+##################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := dx
+LOCAL_SRC_FILES := lib/dx.jar
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
+LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX)
+LOCAL_IS_HOST_MODULE := true
+
+include $(BUILD_PREBUILT)
+
+##################################
+include $(CLEAR_VARS)
+
+# We have to call copy-file-to-new-target instead of simply including
+# $(BUILD_PREBUILT) here, because we must put dx.jar as dependecy of dx.
+
+LOCAL_IS_HOST_MODULE := true
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE := dx
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+$(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX)
+$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/dx | $(ACP)
+       @echo "Copy: $(PRIVATE_MODULE) ($@)"
+       $(copy-file-to-new-target)
+       $(hide) chmod 755 $@
+
+##################################
+endif # is_unbundled_app_build
diff --git a/sdk/tools/darwin/aapt b/sdk/tools/darwin/aapt
new file mode 100755 (executable)
index 0000000..d990f27
Binary files /dev/null and b/sdk/tools/darwin/aapt differ
diff --git a/sdk/tools/darwin/acp b/sdk/tools/darwin/acp
new file mode 100755 (executable)
index 0000000..85949ad
Binary files /dev/null and b/sdk/tools/darwin/acp differ
diff --git a/sdk/tools/darwin/aidl b/sdk/tools/darwin/aidl
new file mode 100755 (executable)
index 0000000..3fdadd6
Binary files /dev/null and b/sdk/tools/darwin/aidl differ
diff --git a/sdk/tools/darwin/zipalign b/sdk/tools/darwin/zipalign
new file mode 100755 (executable)
index 0000000..71d0b13
Binary files /dev/null and b/sdk/tools/darwin/zipalign differ
diff --git a/sdk/tools/dx b/sdk/tools/dx
new file mode 100755 (executable)
index 0000000..f773495
--- /dev/null
@@ -0,0 +1,85 @@
+#!/bin/bash
+#
+# Copyright (C) 2007 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.
+
+# Set up prog to be the path of this script, including following symlinks,
+# and set up progdir to be the fully-qualified pathname of its directory.
+prog="$0"
+while [ -h "${prog}" ]; do
+    newProg=`/bin/ls -ld "${prog}"`
+    newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
+    if expr "x${newProg}" : 'x/' >/dev/null; then
+        prog="${newProg}"
+    else
+        progdir=`dirname "${prog}"`
+        prog="${progdir}/${newProg}"
+    fi
+done
+oldwd=`pwd`
+progdir=`dirname "${prog}"`
+cd "${progdir}"
+progdir=`pwd`
+prog="${progdir}"/`basename "${prog}"`
+cd "${oldwd}"
+
+jarfile=dx.jar
+libdir="$progdir"
+if [ ! -r "$libdir/$jarfile" ]; then
+    libdir=`dirname "$progdir"`/tools/lib
+fi
+
+if [ ! -r "$libdir/$jarfile" ]; then
+    libdir=`dirname "$progdir"`/framework
+fi
+
+if [ ! -r "$libdir/$jarfile" ]; then
+    echo `basename "$prog"`": can't find $jarfile"
+    exit 1
+fi
+
+# By default, give dx a max heap size of 1 gig. This can be overridden
+# by using a "-J" option (see below).
+defaultMx="-Xmx1024M"
+
+# The following will extract any initial parameters of the form
+# "-J<stuff>" from the command line and pass them to the Java
+# invocation (instead of to dx). This makes it possible for you to add
+# a command-line parameter such as "-JXmx256M" in your scripts, for
+# example. "java" (with no args) and "java -X" give a summary of
+# available options.
+
+javaOpts=""
+
+while expr "x$1" : 'x-J' >/dev/null; do
+    opt=`expr "x$1" : 'x-J\(.*\)'`
+    javaOpts="${javaOpts} -${opt}"
+    if expr "x${opt}" : "xXmx[0-9]" >/dev/null; then
+        defaultMx="no"
+    fi
+    shift
+done
+
+if [ "${defaultMx}" != "no" ]; then
+    javaOpts="${javaOpts} ${defaultMx}"
+fi
+
+if [ "$OSTYPE" = "cygwin" ]; then
+    # For Cygwin, convert the jarfile path into native Windows style.
+    jarpath=`cygpath -w "$libdir/$jarfile"`
+else
+    jarpath="$libdir/$jarfile"
+fi
+
+exec java $javaOpts -jar "$jarpath" "$@"
diff --git a/sdk/tools/lib/dx.jar b/sdk/tools/lib/dx.jar
new file mode 100644 (file)
index 0000000..8e17b97
Binary files /dev/null and b/sdk/tools/lib/dx.jar differ
diff --git a/sdk/tools/linux/aapt b/sdk/tools/linux/aapt
new file mode 100755 (executable)
index 0000000..0277422
Binary files /dev/null and b/sdk/tools/linux/aapt differ
diff --git a/sdk/tools/linux/acp b/sdk/tools/linux/acp
new file mode 100755 (executable)
index 0000000..8dbb872
Binary files /dev/null and b/sdk/tools/linux/acp differ
diff --git a/sdk/tools/linux/aidl b/sdk/tools/linux/aidl
new file mode 100755 (executable)
index 0000000..746e25d
Binary files /dev/null and b/sdk/tools/linux/aidl differ
diff --git a/sdk/tools/linux/zipalign b/sdk/tools/linux/zipalign
new file mode 100755 (executable)
index 0000000..ddb8496
Binary files /dev/null and b/sdk/tools/linux/zipalign differ