test/make/project.xml

Fri, 19 Jan 2024 21:23:56 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 19 Jan 2024 21:23:56 +0100
changeset 102
bc7837852b7c
parent 88
0a663c3692a0
child 103
01ec9f32835e
permissions
-rw-r--r--

add OpenBSD and NetBSD platform detection

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://unixwork.de/uwproj">
	<!-- makefile config -->
	<config>
		<var name="HOST" exec="true">uname -n</var>
		<var name="prefix">`pwd`/work</var>
		<var name="install_dir">$prefix</var>
	</config>
	
	<dependency>
		<lang>c</lang>
	</dependency>
	
	<dependency name="cpp">
		<lang>cpp</lang>
	</dependency>	

	<!-- library dependencies -->
	<dependency name="libxml2" platform="macos">
		<cflags exec="true">xml2-config --cflags</cflags>
		<ldflags exec="true">xml2-config --libs</ldflags>
	</dependency>

	<dependency name="libxml2">
		<pkgconfig>libxml-2.0</pkgconfig>
	</dependency>
	
	<dependency name="openssl">
		<pkgconfig>openssl</pkgconfig>
		<lang>c</lang>
	</dependency>
	
	<dependency name="openssl" platform="bsd">
		<ldflags>-lssl -lcrypto</ldflags>
	</dependency>
    
	<!-- optional dependencies -->
	<dependency name="libpq">
		<pkgconfig>libpq</pkgconfig>
	</dependency>
	
	<target>
		<feature name="pg" default="true">
			<dependencies>libpq,cpp</dependencies>
		</feature>
		<dependencies>libxml2,openssl</dependencies>
	</target>
</project>

mercurial