--- a/make/project.xml Mon Feb 12 21:13:23 2024 +0100 +++ b/make/project.xml Sun Jun 09 15:43:08 2024 +0200 @@ -1,5 +1,51 @@ <?xml version="1.0" encoding="UTF-8"?> -<project> +<project xmlns="http://unixwork.de/uwproj"> + <dependency> + <lang>c</lang> + </dependency> + + <dependency name="curl" platform="macos"> + <cflags exec="true">curl-config --cflags</cflags> + <ldflags exec="true">curl-config --ldflags</ldflags> + </dependency> + <dependency name="curl"> + <pkgconfig>libcurl</pkgconfig> + </dependency> + <dependency name="curl"> + <cflags exec="true">curl-config --cflags</cflags> + <ldflags exec="true">curl-config --libs</ldflags> + </dependency> + + <dependency name="libxml2" platform="windows"> + <cflags exec="true">xml2-config --cflags</cflags> + <ldflags exec="true">xml2-config --libs</ldflags> + </dependency> + <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="libxml2"> + <cflags exec="true">xml2-config --cflags</cflags> + <ldflags exec="true">xml2-config --libs</ldflags> + </dependency> + + <dependency name="openssl" platform="windows"> + <ldflags>-lssl -lcrypto</ldflags> + </dependency> + <dependency name="openssl" platform="macos"> + <ldflags>-framework CoreFoundation</ldflags> + </dependency> + <dependency name="openssl" platform="bsd" not="macos"> + <ldflags>-lssl -lcrypto</ldflags> + </dependency> + <dependency name="openssl"> + <pkgconfig>openssl</pkgconfig> + </dependency> + + <dependency name="gtk4"> <pkgconfig>gtk+-4.0</pkgconfig> <cflags>-DUI_GTK3</cflags> @@ -24,18 +70,22 @@ <dependency name="winui" platform="windows"> <cflags>-DUI_WINUI</cflags> </dependency> + + <!-- <dependency name="qt4"> <test>which qmake-qt4</test> - <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> - <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> - <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags> + <cflags exec="true">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> + <cflags exec="true">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> + <ldflags exec="true">qmake-qt4 -o - /dev/null | grep LIBS\ </ldflags> </dependency> + <dependency name="qt5"> <test>which qmake-qt5</test> - <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> - <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> - <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags> + <cflags exec="true">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> + <cflags exec="true">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> + <ldflags exec="true">qmake-qt5 -o - /dev/null | grep LIBS\ </ldflags> </dependency> + --> <dependency name="cocoa" platform="macos"> <cflags>-DUI_COCOA</cflags> <ldflags>-lobjc -framework Cocoa</ldflags> @@ -52,12 +102,12 @@ </dependency> <dependency platform="macos"> - <make>OBJ_EXT = .o</make> + <make>OBJ_EXT = o</make> <make>LIB_EXT = .a</make> <make>PACKAGE_SCRIPT = package_osx.sh</make> </dependency> <dependency platform="unix" not="macos"> - <make>OBJ_EXT = .o</make> + <make>OBJ_EXT = o</make> <make>LIB_EXT = .a</make> <make>PACKAGE_SCRIPT = package_unix.sh</make> </dependency> @@ -67,6 +117,10 @@ <ldflags>-L/usr/local/lib</ldflags> </dependency> + <target name="dav"> + <dependencies>curl,libxml2,openssl</dependencies> + </target> + <target name="tk"> <option arg="toolkit"> <value str="gtk4">