| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| 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. |
| --> |
| |
| <project name="hythr" default="build" basedir="../.."> |
| |
| <property name="component" value="hythr"/> |
| <import file="common-vm.xml"/> |
| |
| <condition property="hy.thr.ver" value="_0.1"> |
| <equals arg1="${hy.no.thr}" arg2="false" /> |
| </condition> |
| <property name="hy.thr.ver" value="" /> |
| |
| <target name="build" depends="-common-vm"> |
| <init-native/> |
| |
| <make-native libname="hythr" type="shared"> |
| <compiler id="c.compiler" extends="common.c.compiler"> |
| <includepath> |
| <pathelement location="${drlvm.include.dir}" /> |
| <path refid="vm.include"/> |
| <pathelement location="${vm.home}/thread/src" /> |
| <pathelement location="${hy.hdk}/include" /> |
| </includepath> |
| |
| <fileset dir="${vm.home}/thread/src"> |
| <include name="*.c" /> |
| <include name="win/*.c" if="is.windows"/> |
| <include name="linux/*.c" if="is.unix"/> |
| </fileset> |
| |
| <defineset define="APR_DECLARE_STATIC" /> |
| </compiler> |
| |
| <linker id="linker" extends="common.linker"> |
| <libset libs="port,apr-1" |
| dir="${drlvm.lib.dir}" /> |
| |
| <linkerarg value="/DEF:${vm.home}/thread/src/hythr.def" if="is.windows"/> |
| |
| <syslibset type="shared" libs="stdc++,rt,pthread" if="is.linux"/> |
| <syslibset type="shared" libs="stdc++,pthread" if="is.freebsd"/> |
| <linkerarg value="-Wl,-init" if="is.unix"/> |
| <linkerarg value="-Wl,hythread_library_init" if="is.unix"/> |
| <linkerarg value="-Wl,--version-script,${vm.home}/thread/src/hythr${hy.thr.ver}.exp" if="is.unix"/> |
| </linker> |
| </make-native> |
| </target> |
| |
| <target name="clean" > |
| <clean-native/> |
| </target> |
| |
| </project> |