$top_of_module=1 if ($apath =~ m+/kdereview/CMakeLists.txt+);
74
74
$top_of_module=1 if ($apath =~ m+/playground/[a-zA-Z_1-9]*/CMakeLists.txt+);
75
75
$top_of_module=1 if ($apath =~ m+/extragear/[a-zA-Z_1-9]*/CMakeLists.txt+);
76
$top_of_module=1 if ($apath =~ m+/kde(libs|pimlibs|base|accessibility|addons|admin|artwork|bindings|edu|games|graphics|multimedia|network|pim|sdk|toys|utils|develop|devplatform|webdev)/CMakeLists.txt+);
76
$top_of_module=1 if ($apath =~ m+/kdebase/(apps|runtime|workspace)/CMakeLists.txt+);
77
$top_of_module=1 if ($apath =~ m+/kde(libs|pimlibs|base|base-apps|base-runtime|base-workspace|accessibility|addons|admin|artwork|bindings|edu|games|graphics|multimedia|network|pim|sdk|toys|utils|develop|devplatform|webdev|plasmoids)/CMakeLists.txt+);
77
78
78
79
my($top_of_project)=0;
79
80
$top_of_project=1 if ($apath =~ m+/koffice/[a-zA-Z_1-9]*/CMakeLists.txt+);
80
81
$top_of_project=1 if ($apath =~ m+/kdereview/[a-zA-Z_1-9]*/CMakeLists.txt+);
81
82
$top_of_project=1 if ($apath =~ m+/playground/[a-zA-Z_1-9]*/[a-zA-Z_1-9]*/CMakeLists.txt+);
82
83
$top_of_project=1 if ($apath =~ m+/extragear/[a-zA-Z_1-9]*/[a-zA-Z_1-9]*/CMakeLists.txt+);
83
$top_of_project=1 if ($apath =~ m+/kde(libs|pimlibs|base|accessibility|addons|admin|artwork|bindings|edu|games|graphics|multimedia|network|pim|sdk|toys|utils|develop|devplatform|webdev)/[a-zA-Z_1-9]*/CMakeLists.txt+);
84
$top_of_project=1 if ($apath =~ m+/kde(libs|pimlibs|base|accessibility|addons|admin|artwork|bindings|edu|games|graphics|multimedia|network|pim|sdk|toys|utils|develop|devplatform|webdev|plasmoids)/[a-zA-Z_1-9]*/CMakeLists.txt+);
84
85
$top_of_project=0 if ($apath =~ m+/(cmake|pics)/+);
85
86
86
87
my(@lines) = <IN>;
125
126
}
126
127
if ($line =~ m/macro_log_feature\(\s*([A-Z0-9_]*).*\)/i) {
127
128
$pack = lc($1);
128
$pack = "libxslt" if ($pack eq "xsltproc_executable");
129
if ($pack !~ m/^(have|pcre|boost|gpgme|x11|strigiqtdbusclient)_/) {
129
if ($pack !~ m/^(have|pcre|boost|gpgme|x11|strigiqtdbusclient|xsltproc)_/ &&
130
$pack !~ m/true/i && $pack !~ m/false/i) {
130
131
$pack =~ s/_found//;
132
$pack =~ s/_video//;
131
133
if (!defined($optpacks{$pack}{'name'})) {
132
134
$issues++;
133
135
&printIssue($line,$linecnt,"macro_log_feature($pack) used without macro_optional_find_package()");