Merge lp:~heikki-mantysaari/firefox-extensions/mozvoikko.ubuntu-0.9.5-1ubuntu2_to_1.0-1ubuntu2 into lp:~ubuntu-dev/firefox-extensions/mozvoikko.ubuntu
- mozvoikko.ubuntu-0.9.5-1ubuntu2_to_1.0-1ubuntu2
- Merge into mozvoikko.ubuntu
Proposed by
Heikki Mäntysaari
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Alexander Sack | ||||
Approved revision: | 14 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~heikki-mantysaari/firefox-extensions/mozvoikko.ubuntu-0.9.5-1ubuntu2_to_1.0-1ubuntu2 | ||||
Merge into: | lp:~ubuntu-dev/firefox-extensions/mozvoikko.ubuntu | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~heikki-mantysaari/firefox-extensions/mozvoikko.ubuntu-0.9.5-1ubuntu2_to_1.0-1ubuntu2 | ||||
Related bugs: |
|
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2008-12-16 16:26:09 +0000 | |||
3 | +++ ChangeLog 2009-05-15 19:01:12 +0000 | |||
4 | @@ -1,3 +1,35 @@ | |||
5 | 1 | 2009-04-18 Harri Pitkänen <hatapitk@iki.fi> | ||
6 | 2 | |||
7 | 3 | * Increase version to 1.0. | ||
8 | 4 | |||
9 | 5 | 2009-02-20 Harri Pitkänen <hatapitk@iki.fi> | ||
10 | 6 | |||
11 | 7 | * Increase version to 0.9.7. | ||
12 | 8 | |||
13 | 9 | 2009-02-19 Andris Pavenis <andris.pavenis@iki.fi> | ||
14 | 10 | |||
15 | 11 | * Add support of Darwin_x86-gcc3 from | ||
16 | 12 | http://verteksi.net/soks/2009/01/12/firefoxin-mozvoikko-lisaosa-ja-mac-os-x/ | ||
17 | 13 | * Do not use non-frozen interface nsIXULRuntime for getting target name. | ||
18 | 14 | Generate source with needed constants instead while build. | ||
19 | 15 | * Exclude some unneeded code when building with Xulrunner SDK. | ||
20 | 16 | |||
21 | 17 | 2009-02-19 Harri Pitkänen <hatapitk@iki.fi> | ||
22 | 18 | |||
23 | 19 | * Tag version 0.9.6. | ||
24 | 20 | |||
25 | 21 | 2009-01-28 Harri Pitkänen <hatapitk@iki.fi> | ||
26 | 22 | |||
27 | 23 | * Link with --as-needed. | ||
28 | 24 | |||
29 | 25 | 2009-01-28 Ville-Pekka Vainio <vpivaini@cs.helsinki.fi> | ||
30 | 26 | |||
31 | 27 | * Makefile cleanup. | ||
32 | 28 | |||
33 | 29 | 2009-01-27 Heikki Mäntysaari <heikki.mantysaari@linux.fi> | ||
34 | 30 | |||
35 | 31 | * Build fix from Ubuntu. | ||
36 | 32 | |||
37 | 1 | 2008-06-16 Harri Pitkänen <hatapitk@iki.fi> | 33 | 2008-06-16 Harri Pitkänen <hatapitk@iki.fi> |
38 | 2 | 34 | ||
39 | 3 | * Remove maximum application version restrictions | 35 | * Remove maximum application version restrictions |
40 | 4 | 36 | ||
41 | === modified file 'Makefile.in' | |||
42 | --- Makefile.in 2008-12-16 16:26:09 +0000 | |||
43 | +++ Makefile.in 2009-05-15 19:01:12 +0000 | |||
44 | @@ -28,7 +28,7 @@ | |||
45 | 28 | MODULE = mozvoikko | 28 | MODULE = mozvoikko |
46 | 29 | XPI_NAME = mozvoikko | 29 | XPI_NAME = mozvoikko |
47 | 30 | INSTALL_EXTENSION_ID = mozvoikko@mozilla.fi | 30 | INSTALL_EXTENSION_ID = mozvoikko@mozilla.fi |
49 | 31 | XPI_PKGNAME = mozvoikko-$(MOZVOIKKO_VERSION)-$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI) | 31 | XPI_PKGNAME = mozvoikko-$(MOZVOIKKO_VERSION)-$(OS_ARCH)_$(TARGET_XPCOM_ABI) |
50 | 32 | 32 | ||
51 | 33 | DIST_FILES = README COPYING | 33 | DIST_FILES = README COPYING |
52 | 34 | 34 | ||
53 | 35 | 35 | ||
54 | === modified file 'README' | |||
55 | --- README 2008-12-16 16:26:09 +0000 | |||
56 | +++ README 2009-05-15 19:01:12 +0000 | |||
57 | @@ -11,6 +11,7 @@ | |||
58 | 11 | - 32-bit Windows (WINNT_x86-msvc) | 11 | - 32-bit Windows (WINNT_x86-msvc) |
59 | 12 | - 32-bit Linux (Linux_ix86-gcc3) | 12 | - 32-bit Linux (Linux_ix86-gcc3) |
60 | 13 | - 64-bit Linux (Linux_x86_64-gcc3) | 13 | - 64-bit Linux (Linux_x86_64-gcc3) |
61 | 14 | - 32-bit OS X 10.5 (Darwin_x86-gcc3) | ||
62 | 14 | 15 | ||
63 | 15 | Binary extension package may contain support one or more of these targets. | 16 | Binary extension package may contain support one or more of these targets. |
64 | 16 | When building against xulrunner on Linux, more platforms may be supported. | 17 | When building against xulrunner on Linux, more platforms may be supported. |
65 | @@ -19,6 +20,6 @@ | |||
66 | 19 | separate installation of Voikko: all needed files are included. Builds | 20 | separate installation of Voikko: all needed files are included. Builds |
67 | 20 | against xulrunner will only work with system libvoikko. | 21 | against xulrunner will only work with system libvoikko. |
68 | 21 | 22 | ||
70 | 22 | FIXME: add homepage and similar related info. | 23 | For more information, see http://voikko.sourceforge.net |
71 | 23 | 24 | ||
72 | 24 | Andris Pavenis <andris.pavenis@iki.fi> | 25 | Andris Pavenis <andris.pavenis@iki.fi> |
73 | 25 | 26 | ||
74 | === modified file 'README.BUILD' | |||
75 | --- README.BUILD 2008-12-16 16:26:09 +0000 | |||
76 | +++ README.BUILD 2009-05-15 19:01:12 +0000 | |||
77 | @@ -8,15 +8,15 @@ | |||
78 | 8 | Supported versions: | 8 | Supported versions: |
79 | 9 | ================== | 9 | ================== |
80 | 10 | 10 | ||
83 | 11 | Firefox: 3.0b1 or newer (one can really use firefox-a9pre newer than | 11 | Firefox: 3.0b1 or newer. Released versions of Firefox-3.0.X are OK. So |
84 | 12 | 20.09.2007, but why to use version earlier than 3.0b1 any more) | 12 | should also alpha versions of next Firefox-3.1 (I have tested |
85 | 13 | that extension works with them, but not that it builds in | ||
86 | 14 | that case). | ||
87 | 13 | 15 | ||
89 | 14 | Thunderbird: 3.0a1pre newer than 20.09.2007 | 16 | Thunderbird: 3.0 versions beginning with 3.0a1pre of than 20.09.2007. |
90 | 15 | 17 | ||
91 | 16 | SeaMonkey: 2.0a1pre newer than 20.09.2007 (for these versions install.js | 18 | SeaMonkey: 2.0a1pre newer than 20.09.2007 (for these versions install.js |
95 | 17 | script is no more needed, install.rdf is enough). I only verified | 19 | script is no more needed, install.rdf is enough). |
93 | 18 | that Voikko spell-check works with SeaMonkey nightly builds | ||
94 | 19 | under Windows XP. | ||
96 | 20 | 20 | ||
97 | 21 | I wanted also to try Sunbird nightly builds, but there seems to be no way | 21 | I wanted also to try Sunbird nightly builds, but there seems to be no way |
98 | 22 | using of using spell-check. So Sunbird is not supported. | 22 | using of using spell-check. So Sunbird is not supported. |
99 | @@ -87,14 +87,8 @@ | |||
100 | 87 | What I used for building mozvoikko | 87 | What I used for building mozvoikko |
101 | 88 | ================================== | 88 | ================================== |
102 | 89 | 89 | ||
111 | 90 | I built Linux 32 bit version of mozvoikko under Slackware-11 Linux distribution (running in | 90 | I built both Linux 32 and 64-bit versions of mozvoikko in CentOS-5.1 Linux distribution |
112 | 91 | KVM (http://kvm.qumranet.com/kvmwiki) virtual machine under Fedora Core x86_64 version and | 91 | running in chroot on Fedora 9 x86_64 version. |
105 | 92 | tested built extension in following Linux distributions: Slackware-11, Debian 4r1, Fedora 8. | ||
106 | 93 | |||
107 | 94 | 64 bit Linux version were built under Debian 4r1 Etch amd64 version running in KVM virtual | ||
108 | 95 | machine under Fedora 8 and tested built extension in Debian 4r1 and Fedora 8. | ||
109 | 96 | |||
110 | 97 | |||
113 | 98 | 92 | ||
114 | 99 | Andris Pavenis <andris.pavenis@iki.fi> | 93 | Andris Pavenis <andris.pavenis@iki.fi> |
115 | 100 | 94 | ||
116 | 101 | 95 | ||
117 | === modified file 'README.xulrunner' | |||
118 | --- README.xulrunner 2008-12-16 16:26:09 +0000 | |||
119 | +++ README.xulrunner 2009-05-15 19:01:12 +0000 | |||
120 | @@ -4,7 +4,8 @@ | |||
121 | 4 | There are two build systems and two source packages | 4 | There are two build systems and two source packages |
122 | 5 | for mozvoikko. The original system is designed to be used | 5 | for mozvoikko. The original system is designed to be used |
123 | 6 | within Mozilla source tree and the second build system | 6 | within Mozilla source tree and the second build system |
125 | 7 | uses Xulrunner SDK. | 7 | uses Xulrunner SDK on Linux distributions. Using binary packages |
126 | 8 | of Xulrunner from Mozilla may not work. | ||
127 | 8 | 9 | ||
128 | 9 | To build using Xulrunner SDK, install it and libvoikko | 10 | To build using Xulrunner SDK, install it and libvoikko |
129 | 10 | (preferably version 1.7 or later). Check the | 11 | (preferably version 1.7 or later). Check the |
130 | 11 | 12 | ||
131 | === modified file 'debian/changelog' | |||
132 | --- debian/changelog 2009-01-26 13:07:13 +0000 | |||
133 | +++ debian/changelog 2009-08-10 17:22:42 +0000 | |||
134 | @@ -1,3 +1,44 @@ | |||
135 | 1 | mozvoikko (1.0-1ubuntu2) karmic; urgency=low | ||
136 | 2 | |||
137 | 3 | * drop firefox-3.0 and firefox-3.1 from Depends; add 3.0 to Breaks instead. | ||
138 | 4 | |||
139 | 5 | -- Alexander Sack <asac@ubuntu.com> Fri, 07 Aug 2009 10:43:15 +0200 | ||
140 | 6 | |||
141 | 7 | mozvoikko (1.0-1ubuntu1.xul191) karmic; urgency=low | ||
142 | 8 | |||
143 | 9 | * xulrunner-1.9.1 by default transition | ||
144 | 10 | + see: https://blueprints.launchpad.net/ubuntu/+spec/desktop-karmic-firefox-3.5 | ||
145 | 11 | - bump minimal xulrunner-dev version | ||
146 | 12 | |||
147 | 13 | -- Alexander Sack <asac@ubuntu.com> Fri, 07 Aug 2009 10:42:03 +0200 | ||
148 | 14 | |||
149 | 15 | mozvoikko (1.0-1ubuntu1) karmic; urgency=low | ||
150 | 16 | |||
151 | 17 | * Merge new upstream release from Debian. Closes LP: #377049 | ||
152 | 18 | * Keep Ubuntu changes in debian/control | ||
153 | 19 | * Add optional dependency to firefox-3.5. | ||
154 | 20 | * Change conflict to abrowser (>= 3.6) | ||
155 | 21 | |||
156 | 22 | -- Heikki Mäntysaari <heikki.mantysaari@linux.fi> Fri, 15 May 2009 21:59:04 +0300 | ||
157 | 23 | |||
158 | 24 | mozvoikko (1.0-1) unstable; urgency=low | ||
159 | 25 | |||
160 | 26 | * New upstream release. | ||
161 | 27 | * Change conflict to iceweasel (>= 3.6). | ||
162 | 28 | * Change Standards-Version to 3.8.1 | ||
163 | 29 | |||
164 | 30 | -- Heikki Mäntysaari <heikki.mantysaari@linux.fi> Mon, 11 May 2009 18:45:48 +0300 | ||
165 | 31 | |||
166 | 32 | mozvoikko (0.9.6-1) unstable; urgency=low | ||
167 | 33 | |||
168 | 34 | * New upstream release. Closes: #515505 | ||
169 | 35 | * debian/control: | ||
170 | 36 | - Improve description (thanks to Teemu Likonen) | ||
171 | 37 | - Add conflict to iceweasel (>= 3.2) | ||
172 | 38 | * debian/rules: Remove useless LDFLAGS setting (thanks to Harri Pitkänen) | ||
173 | 39 | |||
174 | 40 | -- Heikki Mäntysaari <heikki.mantysaari@linux.fi> Wed, 18 Feb 2009 21:12:20 +0200 | ||
175 | 41 | |||
176 | 1 | mozvoikko (0.9.5-1ubuntu2) jaunty; urgency=low | 42 | mozvoikko (0.9.5-1ubuntu2) jaunty; urgency=low |
177 | 2 | 43 | ||
178 | 3 | * debian/patches/90_modify-makefile-to-use-pkg-config.patch: | 44 | * debian/patches/90_modify-makefile-to-use-pkg-config.patch: |
179 | 4 | 45 | ||
180 | === modified file 'debian/control' | |||
181 | --- debian/control 2009-01-13 10:39:15 +0000 | |||
182 | +++ debian/control 2009-08-10 17:22:42 +0000 | |||
183 | @@ -3,14 +3,15 @@ | |||
184 | 3 | Priority: optional | 3 | Priority: optional |
185 | 4 | Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> | 4 | Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> |
186 | 5 | XSBC-Original-Maintainer: Heikki Mäntysaari <heikki.mantysaari@linux.fi> | 5 | XSBC-Original-Maintainer: Heikki Mäntysaari <heikki.mantysaari@linux.fi> |
188 | 6 | Build-Depends: debhelper (>= 5), xulrunner-dev (>= 1.9~rc2), libvoikko-dev | 6 | Build-Depends: debhelper (>= 5), xulrunner-dev (>= 1.9.1~), libvoikko-dev |
189 | 7 | Vcs-Bzr: https://code.launchpad.net/~ubuntu-dev/firefox-extensions/mozvoikko.ubuntu | 7 | Vcs-Bzr: https://code.launchpad.net/~ubuntu-dev/firefox-extensions/mozvoikko.ubuntu |
191 | 8 | Standards-Version: 3.8.0 | 8 | Standards-Version: 3.8.1 |
192 | 9 | 9 | ||
193 | 10 | Package: mozvoikko | 10 | Package: mozvoikko |
194 | 11 | Architecture: any | 11 | Architecture: any |
197 | 12 | Depends: ${shlibs:Depends}, libvoikko1, voikko-fi, firefox-3.0 | firefox-3.1 | abrowser (>= 3) | iceweasel (>= 3) | 12 | Depends: ${shlibs:Depends}, libvoikko1, voikko-fi, firefox-3.5 | abrowser (>= 3) | iceweasel (>= 3) |
198 | 13 | Conflicts: iceweasel (>= 3.2), abrowser (>= 3.2) | 13 | Breaks: firefox-3.0 |
199 | 14 | Conflicts: iceweasel (>= 3.6), abrowser (>= 3.6) | ||
200 | 14 | Description: Finnish spell-checker extension for Firefox | 15 | Description: Finnish spell-checker extension for Firefox |
201 | 15 | Finnish spell-checker extension for Firefox 3. Spell-checking | 16 | Finnish spell-checker extension for Firefox 3. Spell-checking |
202 | 16 | functionality is provided by Voikko - a free spellchecker | 17 | functionality is provided by Voikko - a free spellchecker |
203 | 17 | 18 | ||
204 | === removed directory 'debian/patches' | |||
205 | === removed file 'debian/patches/90_modify-makefile-to-use-pkg-config.patch' | |||
206 | --- debian/patches/90_modify-makefile-to-use-pkg-config.patch 2009-01-13 19:30:44 +0000 | |||
207 | +++ debian/patches/90_modify-makefile-to-use-pkg-config.patch 1970-01-01 00:00:00 +0000 | |||
208 | @@ -1,28 +0,0 @@ | |||
209 | 1 | --- mozvoikko-0.9.5/src/Makefile.xulrunner 2009-01-13 20:18:49.000000000 +0200 | ||
210 | 2 | +++ mozvoikko-0.9.5/src/Makefile.xulrunner 2009-01-13 20:20:19.000000000 +0200 | ||
211 | 3 | @@ -14,23 +14,14 @@ | ||
212 | 4 | # along with this program; if not, write to the Free Software | ||
213 | 5 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
214 | 6 | |||
215 | 7 | -XULRUNNER_SDK=$(shell pkg-config --variable=sdkdir libxul) | ||
216 | 8 | -XULRUNNER_INCDIR=$(shell pkg-config --variable=includedir libxul) | ||
217 | 9 | NSPR_INCLUDES=$(shell pkg-config --cflags-only-I nspr) | ||
218 | 10 | DESTDIR=/usr/lib/firefox | ||
219 | 11 | CC=g++ -c | ||
220 | 12 | CC_LINK=g++ -shared -Wl,--no-undefined | ||
221 | 13 | include ../mozvoikko.config | ||
222 | 14 | |||
223 | 15 | -XULRUNNER_INCLUDES=-I$(XULRUNNER_SDK)/sdk/include -I$(XULRUNNER_SDK)/include \ | ||
224 | 16 | --I$(XULRUNNER_INCDIR)/xpcom \ | ||
225 | 17 | --I$(XULRUNNER_INCDIR)/spellchecker \ | ||
226 | 18 | --I$(XULRUNNER_INCDIR)/uconv \ | ||
227 | 19 | --I$(XULRUNNER_INCDIR)/unicharutil \ | ||
228 | 20 | --I$(XULRUNNER_INCDIR)/xulapp \ | ||
229 | 21 | --I$(XULRUNNER_INCDIR)/unstable | ||
230 | 22 | -XULRUNNER_LIBS=-L$(XULRUNNER_SDK)/sdk/lib -L$(XULRUNNER_SDK)/sdk/bin \ | ||
231 | 23 | --Wl,-rpath-link,$(XULRUNNER_SDK)/sdk/bin -lxpcomglue_s -lxpcom -lnspr4 | ||
232 | 24 | +XULRUNNER_INCLUDES=$(shell pkg-config --cflags libxul-unstable) | ||
233 | 25 | +XULRUNNER_LIBS=$(shell pkg-config --libs libxul-unstable) | ||
234 | 26 | |||
235 | 27 | HEADERS=mozVoikko.hxx mozVoikkoSpell.hxx mozVoikkoUtils.hxx | ||
236 | 28 | OBJECTS=mozVoikko mozVoikkoSpell mozVoikkoUtils mozVoikkoSpellFactory | ||
237 | 29 | 0 | ||
238 | === modified file 'debian/rules' | |||
239 | --- debian/rules 2009-01-13 19:30:44 +0000 | |||
240 | +++ debian/rules 2009-05-15 19:01:12 +0000 | |||
241 | @@ -22,17 +22,17 @@ | |||
242 | 22 | touch configure-stamp | 22 | touch configure-stamp |
243 | 23 | 23 | ||
244 | 24 | 24 | ||
246 | 25 | build: patch build-stamp | 25 | build: build-stamp |
247 | 26 | 26 | ||
248 | 27 | build-stamp: configure-stamp | 27 | build-stamp: configure-stamp |
249 | 28 | dh_testdir | 28 | dh_testdir |
250 | 29 | 29 | ||
251 | 30 | # Add here commands to compile the package. | 30 | # Add here commands to compile the package. |
253 | 31 | LDFLAGS="-Wl, --as-needed" $(MAKE) -f Makefile.xulrunner extension-files | 31 | $(MAKE) -f Makefile.xulrunner extension-files |
254 | 32 | 32 | ||
255 | 33 | touch $@ | 33 | touch $@ |
256 | 34 | 34 | ||
258 | 35 | clean: unpatch | 35 | clean: |
259 | 36 | dh_testdir | 36 | dh_testdir |
260 | 37 | dh_testroot | 37 | dh_testroot |
261 | 38 | rm -f build-stamp configure-stamp | 38 | rm -f build-stamp configure-stamp |
262 | @@ -81,32 +81,4 @@ | |||
263 | 81 | dh_builddeb | 81 | dh_builddeb |
264 | 82 | 82 | ||
265 | 83 | binary: binary-indep binary-arch | 83 | binary: binary-indep binary-arch |
266 | 84 | |||
267 | 85 | # Apply patches to the package | ||
268 | 86 | patch: patch-stamp | ||
269 | 87 | patch-stamp: | ||
270 | 88 | dh_testdir | ||
271 | 89 | @patches=debian/patches/*.patch; for patch in $$patches; do \ | ||
272 | 90 | test -f $$patch || continue; \ | ||
273 | 91 | echo "Applying $$patch"; \ | ||
274 | 92 | patch -stuN -p1 < $$patch || exit 1; \ | ||
275 | 93 | done | ||
276 | 94 | touch $@ | ||
277 | 95 | |||
278 | 96 | # Remove patches from the package | ||
279 | 97 | unpatch: | ||
280 | 98 | dh_testdir | ||
281 | 99 | @if test -f patch-stamp; then \ | ||
282 | 100 | patches=debian/patches/*.patch; \ | ||
283 | 101 | for patch in $$patches; do \ | ||
284 | 102 | reversepatches="$$patch $$reversepatches"; \ | ||
285 | 103 | done; \ | ||
286 | 104 | for patch in $$reversepatches; do \ | ||
287 | 105 | test -f $$patch || continue; \ | ||
288 | 106 | echo "Reversing $$patch"; \ | ||
289 | 107 | patch -suRf -p1 < $$patch || exit 1; \ | ||
290 | 108 | done; \ | ||
291 | 109 | rm -f patch-stamp; \ | ||
292 | 110 | fi | ||
293 | 111 | |||
294 | 112 | .PHONY: build clean binary-indep binary-arch binary install configure | 84 | .PHONY: build clean binary-indep binary-arch binary install configure |
295 | 113 | 85 | ||
296 | === modified file 'mozvoikko.config' | |||
297 | --- mozvoikko.config 2008-12-16 16:26:09 +0000 | |||
298 | +++ mozvoikko.config 2009-05-15 19:01:12 +0000 | |||
299 | @@ -17,16 +17,20 @@ | |||
300 | 17 | # | 17 | # |
301 | 18 | # ***** END LICENSE BLOCK ***** | 18 | # ***** END LICENSE BLOCK ***** |
302 | 19 | 19 | ||
306 | 20 | MOZVOIKKO_VERSION = 0.9.5 | 20 | MOZVOIKKO_VERSION = 1.0 |
307 | 21 | 21 | ||
308 | 22 | # Supported Firefox versions | 22 | # Supported application versions. |
309 | 23 | # For official list see: | ||
310 | 24 | # https://addons.mozilla.org/en-US/firefox/pages/appversions | ||
311 | 25 | |||
312 | 26 | # Supported Firefox versions. | ||
313 | 23 | MOZVOIKKO_FF_MIN = 3.0a9pre | 27 | MOZVOIKKO_FF_MIN = 3.0a9pre |
315 | 24 | MOZVOIKKO_FF_MAX = 3.0 | 28 | MOZVOIKKO_FF_MAX = 3.6a1pre |
316 | 25 | 29 | ||
317 | 26 | # Supported Thunderbird versions | 30 | # Supported Thunderbird versions |
318 | 27 | MOZVOIKKO_TB_MIN = 3.0a1pre | 31 | MOZVOIKKO_TB_MIN = 3.0a1pre |
320 | 28 | MOZVOIKKO_TB_MAX = 3.0a1 | 32 | MOZVOIKKO_TB_MAX = 3.1a1pre |
321 | 29 | 33 | ||
322 | 30 | # Supported SeaMonkey versions | 34 | # Supported SeaMonkey versions |
323 | 31 | MOZVOIKKO_SM_MIN = 2.0a1pre | 35 | MOZVOIKKO_SM_MIN = 2.0a1pre |
325 | 32 | MOZVOIKKO_SM_MAX = 2.0a1 | 36 | MOZVOIKKO_SM_MAX = 2.0b1pre |
326 | 33 | 37 | ||
327 | === modified file 'src/Makefile.in' | |||
328 | --- src/Makefile.in 2008-12-16 16:26:09 +0000 | |||
329 | +++ src/Makefile.in 2009-05-15 19:01:12 +0000 | |||
330 | @@ -50,6 +50,7 @@ | |||
331 | 50 | mozVoikkoSpellFactory.cpp \ | 50 | mozVoikkoSpellFactory.cpp \ |
332 | 51 | mozVoikko.cpp \ | 51 | mozVoikko.cpp \ |
333 | 52 | mozVoikkoUtils.cpp \ | 52 | mozVoikkoUtils.cpp \ |
334 | 53 | mozvoikko-target.cpp \ | ||
335 | 53 | $(NULL) | 54 | $(NULL) |
336 | 54 | 55 | ||
337 | 55 | include $(topsrcdir)/config/rules.mk | 56 | include $(topsrcdir)/config/rules.mk |
338 | @@ -58,10 +59,12 @@ | |||
339 | 58 | 59 | ||
340 | 59 | WINNT_EXTRA_LIBS = intl.dll iconv.dll libglib-2.0-0.dll malaga.dll libvoikko-1.dll | 60 | WINNT_EXTRA_LIBS = intl.dll iconv.dll libglib-2.0-0.dll malaga.dll libvoikko-1.dll |
341 | 60 | LINUX_EXTRA_LIBS = libmalaga.so.7 libvoikko.so.1 | 61 | LINUX_EXTRA_LIBS = libmalaga.so.7 libvoikko.so.1 |
342 | 62 | DARWIN_EXTRA_LIBS = libmalaga.7.0.0.dylib libvoikko.1.7.0.dylib | ||
343 | 61 | 63 | ||
344 | 62 | MOZVOIKKO_WINNT_X86_MSVC_EXTRA_LIBS = $(patsubst %.dll, $(srcdir)/voikko-libs/WINNT_x86-msvc/%.dll, $(WINNT_EXTRA_LIBS)) | 64 | MOZVOIKKO_WINNT_X86_MSVC_EXTRA_LIBS = $(patsubst %.dll, $(srcdir)/voikko-libs/WINNT_x86-msvc/%.dll, $(WINNT_EXTRA_LIBS)) |
345 | 63 | MOZVOIKKO_LINUX_X86_GCC3_EXTRA_LIBS = $(patsubst lib%, $(srcdir)/voikko-libs/Linux_x86-gcc3/lib%, $(LINUX_EXTRA_LIBS)) | 65 | MOZVOIKKO_LINUX_X86_GCC3_EXTRA_LIBS = $(patsubst lib%, $(srcdir)/voikko-libs/Linux_x86-gcc3/lib%, $(LINUX_EXTRA_LIBS)) |
346 | 64 | MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS = $(patsubst lib%, $(srcdir)/voikko-libs/Linux_x86_64-gcc3/lib%, $(LINUX_EXTRA_LIBS)) | 66 | MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS = $(patsubst lib%, $(srcdir)/voikko-libs/Linux_x86_64-gcc3/lib%, $(LINUX_EXTRA_LIBS)) |
347 | 67 | MOZVOIKKO_DARWIN_X86_GCC3_EXTRA_LIBS = $(patsubst lib%, $(srcdir)/voikko-libs/Darwin_x86-gcc3/lib%, $(DARWIN_EXTRA_LIBS)) | ||
348 | 65 | SUOMI_MALAGA_FILES = $(srcdir)/voikko-data/voikko-fi_FI.pro $(wildcard $(srcdir)/voikko-data/voikko-fi_FI.*_l) | 68 | SUOMI_MALAGA_FILES = $(srcdir)/voikko-data/voikko-fi_FI.pro $(wildcard $(srcdir)/voikko-data/voikko-fi_FI.*_l) |
349 | 66 | 69 | ||
350 | 67 | ifeq ($(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI),WINNT_x86-msvc) | 70 | ifeq ($(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI),WINNT_x86-msvc) |
351 | @@ -76,6 +79,10 @@ | |||
352 | 76 | MOZVOIKKO_EXTRA_LIBS = $(MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS) | 79 | MOZVOIKKO_EXTRA_LIBS = $(MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS) |
353 | 77 | endif | 80 | endif |
354 | 78 | 81 | ||
355 | 82 | ifeq ($(OS_ARCH)_$(TARGET_XPCOM_ABI),Darwin_x86-gcc3) | ||
356 | 83 | MOZVOIKKO_EXTRA_LIBS = $(MOZVOIKKO_DARWIN_X86_GCC3_EXTRA_LIBS) | ||
357 | 84 | endif | ||
358 | 85 | |||
359 | 79 | install.rdf: $(srcdir)/install.rdf.in | 86 | install.rdf: $(srcdir)/install.rdf.in |
360 | 80 | sed -e "s:@VERSION@:$(MOZVOIKKO_VERSION):g" \ | 87 | sed -e "s:@VERSION@:$(MOZVOIKKO_VERSION):g" \ |
361 | 81 | -e "s:@FF_MIN@:$(MOZVOIKKO_FF_MIN):g" \ | 88 | -e "s:@FF_MIN@:$(MOZVOIKKO_FF_MIN):g" \ |
362 | @@ -84,9 +91,16 @@ | |||
363 | 84 | -e "s:@TB_MAX@:$(MOZVOIKKO_TB_MAX):g" \ | 91 | -e "s:@TB_MAX@:$(MOZVOIKKO_TB_MAX):g" \ |
364 | 85 | -e "s:@SM_MIN@:$(MOZVOIKKO_SM_MIN):g" \ | 92 | -e "s:@SM_MIN@:$(MOZVOIKKO_SM_MIN):g" \ |
365 | 86 | -e "s:@SM_MAX@:$(MOZVOIKKO_SM_MAX):g" \ | 93 | -e "s:@SM_MAX@:$(MOZVOIKKO_SM_MAX):g" \ |
367 | 87 | -e "s:@TARGET_PLATFORM@:$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI):g" \ | 94 | -e "s:@TARGET_PLATFORM@:$(OS_ARCH)_$(TARGET_XPCOM_ABI):g" \ |
368 | 88 | $(srcdir)/install.rdf.in >install.rdf | 95 | $(srcdir)/install.rdf.in >install.rdf |
369 | 89 | 96 | ||
370 | 97 | mozvoikko-target.cpp: Makefile | ||
371 | 98 | echo "#include \"mozVoikkoUtils.hxx\"" >$@ | ||
372 | 99 | echo "" >>$@ | ||
373 | 100 | echo "const char *mozvoikko_target_short = \"$(OS_ARCH)\";" >>$@ | ||
374 | 101 | echo "const char *mozvoikko_target_long = \"$(OS_ARCH)_$(TARGET_XPCOM_ABI)\";" >>$@ | ||
375 | 102 | echo "" >>$@ | ||
376 | 103 | |||
377 | 90 | libs:: | 104 | libs:: |
378 | 91 | echo "EXTRA_LIBS=$(MOZVOIKKO_EXTRA_LIBS)" | 105 | echo "EXTRA_LIBS=$(MOZVOIKKO_EXTRA_LIBS)" |
379 | 92 | 106 | ||
380 | @@ -97,9 +111,9 @@ | |||
381 | 97 | $(NSINSTALL) install.rdf $(FINAL_TARGET)/ | 111 | $(NSINSTALL) install.rdf $(FINAL_TARGET)/ |
382 | 98 | 112 | ||
383 | 99 | install-ext-libs: | 113 | install-ext-libs: |
385 | 100 | mkdir -p $(FINAL_TARGET)/voikko/$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI) | 114 | mkdir -p $(FINAL_TARGET)/voikko/$(OS_ARCH)_$(TARGET_XPCOM_ABI) |
386 | 101 | for file in $(MOZVOIKKO_EXTRA_LIBS); do \ | 115 | for file in $(MOZVOIKKO_EXTRA_LIBS); do \ |
388 | 102 | $(NSINSTALL) $$file $(FINAL_TARGET)/voikko/$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI); \ | 116 | $(NSINSTALL) $$file $(FINAL_TARGET)/voikko/$(OS_ARCH)_$(TARGET_XPCOM_ABI); \ |
389 | 103 | done | 117 | done |
390 | 104 | 118 | ||
391 | 105 | install-voikko-data: | 119 | install-voikko-data: |
392 | @@ -109,15 +123,15 @@ | |||
393 | 109 | done | 123 | done |
394 | 110 | 124 | ||
395 | 111 | install-move: | 125 | install-move: |
399 | 112 | rm -rf $(FINAL_TARGET)/platform/$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI) | 126 | rm -rf $(FINAL_TARGET)/platform/$(OS_ARCH)_$(TARGET_XPCOM_ABI) |
400 | 113 | mkdir -p $(FINAL_TARGET)/platform/$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI) | 127 | mkdir -p $(FINAL_TARGET)/platform/$(OS_ARCH)_$(TARGET_XPCOM_ABI) |
401 | 114 | cp -rvL $(FINAL_TARGET)/components $(FINAL_TARGET)/platform/$(HOST_OS_ARCH)_$(TARGET_XPCOM_ABI)/ | 128 | cp -RvL $(FINAL_TARGET)/components $(FINAL_TARGET)/platform/$(OS_ARCH)_$(TARGET_XPCOM_ABI)/ |
402 | 115 | rm -rf $(FINAL_TARGET)/components | 129 | rm -rf $(FINAL_TARGET)/components |
403 | 116 | 130 | ||
404 | 117 | check-extra-files: $(MOZVOIKKO_EXTRA_LIBS) $(SUOMI_MALAGA_FILES) | 131 | check-extra-files: $(MOZVOIKKO_EXTRA_LIBS) $(SUOMI_MALAGA_FILES) |
405 | 118 | 132 | ||
406 | 119 | check-all-extra-files: $(MOZVOIKKO_WINNT_X86_MSVC_EXTRA_LIBS) $(MOZVOIKKO_LINUX_X86_GCC3_EXTRA_LIBS) \ | 133 | check-all-extra-files: $(MOZVOIKKO_WINNT_X86_MSVC_EXTRA_LIBS) $(MOZVOIKKO_LINUX_X86_GCC3_EXTRA_LIBS) \ |
408 | 120 | $(MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS) $(SUOMI_MALAGA_FILES) | 134 | $(MOZVOIKKO_LINUX_X86_64_GCC3_EXTRA_LIBS) $(MOZVOIKKO_DARWIN_X86_GCC3_EXTRA_LIBS) $(SUOMI_MALAGA_FILES) |
409 | 121 | 135 | ||
410 | 122 | clean:: | 136 | clean:: |
411 | 123 | rm -f install.rdf s-extra-libs | 137 | rm -f install.rdf s-extra-libs |
412 | 124 | 138 | ||
413 | === modified file 'src/Makefile.xulrunner' | |||
414 | --- src/Makefile.xulrunner 2008-12-16 16:26:09 +0000 | |||
415 | +++ src/Makefile.xulrunner 2009-05-15 19:01:12 +0000 | |||
416 | @@ -1,4 +1,4 @@ | |||
418 | 1 | # Copyright (C) 2008 Harri Pitkänen <hatapitk@iki.fi> | 1 | # Copyright (C) 2008 - 2009 Harri Pitkänen <hatapitk@iki.fi> |
419 | 2 | # | 2 | # |
420 | 3 | # This program is free software; you can redistribute it and/or | 3 | # This program is free software; you can redistribute it and/or |
421 | 4 | # modify it under the terms of the GNU General Public License | 4 | # modify it under the terms of the GNU General Public License |
422 | @@ -14,23 +14,13 @@ | |||
423 | 14 | # along with this program; if not, write to the Free Software | 14 | # along with this program; if not, write to the Free Software |
424 | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
425 | 16 | 16 | ||
426 | 17 | XULRUNNER_SDK=$(shell pkg-config --variable=sdkdir libxul) | ||
427 | 18 | XULRUNNER_INCDIR=$(shell pkg-config --variable=includedir libxul) | ||
428 | 19 | NSPR_INCLUDES=$(shell pkg-config --cflags-only-I nspr) | ||
429 | 20 | DESTDIR=/usr/lib/firefox | 17 | DESTDIR=/usr/lib/firefox |
430 | 21 | CC=g++ -c | 18 | CC=g++ -c |
431 | 22 | CC_LINK=g++ -shared -Wl,--no-undefined | 19 | CC_LINK=g++ -shared -Wl,--no-undefined |
432 | 23 | include ../mozvoikko.config | 20 | include ../mozvoikko.config |
433 | 24 | 21 | ||
443 | 25 | XULRUNNER_INCLUDES=-I$(XULRUNNER_SDK)/sdk/include -I$(XULRUNNER_SDK)/include \ | 22 | XULRUNNER_INCLUDES=$(shell pkg-config --cflags libxul-unstable) |
444 | 26 | -I$(XULRUNNER_INCDIR)/xpcom \ | 23 | XULRUNNER_LIBS=$(shell pkg-config --libs libxul-unstable) |
436 | 27 | -I$(XULRUNNER_INCDIR)/spellchecker \ | ||
437 | 28 | -I$(XULRUNNER_INCDIR)/uconv \ | ||
438 | 29 | -I$(XULRUNNER_INCDIR)/unicharutil \ | ||
439 | 30 | -I$(XULRUNNER_INCDIR)/xulapp \ | ||
440 | 31 | -I$(XULRUNNER_INCDIR)/unstable | ||
441 | 32 | XULRUNNER_LIBS=-L$(XULRUNNER_SDK)/sdk/lib -L$(XULRUNNER_SDK)/sdk/bin \ | ||
442 | 33 | -Wl,-rpath-link,$(XULRUNNER_SDK)/sdk/bin -lxpcomglue_s -lxpcom -lnspr4 | ||
445 | 34 | 24 | ||
446 | 35 | HEADERS=mozVoikko.hxx mozVoikkoSpell.hxx mozVoikkoUtils.hxx | 25 | HEADERS=mozVoikko.hxx mozVoikkoSpell.hxx mozVoikkoUtils.hxx |
447 | 36 | OBJECTS=mozVoikko mozVoikkoSpell mozVoikkoUtils mozVoikkoSpellFactory | 26 | OBJECTS=mozVoikko mozVoikkoSpell mozVoikkoUtils mozVoikkoSpellFactory |
448 | @@ -41,11 +31,10 @@ | |||
449 | 41 | ifndef CFLAGS | 31 | ifndef CFLAGS |
450 | 42 | CFLAGS=-O2 | 32 | CFLAGS=-O2 |
451 | 43 | endif | 33 | endif |
455 | 44 | CC_FLAGS=$(CFLAGS) -Wall -Werror -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -fshort-wchar -fPIC | 34 | CC_FLAGS=$(CFLAGS) -Wall -Werror -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -fPIC |
456 | 45 | CC_INCLUDES=$(NSPR_INCLUDES) $(XULRUNNER_INCLUDES) \ | 35 | CC_INCLUDES=$(XULRUNNER_INCLUDES) -include mozilla-config.h -include xpcom-config.h |
454 | 46 | -include mozilla-config.h -include xpcom-config.h | ||
457 | 47 | CC_DEFINES=-DSYSTEM_LIBVOIKKO | 36 | CC_DEFINES=-DSYSTEM_LIBVOIKKO |
459 | 48 | CC_LIBS=$(XULRUNNER_LIBS) | 37 | CC_LIBS=-Wl,--as-needed $(XULRUNNER_LIBS) |
460 | 49 | 38 | ||
461 | 50 | .PHONY: all clean xpi extension-files install-unpacked | 39 | .PHONY: all clean xpi extension-files install-unpacked |
462 | 51 | 40 | ||
463 | 52 | 41 | ||
464 | === modified file 'src/mozVoikkoUtils.cpp' | |||
465 | --- src/mozVoikkoUtils.cpp 2008-12-16 16:26:09 +0000 | |||
466 | +++ src/mozVoikkoUtils.cpp 2009-05-15 19:01:12 +0000 | |||
467 | @@ -40,10 +40,18 @@ | |||
468 | 40 | "libvoikko.so.1" | 40 | "libvoikko.so.1" |
469 | 41 | }; | 41 | }; |
470 | 42 | 42 | ||
471 | 43 | const unsigned numPreloadedLibs = sizeof(preloadLibNames)/sizeof(*preloadLibNames); | ||
472 | 44 | |||
473 | 45 | const char * libvoikkoName = "libvoikko.so.1"; | 43 | const char * libvoikkoName = "libvoikko.so.1"; |
474 | 46 | 44 | ||
475 | 45 | #elif defined(XP_MACOSX) | ||
476 | 46 | |||
477 | 47 | const char *preloadLibNames[] = | ||
478 | 48 | { | ||
479 | 49 | "libmalaga.7.0.0.dylib", | ||
480 | 50 | "libvoikko.1.7.0.dylib" | ||
481 | 51 | }; | ||
482 | 52 | |||
483 | 53 | const char * libvoikkoName = "libvoikko.1.7.0.dylib"; | ||
484 | 54 | |||
485 | 47 | #elif defined(_WIN32) | 55 | #elif defined(_WIN32) |
486 | 48 | 56 | ||
487 | 49 | 57 | ||
488 | @@ -56,8 +64,6 @@ | |||
489 | 56 | "libvoikko-1.dll" | 64 | "libvoikko-1.dll" |
490 | 57 | }; | 65 | }; |
491 | 58 | 66 | ||
492 | 59 | const unsigned numPreloadedLibs = sizeof(preloadLibNames)/sizeof(*preloadLibNames); | ||
493 | 60 | |||
494 | 61 | const char * libvoikkoName = "libvoikko-1.dll"; | 67 | const char * libvoikkoName = "libvoikko-1.dll"; |
495 | 62 | 68 | ||
496 | 63 | #else | 69 | #else |
497 | @@ -66,6 +72,8 @@ | |||
498 | 66 | 72 | ||
499 | 67 | #endif | 73 | #endif |
500 | 68 | 74 | ||
501 | 75 | const unsigned numPreloadedLibs = sizeof(preloadLibNames)/sizeof(*preloadLibNames); | ||
502 | 76 | |||
503 | 69 | #define CH(statement, errRetVal) do \ | 77 | #define CH(statement, errRetVal) do \ |
504 | 70 | { \ | 78 | { \ |
505 | 71 | nsresult rv = statement; \ | 79 | nsresult rv = statement; \ |
506 | @@ -243,42 +251,30 @@ | |||
507 | 243 | return NS_OK; | 251 | return NS_OK; |
508 | 244 | } | 252 | } |
509 | 245 | 253 | ||
510 | 254 | #ifndef SYSTEM_LIBVOIKKO | ||
511 | 255 | |||
512 | 246 | nsresult getMozVoikkoBaseDirs(nsIFile **libDir, nsIFile **dataDir) | 256 | nsresult getMozVoikkoBaseDirs(nsIFile **libDir, nsIFile **dataDir) |
513 | 247 | { | 257 | { |
514 | 248 | nsresult rv; | 258 | nsresult rv; |
515 | 249 | nsCOMPtr<nsIFile> mozVoikkoLibName; | 259 | nsCOMPtr<nsIFile> mozVoikkoLibName; |
516 | 250 | nsCOMPtr<nsIFile> currDir, parentDir; | 260 | nsCOMPtr<nsIFile> currDir, parentDir; |
517 | 251 | nsCOMPtr<nsIFile> tmpDir, tmpFile; | 261 | nsCOMPtr<nsIFile> tmpDir, tmpFile; |
519 | 252 | nsCString leafName, tmp; | 262 | nsCString leafName; |
520 | 253 | nsCString shortTargetName; | 263 | nsCString shortTargetName; |
521 | 254 | nsCString fullTargetName; | 264 | nsCString fullTargetName; |
522 | 255 | 265 | ||
544 | 256 | // Get platform name (eg. WINNT_x86-msvc or Linux_x86_64-gcc3). | 266 | shortTargetName = mozvoikko_target_short; |
545 | 257 | // WARNING: not frozen interface nsIXULRuntime is being used. | 267 | fullTargetName = mozvoikko_target_long; |
546 | 258 | // String shortTargetName will contain only target OS name (like WINNT) | 268 | |
526 | 259 | // String fullTargetName will contain additionally XPCOMAPI_NAME | ||
527 | 260 | |||
528 | 261 | nsCOMPtr<nsIXULRuntime> runtime = do_GetService("@mozilla.org/xre/app-info;1", &rv); | ||
529 | 262 | |||
530 | 263 | NS_ENSURE_SUCCESS(rv, rv); | ||
531 | 264 | |||
532 | 265 | rv = runtime->GetOS(shortTargetName); | ||
533 | 266 | NS_ENSURE_SUCCESS(rv, rv); | ||
534 | 267 | |||
535 | 268 | fullTargetName = shortTargetName; | ||
536 | 269 | |||
537 | 270 | rv = runtime->GetXPCOMABI(tmp); | ||
538 | 271 | if (NS_SUCCEEDED(rv)) | ||
539 | 272 | { | ||
540 | 273 | fullTargetName.Append("_"); | ||
541 | 274 | fullTargetName.Append(tmp); | ||
542 | 275 | } | ||
543 | 276 | |||
547 | 277 | // Get path of mozvoikko shared library. | 269 | // Get path of mozvoikko shared library. |
548 | 278 | // mozVoikkoSpell::registerExtension() has saved it using nsICategory manager | 270 | // mozVoikkoSpell::registerExtension() has saved it using nsICategory manager |
549 | 279 | // when registrating the extension | 271 | // when registrating the extension |
550 | 280 | rv = getMozVoikkoLibrary(getter_AddRefs(mozVoikkoLibName)); | 272 | rv = getMozVoikkoLibrary(getter_AddRefs(mozVoikkoLibName)); |
552 | 281 | NS_ENSURE_SUCCESS(rv, rv); | 273 | if (NS_FAILED(rv)) |
553 | 274 | { | ||
554 | 275 | logMessage("mozvoikko: Failed to get nsICategoryManager entry"); | ||
555 | 276 | return rv; | ||
556 | 277 | } | ||
557 | 282 | 278 | ||
558 | 283 | // Extract directory part | 279 | // Extract directory part |
559 | 284 | rv = mozVoikkoLibName->GetParent(getter_AddRefs(currDir)); | 280 | rv = mozVoikkoLibName->GetParent(getter_AddRefs(currDir)); |
560 | @@ -374,6 +370,8 @@ | |||
561 | 374 | return NS_OK; | 370 | return NS_OK; |
562 | 375 | } | 371 | } |
563 | 376 | 372 | ||
564 | 373 | #endif | ||
565 | 374 | |||
566 | 377 | PreloadedLibraries::PreloadedLibraries(nsIFile *libDir, const char **names, unsigned numLibs) : | 375 | PreloadedLibraries::PreloadedLibraries(nsIFile *libDir, const char **names, unsigned numLibs) : |
567 | 378 | ok(false), numLibs(numLibs), libraries(NULL) | 376 | ok(false), numLibs(numLibs), libraries(NULL) |
568 | 379 | { | 377 | { |
569 | 380 | 378 | ||
570 | === modified file 'src/mozVoikkoUtils.hxx' | |||
571 | --- src/mozVoikkoUtils.hxx 2008-12-16 16:26:09 +0000 | |||
572 | +++ src/mozVoikkoUtils.hxx 2009-05-15 19:01:12 +0000 | |||
573 | @@ -74,10 +74,6 @@ | |||
574 | 74 | const nsACString &subDirName, | 74 | const nsACString &subDirName, |
575 | 75 | const nsACString &fileName); | 75 | const nsACString &fileName); |
576 | 76 | 76 | ||
577 | 77 | nsresult loadExtraLibraries(int numLibs, const char **names); | ||
578 | 78 | |||
579 | 79 | nsresult getMozVoikkoBaseDirs(nsIFile **libDir, nsIFile **dataDir); | ||
580 | 80 | |||
581 | 81 | class PreloadedLibraries | 77 | class PreloadedLibraries |
582 | 82 | { | 78 | { |
583 | 83 | bool ok; | 79 | bool ok; |
584 | @@ -91,4 +87,20 @@ | |||
585 | 91 | operator bool() const { return ok; } | 87 | operator bool() const { return ok; } |
586 | 92 | }; | 88 | }; |
587 | 93 | 89 | ||
588 | 90 | #ifndef SYSTEM_LIBVOIKKO | ||
589 | 91 | |||
590 | 92 | nsresult loadExtraLibraries(int numLibs, const char **names); | ||
591 | 93 | |||
592 | 94 | nsresult getMozVoikkoBaseDirs(nsIFile **libDir, nsIFile **dataDir); | ||
593 | 95 | |||
594 | 96 | // 2 string constants provided by autogenerated file mozvoikko-target.cpp | ||
595 | 97 | // | ||
596 | 98 | // They contains extension target string for example | ||
597 | 99 | // "Linux" and "Linux_x86_64-gcc3" for Linux on x86_64. | ||
598 | 100 | // | ||
599 | 101 | extern const char *mozvoikko_target_short; | ||
600 | 102 | extern const char *mozvoikko_target_long; | ||
601 | 103 | |||
602 | 104 | #endif /* SYSTEM_LIBVOIKKO */ | ||
603 | 105 | |||
604 | 94 | #endif | 106 | #endif |