Commit 608a3c80 authored by Steve Frécinaux's avatar Steve Frécinaux Committed by Steve Frécinaux

Build gedit as a static library before including it in the binary (needed

2006-05-19  Steve Frécinaux  <steve@istique.net>

	* gedit/Makefile.am: Build gedit as a static library before including it
	in the binary (needed for gtk-doc gobject inspection)

	* configure.ac:
	* Makefile.am:
	* docs/Makefile.am:
	* docs/reference/Makefile.am:
	* docs/reference/gedit-docs.sgml:
	* docs/reference/gedit-overrides.txt:
	* docs/reference/gedit.types:

	Initial setup of gtk-doc for gedit.

	* .cvsignore:
	* bindings/python/.cvsignore:
	* doc/.cvsignore:
	* doc/reference/.cvsignore:
	* m4/.cvsignore:

	Update some CVSIGNORE files.
parent c00c0d43
......@@ -40,6 +40,7 @@ intltool-merge
intltool-update
omf.make
xmldocs.make
gtk-doc.make
compile
depcomp
......
2006-05-19 Steve Frécinaux <steve@istique.net>
* gedit/Makefile.am: Build gedit as a static library before including it
in the binary (needed for gtk-doc gobject inspection)
* configure.ac:
* Makefile.am:
* docs/Makefile.am:
* docs/reference/Makefile.am:
* docs/reference/gedit-docs.sgml:
* docs/reference/gedit-overrides.txt:
* docs/reference/gedit.types:
Initial setup of gtk-doc for gedit.
* .cvsignore:
* bindings/python/.cvsignore:
* doc/.cvsignore:
* doc/reference/.cvsignore:
* m4/.cvsignore:
Update some CVSIGNORE files.
2006-05-19 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-commands-search.c
......
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
Foundation, Inc.
Installation Instructions
*************************
This file is free documentation; the Free Software Foundation gives
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
......@@ -67,9 +70,9 @@ The simplest way to compile this package is:
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
......@@ -82,7 +85,7 @@ is an example:
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
......@@ -99,19 +102,19 @@ for another architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
......@@ -122,7 +125,7 @@ option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
......@@ -137,11 +140,11 @@ you can use the `configure' options `--x-includes=DIR' and
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
......@@ -156,7 +159,7 @@ where SYSTEM can have one of these forms:
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the `--target=TYPE' option to select the type of system they will
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
......@@ -167,9 +170,9 @@ eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
......@@ -178,7 +181,7 @@ A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
......@@ -186,14 +189,18 @@ them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
will cause the specified gcc to be used as the C compiler (unless it is
overridden in the site shell script).
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
......
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = bindings gedit pixmaps po help data plugins
SUBDIRS = bindings gedit pixmaps po help data plugins docs
distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper
......
Makefile
Makefile.in
gedit.c
geditutils.c
gedit.defs.new
geditutils.defs.new
......@@ -11,8 +11,6 @@ AC_SUBST(GEDIT_MAJOR)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
GNOME_DOC_INIT
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AM_DISABLE_STATIC
......@@ -22,6 +20,9 @@ IT_PROG_INTLTOOL([0.35.0])
AM_PROG_LIBTOOL
GNOME_DOC_INIT
GTK_DOC_CHECK([1.0])
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
......@@ -251,6 +252,8 @@ bindings/python/Makefile
data/gedit.desktop.in
data/gedit.pc
data/Makefile
docs/Makefile
docs/reference/Makefile
gedit/dialogs/Makefile
gedit/Makefile
gedit/recent-files/Makefile
......
Makefile
Makefile.in
SUBDIRS = reference
Makefile
Makefile.in
gedit-decl-list.txt
gedit-decl.txt
gedit-sections.txt
gedit-undocumented.txt
gedit-unused.txt
gedit.args
gedit.hierarchy
gedit.interfaces
gedit.prerequisites
gedit.signals
*.stamp
html
xml
## Process this file with automake to produce Makefile.in
# see /gtk-doc/examples/Makefile.am
# We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6
# The name of the module, e.g. 'glib'.
DOC_MODULE=gedit
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting the functions and macros.
DOC_SOURCE_DIR=../../gedit
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
MKTMPL_OPTIONS=
# Extra options to supply to gtkdoc-fixref. Not normally needed.
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
FIXXREF_OPTIONS=
# Used for dependencies. The docs will be rebuilt if any of these change.
HFILE_GLOB=$(top_srcdir)/gedit/*.h
CFILE_GLOB=$(top_srcdir)/gedit/*.c
# Header files to ignore when scanning.
IGNORE_HFILES= \
gedit-ui.h \
gedit-window-private.h \
gedit-commands.h \
gedit-marshal.h \
gedit-output-window.h \
gedit-prefs-manager-private.h \
gedit-module.h \
gedit-python-module.h \
gedit-python-plugin.h \
bacon-message-connection.h \
gedittextregion.h \
sexy-icon-entry.h \
egg-recent-*
# Images to copy into HTML directory.
HTML_IMAGES=
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
content_files=
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# e.g. expand_content_files=running.sgml
expand_content_files=
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
# signals and properties.
INCLUDES= \
-I$(top_srcdir)/gedit \
-I$(top_builddir)/gedit \
-I$(top_srcdir) \
-I$(top_builddir) \
$(GEDIT_CFLAGS)
# $(top_builddir)/gedit/dialogs/libdialogs.la \
# $(top_builddir)/gedit/recent-files/librecent.la
GTKDOC_LIBS= \
$(top_builddir)/gedit/libgedit.la \
$(GEDIT_LIBS)
if ENABLE_PYTHON
INCLUDES += \
$(NO_STRICT_ALIASING_CFLAGS) \
$(PYGTK_CFLAGS) \
$(PYTHON_CFLAGS) \
$(AM_CFLAGS)
GTKDOC_LIBS += \
$(top_builddir)/bindings/python/gedit.la
endif
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
# e.g. EXTRA_DIST += version.xml.in
regenerate-types:
grep _get_type $(DOC_SOURCE_DIR)/gedit-*.h | grep -oR '^.*\.h' | sort | uniq - | sed -r 's/^.*\.h$/#include "\0"/' > gedit.types
grep _get_type $(DOC_SOURCE_DIR)/gedit-*.h | grep -oR '^.*\.h' | sort | uniq - | sed -re 'y/-/_/' -e 's/^(.*)\.h$/\1_get_type/' >> gedit.types.new
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>gedit Reference Manual</title>
</bookinfo>
<chapter>
<title>gedit Internals</title>
<xi:include href="xml/gedit-app.xml"/>
<xi:include href="xml/gedit-document-loader.xml"/>
<xi:include href="xml/gedit-document-saver.xml"/>
<xi:include href="xml/gedit-document.xml"/>
<xi:include href="xml/gedit-documents-panel.xml"/>
<xi:include href="xml/gedit-encodings-option-menu.xml"/>
<xi:include href="xml/gedit-file-chooser-dialog.xml"/>
<xi:include href="xml/gedit-message-area.xml"/>
<xi:include href="xml/gedit-module.xml"/>
<xi:include href="xml/gedit-notebook.xml"/>
<xi:include href="xml/gedit-output-window.xml"/>
<xi:include href="xml/gedit-panel.xml"/>
<xi:include href="xml/gedit-plugin-manager.xml"/>
<xi:include href="xml/gedit-plugin.xml"/>
<xi:include href="xml/gedit-print-job-preview.xml"/>
<xi:include href="xml/gedit-print.xml"/>
<xi:include href="xml/gedit-progress-message-area.xml"/>
<xi:include href="xml/gedit-python-module.xml"/>
<xi:include href="xml/gedit-spinner.xml"/>
<xi:include href="xml/gedit-statusbar.xml"/>
<xi:include href="xml/gedit-tab.xml"/>
<xi:include href="xml/gedit-tooltips.xml"/>
<xi:include href="xml/gedit-view.xml"/>
<xi:include href="xml/gedit-window.xml"/>
<xi:include href="xml/gedit-close-confirmation-dialog.xml"/>
<xi:include href="xml/gedit-encodings-dialog.xml"/>
<xi:include href="xml/gedit-open-location-dialog.xml"/>
<xi:include href="xml/gedit-page-setup-dialog.xml"/>
<xi:include href="xml/gedit-preferences-dialog.xml"/>
<xi:include href="xml/gedit-search-dialog.xml"/>
<xi:include href="xml/egg-recent-model.xml"/>
<xi:include href="xml/egg-recent-view-gtk.xml"/>
<xi:include href="xml/egg-recent-view-uimanager.xml"/>
<xi:include href="xml/egg-recent-view.xml"/>
<xi:include href="xml/gedit-convert.xml"/>
<xi:include href="xml/gedit-debug.xml"/>
<xi:include href="xml/gedit-encodings.xml"/>
<xi:include href="xml/gedit-help.xml"/>
<xi:include href="xml/gedit-io-error-message-area.xml"/>
<xi:include href="xml/gedit-languages-manager.xml"/>
<xi:include href="xml/gedit-metadata-manager.xml"/>
<xi:include href="xml/gedit-plugins-engine.xml"/>
<xi:include href="xml/gedit-prefs-manager-app.xml"/>
<xi:include href="xml/gedit-prefs-manager.xml"/>
<xi:include href="xml/gedit-python-plugin.xml"/>
<xi:include href="xml/gedit-recent.xml"/>
<xi:include href="xml/gedit-session.xml"/>
<xi:include href="xml/gedit-utils.xml"/>
<xi:include href="xml/gedit-marshal.xml"/>
<xi:include href="xml/egg-recent-item.xml"/>
<xi:include href="xml/egg-recent-util.xml"/>
</chapter>
</book>
#include "gedit-app.h"
#include "gedit-document.h"
#include "gedit-document-loader.h"
#include "gedit-document-saver.h"
#include "gedit-documents-panel.h"
#include "gedit-encodings.h"
#include "gedit-encodings-option-menu.h"
#include "gedit-file-chooser-dialog.h"
#include "gedit-message-area.h"
#include "gedit-module.h"
#include "gedit-notebook.h"
#include "gedit-panel.h"
#include "gedit-plugin.h"
#include "gedit-plugin-manager.h"
#include "gedit-print.h"
#include "gedit-print-job-preview.h"
#include "gedit-progress-message-area.h"
#include "gedit-python-module.h"
#include "gedit-spinner.h"
#include "gedit-statusbar.h"
#include "gedit-tab.h"
#include "gedit-tooltips.h"
#include "gedit-view.h"
#include "gedit-window.h"
gedit_app_get_type
gedit_document_get_type
gedit_document_loader_get_type
gedit_document_saver_get_type
gedit_documents_panel_get_type
gedit_encoding_get_type
gedit_encodings_option_menu_get_type
gedit_file_chooser_dialog_get_type
gedit_message_area_get_type
gedit_module_get_type
gedit_notebook_get_type
gedit_panel_get_type
gedit_plugin_get_type
gedit_plugin_manager_get_type
gedit_print_job_get_type
gedit_print_job_preview_get_type
gedit_progress_message_area_get_type
gedit_python_module_get_type
gedit_spinner_get_type
gedit_statusbar_get_type
gedit_tab_get_type
gedit_tooltips_get_type
gedit_view_get_type
gedit_window_get_type
......@@ -3,6 +3,8 @@ SUBDIRS = dialogs recent-files
bin_PROGRAMS = gedit
noinst_LTLIBRARIES = libgedit.la
INCLUDES = \
-I$(top_srcdir) \
-I$(srcdir) \
......@@ -25,15 +27,21 @@ INCLUDES += \
$(AM_CFLAGS)
endif
gedit_SOURCES = gedit.c
gedit_LDADD = libgedit.la $(GEDIT_LIBS)
gedit_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
gedit_LDADD = \
libgedit_la_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
libgedit_la_LIBADD = \
$(GEDIT_LIBS) \
dialogs/libdialogs.la \
recent-files/librecent.la
if ENABLE_PYTHON
gedit_LDADD += \
libgedit_la_LIBADD += \
$(top_builddir)/bindings/python/gedit.la
endif
......@@ -96,10 +104,9 @@ headerdir = $(prefix)/include/gedit-@GEDIT_MAJOR@/gedit
header_DATA = \
$(INST_H_FILES)
gedit_SOURCES = \
libgedit_la_SOURCES = \
$(BUILT_SOURCES) \
$(BACON_FILES) \
gedit.c \
gedit-app.c \
gedit-commands-documents.c \
gedit-commands-edit.c \
......@@ -150,7 +157,7 @@ gedit_SOURCES = \
if ENABLE_PYTHON
gedit_SOURCES += \
libgedit_la_SOURCES += \
gedit-python-module.c \
gedit-python-module.h \
gedit-python-plugin.c \
......
intltool.m4
gnome-doc-utils.m4
gtk-doc.m4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment