build system: introduce a new feature called build variants. it allows building a...
[lede-git/.git] / scripts / metadata.pm
index 8302728be6cd26a849d2e09acfe6a2892e355977..b7a448b617248efa47bccabf62ce353d5575e65d 100644 (file)
@@ -112,6 +112,7 @@ sub parse_package_metadata($) {
                        }
                };
                /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
+               /^Build-Variant: \s*(\w+)\s*/ and $pkg->{variant} = $1;
                /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;
                /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ];
                /^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ];