| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. --> |
| |
| <!-- ====================================================================== |
| build-native-source |
| Compile the native source into component shared libs. |
| ====================================================================== --> |
| <project name="build-native-source" default="build" basedir=".."> |
| <description> |
| Compile the native source into component shared libs. |
| </description> |
| |
| <!-- import common properties --> |
| <import file="${basedir}/make/properties.xml" /> |
| |
| <property name="depends.build" location="depends/build" /> |
| <property name="depends.libs" location="depends/libs/${hy.platform}" /> |
| <property name="depends.files" location="depends/files" /> |
| <property name="native.lib.target" location="${jdktools.deploy.dir}/lib" /> |
| |
| <target name="build" depends="-layout, build-modules" /> |
| |
| <target name="clean" depends="clean-modules, -clean-layout" /> |
| |
| <target name="build-modules" > |
| <mkdir dir="${native.lib.target}" /> |
| <call-modules target="build-native" /> |
| </target> |
| |
| <target name="clean-modules" > |
| <call-modules target="clean-native" /> |
| <delete dir="${native.lib.target}" /> |
| </target> |
| |
| <target name="-layout" |
| description="Construct the correct directory structure for native binaries"> |
| |
| <!-- Create the target directory structure --> |
| <mkdir dir="${jdktools.deploy.dir}/jre/bin" /> |
| <mkdir dir="${jdktools.deploy.dir}/include" /> |
| <mkdir dir="${native.lib.target}"/> |
| </target> |
| |
| <target name="-clean-layout"> |
| <delete includeemptydirs="true" failonerror="false"> |
| <fileset dir="${jdktools.deploy.dir}"> |
| <include name="**/bin/java${exe.suffix}" /> |
| <include name="**/bin/javaw${exe.suffix}" /> |
| <include name="**/bin/*${shlib.suffix}*" /> |
| <include name="**/bin/*${progdb.suffix}*" /> |
| <include name="**/bin/harmony*.properties" /> |
| </fileset> |
| </delete> |
| </target> |
| |
| </project> |