diff libpurple/win32/targets.mak @ 21297:5b1acbab99cf

Make purple.h a generated file so plugins can just include this and never worry about defining PURPLE_PLUGINS ever again (unless they build libpurple without plugin support, which would be stupid)
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Nov 2007 15:49:57 +0000
parents daf98e539358
children 008cfc009d0e
line wrap: on
line diff
--- a/libpurple/win32/targets.mak	Sat Nov 10 15:41:37 2007 +0000
+++ b/libpurple/win32/targets.mak	Sat Nov 10 15:49:57 2007 +0000
@@ -8,6 +8,9 @@
 $(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac
 	sed -e 's/@VERSION@/$(PIDGIN_VERSION)/' $@.mingw > $@
 
+$(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in
+	sed -e 's/@PLUGINS_DEFINE@/#define PURPLE_PLUGINS 1/; $@.in > $@
+
 $(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac
 	cp $@.in $@
 	awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \