test/make/project.xml

Tue, 12 Nov 2024 17:11:55 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 12 Nov 2024 17:11:55 +0100
changeset 124
a93fe3c0b916
parent 120
0e3827ebc6e4
permissions
-rw-r--r--

fix that --update overwrites .mk files - fixes #505

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

	<dependency toolchain="gcc">
		<cflags>-DTOOLCHAIN_GCC</cflags>
	</dependency>

	<dependency toolchain="clang">
		<cflags>-DTOOLCHAIN_CLANG</cflags>
	</dependency>

	<dependency not="gcc">
		<cflags>-DNOT_TOOLCHAIN_GCC</cflags>
	</dependency>

	<dependency not="clang">
		<cflags>-DNOT_TOOLCHAIN_CLANG</cflags>
	</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" toolchain="clang">
		<pkgconfig>openssl</pkgconfig>
		<lang>c</lang>
		<cflags>-DOPENSSL_CLANG</cflags>
	</dependency>
	
	<dependency name="openssl" platform="bsd">
		<ldflags>-lssl -lcrypto</ldflags>
	</dependency>

	<dependency name="openssl">
		<pkgconfig>openssl</pkgconfig>
		<lang>c</lang>
	</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