test/make/project.xml

Thu, 23 Feb 2023 13:11:26 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 23 Feb 2023 13:11:26 +0100
changeset 18
0df7309d498e
parent 15
971ac4f0f1df
child 29
5e958351935d
permissions
-rw-r--r--

add PREFIX parameter to install script

<?xml version="1.0" encoding="UTF-8"?>
<project>
	<!-- makefile config -->
	<config>
		<var name="HOST" type="exec">uname -n</var>
		<var name="PREFIX">`pwd`/work</var>
		<var name="INSTALL_DIR">$PREFIX</var>
	</config>
	
	<dependency>
		<lang>c++</lang>
	</dependency>

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

	<dependency name="libxml2">
		<pkgconfig>libxml-2.0</pkgconfig>
	</dependency>
	
	<dependency name="openssl">
		<pkgconfig>openssl</pkgconfig>
	</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="false">
			<dependencies>libpq</dependencies>
		</feature>
		<dependencies>libxml2,openssl</dependencies>
	</target>
</project>

mercurial