make/project.xml

Sat, 22 Jan 2022 11:06:11 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 22 Jan 2022 11:06:11 +0100
branch
webdav
changeset 269
3dfbd0b91950
parent 260
4779a6fb4fbe
child 270
4cfaa02055cd
permissions
-rw-r--r--

add ResourcePool initialization

<?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>
	
	<!-- platform specific settings -->
	<dependency platform="linux">
		<cflags>-DLINUX</cflags>
		<ldflags>-lpthread -ldl -lm -lldap</ldflags>
		<make>
# platform dependend source files
PLATFORM_DAEMONOBJ = event_linux.o

# platform dependend vars
OBJ_EXT = .o
LIB_EXT = .so
APP_EXT =
		</make>
	</dependency>
	
	<dependency platform="bsd" not="macos">
		<cflags>-DBSD -I/usr/local/include</cflags>
		<ldflags>-lpthread -lm -lldap</ldflags>
		<make>
# platform dependend source files
PLATFORM_DAEMONOBJ = event_bsd.o

# platform dependend vars
OBJ_EXT = .o
LIB_EXT = .so
APP_EXT =
		</make>
	</dependency>
	
	<dependency platform="macos">
		<cflags>-DBSD -DOSX</cflags>
		<ldflags>-lpthread -ldl -lm -lldap</ldflags>
		<make>
# platform dependend source files
PLATFORM_DAEMONOBJ = event_bsd.o

# platform dependend vars
OBJ_EXT = .o
LIB_EXT = .dylib
APP_EXT =
		</make>
	</dependency>
	
	<dependency platform="solaris">
		<cflags>-DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS</cflags>
		<ldflags>-lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap</ldflags>
		<make>
# platform dependend source files
PLATFORM_DAEMONOBJ = event_solaris.o

# platform dependend vars
OBJ_EXT = .o
LIB_EXT = .so
APP_EXT =
		</make>
	</dependency>

	<!-- library dependencies -->
	<dependency name="libxml2">
		<pkgconfig>libxml-2.0</pkgconfig>
	</dependency>
	
	<dependency name="openssl">
		<pkgconfig>openssl</pkgconfig>
	</dependency>
	
	<dependency name="openssl">
		<ldflags>-lssl -lcrypto</ldflags>
	</dependency>
	
	<!-- optional dependencies -->
	<dependency name="libpq">
		<pkgconfig>libpq</pkgconfig>
		<cflags>-DENABLE_POSTGRESQL</cflags>
	</dependency>
	
	<target>
		<feature name="postgresql" default="false">
			<dependencies>libpq</dependencies>
		</feature>
		<dependencies>libxml2,openssl</dependencies>
	</target>
</project>

mercurial