[gjs/wip/ptomato/mozjs31: 4/21] build: Build with mozjs31
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs31: 4/21] build: Build with mozjs31
- Date: Mon, 7 Nov 2016 21:17:45 +0000 (UTC)
commit 49d7377a7f0e4d2daba27b43f301dfb949f3e17a
Author: Philip Chimento <philip endlessm com>
Date: Thu Sep 1 18:41:45 2016 -0700
build: Build with mozjs31
Requires updating our includes, and also we can get rid of the
jsfriendapi.h include altogether.
configure.ac | 2 +-
gjs/jsapi-util.h | 1 +
gjs/jsapi-wrapper.h | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b9e6c92..2ed2240 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ m4_define(glib_required_version, 2.50.0)
GOBJECT_INTROSPECTION_REQUIRE([1.41.4])
GOBJECT_REQUIREMENT="gobject-2.0 >= glib_required_version"
-common_packages="gthread-2.0 gio-2.0 >= glib_required_version mozjs-24"
+common_packages="gthread-2.0 gio-2.0 >= glib_required_version mozjs-31"
gjs_packages="gobject-introspection-1.0 libffi $common_packages"
gjs_cairo_packages="cairo cairo-gobject $common_packages"
gjs_gdbus_packages="$GOBJECT_REQUIREMENT gio-2.0"
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 2d699cd..50980b0 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -27,6 +27,7 @@
#include <stdbool.h>
#include <glib-object.h>
+#include <mozilla/Maybe.h>
#include "jsapi-wrapper.h"
#include "gjs/runtime.h"
diff --git a/gjs/jsapi-wrapper.h b/gjs/jsapi-wrapper.h
index a282b2d..041211a 100644
--- a/gjs/jsapi-wrapper.h
+++ b/gjs/jsapi-wrapper.h
@@ -29,6 +29,6 @@
#pragma GCC system_header
#endif
#include <jsapi.h>
-#include <jsdbgapi.h> // Needed by some bits
+#include <js/OldDebugAPI.h> /* Needed by some bits */
#endif /* GJS_JSAPI_WRAPPER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]