• Colin Walters's avatar
    Separate "basic" API from "embedder/module" API · 25681375
    Colin Walters authored
    Previously <gjs/gjs.h> pulled in a lot of stuff, and in particular,
    <gjs/jsapi-util.h>, which in turn required <jsapi.h>.  For a simple
    app that wants to embed GJS we should not be pulling that in.
    
    So <gjs/gjs.h> is now the "simple" API that actually just includes
    <gjs/context.h>, suitable for creating a context and calling eval().
    
    <gjs/gjs-module.h> is now equivalent to the old <gjs/gjs.h>, it
    pulls in the world.
    
    Also, create a corresponding .pc file, gjs-internals-1.0.pc.  This one
    includes mozjs as Requires, and adds the requisite Cflags.  For
    gjs-1.0.pc, change the Requires to simply be gobject-2.0.
    Conceptually, a gjs-devel RPM should not Require
    gobject-introspection-devel or xulrunner-devel, and a simple embedder
    program just using gjs_context_new()/gjs_context_eval() should not
    have DT_NEEDED on gobject-introspection-1.0.so or mozjs.so.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632795
    25681375
Name
Last commit
Last update
..
tweener Loading commit data...
cairo-context.c Loading commit data...
cairo-gradient.c Loading commit data...
cairo-image-surface.c Loading commit data...
cairo-linear-gradient.c Loading commit data...
cairo-path.c Loading commit data...
cairo-pattern.c Loading commit data...
cairo-pdf-surface.c Loading commit data...
cairo-private.h Loading commit data...
cairo-ps-surface.c Loading commit data...
cairo-radial-gradient.c Loading commit data...
cairo-solid-pattern.c Loading commit data...
cairo-surface-pattern.c Loading commit data...
cairo-surface.c Loading commit data...
cairo-svg-surface.c Loading commit data...
cairo.c Loading commit data...
cairo.js Loading commit data...
console.c Loading commit data...
console.h Loading commit data...
dbus-exports.c Loading commit data...
dbus-exports.h Loading commit data...
dbus-values.c Loading commit data...
dbus-values.h Loading commit data...
dbus.c Loading commit data...
dbus.h Loading commit data...
dbus.js Loading commit data...
gettext-native.c Loading commit data...
gettext-native.h Loading commit data...
gettext.js Loading commit data...
gi.c Loading commit data...
gi.h Loading commit data...
jsUnit.js Loading commit data...
lang.c Loading commit data...
lang.h Loading commit data...
lang.js Loading commit data...
mainloop.c Loading commit data...
mainloop.h Loading commit data...
promise.js Loading commit data...
signals.js Loading commit data...