Import some code for using GJS
This is forked from gnome-continuous.
This commit is contained in:
parent
f99ebdab33
commit
220773f213
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "libgsystem"]
|
||||
path = libgsystem
|
||||
url = git://git.gnome.org/libgsystem
|
75
Makefile-autobuilder.am
Normal file
75
Makefile-autobuilder.am
Normal file
@ -0,0 +1,75 @@
|
||||
# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the
|
||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
# Boston, MA 02111-1307, USA.
|
||||
|
||||
substitutions= \
|
||||
-e s,@libdir\@,$(libdir), \
|
||||
-e s,@pkglibdir\@,$(pkglibdir), \
|
||||
-e s,@datarootdir\@,$(datarootdir), \
|
||||
-e s,@pkgdatadir\@,$(pkgdatadir), \
|
||||
$(NULL)
|
||||
|
||||
rpm-ostree-autobuilder: src/rpm-ostree-autobuilder.in Makefile
|
||||
sed $(substitutions) $< > $@.tmp && mv $@.tmp $@
|
||||
EXTRA_DIST += src/rpm-ostree-autobuilder.in
|
||||
|
||||
bin_SCRIPTS += rpm-ostree-autobuilder \
|
||||
$(NULL)
|
||||
|
||||
jsautobuilderdir=$(pkgdatadir)/js
|
||||
jsautobuilder_DATA= \
|
||||
src/js/argparse.js \
|
||||
src/js/asyncutil.js \
|
||||
src/js/buildutil.js \
|
||||
src/js/builtin.js \
|
||||
src/js/fileutil.js \
|
||||
src/js/task.js \
|
||||
src/js/jsonutil.js \
|
||||
src/js/jsutil.js \
|
||||
src/js/main.js \
|
||||
src/js/libqa.js \
|
||||
src/js/guestfish.js \
|
||||
src/js/params.js \
|
||||
src/js/procutil.js \
|
||||
src/js/snapshot.js \
|
||||
src/js/streamutil.js \
|
||||
src/js/vcs.js \
|
||||
src/js/versioneddir.js \
|
||||
$(NULL)
|
||||
|
||||
jsautobuiltinsdir=$(jsautobuilderdir)/builtins
|
||||
jsautobuiltins_DATA= \
|
||||
src/js/builtins/autobuilder.js \
|
||||
src/js/builtins/checkout.js \
|
||||
src/js/builtins/git_mirror.js \
|
||||
src/js/builtins/make.js \
|
||||
src/js/builtins/qa_make_disk.js \
|
||||
src/js/builtins/run_task.js \
|
||||
src/js/builtins/shell.js \
|
||||
$(NULL)
|
||||
|
||||
jsautotasksdir=$(jsautobuilderdir)/tasks
|
||||
jsautotasks_DATA= \
|
||||
src/js/tasks/task-build.js \
|
||||
src/js/tasks/task-bdiff.js \
|
||||
src/js/tasks/task-builddisks.js \
|
||||
src/js/tasks/task-smoketest.js \
|
||||
src/js/tasks/task-integrationtest.js \
|
||||
src/js/tasks/task-memusage.js \
|
||||
src/js/tasks/task-applicationstest.js \
|
||||
src/js/tasks/task-zdisks.js \
|
||||
src/js/tasks/testbase.js \
|
||||
$(NULL)
|
51
Makefile-decls.am
Normal file
51
Makefile-decls.am
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the
|
||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
# Boston, MA 02111-1307, USA.
|
||||
|
||||
# Common variables
|
||||
ACLOCAL_AMFLAGS =
|
||||
AM_CPPFLAGS =
|
||||
AM_CFLAGS =
|
||||
DISTCHECK_CONFIGURE_FLAGS =
|
||||
SUBDIRS =
|
||||
NULL =
|
||||
BUILT_SOURCES =
|
||||
MANPAGES =
|
||||
CLEANFILES =
|
||||
EXTRA_DIST =
|
||||
bin_PROGRAMS =
|
||||
sbin_PROGRAMS =
|
||||
bin_SCRIPTS =
|
||||
lib_LTLIBRARIES =
|
||||
libexec_PROGRAMS =
|
||||
noinst_LTLIBRARIES =
|
||||
noinst_PROGRAMS =
|
||||
privlibdir = $(pkglibdir)
|
||||
privlib_LTLIBRARIES =
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA =
|
||||
INTROSPECTION_GIRS =
|
||||
girdir = $(datadir)/gir-1.0
|
||||
gir_DATA =
|
||||
typelibdir = $(libdir)/girepository-1.0
|
||||
typelib_DATA =
|
||||
gsettings_SCHEMAS =
|
||||
# git.mk
|
||||
GITIGNOREFILES =
|
||||
|
||||
# This is a special facility to chain together hooks easily
|
||||
INSTALL_DATA_HOOKS =
|
||||
install-data-hook: $(INSTALL_DATA_HOOKS)
|
16
Makefile-gsystem-introspection.am
Normal file
16
Makefile-gsystem-introspection.am
Normal file
@ -0,0 +1,16 @@
|
||||
INTROSPECTION_GIRS += GSystem-1.0.gir
|
||||
|
||||
GSystem-1.0.gir: libgsystem.la Makefile
|
||||
GSystem_1_0_gir_NAMESPACE = GSystem
|
||||
GSystem_1_0_gir_VERSION = 1.0
|
||||
GSystem_1_0_gir_LIBS = libgsystem.la
|
||||
GSystem_1_0_gir_CFLAGS = $(libgsystem_cflags)
|
||||
GSystem_1_0_gir_SCANNERFLAGS = \
|
||||
--warn-all \
|
||||
--warn-error \
|
||||
--symbol-prefix=gs_ \
|
||||
--identifier-prefix=GS \
|
||||
--c-include="libgsystem.h" \
|
||||
$(NULL)
|
||||
GSystem_1_0_gir_INCLUDES = Gio-2.0
|
||||
GSystem_1_0_gir_FILES = $(libgsystem_la_SOURCES)
|
57
Makefile.am
57
Makefile.am
@ -15,45 +15,30 @@
|
||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
# Boston, MA 02111-1307, USA.
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||
AM_CPPFLAGS = -DDATADIR='"$(datadir)"' \
|
||||
include Makefile-decls.am
|
||||
|
||||
ACLOCAL_AMFLAGS += -I m4 ${ACLOCAL_FLAGS}
|
||||
AM_CPPFLAGS += -DDATADIR='"$(datadir)"' \
|
||||
-DLIBEXECDIR='"$(libexecdir)"' \
|
||||
-DLOCALEDIR=\"$(datadir)/locale\" \
|
||||
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34
|
||||
AM_CFLAGS = $(WARN_CFLAGS)
|
||||
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-maintainer-mode
|
||||
|
||||
# Subdirectories
|
||||
SUBDIRS = .
|
||||
|
||||
#if ENABLE_GTK_DOC
|
||||
#SUBDIRS += doc
|
||||
#endif
|
||||
|
||||
# Common variables
|
||||
NULL =
|
||||
INSTALL_DATA_HOOKS =
|
||||
BUILT_SOURCES =
|
||||
MANPAGES =
|
||||
CLEANFILES =
|
||||
EXTRA_DIST =
|
||||
bin_PROGRAMS =
|
||||
sbin_PROGRAMS =
|
||||
bin_SCRIPTS =
|
||||
lib_LTLIBRARIES =
|
||||
libexec_PROGRAMS =
|
||||
noinst_LTLIBRARIES =
|
||||
noinst_PROGRAMS =
|
||||
privlibdir = $(pkglibdir)
|
||||
privlib_LTLIBRARIES =
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA =
|
||||
INTROSPECTION_GIRS =
|
||||
girdir = $(datadir)/gir-1.0
|
||||
gir_DATA =
|
||||
typelibdir = $(libdir)/girepository-1.0
|
||||
typelib_DATA =
|
||||
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36
|
||||
AM_CFLAGS += $(WARN_CFLAGS)
|
||||
|
||||
EXTRA_DIST += autogen.sh COPYING
|
||||
|
||||
libgsystem_srcpath := libgsystem
|
||||
libgsystem_cflags = $(PKGDEP_GIO_UNIX_CFLAGS) -I$(srcdir)/libgsystem
|
||||
libgsystem_libs = $(PKGDEP_GIO_UNIX_LIBS)
|
||||
include libgsystem/Makefile-libgsystem.am
|
||||
privlib_LTLIBRARIES += libgsystem.la
|
||||
|
||||
include $(INTROSPECTION_MAKEFILE)
|
||||
|
||||
include Makefile-rpm-ostree.am
|
||||
include Makefile-gsystem-introspection.am
|
||||
|
||||
girdir = $(pkgdatadir)/gir-1.0
|
||||
typelibdir = $(pkglibdir)/girepository-1.0
|
||||
|
||||
gir_DATA = $(INTROSPECTION_GIRS)
|
||||
typelib_DATA = $(gir_DATA:.gir=.typelib)
|
||||
|
28
autogen.sh
28
autogen.sh
@ -1,3 +1,29 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
test -n "$srcdir" || srcdir=`dirname "$0"`
|
||||
test -n "$srcdir" || srcdir=.
|
||||
|
||||
olddir=`pwd`
|
||||
cd $srcdir
|
||||
|
||||
AUTORECONF=`which autoreconf`
|
||||
if test -z $AUTORECONF; then
|
||||
echo "*** No autoreconf found, please intall it ***"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p m4
|
||||
exec autoreconf --force --install --verbose
|
||||
|
||||
# Fetch submodules if needed
|
||||
if test ! -f src/libgsystem/README;
|
||||
then
|
||||
echo "+ Setting up submodules"
|
||||
git submodule init
|
||||
git submodule update
|
||||
fi
|
||||
|
||||
autoreconf --force --install --verbose
|
||||
|
||||
cd $olddir
|
||||
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|
||||
|
@ -35,6 +35,8 @@ PKG_CHECK_MODULES(PKGDEP_GIO_UNIX, [gio-unix-2.0])
|
||||
PKG_CHECK_MODULES(PKGDEP_OSTREE, [ostree-1])
|
||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||
|
||||
GOBJECT_INTROSPECTION_REQUIRE([1.34.0])
|
||||
|
||||
AM_PATH_PYTHON(2.7)
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
|
1
libgsystem
Submodule
1
libgsystem
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4ea458abb5f0db4c2fd51b000a0a7b9e8f510721
|
Loading…
Reference in New Issue
Block a user