diff options
| author | Xavier Ducrohet <xav@android.com> | 2009-11-17 15:11:59 -0800 |
|---|---|---|
| committer | Xavier Ducrohet <xav@android.com> | 2009-11-17 15:17:25 -0800 |
| commit | 19cb54ea7da270254852dcd1f476fe1becf1e8a9 (patch) | |
| tree | ab5ea192a5354547035e8b0840d06b6496a88d7b /tools/sdkmanager/app/etc | |
| parent | f4c63fae0c6d0654ab49e05b3292e218f82f97d8 (diff) | |
| download | android_development-19cb54ea7da270254852dcd1f476fe1becf1e8a9.tar.gz android_development-19cb54ea7da270254852dcd1f476fe1becf1e8a9.tar.bz2 android_development-19cb54ea7da270254852dcd1f476fe1becf1e8a9.zip | |
Remove components that were moved to sdk.git and update build scripts.
Diffstat (limited to 'tools/sdkmanager/app/etc')
| -rw-r--r-- | tools/sdkmanager/app/etc/Android.mk | 8 | ||||
| -rwxr-xr-x | tools/sdkmanager/app/etc/android | 117 | ||||
| -rwxr-xr-x | tools/sdkmanager/app/etc/android.bat | 70 | ||||
| -rw-r--r-- | tools/sdkmanager/app/etc/manifest.txt | 1 |
4 files changed, 0 insertions, 196 deletions
diff --git a/tools/sdkmanager/app/etc/Android.mk b/tools/sdkmanager/app/etc/Android.mk deleted file mode 100644 index 8723cd89f..000000000 --- a/tools/sdkmanager/app/etc/Android.mk +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2008 The Android Open Source Project -# -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_PREBUILT_EXECUTABLES := android -include $(BUILD_HOST_PREBUILT) - diff --git a/tools/sdkmanager/app/etc/android b/tools/sdkmanager/app/etc/android deleted file mode 100755 index 8feb5f263..000000000 --- a/tools/sdkmanager/app/etc/android +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/sh -# Copyright 2005-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=sdkmanager.jar -frameworkdir="$progdir" -libdir="$progdir" -if [ ! -r "$frameworkdir/$jarfile" ] -then - frameworkdir=`dirname "$progdir"`/tools/lib - libdir=`dirname "$progdir"`/tools/lib -fi -if [ ! -r "$frameworkdir/$jarfile" ] -then - frameworkdir=`dirname "$progdir"`/framework - libdir=`dirname "$progdir"`/lib -fi -if [ ! -r "$frameworkdir/$jarfile" ] -then - echo `basename "$prog"`": can't find $jarfile" - exit 1 -fi - - -# Check args. -if [ debug = "$1" ]; then - # add this in for debugging - java_debug=-agentlib:jdwp=transport=dt_socket,server=y,address=8050,suspend=y - shift 1 -else - java_debug= -fi - -java_cmd="java" - -# Mac OS X needs an additional arg, or you get an "illegal thread" complaint. -if [ `uname` = "Darwin" ]; then - os_opts="-XstartOnFirstThread" -else - os_opts= -fi - -if [ `uname` = "Linux" ]; then - export GDK_NATIVE_WINDOWS=true -fi - -if [ "$OSTYPE" = "cygwin" ] ; then - jarpath=`cygpath -w "$frameworkdir/$jarfile"` - progdir=`cygpath -w "$progdir"` -else - jarpath="$frameworkdir/$jarfile" -fi - -# Figure out the path to the swt.jar for the current architecture. -# if ANDROID_SWT is defined, then just use this. -# else, if running in the Android source tree, then look for the correct swt folder in prebuilt -# else, look for the correct swt folder in the SDK under tools/lib/ -swtpath="" -if [ -n "$ANDROID_SWT" ]; then - swtpath="$ANDROID_SWT" -else - vmarch=`${java_cmd} -jar "${frameworkdir}"/archquery.jar` - if [ -n "$ANDROID_BUILD_TOP" ]; then - osname=`uname -s | tr A-Z a-z` - swtpath="${ANDROID_BUILD_TOP}/prebuilt/${osname}-${vmarch}/swt" - else - swtpath="${frameworkdir}/${vmarch}" - fi -fi - -# Combine the swtpath and the framework dir path. -if [ -d "$swtpath" ]; then - frameworkdir="${swtpath}:${frameworkdir}" -else - echo "SWT folder '${swtpath}' does not exist." - echo "Please export ANDROID_SWT to point to the folder containing swt.jar for your platform." - exit 1 -fi - -if [ -z "$1" ]; then - echo "Starting Android SDK and AVD Manager" -fi - -# need to use "java.ext.dirs" because "-jar" causes classpath to be ignored -# might need more memory, e.g. -Xmx128M -exec "$java_cmd" -Xmx256M $os_opts $java_debug -Djava.ext.dirs="$frameworkdir" -Dcom.android.sdkmanager.toolsdir="$progdir" -jar "$jarpath" "$@" diff --git a/tools/sdkmanager/app/etc/android.bat b/tools/sdkmanager/app/etc/android.bat deleted file mode 100755 index 58790ce1a..000000000 --- a/tools/sdkmanager/app/etc/android.bat +++ /dev/null @@ -1,70 +0,0 @@ -@echo off -rem Copyright (C) 2007 The Android Open Source Project -rem -rem Licensed under the Apache License, Version 2.0 (the "License"); -rem you may not use this file except in compliance with the License. -rem You may obtain a copy of the License at -rem -rem http://www.apache.org/licenses/LICENSE-2.0 -rem -rem Unless required by applicable law or agreed to in writing, software -rem distributed under the License is distributed on an "AS IS" BASIS, -rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -rem See the License for the specific language governing permissions and -rem limitations under the License. - -rem don't modify the caller's environment -setlocal - -rem Set up prog to be the path of this script, including following symlinks, -rem and set up progdir to be the fully-qualified pathname of its directory. -set prog=%~f0 - -rem Grab current directory before we change it -set workdir=%cd% - -rem Change current directory and drive to where the script is, to avoid -rem issues with directories containing whitespaces. -cd /d %~dp0 - -set jarpath=lib\sdkmanager.jar - -rem Set SWT.Jar path based on current architecture (x86 or x86_64) -for /f %%a in ('java -jar lib\archquery.jar') do set swt_path=lib\%%a - -if "%1 %2"=="update sdk" goto StartUi -if not "%1"=="" goto EndTempCopy -:StartUi - echo Starting Android SDK and AVD Manager - - rem We're now going to create a temp dir to hold all the Jar files needed - rem to run the android tool, copy them in the temp dir and finally execute - rem from that path. We do this only when the launcher is run without - rem arguments, to display the SDK Updater UI. This allows the updater to - rem update the tools directory where the updater itself is located. - - set tmpdir=%TEMP%\temp-android-tool - xcopy lib\x86 %tmpdir%\lib\x86 /I /E /C /G /R /Y /Q > nul - copy /B /D /Y lib\androidprefs.jar %tmpdir%\lib\ > nul - copy /B /D /Y lib\org.eclipse.* %tmpdir%\lib\ > nul - copy /B /D /Y lib\sdk* %tmpdir%\lib\ > nul - copy /B /D /Y lib\commons-compress* %tmpdir%\lib\ > nul - - rem jarpath and swt_path are relative to PWD so we don't need to adjust them, just change dirs. - set toolsdir=%cd% - cd %tmpdir% - -:EndTempCopy - -rem The global ANDROID_SWT always override the SWT.Jar path -if defined ANDROID_SWT set swt_path=%ANDROID_SWT% - -if exist %swt_path% goto SetPath - echo SWT folder '%swt_path%' does not exist. - echo Please set ANDROID_SWT to point to the folder containing swt.jar for your platform. - exit /B - -:SetPath -set javaextdirs=%swt_path%;lib\ - -call java -Djava.ext.dirs=%javaextdirs% -Dcom.android.sdkmanager.toolsdir="%toolsdir%" -Dcom.android.sdkmanager.workdir="%workdir%" -jar %jarpath% %* diff --git a/tools/sdkmanager/app/etc/manifest.txt b/tools/sdkmanager/app/etc/manifest.txt deleted file mode 100644 index 56766348f..000000000 --- a/tools/sdkmanager/app/etc/manifest.txt +++ /dev/null @@ -1 +0,0 @@ -Main-Class: com.android.sdkmanager.Main |
