comparison libpurple/win32/global.mak @ 16583:ce049678a67b

soname versioning of libpurple. Should help resolve debian bug 421282 All version control is within configure.ac now Adjust the define for purple_version_suffix as appropriate: [devel] - normal development periods [betaN] - for beta releases [] - for releases Follow the instructions in configure.ac to set the version number depending on how the API has changed (ie. following our normal version numbering!) version.h is auto-generated now Added purple_version_check(), purple_major_version, purple_minor_version, & purple_micro_version for run-time version comparisons in addition to the existing compile time macros. libpurple Plugins moved again, this time to: $(libdir)/purple-$PURPLE_MAJOR_VERSION This will allow parallel installations of different major libpurple versions in the future should someone wish to.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 28 Apr 2007 16:55:31 +0000
parents ded8da3de5f8
children 56c61eb40850
comparison
equal deleted inserted replaced
16582:60f9ac8421ef 16583:ce049678a67b
55 PIDGIN_PORTABLE_EXE := $(PIDGIN_TOP)/pidgin-portable.exe 55 PIDGIN_PORTABLE_EXE := $(PIDGIN_TOP)/pidgin-portable.exe
56 56
57 GCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef 57 GCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef
58 58
59 # parse the version number from the configure.ac file if it is newer 59 # parse the version number from the configure.ac file if it is newer
60 #AC_INIT([pidgin], [2.0.0dev], [devel@pidgin.im]) 60 #m4_define([purple_major_version], [2])
61 #m4_define([purple_minor_version], [0])
62 #m4_define([purple_micro_version], [0])
63 #m4_define([purple_version_suffix], [devel])
61 PIDGIN_VERSION := $(shell \ 64 PIDGIN_VERSION := $(shell \
62 if [ ! $(PIDGIN_TREE_TOP)/VERSION -nt $(PIDGIN_TREE_TOP)/configure.ac ]; then \ 65 if [ ! $(PIDGIN_TREE_TOP)/VERSION -nt $(PIDGIN_TREE_TOP)/configure.ac ]; then \
63 awk 'BEGIN {FS="\\] *, *\\["} /^AC_INIT\(.+\)/ {printf("%s",$$2); exit}' \ 66 awk 'BEGIN {FS="[\\(\\)\\[\\]]"} /^m4_define..purple_(major|minor)_version/ {printf("%s.",$$5);} /^m4_define..purple_micro_version/ {printf("%s",$$5);} /^m4_define..purple_version_suffix/ {printf("%s",$$5); exit}' \
64 $(PIDGIN_TREE_TOP)/configure.ac > $(PIDGIN_TREE_TOP)/VERSION; \ 67 $(PIDGIN_TREE_TOP)/configure.ac > $(PIDGIN_TREE_TOP)/VERSION; \
65 fi; \ 68 fi; \
66 cat $(PIDGIN_TREE_TOP)/VERSION \ 69 cat $(PIDGIN_TREE_TOP)/VERSION \
67 ) 70 )
68 PURPLE_VERSION := $(PIDGIN_VERSION) 71 PURPLE_VERSION := $(PIDGIN_VERSION)