annotate Makefile.mingw @ 32598:1798b24a4fd5

Fix history plugin compile.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 08 Sep 2011 23:28:40 +0000
parents c43570e34d81
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 # Makefile.mingw
8615
f26e7dc1805e [gaim-migrate @ 9366]
Luke Schierer <lschiere@pidgin.im>
parents: 7056
diff changeset
2 #
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 # Author: hermanator12002@yahoo.com
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4 # Date 9/11/02
25402
0c7b74fc558e Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents: 23962
diff changeset
5 # Description: Top Makefile for win32 (mingw) port of Pidgin and libpurple
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
7
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
8 PIDGIN_TREE_TOP := .
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
9 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10804
6dcfec6f2f7c [gaim-migrate @ 12452]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10201
diff changeset
10
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
11 # Generate a X.X.X.X version for the installer file versioning header
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
12 # The last digit will be 99 for a final release, 0 for dev or unknown, or the beta number
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15582
diff changeset
13 PIDGIN_PRODUCT_VERSION = $(shell \
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
14 awk 'BEGIN {FS="."} { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
15 if (int($$3) == $$3) { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
16 $$4 = "99"; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
17 } else { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
18 $$5 = $$3; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
19 sub(int($$3), "", $$5); \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
20 if ($$5 == "dev") { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
21 $$4 = "0"; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
22 } else { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
23 if (sub("beta", "", $$5) > 0) { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
24 $$4 = $$5; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
25 } else { \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
26 $$4 = "0"; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
27 } \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
28 } \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
29 } \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
30 printf("%s.%s.%s.%s", $$1, $$2, int($$3), $$4); \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
31 exit; \
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
32 }' VERSION)
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
33
29981
7fc10a9275ea Increase win32 GTK+ to 2.16.6. If people have issues, it can be reverted.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29933
diff changeset
34 GTK_INSTALL_VERSION = 2.16.6.0
15364
d9ef62fb7e7b [gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15083
diff changeset
35
20361
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
36 STRIPPED_RELEASE_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-win32bin
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
37 DEBUG_SYMBOLS_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-dbgsym
20361
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
38
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
39
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
40 # Any *.dll or *.exe files included in win32-install-dir that we don't compile
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
41 # should be included in this list so they don't get stripped
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15582
diff changeset
42 EXTERNAL_DLLS = \
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
43 comerr32.dll \
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
44 exchndl.dll \
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
45 freebl3.dll \
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
46 gssapi32.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
47 k5sprt32.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
48 krb5_32.dll \
29922
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
49 libenchant.dll \
29996
39e8bbe897f2 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29981
diff changeset
50 libenchant_ispell.dll \
39e8bbe897f2 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29981
diff changeset
51 libenchant_myspell.dll \
29922
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
52 libgtkspell-0.dll \
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
53 libmeanwhile-1.dll \
29907
996eb83a1162 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29624
diff changeset
54 libnspr4.dll \
996eb83a1162 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29624
diff changeset
55 libplc4.dll \
996eb83a1162 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29624
diff changeset
56 libplds4.dll \
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
57 libsasl.dll \
29996
39e8bbe897f2 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29981
diff changeset
58 libxml2-2.dll \
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
59 nss3.dll \
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
60 nssckbi.dll \
29907
996eb83a1162 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29624
diff changeset
61 nssutil3.dll \
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
62 saslANONYMOUS.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
63 saslCRAMMD5.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
64 saslDIGESTMD5.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
65 saslGSSAPI.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
66 saslLOGIN.dll \
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
67 saslPLAIN.dll \
21439
8fbd51946259 Don't strip the silc dlls.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21333
diff changeset
68 libsilc-1-1-2.dll \
8fbd51946259 Don't strip the silc dlls.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21333
diff changeset
69 libsilcclient-1-1-2.dll \
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 20998
diff changeset
70 smime3.dll \
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
71 softokn3.dll \
29907
996eb83a1162 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29624
diff changeset
72 sqlite3.dll \
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
73 ssl3.dll
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
74
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
75 #build an expression for `find` to use to ignore the above files
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15582
diff changeset
76 EXTERNAL_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(EXTERNAL_DLLS))
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
77
30396
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
78 include $(PIDGIN_COMMON_RULES)
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
79
29911
c65c406d0d8d The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29907
diff changeset
80 .PHONY: all docs install installer installer_offline installer_zip debug_symbols_zip installers clean uninstall create_release_install_dir generate_installer_includes $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT)
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14315
diff changeset
81
28039
bd3cf895e19a Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <stu@nosnilmot.com>
parents: 27489
diff changeset
82 all: $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H)
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
83 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE)
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
84 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE)
20998
a82465913e2e Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20361
diff changeset
85 ifndef DISABLE_NLS
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
86 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE)
20998
a82465913e2e Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20361
diff changeset
87 endif
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
88
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
89 install: all $(PIDGIN_INSTALL_DIR)
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
90 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) install
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
91 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) install
20998
a82465913e2e Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20361
diff changeset
92 ifndef DISABLE_NLS
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
93 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) install
20998
a82465913e2e Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20361
diff changeset
94 endif
21333
ff8dc621f3c3 Fix win32 build following death of share/Makefile.mingw
Stu Tomlinson <stu@nosnilmot.com>
parents: 21125
diff changeset
95 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) install
ff8dc621f3c3 Fix win32 build following death of share/Makefile.mingw
Stu Tomlinson <stu@nosnilmot.com>
parents: 21125
diff changeset
96 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install
29922
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
97 mkdir -p $(PIDGIN_INSTALL_DIR)/spellcheck
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
98 cp $(GTKSPELL_TOP)/bin/libgtkspell-0.dll $(PIDGIN_INSTALL_DIR)/spellcheck
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
99 cp $(ENCHANT_TOP)/bin/libenchant.dll $(PIDGIN_INSTALL_DIR)/spellcheck
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
100 cp -R $(ENCHANT_TOP)/lib $(PIDGIN_INSTALL_DIR)/spellcheck
30000
8612d2ca0523 Use a crash report exchndl.dll that actualy works.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29996
diff changeset
101 cp $(WIN32_DEV_TOP)/pidgin-inst-deps-20100315/exchndl.dll $(PIDGIN_INSTALL_DIR)
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
102
29911
c65c406d0d8d The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29907
diff changeset
103 pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip:
c65c406d0d8d The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29907
diff changeset
104 pidgin/win32/nsis/generate_gtk_zip.sh `pwd`
c65c406d0d8d The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29907
diff changeset
105
30396
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
106 generate_installer_includes: create_release_install_dir pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip debug_symbols_zip $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/nsis_translations.desktop
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
107 rm -f pidgin/win32/nsis/pidgin-translations.nsh pidgin/win32/nsis/pidgin-spellcheck.nsh pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
29624
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
108 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
109 -exec basename {} ';' \
30578
c43570e34d81 Make sure that the translations in the installer are displayed sorted.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30396
diff changeset
110 | LC_ALL=C sort | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \
29624
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
111 > pidgin/win32/nsis/pidgin-translations.nsh
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
112 #Convert the available.lst lines to "!insertmacro SPELLCHECK_SECTION lang lang_name lang_file"
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
113 sed -e "/^#/d" -e "s/^[^,]\{1,\},[^,]\{1,\},/\"/" \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
114 -e "s/,/\"\ \"/" -e "s/,/\"\ \"/" -e "s/[\ \t]*$$/\"/" \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
115 -e "s/^/\!insertmacro\ SPELLCHECK_SECTION\ /" \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
116 pidgin/win32/nsis/available.lst \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
117 > pidgin/win32/nsis/pidgin-spellcheck.nsh
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
118 #Convert the lines to "!insertmacro CHECK_SPELLCHECK_SECTION lang"
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
119 iconv -f latin1 -t utf-8 pidgin/win32/nsis/pidgin-spellcheck.nsh | \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
120 sed -e "s/SPELLCHECK_SECTION/CHECK_SPELLCHECK_SECTION/" \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
121 -e "s/ \"[^\"]*\"\ \"[^\"]*\"[\t\ ]*$$//" | \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
122 iconv -f utf-8 -t latin1 \
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
123 > pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
30396
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
124 #Generate the Installer translations
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
125 echo "!define GCOMPRIS_NSIS_INCLUDE_PATH \".\"" > $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
126 echo "@INSERT_TRANSLATIONS@" >> $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
127 $(PERL) $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/create_nsis_translations.pl \
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
128 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/nsis_translations.desktop \
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
129 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh \
62f0988c666c Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents: 30000
diff changeset
130 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/translations
29624
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
131
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
132 create_release_install_dir: install
20361
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
133 rm -rf $(STRIPPED_RELEASE_DIR)
29922
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
134 mkdir $(STRIPPED_RELEASE_DIR)
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
135 tar -cf - $(PIDGIN_INSTALL_DIR) --exclude=Gtk --exclude=spellcheck/share \
29922
b248178bc7b0 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29911
diff changeset
136 | tar --strip 2 -xC $(STRIPPED_RELEASE_DIR) -f -
20361
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
137 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \
29624
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
138 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29619
diff changeset
139 -exec $(STRIP) --strip-unneeded {} ';'
5384
0b544518a365 [gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4897
diff changeset
140
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
141 installer: generate_installer_includes
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
142 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi
21584
055e1abac7cf This is a patch from Lee Roach to update the mingw "clean" makefile targets to remove some generated files and to fix a couple other issues. Fixes #3981.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21439
diff changeset
143 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./
15083
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14699
diff changeset
144
29933
daa02d44df13 Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29922
diff changeset
145 installer_offline: generate_installer_includes
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
146 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DOFFLINE_INSTALLER $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
147 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5387
diff changeset
148
20361
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
149 installer_zip: create_release_install_dir
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
150 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
151 zip -9 -r pidgin-$(PIDGIN_VERSION)-win32-bin.zip $(STRIPPED_RELEASE_DIR)
0afbcc405f89 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19504
diff changeset
152
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
153 debug_symbols_zip: install
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
154 rm -rf $(DEBUG_SYMBOLS_DIR) $(DEBUG_SYMBOLS_DIR).zip
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
155 mkdir $(DEBUG_SYMBOLS_DIR)
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
156 tar -cf - `find $(PIDGIN_INSTALL_DIR) \( -name '*.dll' -o -name '*.exe' \) \
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
157 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) -print` \
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
158 | tar --strip 2 --xform s/$$/.dbgsym/ -xC $(DEBUG_SYMBOLS_DIR) -f -
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
159 zip -9 -r $(DEBUG_SYMBOLS_DIR).zip $(DEBUG_SYMBOLS_DIR)
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
160
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
161 installers: installer installer_offline debug_symbols_zip installer_zip
5384
0b544518a365 [gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4897
diff changeset
162
18459
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
163 Doxyfile.mingw: Doxyfile.in
29996
39e8bbe897f2 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29981
diff changeset
164 sed -e "s/@PACKAGE@/pidgin/" -e "s/@VERSION@/$(PIDGIN_VERSION)/" -e "s/@top_srcdir@/$(PIDGIN_TREE_TOP)/g" -e "s/@enable_dot@/NO/" $< > $@
18459
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
165
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
166 docs: Doxyfile.mingw
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
167 @echo "Running doxygen..."
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
168 @doxygen Doxyfile.mingw
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
169
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
170 clean:
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
171 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) clean
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
172 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) clean
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
173 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) clean
23962
78c64f7c598f Some Makefile cleanups to remove generated files from Lee Roach. Fixes #6609.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21584
diff changeset
174 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) clean
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
175 rm -f $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT) ./VERSION pidgin-$(PIDGIN_VERSION)*.exe pidgin-$(PIDGIN_VERSION)-win32-bin.zip $(DEBUG_SYMBOLS_DIR).zip
18459
042b64016a57 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16698
diff changeset
176 rm -rf doc/html Doxyfile.mingw
14699
cd1ddfa8868c [gaim-migrate @ 17451]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14576
diff changeset
177
cd1ddfa8868c [gaim-migrate @ 17451]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14576
diff changeset
178 uninstall:
29619
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28072
diff changeset
179 rm -rf $(PURPLE_INSTALL_PERL_DIR) $(PIDGIN_INSTALL_PLUGINS_DIR) $(PURPLE_INSTALL_PO_DIR) $(PIDGIN_INSTALL_DIR) $(STRIPPED_RELEASE_DIR) $(DEBUG_SYMBOLS_DIR)
21584
055e1abac7cf This is a patch from Lee Roach to update the mingw "clean" makefile targets to remove some generated files and to fix a couple other issues. Fixes #3981.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21439
diff changeset
180 rm -f ./VERSION
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5387
diff changeset
181
16039
ded8da3de5f8 This should get all the Win32 Makefiles in line with
Kevin Stange <kevin@simguy.net>
parents: 15752
diff changeset
182 include $(PIDGIN_COMMON_TARGETS)
28072
eb54b1f7034b Apparently the .PHONY bits are important for the revision reported in win32
Stu Tomlinson <stu@nosnilmot.com>
parents: 28039
diff changeset
183