grim/purple-spasm

Parents 05c3535bea7c
Children 9a56c09c9f6a
Add support for setting a PLUGIN_VERSION that gets passed along to the build
--- a/helloworld.c Mon Apr 24 22:36:36 2017 -0500
+++ b/helloworld.c Mon Apr 24 22:39:00 2017 -0500
@@ -26,7 +26,7 @@
.id = "core-hello_world",
.name = "Hello World!",
- .version = "1.1",
+ .version = PLUGIN_VERSION,
.summary = "Hello World Plugin",
.description = "Hello World Plugin",
--- a/libpurple.mk Mon Apr 24 22:36:36 2017 -0500
+++ b/libpurple.mk Mon Apr 24 22:39:00 2017 -0500
@@ -76,7 +76,8 @@
ADDITIONAL_CFLAGS := \
-DDATADIR=$(LIBPURPLE_DATA_DIR) \
-DLIBDIR=$(LIBPURPLE_LIB_DIR) \
- -DPIXMAPSDIR=$(LIBPURPLE_DATA_DIR)/pixmaps/pidgin
+ -DPIXMAPSDIR=$(LIBPURPLE_DATA_DIR)/pixmaps/pidgin \
+ -DPLUGIN_VERSION=\"$(PLUGIN_VERSION)\"
.PHONY: all clean install uninstall