00001 * 00002 /*! 00003 * @file jni/src/harmony/generic/0.0/build.sh 00004 * 00005 * @brief Build Sample JNI subset, showing how to reference 00006 * the local native methods, but using the full 00007 * JNI mechanism. 00008 * 00009 * Compile Java source files into class files, but do @e not create 00010 * a JAR file. Then compile 'C' source files into object files and 00011 * link into a target binary file. 00012 * 00013 * This binary really should be a shared object .so/.dll file, but that 00014 * is a task for the project team. This is only a quick sample. 00015 * 00016 * @see @link jni/src/harmony/generic/0.0/clean.sh 00017 * jni/src/harmony/generic/0.0/clean.sh@endlink 00018 * 00019 * @see @link jni/src/harmony/generic/0.0/common.sh 00020 * jni/src/harmony/generic/0.0/common.sh@endlink 00021 * 00022 * @see @link ./build.sh ./build.sh@endlink 00023 * 00024 * @see @link ./clean.sh ./clean.sh@endlink 00025 * 00026 * @see @link ./common.sh ./common.sh@endlink 00027 * 00028 * 00029 * @todo The linked binary should be converted to a 00030 * shared object .so/.dll file instead. 00031 * 00032 * @todo A Windows .BAT version of this script needs to be written 00033 * 00034 * 00035 * @section Control 00036 * 00037 * \$URL: https://svn.apache.org/path/name/build.sh $ \$Id: build.sh 0 09/28/2005 dlydick $ 00038 * 00039 * Copyright 2005 The Apache Software Foundation 00040 * or its licensors, as applicable. 00041 * 00042 * Licensed under the Apache License, Version 2.0 ("the License"); 00043 * you may not use this file except in compliance with the License. 00044 * You may obtain a copy of the License at 00045 * 00046 * http://www.apache.org/licenses/LICENSE-2.0 00047 * 00048 * Unless required by applicable law or agreed to in writing, 00049 * software distributed under the License is distributed on an 00050 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00051 * either express or implied. 00052 * 00053 * See the License for the specific language governing permissions 00054 * and limitations under the License. 00055 * 00056 * @version \$LastChangedRevision: 0 $ 00057 * 00058 * @date \$LastChangedDate: 09/28/2005 $ 00059 * 00060 * @author \$LastChangedBy: dlydick $ 00061 * Original code contributed by Daniel Lydick on 09/28/2005. 00062 * 00063 * @section Reference 00064 * 00065 */ /* 00066 * (Use #! and #/ with dox_filter.sh to fool Doxygen into 00067 * parsing this non-source text file for the documentation set. 00068 * Use the above open comment to force termination of parsing 00069 * since it is not a Doxygen-style 'C' comment.) 00070 * 00071 * 00072 *################################################################## 00073 * 00074 * Script setup 00075 * 00076 *################################################################## 00077 * 00078 * Construct output area. Since Eclipse uses 'bin/src' for its 00079 * output area, there should not be a conflict unless Eclipse does 00080 * a 'make clean', which removes and rebuilds 'bin'. 00081 * 00082 *################################################################## 00083 * 00084 * Build Java class files from source code (do @e not create JAR file) 00085 * 00086 *################################################################## 00087 * 00088 * Build 'C' object files from source code 00089 * 00090 *################################################################## 00091 * 00092 * Link final binary file from object code 00093 * 00094 *################################################################## 00095 * 00096 * Done. 00097 * 00098 * 00099 * EOF 00100