summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-profile-core/classes')
-rw-r--r--meta-agl-profile-core/classes/cloc.bbclass33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta-agl-profile-core/classes/cloc.bbclass b/meta-agl-profile-core/classes/cloc.bbclass
deleted file mode 100644
index 9b73704e8..000000000
--- a/meta-agl-profile-core/classes/cloc.bbclass
+++ /dev/null
@@ -1,33 +0,0 @@
-# (C) 2017 Jan-Simon Möller <dl9pf@gmx.de>
-#
-# License: GPLv2
-#
-# summary with
-# cloc --sum-reports `find . -name "*clocreport" | grep -v "\-native" ` --out summary.report
-
-# cloc needs to be installed on the host
-# FIXME: create a cloc-native
-HOSTTOOLS += "cloc"
-
-CLOC_DIRECTORY ??= "${DEPLOY_DIR}/cloc/"
-CLOCSTATEDIR = "${WORKDIR}/cloc-destdir/"
-
-python do_cloc() {
-
- import subprocess
-
- source_dir = d.getVar('S', True)
- pn = d.getVar('PN', True)
-
- destdir = d.expand('${CLOCSTATEDIR}')
- bb.utils.mkdirhier(destdir)
-
- cloc_cmd = 'cloc %s -q --out=%s/%s.clocreport' % (source_dir, destdir, pn )
- subprocess.call(cloc_cmd, shell=True)
-
-}
-
-
-addtask cloc before do_configure after do_patch
-
-EXPORT_FUNCTIONS do_cloc