15d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#!/bin/bash 25d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# 35d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Copyright (C) 2008 The Android Open Source Project 45d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# 55d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Licensed under the Apache License, Version 2.0 (the "License"); 65d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# you may not use this file except in compliance with the License. 75d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# You may obtain a copy of the License at 85d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# 95d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# http://www.apache.org/licenses/LICENSE-2.0 105d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# 115d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Unless required by applicable law or agreed to in writing, software 125d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# distributed under the License is distributed on an "AS IS" BASIS, 135d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 145d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# See the License for the specific language governing permissions and 155d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# limitations under the License. 165d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao 175d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Stop if something fails. 185d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaoset -e 195d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao 205d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Write out a bunch of interface source files. 215d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaogcc -o iface-gen iface-gen.c 225d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao./iface-gen 235d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao 245d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaomkdir classes 255d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao${JAVAC} -d classes src/*.java 265d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao 274407e61aa4cd75e6f31919cfca6a544d18b88c53Tsu Chiang Chuang${DX} --debug --dex --dump-to=classes.lst --output=classes.dex classes 28904667a58fa38437d1be6907beb3fb76d1982e0bBrian Carlstromzip $TEST_NAME.jar classes.dex 29