1
=== modified file 'src/gecko/gecko-utils.cpp'
2
--- a/src/gecko/gecko-utils.cpp 2010-03-29 16:50:00 +0000
3
+++ b/src/gecko/gecko-utils.cpp 2010-11-26 12:29:42 +0000
5
//I have really no clue what this ranges mean but if xulrunner is
6
//outside of this range we get coredumps =( so here is a bold assumption
7
//that we will be able to work with any future xulrunner.
8
-#define UPPER_RANGE "1.9.99"
9
-#define LOWER_RANGE "1.9.0"
10
static const GREVersionRange greVersion = {
11
- LOWER_RANGE, PR_TRUE,
12
- UPPER_RANGE, PR_TRUE
16
char xpcomLocation[PATH_MAX];
17
rv = GRE_GetGREPathWithProperties(&greVersion, 1, nsnull, 0, xpcomLocation, sizeof (xpcomLocation));
19
=== modified file 'wscript'
20
--- a/wscript 2010-11-08 13:20:13 +0000
21
+++ b/wscript 2010-11-27 11:10:13 +0000
25
if conf.check_cfg(modversion='gtkhtml-editor-3.14',
26
- msg='Is post GNOME3 gtkhtml-editor available?',
27
+ msg='Checking for GNOME3 gtkhtml-editor',
29
errmsg='Probably, not'
32
args='--variable=sdkdir',
33
okmsg=waffles.misc.myokmsg,
34
msg="Checking for libxul sdkdir").strip())
35
+ conf.define('GECKO_VER', conf.check_cfg(package='libxul-embedding',
36
+ args='--modversion',
37
+ okmsg=waffles.misc.myokmsg,
38
+ msg="Checking for Gecko GREVersion").strip())
39
+ if not env['GECKO_VER'][3].isalpha():
40
+ conf.define('GECKO_MIN', env['GECKO_VER'][0:5]+'.0')
41
+ conf.define('GECKO_MAX', env['GECKO_VER'][0:5]+'.99')
43
+ conf.define('GECKO_MIN', env['GECKO_VER'][0:4]+'0')
44
+ conf.define('GECKO_MAX', env['GECKO_VER'][0:3]+'.0.99')
46
+ conf.check_message("Gecko", "GREVersionMin", 1, env['GECKO_MIN'])
47
+ conf.check_message("Gecko", "GREVersionMax", 1, env['GECKO_MAX'])
50
d = env['MOZILLA_DISTDIR']
51
conf.define['CPPPATH_GECKO'] = ['%s/sdk/include' % d,
54
conf.define['LIBPATH_GECKO'] = ['%s/sdk/lib' % d]
55
conf.define['LIB_GECKO'] = ['xpcomglue_s', 'xpcom', 'xul', 'nspr4']
56
+ # FIXME: how to detect Gecko-ver on Win similar to pkg-config on unix?
57
+ conf.define('GECKO_MIN', '1.9.0.0')
58
+ conf.define('GECKO_MAX', '2.0.0.*')
61
env.append_value('ALL_LIBS', 'NSPR')
62
env.append_value('ALL_LIBS', 'GECKO')