00001 * 00002 /*! 00003 * @file jni/src/harmony/generic/0.0/common.sh 00004 * 00005 * @brief Common code for building the sample JNI subset, showing 00006 * how to reference the local native methods, but 00007 * using the full JNI mechanism. 00008 * 00009 * This script is common to @b build.sh and @b clean.sh and is not 00010 * designed to do anything on its own. 00011 * 00012 * Each of these directories contains a @b build.sh script. In addition 00013 * to these, an Eclipse project file is available in each for use with 00014 * the Eclipse C/C++ plugin, so this entire directory tree may be 00015 * imported wholesale into an Eclipse workspace and used without 00016 * changes. (Eclipse 3.0.2 generated these files.) Notice that 00017 * the Eclipse setup does not build the documentation set. This must 00018 * be done manually with the top-level 'build.sh dox'. 00019 * 00020 * Each of these directories also contains a @b clean.sh script which 00021 * removes the output of @b build.sh. 00022 * 00023 * @attention The configuration options stored by 'config.sh' into the 00024 * file @b config/confopts.gcc are @e not directly available to 00025 * Eclipse and @e must be manually entered there after they are 00026 * established by @link config.sh config.sh@endlink. They 00027 * should be entered in the project build parameters for C/C++ in the 00028 * miscellaneous parameters section. For example, '-m32' and '-m64'. 00029 * For a command line GCC invocation, the following is a convenient 00030 * way to incorporate the options: 00031 * 00032 * @verbatim 00033 * 00034 * $ gcc `cat ../../../../../config/config_opts_always.gcc` \ 00035 * `cat ../../../../../config/config_opts_usually.gcc` \ 00036 * -c filename.c ... 00037 * 00038 * @endverbatim 00039 * 00040 * Notice that this script may be run instead of or as well as an 00041 * Eclipse build. The only difference is where the object files 00042 * are stored. 00043 * 00044 * 00045 * @see @link jni/src/harmony/generic/0.0/build.sh 00046 * jni/src/harmony/generic/0.0/build.sh@endlink 00047 * 00048 * @see @link jni/src/harmony/generic/0.0/clean.sh 00049 * jni/src/harmony/generic/0.0/clean.sh@endlink 00050 * 00051 * @see @link ./build.sh ./build.sh@endlink 00052 * 00053 * @see @link ./clean.sh ./clean.sh@endlink 00054 * 00055 * @see @link ./common.sh ./common.sh@endlink 00056 * 00057 * 00058 * @todo A Windows .BAT version of this script needs to be written 00059 * 00060 * 00061 * @section Control 00062 * 00063 * \$URL: https://svn.apache.org/path/name/common.sh $ \$Id: common.sh 0 09/28/2005 dlydick $ 00064 * 00065 * Copyright 2005 The Apache Software Foundation 00066 * or its licensors, as applicable. 00067 * 00068 * Licensed under the Apache License, Version 2.0 ("the License"); 00069 * you may not use this file except in compliance with the License. 00070 * You may obtain a copy of the License at 00071 * 00072 * http://www.apache.org/licenses/LICENSE-2.0 00073 * 00074 * Unless required by applicable law or agreed to in writing, 00075 * software distributed under the License is distributed on an 00076 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00077 * either express or implied. 00078 * 00079 * See the License for the specific language governing permissions 00080 * and limitations under the License. 00081 * 00082 * @version \$LastChangedRevision: 0 $ 00083 * 00084 * @date \$LastChangedDate: 09/28/2005 $ 00085 * 00086 * @author \$LastChangedBy: dlydick $ 00087 * Original code contributed by Daniel Lydick on 09/28/2005. 00088 * 00089 * @section Reference 00090 * 00091 */ /* 00092 * (Use #! and #/ with dox_filter.sh to fool Doxygen into 00093 * parsing this non-source text file for the documentation set. 00094 * Use the above open comment to force termination of parsing 00095 * since it is not a Doxygen-style 'C' comment.) 00096 * 00097 * 00098 *################################################################## 00099 * 00100 * Script setup 00101 * 00102 * 00103 * EOF 00104