]> git.decadent.org.uk Git - videolink.git/commitdiff
Add support for XULRunner 1.9.1 1.2.9
authorBen Hutchings <ben@decadent.org.uk>
Tue, 6 Oct 2009 04:00:30 +0000 (05:00 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 6 Oct 2009 04:00:30 +0000 (05:00 +0100)
This requires that we match versions down to the micro-version,
because nsIDocShell changed its ABI (including UUID) between 1.9 and
1.9.1.

ChangeLog
Makefile
browser_widget.cpp

index bd76af1bb9ad28c365c776dea01e138e89fb47b4..dffaad73c7e8c5383c6b942adce01868d0bf324b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+videolink (1.2.9) unstable; urgency=low
+
+  * Add support for XULRunner 1.9.1, requiring a version match down to
+    the micro-version, i.e. you can either:
+    - Build and run using XULRunner 1.9, or
+    - Build and run using XULRunner 1.9.1
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Tue, 06 Oct 2009 05:00:13 +0100
+
 videolink (1.2.8) unstable; urgency=low
 
   * Set the XULRunner version requirement to exclude 1.9.1 since it
index ddfa5aa40deb3c1b7e2ce00011e3d428eae43fc6..b9b794e98d71f5feee19a39f6304a441c21a627f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ moz_lib_dir := $(moz_prefix)/lib/$(moz_name)
 moz_version := $(shell pkg-config --modversion $(moz_pc))
 moz_version_major := $(word 1,$(subst ., ,$(moz_version)))
 moz_version_minor := $(word 2,$(subst ., ,$(moz_version)))
+moz_version_micro := $(word 3,$(subst ., ,$(moz_version)))
 
 CFLAGS := -ansi -Wall -Wunused -Wno-unused-parameter
 CPPFLAGS := -D_REENTRANT
@@ -108,7 +109,8 @@ $(sources_using_moz:%.cpp=.objs/%.o) : CXXFLAGS += -Wno-non-virtual-dtor
 $(sources_using_moz_unstable:%.cpp=.objs/%.o)                          \
     : CPPFLAGS += $(moz_unstable_cppflags_extra)                       \
                   -DMOZ_VERSION_MAJOR=$(moz_version_major)             \
-                  -DMOZ_VERSION_MINOR=$(moz_version_minor)
+                  -DMOZ_VERSION_MINOR=$(moz_version_minor)             \
+                  -DMOZ_VERSION_MICRO=$(moz_version_micro)
 
 .objs/%.o : %.cpp .objs/.created
        $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -MD -MF .objs/$*.d -c $<
index f32240b96eb5bb497f9b9079d3feb7412e935350..01ce4cbfe308f4da068a96c0b47c448b46d5233d 100644 (file)
@@ -532,8 +532,15 @@ browser_widget::initialiser::initialiser()
 {
 #if MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR == 9
     static const GREVersionRange gre_versions = {
+#if MOZ_VERSION_MICRO == 0
        "1.9a", PR_TRUE,
        "1.9.1", PR_FALSE
+#elif MOZ_VERSION_MICRO == 1
+       "1.9.1", PR_TRUE,
+       "1.9.2", PR_FALSE
+#else
+#error "version is unsupported, but you could try continuing the pattern above"
+#endif
     };
     char path[PATH_MAX];
     check(GRE_GetGREPathWithProperties(&gre_versions, 1, 0, 0,