# HG changeset patch
# User Mike Becker
# Date 1705761436 -3600
# Node ID ea36fd802446328e1913d9f7b5fcd4d2608aa956
# Parent 01ec9f32835e71465cf50887613f0ad6fd830f43
adds documentation for new toolchain attr to XSD
relates to #346
diff -r 01ec9f32835e -r ea36fd802446 src/main/resources/make/configure.vm
--- a/src/main/resources/make/configure.vm Sat Jan 20 14:56:50 2024 +0100
+++ b/src/main/resources/make/configure.vm Sat Jan 20 15:37:16 2024 +0100
@@ -224,6 +224,26 @@
done
return 0
}
+istoolchain()
+{
+ for t in $TOOLCHAIN
+ do
+ if [ "$t" = "$1" ]; then
+ return 0
+ fi
+ done
+ return 1
+}
+notistoolchain()
+{
+ for t in $TOOLCHAIN
+ do
+ if [ "$t" = "$1" ]; then
+ return 1
+ fi
+ done
+ return 0
+}
]]#
## End of unparsed content **
@@ -252,6 +272,7 @@
# toolchain detection utilities
. make/toolchain.sh
+TOOLCHAIN="${D}{TOOLCHAIN_NAME}"
#
# DEPENDENCIES
@@ -303,8 +324,13 @@
break
fi
#end
+ #if( $sub.toolchain )
+ if notistoolchain "${sub.toolchain}"; then
+ break
+ fi
+ #end
#foreach( $np in $sub.notList )
- if isplatform "${np}"; then
+ if isplatform "${np}" || istoolchain "${np}"; then
break
fi
#end
@@ -380,8 +406,13 @@
break
fi
#end
+ #if( $dependency.toolchain )
+ if notistoolchain "${dependency.toolchain}"; then
+ break
+ fi
+ #end
#foreach( $np in $dependency.notList )
- if isplatform "${np}"; then
+ if isplatform "${np}" || istoolchain "${np}"; then
break
fi
#end
diff -r 01ec9f32835e -r ea36fd802446 src/main/resources/make/uwproj.xsd
--- a/src/main/resources/make/uwproj.xsd Sat Jan 20 14:56:50 2024 +0100
+++ b/src/main/resources/make/uwproj.xsd Sat Jan 20 15:37:16 2024 +0100
@@ -102,9 +102,11 @@
The optional platform
attribute may specify a single platform identifier and
- the optional not
attribute may specify a comma-separated list of platform identifiers.
- The configure script shall skip this dependency declaration if the detected platform is not
- matching the filter specification of these attributes.
+ the optional toolchain
attribute may specify a single toolchain.
+ The optional not
attribute may specify a comma-separated list of platform and/or
+ toolchain identifiers.
+ The configure script shall skip this dependency declaration if the detected platform and toolchain
+ is not matching the filter specification of these attributes.
@@ -125,6 +127,7 @@
+
diff -r 01ec9f32835e -r ea36fd802446 test/make/configure.vm
--- a/test/make/configure.vm Sat Jan 20 14:56:50 2024 +0100
+++ b/test/make/configure.vm Sat Jan 20 15:37:16 2024 +0100
@@ -204,8 +204,6 @@
PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -`
echo "$PLATFORM_NAME"
-TOOLCHAIN=
-
isplatform()
{
for p in $PLATFORM
@@ -274,6 +272,7 @@
# toolchain detection utilities
. make/toolchain.sh
+TOOLCHAIN="${D}{TOOLCHAIN_NAME}"
#
# DEPENDENCIES
@@ -287,7 +286,6 @@
lang_${lang}=1
fi
#end
-TOOLCHAIN=$TOOLCHAIN_NAME
# create buffer for make variables required by dependencies
echo > "$TEMP_DIR/make.mk"
diff -r 01ec9f32835e -r ea36fd802446 test/make/uwproj.xsd
--- a/test/make/uwproj.xsd Sat Jan 20 14:56:50 2024 +0100
+++ b/test/make/uwproj.xsd Sat Jan 20 15:37:16 2024 +0100
@@ -102,9 +102,11 @@
The optional platform
attribute may specify a single platform identifier and
- the optional not
attribute may specify a comma-separated list of platform identifiers.
- The configure script shall skip this dependency declaration if the detected platform is not
- matching the filter specification of these attributes.
+ the optional toolchain
attribute may specify a single toolchain.
+ The optional not
attribute may specify a comma-separated list of platform and/or
+ toolchain identifiers.
+ The configure script shall skip this dependency declaration if the detected platform and toolchain
+ is not matching the filter specification of these attributes.
@@ -125,6 +127,7 @@
+