summaryrefslogtreecommitdiff
path: root/build/dll-map-makefile-verifier
diff options
context:
space:
mode:
authorAaron Bockover <abock@gnome.org>2008-11-04 21:03:34 +0000
committerAaron Bockover <abock@src.gnome.org>2008-11-04 21:03:34 +0000
commitd93eecef3fbe7c3cb5f32fd6fd245c61ad4592b8 (patch)
tree3873e509f590bbd8884e8b2e144907fce182e7d8 /build/dll-map-makefile-verifier
parent0f5e829a57472ec1a8e5f26e973711658d5ae0a4 (diff)
Wrote a DllImport and config file map verifier tool that analyzes source
2008-11-04 Aaron Bockover <abock@gnome.org> * build/Makefile.am: * build/DllMapVerifier.cs: * build/dll-map-makefile-verifier: * build/build.rules.mk: Wrote a DllImport and config file map verifier tool that analyzes source code and the build to ensure that any DllImport reference in the code must have a map in the config file or an explicit ignore in the build; also ensures that if a config file exists, it is included in module_SCRIPTS so it gets installed in the system * src/Clients/Booter/Makefile.am: * src/Clients/Booter/Banshee.exe.config: * src/Clients/Booter/Booter/Entry.cs: * src/Backends/Banshee.Unix/Banshee.Unix.dll.config: * src/Backends/Banshee.Unix/Makefile.am: * src/Libraries/Hyena.Gui/Hyena.Gui.dll.config: Fixed up more DLL maps svn path=/trunk/banshee/; revision=4775
Diffstat (limited to 'build/dll-map-makefile-verifier')
-rwxr-xr-xbuild/dll-map-makefile-verifier10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/dll-map-makefile-verifier b/build/dll-map-makefile-verifier
new file mode 100755
index 000000000..35233e04f
--- /dev/null
+++ b/build/dll-map-makefile-verifier
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ -f $2 ]; then
+ # Lame, but better than nothing
+ grep $(basename $2) $1 | grep module_SCRIPTS &>/dev/null || {
+ echo "Assembly has corresponding .config file, but it was not found in module_SCRIPTS in Makefile.am" 2>&1
+ exit 1
+ }
+fi
+