diff options
author | Cyril Rossi <cyril.rossi@enioka.com> | 2020-02-03 13:50:17 +0100 |
---|---|---|
committer | Cyril Rossi <cyril.rossi@enioka.com> | 2020-04-22 09:13:09 +0200 |
commit | 00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf (patch) | |
tree | 5638cbcaea1c46cf079f7232b1248c00b445d804 /autotests/kconfig_compiler/test_subgroups.kcfg | |
parent | fb29718d3ac64bdc9e1f2a3d15a506f7798e4a76 (diff) | |
download | kconfig-00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf.tar.gz kconfig-00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf.tar.bz2 |
kconfig_compiler : generate kconfig settings with subgroup
Summary: Following D27059, add `parentGroupName` attribute to `group` element to generate kconfig settings with subgroups
Reviewers: ervin, dfaure, #frameworks, meven
Reviewed By: ervin, meven
Subscribers: apol, meven, kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D27133
Diffstat (limited to 'autotests/kconfig_compiler/test_subgroups.kcfg')
-rw-r--r-- | autotests/kconfig_compiler/test_subgroups.kcfg | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_subgroups.kcfg b/autotests/kconfig_compiler/test_subgroups.kcfg new file mode 100644 index 00000000..aa4ef948 --- /dev/null +++ b/autotests/kconfig_compiler/test_subgroups.kcfg @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 + http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + <kcfgfile name="kconfig_compiler_kf5_test_rc"> + <parameter name="GeneralGroup" /> + <parameter name="SubGroup"/> + <parameter name="AnotherSubGroup"/> + </kcfgfile> + <group name="$(SubGroup)" parentGroupName="$(GeneralGroup)"> + <entry name="Foo" type="Bool"> + <default>true</default> + </entry> + </group> + <group name="other" parentGroupName="$(GeneralGroup)"> + <entry name="Bar" type="Int"> + <default>42</default> + </entry> + </group> + <group name="$(AnotherSubGroup)" parentGroupName="ParentGroup"> + <entry name="Baz" type="Bool"> + <default>true</default> + </entry> + </group> + <group name="SimpleGroup" parentGroupName="SimpleParentGroup"> + <entry name="Foobar" type="Bool"> + <default>true</default> + </entry> + </group> +</kcfg> |