Re-add glibmm2 properly.
git-svn-id: svn://localhost/ardour2/trunk@2644 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
89f1f09c04
commit
a313924b77
20
libs/glibmm2/AUTHORS
Normal file
20
libs/glibmm2/AUTHORS
Normal file
|
@ -0,0 +1,20 @@
|
|||
Please use the mailing list (gtkmm-list@gnome.org) instead of emailing developers directly.
|
||||
See the ChangeLog for up-to-date information.
|
||||
|
||||
Murray Cumming <murrayc@usa.net>
|
||||
Daniel Elstner <daniel.elstner@gmx.net>
|
||||
|
||||
Some former contributors:
|
||||
|
||||
Karl Nelson <kenelson@ece.ucdavis.edu>
|
||||
Tero Pulkkinen <terop@modeemi.cs.tut.fi>
|
||||
Elliot Lee <sopwith@redhat.com>
|
||||
Phil Dawes <P.L.Dawes-CSSE94@cs.bham.ac.uk>
|
||||
Erik Andersen <andersee@debian.org>
|
||||
Bibek Sahu <scorpio@dodds.net>
|
||||
Mirko Streckenbach
|
||||
Havoc Pennington <hp@pobox.com>
|
||||
Guillaume Laurent <glaurent@telegraph-road.org>
|
||||
Todd Dukes <tdukes@ibmoto.com>
|
||||
Peter Lerner <peter.lerner@bnbt.de>
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
33
libs/glibmm2/CHANGES
Normal file
33
libs/glibmm2/CHANGES
Normal file
|
@ -0,0 +1,33 @@
|
|||
Changes between glibmm 2.2 (previously part of gtkmm) and glibmm 2.4:
|
||||
|
||||
* glibmm is now a separate module, for use with non-GUI software.
|
||||
(Note that glibmm 2.4 and gtkmm 2.4 install in parallel with
|
||||
gtkmm 2.2 - so you can install and use both simultaneously and
|
||||
port to 2.4 whenever you are ready.)
|
||||
* glibmm now uses libsigc++ 2 rather than libsigc++ 1.2.
|
||||
There is a libsigc++ compatibility header. The new, undeprecated, API
|
||||
is slightly improved.
|
||||
- Connecting signal handlers:
|
||||
signal_something().connect( SigC::slot(*this, &Something::on_something) );
|
||||
should become
|
||||
signal_something().connect( sigc::mem_fun(*this, &Something::on_something) );
|
||||
or, for non-member methods:
|
||||
signal_something().connect( sigc::ptr_fun(&Something::on_something) );
|
||||
- Binding extra parameters:
|
||||
SigC::bind(...)
|
||||
should become
|
||||
sigc::bind(...)
|
||||
- Declaring signals:
|
||||
SigC::Signal1<void, int>
|
||||
should become
|
||||
sigc::signal<void, int>
|
||||
- Declaring slots:
|
||||
SigC::Slot1<void, int>
|
||||
should become
|
||||
sigc::slot<void,int>
|
||||
- Inheriting from the libsigc++ base class:
|
||||
class Something : public SigC::Object
|
||||
should become
|
||||
class Something : public sigc::trackable
|
||||
|
||||
|
515
libs/glibmm2/COPYING
Normal file
515
libs/glibmm2/COPYING
Normal file
|
@ -0,0 +1,515 @@
|
|||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations
|
||||
below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
^L
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it
|
||||
becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
^L
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control
|
||||
compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
^L
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
^L
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
^L
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
^L
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply, and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License
|
||||
may add an explicit geographical distribution limitation excluding those
|
||||
countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
^L
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
^L
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms
|
||||
of the ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library.
|
||||
It is safest to attach them to the start of each source file to most
|
||||
effectively convey the exclusion of warranty; and each file should
|
||||
have at least the "copyright" line and a pointer to where the full
|
||||
notice is found.
|
||||
|
||||
|
||||
<one line to give the library's name and a brief idea of what it
|
||||
does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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
|
||||
|
||||
Also add information on how to contact you by electronic and paper
|
||||
mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or
|
||||
your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James
|
||||
Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
1648
libs/glibmm2/ChangeLog
Normal file
1648
libs/glibmm2/ChangeLog
Normal file
File diff suppressed because it is too large
Load Diff
236
libs/glibmm2/INSTALL
Normal file
236
libs/glibmm2/INSTALL
Normal file
|
@ -0,0 +1,236 @@
|
|||
Installation Instructions
|
||||
*************************
|
||||
|
||||
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.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. (Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.)
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You only need
|
||||
`configure.ac' if you want to change it or regenerate `configure' using
|
||||
a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
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.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
||||
|
||||
*Note Defining Variables::, for more details.
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
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
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not support the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a
|
||||
time in the source code directory. After you have installed the
|
||||
package for one architecture, use `make distclean' before reconfiguring
|
||||
for another architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
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
|
||||
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=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.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
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
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
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
|
||||
`--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:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
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
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
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'.
|
||||
`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.
|
||||
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
|
||||
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
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
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.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
64
libs/glibmm2/Makefile.am
Normal file
64
libs/glibmm2/Makefile.am
Normal file
|
@ -0,0 +1,64 @@
|
|||
ACLOCAL_AMFLAGS = -I scripts
|
||||
|
||||
SUBDIRS = tools glib examples docs scripts tests MSVC_Net2003
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
|
||||
EXTRA_DIST = build_shared/Makefile_build.am_fragment \
|
||||
build_shared/Makefile_build_gensrc.am_fragment \
|
||||
build_shared/Makefile_gensrc.am_fragment \
|
||||
build_shared/Makefile_gensrc_platform.am_fragment \
|
||||
build_shared/Makefile_build_extra.am_fragment \
|
||||
CHANGES README.win32
|
||||
|
||||
|
||||
all-local:
|
||||
@echo "*** Everything completed ***"
|
||||
|
||||
dist-hook:
|
||||
@echo; echo; \
|
||||
echo "**********************************************************"; \
|
||||
echo "* IMPORTANT NOTICE: *"; \
|
||||
echo "* *"; \
|
||||
echo "* Be sure you have done a complete build before running *"; \
|
||||
echo "* 'make dist' or 'make distcheck', because otherwise *"; \
|
||||
echo "* the tarball will _not_ contain the dependency rules *"; \
|
||||
echo "* generated by the compiler. *"; \
|
||||
echo "**********************************************************"; \
|
||||
echo; echo
|
||||
|
||||
|
||||
include $(top_srcdir)/docs/Makefile_web.am_fragment
|
||||
|
||||
doc_tarball_files = \
|
||||
docs/images/*.gif \
|
||||
docs/internal/*.txt docs/internal/*.dia docs/reference/html
|
||||
|
||||
# This doesn't work very well in a $(srcdir) != $(builddir) setup,
|
||||
# but this target is for maintainer use only anyway.
|
||||
|
||||
glibmm-docs.tar.gz:
|
||||
find examples -name '*.cc' -o -name '*.h' -o -name '*.xpm' -o -name '*.xml' | \
|
||||
tar cf - --files-from - $(doc_tarball_files) | gzip -c --best >$@
|
||||
|
||||
# Upload documentation and examples:
|
||||
|
||||
post-html-recursive:
|
||||
list='docs examples'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) post-html); \
|
||||
done
|
||||
|
||||
post-html-local: glibmm-docs.tar.gz
|
||||
rsync $(rsync_args) glibmm-docs.tar.gz $$USER@$(web_host):$(web_path_gtkmm)
|
||||
|
||||
post-html: post-html-recursive post-html-local
|
||||
|
||||
doc-clean-recursive:
|
||||
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-clean)
|
||||
|
||||
doc-clean: doc-clean-recursive
|
||||
|
||||
doc-rebuild:
|
||||
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
|
||||
|
||||
.PHONY: post-html post-html-local post-html-recursive doc-clean doc-clean-recursive doc-rebuild
|
||||
|
713
libs/glibmm2/Makefile.in
Normal file
713
libs/glibmm2/Makefile.in
Normal file
|
@ -0,0 +1,713 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure \
|
||||
$(top_srcdir)/docs/Makefile_web.am_fragment AUTHORS COPYING \
|
||||
ChangeLog INSTALL NEWS
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/cxx.m4 \
|
||||
$(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = config.h $(top_builddir)/glib/glibmmconfig.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GLIBMM_CFLAGS = @GLIBMM_CFLAGS@
|
||||
GLIBMM_LIBS = @GLIBMM_LIBS@
|
||||
GLIBMM_MAJOR_VERSION = @GLIBMM_MAJOR_VERSION@
|
||||
GLIBMM_MICRO_VERSION = @GLIBMM_MICRO_VERSION@
|
||||
GLIBMM_MINOR_VERSION = @GLIBMM_MINOR_VERSION@
|
||||
GLIBMM_RELEASE = @GLIBMM_RELEASE@
|
||||
GLIBMM_VERSION = @GLIBMM_VERSION@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
GTKMM_FALSE_FALSE = @GTKMM_FALSE_FALSE@
|
||||
GTKMM_FALSE_TRUE = @GTKMM_FALSE_TRUE@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OS_WIN32_FALSE = @OS_WIN32_FALSE@
|
||||
OS_WIN32_TRUE = @OS_WIN32_TRUE@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@
|
||||
PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_AS = @ac_ct_AS@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
ACLOCAL_AMFLAGS = -I scripts
|
||||
SUBDIRS = tools glib examples docs scripts tests MSVC_Net2003
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
EXTRA_DIST = build_shared/Makefile_build.am_fragment \
|
||||
build_shared/Makefile_build_gensrc.am_fragment \
|
||||
build_shared/Makefile_gensrc.am_fragment \
|
||||
build_shared/Makefile_gensrc_platform.am_fragment \
|
||||
build_shared/Makefile_build_extra.am_fragment \
|
||||
CHANGES README.win32
|
||||
|
||||
web_host = gtkmm.org
|
||||
web_path_gtkmm = /home/murrayc/gtkmm.org/docs/glibmm-2.4/
|
||||
#web_path_gtkmm = /home/groups/g/gt/gtkmm/htdocs/docs/glibmm-2.4/
|
||||
web_path_docs = $(web_path_gtkmm)docs/
|
||||
rsync_args = -vz --rsh ssh --delete --delete-after
|
||||
gtkmm_docdir = $(datadir)/doc/glibmm-2.4/docs
|
||||
doc_tarball_files = \
|
||||
docs/images/*.gif \
|
||||
docs/internal/*.txt docs/internal/*.dia docs/reference/html
|
||||
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/docs/Makefile_web.am_fragment $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
config.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkdir_p) $(distdir)/MSVC_Net2003/glibmm $(distdir)/build_shared $(distdir)/docs $(distdir)/docs/reference $(distdir)/glib $(distdir)/scripts $(distdir)/tools
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
distuninstallcheck:
|
||||
@cd $(distuninstallcheck_dir) \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile config.h all-local
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-local \
|
||||
am--refresh check check-am clean clean-generic clean-libtool \
|
||||
clean-recursive ctags ctags-recursive dist dist-all dist-bzip2 \
|
||||
dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \
|
||||
distclean distclean-generic distclean-hdr distclean-libtool \
|
||||
distclean-recursive distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am uninstall-info-am
|
||||
|
||||
|
||||
all-local:
|
||||
@echo "*** Everything completed ***"
|
||||
|
||||
dist-hook:
|
||||
@echo; echo; \
|
||||
echo "**********************************************************"; \
|
||||
echo "* IMPORTANT NOTICE: *"; \
|
||||
echo "* *"; \
|
||||
echo "* Be sure you have done a complete build before running *"; \
|
||||
echo "* 'make dist' or 'make distcheck', because otherwise *"; \
|
||||
echo "* the tarball will _not_ contain the dependency rules *"; \
|
||||
echo "* generated by the compiler. *"; \
|
||||
echo "**********************************************************"; \
|
||||
echo; echo
|
||||
|
||||
# This doesn't work very well in a $(srcdir) != $(builddir) setup,
|
||||
# but this target is for maintainer use only anyway.
|
||||
|
||||
glibmm-docs.tar.gz:
|
||||
find examples -name '*.cc' -o -name '*.h' -o -name '*.xpm' -o -name '*.xml' | \
|
||||
tar cf - --files-from - $(doc_tarball_files) | gzip -c --best >$@
|
||||
|
||||
# Upload documentation and examples:
|
||||
|
||||
post-html-recursive:
|
||||
list='docs examples'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) post-html); \
|
||||
done
|
||||
|
||||
post-html-local: glibmm-docs.tar.gz
|
||||
rsync $(rsync_args) glibmm-docs.tar.gz $$USER@$(web_host):$(web_path_gtkmm)
|
||||
|
||||
post-html: post-html-recursive post-html-local
|
||||
|
||||
doc-clean-recursive:
|
||||
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-clean)
|
||||
|
||||
doc-clean: doc-clean-recursive
|
||||
|
||||
doc-rebuild:
|
||||
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
|
||||
|
||||
.PHONY: post-html post-html-local post-html-recursive doc-clean doc-clean-recursive doc-rebuild
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
399
libs/glibmm2/NEWS
Normal file
399
libs/glibmm2/NEWS
Normal file
|
@ -0,0 +1,399 @@
|
|||
2.13.3:
|
||||
|
||||
* gmmproc improvements:
|
||||
- gmmproc: Allow () in property and signal docuemntation.
|
||||
- gmmproc: Do not try to remove a common prefix from the
|
||||
C enam values, if there is no common prefix.
|
||||
- enum.pl: Allow whitespace in front of an enum typedef.
|
||||
(Daniel Elstner)
|
||||
- enum.pl: Fix an infinite loop.
|
||||
|
||||
* ObjectBase: Added connect_property_changed(),
|
||||
as an alternative to use when the property proxies are not
|
||||
available because GLIBMM_PROPERTIES_ENABLED is not defined.
|
||||
(Murray Cumming)
|
||||
* Value: When registering float parameters, use
|
||||
G_MAXFLOAT as the minimum, instead of G_MINFLOAT.
|
||||
Likewise for doubles.
|
||||
(Oliver Nittka)
|
||||
|
||||
2.13.2:
|
||||
|
||||
*Build:
|
||||
- Fix for api-default-signal-handlers option.
|
||||
Bug #357830 (Matt Hoosier)
|
||||
- win32: Remove unused source file from Visual Studio project.
|
||||
(Cedric Gustin)
|
||||
|
||||
2.13.1:
|
||||
|
||||
* KeyFile class added, wrapping GKeyFile,
|
||||
for parsing of .ini-style files.
|
||||
(Rob Page)
|
||||
* Added get_user_data_dir(), get_user_config_dir(), and
|
||||
get_user_cache_dir().
|
||||
(Jonathon Jongsma)
|
||||
* Support optional ifdef parameters in the .hg macros,
|
||||
to allow, for instance the --enable-atk=no option,
|
||||
to disable the build and use of the atkmm API,
|
||||
for use in embedded environments.
|
||||
(Johannes Schimd, Murray Cuming, Openismus)
|
||||
* Documentation:
|
||||
- Small ustring reference documentation improvement.
|
||||
(Ralf Stephan)
|
||||
|
||||
2.12.0:
|
||||
|
||||
Changes sinze 2.10:
|
||||
* Added the --enable-api-default-signal-handlers option, for use in
|
||||
embedded environments that have reduced resources. See configure --help
|
||||
for the other subsets.
|
||||
* Value: Added init(const GValue*), so we can copy GValue instances
|
||||
of any type at runtime. Needed by the new branch of libgdamm.
|
||||
|
||||
2.11.3:
|
||||
|
||||
* Build: Added the --enable-api-default-signal-handlers option, for use in
|
||||
embedded environments that have reduced resources. See configure --help
|
||||
for the other subsets.
|
||||
|
||||
2.11.2:
|
||||
|
||||
* Date: Fix implementation of Glib::Date::set_time_current() so
|
||||
that it doesn't set the date to Dec 31, 1969.
|
||||
(Jonathon Jongsma)
|
||||
* Value: Added init(const GValue*), so we can copy GValue instances
|
||||
of any type at runtime. Needed by the new branch of libgdamm.
|
||||
(Murray Cumming)
|
||||
* Added a #warning to warn about including X11/Xlib.h before a glibmm header,
|
||||
which would break things. Bug #316726 from Mert Tugcu and Javeed Shaikh.
|
||||
(Murray Cumming)
|
||||
* Build:
|
||||
- Quote some m4 macros to avoid warnings. Bugs (with patches) #347076
|
||||
and #347077
|
||||
(Kevin McBride).
|
||||
- Fix exporting of get/set_property() on mingw32-gcc.
|
||||
(Cedric Gustin)
|
||||
|
||||
|
||||
|
||||
|
||||
2.10.1
|
||||
|
||||
* Windows Build:
|
||||
- Define GLIBMM_DLL when building with mingw32 or cygwin,
|
||||
because it is needed by gtkmm. Bug #309030
|
||||
(Cedric Gustin)
|
||||
* OptionGroup: Allow default values, by not initializing them all.
|
||||
(Armin Burgmeier)
|
||||
* Slight code size reduction by marking private functions as static.
|
||||
(Murray Cumming)
|
||||
|
||||
2.10.0:
|
||||
|
||||
* Windows Build:
|
||||
- ustring.h: Tag npos with GLIBMM_API, in order to
|
||||
dllexport it on win32. Bug #332438.
|
||||
- Updated MSVC++ build files and README, for MS Visual Studio 2005.
|
||||
(Cedric Gustin)
|
||||
* gmmproc code generator:
|
||||
- WRAP_METHOD() Take an extra optional argument: deprecated deprecationtext -
|
||||
so that we can insert the appropriate doxygen tag in the documentation, where
|
||||
the C documentation does not do it for us.
|
||||
|
||||
2.9.1:
|
||||
|
||||
* Date:
|
||||
- Added set_time(time_t), set_time(GTimeVal), and deprecated
|
||||
set_time(GTime)
|
||||
- Added set_time_current().
|
||||
(Murray Cumming)
|
||||
* Build: Added --enable-deprecated-api option. When set to disabled,
|
||||
it does not build deprecated API. This reduces the size of the
|
||||
library, and might be useful for embedded devices.
|
||||
(Murray Cumming)
|
||||
|
||||
2.8.2:
|
||||
|
||||
* Solaris build fix: Correct the detection
|
||||
of make. (Mark Rouchal)
|
||||
|
||||
2.8.1:
|
||||
|
||||
* Build: Check for glib 2.8.
|
||||
|
||||
2.8.0:
|
||||
|
||||
API additions since glibmm 2.6:
|
||||
|
||||
* GModule: Add BIND_LOCAL enum value.
|
||||
(Bug #172748 from Phillip Neiswanger).
|
||||
* MainContext Added signal_child_watch()
|
||||
and examples/child_watch.
|
||||
(Yair Hershkovitz)
|
||||
* OptionEntry: Added FLAG_NO_ARG, FLAG_FILENAME,
|
||||
FLAG_OPTIONAL_ARG, and FLAG_NOALIAS enum values.
|
||||
(Murray Cumming)
|
||||
|
||||
2.7.3:
|
||||
|
||||
* Updated reference documentation from glib documentation.
|
||||
|
||||
2.7.2:
|
||||
|
||||
* OptionEntry: Added FLAG_NO_ARG, FLAG_FILENAME,
|
||||
FLAG_OPTIONAL_ARG, and FLAG_NOALIAS enum values.
|
||||
* build_filename() and build_path(): Now use the implementation
|
||||
from glib.
|
||||
|
||||
2.7.1:
|
||||
|
||||
* GModule: Add BIND_LOCAL enum value.
|
||||
(Bug #172748 from Phillip Neiswanger).
|
||||
* MainContext Added signal_child_watch()
|
||||
and examples/child_watch.
|
||||
(Yair Hershkovitz)
|
||||
* Fixes from 2.6.2.
|
||||
|
||||
2.6.1:
|
||||
|
||||
* Interface::add_interface(): Disabled the check for a second call,
|
||||
introduced in 2.6.0, for now, because it stops some valid uses.
|
||||
(Bryan Forbes)
|
||||
|
||||
2.6.0:
|
||||
|
||||
New stable version. Changes compare to glibmm 2.4.x:
|
||||
|
||||
* Added Option, OptionContext, OptionGroup for parsing of command-line arguments.
|
||||
* Added filename_display_basename() and filename_display_name().
|
||||
* Added setenv() and unsetenv().
|
||||
* add_interface() methods will no longer give warnings if you
|
||||
call them twice.
|
||||
* gmmproc:
|
||||
- Now reuses C properties documentation.
|
||||
|
||||
2.5.6:
|
||||
|
||||
* add_interface() methods will no longer give warnings if you
|
||||
call them twice.
|
||||
* gmmproc: Output properties documentation taken from the .defs.
|
||||
* examples now build on AIX.
|
||||
(Murray Cumming)
|
||||
* MSVC++ .Net 2003 build fix. (Cedric Gustin)
|
||||
|
||||
2.5.5:
|
||||
|
||||
* Now builds with the following compilers, in addition to
|
||||
the existing GNU g++, and Intel compilers:
|
||||
- SUN Forte CC 5.5
|
||||
- IBM AIX xlC v7
|
||||
- Tru64 C++ V6.5-042
|
||||
- IRIX MIPSpro 7.4.2m
|
||||
(Older versions of all these compilers might also work.)
|
||||
(Murray Cumming, www.thewrittenword.com)
|
||||
* Now builds with MSVC++ .Net 2003 (gtkmm 2.4 already did).
|
||||
(Cedric Gustin)
|
||||
|
||||
2.5.4:
|
||||
|
||||
Options:
|
||||
* Added Option(GOptionGroup* cast_item) constructor,
|
||||
needed by Gtk::Main.
|
||||
* Added reference documentation.
|
||||
(Murray Cumming)
|
||||
|
||||
2.5.3:
|
||||
|
||||
* Options:
|
||||
- Allow parsing of boolean arguments (arguments with no value).
|
||||
- Really use the short names.
|
||||
(Daniel Holbach, Murray Cumming)
|
||||
* Added filename_display_basename() and filename_display_name().
|
||||
(Murray Cumming)
|
||||
* Added setenv() and unsetenv(). (Murray Cumming)
|
||||
* Use static keyword to prevent exporting private API.
|
||||
(Benoît Dejean)
|
||||
* input example: Improvements and simplification. (Chris Vine)
|
||||
|
||||
2.5.2:
|
||||
|
||||
* OptionEntry: Remove useless enum. (Murray Cumming)
|
||||
* Documentation:
|
||||
- examples: Added iochannel_stream example. (Chris Vine)
|
||||
- reference: Generate more reference API from the C documentation, and
|
||||
try to use the libstdc++ doxygen tags file to link to their
|
||||
documentation. (Murray Cumming)
|
||||
|
||||
2.5.1:
|
||||
|
||||
* OptionContext, OptionGroup, OptionEntry: Made the add_entry() methods
|
||||
type-safe and fixed several problems memory-management problems. This
|
||||
API is now worth looking at.
|
||||
|
||||
2.5.0:
|
||||
|
||||
* Added OptionContext, OptionGroup, and OptionEntry classes, for
|
||||
parsing of command-line options. See examples/options/
|
||||
|
||||
2.4.4:
|
||||
|
||||
* Signals: Avoid crashes when disconnecting a signal when handling that signal.
|
||||
(Murray Cumming, Martin Schulze)
|
||||
*
|
||||
2.4.3:
|
||||
|
||||
* Minor improvements to reference documentation. (Daniel Elstner)
|
||||
* Minor Glib::Dispatcher improvements (Daniel Elstner)
|
||||
|
||||
2.4.2:
|
||||
|
||||
* Glib::Dispatcher: win32 implementation rewritten, and hopefully, improved.
|
||||
(Daniel Elstner)
|
||||
* Glib::ustring:
|
||||
- Optimization and code-cleanup. (Daniel Elstner)
|
||||
- Added reference documentation for constuctors. (Murray Cumming)
|
||||
* Fixed some compiler warnings.
|
||||
(Daniel Elstner)
|
||||
* gmmproc: Some improvements for libgdamm. (Murray Cumming)
|
||||
|
||||
|
||||
2.4.1:
|
||||
|
||||
* Build fixes for gcc 3.4.0.
|
||||
* Doxygen not required when building from tarballs.
|
||||
(Murray Cumming)
|
||||
|
||||
|
||||
2.4.0:
|
||||
|
||||
Changes since 2.2.0:
|
||||
|
||||
* Now separate from gtkmm, so you can use things like Glib::ustring without depending on gtkmm. This glibmm 2.4 API installs in parallel with gtkmm 2.0/2.2, so you can install applications which use either.
|
||||
* When using pkg-config, you should check for "glibmm-2.4".
|
||||
* Glib::ObjectBase inherits virtually from SigC::Object, allowing multiple inheritance with other classes that inherit from SigC::Object.
|
||||
* RefPtr:
|
||||
- is_null() was removed, to encourage you to use "== 0" instead.
|
||||
- operator=(CppObject*) was removed.
|
||||
* The gtkmmproc code-generator is now gmmproc, and has several improvements to support gtkmm 2.4.
|
||||
* Now uses improved libsigc++ 2.0 API.
|
||||
* Added i18n.h and i18n-lib.h, which include the relevant
|
||||
glib headers, which declare internationalization
|
||||
macros such as _().
|
||||
* New methods:
|
||||
Glib::spawn_close_id(), Glib::MainLoop::depth(),
|
||||
Glib::Date::clamp_min(), Glib::Date::clamp_max().
|
||||
* Improved documentation.
|
||||
|
||||
|
||||
2.3.8:
|
||||
|
||||
* Fix crash when using Glib::Main signals.
|
||||
(Martin Schulze)
|
||||
* Corrected the configure-time SUN compiler check.
|
||||
(Murray Cumming, Alexander Nedotsukov)
|
||||
|
||||
2.3.7:
|
||||
|
||||
* Added configure macros to detect SUN compiler oddities.
|
||||
* Various SUN Forte C+ and g++ 3.4 (cvs) build fixes.
|
||||
(Murray Cumming)
|
||||
* gmmproc: Improved parsing of C docs.
|
||||
(Hagen Moebius)
|
||||
|
||||
2.3.6:
|
||||
|
||||
* Added i18n.h and i18n-lib.h, which include the relevant
|
||||
glib headers, which declare internationalization
|
||||
macros such as _(). (Murray Cumming)
|
||||
* Added Glib::spawn_close_id(). (Murray Cumming)
|
||||
* Added Glib::MainLoop::depth(). (Murray Cumming)
|
||||
* Documentation: corrections to CHANGES (Martin Schulze).
|
||||
* gmmproc: Can now handle "const const_iterator& iter"
|
||||
parameter names without getting confused by 2 consts.
|
||||
(Murray Cumming)
|
||||
|
||||
2.3.5:
|
||||
|
||||
* glibmm now uses libsigc++ 2 rather than libsigc++ 1.2.
|
||||
|
||||
2.3.4:
|
||||
|
||||
* ListHandle/SListHandle (intermediate container types):
|
||||
- Added a const_cast<> to allow lists of const elements.
|
||||
* gmmproc: _WRAP_SIGNAL(): Added optional custom_c_callback
|
||||
parameter.
|
||||
(Murray Cumming)
|
||||
* WIN32: Build fixes, mostly merged from the 2.2 branch.
|
||||
(Cedric Gustin)
|
||||
|
||||
2.3.3:
|
||||
|
||||
* gmmproc (code generator)
|
||||
- properties: Make read-only properties have const accessors,
|
||||
and add a second read-only const accessor for normal
|
||||
properties. Wrap construct-only properties as read-only,
|
||||
instead of ignoring them.
|
||||
- vfuncs: Really generate const vfuncs when requested. Put
|
||||
the method declaration directly into the .h file, so that
|
||||
the doxygen documentation can be next to it.
|
||||
- documentation:
|
||||
- Remove mergecdocs configure option - always
|
||||
merge the C docs, to avoid any risk of uploading or
|
||||
releasing empty documentation. Just delete the *_docs.xml
|
||||
files to make building from cvs faster.
|
||||
- Install a GLIBMM_CHECK_PERL() macro, for use by gtkmm
|
||||
and other *mm projects, to get the perl path needed by
|
||||
doxygen.
|
||||
- Install beautify_docs.pl so it can be reused in gtkmm
|
||||
and other *mm projects, instead of having lots of copies.
|
||||
* Glib::ObjectBase: The default constructor, never before used,
|
||||
now generates a custom GType, for use when creating new
|
||||
implementations of Glib::Interfaces - for instance, see the
|
||||
new custom tree model example in gtkmm.
|
||||
* Glib::Date: Added clamp_min() and clamp_max().
|
||||
(Murray Cumming)
|
||||
|
||||
* Documentation:
|
||||
- Added reference documentation for MainLoop, MainContext,
|
||||
Source, and Date. (Alberto Paro)
|
||||
|
||||
2.3.2:
|
||||
|
||||
* gmmproc (code generator):
|
||||
- signal proxies have extra space to avoid << with templates.
|
||||
- Added WRAP_METHOD_DOCS_ONLY() for reusing documentation even
|
||||
when the method is hand-coded.
|
||||
- _WRAP_SIGNAL(): Added optional no_default_handler parameter,
|
||||
because some of the new GTK+ signals have no public default
|
||||
handler vfunc.
|
||||
* Added Glib::init(), for use by non-GUI apps which need to
|
||||
use Glib::wrap().
|
||||
* PropertyProxy: Can now be used with Interfaces.
|
||||
* Documentation improvements, so that gtkmm docs link to glibmm
|
||||
docs.
|
||||
(Murray Cumming)
|
||||
|
||||
2.3.1:
|
||||
|
||||
* gmmproc changes needed by gtkmm 2.3.0
|
||||
(Murray Cumming)
|
||||
* examples updated and buildable and working,
|
||||
without gtkmm code.
|
||||
(J. Abelardo Gutierrez)
|
||||
|
||||
Changes in glibmm 2.3.0:
|
||||
|
||||
* Now separate from gtkmm, so you can use things like Glib::ustring without depending on gtkmm.
|
||||
This glibmm 2.4 API installs in parallel with gtkmm 2.0/2.2, so you can install this unstable library
|
||||
without the risk of breaking existing application.
|
||||
* This does not yet require glib 2.3 because there has been no tarball release of that yet. For now, you
|
||||
can use glibmm 2.3.0 with glib 2.2.x.
|
||||
* When using pkg-config, you should check for "glibmm-2.4".
|
||||
* Glib::ObjectBase inherits virtually from SigC::Object, allowing multiple inheritance with other
|
||||
classes that inherit from SigC::Object.
|
||||
* RefPtr:
|
||||
- is_null() was removed, to encourage you to use "== 0" instead.
|
||||
- operator=(CppObject*) was removed.
|
||||
* gtkmmproc is now gmmproc.
|
||||
* All the glibmm bugfixes in gtkmm 2.2.x.
|
4
libs/glibmm2/README
Normal file
4
libs/glibmm2/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
This is glibmm, a C++ API for parts of glib that are useful for C++.
|
||||
See http://www.gtkmm.org
|
||||
|
||||
|
65
libs/glibmm2/README.win32
Normal file
65
libs/glibmm2/README.win32
Normal file
|
@ -0,0 +1,65 @@
|
|||
Building glibmm on Win32
|
||||
===========================
|
||||
|
||||
Currently, both the mingw (native win32) gcc compiler and MS Visual
|
||||
Studio 2005 are supported. glibmm can be built with mingw32-gcc using
|
||||
the gnu autotools (automake, autoconf, libtool). As explicitly stated
|
||||
in the gtk+ for win32 distribution (http://www.gimp.org/win32/), the
|
||||
gcc compiler provided by the cygwin distribution should not be used to
|
||||
build glib/glibmm libraries and/or applications (see the README.win32
|
||||
that comes with the gtk+ DLLs). This MIGHT cause conflicts between the
|
||||
cygwin and msvcrt runtime environments.
|
||||
|
||||
1. Mingw
|
||||
|
||||
The mingw distribution which has been tested with this release is the
|
||||
following :
|
||||
|
||||
* MinGW-4.1 as the base distribution.
|
||||
|
||||
The bare mingw distribution does not provide the necessary tools (sh, perl, m4
|
||||
, autoconf, automake, ..) to run the provided configure script "as is". One
|
||||
(currently non supported) solution is to use mingw in conjunction with msys,
|
||||
which is readily available on the mingw website (http://www.mingw.org/).
|
||||
|
||||
The preferred method is to combine the cygwin distribution (for the unix tools
|
||||
that were mentioned above) with mingw by making sure that the mingw
|
||||
tools (gcc, ld, dlltool, ..) are called first.
|
||||
|
||||
First, make sure that you have working distribution of the native port
|
||||
of both libsigc++-2.0.x and glib-2.0 on win32 (see
|
||||
http://www.gimp.org/win32). If you can't compile a simple glib example
|
||||
using gcc and `pkg-config --cflags --libs`, you should not even think
|
||||
about trying to compile glibmm, let alone using precompiled libglibmm
|
||||
DLLs to port your glibmm application !
|
||||
|
||||
The configure script can then be called using (as an example) the
|
||||
following options
|
||||
|
||||
./configure --prefix=/target --build=i386-pc-mingw32 --disable-static
|
||||
|
||||
then
|
||||
|
||||
make
|
||||
make check
|
||||
make install
|
||||
|
||||
2. MS Visual Studio 2005
|
||||
|
||||
Open the glibmm.sln solution file in the MSVC_Net2003 directory. In
|
||||
the Tools/Options panel, add the appropriate GTK+ include and lib
|
||||
directories to the Projects and Solutions/VC++ directories. Build the
|
||||
solution.
|
||||
|
||||
Important NOTE : to circumvent the C++ compiler bug described in this
|
||||
bugzilla entry (http://bugzilla.gnome.org/show_bug.cgi?id=158040), it
|
||||
is necessary to add '/vd2' to the list of compiler options when
|
||||
building and/or using glibmm with Visual Studio 2005.
|
||||
|
||||
glibmm-2.8 will probably not work correctly with Visual Studio 7.1 or
|
||||
below because of the aforementioned bug.
|
||||
|
||||
3. Glibmm methods and signals not available on win32
|
||||
|
||||
All glibmm methods and signals are available on win32.
|
||||
|
48
libs/glibmm2/SConscript
Normal file
48
libs/glibmm2/SConscript
Normal file
|
@ -0,0 +1,48 @@
|
|||
# -*- python -*-
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import glob
|
||||
|
||||
|
||||
glibmm2_files = glob.glob('glib/glibmm/*.cc')
|
||||
|
||||
Import('env libraries install_prefix')
|
||||
|
||||
glibmm2 = env.Copy()
|
||||
glibmm2.Merge([libraries['sigc2'], libraries['glib2'], libraries['glibmm2']])
|
||||
|
||||
glibmm2.Append(CXXFLAGS=['-DHAVE_CONFIG_H', '-DGLIBMM_EXCEPTIONS_ENABLED', '-DGLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED', '-DGLIBMM_PROPERTIES_ENABLED'])
|
||||
#glibmm2.Append(CXXFLAGS='-DG_DISABLE_DEPRECATED')
|
||||
glibmm2.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"glibmm\\\"')
|
||||
|
||||
libglibmm2 = glibmm2.SharedLibrary('glibmm2', glibmm2_files)
|
||||
|
||||
if os.access ('autogen.sh', os.F_OK) :
|
||||
glibmm2_configure_script = glibmm2.Command ('configure', 'configure.ac', 'cd libs/glibmm2; ./autogen.sh; cd -', ENV=os.environ)
|
||||
glibmm2_config_h = glibmm2.Command('glib/glibmmconfig.h', [glibmm2_configure_script, 'glib/glibmmconfig.h.in'],
|
||||
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
|
||||
else :
|
||||
glibmm2_config_h = glibmm2.Command('glib/glibmmconfig.h', ['configure', 'glib/glibmmconfig.h.in'],
|
||||
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
|
||||
|
||||
Default([glibmm2_config_h, libglibmm2])
|
||||
|
||||
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), libglibmm2))
|
||||
|
||||
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
||||
[ 'SConscript',
|
||||
'glibmm.h',
|
||||
'configure',
|
||||
'Makefile.in',
|
||||
'glibmmconfig.h',
|
||||
'glibmmconfig.h.in',
|
||||
'glibmm-2.4.pc.in',
|
||||
'glibmm/Makefile.in',
|
||||
'scripts'
|
||||
] +
|
||||
glibmm2_files +
|
||||
glob.glob('glibmm/*.h') +
|
||||
glob.glob('glibmm/private/*.h')
|
||||
))
|
||||
|
7432
libs/glibmm2/aclocal.m4
vendored
Normal file
7432
libs/glibmm2/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
71
libs/glibmm2/build_shared/Makefile_build.am_fragment
Normal file
71
libs/glibmm2/build_shared/Makefile_build.am_fragment
Normal file
|
@ -0,0 +1,71 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
##
|
||||
## **** Common rules for inclusion in Makefile.am ****
|
||||
##
|
||||
##
|
||||
## Used variable: Example content:
|
||||
##
|
||||
## sublib_name = glibmm
|
||||
## sublib_cflags = $(GLIBMM_CFLAGS)
|
||||
## files_built_*_cc =
|
||||
## files_built_*_h = proxy.h
|
||||
## files_extra_cc = array.cc class.cc closure.cc
|
||||
## files_extra_h = array.h boxedtype.h class.h
|
||||
## files_extra_all_cc = array.cc class.cc closure.cc
|
||||
## files_extra_all_h = array.h boxedtype.h class.h
|
||||
##
|
||||
## Returned variable: Usage example:
|
||||
##
|
||||
## files_all_*_cc libglibmm_la_SOURCES = $(files_all_*_cc)
|
||||
## common_ldflags libglibmm_la_LDFLAGS = $(common_ldflags)
|
||||
|
||||
files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
|
||||
files_all_posix_cc = $(files_built_posix_cc)
|
||||
files_all_win32_cc = $(files_built_win32_cc)
|
||||
|
||||
# Support for DLL on mingw using libtool > 1.4
|
||||
# When creating DLLs on win32, we need to explicitly add a few extra
|
||||
# libraries at link time to resolve symbols (remember a dll is like an
|
||||
# executable).
|
||||
if PLATFORM_WIN32
|
||||
extra_win32_defines = \
|
||||
-D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
||||
no_undefined = -no-undefined -Wl,--export-all-symbols
|
||||
win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
||||
else
|
||||
extra_win32_defines =
|
||||
no_undefined =
|
||||
win32_dlls_extra_libs =
|
||||
endif
|
||||
|
||||
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
||||
|
||||
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
||||
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
||||
|
||||
extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
||||
|
||||
dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
|
||||
$(files_built_all_h) $(files_extra_all_h)
|
||||
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
DEFS = @DEFS@ $(strip $(extra_defines))
|
||||
DEFAULT_INCLUDES =
|
||||
INCLUDES = $(strip $(all_includes))
|
||||
|
||||
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
||||
if OS_WIN32
|
||||
sublib_include_HEADERS = $(files_built_general_h) \
|
||||
$(files_built_win32_h) \
|
||||
$(files_extra_h)
|
||||
else
|
||||
sublib_include_HEADERS = $(files_built_general_h) \
|
||||
$(files_built_posix_h) \
|
||||
$(files_extra_h)
|
||||
endif
|
||||
|
||||
maintainer-clean-local:
|
||||
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
||||
|
40
libs/glibmm2/build_shared/Makefile_build_extra.am_fragment
Normal file
40
libs/glibmm2/build_shared/Makefile_build_extra.am_fragment
Normal file
|
@ -0,0 +1,40 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
##
|
||||
## **** Common rules for inclusion in Makefile.am ****
|
||||
##
|
||||
##
|
||||
## Used variable: Example content:
|
||||
##
|
||||
## sublib_name = gtkmm
|
||||
## sublib_cflags = $(GTKMM_CFLAGS)
|
||||
## sublib_files_extra_*_cc = stock_id.cc
|
||||
## sublib_files_extra_*_h = stock_id.h
|
||||
##
|
||||
## Returned variable: Usage example:
|
||||
##
|
||||
## files_extra_cc libgtkmm_la_SOURCES = $(files_all_cc)
|
||||
## files_extra_h libgtkmm_la_SOURCES = $(files_all_general_cc)
|
||||
## files_extra_all_cc libgtkmm_la_SOURCES = $(files_all_posix_cc)
|
||||
## files_extra_all_h libgtkmm_la_SOURCES = $(files_all_win32_cc)
|
||||
|
||||
## The temporary sublib_ variables are needed to workaround
|
||||
## a nasty automake problem with escaped newlines and +=.
|
||||
|
||||
if OS_WIN32
|
||||
files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_win32_cc)
|
||||
files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_win32_h)
|
||||
else
|
||||
files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc)
|
||||
files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_posix_h)
|
||||
endif
|
||||
|
||||
files_extra_cc = $(files_extra_cc_tmp)
|
||||
files_extra_h = $(files_extra_h_tmp)
|
||||
|
||||
files_extra_all_cc = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc) $(sublib_files_extra_win32_cc)
|
||||
files_extra_all_h = $(sublib_files_extra_general_h) $(sublib_files_extra_posix_h) $(sublib_files_extra_win32_h)
|
||||
|
||||
files_extra_h += wrap_init.h
|
||||
files_extra_all_h += wrap_init.h
|
||||
|
66
libs/glibmm2/build_shared/Makefile_build_gensrc.am_fragment
Normal file
66
libs/glibmm2/build_shared/Makefile_build_gensrc.am_fragment
Normal file
|
@ -0,0 +1,66 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
##
|
||||
## **** Common rules for inclusion in Makefile.am ****
|
||||
##
|
||||
##
|
||||
## Used variable: Example content:
|
||||
##
|
||||
## sublib_name = gtkmm
|
||||
## sublib_cflags = $(GTKMM_CFLAGS)
|
||||
## files_extra_cc = stock_id.cc
|
||||
## files_extra_h = base.h stock_id.h
|
||||
##
|
||||
## Returned variable: Usage example:
|
||||
##
|
||||
## files_all_general_cc libgtkmm_la_SOURCES = $(files_all_general_cc)
|
||||
## files_all_posix_cc libgtkmm_la_SOURCES = $(files_all_posix_cc)
|
||||
## files_all_win32_cc libgtkmm_la_SOURCES = $(files_all_win32_cc)
|
||||
## common_ldflags libgtkmm_la_LDFLAGS = $(common_ldflags)
|
||||
|
||||
include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
|
||||
include $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
||||
|
||||
files_built_general_cc = $(files_general_hg:.hg=.cc) wrap_init.cc
|
||||
files_built_general_h = $(files_general_hg:.hg=.h)
|
||||
files_built_posix_cc = $(files_posix_hg:.hg=.cc)
|
||||
files_built_posix_h = $(files_posix_hg:.hg=.h)
|
||||
files_built_win32_cc = $(files_win32_hg:.hg=.cc)
|
||||
files_built_win32_h = $(files_win32_hg:.hg=.h)
|
||||
|
||||
files_built_all_cc = $(files_built_general_cc) \
|
||||
$(files_built_posix_cc) \
|
||||
$(files_built_win32_cc)
|
||||
files_built_all_h = $(files_built_general_h) \
|
||||
$(files_built_posix_h) \
|
||||
$(files_built_win32_h)
|
||||
|
||||
include $(top_srcdir)/build_shared/Makefile_build_extra.am_fragment
|
||||
include $(top_srcdir)/build_shared/Makefile_build.am_fragment
|
||||
|
||||
cvsignore:
|
||||
( \
|
||||
echo ".deps"; \
|
||||
echo ".libs"; \
|
||||
echo "*.la"; \
|
||||
echo "*.lo"; \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_built_all_cc) $(files_built_all_h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/.cvsignore
|
||||
( \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_all_hg:.hg=_p.h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/private/.cvsignore
|
||||
|
||||
.PHONY: cvsignore
|
||||
|
62
libs/glibmm2/build_shared/Makefile_gensrc.am_fragment
Normal file
62
libs/glibmm2/build_shared/Makefile_gensrc.am_fragment
Normal file
|
@ -0,0 +1,62 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
##
|
||||
## **** Common rules for inclusion in Makefile.am ****
|
||||
##
|
||||
##
|
||||
## Used variable: Example content:
|
||||
##
|
||||
## sublib_name = gdkmm
|
||||
## sublib_namespace = Gdk
|
||||
## files_defs = gdk.defs gdk_pixbuf.defs
|
||||
|
||||
|
||||
tools_dir_m4 = $(top_srcdir)/tools/m4
|
||||
tools_dir_pm = $(top_srcdir)/tools/pm
|
||||
|
||||
gensrc_destdir = $(srcdir)/../$(sublib_name)
|
||||
stamp_dir = $(srcdir)/.stamps
|
||||
|
||||
include $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment
|
||||
tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4)
|
||||
tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm)
|
||||
|
||||
include $(srcdir)/Makefile_list_of_hg.am_fragment
|
||||
include $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
||||
files_all_ccg = $(files_all_hg:%.hg=%.ccg)
|
||||
files_h = $(files_all_hg:%.hg=$(gensrc_destdir)/%.h)
|
||||
files_cc = $(files_all_hg:%.hg=$(gensrc_destdir)/%.cc)
|
||||
files_stamp = $(files_all_hg:%.hg=$(stamp_dir)/stamp-%)
|
||||
|
||||
gmmproc_in = $(top_srcdir)/tools/gmmproc.in
|
||||
gmmproc_path = $(top_builddir)/tools/gmmproc
|
||||
gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir)
|
||||
run_gmmproc = $(PERL_PATH) -I$(tools_dir_pm) $(gmmproc_path) $(gmmproc_args)
|
||||
|
||||
gen_wrap_init_in = $(top_srcdir)/tools/generate_wrap_init.pl.in
|
||||
gen_wrap_init_path = $(top_builddir)/tools/generate_wrap_init.pl
|
||||
gen_wrap_init_args = --namespace=$(sublib_namespace)
|
||||
run_gen_wrap_init = $(PERL_PATH) $(gen_wrap_init_path) $(gen_wrap_init_args)
|
||||
|
||||
EXTRA_DIST = Makefile_list_of_hg.am_fragment $(files_defs) $(files_all_hg) $(files_all_ccg)
|
||||
|
||||
|
||||
$(stamp_dir)/stamp-%: %.hg %.ccg $(gmmproc_in) $(tools_m4) $(tools_pm) $(files_defs)
|
||||
$(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir)
|
||||
@echo 'timestamp' >$@
|
||||
|
||||
$(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_in) $(files_all_hg)
|
||||
$(run_gen_wrap_init) $(files_all_hg:%.hg=$(srcdir)/%.hg) >$@
|
||||
|
||||
create-stamp-dir:
|
||||
@(test -d $(stamp_dir) || mkdir $(stamp_dir))
|
||||
|
||||
if MAINTAINER_MODE
|
||||
all-local: create-stamp-dir $(files_stamp) $(gensrc_destdir)/wrap_init.cc
|
||||
endif
|
||||
|
||||
maintainer-clean-local:
|
||||
rm -rf $(stamp_dir)
|
||||
|
||||
.PHONY: create-stamp-dir
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
##
|
||||
## **** Common rules for inclusion in Makefile.am ****
|
||||
##
|
||||
##
|
||||
## Used variable: Example content:
|
||||
##
|
||||
## files_general_hg = button.hg
|
||||
## files_posix_hg = socket.hg
|
||||
##
|
||||
## Returned variable: Usage example:
|
||||
##
|
||||
## files_all_hg EXTRA_DIST = $(files_all_hg)
|
||||
## files_hg files_built_h = $(files_hg:.hg=_p.h)
|
||||
|
||||
|
||||
files_all_hg = $(files_general_hg) $(files_posix_hg) $(files_win32_hg)
|
||||
|
||||
if OS_WIN32
|
||||
files_hg = $(files_general_hg) $(files_win32_hg)
|
||||
else
|
||||
files_hg = $(files_general_hg) $(files_posix_hg)
|
||||
endif
|
||||
|
6
libs/glibmm2/config.h
Normal file
6
libs/glibmm2/config.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* config.h. Generated by configure. */
|
||||
|
||||
#define HAVE_FLOCKFILE 1
|
||||
#define HAVE_FUNLOCKFILE 1
|
||||
/* #undef GETC_UNLOCKED */
|
||||
#define HAVE_MKFIFO 1
|
5
libs/glibmm2/config.h.in
Normal file
5
libs/glibmm2/config.h.in
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
#undef HAVE_FLOCKFILE
|
||||
#undef HAVE_FUNLOCKFILE
|
||||
#undef GETC_UNLOCKED
|
||||
#undef HAVE_MKFIFO
|
1284
libs/glibmm2/config.log
Normal file
1284
libs/glibmm2/config.log
Normal file
File diff suppressed because it is too large
Load Diff
1319
libs/glibmm2/config.status
Normal file
1319
libs/glibmm2/config.status
Normal file
File diff suppressed because it is too large
Load Diff
23012
libs/glibmm2/configure
vendored
Normal file
23012
libs/glibmm2/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
302
libs/glibmm2/configure.in
Normal file
302
libs/glibmm2/configure.in
Normal file
|
@ -0,0 +1,302 @@
|
|||
# Configure.in
|
||||
#
|
||||
# This file tests for various compiler features needed to configure
|
||||
# the gtkmm package. Original skeleton was provided by Stephan Kulow.
|
||||
# All tests were written by Tero Pulkkinen, Mirko Streckenbach, and
|
||||
# Karl Nelson.
|
||||
#
|
||||
# NOTE! IF YOU DO CHANGES HERE, CHECK IF YOU NEED TO MODIFY .m4 TOO!!!
|
||||
#
|
||||
# Copyright 2001 Free Software Foundation
|
||||
# Copyright 1999 gtkmm Development Team
|
||||
# Copyright 1998 Stephan Kulow
|
||||
#
|
||||
AC_INIT(glib/glibmmconfig.h.in)
|
||||
AC_PREREQ(2.50)
|
||||
|
||||
#########################################################################
|
||||
# Version and initialization
|
||||
#########################################################################
|
||||
GLIBMM_MAJOR_VERSION=2
|
||||
GLIBMM_MINOR_VERSION=13
|
||||
GLIBMM_MICRO_VERSION=3
|
||||
GLIBMM_VERSION=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION.$GLIBMM_MICRO_VERSION
|
||||
GLIBMM_RELEASE=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION
|
||||
AC_DEFINE_UNQUOTED([GLIBMM_MAJOR_VERSION], $GLIBMM_MAJOR_VERSION, [Major Version])
|
||||
AC_DEFINE_UNQUOTED([GLIBMM_MINOR_VERSION], $GLIBMM_MINOR_VERSION, [Minor Version])
|
||||
AC_DEFINE_UNQUOTED([GLIBMM_MICRO_VERSION], $GLIBMM_MICRO_VERSION, [Micro Version])
|
||||
AC_SUBST(GLIBMM_MAJOR_VERSION)
|
||||
AC_SUBST(GLIBMM_MINOR_VERSION)
|
||||
AC_SUBST(GLIBMM_MICRO_VERSION)
|
||||
AC_SUBST(GLIBMM_VERSION)
|
||||
AC_SUBST(GLIBMM_RELEASE)
|
||||
|
||||
#
|
||||
# +1 : ? : +1 == new interface that does not break old one
|
||||
# +1 : ? : 0 == new interface that breaks old one
|
||||
# ? : ? : 0 == no new interfaces, but breaks apps
|
||||
# ? :+1 : ? == just some internal changes, nothing breaks but might work
|
||||
# better
|
||||
# CURRENT : REVISION : AGE
|
||||
LIBGLIBMM_SO_VERSION=1:24:0
|
||||
AC_SUBST(LIBGLIBMM_SO_VERSION)
|
||||
|
||||
AC_CONFIG_AUX_DIR(scripts)
|
||||
|
||||
dnl For automake.
|
||||
VERSION=$GLIBMM_VERSION
|
||||
PACKAGE=glibmm
|
||||
|
||||
dnl Initialize automake stuff
|
||||
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
||||
|
||||
dnl Specify a configuration file (no autoheader)
|
||||
AM_CONFIG_HEADER(config.h glib/glibmmconfig.h)
|
||||
AM_MAINTAINER_MODE
|
||||
AL_ACLOCAL_INCLUDE(scripts)
|
||||
|
||||
|
||||
#########################################################################
|
||||
# Configure arguments
|
||||
#########################################################################
|
||||
|
||||
#########################################################################
|
||||
# Environment Checks
|
||||
#########################################################################
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_MAKE_SET
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
dnl Used for enabling the "-no-undefined" flag while generating DLLs
|
||||
dnl Copied from the official gtk+-2 configure.in
|
||||
AC_MSG_CHECKING([for some Win32 platform])
|
||||
case "$host" in
|
||||
*-*-mingw*|*-*-cygwin*)
|
||||
platform_win32=yes
|
||||
;;
|
||||
*)
|
||||
platform_win32=no
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$platform_win32])
|
||||
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
|
||||
|
||||
AC_MSG_CHECKING([for native Win32])
|
||||
case "$host" in
|
||||
*-*-mingw*)
|
||||
os_win32=yes
|
||||
;;
|
||||
*)
|
||||
os_win32=no
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$os_win32])
|
||||
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
|
||||
|
||||
AC_DISABLE_STATIC
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
AL_PROG_GNU_M4(AC_MSG_ERROR([dnl
|
||||
SUN m4 does not work for building gtkmm.
|
||||
Please install GNU m4.]))
|
||||
|
||||
AL_PROG_GNU_MAKE(AC_MSG_ERROR([dnl
|
||||
SUN make does not work for building gtkmm.
|
||||
Please install GNU make.]))
|
||||
|
||||
GLIBMM_CHECK_PERL([5.6.0])
|
||||
|
||||
#########################################################################
|
||||
# Function checks
|
||||
#########################################################################
|
||||
|
||||
# functions used in demos/gtk-demo. Undefined in config.h !
|
||||
AC_CHECK_FUNCS([flockfile funlockfile getc_unlocked mkfifo])
|
||||
|
||||
#########################################################################
|
||||
# Dependancy checks
|
||||
#########################################################################
|
||||
gtkmm_min_sigc_version=2.0.0
|
||||
gtkmm_min_glib_version=2.9.0
|
||||
|
||||
PKG_CHECK_MODULES(GLIBMM, sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version})
|
||||
AC_SUBST(GLIBMM_CFLAGS)
|
||||
AC_SUBST(GLIBMM_LIBS)
|
||||
|
||||
# gthread isn't a requirement, but we should use its CFLAGS if available.
|
||||
PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= ${gtkmm_min_glib_version},[],[GTHREAD_CFLAGS=''; GTHREAD_LIBS=''])
|
||||
AC_SUBST(GTHREAD_CFLAGS)
|
||||
AC_SUBST(GTHREAD_LIBS)
|
||||
|
||||
|
||||
#########################################################################
|
||||
# C++ checks
|
||||
#########################################################################
|
||||
AC_PROG_CXX
|
||||
|
||||
# Check for the SUN Forte compiler, and define GLIBMM_COMPILER_SUN_FORTE in the header.
|
||||
GLIBMM_PROG_CXX_SUN
|
||||
|
||||
# Ensure MSVC-compatible struct packing convention is used when
|
||||
# compiling for Win32 with gcc.
|
||||
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
|
||||
# gcc2 uses "-fnative-struct".
|
||||
if test x"$os_win32" = xyes; then
|
||||
if test x"$GCC" = xyes -a x"$GXX" = xyes; then
|
||||
msnative_struct=''
|
||||
AC_MSG_CHECKING([how to get MSVC-compatible struct packing])
|
||||
if test -z "$ac_cv_prog_CC"; then
|
||||
our_gcc="$CC"
|
||||
else
|
||||
our_gcc="$ac_cv_prog_CC"
|
||||
fi
|
||||
case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
|
||||
2.)
|
||||
if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
|
||||
msnative_struct='-fnative-struct'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
|
||||
msnative_struct='-mms-bitfields'
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if test x"$msnative_struct" = x ; then
|
||||
AC_MSG_RESULT([no way])
|
||||
AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code])
|
||||
else
|
||||
CXXFLAGS="$CXXFLAGS $msnative_struct"
|
||||
AC_MSG_RESULT([${msnative_struct}])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
AC_CXX_BOOL(,config_error=yes)
|
||||
AC_CXX_NAMESPACES(,config_error=yes)
|
||||
AC_CXX_MUTABLE(,config_error=yes)
|
||||
|
||||
AC_MSG_CHECKING(if C++ environment provides all required features)
|
||||
if test "x$config_error" = xyes ; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Your compiler is not powerful enough to compile gtkmm. If it should be, see config.log for more information of why it failed.])
|
||||
fi
|
||||
AC_MSG_RESULT([yes])
|
||||
|
||||
GLIBMM_CXX_HAS_NAMESPACE_STD()
|
||||
GLIBMM_CXX_HAS_STD_ITERATOR_TRAITS()
|
||||
GLIBMM_CXX_HAS_SUN_REVERSE_ITERATOR()
|
||||
GLIBMM_CXX_HAS_TEMPLATE_SEQUENCE_CTORS()
|
||||
GLIBMM_CXX_MEMBER_FUNCTIONS_MEMBER_TEMPLATES()
|
||||
GLIBMM_CXX_CAN_DISAMBIGUATE_CONST_TEMPLATE_SPECIALIZATIONS()
|
||||
GLIBMM_CXX_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION()
|
||||
GLIBMM_CXX_CAN_ASSIGN_NON_EXTERN_C_FUNCTIONS_TO_EXTERN_C_CALLBACKS()
|
||||
GLIBMM_CXX_CAN_USE_NAMESPACES_INSIDE_EXTERNC()
|
||||
GLIBMM_CXX_ALLOWS_STATIC_INLINE_NPOS()
|
||||
|
||||
|
||||
# Create a list of input directories for Doxygen.
|
||||
GTKMM_DOXYGEN_INPUT_SUBDIRS([glib])
|
||||
|
||||
# Check whether to build the full docs into the generated source.
|
||||
# This will be much slower.
|
||||
GTKMM_ARG_ENABLE_FULLDOCS()
|
||||
|
||||
# Check whether --enable-debug-refcounting was given.
|
||||
GLIBMM_ARG_ENABLE_DEBUG_REFCOUNTING()
|
||||
|
||||
# Evaluate the --enable-warnings=level option.
|
||||
GTKMM_ARG_ENABLE_WARNINGS()
|
||||
|
||||
# Add an --enable-use-deprecations configure option:
|
||||
AC_ARG_ENABLE(deprecations,
|
||||
[AC_HELP_STRING([--enable-use-deprecations],
|
||||
[warn about deprecated usages [default=no]])],,
|
||||
[enable_deprecations=no])
|
||||
|
||||
if test "x$enable_use_deprecations" = "xyes"; then
|
||||
DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED"
|
||||
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
|
||||
fi
|
||||
|
||||
#Offer the ability to omit some API from the library,
|
||||
#to reduce the code size:
|
||||
GLIBMM_ARG_ENABLE_API_DEPRECATED()
|
||||
GLIBMM_ARG_ENABLE_API_EXCEPTIONS()
|
||||
GLIBMM_ARG_ENABLE_API_PROPERTIES()
|
||||
GLIBMM_ARG_ENABLE_API_VFUNCS()
|
||||
|
||||
# Offer the ability to omit some API from the library,
|
||||
# to reduce the code size:
|
||||
GLIBMM_ARG_ENABLE_API_DEFAULT_SIGNAL_HANDLERS()
|
||||
|
||||
# Dummy conditional just to make automake-1.4 happy.
|
||||
# We need an always-false condition in docs/Makefile.am.
|
||||
AM_CONDITIONAL(GTKMM_FALSE,[false])
|
||||
|
||||
# HACK: Assign a dummy in order to prevent execution of autoheader by the
|
||||
# maintainer-mode rules. That would fail since we aren't using autoheader.
|
||||
AUTOHEADER=':'
|
||||
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
||||
glib/Makefile
|
||||
glib/glibmm-2.4.pc
|
||||
glib/src/Makefile
|
||||
glib/glibmm/Makefile
|
||||
glib/glibmm/private/Makefile
|
||||
|
||||
tools/Makefile
|
||||
tools/gmmproc
|
||||
tools/generate_wrap_init.pl
|
||||
tools/m4/Makefile
|
||||
tools/pm/Makefile
|
||||
tools/extra_defs_gen/Makefile
|
||||
])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
tests/Makefile
|
||||
tests/glibmm_value/Makefile
|
||||
|
||||
examples/Makefile
|
||||
examples/markup/Makefile
|
||||
examples/options/Makefile
|
||||
examples/thread/Makefile
|
||||
examples/iochannel_stream/Makefile
|
||||
examples/child_watch/Makefile
|
||||
|
||||
scripts/Makefile
|
||||
|
||||
docs/Makefile
|
||||
docs/images/Makefile
|
||||
docs/reference/Makefile
|
||||
docs/reference/Doxyfile
|
||||
docs/reference/beautify_docs.pl
|
||||
docs/internal/Makefile
|
||||
])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
MSVC_Net2003/Makefile
|
||||
MSVC_Net2003/gendef/Makefile
|
||||
MSVC_Net2003/glibmm/Makefile
|
||||
MSVC_Net2003/glibmm/glibmm.rc
|
||||
MSVC_Net2003/examples/Makefile
|
||||
MSVC_Net2003/examples/dispatcher/Makefile
|
||||
MSVC_Net2003/examples/dispatcher2/Makefile
|
||||
MSVC_Net2003/examples/markup/Makefile
|
||||
MSVC_Net2003/examples/options/Makefile
|
||||
MSVC_Net2003/examples/thread/Makefile
|
||||
MSVC_Net2003/examples/thread_pool/Makefile
|
||||
MSVC_Net2003/tests/Makefile
|
||||
MSVC_Net2003/tests/glibmm_value/Makefile
|
||||
])
|
||||
|
||||
AC_OUTPUT()
|
||||
|
609
libs/glibmm2/glib/Makefile
Normal file
609
libs/glibmm2/glib/Makefile
Normal file
|
@ -0,0 +1,609 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# glib/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
|
||||
pkgdatadir = $(datadir)/glibmm
|
||||
pkglibdir = $(libdir)/glibmm
|
||||
pkgincludedir = $(includedir)/glibmm
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = i686-pc-linux-gnu
|
||||
host_triplet = i686-pc-linux-gnu
|
||||
subdir = glib
|
||||
DIST_COMMON = README $(glibmm_include_HEADERS) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/glibmm-2.4.pc.in \
|
||||
$(srcdir)/glibmmconfig.h.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/cxx.m4 \
|
||||
$(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h glibmmconfig.h
|
||||
CONFIG_CLEAN_FILES = glibmm-2.4.pc
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(glibmm_configdir)" \
|
||||
"$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(glibmm_includedir)"
|
||||
glibmm_configDATA_INSTALL = $(INSTALL_DATA)
|
||||
pkgconfigDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(glibmm_config_DATA) $(pkgconfig_DATA)
|
||||
glibmm_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(glibmm_include_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run aclocal-1.9 -I ./scripts
|
||||
AMDEP_FALSE = #
|
||||
AMDEP_TRUE =
|
||||
AMTAR = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run tar
|
||||
AR = ar
|
||||
AS = as
|
||||
AUTOCONF = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run autoconf
|
||||
AUTOHEADER = :
|
||||
AUTOMAKE = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run automake-1.9
|
||||
AWK = mawk
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -g -O2
|
||||
CPP = gcc -E
|
||||
CPPFLAGS =
|
||||
CXX = g++
|
||||
CXXCPP = g++ -E
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
CXXFLAGS = -g -O2 -Wall -Wno-long-long
|
||||
CYGPATH_W = echo
|
||||
DEFS = -DHAVE_CONFIG_H
|
||||
DEPDIR = .deps
|
||||
DISABLE_DEPRECATED_API_CFLAGS =
|
||||
DISABLE_DEPRECATED_CFLAGS =
|
||||
DLLTOOL = dlltool
|
||||
ECHO = echo
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = grep -E
|
||||
EXEEXT =
|
||||
F77 =
|
||||
FFLAGS =
|
||||
GLIBMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
|
||||
GLIBMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
|
||||
GLIBMM_MAJOR_VERSION = 2
|
||||
GLIBMM_MICRO_VERSION = 3
|
||||
GLIBMM_MINOR_VERSION = 13
|
||||
GLIBMM_RELEASE = 2.13
|
||||
GLIBMM_VERSION = 2.13.3
|
||||
GTHREAD_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
|
||||
GTHREAD_LIBS = -pthread -lgthread-2.0 -lrt -lglib-2.0
|
||||
GTKMMPROC_MERGECDOCS =
|
||||
GTKMM_DOXYGEN_INPUT = /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/glib/glibmm/
|
||||
GTKMM_FALSE_FALSE =
|
||||
GTKMM_FALSE_TRUE = #
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
LDFLAGS =
|
||||
LIBGLIBMM_SO_VERSION = 1:24:0
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
||||
LN_S = ln -s
|
||||
LTLIBOBJS =
|
||||
M4 = m4
|
||||
MAINT = #
|
||||
MAINTAINER_MODE_FALSE =
|
||||
MAINTAINER_MODE_TRUE = #
|
||||
MAKEINFO = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run makeinfo
|
||||
OBJDUMP = objdump
|
||||
OBJEXT = o
|
||||
OS_WIN32_FALSE =
|
||||
OS_WIN32_TRUE = #
|
||||
PACKAGE = glibmm
|
||||
PACKAGE_BUGREPORT =
|
||||
PACKAGE_NAME =
|
||||
PACKAGE_STRING =
|
||||
PACKAGE_TARNAME =
|
||||
PACKAGE_VERSION =
|
||||
PATH_SEPARATOR = :
|
||||
PERL_PATH = /usr/bin/perl
|
||||
PKG_CONFIG = /usr/bin/pkg-config
|
||||
PLATFORM_WIN32_FALSE =
|
||||
PLATFORM_WIN32_TRUE = #
|
||||
RANLIB = ranlib
|
||||
SET_MAKE =
|
||||
SHELL = /bin/bash
|
||||
STRIP = strip
|
||||
VERSION = 2.13.3
|
||||
ac_ct_AR = ar
|
||||
ac_ct_AS =
|
||||
ac_ct_CC = gcc
|
||||
ac_ct_CXX = g++
|
||||
ac_ct_DLLTOOL =
|
||||
ac_ct_F77 =
|
||||
ac_ct_OBJDUMP =
|
||||
ac_ct_RANLIB = ranlib
|
||||
ac_ct_STRIP = strip
|
||||
ac_pt_PKG_CONFIG = /usr/bin/pkg-config
|
||||
am__fastdepCC_FALSE = #
|
||||
am__fastdepCC_TRUE =
|
||||
am__fastdepCXX_FALSE = #
|
||||
am__fastdepCXX_TRUE =
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = i686-pc-linux-gnu
|
||||
build_alias =
|
||||
build_cpu = i686
|
||||
build_os = linux-gnu
|
||||
build_vendor = pc
|
||||
datadir = ${prefix}/share
|
||||
exec_prefix = ${prefix}
|
||||
host = i686-pc-linux-gnu
|
||||
host_alias =
|
||||
host_cpu = i686
|
||||
host_os = linux-gnu
|
||||
host_vendor = pc
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/man
|
||||
mkdir_p = mkdir -p --
|
||||
oldincludedir = /usr/include
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
SUBDIRS = src glibmm
|
||||
EXTRA_DIST = README glibmmconfig.h.in glibmm-2.4.pc.in
|
||||
glibmm_includedir = $(includedir)/glibmm-2.4
|
||||
glibmm_include_HEADERS = glibmm.h
|
||||
glibmm_configdir = $(libdir)/glibmm-2.4/include
|
||||
glibmm_config_DATA = glibmmconfig.h
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = glibmm-2.4.pc
|
||||
all: glibmmconfig.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glib/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu glib/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: # $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
glibmmconfig.h: stamp-h2
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h2; \
|
||||
$(MAKE) stamp-h2; \
|
||||
else :; fi
|
||||
|
||||
stamp-h2: $(srcdir)/glibmmconfig.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h2
|
||||
cd $(top_builddir) && $(SHELL) ./config.status glib/glibmmconfig.h
|
||||
$(srcdir)/glibmmconfig.h.in: # $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h2
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f glibmmconfig.h stamp-h2
|
||||
glibmm-2.4.pc: $(top_builddir)/config.status $(srcdir)/glibmm-2.4.pc.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-glibmm_configDATA: $(glibmm_config_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(glibmm_configdir)" || $(mkdir_p) "$(DESTDIR)$(glibmm_configdir)"
|
||||
@list='$(glibmm_config_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(glibmm_configDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(glibmm_configdir)/$$f'"; \
|
||||
$(glibmm_configDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(glibmm_configdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-glibmm_configDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(glibmm_config_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(glibmm_configdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(glibmm_configdir)/$$f"; \
|
||||
done
|
||||
install-pkgconfigDATA: $(pkgconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
|
||||
@list='$(pkgconfig_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
|
||||
$(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-pkgconfigDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgconfig_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
|
||||
done
|
||||
install-glibmm_includeHEADERS: $(glibmm_include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(glibmm_includedir)" || $(mkdir_p) "$(DESTDIR)$(glibmm_includedir)"
|
||||
@list='$(glibmm_include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(glibmm_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(glibmm_includedir)/$$f'"; \
|
||||
$(glibmm_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(glibmm_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-glibmm_includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(glibmm_include_HEADERS)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(glibmm_includedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(glibmm_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) glibmmconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) glibmmconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) glibmmconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) glibmmconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(DATA) $(HEADERS) glibmmconfig.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(glibmm_configdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(glibmm_includedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-glibmm_configDATA \
|
||||
install-glibmm_includeHEADERS install-pkgconfigDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-glibmm_configDATA \
|
||||
uninstall-glibmm_includeHEADERS uninstall-info-am \
|
||||
uninstall-pkgconfigDATA
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libtool clean-recursive ctags \
|
||||
ctags-recursive distclean distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-recursive distclean-tags distdir \
|
||||
dvi dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-exec install-exec-am \
|
||||
install-glibmm_configDATA install-glibmm_includeHEADERS \
|
||||
install-info install-info-am install-man install-pkgconfigDATA \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-glibmm_configDATA uninstall-glibmm_includeHEADERS \
|
||||
uninstall-info-am uninstall-pkgconfigDATA
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
14
libs/glibmm2/glib/Makefile.am
Normal file
14
libs/glibmm2/glib/Makefile.am
Normal file
|
@ -0,0 +1,14 @@
|
|||
SUBDIRS = src glibmm
|
||||
|
||||
EXTRA_DIST = README glibmmconfig.h.in glibmm-2.4.pc.in
|
||||
|
||||
glibmm_includedir = $(includedir)/glibmm-2.4
|
||||
glibmm_include_HEADERS = glibmm.h
|
||||
|
||||
glibmm_configdir = $(libdir)/glibmm-2.4/include
|
||||
glibmm_config_DATA = glibmmconfig.h
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = glibmm-2.4.pc
|
||||
|
||||
|
609
libs/glibmm2/glib/Makefile.in
Normal file
609
libs/glibmm2/glib/Makefile.in
Normal file
|
@ -0,0 +1,609 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = glib
|
||||
DIST_COMMON = README $(glibmm_include_HEADERS) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/glibmm-2.4.pc.in \
|
||||
$(srcdir)/glibmmconfig.h.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/cxx.m4 \
|
||||
$(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h glibmmconfig.h
|
||||
CONFIG_CLEAN_FILES = glibmm-2.4.pc
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(glibmm_configdir)" \
|
||||
"$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(glibmm_includedir)"
|
||||
glibmm_configDATA_INSTALL = $(INSTALL_DATA)
|
||||
pkgconfigDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(glibmm_config_DATA) $(pkgconfig_DATA)
|
||||
glibmm_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(glibmm_include_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GLIBMM_CFLAGS = @GLIBMM_CFLAGS@
|
||||
GLIBMM_LIBS = @GLIBMM_LIBS@
|
||||
GLIBMM_MAJOR_VERSION = @GLIBMM_MAJOR_VERSION@
|
||||
GLIBMM_MICRO_VERSION = @GLIBMM_MICRO_VERSION@
|
||||
GLIBMM_MINOR_VERSION = @GLIBMM_MINOR_VERSION@
|
||||
GLIBMM_RELEASE = @GLIBMM_RELEASE@
|
||||
GLIBMM_VERSION = @GLIBMM_VERSION@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
GTKMM_FALSE_FALSE = @GTKMM_FALSE_FALSE@
|
||||
GTKMM_FALSE_TRUE = @GTKMM_FALSE_TRUE@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OS_WIN32_FALSE = @OS_WIN32_FALSE@
|
||||
OS_WIN32_TRUE = @OS_WIN32_TRUE@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@
|
||||
PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_AS = @ac_ct_AS@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
SUBDIRS = src glibmm
|
||||
EXTRA_DIST = README glibmmconfig.h.in glibmm-2.4.pc.in
|
||||
glibmm_includedir = $(includedir)/glibmm-2.4
|
||||
glibmm_include_HEADERS = glibmm.h
|
||||
glibmm_configdir = $(libdir)/glibmm-2.4/include
|
||||
glibmm_config_DATA = glibmmconfig.h
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = glibmm-2.4.pc
|
||||
all: glibmmconfig.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glib/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu glib/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
glibmmconfig.h: stamp-h2
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h2; \
|
||||
$(MAKE) stamp-h2; \
|
||||
else :; fi
|
||||
|
||||
stamp-h2: $(srcdir)/glibmmconfig.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h2
|
||||
cd $(top_builddir) && $(SHELL) ./config.status glib/glibmmconfig.h
|
||||
$(srcdir)/glibmmconfig.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h2
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f glibmmconfig.h stamp-h2
|
||||
glibmm-2.4.pc: $(top_builddir)/config.status $(srcdir)/glibmm-2.4.pc.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-glibmm_configDATA: $(glibmm_config_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(glibmm_configdir)" || $(mkdir_p) "$(DESTDIR)$(glibmm_configdir)"
|
||||
@list='$(glibmm_config_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(glibmm_configDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(glibmm_configdir)/$$f'"; \
|
||||
$(glibmm_configDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(glibmm_configdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-glibmm_configDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(glibmm_config_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(glibmm_configdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(glibmm_configdir)/$$f"; \
|
||||
done
|
||||
install-pkgconfigDATA: $(pkgconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
|
||||
@list='$(pkgconfig_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
|
||||
$(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-pkgconfigDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgconfig_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
|
||||
done
|
||||
install-glibmm_includeHEADERS: $(glibmm_include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(glibmm_includedir)" || $(mkdir_p) "$(DESTDIR)$(glibmm_includedir)"
|
||||
@list='$(glibmm_include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(glibmm_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(glibmm_includedir)/$$f'"; \
|
||||
$(glibmm_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(glibmm_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-glibmm_includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(glibmm_include_HEADERS)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(glibmm_includedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(glibmm_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) glibmmconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) glibmmconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) glibmmconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) glibmmconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(DATA) $(HEADERS) glibmmconfig.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(glibmm_configdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(glibmm_includedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-glibmm_configDATA \
|
||||
install-glibmm_includeHEADERS install-pkgconfigDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-glibmm_configDATA \
|
||||
uninstall-glibmm_includeHEADERS uninstall-info-am \
|
||||
uninstall-pkgconfigDATA
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libtool clean-recursive ctags \
|
||||
ctags-recursive distclean distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-recursive distclean-tags distdir \
|
||||
dvi dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-exec install-exec-am \
|
||||
install-glibmm_configDATA install-glibmm_includeHEADERS \
|
||||
install-info install-info-am install-man install-pkgconfigDATA \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-glibmm_configDATA uninstall-glibmm_includeHEADERS \
|
||||
uninstall-info-am uninstall-pkgconfigDATA
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
1
libs/glibmm2/glib/README
Normal file
1
libs/glibmm2/glib/README
Normal file
|
@ -0,0 +1 @@
|
|||
glib base dir.
|
11
libs/glibmm2/glib/glibmm-2.4.pc
Normal file
11
libs/glibmm2/glib/glibmm-2.4.pc
Normal file
|
@ -0,0 +1,11 @@
|
|||
prefix=/usr/local
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: GLibmm
|
||||
Description: C++ wrapper for GLib
|
||||
Requires: gobject-2.0 sigc++-2.0
|
||||
Version: 2.13.3
|
||||
Libs: -L${libdir} -lglibmm-2.4
|
||||
Cflags: -I${includedir}/glibmm-2.4 -I${libdir}/glibmm-2.4/include
|
11
libs/glibmm2/glib/glibmm-2.4.pc.in
Normal file
11
libs/glibmm2/glib/glibmm-2.4.pc.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: GLibmm
|
||||
Description: C++ wrapper for GLib
|
||||
Requires: gobject-2.0 sigc++-2.0
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lglibmm-2.4
|
||||
Cflags: -I${includedir}/glibmm-2.4 -I${libdir}/glibmm-2.4/include
|
73
libs/glibmm2/glib/glibmm.h
Normal file
73
libs/glibmm2/glib/glibmm.h
Normal file
|
@ -0,0 +1,73 @@
|
|||
/* $Id: glibmm.h,v 1.5 2006/09/19 20:36:41 murrayc Exp $ */
|
||||
|
||||
/* glibmm - a C++ wrapper for the GLib toolkit
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GLIBMM_H
|
||||
#define _GLIBMM_H
|
||||
|
||||
#include <glibmmconfig.h>
|
||||
//#include <glibmm/i18n.h> //This must be included by the application, after system headers such as <iostream>.
|
||||
#include <glibmm/arrayhandle.h>
|
||||
#include <glibmm/class.h>
|
||||
#include <glibmm/containerhandle_shared.h>
|
||||
#include <glibmm/convert.h>
|
||||
#include <glibmm/date.h>
|
||||
#include <glibmm/dispatcher.h>
|
||||
#include <glibmm/error.h>
|
||||
#include <glibmm/exception.h>
|
||||
#include <glibmm/exceptionhandler.h>
|
||||
#include <glibmm/fileutils.h>
|
||||
#include <glibmm/helperlist.h>
|
||||
#include <glibmm/interface.h>
|
||||
#include <glibmm/iochannel.h>
|
||||
#include <glibmm/init.h>
|
||||
#include <glibmm/keyfile.h>
|
||||
#include <glibmm/streamiochannel.h>
|
||||
#include <glibmm/listhandle.h>
|
||||
#include <glibmm/main.h>
|
||||
#include <glibmm/markup.h>
|
||||
#include <glibmm/miscutils.h>
|
||||
#include <glibmm/module.h>
|
||||
#include <glibmm/objectbase.h>
|
||||
#include <glibmm/object.h>
|
||||
#include <glibmm/optioncontext.h>
|
||||
#include <glibmm/pattern.h>
|
||||
#include <glibmm/property.h>
|
||||
#include <glibmm/propertyproxy_base.h>
|
||||
#include <glibmm/propertyproxy.h>
|
||||
#include <glibmm/quark.h>
|
||||
#include <glibmm/random.h>
|
||||
#include <glibmm/refptr.h>
|
||||
#include <glibmm/shell.h>
|
||||
#include <glibmm/signalproxy_connectionnode.h>
|
||||
#include <glibmm/signalproxy.h>
|
||||
#include <glibmm/slisthandle.h>
|
||||
#include <glibmm/spawn.h>
|
||||
#include <glibmm/stringutils.h>
|
||||
#include <glibmm/thread.h>
|
||||
#include <glibmm/threadpool.h>
|
||||
#include <glibmm/timer.h>
|
||||
#include <glibmm/timeval.h>
|
||||
#include <glibmm/ustring.h>
|
||||
#include <glibmm/value.h>
|
||||
#include <glibmm/wrap.h>
|
||||
|
||||
#endif /* _GLIBMM_H */
|
||||
|
1
libs/glibmm2/glib/glibmm/.deps/class.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/class.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/containers.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/containers.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/convert.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/convert.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/date.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/date.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/debug.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/debug.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/dispatcher.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/dispatcher.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/error.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/error.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/exception.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/exception.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/exceptionhandler.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/exceptionhandler.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/fileutils.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/fileutils.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/init.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/init.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/interface.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/interface.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/iochannel.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/iochannel.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/keyfile.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/keyfile.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/main.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/main.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/markup.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/markup.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/miscutils.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/miscutils.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/module.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/module.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/object.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/object.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/objectbase.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/objectbase.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/optioncontext.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/optioncontext.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/optionentry.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/optionentry.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/optiongroup.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/optiongroup.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/pattern.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/pattern.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/property.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/property.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/propertyproxy.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/propertyproxy.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/propertyproxy_base.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/propertyproxy_base.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/quark.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/quark.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/random.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/random.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/shell.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/shell.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/signalproxy.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/signalproxy.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/spawn.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/spawn.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/streamiochannel.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/streamiochannel.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/stringutils.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/stringutils.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/thread.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/thread.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/threadpool.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/threadpool.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/timer.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/timer.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/timeval.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/timeval.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/unicode.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/unicode.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/ustring.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/ustring.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/utility.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/utility.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/value.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/value.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/value_basictypes.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/value_basictypes.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/value_custom.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/value_custom.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/wrap.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/wrap.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
1
libs/glibmm2/glib/glibmm/.deps/wrap_init.Plo
Normal file
1
libs/glibmm2/glib/glibmm/.deps/wrap_init.Plo
Normal file
|
@ -0,0 +1 @@
|
|||
# dummy
|
908
libs/glibmm2/glib/glibmm/Makefile
Normal file
908
libs/glibmm2/glib/glibmm/Makefile
Normal file
|
@ -0,0 +1,908 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# glib/glibmm/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ../..
|
||||
|
||||
pkgdatadir = $(datadir)/glibmm
|
||||
pkglibdir = $(libdir)/glibmm
|
||||
pkgincludedir = $(includedir)/glibmm
|
||||
top_builddir = ../..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = i686-pc-linux-gnu
|
||||
host_triplet = i686-pc-linux-gnu
|
||||
DIST_COMMON = $(am__sublib_include_HEADERS_DIST) \
|
||||
$(srcdir)/../src/Makefile_list_of_hg.am_fragment \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_build_extra.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
||||
subdir = glib/glibmm
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/cxx.m4 \
|
||||
$(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/glib/glibmmconfig.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" \
|
||||
"$(DESTDIR)$(sublib_includedir)"
|
||||
libLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
am__DEPENDENCIES_1 =
|
||||
libglibmm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
||||
am__libglibmm_2_4_la_SOURCES_DIST = convert.cc date.cc fileutils.cc \
|
||||
iochannel.cc keyfile.cc markup.cc module.cc optioncontext.cc \
|
||||
optionentry.cc optiongroup.cc shell.cc spawn.cc thread.cc \
|
||||
unicode.cc wrap_init.cc value_basictypes.cc class.cc \
|
||||
containers.cc debug.cc dispatcher.cc error.cc exception.cc \
|
||||
exceptionhandler.cc init.cc interface.cc main.cc miscutils.cc \
|
||||
object.cc objectbase.cc pattern.cc property.cc \
|
||||
propertyproxy.cc propertyproxy_base.cc quark.cc random.cc \
|
||||
signalproxy.cc signalproxy_connectionnode.cc \
|
||||
streamiochannel.cc stringutils.cc threadpool.cc timer.cc \
|
||||
timeval.cc ustring.cc utility.cc value.cc value_custom.cc \
|
||||
wrap.cc
|
||||
am__objects_1 = convert.lo date.lo fileutils.lo iochannel.lo \
|
||||
keyfile.lo markup.lo module.lo optioncontext.lo optionentry.lo \
|
||||
optiongroup.lo shell.lo spawn.lo thread.lo unicode.lo
|
||||
am__objects_2 = $(am__objects_1) wrap_init.lo value_basictypes.lo
|
||||
am__objects_3 = class.lo containers.lo debug.lo dispatcher.lo error.lo \
|
||||
exception.lo exceptionhandler.lo init.lo interface.lo main.lo \
|
||||
miscutils.lo object.lo objectbase.lo pattern.lo property.lo \
|
||||
propertyproxy.lo propertyproxy_base.lo quark.lo random.lo \
|
||||
signalproxy.lo signalproxy_connectionnode.lo \
|
||||
streamiochannel.lo stringutils.lo threadpool.lo timer.lo \
|
||||
timeval.lo ustring.lo utility.lo value.lo value_custom.lo \
|
||||
wrap.lo
|
||||
am__objects_4 =
|
||||
am__objects_5 = $(am__objects_3) $(am__objects_4)
|
||||
#am__objects_5 = $(am__objects_3) $(am__objects_4)
|
||||
am__objects_6 = $(am__objects_5)
|
||||
am__objects_7 = $(am__objects_2) $(am__objects_6)
|
||||
am__objects_8 = $(am__objects_4)
|
||||
am__objects_9 = $(am__objects_8)
|
||||
am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
||||
$(am__objects_9)
|
||||
#am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
||||
# $(am__objects_9)
|
||||
libglibmm_2_4_la_OBJECTS = $(am_libglibmm_2_4_la_OBJECTS)
|
||||
depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
CXXLD = $(CXX)
|
||||
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(libglibmm_2_4_la_SOURCES)
|
||||
DIST_SOURCES = $(am__libglibmm_2_4_la_SOURCES_DIST)
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__sublib_include_HEADERS_DIST = convert.h date.h fileutils.h \
|
||||
iochannel.h keyfile.h markup.h module.h optioncontext.h \
|
||||
optionentry.h optiongroup.h shell.h spawn.h thread.h unicode.h \
|
||||
signalproxy.h value_basictypes.h arrayhandle.h class.h \
|
||||
containerhandle_shared.h containers.h debug.h dispatcher.h \
|
||||
error.h exception.h exceptionhandler.h helperlist.h init.h \
|
||||
i18n.h interface.h listhandle.h main.h miscutils.h object.h \
|
||||
objectbase.h pattern.h property.h propertyproxy.h \
|
||||
propertyproxy_base.h quark.h random.h refptr.h sarray.h \
|
||||
signalproxy_connectionnode.h slisthandle.h streamiochannel.h \
|
||||
stringutils.h threadpool.h timer.h timeval.h ustring.h \
|
||||
utility.h value.h value_custom.h wrap.h wrap_init.h
|
||||
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(sublib_include_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
ACLOCAL = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run aclocal-1.9 -I ./scripts
|
||||
AMDEP_FALSE = #
|
||||
AMDEP_TRUE =
|
||||
AMTAR = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run tar
|
||||
AR = ar
|
||||
AS = as
|
||||
AUTOCONF = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run autoconf
|
||||
AUTOHEADER = :
|
||||
AUTOMAKE = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run automake-1.9
|
||||
AWK = mawk
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -g -O2
|
||||
CPP = gcc -E
|
||||
CPPFLAGS =
|
||||
CXX = g++
|
||||
CXXCPP = g++ -E
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
CXXFLAGS = -g -O2 -Wall -Wno-long-long
|
||||
CYGPATH_W = echo
|
||||
DEFS = -DHAVE_CONFIG_H $(strip $(extra_defines))
|
||||
DEPDIR = .deps
|
||||
DISABLE_DEPRECATED_API_CFLAGS =
|
||||
DISABLE_DEPRECATED_CFLAGS =
|
||||
DLLTOOL = dlltool
|
||||
ECHO = echo
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = grep -E
|
||||
EXEEXT =
|
||||
F77 =
|
||||
FFLAGS =
|
||||
GLIBMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
|
||||
GLIBMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
|
||||
GLIBMM_MAJOR_VERSION = 2
|
||||
GLIBMM_MICRO_VERSION = 3
|
||||
GLIBMM_MINOR_VERSION = 13
|
||||
GLIBMM_RELEASE = 2.13
|
||||
GLIBMM_VERSION = 2.13.3
|
||||
GTHREAD_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
|
||||
GTHREAD_LIBS = -pthread -lgthread-2.0 -lrt -lglib-2.0
|
||||
GTKMMPROC_MERGECDOCS =
|
||||
GTKMM_DOXYGEN_INPUT = /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/glib/glibmm/
|
||||
GTKMM_FALSE_FALSE =
|
||||
GTKMM_FALSE_TRUE = #
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
LDFLAGS =
|
||||
LIBGLIBMM_SO_VERSION = 1:24:0
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
||||
LN_S = ln -s
|
||||
LTLIBOBJS =
|
||||
M4 = m4
|
||||
MAINT = #
|
||||
MAINTAINER_MODE_FALSE =
|
||||
MAINTAINER_MODE_TRUE = #
|
||||
MAKEINFO = ${SHELL} /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/missing --run makeinfo
|
||||
OBJDUMP = objdump
|
||||
OBJEXT = o
|
||||
OS_WIN32_FALSE =
|
||||
OS_WIN32_TRUE = #
|
||||
PACKAGE = glibmm
|
||||
PACKAGE_BUGREPORT =
|
||||
PACKAGE_NAME =
|
||||
PACKAGE_STRING =
|
||||
PACKAGE_TARNAME =
|
||||
PACKAGE_VERSION =
|
||||
PATH_SEPARATOR = :
|
||||
PERL_PATH = /usr/bin/perl
|
||||
PKG_CONFIG = /usr/bin/pkg-config
|
||||
PLATFORM_WIN32_FALSE =
|
||||
PLATFORM_WIN32_TRUE = #
|
||||
RANLIB = ranlib
|
||||
SET_MAKE =
|
||||
SHELL = /bin/bash
|
||||
STRIP = strip
|
||||
VERSION = 2.13.3
|
||||
ac_ct_AR = ar
|
||||
ac_ct_AS =
|
||||
ac_ct_CC = gcc
|
||||
ac_ct_CXX = g++
|
||||
ac_ct_DLLTOOL =
|
||||
ac_ct_F77 =
|
||||
ac_ct_OBJDUMP =
|
||||
ac_ct_RANLIB = ranlib
|
||||
ac_ct_STRIP = strip
|
||||
ac_pt_PKG_CONFIG = /usr/bin/pkg-config
|
||||
am__fastdepCC_FALSE = #
|
||||
am__fastdepCC_TRUE =
|
||||
am__fastdepCXX_FALSE = #
|
||||
am__fastdepCXX_TRUE =
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = i686-pc-linux-gnu
|
||||
build_alias =
|
||||
build_cpu = i686
|
||||
build_os = linux-gnu
|
||||
build_vendor = pc
|
||||
datadir = ${prefix}/share
|
||||
exec_prefix = ${prefix}
|
||||
host = i686-pc-linux-gnu
|
||||
host_alias =
|
||||
host_cpu = i686
|
||||
host_os = linux-gnu
|
||||
host_vendor = pc
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /home/carl/mnt/hg/ardour.org/trunk/libs/glibmm2/scripts/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/man
|
||||
mkdir_p = mkdir -p --
|
||||
oldincludedir = /usr/include
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
SUBDIRS = private
|
||||
sublib_name = glibmm
|
||||
sublib_libname = glibmm-2.4
|
||||
sublib_namespace = Glib
|
||||
sublib_cflags = $(GLIBMM_CFLAGS)
|
||||
sublib_files_extra_posix_cc =
|
||||
sublib_files_extra_win32_cc =
|
||||
sublib_files_extra_general_cc = \
|
||||
class.cc \
|
||||
containers.cc \
|
||||
debug.cc \
|
||||
dispatcher.cc \
|
||||
error.cc \
|
||||
exception.cc \
|
||||
exceptionhandler.cc \
|
||||
init.cc \
|
||||
interface.cc \
|
||||
main.cc \
|
||||
miscutils.cc \
|
||||
object.cc \
|
||||
objectbase.cc \
|
||||
pattern.cc \
|
||||
property.cc \
|
||||
propertyproxy.cc \
|
||||
propertyproxy_base.cc \
|
||||
quark.cc \
|
||||
random.cc \
|
||||
signalproxy.cc \
|
||||
signalproxy_connectionnode.cc \
|
||||
streamiochannel.cc \
|
||||
stringutils.cc \
|
||||
threadpool.cc \
|
||||
timer.cc \
|
||||
timeval.cc \
|
||||
ustring.cc \
|
||||
utility.cc \
|
||||
value.cc \
|
||||
value_custom.cc \
|
||||
wrap.cc
|
||||
|
||||
sublib_files_extra_posix_h =
|
||||
sublib_files_extra_win32_h =
|
||||
sublib_files_extra_general_h = \
|
||||
arrayhandle.h \
|
||||
class.h \
|
||||
containerhandle_shared.h \
|
||||
containers.h \
|
||||
debug.h \
|
||||
dispatcher.h \
|
||||
error.h \
|
||||
exception.h \
|
||||
exceptionhandler.h \
|
||||
helperlist.h \
|
||||
init.h \
|
||||
i18n.h \
|
||||
interface.h \
|
||||
iochannel.h \
|
||||
keyfile.h \
|
||||
listhandle.h \
|
||||
main.h \
|
||||
miscutils.h \
|
||||
object.h \
|
||||
objectbase.h \
|
||||
pattern.h \
|
||||
property.h \
|
||||
propertyproxy.h \
|
||||
propertyproxy_base.h \
|
||||
quark.h \
|
||||
random.h \
|
||||
refptr.h \
|
||||
sarray.h \
|
||||
signalproxy_connectionnode.h \
|
||||
slisthandle.h \
|
||||
streamiochannel.h \
|
||||
stringutils.h \
|
||||
threadpool.h \
|
||||
timer.h \
|
||||
timeval.h \
|
||||
ustring.h \
|
||||
utility.h \
|
||||
value.h \
|
||||
value_custom.h \
|
||||
wrap.h
|
||||
|
||||
files_posix_hg =
|
||||
files_win32_hg =
|
||||
files_general_hg = convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg module.hg optioncontext.hg optionentry.hg optiongroup.hg shell.hg spawn.hg thread.hg unicode.hg
|
||||
files_all_hg = $(files_general_hg) $(files_posix_hg) $(files_win32_hg)
|
||||
files_hg = $(files_general_hg) $(files_posix_hg)
|
||||
#files_hg = $(files_general_hg) $(files_win32_hg)
|
||||
files_built_general_cc = $(files_general_hg:.hg=.cc) wrap_init.cc \
|
||||
value_basictypes.cc
|
||||
files_built_general_h = $(files_general_hg:.hg=.h) signalproxy.h \
|
||||
value_basictypes.h
|
||||
files_built_posix_cc = $(files_posix_hg:.hg=.cc)
|
||||
files_built_posix_h = $(files_posix_hg:.hg=.h)
|
||||
files_built_win32_cc = $(files_win32_hg:.hg=.cc)
|
||||
files_built_win32_h = $(files_win32_hg:.hg=.h)
|
||||
files_built_all_cc = $(files_built_general_cc) \
|
||||
$(files_built_posix_cc) \
|
||||
$(files_built_win32_cc)
|
||||
|
||||
files_built_all_h = $(files_built_general_h) \
|
||||
$(files_built_posix_h) \
|
||||
$(files_built_win32_h)
|
||||
|
||||
files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc)
|
||||
#files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_win32_cc)
|
||||
files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_posix_h)
|
||||
#files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_win32_h)
|
||||
files_extra_cc = $(files_extra_cc_tmp)
|
||||
files_extra_h = $(files_extra_h_tmp) wrap_init.h
|
||||
files_extra_all_cc = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc) $(sublib_files_extra_win32_cc)
|
||||
files_extra_all_h = $(sublib_files_extra_general_h) \
|
||||
$(sublib_files_extra_posix_h) $(sublib_files_extra_win32_h) \
|
||||
wrap_init.h
|
||||
files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
|
||||
files_all_posix_cc = $(files_built_posix_cc)
|
||||
files_all_win32_cc = $(files_built_win32_cc)
|
||||
extra_win32_defines =
|
||||
|
||||
# Support for DLL on mingw using libtool > 1.4
|
||||
# When creating DLLs on win32, we need to explicitly add a few extra
|
||||
# libraries at link time to resolve symbols (remember a dll is like an
|
||||
# executable).
|
||||
#extra_win32_defines = \
|
||||
# -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
||||
|
||||
no_undefined =
|
||||
#no_undefined = -no-undefined -Wl,--export-all-symbols
|
||||
win32_dlls_extra_libs =
|
||||
#win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
||||
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
||||
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
||||
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
||||
|
||||
extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
||||
|
||||
dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
|
||||
$(files_built_all_h) $(files_extra_all_h)
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DEFAULT_INCLUDES =
|
||||
INCLUDES = $(strip $(all_includes))
|
||||
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
||||
sublib_include_HEADERS = $(files_built_general_h) \
|
||||
$(files_built_posix_h) \
|
||||
$(files_extra_h)
|
||||
|
||||
#sublib_include_HEADERS = $(files_built_general_h) \
|
||||
# $(files_built_win32_h) \
|
||||
# $(files_extra_h)
|
||||
|
||||
lib_LTLIBRARIES = libglibmm-2.4.la
|
||||
libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_posix_cc)
|
||||
#libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_win32_cc)
|
||||
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
||||
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .cc .lo .o .obj
|
||||
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment $(top_srcdir)/build_shared/Makefile_build_extra.am_fragment $(top_srcdir)/build_shared/Makefile_build.am_fragment $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glib/glibmm/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu glib/glibmm/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: # $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
libglibmm-2.4.la: $(libglibmm_2_4_la_OBJECTS) $(libglibmm_2_4_la_DEPENDENCIES)
|
||||
$(CXXLINK) -rpath $(libdir) $(libglibmm_2_4_la_LDFLAGS) $(libglibmm_2_4_la_OBJECTS) $(libglibmm_2_4_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
include ./$(DEPDIR)/class.Plo
|
||||
include ./$(DEPDIR)/containers.Plo
|
||||
include ./$(DEPDIR)/convert.Plo
|
||||
include ./$(DEPDIR)/date.Plo
|
||||
include ./$(DEPDIR)/debug.Plo
|
||||
include ./$(DEPDIR)/dispatcher.Plo
|
||||
include ./$(DEPDIR)/error.Plo
|
||||
include ./$(DEPDIR)/exception.Plo
|
||||
include ./$(DEPDIR)/exceptionhandler.Plo
|
||||
include ./$(DEPDIR)/fileutils.Plo
|
||||
include ./$(DEPDIR)/init.Plo
|
||||
include ./$(DEPDIR)/interface.Plo
|
||||
include ./$(DEPDIR)/iochannel.Plo
|
||||
include ./$(DEPDIR)/keyfile.Plo
|
||||
include ./$(DEPDIR)/main.Plo
|
||||
include ./$(DEPDIR)/markup.Plo
|
||||
include ./$(DEPDIR)/miscutils.Plo
|
||||
include ./$(DEPDIR)/module.Plo
|
||||
include ./$(DEPDIR)/object.Plo
|
||||
include ./$(DEPDIR)/objectbase.Plo
|
||||
include ./$(DEPDIR)/optioncontext.Plo
|
||||
include ./$(DEPDIR)/optionentry.Plo
|
||||
include ./$(DEPDIR)/optiongroup.Plo
|
||||
include ./$(DEPDIR)/pattern.Plo
|
||||
include ./$(DEPDIR)/property.Plo
|
||||
include ./$(DEPDIR)/propertyproxy.Plo
|
||||
include ./$(DEPDIR)/propertyproxy_base.Plo
|
||||
include ./$(DEPDIR)/quark.Plo
|
||||
include ./$(DEPDIR)/random.Plo
|
||||
include ./$(DEPDIR)/shell.Plo
|
||||
include ./$(DEPDIR)/signalproxy.Plo
|
||||
include ./$(DEPDIR)/signalproxy_connectionnode.Plo
|
||||
include ./$(DEPDIR)/spawn.Plo
|
||||
include ./$(DEPDIR)/streamiochannel.Plo
|
||||
include ./$(DEPDIR)/stringutils.Plo
|
||||
include ./$(DEPDIR)/thread.Plo
|
||||
include ./$(DEPDIR)/threadpool.Plo
|
||||
include ./$(DEPDIR)/timer.Plo
|
||||
include ./$(DEPDIR)/timeval.Plo
|
||||
include ./$(DEPDIR)/unicode.Plo
|
||||
include ./$(DEPDIR)/ustring.Plo
|
||||
include ./$(DEPDIR)/utility.Plo
|
||||
include ./$(DEPDIR)/value.Plo
|
||||
include ./$(DEPDIR)/value_basictypes.Plo
|
||||
include ./$(DEPDIR)/value_custom.Plo
|
||||
include ./$(DEPDIR)/wrap.Plo
|
||||
include ./$(DEPDIR)/wrap_init.Plo
|
||||
|
||||
.cc.o:
|
||||
if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
# source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
||||
# $(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cc.obj:
|
||||
if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
# source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
||||
# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.cc.lo:
|
||||
if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
# source='$<' object='$@' libtool=yes \
|
||||
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
||||
# $(LTCXXCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-sublib_includeHEADERS: $(sublib_include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(sublib_includedir)" || $(mkdir_p) "$(DESTDIR)$(sublib_includedir)"
|
||||
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(sublib_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(sublib_includedir)/$$f'"; \
|
||||
$(sublib_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(sublib_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-sublib_includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(sublib_includedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(sublib_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(mkdir_p) $(distdir)/../../build_shared $(distdir)/../src
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(sublib_includedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-sublib_includeHEADERS
|
||||
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic \
|
||||
maintainer-clean-local
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
|
||||
uninstall-sublib_includeHEADERS
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
clean-recursive ctags ctags-recursive distclean \
|
||||
distclean-compile distclean-generic distclean-libtool \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-libLTLIBRARIES install-man \
|
||||
install-strip install-sublib_includeHEADERS installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-local \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
|
||||
pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-info-am uninstall-libLTLIBRARIES \
|
||||
uninstall-sublib_includeHEADERS
|
||||
|
||||
|
||||
maintainer-clean-local:
|
||||
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
||||
|
||||
cvsignore:
|
||||
( \
|
||||
echo ".deps"; \
|
||||
echo ".libs"; \
|
||||
echo "*.la"; \
|
||||
echo "*.lo"; \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_built_all_cc) $(files_built_all_h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/.cvsignore
|
||||
( \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_all_hg:.hg=_p.h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/private/.cvsignore
|
||||
|
||||
.PHONY: cvsignore
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
105
libs/glibmm2/glib/glibmm/Makefile.am
Normal file
105
libs/glibmm2/glib/glibmm/Makefile.am
Normal file
|
@ -0,0 +1,105 @@
|
|||
## Copyright (c) 2001
|
||||
## The gtkmm development team.
|
||||
|
||||
SUBDIRS = private
|
||||
|
||||
sublib_name = glibmm
|
||||
sublib_libname = glibmm-2.4
|
||||
sublib_namespace = Glib
|
||||
sublib_cflags = $(GLIBMM_CFLAGS)
|
||||
|
||||
sublib_files_extra_posix_cc =
|
||||
sublib_files_extra_win32_cc =
|
||||
|
||||
sublib_files_extra_general_cc = \
|
||||
class.cc \
|
||||
containers.cc \
|
||||
debug.cc \
|
||||
dispatcher.cc \
|
||||
error.cc \
|
||||
exception.cc \
|
||||
exceptionhandler.cc \
|
||||
init.cc \
|
||||
interface.cc \
|
||||
main.cc \
|
||||
miscutils.cc \
|
||||
object.cc \
|
||||
objectbase.cc \
|
||||
pattern.cc \
|
||||
property.cc \
|
||||
propertyproxy.cc \
|
||||
propertyproxy_base.cc \
|
||||
quark.cc \
|
||||
random.cc \
|
||||
signalproxy.cc \
|
||||
signalproxy_connectionnode.cc \
|
||||
streamiochannel.cc \
|
||||
stringutils.cc \
|
||||
threadpool.cc \
|
||||
timer.cc \
|
||||
timeval.cc \
|
||||
ustring.cc \
|
||||
utility.cc \
|
||||
value.cc \
|
||||
value_custom.cc \
|
||||
wrap.cc
|
||||
|
||||
sublib_files_extra_posix_h =
|
||||
sublib_files_extra_win32_h =
|
||||
|
||||
sublib_files_extra_general_h = \
|
||||
arrayhandle.h \
|
||||
class.h \
|
||||
containerhandle_shared.h \
|
||||
containers.h \
|
||||
debug.h \
|
||||
dispatcher.h \
|
||||
error.h \
|
||||
exception.h \
|
||||
exceptionhandler.h \
|
||||
helperlist.h \
|
||||
init.h \
|
||||
i18n.h \
|
||||
interface.h \
|
||||
iochannel.h \
|
||||
keyfile.h \
|
||||
listhandle.h \
|
||||
main.h \
|
||||
miscutils.h \
|
||||
object.h \
|
||||
objectbase.h \
|
||||
pattern.h \
|
||||
property.h \
|
||||
propertyproxy.h \
|
||||
propertyproxy_base.h \
|
||||
quark.h \
|
||||
random.h \
|
||||
refptr.h \
|
||||
sarray.h \
|
||||
signalproxy_connectionnode.h \
|
||||
slisthandle.h \
|
||||
streamiochannel.h \
|
||||
stringutils.h \
|
||||
threadpool.h \
|
||||
timer.h \
|
||||
timeval.h \
|
||||
ustring.h \
|
||||
utility.h \
|
||||
value.h \
|
||||
value_custom.h \
|
||||
wrap.h
|
||||
|
||||
include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
|
||||
|
||||
files_built_general_cc += value_basictypes.cc
|
||||
files_built_general_h += signalproxy.h value_basictypes.h
|
||||
|
||||
lib_LTLIBRARIES = libglibmm-2.4.la
|
||||
if OS_WIN32
|
||||
libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_win32_cc)
|
||||
else
|
||||
libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_posix_cc)
|
||||
endif
|
||||
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
||||
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
||||
|
908
libs/glibmm2/glib/glibmm/Makefile.in
Normal file
908
libs/glibmm2/glib/glibmm/Makefile.in
Normal file
|
@ -0,0 +1,908 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ../..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = $(am__sublib_include_HEADERS_DIST) \
|
||||
$(srcdir)/../src/Makefile_list_of_hg.am_fragment \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_build_extra.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment \
|
||||
$(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
||||
subdir = glib/glibmm
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/cxx.m4 \
|
||||
$(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/glib/glibmmconfig.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" \
|
||||
"$(DESTDIR)$(sublib_includedir)"
|
||||
libLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
am__DEPENDENCIES_1 =
|
||||
libglibmm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
||||
am__libglibmm_2_4_la_SOURCES_DIST = convert.cc date.cc fileutils.cc \
|
||||
iochannel.cc keyfile.cc markup.cc module.cc optioncontext.cc \
|
||||
optionentry.cc optiongroup.cc shell.cc spawn.cc thread.cc \
|
||||
unicode.cc wrap_init.cc value_basictypes.cc class.cc \
|
||||
containers.cc debug.cc dispatcher.cc error.cc exception.cc \
|
||||
exceptionhandler.cc init.cc interface.cc main.cc miscutils.cc \
|
||||
object.cc objectbase.cc pattern.cc property.cc \
|
||||
propertyproxy.cc propertyproxy_base.cc quark.cc random.cc \
|
||||
signalproxy.cc signalproxy_connectionnode.cc \
|
||||
streamiochannel.cc stringutils.cc threadpool.cc timer.cc \
|
||||
timeval.cc ustring.cc utility.cc value.cc value_custom.cc \
|
||||
wrap.cc
|
||||
am__objects_1 = convert.lo date.lo fileutils.lo iochannel.lo \
|
||||
keyfile.lo markup.lo module.lo optioncontext.lo optionentry.lo \
|
||||
optiongroup.lo shell.lo spawn.lo thread.lo unicode.lo
|
||||
am__objects_2 = $(am__objects_1) wrap_init.lo value_basictypes.lo
|
||||
am__objects_3 = class.lo containers.lo debug.lo dispatcher.lo error.lo \
|
||||
exception.lo exceptionhandler.lo init.lo interface.lo main.lo \
|
||||
miscutils.lo object.lo objectbase.lo pattern.lo property.lo \
|
||||
propertyproxy.lo propertyproxy_base.lo quark.lo random.lo \
|
||||
signalproxy.lo signalproxy_connectionnode.lo \
|
||||
streamiochannel.lo stringutils.lo threadpool.lo timer.lo \
|
||||
timeval.lo ustring.lo utility.lo value.lo value_custom.lo \
|
||||
wrap.lo
|
||||
am__objects_4 =
|
||||
@OS_WIN32_FALSE@am__objects_5 = $(am__objects_3) $(am__objects_4)
|
||||
@OS_WIN32_TRUE@am__objects_5 = $(am__objects_3) $(am__objects_4)
|
||||
am__objects_6 = $(am__objects_5)
|
||||
am__objects_7 = $(am__objects_2) $(am__objects_6)
|
||||
am__objects_8 = $(am__objects_4)
|
||||
am__objects_9 = $(am__objects_8)
|
||||
@OS_WIN32_FALSE@am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
||||
@OS_WIN32_FALSE@ $(am__objects_9)
|
||||
@OS_WIN32_TRUE@am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
||||
@OS_WIN32_TRUE@ $(am__objects_9)
|
||||
libglibmm_2_4_la_OBJECTS = $(am_libglibmm_2_4_la_OBJECTS)
|
||||
depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
CXXLD = $(CXX)
|
||||
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(libglibmm_2_4_la_SOURCES)
|
||||
DIST_SOURCES = $(am__libglibmm_2_4_la_SOURCES_DIST)
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__sublib_include_HEADERS_DIST = convert.h date.h fileutils.h \
|
||||
iochannel.h keyfile.h markup.h module.h optioncontext.h \
|
||||
optionentry.h optiongroup.h shell.h spawn.h thread.h unicode.h \
|
||||
signalproxy.h value_basictypes.h arrayhandle.h class.h \
|
||||
containerhandle_shared.h containers.h debug.h dispatcher.h \
|
||||
error.h exception.h exceptionhandler.h helperlist.h init.h \
|
||||
i18n.h interface.h listhandle.h main.h miscutils.h object.h \
|
||||
objectbase.h pattern.h property.h propertyproxy.h \
|
||||
propertyproxy_base.h quark.h random.h refptr.h sarray.h \
|
||||
signalproxy_connectionnode.h slisthandle.h streamiochannel.h \
|
||||
stringutils.h threadpool.h timer.h timeval.h ustring.h \
|
||||
utility.h value.h value_custom.h wrap.h wrap_init.h
|
||||
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(sublib_include_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@ $(strip $(extra_defines))
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GLIBMM_CFLAGS = @GLIBMM_CFLAGS@
|
||||
GLIBMM_LIBS = @GLIBMM_LIBS@
|
||||
GLIBMM_MAJOR_VERSION = @GLIBMM_MAJOR_VERSION@
|
||||
GLIBMM_MICRO_VERSION = @GLIBMM_MICRO_VERSION@
|
||||
GLIBMM_MINOR_VERSION = @GLIBMM_MINOR_VERSION@
|
||||
GLIBMM_RELEASE = @GLIBMM_RELEASE@
|
||||
GLIBMM_VERSION = @GLIBMM_VERSION@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
GTKMM_FALSE_FALSE = @GTKMM_FALSE_FALSE@
|
||||
GTKMM_FALSE_TRUE = @GTKMM_FALSE_TRUE@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OS_WIN32_FALSE = @OS_WIN32_FALSE@
|
||||
OS_WIN32_TRUE = @OS_WIN32_TRUE@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@
|
||||
PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_AS = @ac_ct_AS@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
SUBDIRS = private
|
||||
sublib_name = glibmm
|
||||
sublib_libname = glibmm-2.4
|
||||
sublib_namespace = Glib
|
||||
sublib_cflags = $(GLIBMM_CFLAGS)
|
||||
sublib_files_extra_posix_cc =
|
||||
sublib_files_extra_win32_cc =
|
||||
sublib_files_extra_general_cc = \
|
||||
class.cc \
|
||||
containers.cc \
|
||||
debug.cc \
|
||||
dispatcher.cc \
|
||||
error.cc \
|
||||
exception.cc \
|
||||
exceptionhandler.cc \
|
||||
init.cc \
|
||||
interface.cc \
|
||||
main.cc \
|
||||
miscutils.cc \
|
||||
object.cc \
|
||||
objectbase.cc \
|
||||
pattern.cc \
|
||||
property.cc \
|
||||
propertyproxy.cc \
|
||||
propertyproxy_base.cc \
|
||||
quark.cc \
|
||||
random.cc \
|
||||
signalproxy.cc \
|
||||
signalproxy_connectionnode.cc \
|
||||
streamiochannel.cc \
|
||||
stringutils.cc \
|
||||
threadpool.cc \
|
||||
timer.cc \
|
||||
timeval.cc \
|
||||
ustring.cc \
|
||||
utility.cc \
|
||||
value.cc \
|
||||
value_custom.cc \
|
||||
wrap.cc
|
||||
|
||||
sublib_files_extra_posix_h =
|
||||
sublib_files_extra_win32_h =
|
||||
sublib_files_extra_general_h = \
|
||||
arrayhandle.h \
|
||||
class.h \
|
||||
containerhandle_shared.h \
|
||||
containers.h \
|
||||
debug.h \
|
||||
dispatcher.h \
|
||||
error.h \
|
||||
exception.h \
|
||||
exceptionhandler.h \
|
||||
helperlist.h \
|
||||
init.h \
|
||||
i18n.h \
|
||||
interface.h \
|
||||
iochannel.h \
|
||||
keyfile.h \
|
||||
listhandle.h \
|
||||
main.h \
|
||||
miscutils.h \
|
||||
object.h \
|
||||
objectbase.h \
|
||||
pattern.h \
|
||||
property.h \
|
||||
propertyproxy.h \
|
||||
propertyproxy_base.h \
|
||||
quark.h \
|
||||
random.h \
|
||||
refptr.h \
|
||||
sarray.h \
|
||||
signalproxy_connectionnode.h \
|
||||
slisthandle.h \
|
||||
streamiochannel.h \
|
||||
stringutils.h \
|
||||
threadpool.h \
|
||||
timer.h \
|
||||
timeval.h \
|
||||
ustring.h \
|
||||
utility.h \
|
||||
value.h \
|
||||
value_custom.h \
|
||||
wrap.h
|
||||
|
||||
files_posix_hg =
|
||||
files_win32_hg =
|
||||
files_general_hg = convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg module.hg optioncontext.hg optionentry.hg optiongroup.hg shell.hg spawn.hg thread.hg unicode.hg
|
||||
files_all_hg = $(files_general_hg) $(files_posix_hg) $(files_win32_hg)
|
||||
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg)
|
||||
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg)
|
||||
files_built_general_cc = $(files_general_hg:.hg=.cc) wrap_init.cc \
|
||||
value_basictypes.cc
|
||||
files_built_general_h = $(files_general_hg:.hg=.h) signalproxy.h \
|
||||
value_basictypes.h
|
||||
files_built_posix_cc = $(files_posix_hg:.hg=.cc)
|
||||
files_built_posix_h = $(files_posix_hg:.hg=.h)
|
||||
files_built_win32_cc = $(files_win32_hg:.hg=.cc)
|
||||
files_built_win32_h = $(files_win32_hg:.hg=.h)
|
||||
files_built_all_cc = $(files_built_general_cc) \
|
||||
$(files_built_posix_cc) \
|
||||
$(files_built_win32_cc)
|
||||
|
||||
files_built_all_h = $(files_built_general_h) \
|
||||
$(files_built_posix_h) \
|
||||
$(files_built_win32_h)
|
||||
|
||||
@OS_WIN32_FALSE@files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc)
|
||||
@OS_WIN32_TRUE@files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_win32_cc)
|
||||
@OS_WIN32_FALSE@files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_posix_h)
|
||||
@OS_WIN32_TRUE@files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_win32_h)
|
||||
files_extra_cc = $(files_extra_cc_tmp)
|
||||
files_extra_h = $(files_extra_h_tmp) wrap_init.h
|
||||
files_extra_all_cc = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc) $(sublib_files_extra_win32_cc)
|
||||
files_extra_all_h = $(sublib_files_extra_general_h) \
|
||||
$(sublib_files_extra_posix_h) $(sublib_files_extra_win32_h) \
|
||||
wrap_init.h
|
||||
files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
|
||||
files_all_posix_cc = $(files_built_posix_cc)
|
||||
files_all_win32_cc = $(files_built_win32_cc)
|
||||
@PLATFORM_WIN32_FALSE@extra_win32_defines =
|
||||
|
||||
# Support for DLL on mingw using libtool > 1.4
|
||||
# When creating DLLs on win32, we need to explicitly add a few extra
|
||||
# libraries at link time to resolve symbols (remember a dll is like an
|
||||
# executable).
|
||||
@PLATFORM_WIN32_TRUE@extra_win32_defines = \
|
||||
@PLATFORM_WIN32_TRUE@ -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
||||
|
||||
@PLATFORM_WIN32_FALSE@no_undefined =
|
||||
@PLATFORM_WIN32_TRUE@no_undefined = -no-undefined -Wl,--export-all-symbols
|
||||
@PLATFORM_WIN32_FALSE@win32_dlls_extra_libs =
|
||||
@PLATFORM_WIN32_TRUE@win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
||||
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
||||
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
||||
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
||||
|
||||
extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
|
||||
$(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
||||
|
||||
dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
|
||||
$(files_built_all_h) $(files_extra_all_h)
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DEFAULT_INCLUDES =
|
||||
INCLUDES = $(strip $(all_includes))
|
||||
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
||||
@OS_WIN32_FALSE@sublib_include_HEADERS = $(files_built_general_h) \
|
||||
@OS_WIN32_FALSE@ $(files_built_posix_h) \
|
||||
@OS_WIN32_FALSE@ $(files_extra_h)
|
||||
|
||||
@OS_WIN32_TRUE@sublib_include_HEADERS = $(files_built_general_h) \
|
||||
@OS_WIN32_TRUE@ $(files_built_win32_h) \
|
||||
@OS_WIN32_TRUE@ $(files_extra_h)
|
||||
|
||||
lib_LTLIBRARIES = libglibmm-2.4.la
|
||||
@OS_WIN32_FALSE@libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_posix_cc)
|
||||
@OS_WIN32_TRUE@libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_win32_cc)
|
||||
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
||||
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .cc .lo .o .obj
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment $(top_srcdir)/build_shared/Makefile_build_extra.am_fragment $(top_srcdir)/build_shared/Makefile_build.am_fragment $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glib/glibmm/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu glib/glibmm/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
libglibmm-2.4.la: $(libglibmm_2_4_la_OBJECTS) $(libglibmm_2_4_la_DEPENDENCIES)
|
||||
$(CXXLINK) -rpath $(libdir) $(libglibmm_2_4_la_LDFLAGS) $(libglibmm_2_4_la_OBJECTS) $(libglibmm_2_4_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/class.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/containers.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/date.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dispatcher.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exceptionhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileutils.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iochannel.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keyfile.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/markup.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/miscutils.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objectbase.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optioncontext.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optionentry.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optiongroup.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pattern.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/property.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propertyproxy.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propertyproxy_base.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quark.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shell.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signalproxy.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signalproxy_connectionnode.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spawn.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/streamiochannel.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringutils.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thread.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadpool.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicode.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ustring.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utility.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/value.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/value_basictypes.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/value_custom.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrap.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrap_init.Plo@am__quote@
|
||||
|
||||
.cc.o:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cc.obj:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.cc.lo:
|
||||
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-sublib_includeHEADERS: $(sublib_include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(sublib_includedir)" || $(mkdir_p) "$(DESTDIR)$(sublib_includedir)"
|
||||
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(sublib_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(sublib_includedir)/$$f'"; \
|
||||
$(sublib_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(sublib_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-sublib_includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(sublib_includedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(sublib_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(mkdir_p) $(distdir)/../../build_shared $(distdir)/../src
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(sublib_includedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-sublib_includeHEADERS
|
||||
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic \
|
||||
maintainer-clean-local
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
|
||||
uninstall-sublib_includeHEADERS
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
clean-recursive ctags ctags-recursive distclean \
|
||||
distclean-compile distclean-generic distclean-libtool \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-libLTLIBRARIES install-man \
|
||||
install-strip install-sublib_includeHEADERS installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-local \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
|
||||
pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-info-am uninstall-libLTLIBRARIES \
|
||||
uninstall-sublib_includeHEADERS
|
||||
|
||||
|
||||
maintainer-clean-local:
|
||||
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
||||
|
||||
cvsignore:
|
||||
( \
|
||||
echo ".deps"; \
|
||||
echo ".libs"; \
|
||||
echo "*.la"; \
|
||||
echo "*.lo"; \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_built_all_cc) $(files_built_all_h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/.cvsignore
|
||||
( \
|
||||
echo "Makefile"; \
|
||||
echo "Makefile.in"; \
|
||||
echo; \
|
||||
list='$(strip $(files_all_hg:.hg=_p.h))'; \
|
||||
for file in $$list; do \
|
||||
echo "$$file"; \
|
||||
done \
|
||||
) >$(srcdir)/private/.cvsignore
|
||||
|
||||
.PHONY: cvsignore
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
522
libs/glibmm2/glib/glibmm/arrayhandle.h
Normal file
522
libs/glibmm2/glib/glibmm/arrayhandle.h
Normal file
|
@ -0,0 +1,522 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_ARRAYHANDLE_H
|
||||
#define _GLIBMM_ARRAYHANDLE_H
|
||||
|
||||
/* $Id: arrayhandle.h,v 1.3 2003/04/21 17:39:41 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/containerhandle_shared.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
namespace Container_Helpers
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
/* Count the number of elements in a 0-terminated sequence.
|
||||
*/
|
||||
template <class T> inline
|
||||
size_t compute_array_size(const T* array)
|
||||
{
|
||||
const T* pend = array;
|
||||
|
||||
while(*pend)
|
||||
++pend;
|
||||
|
||||
return (pend - array);
|
||||
}
|
||||
|
||||
/* Allocate and fill a 0-terminated array. The size argument
|
||||
* specifies the number of elements in the input sequence.
|
||||
*/
|
||||
template <class For, class Tr>
|
||||
typename Tr::CType* create_array(For pbegin, size_t size, Tr)
|
||||
{
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
CType *const array = static_cast<CType*>(g_malloc((size + 1) * sizeof(CType)));
|
||||
CType *const array_end = array + size;
|
||||
|
||||
for(CType* pdest = array; pdest != array_end; ++pdest)
|
||||
{
|
||||
// Use & to force a warning if the iterator returns a temporary object.
|
||||
*pdest = Tr::to_c_type(*&*pbegin);
|
||||
++pbegin;
|
||||
}
|
||||
|
||||
*array_end = CType();
|
||||
return array;
|
||||
}
|
||||
|
||||
|
||||
/* Convert from any container that supports forward
|
||||
* iterators and has a size() method.
|
||||
*/
|
||||
template <class Tr, class Cont>
|
||||
struct ArraySourceTraits
|
||||
{
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
static size_t get_size(const Cont& cont)
|
||||
{ return cont.size(); }
|
||||
|
||||
static const CType* get_data(const Cont& cont, size_t size)
|
||||
{ return Glib::Container_Helpers::create_array(cont.begin(), size, Tr()); }
|
||||
|
||||
static const Glib::OwnershipType initial_ownership = Glib::OWNERSHIP_SHALLOW;
|
||||
};
|
||||
|
||||
/* Convert from a 0-terminated array. The Cont argument must be a pointer
|
||||
* to the first element. Note that only arrays of the C type are supported.
|
||||
*/
|
||||
template <class Tr, class Cont>
|
||||
struct ArraySourceTraits<Tr,Cont*>
|
||||
{
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
static size_t get_size(const CType* array)
|
||||
{ return (array) ? Glib::Container_Helpers::compute_array_size(array) : 0; }
|
||||
|
||||
static const CType* get_data(const CType* array, size_t)
|
||||
{ return array; }
|
||||
|
||||
static const Glib::OwnershipType initial_ownership = Glib::OWNERSHIP_NONE;
|
||||
};
|
||||
|
||||
template <class Tr, class Cont>
|
||||
struct ArraySourceTraits<Tr,const Cont*> : ArraySourceTraits<Tr,Cont*>
|
||||
{};
|
||||
|
||||
/* Convert from a 0-terminated array. The Cont argument must be a pointer
|
||||
* to the first element. Note that only arrays of the C type are supported.
|
||||
* For consistency, the array must be 0-terminated, even though the array
|
||||
* size is known at compile time.
|
||||
*/
|
||||
template <class Tr, class Cont, size_t N>
|
||||
struct ArraySourceTraits<Tr,Cont[N]>
|
||||
{
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
static size_t get_size(const CType*)
|
||||
{ return (N - 1); }
|
||||
|
||||
static const CType* get_data(const CType* array, size_t)
|
||||
{ return array; }
|
||||
|
||||
static const Glib::OwnershipType initial_ownership = Glib::OWNERSHIP_NONE;
|
||||
};
|
||||
|
||||
template <class Tr, class Cont, size_t N>
|
||||
struct ArraySourceTraits<Tr,const Cont[N]> : ArraySourceTraits<Tr,Cont[N]>
|
||||
{};
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup ContHelpers
|
||||
*/
|
||||
template <class Tr>
|
||||
class ArrayHandleIterator
|
||||
{
|
||||
public:
|
||||
typedef typename Tr::CppType CppType;
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
typedef std::random_access_iterator_tag iterator_category;
|
||||
typedef CppType value_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef value_type reference;
|
||||
typedef void pointer;
|
||||
|
||||
explicit inline ArrayHandleIterator(const CType* pos);
|
||||
|
||||
inline value_type operator*() const;
|
||||
inline value_type operator[](difference_type offset) const;
|
||||
|
||||
inline ArrayHandleIterator<Tr> & operator++();
|
||||
inline const ArrayHandleIterator<Tr> operator++(int);
|
||||
|
||||
// All this random access stuff is only there because STL algorithms
|
||||
// usually have optimized specializations for random access iterators,
|
||||
// and we don't want to give away efficiency for nothing.
|
||||
//
|
||||
inline ArrayHandleIterator<Tr> & operator+=(difference_type rhs);
|
||||
inline ArrayHandleIterator<Tr> & operator-=(difference_type rhs);
|
||||
inline const ArrayHandleIterator<Tr> operator+ (difference_type rhs) const;
|
||||
inline const ArrayHandleIterator<Tr> operator- (difference_type rhs) const;
|
||||
inline difference_type operator-(const ArrayHandleIterator<Tr>& rhs) const;
|
||||
|
||||
inline bool operator==(const ArrayHandleIterator<Tr>& rhs) const;
|
||||
inline bool operator!=(const ArrayHandleIterator<Tr>& rhs) const;
|
||||
inline bool operator< (const ArrayHandleIterator<Tr>& rhs) const;
|
||||
inline bool operator> (const ArrayHandleIterator<Tr>& rhs) const;
|
||||
inline bool operator<=(const ArrayHandleIterator<Tr>& rhs) const;
|
||||
inline bool operator>=(const ArrayHandleIterator<Tr>& rhs) const;
|
||||
|
||||
private:
|
||||
const CType* pos_;
|
||||
};
|
||||
|
||||
} // namespace Container_Helpers
|
||||
|
||||
|
||||
/** If a method takes this as an argument, or has this as a return type, then you can use a standard
|
||||
* container such as std::list or std::vector.
|
||||
* @ingroup ContHandles
|
||||
*/
|
||||
template < class T, class Tr = Glib::Container_Helpers::TypeTraits<T> >
|
||||
class ArrayHandle
|
||||
{
|
||||
public:
|
||||
typedef typename Tr::CppType CppType;
|
||||
typedef typename Tr::CType CType;
|
||||
|
||||
typedef CppType value_type;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
|
||||
typedef Glib::Container_Helpers::ArrayHandleIterator<Tr> const_iterator;
|
||||
typedef Glib::Container_Helpers::ArrayHandleIterator<Tr> iterator;
|
||||
|
||||
template <class Cont> inline
|
||||
ArrayHandle(const Cont& container);
|
||||
|
||||
// Take over ownership of an array created by GTK+ functions.
|
||||
inline ArrayHandle(const CType* array, size_t array_size, Glib::OwnershipType ownership);
|
||||
inline ArrayHandle(const CType* array, Glib::OwnershipType ownership);
|
||||
|
||||
// Copying clears the ownership flag of the source handle.
|
||||
inline ArrayHandle(const ArrayHandle<T,Tr>& other);
|
||||
|
||||
~ArrayHandle();
|
||||
|
||||
inline const_iterator begin() const;
|
||||
inline const_iterator end() const;
|
||||
|
||||
template <class U> inline operator std::vector<U>() const;
|
||||
template <class U> inline operator std::deque<U>() const;
|
||||
template <class U> inline operator std::list<U>() const;
|
||||
|
||||
template <class Cont> inline
|
||||
void assign_to(Cont& container) const;
|
||||
|
||||
template <class Out> inline
|
||||
void copy(Out pdest) const;
|
||||
|
||||
inline const CType* data() const;
|
||||
inline size_t size() const;
|
||||
inline bool empty() const;
|
||||
|
||||
private:
|
||||
size_t size_;
|
||||
const CType* parray_;
|
||||
mutable Glib::OwnershipType ownership_;
|
||||
|
||||
// No copy assignment.
|
||||
ArrayHandle<T, Tr>& operator=(const ArrayHandle<T,Tr>&);
|
||||
};
|
||||
|
||||
/** If a method takes this as an argument, or has this as a return type, then you can use a standard
|
||||
* container such as std::list<Glib::ustring> or std::vector<Glib::ustring>.
|
||||
* @ingroup ContHandles
|
||||
*/
|
||||
typedef ArrayHandle<Glib::ustring> StringArrayHandle;
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
/* Inline implementation */
|
||||
/***************************************************************************/
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
namespace Container_Helpers
|
||||
{
|
||||
|
||||
/**** Glib::Container_Helpers::ArrayHandleIterator<> ***********************/
|
||||
|
||||
template <class Tr> inline
|
||||
ArrayHandleIterator<Tr>::ArrayHandleIterator(const CType* pos)
|
||||
:
|
||||
pos_ (pos)
|
||||
{}
|
||||
|
||||
template <class Tr> inline
|
||||
typename ArrayHandleIterator<Tr>::value_type ArrayHandleIterator<Tr>::operator*() const
|
||||
{
|
||||
return Tr::to_cpp_type(*pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
typename ArrayHandleIterator<Tr>::value_type
|
||||
ArrayHandleIterator<Tr>::operator[](difference_type offset) const
|
||||
{
|
||||
return Tr::to_cpp_type(pos_[offset]);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
ArrayHandleIterator<Tr>& ArrayHandleIterator<Tr>::operator++()
|
||||
{
|
||||
++pos_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
const ArrayHandleIterator<Tr> ArrayHandleIterator<Tr>::operator++(int)
|
||||
{
|
||||
return ArrayHandleIterator<Tr>(pos_++);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
ArrayHandleIterator<Tr>&
|
||||
ArrayHandleIterator<Tr>::operator+=(typename ArrayHandleIterator<Tr>::difference_type rhs)
|
||||
{
|
||||
pos_ += rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
ArrayHandleIterator<Tr>&
|
||||
ArrayHandleIterator<Tr>::operator-=(typename ArrayHandleIterator<Tr>::difference_type rhs)
|
||||
{
|
||||
pos_ -= rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
const ArrayHandleIterator<Tr>
|
||||
ArrayHandleIterator<Tr>::operator+(typename ArrayHandleIterator<Tr>::difference_type rhs) const
|
||||
{
|
||||
return ArrayHandleIterator<Tr>(pos_ + rhs);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
const ArrayHandleIterator<Tr>
|
||||
ArrayHandleIterator<Tr>::operator-(typename ArrayHandleIterator<Tr>::difference_type rhs) const
|
||||
{
|
||||
return ArrayHandleIterator<Tr>(pos_ - rhs);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
typename ArrayHandleIterator<Tr>::difference_type
|
||||
ArrayHandleIterator<Tr>::operator-(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ - rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator==(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ == rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator!=(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ != rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator<(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ < rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator>(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ > rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator<=(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ <= rhs.pos_);
|
||||
}
|
||||
|
||||
template <class Tr> inline
|
||||
bool ArrayHandleIterator<Tr>::operator>=(const ArrayHandleIterator<Tr>& rhs) const
|
||||
{
|
||||
return (pos_ >= rhs.pos_);
|
||||
}
|
||||
|
||||
} // namespace Container_Helpers
|
||||
|
||||
|
||||
/**** Glib::ArrayHandle<> **************************************************/
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class Cont>
|
||||
inline
|
||||
ArrayHandle<T,Tr>::ArrayHandle(const Cont& container)
|
||||
:
|
||||
size_ (Glib::Container_Helpers::ArraySourceTraits<Tr,Cont>::get_size(container)),
|
||||
parray_ (Glib::Container_Helpers::ArraySourceTraits<Tr,Cont>::get_data(container, size_)),
|
||||
ownership_ (Glib::Container_Helpers::ArraySourceTraits<Tr,Cont>::initial_ownership)
|
||||
{}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
ArrayHandle<T,Tr>::ArrayHandle(const typename ArrayHandle<T,Tr>::CType* array, size_t array_size,
|
||||
Glib::OwnershipType ownership)
|
||||
:
|
||||
size_ (array_size),
|
||||
parray_ (array),
|
||||
ownership_ (ownership)
|
||||
{}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
ArrayHandle<T,Tr>::ArrayHandle(const typename ArrayHandle<T,Tr>::CType* array,
|
||||
Glib::OwnershipType ownership)
|
||||
:
|
||||
size_ ((array) ? Glib::Container_Helpers::compute_array_size(array) : 0),
|
||||
parray_ (array),
|
||||
ownership_ (ownership)
|
||||
{}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
ArrayHandle<T,Tr>::ArrayHandle(const ArrayHandle<T,Tr>& other)
|
||||
:
|
||||
size_ (other.size_),
|
||||
parray_ (other.parray_),
|
||||
ownership_ (other.ownership_)
|
||||
{
|
||||
other.ownership_ = Glib::OWNERSHIP_NONE;
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
ArrayHandle<T,Tr>::~ArrayHandle()
|
||||
{
|
||||
if(ownership_ != Glib::OWNERSHIP_NONE)
|
||||
{
|
||||
if(ownership_ != Glib::OWNERSHIP_SHALLOW)
|
||||
{
|
||||
// Deep ownership: release each container element.
|
||||
const CType *const pend = parray_ + size_;
|
||||
for(const CType* p = parray_; p != pend; ++p)
|
||||
Tr::release_c_type(*p);
|
||||
}
|
||||
g_free(const_cast<CType*>(parray_));
|
||||
}
|
||||
}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
typename ArrayHandle<T,Tr>::const_iterator ArrayHandle<T,Tr>::begin() const
|
||||
{
|
||||
return Glib::Container_Helpers::ArrayHandleIterator<Tr>(parray_);
|
||||
}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
typename ArrayHandle<T,Tr>::const_iterator ArrayHandle<T,Tr>::end() const
|
||||
{
|
||||
return Glib::Container_Helpers::ArrayHandleIterator<Tr>(parray_ + size_);
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class U>
|
||||
inline
|
||||
ArrayHandle<T,Tr>::operator std::vector<U>() const
|
||||
{
|
||||
#ifdef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||
return std::vector<U>(this->begin(), this->end());
|
||||
#else
|
||||
std::vector<U> temp;
|
||||
temp.reserve(this->size());
|
||||
Glib::Container_Helpers::fill_container(temp, this->begin(), this->end());
|
||||
return temp;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class U>
|
||||
inline
|
||||
ArrayHandle<T,Tr>::operator std::deque<U>() const
|
||||
{
|
||||
#ifdef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||
return std::deque<U>(this->begin(), this->end());
|
||||
#else
|
||||
std::deque<U> temp;
|
||||
Glib::Container_Helpers::fill_container(temp, this->begin(), this->end());
|
||||
return temp;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class U>
|
||||
inline
|
||||
ArrayHandle<T,Tr>::operator std::list<U>() const
|
||||
{
|
||||
#ifdef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||
return std::list<U>(this->begin(), this->end());
|
||||
#else
|
||||
std::list<U> temp;
|
||||
Glib::Container_Helpers::fill_container(temp, this->begin(), this->end());
|
||||
return temp;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class Cont>
|
||||
inline
|
||||
void ArrayHandle<T,Tr>::assign_to(Cont& container) const
|
||||
{
|
||||
#ifdef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||
container.assign(this->begin(), this->end());
|
||||
#else
|
||||
Cont temp;
|
||||
Glib::Container_Helpers::fill_container(temp, this->begin(), this->end());
|
||||
container.swap(temp);
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T, class Tr>
|
||||
template <class Out>
|
||||
inline
|
||||
void ArrayHandle<T,Tr>::copy(Out pdest) const
|
||||
{
|
||||
std::copy(this->begin(), this->end(), pdest);
|
||||
}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
const typename ArrayHandle<T,Tr>::CType* ArrayHandle<T,Tr>::data() const
|
||||
{
|
||||
return parray_;
|
||||
}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
size_t ArrayHandle<T,Tr>::size() const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
template <class T, class Tr> inline
|
||||
bool ArrayHandle<T,Tr>::empty() const
|
||||
{
|
||||
return (size_ == 0);
|
||||
}
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_ARRAYHANDLE_H */
|
||||
|
117
libs/glibmm2/glib/glibmm/class.cc
Normal file
117
libs/glibmm2/glib/glibmm/class.cc
Normal file
|
@ -0,0 +1,117 @@
|
|||
// -*- c++ -*-
|
||||
/* $Id: class.cc,v 1.7 2006/10/04 12:04:05 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/class.h>
|
||||
#include <glibmm/property.h>
|
||||
#include <glibmm/ustring.h>
|
||||
#include <glibmm/utility.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
void Class::register_derived_type(GType base_type)
|
||||
{
|
||||
if(gtype_)
|
||||
return; // already initialized
|
||||
|
||||
GTypeQuery base_query = { 0, 0, 0, 0, };
|
||||
g_type_query(base_type, &base_query);
|
||||
|
||||
const GTypeInfo derived_info =
|
||||
{
|
||||
base_query.class_size,
|
||||
0, // base_init
|
||||
0, // base_finalize
|
||||
class_init_func_,
|
||||
0, // class_finalize
|
||||
0, // class_data
|
||||
base_query.instance_size,
|
||||
0, // n_preallocs
|
||||
0, // instance_init
|
||||
0, // value_table
|
||||
};
|
||||
|
||||
Glib::ustring derived_name = "gtkmm__";
|
||||
derived_name += base_query.type_name;
|
||||
|
||||
gtype_ = g_type_register_static(base_type, derived_name.c_str(), &derived_info, GTypeFlags(0));
|
||||
}
|
||||
|
||||
GType Class::clone_custom_type(const char* custom_type_name) const
|
||||
{
|
||||
std::string full_name ("gtkmm__CustomObject_");
|
||||
Glib::append_canonical_typename(full_name, custom_type_name);
|
||||
|
||||
GType custom_type = g_type_from_name(full_name.c_str());
|
||||
|
||||
if(!custom_type)
|
||||
{
|
||||
g_return_val_if_fail(gtype_ != 0, 0);
|
||||
|
||||
// Cloned custom types derive from the wrapper's parent type,
|
||||
// so that g_type_class_peek_parent() works correctly.
|
||||
const GType base_type = g_type_parent(gtype_);
|
||||
|
||||
GTypeQuery base_query = { 0, 0, 0, 0, };
|
||||
g_type_query(base_type, &base_query);
|
||||
|
||||
const GTypeInfo derived_info =
|
||||
{
|
||||
base_query.class_size,
|
||||
0, // base_init
|
||||
0, // base_finalize
|
||||
&Class::custom_class_init_function,
|
||||
0, // class_finalize
|
||||
this, // class_data
|
||||
base_query.instance_size,
|
||||
0, // n_preallocs
|
||||
0, // instance_init
|
||||
0, // value_table
|
||||
};
|
||||
|
||||
custom_type = g_type_register_static(
|
||||
base_type, full_name.c_str(), &derived_info, GTypeFlags(0));
|
||||
}
|
||||
|
||||
return custom_type;
|
||||
}
|
||||
|
||||
// static
|
||||
void Class::custom_class_init_function(void* g_class, void* class_data)
|
||||
{
|
||||
// The class_data pointer is set to 'this' by clone_custom_type().
|
||||
const Class *const self = static_cast<Class*>(class_data);
|
||||
|
||||
g_return_if_fail(self->class_init_func_ != 0);
|
||||
|
||||
// Call the wrapper's class_init_function() to redirect
|
||||
// the vfunc and default signal handler callbacks.
|
||||
(*self->class_init_func_)(g_class, 0);
|
||||
|
||||
#ifdef GLIBMM_PROPERTIES_ENABLED
|
||||
GObjectClass *const gobject_class = static_cast<GObjectClass*>(g_class);
|
||||
gobject_class->get_property = &Glib::custom_get_property_callback;
|
||||
gobject_class->set_property = &Glib::custom_set_property_callback;
|
||||
#endif //GLIBMM_PROPERTIES_ENABLED
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
77
libs/glibmm2/glib/glibmm/class.h
Normal file
77
libs/glibmm2/glib/glibmm/class.h
Normal file
|
@ -0,0 +1,77 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_CLASS_H
|
||||
#define _GLIBMM_CLASS_H
|
||||
|
||||
/* $Id: class.h,v 1.6 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2001 Free Software Foundation
|
||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <glibmmconfig.h> //Include this here so that the /private/*.h classes have access to GLIBMM_VFUNCS_ENABLED
|
||||
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class Class
|
||||
{
|
||||
public:
|
||||
/* No constructor/destructor:
|
||||
* Glib::Class objects are used only as static data, which would cause
|
||||
* lots of ugly global constructor invocations. These are avoidable,
|
||||
* because the C/C++ standard explicitly specifies that all _static_ data
|
||||
* is zero-initialized at program start.
|
||||
*/
|
||||
//Class();
|
||||
//~Class();
|
||||
|
||||
//static void class_init_function(BaseClassType *p);
|
||||
//static void object_init_function(BaseObjectType *o);
|
||||
//GType get_type() = 0; //Creates the GType when this is first called.
|
||||
|
||||
// Hook for translating API
|
||||
//static Glib::Object* wrap_new(GObject*);
|
||||
|
||||
inline GType get_type() const;
|
||||
GType clone_custom_type(const char* custom_type_name) const;
|
||||
|
||||
protected:
|
||||
GType gtype_;
|
||||
GClassInitFunc class_init_func_;
|
||||
|
||||
void register_derived_type(GType base_type);
|
||||
|
||||
private:
|
||||
static void custom_class_init_function(void* g_class, void* class_data);
|
||||
};
|
||||
|
||||
inline
|
||||
GType Class::get_type() const
|
||||
{
|
||||
return gtype_;
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
#endif /* _GLIBMM_CLASS_H */
|
||||
|
373
libs/glibmm2/glib/glibmm/containerhandle_shared.h
Normal file
373
libs/glibmm2/glib/glibmm/containerhandle_shared.h
Normal file
|
@ -0,0 +1,373 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_CONTAINERHANDLE_SHARED_H
|
||||
#define _GLIBMM_CONTAINERHANDLE_SHARED_H
|
||||
|
||||
/* $Id: containerhandle_shared.h,v 1.12 2006/09/19 20:36:42 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <cstddef>
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
#include <list>
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <glib/gmem.h>
|
||||
#include <glibmm/refptr.h>
|
||||
#include <glibmm/ustring.h>
|
||||
#include <glibmm/wrap.h>
|
||||
#include <glibmm/debug.h>
|
||||
|
||||
#include <glibmmconfig.h>
|
||||
GLIBMM_USING_STD(forward_iterator_tag)
|
||||
GLIBMM_USING_STD(random_access_iterator_tag)
|
||||
GLIBMM_USING_STD(distance)
|
||||
GLIBMM_USING_STD(copy)
|
||||
GLIBMM_USING_STD(vector)
|
||||
GLIBMM_USING_STD(deque)
|
||||
GLIBMM_USING_STD(list)
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
/** @defgroup ContHandles Generic container converters
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup ContHandles
|
||||
*/
|
||||
enum OwnershipType
|
||||
{
|
||||
OWNERSHIP_NONE = 0,
|
||||
OWNERSHIP_SHALLOW, //Release the list, but not its elements, when the container is deleted
|
||||
OWNERSHIP_DEEP //Release the list, and its elements, when the container is deleted.
|
||||
};
|
||||
|
||||
|
||||
/** Utility class holding an iterator sequence.
|
||||
* @ingroup ContHandles
|
||||
* This can be used to initialize a Glib container handle (such as
|
||||
* Glib::ArrayHandle) with an iterator sequence. Use the helper
|
||||
* function Glib::sequence() to create a Sequence<> object.
|
||||
*/
|
||||
template <class Iterator>
|
||||
class Sequence
|
||||
{
|
||||
private:
|
||||
Iterator pbegin_;
|
||||
Iterator pend_;
|
||||
|
||||
public:
|
||||
Sequence(Iterator pbegin, Iterator pend)
|
||||
: pbegin_(pbegin), pend_(pend) {}
|
||||
|
||||
Iterator begin() const { return pbegin_; }
|
||||
Iterator end() const { return pend_; }
|
||||
size_t size() const { return std::distance(pbegin_, pend_); }
|
||||
};
|
||||
|
||||
/** Helper function to create a Glib::Sequence<> object, which
|
||||
* in turn can be used to initialize a container handle.
|
||||
* @ingroup ContHandles
|
||||
*
|
||||
* @par Usage example:
|
||||
* @code
|
||||
* combo.set_popdown_strings(Glib::sequence(foo_begin, foo_end));
|
||||
* @endcode
|
||||
*/
|
||||
template <class Iterator> inline
|
||||
Sequence<Iterator> sequence(Iterator pbegin, Iterator pend)
|
||||
{
|
||||
return Sequence<Iterator>(pbegin, pend);
|
||||
}
|
||||
|
||||
|
||||
namespace Container_Helpers
|
||||
{
|
||||
|
||||
/** @defgroup ContHelpers Helper classes
|
||||
* @ingroup ContHandles
|
||||
*/
|
||||
|
||||
/** Generic TypeTraits implementation.
|
||||
* @ingroup ContHelpers
|
||||
* This can be used if the C++ type is the same as the C type, or if implicit
|
||||
* conversions between the types are available. Also, the types are required
|
||||
* to implement copy-by-value semantics. (Ownership is just ignored.)
|
||||
*/
|
||||
template <class T>
|
||||
struct TypeTraits
|
||||
{
|
||||
typedef T CppType;
|
||||
typedef T CType;
|
||||
typedef T CTypeNonConst;
|
||||
|
||||
static CType to_c_type (const CppType& item) { return item; }
|
||||
static CppType to_cpp_type (const CType& item) { return item; }
|
||||
static void release_c_type (const CType&) {}
|
||||
};
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS /* hide the specializations */
|
||||
|
||||
//For some (proably, more spec-compliant) compilers, these specializations must
|
||||
//be next to the objects that they use.
|
||||
#ifdef GLIBMM_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION
|
||||
|
||||
/** Partial specialization for pointers to GtkObject instances.
|
||||
* @ingroup ContHelpers
|
||||
*/
|
||||
template <class T>
|
||||
struct TypeTraits<T*>
|
||||
{
|
||||
typedef T * CppType;
|
||||
typedef typename T::BaseObjectType * CType;
|
||||
typedef typename T::BaseObjectType * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (CppType ptr) { return Glib::unwrap(ptr); }
|
||||
static CType to_c_type (CType ptr) { return ptr; }
|
||||
static CppType to_cpp_type (CType ptr)
|
||||
{
|
||||
//We copy/paste the widget wrap() implementation here,
|
||||
//because we can not use a specific Glib::wrap(T_Impl) overload here,
|
||||
//because that would be "dependent", and g++ 3.4 does not allow that.
|
||||
//The specific Glib::wrap() overloads don't do anything special anyway.
|
||||
GObject* cobj = (GObject*)ptr;
|
||||
return dynamic_cast<CppType>(Glib::wrap_auto(cobj, false /* take_copy */));
|
||||
}
|
||||
|
||||
static void release_c_type (CType ptr)
|
||||
{
|
||||
GLIBMM_DEBUG_UNREFERENCE(0, ptr);
|
||||
g_object_unref(ptr);
|
||||
}
|
||||
};
|
||||
|
||||
//This confuse the SUN Forte compiler, so we ifdef it out:
|
||||
#ifdef GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS
|
||||
|
||||
/** Partial specialization for pointers to const GtkObject instances.
|
||||
* @ingroup ContHelpers
|
||||
*/
|
||||
template <class T>
|
||||
struct TypeTraits<const T*>
|
||||
{
|
||||
typedef const T * CppType;
|
||||
typedef const typename T::BaseObjectType * CType;
|
||||
typedef typename T::BaseObjectType * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (CppType ptr) { return Glib::unwrap(ptr); }
|
||||
static CType to_c_type (CType ptr) { return ptr; }
|
||||
static CppType to_cpp_type (CType ptr)
|
||||
{
|
||||
//We copy/paste the widget wrap() implementation here,
|
||||
//because we can not use a specific Glib::wrap(T_Impl) overload here,
|
||||
//because that would be "dependent", and g++ 3.4 does not allow that.
|
||||
//The specific Glib::wrap() overloads don't do anything special anyway.
|
||||
GObject* cobj = (GObject*)const_cast<CTypeNonConst>(ptr);
|
||||
return dynamic_cast<CppType>(Glib::wrap_auto(cobj, false /* take_copy */));
|
||||
}
|
||||
|
||||
static void release_c_type (CType ptr)
|
||||
{
|
||||
GLIBMM_DEBUG_UNREFERENCE(0, ptr);
|
||||
g_object_unref(const_cast<CTypeNonConst>(ptr));
|
||||
}
|
||||
};
|
||||
#endif //GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS
|
||||
|
||||
/** Partial specialization for pointers to GObject instances.
|
||||
* @ingroup ContHelpers
|
||||
* The C++ type is always a Glib::RefPtr<>.
|
||||
*/
|
||||
template <class T>
|
||||
struct TypeTraits< Glib::RefPtr<T> >
|
||||
{
|
||||
typedef Glib::RefPtr<T> CppType;
|
||||
typedef typename T::BaseObjectType * CType;
|
||||
typedef typename T::BaseObjectType * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (const CppType& ptr) { return Glib::unwrap(ptr); }
|
||||
static CType to_c_type (CType ptr) { return ptr; }
|
||||
static CppType to_cpp_type (CType ptr)
|
||||
{
|
||||
//return Glib::wrap(ptr, true);
|
||||
|
||||
//We copy/paste the wrap() implementation here,
|
||||
//because we can not use a specific Glib::wrap(CType) overload here,
|
||||
//because that would be "dependent", and g++ 3.4 does not allow that.
|
||||
//The specific Glib::wrap() overloads don't do anything special anyway.
|
||||
GObject* cobj = (GObject*)const_cast<CTypeNonConst>(ptr);
|
||||
return Glib::RefPtr<T>( dynamic_cast<T*>(Glib::wrap_auto(cobj, true /* take_copy */)) );
|
||||
//We use dynamic_cast<> in case of multiple inheritance.
|
||||
}
|
||||
|
||||
static void release_c_type (CType ptr)
|
||||
{
|
||||
GLIBMM_DEBUG_UNREFERENCE(0, ptr);
|
||||
g_object_unref(ptr);
|
||||
}
|
||||
};
|
||||
|
||||
//This confuse the SUN Forte compiler, so we ifdef it out:
|
||||
#ifdef GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS
|
||||
|
||||
/** Partial specialization for pointers to const GObject instances.
|
||||
* @ingroup ContHelpers
|
||||
* The C++ type is always a Glib::RefPtr<>.
|
||||
*/
|
||||
template <class T>
|
||||
struct TypeTraits< Glib::RefPtr<const T> >
|
||||
{
|
||||
typedef Glib::RefPtr<const T> CppType;
|
||||
typedef const typename T::BaseObjectType * CType;
|
||||
typedef typename T::BaseObjectType * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (const CppType& ptr) { return Glib::unwrap(ptr); }
|
||||
static CType to_c_type (CType ptr) { return ptr; }
|
||||
static CppType to_cpp_type (CType ptr)
|
||||
{
|
||||
//return Glib::wrap(ptr, true);
|
||||
|
||||
//We copy/paste the wrap() implementation here,
|
||||
//because we can not use a specific Glib::wrap(CType) overload here,
|
||||
//because that would be "dependent", and g++ 3.4 does not allow that.
|
||||
//The specific Glib::wrap() overloads don't do anything special anyway.
|
||||
GObject* cobj = (GObject*)(ptr);
|
||||
return Glib::RefPtr<const T>( dynamic_cast<const T*>(Glib::wrap_auto(cobj, true /* take_copy */)) );
|
||||
//We use dynamic_cast<> in case of multiple inheritance.
|
||||
}
|
||||
|
||||
static void release_c_type (CType ptr)
|
||||
{
|
||||
GLIBMM_DEBUG_UNREFERENCE(0, ptr);
|
||||
g_object_unref(const_cast<CTypeNonConst>(ptr));
|
||||
}
|
||||
};
|
||||
|
||||
#endif //GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS
|
||||
|
||||
#endif //GLIBMM_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION
|
||||
|
||||
/** Specialization for UTF-8 strings.
|
||||
* @ingroup ContHelpers
|
||||
* When converting from C++ to C, Glib::ustring will be accepted as well as
|
||||
* std::string and 'const char*'. However, when converting to the C++ side,
|
||||
* the output type cannot be 'const char*'.
|
||||
*/
|
||||
template <>
|
||||
struct TypeTraits<Glib::ustring>
|
||||
{
|
||||
typedef Glib::ustring CppType;
|
||||
typedef const char * CType;
|
||||
typedef char * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (const Glib::ustring& str) { return str.c_str(); }
|
||||
static CType to_c_type (const std::string& str) { return str.c_str(); }
|
||||
static CType to_c_type (CType str) { return str; }
|
||||
|
||||
static CppType to_cpp_type(CType str)
|
||||
{ return (str) ? Glib::ustring(str) : Glib::ustring(); }
|
||||
|
||||
static void release_c_type(CType str)
|
||||
{ g_free(const_cast<CTypeNonConst>(str)); }
|
||||
};
|
||||
|
||||
/** Specialization for std::string.
|
||||
* @ingroup ContHelpers
|
||||
* When converting from C++ to C, std::string will be accepted as well as
|
||||
* 'const char*'. However, when converting to the C++ side, the output type
|
||||
* cannot be 'const char*'.
|
||||
*/
|
||||
template <>
|
||||
struct TypeTraits<std::string>
|
||||
{
|
||||
typedef std::string CppType;
|
||||
typedef const char * CType;
|
||||
typedef char * CTypeNonConst;
|
||||
|
||||
static CType to_c_type (const std::string& str) { return str.c_str(); }
|
||||
static CType to_c_type (const Glib::ustring& str) { return str.c_str(); }
|
||||
static CType to_c_type (CType str) { return str; }
|
||||
|
||||
static CppType to_cpp_type(CType str)
|
||||
{ return (str) ? std::string(str) : std::string(); }
|
||||
|
||||
static void release_c_type(CType str)
|
||||
{ g_free(const_cast<CTypeNonConst>(str)); }
|
||||
};
|
||||
|
||||
/** Specialization for bool
|
||||
* @ingroup ContHelpers
|
||||
*/
|
||||
template <>
|
||||
struct TypeTraits<bool>
|
||||
{
|
||||
typedef bool CppType;
|
||||
typedef gboolean* CType;
|
||||
typedef gboolean* CTypeNonConst;
|
||||
|
||||
static CType to_c_type (CppType val) { return (int*)GINT_TO_POINTER(val); }
|
||||
static CType to_c_type (CType ptr) { return ptr; }
|
||||
|
||||
static CppType to_cpp_type(CType ptr)
|
||||
{
|
||||
if(ptr)
|
||||
{
|
||||
//We use this for gboolean too, because it is actually an int.
|
||||
return GPOINTER_TO_INT(ptr);
|
||||
}
|
||||
else
|
||||
return CppType();
|
||||
}
|
||||
|
||||
static void release_c_type(CType /* ptr */)
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
#ifndef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||
|
||||
/* The STL containers in Sun's libCstd don't support templated sequence
|
||||
* constructors, for "backward compatibility" reasons. This helper function
|
||||
* is used in the ContainerHandle -> STL-container conversion workarounds.
|
||||
*/
|
||||
template <class Cont, class In>
|
||||
void fill_container(Cont& container, In pbegin, In pend)
|
||||
{
|
||||
for(; pbegin != pend; ++pbegin)
|
||||
container.push_back(*pbegin);
|
||||
}
|
||||
|
||||
#endif /* GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS */
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
} // namespace Container_Helpers
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_CONTAINERHANDLE_SHARED_H */
|
||||
|
33
libs/glibmm2/glib/glibmm/containers.cc
Normal file
33
libs/glibmm2/glib/glibmm/containers.cc
Normal file
|
@ -0,0 +1,33 @@
|
|||
// -*- c++ -*-
|
||||
|
||||
/* $Id: containers.cc,v 1.1.1.1 2003/01/07 16:58:44 murrayc Exp $ */
|
||||
|
||||
/* containers.h
|
||||
*
|
||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/containers.h>
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
gpointer glibmm_null_pointer=0;
|
||||
|
||||
|
||||
} //namespace Glib
|
||||
|
372
libs/glibmm2/glib/glibmm/containers.h
Normal file
372
libs/glibmm2/glib/glibmm/containers.h
Normal file
|
@ -0,0 +1,372 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_CONTAINERS_H
|
||||
#define _GLIBMM_CONTAINERS_H
|
||||
|
||||
/* $Id: containers.h,v 1.7 2005/11/23 07:22:43 murrayc Exp $ */
|
||||
|
||||
/* containers.h
|
||||
*
|
||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/glist.h>
|
||||
#include <glib/gslist.h>
|
||||
#include <glibmm/sarray.h> /* for backward compatibility */
|
||||
|
||||
#include <iterator>
|
||||
#include <glibmmconfig.h>
|
||||
|
||||
GLIBMM_USING_STD(bidirectional_iterator_tag)
|
||||
GLIBMM_USING_STD(forward_iterator_tag)
|
||||
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
template <class T> class List_Iterator;
|
||||
template <class T> class List_ConstIterator;
|
||||
template <class T> class List_ReverseIterator;
|
||||
|
||||
// Most of these methods in the non-template classes needs to be moved
|
||||
// to implementation.
|
||||
|
||||
//Daniel Elstner has ideas about generating these per-widget with m4. murrayc.
|
||||
|
||||
|
||||
extern GLIBMM_API gpointer glibmm_null_pointer;
|
||||
|
||||
template <class T>
|
||||
class List_Iterator_Base
|
||||
{
|
||||
public:
|
||||
typedef T value_type;
|
||||
typedef T* pointer;
|
||||
typedef T& reference;
|
||||
} ;
|
||||
|
||||
///For instance, List_Iterator< Gtk::Widget >
|
||||
template <class T>
|
||||
class List_Iterator : public List_Iterator_Base<T>
|
||||
{
|
||||
public:
|
||||
typedef std::bidirectional_iterator_tag iterator_category;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
|
||||
typedef typename List_Iterator_Base<T>::pointer pointer;
|
||||
typedef typename List_Iterator_Base<T>::reference reference;
|
||||
|
||||
GList* const* head_;
|
||||
GList* node_;
|
||||
|
||||
typedef List_Iterator<T> Self;
|
||||
|
||||
List_Iterator(GList* const& head, GList* node)
|
||||
: head_(&head), node_(node)
|
||||
{}
|
||||
|
||||
List_Iterator()
|
||||
: head_(0), node_(0)
|
||||
{}
|
||||
|
||||
List_Iterator(const Self& src)
|
||||
: head_(src.head_), node_(src.node_)
|
||||
{}
|
||||
|
||||
bool operator==(const Self& src) const { return node_ == src.node_; }
|
||||
bool operator!=(const Self& src) const { return node_ != src.node_; }
|
||||
|
||||
Self& operator++()
|
||||
{
|
||||
if (!node_)
|
||||
node_ = g_list_first(*head_);
|
||||
else
|
||||
node_ = (GList*)g_list_next(node_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Self operator++(int)
|
||||
{
|
||||
Self tmp = *this;
|
||||
++*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
Self& operator--()
|
||||
{
|
||||
if (!node_)
|
||||
node_ = g_list_last(*head_);
|
||||
else
|
||||
node_ = (GList*)g_list_previous(node_);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Self operator--(int)
|
||||
{
|
||||
Self tmp = *this;
|
||||
--*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
reference operator*() const
|
||||
{
|
||||
return *(pointer)( node_ ? node_->data : glibmm_null_pointer );
|
||||
}
|
||||
|
||||
pointer operator -> () const { return &operator*(); }
|
||||
};
|
||||
|
||||
///For instance, SList_Iterator< Gtk::Widget >
|
||||
template <class T>
|
||||
class SList_Iterator : public List_Iterator_Base<T>
|
||||
{
|
||||
public:
|
||||
typedef std::forward_iterator_tag iterator_category;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
|
||||
typedef typename List_Iterator_Base<T>::pointer pointer;
|
||||
typedef typename List_Iterator_Base<T>::reference reference;
|
||||
|
||||
GSList* node_;
|
||||
typedef SList_Iterator<T> Self;
|
||||
|
||||
SList_Iterator(GSList* node)
|
||||
: node_(node)
|
||||
{}
|
||||
|
||||
SList_Iterator()
|
||||
: node_(0)
|
||||
{}
|
||||
|
||||
SList_Iterator(const Self& src)
|
||||
: node_(src.node_)
|
||||
{}
|
||||
|
||||
bool operator==(const Self& src) const { return node_ == src.node_; }
|
||||
bool operator!=(const Self& src) const { return node_ != src.node_; }
|
||||
|
||||
Self& operator++()
|
||||
{
|
||||
node_ = g_slist_next(node_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Self operator++(int)
|
||||
{
|
||||
Self tmp = *this;
|
||||
++*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
reference operator*() const
|
||||
{
|
||||
//g++ complains that this statement has no effect: g_assert(node_);
|
||||
return reinterpret_cast<T&>( node_ ? node_->data : glibmm_null_pointer );
|
||||
}
|
||||
|
||||
pointer operator -> () const { return &operator*(); }
|
||||
};
|
||||
|
||||
|
||||
// This iterator variation returns T_IFace (wrapped from T_Impl)
|
||||
// For instance, List_Cpp_Iterator<GtkWidget, Gtk::Widget> is a little like std::list<Gtk::Widget>::iterator
|
||||
template<class T_Impl, class T_IFace>
|
||||
class List_Cpp_Iterator : public List_Iterator_Base<T_IFace>
|
||||
{
|
||||
public:
|
||||
typedef std::bidirectional_iterator_tag iterator_category;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
|
||||
typedef typename List_Iterator_Base<T_IFace>::pointer pointer;
|
||||
typedef typename List_Iterator_Base<T_IFace>::reference reference;
|
||||
|
||||
typedef List_Cpp_Iterator<T_Impl, T_IFace> Self;
|
||||
|
||||
GList** head_;
|
||||
GList* node_;
|
||||
|
||||
bool operator==(const Self& src) const { return node_ == src.node_; }
|
||||
bool operator!=(const Self& src) const { return node_ != src.node_; }
|
||||
|
||||
List_Cpp_Iterator(GList*& head, GList* node )
|
||||
: head_(&head), node_(node )
|
||||
{}
|
||||
|
||||
List_Cpp_Iterator()
|
||||
: head_(0), node_(0)
|
||||
{}
|
||||
|
||||
List_Cpp_Iterator(const Self& src)
|
||||
: head_(src.head_), node_(src.node_)
|
||||
{}
|
||||
|
||||
reference operator*() const
|
||||
{
|
||||
if (node_ && node_->data)
|
||||
{
|
||||
//We copy/paste the widget wrap() implementation here,
|
||||
//because we can not use a specific Glib::wrap(T_Impl) overload here,
|
||||
//because that would be "dependent", and g++ 3.4 does not allow that.
|
||||
//The specific Glib::wrap() overloads don't do anything special anyway.
|
||||
GObject* cobj = static_cast<GObject*>( (*node_).data );
|
||||
|
||||
#ifdef GLIBMM_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION
|
||||
return *(dynamic_cast<pointer>(Glib::wrap_auto(cobj, false /* take_copy */)));
|
||||
#else
|
||||
//We really do need to use dynamic_cast<>, so I expect problems if this code is used. murrayc.
|
||||
return *(static_cast<pointer>(Glib::wrap_auto(cobj, false /* take_copy */)));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
return *(pointer)glibmm_null_pointer;
|
||||
}
|
||||
|
||||
pointer operator->() const { return &operator*(); }
|
||||
|
||||
Self& operator++()
|
||||
{
|
||||
if (!node_)
|
||||
node_ = g_list_first(*head_);
|
||||
else
|
||||
node_ = (GList *)g_list_next(node_);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Self operator++(int)
|
||||
{
|
||||
Self tmp = *this;
|
||||
++*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
Self& operator--()
|
||||
{
|
||||
if (!node_)
|
||||
node_ = g_list_last(*head_);
|
||||
else
|
||||
node_ = (GList *)g_list_previous(node_);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Self operator--(int)
|
||||
{
|
||||
Self tmp = *this;
|
||||
--*this;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
template <class T_Base>
|
||||
class List_ReverseIterator: private T_Base
|
||||
{
|
||||
public:
|
||||
typedef typename T_Base::iterator_category iterator_category;
|
||||
typedef typename T_Base::size_type size_type;
|
||||
typedef typename T_Base::difference_type difference_type;
|
||||
|
||||
typedef typename T_Base::value_type value_type;
|
||||
typedef typename T_Base::pointer pointer;
|
||||
typedef typename T_Base::reference reference;
|
||||
|
||||
typedef List_ReverseIterator<T_Base> Self;
|
||||
|
||||
bool operator==(const Self& src) const { return T_Base::operator==(src); }
|
||||
bool operator!=(const Self& src) const { return T_Base::operator!=(src); }
|
||||
|
||||
List_ReverseIterator(GList* const& head, GList* node)
|
||||
: T_Base(head, node)
|
||||
{}
|
||||
|
||||
List_ReverseIterator()
|
||||
: T_Base()
|
||||
{}
|
||||
|
||||
List_ReverseIterator(const Self& src)
|
||||
: T_Base(src)
|
||||
{}
|
||||
|
||||
List_ReverseIterator(const T_Base& src)
|
||||
: T_Base(src)
|
||||
{ ++(*this); }
|
||||
|
||||
|
||||
Self& operator++() {T_Base::operator--(); return *this;}
|
||||
Self& operator--() {T_Base::operator++(); return *this;}
|
||||
Self operator++(int) {Self src = *this; T_Base::operator--(); return src;}
|
||||
Self operator--(int) {Self src = *this; T_Base::operator++(); return src;}
|
||||
|
||||
reference operator*() const { return T_Base::operator*(); }
|
||||
pointer operator->() const { return T_Base::operator->(); }
|
||||
};
|
||||
|
||||
template <class T_Base>
|
||||
class List_ConstIterator: public T_Base
|
||||
{
|
||||
public:
|
||||
typedef typename T_Base::iterator_category iterator_category;
|
||||
typedef typename T_Base::size_type size_type;
|
||||
typedef typename T_Base::difference_type difference_type;
|
||||
|
||||
typedef const typename T_Base::value_type value_type;
|
||||
typedef const typename T_Base::pointer pointer;
|
||||
typedef const typename T_Base::reference reference;
|
||||
|
||||
typedef List_ConstIterator<T_Base> Self;
|
||||
|
||||
bool operator==(const Self& src) const { return T_Base::operator==(src); }
|
||||
bool operator!=(const Self& src) const { return T_Base::operator!=(src); }
|
||||
|
||||
List_ConstIterator(GList* const& head, GList* node)
|
||||
: T_Base(head, node)
|
||||
{}
|
||||
|
||||
List_ConstIterator()
|
||||
: T_Base()
|
||||
{}
|
||||
|
||||
List_ConstIterator(const Self& src)
|
||||
: T_Base(src)
|
||||
{}
|
||||
|
||||
List_ConstIterator(const T_Base& src)
|
||||
: T_Base(src)
|
||||
{}
|
||||
|
||||
Self& operator++() {T_Base::operator++(); return *this;}
|
||||
Self& operator--() {T_Base::operator--(); return *this;}
|
||||
Self operator++(int) {Self src = *this; T_Base::operator++(); return src;}
|
||||
Self operator--(int) {Self src = *this; T_Base::operator--(); return src;}
|
||||
|
||||
reference operator*() const { return T_Base::operator*(); }
|
||||
pointer operator->() const { return T_Base::operator->(); }
|
||||
};
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
#endif /* _GLIBMM_CONTAINERS_H */
|
||||
|
436
libs/glibmm2/glib/glibmm/convert.cc
Normal file
436
libs/glibmm2/glib/glibmm/convert.cc
Normal file
|
@ -0,0 +1,436 @@
|
|||
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||
|
||||
|
||||
#include <glibmm/convert.h>
|
||||
#include <glibmm/private/convert_p.h>
|
||||
|
||||
// -*- c++ -*-
|
||||
/* $Id: convert.ccg,v 1.4 2006/06/05 17:32:14 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/gconvert.h>
|
||||
#include <glib/gmessages.h>
|
||||
#include <glib/gunicode.h>
|
||||
#include <glibmm/utility.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
/**** Glib::IConv **********************************************************/
|
||||
|
||||
IConv::IConv(const std::string& to_codeset, const std::string& from_codeset)
|
||||
:
|
||||
gobject_ (g_iconv_open(to_codeset.c_str(), from_codeset.c_str()))
|
||||
{
|
||||
if(gobject_ == reinterpret_cast<GIConv>(-1))
|
||||
{
|
||||
GError* gerror = 0;
|
||||
|
||||
// Abuse g_convert() to create a GError object. This may seem a weird
|
||||
// thing to do, but it gives us consistently translated error messages
|
||||
// at no further cost.
|
||||
g_convert("", 0, to_codeset.c_str(), from_codeset.c_str(), 0, 0, &gerror);
|
||||
|
||||
// If this should ever fail we're fucked.
|
||||
g_assert(gerror != 0);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
}
|
||||
|
||||
IConv::IConv(GIConv gobject)
|
||||
:
|
||||
gobject_ (gobject)
|
||||
{}
|
||||
|
||||
IConv::~IConv()
|
||||
{
|
||||
g_iconv_close(gobject_);
|
||||
}
|
||||
|
||||
size_t IConv::iconv(char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left)
|
||||
{
|
||||
return g_iconv(gobject_, inbuf, inbytes_left, outbuf, outbytes_left);
|
||||
}
|
||||
|
||||
void IConv::reset()
|
||||
{
|
||||
// Apparently iconv() on Solaris <= 7 segfaults if you pass in
|
||||
// NULL for anything but inbuf; work around that. (NULL outbuf
|
||||
// or NULL *outbuf is allowed by Unix98.)
|
||||
|
||||
char* outbuf = 0;
|
||||
gsize inbytes_left = 0;
|
||||
gsize outbytes_left = 0;
|
||||
|
||||
g_iconv(gobject_, 0, &inbytes_left, &outbuf, &outbytes_left);
|
||||
}
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string IConv::convert(const std::string& str)
|
||||
#else
|
||||
std::string IConv::convert(const std::string& str, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_convert_with_iconv(
|
||||
str.data(), str.size(), gobject_, 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
/**** charset conversion functions *****************************************/
|
||||
|
||||
bool get_charset()
|
||||
{
|
||||
return g_get_charset(0);
|
||||
}
|
||||
|
||||
bool get_charset(std::string& charset)
|
||||
{
|
||||
const char* charset_cstr = 0;
|
||||
const bool is_utf8 = g_get_charset(&charset_cstr);
|
||||
|
||||
charset = charset_cstr;
|
||||
return is_utf8;
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset)
|
||||
#else
|
||||
std::string convert(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_convert(
|
||||
str.data(), str.size(), to_codeset.c_str(), from_codeset.c_str(),
|
||||
0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset)
|
||||
#else
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_convert_with_fallback(
|
||||
str.data(), str.size(), to_codeset.c_str(), from_codeset.c_str(), 0,
|
||||
0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset,
|
||||
const Glib::ustring& fallback)
|
||||
#else
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset,
|
||||
const Glib::ustring& fallback, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_convert_with_fallback(
|
||||
str.data(), str.size(), to_codeset.c_str(), from_codeset.c_str(),
|
||||
const_cast<char*>(fallback.c_str()), 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring locale_to_utf8(const std::string& opsys_string)
|
||||
#else
|
||||
Glib::ustring locale_to_utf8(const std::string& opsys_string, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_locale_to_utf8(
|
||||
opsys_string.data(), opsys_string.size(), 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
const ScopedPtr<char> scoped_buf (buf);
|
||||
return Glib::ustring(scoped_buf.get(), scoped_buf.get() + bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string locale_from_utf8(const Glib::ustring& utf8_string)
|
||||
#else
|
||||
std::string locale_from_utf8(const Glib::ustring& utf8_string, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_locale_from_utf8(
|
||||
utf8_string.data(), utf8_string.bytes(), 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_utf8(const std::string& opsys_string)
|
||||
#else
|
||||
Glib::ustring filename_to_utf8(const std::string& opsys_string, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_filename_to_utf8(
|
||||
opsys_string.data(), opsys_string.size(), 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
const ScopedPtr<char> scoped_buf (buf);
|
||||
return Glib::ustring(scoped_buf.get(), scoped_buf.get() + bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_utf8(const Glib::ustring& utf8_string)
|
||||
#else
|
||||
std::string filename_from_utf8(const Glib::ustring& utf8_string, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
gsize bytes_written = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_filename_from_utf8(
|
||||
utf8_string.data(), utf8_string.bytes(), 0, &bytes_written, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get(), bytes_written);
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_uri(const Glib::ustring& uri, Glib::ustring& hostname)
|
||||
#else
|
||||
std::string filename_from_uri(const Glib::ustring& uri, Glib::ustring& hostname, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
char* hostname_buf = 0;
|
||||
GError* gerror = 0;
|
||||
|
||||
char *const buf = g_filename_from_uri(uri.c_str(), &hostname_buf, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
// Let's take ownership at this point.
|
||||
const ScopedPtr<char> scoped_buf (buf);
|
||||
|
||||
if(hostname_buf)
|
||||
hostname = ScopedPtr<char>(hostname_buf).get();
|
||||
else
|
||||
hostname.erase();
|
||||
|
||||
return std::string(scoped_buf.get());
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_uri(const Glib::ustring& uri)
|
||||
#else
|
||||
std::string filename_from_uri(const Glib::ustring& uri, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
GError* gerror = 0;
|
||||
char *const buf = g_filename_from_uri(uri.c_str(), 0, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return std::string(ScopedPtr<char>(buf).get());
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_uri(const std::string& filename, const Glib::ustring& hostname)
|
||||
#else
|
||||
Glib::ustring filename_to_uri(const std::string& filename, const Glib::ustring& hostname, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
GError* gerror = 0;
|
||||
char *const buf = g_filename_to_uri(filename.c_str(), hostname.c_str(), &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return Glib::ustring(ScopedPtr<char>(buf).get());
|
||||
}
|
||||
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_uri(const std::string& filename)
|
||||
#else
|
||||
Glib::ustring filename_to_uri(const std::string& filename, std::auto_ptr<Glib::Error>& error)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
GError* gerror = 0;
|
||||
char *const buf = g_filename_to_uri(filename.c_str(), 0, &gerror);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
if(gerror) ::Glib::Error::throw_exception(gerror);
|
||||
#else
|
||||
if(gerror) error = ::Glib::Error::throw_exception(gerror);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
return Glib::ustring(ScopedPtr<char>(buf).get());
|
||||
}
|
||||
|
||||
Glib::ustring filename_display_basename(const std::string& filename)
|
||||
{
|
||||
char *const buf = g_filename_display_basename(filename.c_str());
|
||||
|
||||
return Glib::ustring(ScopedPtr<char>(buf).get());
|
||||
}
|
||||
|
||||
|
||||
Glib::ustring filename_display_name(const std::string& filename)
|
||||
{
|
||||
char *const buf = g_filename_display_name(filename.c_str());
|
||||
|
||||
return Glib::ustring(ScopedPtr<char>(buf).get());
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
Glib::ConvertError::ConvertError(Glib::ConvertError::Code error_code, const Glib::ustring& error_message)
|
||||
:
|
||||
Glib::Error (G_CONVERT_ERROR, error_code, error_message)
|
||||
{}
|
||||
|
||||
Glib::ConvertError::ConvertError(GError* gobject)
|
||||
:
|
||||
Glib::Error (gobject)
|
||||
{}
|
||||
|
||||
Glib::ConvertError::Code Glib::ConvertError::code() const
|
||||
{
|
||||
return static_cast<Code>(Glib::Error::code());
|
||||
}
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
void Glib::ConvertError::throw_func(GError* gobject)
|
||||
{
|
||||
throw Glib::ConvertError(gobject);
|
||||
}
|
||||
#else
|
||||
//When not using exceptions, we just pass the Exception object around without throwing it:
|
||||
std::auto_ptr<Glib::Error> Glib::ConvertError::throw_func(GError* gobject)
|
||||
{
|
||||
return std::auto_ptr<Glib::Error>(new Glib::ConvertError(gobject));
|
||||
}
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
|
361
libs/glibmm2/glib/glibmm/convert.h
Normal file
361
libs/glibmm2/glib/glibmm/convert.h
Normal file
|
@ -0,0 +1,361 @@
|
|||
// -*- c++ -*-
|
||||
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||
#ifndef _GLIBMM_CONVERT_H
|
||||
#define _GLIBMM_CONVERT_H
|
||||
|
||||
|
||||
/* $Id: convert.hg,v 1.5 2006/05/12 08:08:44 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#include <glib/gtypes.h> /* for gsize */
|
||||
|
||||
#include <glibmm/error.h>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
extern "C" { typedef struct _GIConv* GIConv; }
|
||||
#endif
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
/** @defgroup CharsetConv Character Set Conversion
|
||||
* Utility functions for converting strings between different character sets.
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** Exception class for charset conversion errors.
|
||||
* Glib::convert() and friends throw a ConvertError exception if the charset
|
||||
* conversion failed for some reason. When writing non-trivial applications
|
||||
* you should always catch those errors, and then try to recover, or tell the
|
||||
* user the input was invalid.
|
||||
*/
|
||||
class ConvertError : public Glib::Error
|
||||
{
|
||||
public:
|
||||
enum Code
|
||||
{
|
||||
NO_CONVERSION,
|
||||
ILLEGAL_SEQUENCE,
|
||||
FAILED,
|
||||
PARTIAL_INPUT,
|
||||
BAD_URI,
|
||||
NOT_ABSOLUTE_PATH
|
||||
};
|
||||
|
||||
ConvertError(Code error_code, const Glib::ustring& error_message);
|
||||
explicit ConvertError(GError* gobject);
|
||||
Code code() const;
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
private:
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
static void throw_func(GError* gobject);
|
||||
#else
|
||||
//When not using exceptions, we just pass the Exception object around without throwing it:
|
||||
static std::auto_ptr<Glib::Error> throw_func(GError* gobject);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
friend void wrap_init(); // uses throw_func()
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
/** Thin %iconv() wrapper.
|
||||
* glibmm provides Glib::convert() and Glib::locale_to_utf8() which
|
||||
* are likely more convenient than the raw iconv wrappers. However,
|
||||
* creating an IConv object once and using the convert() method could
|
||||
* be useful when converting multiple times between the same charsets.
|
||||
*/
|
||||
class IConv
|
||||
{
|
||||
public:
|
||||
/** Open new conversion descriptor.
|
||||
* @param to_codeset Destination codeset.
|
||||
* @param from_codeset %Source codeset.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
IConv(const std::string& to_codeset, const std::string& from_codeset);
|
||||
|
||||
explicit IConv(GIConv gobject);
|
||||
|
||||
/** Close conversion descriptor.
|
||||
*/
|
||||
~IConv();
|
||||
|
||||
/** Same as the standard UNIX routine %iconv(), but may be implemented
|
||||
* via libiconv on UNIX flavors that lack a native implementation. glibmm
|
||||
* provides Glib::convert() and Glib::locale_to_utf8() which are likely
|
||||
* more convenient than the raw iconv wrappers.
|
||||
* @param inbuf Bytes to convert.
|
||||
* @param inbytes_left In/out parameter, bytes remaining to convert in @a inbuf.
|
||||
* @param outbuf Converted output bytes.
|
||||
* @param outbytes_left In/out parameter, bytes available to fill in @a outbuf.
|
||||
* @return Count of non-reversible conversions, or <tt>static_cast<size_t>(-1)</tt> on error.
|
||||
*/
|
||||
size_t iconv(char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left);
|
||||
|
||||
/** Reset conversion descriptor to initial state.
|
||||
* Same as <tt>iconv(0, 0, 0, 0)</tt>, but implemented slightly differently
|
||||
* in order to work on Sun Solaris <= 7. It's also more obvious so you're
|
||||
* encouraged to use it.
|
||||
*/
|
||||
void reset();
|
||||
|
||||
/** Convert from one encoding to another.
|
||||
* @param str The string to convert.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert(const std::string& str);
|
||||
#else
|
||||
std::string convert(const std::string& str, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
GIConv gobj() { return gobject_; }
|
||||
|
||||
private:
|
||||
GIConv gobject_;
|
||||
|
||||
// noncopyable
|
||||
IConv(const IConv&);
|
||||
IConv& operator=(const IConv&);
|
||||
};
|
||||
|
||||
|
||||
/** Get the charset used by the current locale.
|
||||
* @return Whether the current locale uses the UTF-8 charset.
|
||||
*/
|
||||
bool get_charset();
|
||||
|
||||
/** Get the charset used by the current locale.
|
||||
* @param charset Will be filled with the charset's name.
|
||||
* @return Whether the current locale uses the UTF-8 charset.
|
||||
*/
|
||||
bool get_charset(std::string& charset);
|
||||
|
||||
/** Convert from one encoding to another.
|
||||
* @param str The string to convert.
|
||||
* @param to_codeset Name of the target charset.
|
||||
* @param from_codeset Name of the source charset.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset);
|
||||
#else
|
||||
std::string convert(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts a string from one character set to another, possibly including
|
||||
* fallback sequences for characters not representable in the output.
|
||||
* Characters not in the target encoding will be represented as Unicode
|
||||
* escapes <tt>\\x{XXXX}</tt> or <tt>\\x{XXXXXX}</tt>.
|
||||
* @param str The string to convert.
|
||||
* @param to_codeset Name of the target charset.
|
||||
* @param from_codeset Name of the source charset.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset);
|
||||
#else
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts a string from one character set to another, possibly including
|
||||
* fallback sequences for characters not representable in the output.
|
||||
* @note It is not guaranteed that the specification for the fallback sequences
|
||||
* in @a fallback will be honored. Some systems may do a approximate conversion
|
||||
* from @a from_codeset to @a to_codeset in their iconv() functions, in which
|
||||
* case Glib will simply return that approximate conversion.
|
||||
*
|
||||
* @param str The string to convert.
|
||||
* @param to_codeset Name of the target charset.
|
||||
* @param from_codeset Name of the source charset.
|
||||
* @param fallback UTF-8 string to be used in place of characters which aren't
|
||||
* available in the target encoding. All characters in the fallback string
|
||||
* @em must be available in the target encoding.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset,
|
||||
const Glib::ustring& fallback);
|
||||
#else
|
||||
std::string convert_with_fallback(const std::string& str,
|
||||
const std::string& to_codeset,
|
||||
const std::string& from_codeset,
|
||||
const Glib::ustring& fallback, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Convert from the current locale's encoding to UTF-8.
|
||||
* Convenience wrapper around Glib::convert().
|
||||
* @param opsys_string The string to convert. Must be encoded in the charset
|
||||
* used by the operating system's current locale.
|
||||
* @return The input string converted to UTF-8 encoding.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring locale_to_utf8(const std::string& opsys_string);
|
||||
#else
|
||||
Glib::ustring locale_to_utf8(const std::string& opsys_string, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Convert from UTF-8 to the current locale's encoding.
|
||||
* Convenience wrapper around Glib::convert().
|
||||
* @param utf8_string The UTF-8 string to convert.
|
||||
* @return The input string converted to the charset used by the operating
|
||||
* system's current locale.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string locale_from_utf8(const Glib::ustring& utf8_string);
|
||||
#else
|
||||
std::string locale_from_utf8(const Glib::ustring& utf8_string, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts a string which is in the encoding used for filenames into
|
||||
* a UTF-8 string.
|
||||
* @param opsys_string A string in the encoding for filenames.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_utf8(const std::string& opsys_string);
|
||||
#else
|
||||
Glib::ustring filename_to_utf8(const std::string& opsys_string, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts a string from UTF-8 to the encoding used for filenames.
|
||||
* @param utf8_string A UTF-8 encoded string.
|
||||
* @return The converted string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_utf8(const Glib::ustring& utf8_string);
|
||||
#else
|
||||
std::string filename_from_utf8(const Glib::ustring& utf8_string, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts an escaped UTF-8 encoded URI to a local filename
|
||||
* in the encoding used for filenames.
|
||||
* @param uri A string in the encoding for filenames.
|
||||
* @param hostname Location to store hostname for the URI. If there is no
|
||||
* hostname in the URI, <tt>""</tt> will be stored in this location.
|
||||
* @return The resulting filename.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_uri(const Glib::ustring& uri, Glib::ustring& hostname);
|
||||
#else
|
||||
std::string filename_from_uri(const Glib::ustring& uri, Glib::ustring& hostname, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts an escaped UTF-8 encoded URI to a local filename in the encoding
|
||||
* used for filenames.
|
||||
* @param uri A string in the encoding for filenames.
|
||||
* @return The resulting filename.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
std::string filename_from_uri(const Glib::ustring& uri);
|
||||
#else
|
||||
std::string filename_from_uri(const Glib::ustring& uri, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts an absolute filename to an escaped UTF-8 encoded URI.
|
||||
* @param filename An absolute filename specified in the encoding used
|
||||
* for filenames by the operating system.
|
||||
* @param hostname A UTF-8 encoded hostname.
|
||||
* @return The resulting URI.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_uri(const std::string& filename, const Glib::ustring& hostname);
|
||||
#else
|
||||
Glib::ustring filename_to_uri(const std::string& filename, const Glib::ustring& hostname, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Converts an absolute filename to an escaped UTF-8 encoded URI.
|
||||
* @param filename An absolute filename specified in the encoding used
|
||||
* for filenames by the operating system.
|
||||
* @return The resulting URI.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
Glib::ustring filename_to_uri(const std::string& filename);
|
||||
#else
|
||||
Glib::ustring filename_to_uri(const std::string& filename, std::auto_ptr<Glib::Error>& error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
/** Returns the display basename for the particular filename, guaranteed
|
||||
* to be valid UTF-8. The display name might not be identical to the filename,
|
||||
* for instance there might be problems converting it to UTF-8, and some files
|
||||
* can be translated in the display
|
||||
*
|
||||
* You must pass the whole absolute pathname to this function so that
|
||||
* translation of well known locations can be done.
|
||||
*
|
||||
* This function is preferred over filename_display_name() if you know the
|
||||
* whole path, as it allows translation.
|
||||
*
|
||||
* @param filename An absolute pathname in the GLib file name encoding.
|
||||
* @result A string containing a rendition of the basename of the filename in valid UTF-8
|
||||
*/
|
||||
Glib::ustring filename_display_basename(const std::string& filename);
|
||||
|
||||
/** Converts a filename into a valid UTF-8 string. The
|
||||
* conversion is not necessarily reversible, so you
|
||||
* should keep the original around and use the return
|
||||
* value of this function only for display purposes.
|
||||
* Unlike g_filename_to_utf8(), the result is guaranteed
|
||||
* to be non-empty even if the filename actually isn't in the GLib
|
||||
* file name encoding.
|
||||
*
|
||||
* If you know the whole pathname of the file you should use
|
||||
* g_filename_display_basename(), since that allows location-based
|
||||
* translation of filenames.
|
||||
*
|
||||
* @param filename: a pathname hopefully in the GLib file name encoding
|
||||
* @result A string containing a rendition of the filename in valid UTF-8.
|
||||
*/
|
||||
Glib::ustring filename_display_name(const std::string& filename);
|
||||
|
||||
/** @} group CharsetConv */
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_CONVERT_H */
|
||||
|
381
libs/glibmm2/glib/glibmm/date.cc
Normal file
381
libs/glibmm2/glib/glibmm/date.cc
Normal file
|
@ -0,0 +1,381 @@
|
|||
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||
|
||||
|
||||
#include <glibmm/date.h>
|
||||
#include <glibmm/private/date_p.h>
|
||||
|
||||
// -*- c++ -*-
|
||||
/* $Id: date.ccg,v 1.7 2006/07/16 13:54:02 jjongsma Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/gmem.h>
|
||||
#include <glib/gmessages.h>
|
||||
|
||||
#include <ctime>
|
||||
#include <algorithm>
|
||||
|
||||
#include <glibmm/convert.h>
|
||||
#include <glibmm/utility.h>
|
||||
|
||||
#include <glibmmconfig.h>
|
||||
GLIBMM_USING_STD(max)
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
Date::Date()
|
||||
{
|
||||
g_date_clear(&gobject_, 1);
|
||||
}
|
||||
|
||||
Date::Date(Date::Day day, Date::Month month, Date::Year year)
|
||||
{
|
||||
g_date_clear(&gobject_, 1);
|
||||
g_date_set_dmy(&gobject_, day, (GDateMonth) month, year);
|
||||
}
|
||||
|
||||
Date::Date(guint32 julian_day)
|
||||
{
|
||||
g_date_clear(&gobject_, 1);
|
||||
g_date_set_julian(&gobject_, julian_day);
|
||||
}
|
||||
|
||||
Date::Date(const GDate& castitem)
|
||||
:
|
||||
gobject_ (castitem)
|
||||
{}
|
||||
|
||||
void Date::clear()
|
||||
{
|
||||
g_date_clear(&gobject_, 1);
|
||||
}
|
||||
|
||||
void Date::set_parse(const Glib::ustring& str)
|
||||
{
|
||||
g_date_set_parse(&gobject_, str.c_str());
|
||||
}
|
||||
|
||||
#ifndef GLIBMM_DISABLE_DEPRECATED
|
||||
|
||||
void Date::set_time(GTime time)
|
||||
{
|
||||
//This method, and the C function that it wraps, are deprecated.
|
||||
g_date_set_time(&gobject_, time);
|
||||
}
|
||||
#endif // GLIBMM_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
void Date::set_time(time_t timet)
|
||||
{
|
||||
g_date_set_time_t(&gobject_, timet);
|
||||
}
|
||||
|
||||
void Date::set_time_current()
|
||||
{
|
||||
//As suggested in the C documentation:
|
||||
g_date_set_time_t(&gobject_, time(NULL));
|
||||
}
|
||||
|
||||
void Date::set_time(const GTimeVal& timeval)
|
||||
{
|
||||
g_date_set_time_val(&gobject_, const_cast<GTimeVal*>(&timeval));
|
||||
}
|
||||
|
||||
void Date::set_month(Date::Month month)
|
||||
{
|
||||
g_date_set_month(&gobject_, (GDateMonth) month);
|
||||
}
|
||||
|
||||
void Date::set_day(Date::Day day)
|
||||
{
|
||||
g_date_set_day(&gobject_, day);
|
||||
}
|
||||
|
||||
void Date::set_year(Date::Year year)
|
||||
{
|
||||
g_date_set_year(&gobject_, year);
|
||||
}
|
||||
|
||||
void Date::set_dmy(Date::Day day, Date::Month month, Date::Year year)
|
||||
{
|
||||
g_date_set_dmy(&gobject_, day, (GDateMonth) month, year);
|
||||
}
|
||||
|
||||
void Date::set_julian(guint32 julian_day)
|
||||
{
|
||||
g_date_set_julian(&gobject_, julian_day);
|
||||
}
|
||||
|
||||
Date& Date::add_days(int n_days)
|
||||
{
|
||||
if(n_days >= 0)
|
||||
g_date_add_days(&gobject_, n_days);
|
||||
else
|
||||
g_date_subtract_days(&gobject_, -n_days);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::subtract_days(int n_days)
|
||||
{
|
||||
if(n_days >= 0)
|
||||
g_date_subtract_days(&gobject_, n_days);
|
||||
else
|
||||
g_date_add_days(&gobject_, -n_days);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::add_months(int n_months)
|
||||
{
|
||||
if(n_months >= 0)
|
||||
g_date_add_months(&gobject_, n_months);
|
||||
else
|
||||
g_date_subtract_months(&gobject_, -n_months);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::subtract_months(int n_months)
|
||||
{
|
||||
if(n_months >= 0)
|
||||
g_date_subtract_months(&gobject_, n_months);
|
||||
else
|
||||
g_date_add_months(&gobject_, -n_months);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::add_years(int n_years)
|
||||
{
|
||||
if(n_years >= 0)
|
||||
g_date_add_years(&gobject_, n_years);
|
||||
else
|
||||
g_date_subtract_years(&gobject_, -n_years);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::subtract_years(int n_years)
|
||||
{
|
||||
if(n_years >= 0)
|
||||
g_date_subtract_years(&gobject_, n_years);
|
||||
else
|
||||
g_date_add_years(&gobject_, -n_years);
|
||||
return *this;
|
||||
}
|
||||
|
||||
int Date::days_between(const Date& rhs) const
|
||||
{
|
||||
return g_date_days_between(&gobject_, &rhs.gobject_);
|
||||
}
|
||||
|
||||
int Date::compare(const Date& rhs) const
|
||||
{
|
||||
return g_date_compare(&gobject_, &rhs.gobject_);
|
||||
}
|
||||
|
||||
Date& Date::clamp(const Date& min_date, const Date& max_date)
|
||||
{
|
||||
g_date_clamp(&gobject_, &min_date.gobject_, &max_date.gobject_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::clamp_min(const Date& min_date)
|
||||
{
|
||||
g_date_clamp(&gobject_, &min_date.gobject_, 0 /* see the C docs */);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Date& Date::clamp_max(const Date& max_date)
|
||||
{
|
||||
g_date_clamp(&gobject_, 0 /* see the C docs */, &max_date.gobject_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Date::order(Date& other)
|
||||
{
|
||||
g_date_order(&gobject_, &other.gobject_);
|
||||
}
|
||||
|
||||
Date::Weekday Date::get_weekday() const
|
||||
{
|
||||
return (Date::Weekday) g_date_get_weekday(&gobject_);
|
||||
}
|
||||
|
||||
Date::Month Date::get_month() const
|
||||
{
|
||||
return (Date::Month) g_date_get_month(&gobject_);
|
||||
}
|
||||
|
||||
Date::Year Date::get_year() const
|
||||
{
|
||||
return g_date_get_year(&gobject_);
|
||||
}
|
||||
|
||||
Date::Day Date::get_day() const
|
||||
{
|
||||
return g_date_get_day(&gobject_);
|
||||
}
|
||||
|
||||
guint32 Date::get_julian() const
|
||||
{
|
||||
return g_date_get_julian(&gobject_);
|
||||
}
|
||||
|
||||
unsigned int Date::get_day_of_year() const
|
||||
{
|
||||
return g_date_get_day_of_year(&gobject_);
|
||||
}
|
||||
|
||||
unsigned int Date::get_monday_week_of_year() const
|
||||
{
|
||||
return g_date_get_monday_week_of_year(&gobject_);
|
||||
}
|
||||
|
||||
unsigned int Date::get_sunday_week_of_year() const
|
||||
{
|
||||
return g_date_get_sunday_week_of_year(&gobject_);
|
||||
}
|
||||
|
||||
bool Date::is_first_of_month() const
|
||||
{
|
||||
return g_date_is_first_of_month(&gobject_);
|
||||
}
|
||||
|
||||
bool Date::is_last_of_month() const
|
||||
{
|
||||
return g_date_is_last_of_month(&gobject_);
|
||||
}
|
||||
|
||||
//static
|
||||
guint8 Date::get_days_in_month(Date::Month month, Date::Year year)
|
||||
{
|
||||
return g_date_get_days_in_month((GDateMonth) month, year);
|
||||
}
|
||||
|
||||
//static
|
||||
guint8 Date::get_monday_weeks_in_year(Date::Year year)
|
||||
{
|
||||
return g_date_get_monday_weeks_in_year(year);
|
||||
}
|
||||
|
||||
//static
|
||||
guint8 Date::get_sunday_weeks_in_year(Date::Year year)
|
||||
{
|
||||
return g_date_get_sunday_weeks_in_year(year);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::is_leap_year(Date::Year year)
|
||||
{
|
||||
return g_date_is_leap_year(year);
|
||||
}
|
||||
|
||||
Glib::ustring Date::format_string(const Glib::ustring& format) const
|
||||
{
|
||||
struct tm tm_data;
|
||||
g_date_to_struct_tm(&gobject_, &tm_data);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
const std::string locale_format = locale_from_utf8(format);
|
||||
#else
|
||||
std::auto_ptr<Glib::Error> error; //TODO: Check it?
|
||||
const std::string locale_format = locale_from_utf8(format, error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
gsize bufsize = std::max<gsize>(2 * locale_format.size(), 128);
|
||||
|
||||
do
|
||||
{
|
||||
const ScopedPtr<char> buf (static_cast<char*>(g_malloc(bufsize)));
|
||||
|
||||
// Set the first byte to something other than '\0', to be able to
|
||||
// recognize whether strftime actually failed or just returned "".
|
||||
buf.get()[0] = '\1';
|
||||
const gsize len = strftime(buf.get(), bufsize, locale_format.c_str(), &tm_data);
|
||||
|
||||
if(len != 0 || buf.get()[0] == '\0')
|
||||
{
|
||||
g_assert(len < bufsize);
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
return locale_to_utf8(std::string(buf.get(), len));
|
||||
#else
|
||||
std::auto_ptr<Glib::Error> error; //TODO: Check it?
|
||||
return locale_to_utf8(std::string(buf.get(), len), error);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
}
|
||||
while((bufsize *= 2) <= 65536);
|
||||
|
||||
// This error is quite unlikely (unless strftime is buggy).
|
||||
g_warning("Glib::Date::format_string(): maximum size of strftime buffer exceeded, giving up");
|
||||
|
||||
return Glib::ustring();
|
||||
}
|
||||
|
||||
void Date::to_struct_tm(struct tm& dest) const
|
||||
{
|
||||
g_date_to_struct_tm(&gobject_, &dest);
|
||||
}
|
||||
|
||||
bool Date::valid() const
|
||||
{
|
||||
return g_date_valid(&gobject_);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_day(Date::Day day)
|
||||
{
|
||||
return g_date_valid_day(day);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_month(Date::Month month)
|
||||
{
|
||||
return g_date_valid_month((GDateMonth) month);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_year(Date::Year year)
|
||||
{
|
||||
return g_date_valid_year(year);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_weekday(Date::Weekday weekday)
|
||||
{
|
||||
return g_date_valid_weekday((GDateWeekday) weekday);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_julian(guint32 julian_day)
|
||||
{
|
||||
return g_date_valid_julian(julian_day);
|
||||
}
|
||||
|
||||
//static
|
||||
bool Date::valid_dmy(Date::Day day, Date::Month month, Date::Year year)
|
||||
{
|
||||
return g_date_valid_dmy(day, (GDateMonth) month, year);
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
} // anonymous namespace
|
||||
|
||||
|
454
libs/glibmm2/glib/glibmm/date.h
Normal file
454
libs/glibmm2/glib/glibmm/date.h
Normal file
|
@ -0,0 +1,454 @@
|
|||
// -*- c++ -*-
|
||||
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||
#ifndef _GLIBMM_DATE_H
|
||||
#define _GLIBMM_DATE_H
|
||||
|
||||
|
||||
/* $Id: date.hg,v 1.6 2005/11/29 15:53:27 murrayc Exp $ */
|
||||
|
||||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#undef G_DISABLE_DEPRECATED //So we can use deprecated functions in our deprecated methods.
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <glib/gdate.h>
|
||||
#include <glib/gtypes.h>
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
extern "C" { struct tm; }
|
||||
#endif
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
/** Julian calendar date.
|
||||
*/
|
||||
class Date
|
||||
{
|
||||
public:
|
||||
typedef guint8 Day;
|
||||
typedef guint16 Year;
|
||||
|
||||
/** @addtogroup glibmmEnums Enums and Flags */
|
||||
|
||||
/**
|
||||
* @ingroup glibmmEnums
|
||||
*/
|
||||
enum Month
|
||||
{
|
||||
BAD_MONTH,
|
||||
JANUARY,
|
||||
FEBRUARY,
|
||||
MARCH,
|
||||
APRIL,
|
||||
MAY,
|
||||
JUNE,
|
||||
JULY,
|
||||
AUGUST,
|
||||
SEPTEMBER,
|
||||
OCTOBER,
|
||||
NOVEMBER,
|
||||
DECEMBER
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup glibmmEnums
|
||||
*/
|
||||
enum Weekday
|
||||
{
|
||||
BAD_WEEKDAY,
|
||||
MONDAY,
|
||||
TUESDAY,
|
||||
WEDNESDAY,
|
||||
THURSDAY,
|
||||
FRIDAY,
|
||||
SATURDAY,
|
||||
SUNDAY
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup glibmmEnums
|
||||
*/
|
||||
enum DMY
|
||||
{
|
||||
DAY,
|
||||
MONTH,
|
||||
YEAR
|
||||
};
|
||||
|
||||
|
||||
static const Day BAD_DAY = 0;
|
||||
static const Year BAD_YEAR = 0;
|
||||
static const guint32 BAD_JULIAN = 0;
|
||||
|
||||
Date();
|
||||
Date(Day day, Month month, Year year);
|
||||
explicit Date(guint32 julian_day);
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
explicit Date(const GDate& castitem);
|
||||
#endif
|
||||
|
||||
void clear();
|
||||
/** Clear the date. The cleared dates will not represent an existing date, but will not contain garbage.
|
||||
* @param month Month to set.
|
||||
*/
|
||||
|
||||
/** Parses a user-inputted string str, and try to figure out what date it represents, taking the current locale into account. If the string is successfully parsed, the date will be valid after the call. Otherwise, it will be invalid.
|
||||
* This function is not appropriate for file formats and the like; it isn't very precise, and its exact behavior varies with the locale. It's intended to be a heuristic routine that guesses what the user means by a given string (and it does work pretty well in that capacity).
|
||||
* @param str String to parse.
|
||||
*/
|
||||
void set_parse (const Glib::ustring& str);
|
||||
|
||||
#ifndef GLIBMM_DISABLE_DEPRECATED
|
||||
|
||||
/** Sets the value of a date from a GTime (time_t) value.
|
||||
*
|
||||
* @param time GTime value to set.
|
||||
*
|
||||
* @deprecated Please use set_time(time_t) or set_time(const GTimeVal&).
|
||||
*/
|
||||
void set_time(GTime time);
|
||||
#endif // GLIBMM_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/** Sets the value of a date from a <type>time_t</type> value.
|
||||
*
|
||||
* @param timet time_t value to set
|
||||
*
|
||||
* @see set_time_current()
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
void set_time(time_t timet);
|
||||
|
||||
/** Sets the value of a date from a GTimeVal value. Note that the
|
||||
* tv_usec member is ignored, because Glib::Date can't make use of the
|
||||
* additional precision.
|
||||
*
|
||||
* @see set_time_current()
|
||||
*
|
||||
* @param timeval GTimeVal value to set
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
void set_time(const GTimeVal& timeval);
|
||||
|
||||
void set_time_current();
|
||||
|
||||
/** Sets the month of the year. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
||||
* @param month Month to set.
|
||||
*/
|
||||
void set_month(Month month);
|
||||
|
||||
/** Sets the day of the month. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
||||
* @param day Day to set.
|
||||
*/
|
||||
void set_day(Day day);
|
||||
|
||||
/** Sets the year. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
||||
* @param year Year to set.
|
||||
*/
|
||||
void set_year(Year year);
|
||||
|
||||
/** Sets the value of a day, month, and year.. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
||||
* @param day Day to set.
|
||||
* @param month Month to set.
|
||||
* @param year Year to set.
|
||||
*/
|
||||
void set_dmy(Day day, Month month, Year year);
|
||||
|
||||
/** Sets the value of a GDate from a Julian day number.
|
||||
* @param julian_day Julian day to set.
|
||||
*/
|
||||
void set_julian(guint32 julian_day);
|
||||
|
||||
//TODO: Why return Date& (which is always *this) from these methods?
|
||||
//Isn't it enough to also change the current instance?
|
||||
//Maybe we need a copy constructor too.
|
||||
//murrayc
|
||||
|
||||
/** Add a number of days to a Date.
|
||||
* @param n_days Days to add.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& add_days(int n_days);
|
||||
|
||||
/** Subtract n_days to a Date.
|
||||
* @param n_days Days to subtract.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& subtract_days(int n_days);
|
||||
|
||||
/** Add n_months to a Date.
|
||||
* @param n_months Months to add.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& add_months(int n_months);
|
||||
|
||||
/** Subtract n_months to a Date.
|
||||
* @param n_months Months to subtract.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& subtract_months(int n_months);
|
||||
|
||||
/** Add n_days to a Date.
|
||||
* @param n_years Years to add.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& add_years(int n_years);
|
||||
|
||||
/** Subtract n_years to a Date.
|
||||
* @param n_years Years to subtract.
|
||||
* @return Resulting Date
|
||||
*/
|
||||
Date& subtract_years(int n_years);
|
||||
|
||||
/** Calculate days between two dates.
|
||||
* @param rhs Date.
|
||||
* @return Numbers of days.
|
||||
*/
|
||||
int days_between(const Date& rhs) const;
|
||||
|
||||
/** Compare two dates.
|
||||
* @param rhs Date to compare.
|
||||
* @return Result of comparition.
|
||||
*/
|
||||
int compare(const Date& rhs) const;
|
||||
|
||||
/** If date is prior to min_date, sets date equal to min_date.
|
||||
* If date falls after max_date, sets date equal to max_date. All dates must be valid.
|
||||
* See also clamp_min() and clamp_max().
|
||||
* @param min_date Date minimum value.
|
||||
* @param max_date Date maximum value.
|
||||
* @return Date in interval.
|
||||
*/
|
||||
Date& clamp(const Date& min_date, const Date& max_date);
|
||||
|
||||
/** If date is prior to min_date, sets date equal to min_date.
|
||||
* See also clamp(), and clamp_max().
|
||||
* @param min_date Date minimum value.
|
||||
* @return Date in interval.
|
||||
*/
|
||||
Date& clamp_min(const Date& min_date);
|
||||
|
||||
/** If date falls after max_date, sets date equal to max_date.
|
||||
* See also clamp(), and clamp_min().
|
||||
* @param max_date Date maximum value.
|
||||
* @return Date in interval.
|
||||
*/
|
||||
Date& clamp_max(const Date& max_date);
|
||||
|
||||
/** Checks if date is less than or equal to other date, and swap the values if this is not the case.
|
||||
* @param other Date ro compare.
|
||||
* @return Date.
|
||||
*/
|
||||
void order(Date& other);
|
||||
|
||||
/** Returns the day of the week for a Date. The date must be valid.
|
||||
* @return Day of the week as a Date::Weekday.
|
||||
*/
|
||||
Weekday get_weekday() const;
|
||||
|
||||
/** Returns the month of the year. The date must be valid.
|
||||
* @return Month of the year as a Date::Month.
|
||||
*/
|
||||
Month get_month() const;
|
||||
|
||||
/** Returns the year of a Date. The date must be valid.
|
||||
* @return Year in which the date falls.
|
||||
*/
|
||||
Year get_year() const;
|
||||
|
||||
/** Returns the day of the month. The date must be valid.
|
||||
* @return Day of the month..
|
||||
*/
|
||||
Day get_day() const;
|
||||
|
||||
/** Returns the Julian day or "serial number" of the Date.
|
||||
* The Julian day is simply the number of days since January 1, Year 1;
|
||||
* i.e., January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2, etc.
|
||||
* The date must be valid.
|
||||
* @return Julian day.
|
||||
*/
|
||||
guint32 get_julian() const;
|
||||
|
||||
/** Returns the day of the year, where Jan 1 is the first day of the year.
|
||||
* The date must be valid.
|
||||
* @return Julian day.
|
||||
*/
|
||||
unsigned int get_day_of_year() const;
|
||||
|
||||
/** Returns the week of the year, where weeks are understood to start on Monday.
|
||||
* If the date is before the first Monday of the year, return 0.
|
||||
* The date must be valid.
|
||||
* @return Week of the year.
|
||||
*/
|
||||
unsigned int get_monday_week_of_year() const;
|
||||
|
||||
/** Returns the week of the year during which this date falls, if weeks are understood to being on Sunday.
|
||||
* Can return 0 if the day is before the first Sunday of the year.
|
||||
* The date must be valid.
|
||||
* @return Week of the year.
|
||||
*/
|
||||
unsigned int get_sunday_week_of_year() const;
|
||||
|
||||
/** Returns true if the date is on the first of a month.
|
||||
* The date must be valid.
|
||||
* @return true if the date is the first of the month.
|
||||
*/
|
||||
bool is_first_of_month() const;
|
||||
|
||||
/** Returns true if the date is the last day of the month.
|
||||
* The date must be valid.
|
||||
* @return true if the date is the last day of the month.
|
||||
*/
|
||||
bool is_last_of_month() const;
|
||||
|
||||
/** Returns the number of days in a month, taking leap years into account.
|
||||
* @param month Month.
|
||||
* @param year Year.
|
||||
* @return Number of days in month during the year.
|
||||
*/
|
||||
static guint8 get_days_in_month(Month month, Year year);
|
||||
|
||||
/** Returns the number of weeks in the year, where weeks are taken to start on Monday. Will be 52 or 53.
|
||||
* (Years always have 52 7-day periods, plus 1 or 2 extra days depending on whether it's a leap year. This function is basically telling you how many Mondays are in the year, i.e. there are 53 Mondays if one of the extra days happens to be a Monday.)
|
||||
* @param year Year to count weeks in.
|
||||
* @return Number of weeks.
|
||||
*/
|
||||
static guint8 get_monday_weeks_in_year(Year year);
|
||||
|
||||
/** Returns the number of weeks in the year, where weeks are taken to start on Sunday. Will be 52 or 53.
|
||||
* (Years always have 52 7-day periods, plus 1 or 2 extra days depending on whether it's a leap year. This function is basically telling you how many Sundays are in the year, i.e. there are 53 Sundays if one of the extra days happens to be a Sunday.)
|
||||
* @param year Year to count weeks in.
|
||||
* @return Number of weeks.
|
||||
*/
|
||||
static guint8 get_sunday_weeks_in_year(Year year);
|
||||
|
||||
/** Returns true if the year is a leap year.
|
||||
* @param year Year to check.
|
||||
* @return true if the year is a leap year.
|
||||
*/
|
||||
static bool is_leap_year(Year year);
|
||||
|
||||
/** Convert date to string.
|
||||
* @param format A format string as used by @c strftime(), in UTF-8
|
||||
* encoding. Only date formats are allowed, the result of time formats
|
||||
* is undefined.
|
||||
* @return The formatted date string.
|
||||
* @throw Glib::ConvertError
|
||||
*/
|
||||
Glib::ustring format_string(const Glib::ustring& format) const;
|
||||
|
||||
/** Fills in the date-related bits of a struct tm using the date value. Initializes the non-date parts with something sane but meaningless.
|
||||
* @param dest Struct tm to fill.
|
||||
*/
|
||||
void to_struct_tm(struct tm& dest) const;
|
||||
|
||||
/** Returns true if the Date represents an existing day.
|
||||
* @return true if the date is valid.
|
||||
*/
|
||||
bool valid() const;
|
||||
|
||||
/** Returns true if the day of the month is valid (a day is valid if it's between 1 and 31 inclusive).
|
||||
* @param day Day to check.
|
||||
* @return true if the day is valid.
|
||||
*/
|
||||
static bool valid_day(Day day);
|
||||
|
||||
/** Returns true if the month value is valid. The 12 Date::Month enumeration values are the only valid months.
|
||||
* @param month Month to check.
|
||||
* @return true if the month is valid.
|
||||
*/
|
||||
static bool valid_month(Month month);
|
||||
|
||||
|
||||
/** Returns true if the year is valid.
|
||||
* Any year greater than 0 is valid, though there is a 16-bit limit to what Date will understand.
|
||||
* @param year Year to check.
|
||||
* @return true if the year is valid.
|
||||
*/
|
||||
static bool valid_year(Year year);
|
||||
|
||||
/** Returns true if the weekday is valid.
|
||||
* The 7 Date::Weekday enumeration values are the only valid.
|
||||
* @param weekday Weekday to check.
|
||||
* @return true if the weekday is valid.
|
||||
*/
|
||||
static bool valid_weekday(Weekday weekday);
|
||||
|
||||
/** Returns true if the Julian day is valid.
|
||||
* Anything greater than zero is basically a valid Julian, though there is a 32-bit limit.
|
||||
* @param julian_day Julian day to check.
|
||||
* @return true if the Julian day is valid.
|
||||
*/
|
||||
static bool valid_julian(guint32 julian_day);
|
||||
|
||||
|
||||
/** Returns true if the day-month-year triplet forms a valid, existing day in the range of days Date understands (Year 1 or later, no more than a few thousand years in the future).
|
||||
* @param day Day to check.
|
||||
* @param month Month to check.
|
||||
* @param year Year to check.
|
||||
* @return true if the date is a valid one.
|
||||
*/
|
||||
static bool valid_dmy(Day day, Month month, Year year);
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
GDate* gobj() { return &gobject_; }
|
||||
const GDate* gobj() const { return &gobject_; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
GDate gobject_;
|
||||
};
|
||||
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator==(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) == 0); }
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator!=(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) != 0); }
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator<(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) < 0); }
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator>(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) > 0); }
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator<=(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) <= 0); }
|
||||
|
||||
/** @relates Glib::Date */
|
||||
inline bool operator>=(const Date& lhs, const Date& rhs)
|
||||
{ return (lhs.compare(rhs) >= 0); }
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_DATE_H */
|
||||
|
21
libs/glibmm2/glib/glibmm/debug.cc
Normal file
21
libs/glibmm2/glib/glibmm/debug.cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* $Id: debug.cc,v 1.1.1.1 2003/01/07 16:58:44 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/debug.h>
|
||||
|
85
libs/glibmm2/glib/glibmm/debug.h
Normal file
85
libs/glibmm2/glib/glibmm/debug.h
Normal file
|
@ -0,0 +1,85 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_DEBUG_H
|
||||
#define _GLIBMM_DEBUG_H
|
||||
|
||||
/* $Id: debug.h,v 1.2 2003/01/22 12:08:52 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/gmacros.h>
|
||||
#include <glibmmconfig.h>
|
||||
|
||||
// Some stuff that's useful when debugging gtkmm internals:
|
||||
|
||||
#ifdef GLIBMM_DEBUG_REFCOUNTING
|
||||
|
||||
#include <glib/gmessages.h>
|
||||
|
||||
/* We can't use G_GNUC_PRETTY_FUNCTION because it's always disabled in C++,
|
||||
* even though __PRETTY_FUNCTION__ works fine in C++ as well if you use it
|
||||
* right (i.e. concatenation with string literals isn't allowed).
|
||||
*/
|
||||
#ifdef __GNUC__
|
||||
#define GLIBMM_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__
|
||||
#else
|
||||
#define GLIBMM_GNUC_PRETTY_FUNCTION ""
|
||||
#endif
|
||||
|
||||
#define GLIBMM_DEBUG_REFERENCE(cppInstance, cInstance) \
|
||||
G_STMT_START{ \
|
||||
void *const cppInstance__ = (void*) (cppInstance); \
|
||||
void *const cInstance__ = (void*) (cInstance); \
|
||||
g_log(G_LOG_DOMAIN, \
|
||||
G_LOG_LEVEL_DEBUG, \
|
||||
"file %s: line %d (%s):\n" \
|
||||
"ref: C++ instance: %p; C instance: %p, ref_count = %u, type = %s\n", \
|
||||
__FILE__, \
|
||||
__LINE__, \
|
||||
GLIBMM_GNUC_PRETTY_FUNCTION, \
|
||||
cppInstance__, \
|
||||
cInstance__, \
|
||||
G_OBJECT(cInstance__)->ref_count, \
|
||||
G_OBJECT_TYPE_NAME(cInstance__)); \
|
||||
}G_STMT_END
|
||||
|
||||
#define GLIBMM_DEBUG_UNREFERENCE(cppInstance, cInstance) \
|
||||
G_STMT_START{ \
|
||||
void *const cppInstance__ = (void*) (cppInstance); \
|
||||
void *const cInstance__ = (void*) (cInstance); \
|
||||
g_log(G_LOG_DOMAIN, \
|
||||
G_LOG_LEVEL_DEBUG, \
|
||||
"file %s: line %d (%s):\n" \
|
||||
"unref: C++ instance: %p; C instance: %p, ref_count = %u, type = %s\n", \
|
||||
__FILE__, \
|
||||
__LINE__, \
|
||||
GLIBMM_GNUC_PRETTY_FUNCTION, \
|
||||
cppInstance__, \
|
||||
cInstance__, \
|
||||
G_OBJECT(cInstance__)->ref_count, \
|
||||
G_OBJECT_TYPE_NAME(cInstance__)); \
|
||||
}G_STMT_END
|
||||
|
||||
#else
|
||||
|
||||
#define GLIBMM_DEBUG_REFERENCE(cppInstance,cInstance) G_STMT_START{ (void)0; }G_STMT_END
|
||||
#define GLIBMM_DEBUG_UNREFERENCE(cppInstance,cInstance) G_STMT_START{ (void)0; }G_STMT_END
|
||||
|
||||
#endif /* GLIBMM_DEBUG_REFCOUNTING */
|
||||
|
||||
#endif /* _GLIBMM_DEBUG_H */
|
||||
|
463
libs/glibmm2/glib/glibmm/dispatcher.cc
Normal file
463
libs/glibmm2/glib/glibmm/dispatcher.cc
Normal file
|
@ -0,0 +1,463 @@
|
|||
// -*- c++ -*-
|
||||
/* $Id: dispatcher.cc,v 1.13 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/dispatcher.h>
|
||||
#include <glibmm/exceptionhandler.h>
|
||||
#include <glibmm/fileutils.h>
|
||||
#include <glibmm/main.h>
|
||||
#include <glibmm/thread.h>
|
||||
|
||||
#include <cerrno>
|
||||
#include <fcntl.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(_tru64) //TODO: Use the real define
|
||||
//EINTR is not defined on Tru64
|
||||
//I have tried including these
|
||||
//#include <sys/types.h>
|
||||
//#include <sys/statvfs.h>
|
||||
//#include <signal.h>
|
||||
#ifndef EINTR
|
||||
#define EINTR 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#include <direct.h>
|
||||
#include <list>
|
||||
#endif /* G_OS_WIN32 */
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
struct DispatchNotifyData
|
||||
{
|
||||
unsigned long tag;
|
||||
Glib::Dispatcher* dispatcher;
|
||||
Glib::DispatchNotifier* notifier;
|
||||
|
||||
DispatchNotifyData()
|
||||
: tag (0), dispatcher (0), notifier (0) {}
|
||||
|
||||
DispatchNotifyData(unsigned long tag_, Glib::Dispatcher* dispatcher_, Glib::DispatchNotifier* notifier_)
|
||||
: tag (tag_), dispatcher (dispatcher_), notifier (notifier_) {}
|
||||
};
|
||||
|
||||
static void warn_failed_pipe_io(const char* what, int err_no)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
const char *const message = g_win32_error_message(err_no);
|
||||
#else
|
||||
const char *const message = g_strerror(err_no);
|
||||
#endif
|
||||
g_critical("Error in inter-thread communication: %s() failed: %s", what, message);
|
||||
}
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
/*
|
||||
* Try to set the close-on-exec flag of the file descriptor,
|
||||
* so that it won't be leaked if a new process is spawned.
|
||||
*/
|
||||
static void fd_set_close_on_exec(int fd)
|
||||
{
|
||||
const int flags = fcntl(fd, F_GETFD, 0);
|
||||
g_return_if_fail(flags >= 0);
|
||||
|
||||
fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
|
||||
}
|
||||
#endif /* !G_OS_WIN32 */
|
||||
|
||||
/*
|
||||
* One word: paranoia.
|
||||
*/
|
||||
#ifdef G_OS_WIN32
|
||||
static void fd_close_and_invalidate(HANDLE& fd)
|
||||
{
|
||||
if(fd != 0)
|
||||
{
|
||||
if(!CloseHandle(fd))
|
||||
warn_failed_pipe_io("CloseHandle", GetLastError());
|
||||
|
||||
fd = 0;
|
||||
}
|
||||
}
|
||||
#else /* !G_OS_WIN32 */
|
||||
static void fd_close_and_invalidate(int& fd)
|
||||
{
|
||||
if(fd >= 0)
|
||||
{
|
||||
int result;
|
||||
|
||||
do
|
||||
result = close(fd);
|
||||
while(result < 0 && errno == EINTR);
|
||||
|
||||
if(result < 0)
|
||||
warn_failed_pipe_io("close", errno);
|
||||
|
||||
fd = -1;
|
||||
}
|
||||
}
|
||||
#endif /* !G_OS_WIN32 */
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class DispatchNotifier : public sigc::trackable
|
||||
{
|
||||
public:
|
||||
~DispatchNotifier();
|
||||
|
||||
static DispatchNotifier* reference_instance(const Glib::RefPtr<MainContext>& context);
|
||||
static void unreference_instance(DispatchNotifier* notifier);
|
||||
|
||||
void send_notification(Dispatcher* dispatcher);
|
||||
|
||||
protected:
|
||||
// Only used by reference_instance(). Should be private, but that triggers
|
||||
// a silly gcc warning even though DispatchNotifier has static methods.
|
||||
explicit DispatchNotifier(const Glib::RefPtr<MainContext>& context);
|
||||
|
||||
private:
|
||||
static Glib::StaticPrivate<DispatchNotifier> thread_specific_instance_;
|
||||
|
||||
Glib::RefPtr<MainContext> context_;
|
||||
int ref_count_;
|
||||
#ifdef G_OS_WIN32
|
||||
HANDLE fd_receiver_;
|
||||
Glib::Mutex mutex_;
|
||||
std::list<DispatchNotifyData> notify_queue_;
|
||||
#else
|
||||
int fd_receiver_;
|
||||
int fd_sender_;
|
||||
#endif /* !G_OS_WIN32 */
|
||||
sigc::connection conn_io_handler_;
|
||||
|
||||
void create_pipe();
|
||||
bool pipe_io_handler(Glib::IOCondition condition);
|
||||
|
||||
// noncopyable
|
||||
DispatchNotifier(const DispatchNotifier&);
|
||||
DispatchNotifier& operator=(const DispatchNotifier&);
|
||||
};
|
||||
|
||||
|
||||
/**** Glib::DispatchNotifier ***********************************************/
|
||||
|
||||
Glib::StaticPrivate<DispatchNotifier>
|
||||
DispatchNotifier::thread_specific_instance_ = GLIBMM_STATIC_PRIVATE_INIT;
|
||||
|
||||
DispatchNotifier::DispatchNotifier(const Glib::RefPtr<MainContext>& context)
|
||||
:
|
||||
context_ (context),
|
||||
ref_count_ (0),
|
||||
#ifdef G_OS_WIN32
|
||||
fd_receiver_ (0),
|
||||
mutex_ (),
|
||||
notify_queue_ ()
|
||||
#else
|
||||
fd_receiver_ (-1),
|
||||
fd_sender_ (-1)
|
||||
#endif
|
||||
{
|
||||
create_pipe();
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
try
|
||||
{
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
#ifdef G_OS_WIN32
|
||||
conn_io_handler_ = context_->signal_io().connect(
|
||||
sigc::mem_fun(*this, &DispatchNotifier::pipe_io_handler),
|
||||
GPOINTER_TO_INT(fd_receiver_), Glib::IO_IN);
|
||||
#else /* !G_OS_WIN32 */
|
||||
conn_io_handler_ = context_->signal_io().connect(
|
||||
sigc::mem_fun(*this, &DispatchNotifier::pipe_io_handler),
|
||||
fd_receiver_, Glib::IO_IN);
|
||||
#endif /* !G_OS_WIN32 */
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
#ifndef G_OS_WIN32
|
||||
fd_close_and_invalidate(fd_sender_);
|
||||
#endif /* !G_OS_WIN32 */
|
||||
fd_close_and_invalidate(fd_receiver_);
|
||||
|
||||
throw;
|
||||
}
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
|
||||
DispatchNotifier::~DispatchNotifier()
|
||||
{
|
||||
// Disconnect manually because we don't inherit from sigc::trackable
|
||||
conn_io_handler_.disconnect();
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
fd_close_and_invalidate(fd_sender_);
|
||||
#endif /* !G_OS_WIN32 */
|
||||
fd_close_and_invalidate(fd_receiver_);
|
||||
}
|
||||
|
||||
void DispatchNotifier::create_pipe()
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
// On Win32 we are using synchronization object instead of pipe
|
||||
// thus storing its handle as fd_receiver_.
|
||||
fd_receiver_ = CreateEvent(0, FALSE, FALSE, 0);
|
||||
|
||||
if(!fd_receiver_)
|
||||
{
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GError* const error = g_error_new(G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
||||
"Failed to create event for inter-thread communication: %s",
|
||||
g_win32_error_message(GetLastError()));
|
||||
throw Glib::FileError(error);
|
||||
#else
|
||||
return; //TODO: Provide an alternative to the exception.
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
|
||||
#else /* !G_OS_WIN32 */
|
||||
int filedes[2] = { -1, -1 };
|
||||
|
||||
if(pipe(filedes) < 0)
|
||||
{
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GError* const error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno),
|
||||
"Failed to create pipe for inter-thread communication: %s",
|
||||
g_strerror(errno));
|
||||
throw Glib::FileError(error);
|
||||
#else
|
||||
return; //TODO: Provide an alternative to the exception.
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
|
||||
fd_set_close_on_exec(filedes[0]);
|
||||
fd_set_close_on_exec(filedes[1]);
|
||||
|
||||
fd_receiver_ = filedes[0];
|
||||
fd_sender_ = filedes[1];
|
||||
#endif /* !G_OS_WIN32 */
|
||||
}
|
||||
|
||||
// static
|
||||
DispatchNotifier* DispatchNotifier::reference_instance(const Glib::RefPtr<MainContext>& context)
|
||||
{
|
||||
DispatchNotifier* instance = thread_specific_instance_.get();
|
||||
|
||||
if(!instance)
|
||||
{
|
||||
instance = new DispatchNotifier(context);
|
||||
thread_specific_instance_.set(instance);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Prevent massive mess-up.
|
||||
g_return_val_if_fail(instance->context_ == context, 0);
|
||||
}
|
||||
|
||||
++instance->ref_count_; // initially 0
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
// static
|
||||
void DispatchNotifier::unreference_instance(DispatchNotifier* notifier)
|
||||
{
|
||||
DispatchNotifier *const instance = thread_specific_instance_.get();
|
||||
|
||||
// Yes, the notifier argument is only used to check for sanity.
|
||||
g_return_if_fail(instance == notifier);
|
||||
|
||||
if(--instance->ref_count_ <= 0)
|
||||
{
|
||||
g_return_if_fail(instance->ref_count_ == 0); // could be < 0 if messed up
|
||||
|
||||
// This will cause deletion of the notifier object.
|
||||
thread_specific_instance_.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
void DispatchNotifier::send_notification(Dispatcher* dispatcher)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
{
|
||||
Glib::Mutex::Lock lock (mutex_);
|
||||
notify_queue_.push_back(DispatchNotifyData(0xdeadbeef, dispatcher, this));
|
||||
}
|
||||
|
||||
// Send notification event to GUI-thread.
|
||||
if(!SetEvent(fd_receiver_))
|
||||
{
|
||||
warn_failed_pipe_io("SetEvent", GetLastError());
|
||||
return;
|
||||
}
|
||||
#else /* !G_OS_WIN32 */
|
||||
DispatchNotifyData data (0xdeadbeef, dispatcher, this);
|
||||
gssize n_written;
|
||||
|
||||
do
|
||||
n_written = write(fd_sender_, &data, sizeof(data));
|
||||
while(n_written < 0 && errno == EINTR);
|
||||
|
||||
if(n_written < 0)
|
||||
{
|
||||
warn_failed_pipe_io("write", errno);
|
||||
return;
|
||||
}
|
||||
|
||||
// All data must be written in a single call to write(), otherwise we can't
|
||||
// guarantee reentrancy since another thread might be scheduled between two
|
||||
// write() calls. The manpage is a bit unclear about this -- but I hope
|
||||
// it's safe to assume immediate success for the tiny amount of data we're
|
||||
// writing.
|
||||
g_return_if_fail(n_written == sizeof(data));
|
||||
#endif /* !G_OS_WIN32 */
|
||||
}
|
||||
|
||||
bool DispatchNotifier::pipe_io_handler(Glib::IOCondition)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
DispatchNotifyData data;
|
||||
|
||||
for(;;)
|
||||
{
|
||||
{
|
||||
Glib::Mutex::Lock lock (mutex_);
|
||||
|
||||
if(notify_queue_.empty())
|
||||
break;
|
||||
|
||||
data = notify_queue_.front();
|
||||
notify_queue_.pop_front();
|
||||
}
|
||||
|
||||
g_return_val_if_fail(data.tag == 0xdeadbeef, true);
|
||||
g_return_val_if_fail(data.notifier == this, true);
|
||||
|
||||
// Actually, we wouldn't need the try/catch block because the Glib::Source
|
||||
// C callback already does it for us. However, we do it anyway because the
|
||||
// default return value is 'false', which is not what we want.
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
try
|
||||
{
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
data.dispatcher->signal_();
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
Glib::exception_handlers_invoke();
|
||||
}
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
#else /* !G_OS_WIN32 */
|
||||
DispatchNotifyData data;
|
||||
gsize n_read = 0;
|
||||
|
||||
do
|
||||
{
|
||||
void * const buffer = reinterpret_cast<guint8*>(&data) + n_read;
|
||||
const gssize result = read(fd_receiver_, buffer, sizeof(data) - n_read);
|
||||
|
||||
if(result < 0)
|
||||
{
|
||||
if(errno == EINTR)
|
||||
continue;
|
||||
|
||||
warn_failed_pipe_io("read", errno);
|
||||
return true;
|
||||
}
|
||||
|
||||
n_read += result;
|
||||
}
|
||||
while(n_read < sizeof(data));
|
||||
|
||||
g_return_val_if_fail(data.tag == 0xdeadbeef, true);
|
||||
g_return_val_if_fail(data.notifier == this, true);
|
||||
|
||||
// Actually, we wouldn't need the try/catch block because the Glib::Source
|
||||
// C callback already does it for us. However, we do it anyway because the
|
||||
// default return value is 'false', which is not what we want.
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
try
|
||||
{
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
data.dispatcher->signal_(); // emit
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
Glib::exception_handlers_invoke();
|
||||
}
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
#endif /* !G_OS_WIN32 */
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**** Glib::Dispatcher *****************************************************/
|
||||
|
||||
Dispatcher::Dispatcher()
|
||||
:
|
||||
signal_ (),
|
||||
notifier_ (DispatchNotifier::reference_instance(MainContext::get_default()))
|
||||
{}
|
||||
|
||||
Dispatcher::Dispatcher(const Glib::RefPtr<MainContext>& context)
|
||||
:
|
||||
signal_ (),
|
||||
notifier_ (DispatchNotifier::reference_instance(context))
|
||||
{}
|
||||
|
||||
Dispatcher::~Dispatcher()
|
||||
{
|
||||
DispatchNotifier::unreference_instance(notifier_);
|
||||
}
|
||||
|
||||
void Dispatcher::emit()
|
||||
{
|
||||
notifier_->send_notification(this);
|
||||
}
|
||||
|
||||
void Dispatcher::operator()()
|
||||
{
|
||||
emit();
|
||||
}
|
||||
|
||||
sigc::connection Dispatcher::connect(const sigc::slot<void>& slot)
|
||||
{
|
||||
return signal_.connect(slot);
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
103
libs/glibmm2/glib/glibmm/dispatcher.h
Normal file
103
libs/glibmm2/glib/glibmm/dispatcher.h
Normal file
|
@ -0,0 +1,103 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_DISPATCHER_H
|
||||
#define _GLIBMM_DISPATCHER_H
|
||||
|
||||
/* $Id: dispatcher.h,v 1.4 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
#include <glibmm/main.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
class DispatchNotifier;
|
||||
#endif
|
||||
|
||||
/** Signal class for inter-thread communication.
|
||||
* @ingroup Threads
|
||||
* Glib::Dispatcher works similar to sigc::signal<void>. But unlike normal
|
||||
* signals, the notification happens asynchronously through a pipe. This is
|
||||
* a simple and efficient way of communicating between threads, and especially
|
||||
* useful in a thread model with a single GUI thread.
|
||||
*
|
||||
* No mutex locking is involved, apart from the operating system's internal
|
||||
* I/O locking. That implies some usage rules:
|
||||
*
|
||||
* @li Only one thread may connect to the signal and receive notification, but
|
||||
* multiple senders are allowed even without locking.
|
||||
* @li The GLib main loop must run in the receiving thread (this will be the
|
||||
* GUI thread usually).
|
||||
* @li The Dispatcher object must be instantiated by the receiver thread.
|
||||
* @li The Dispatcher object should be instantiated before creating any of the
|
||||
* sender threads, if you want to avoid extra locking.
|
||||
*
|
||||
* Notes about performance:
|
||||
*
|
||||
* @li After instantiation, Glib::Dispatcher will never lock any mutexes on its
|
||||
* own. The interaction with the GLib main loop might involve locking on the
|
||||
* @em receiver side. The @em sender side, however, is guaranteed not to lock,
|
||||
* except for internal locking in the <tt>%write()</tt> system call.
|
||||
* @li All Dispatcher instances of a receiver thread share the same pipe. That
|
||||
* is, if you use Glib::Dispatcher only to notify the GUI thread, only one pipe
|
||||
* is created no matter how many Dispatcher objects you have.
|
||||
*/
|
||||
class Dispatcher
|
||||
{
|
||||
public:
|
||||
/** Create new Dispatcher instance using the default main context.
|
||||
* @throw Glib::FileError
|
||||
*/
|
||||
Dispatcher();
|
||||
|
||||
/** Create new Dispatcher instance using an arbitrary main context.
|
||||
* @throw Glib::FileError
|
||||
*/
|
||||
explicit Dispatcher(const Glib::RefPtr<MainContext>& context);
|
||||
~Dispatcher();
|
||||
|
||||
void emit();
|
||||
void operator()();
|
||||
|
||||
sigc::connection connect(const sigc::slot<void>& slot);
|
||||
|
||||
private:
|
||||
sigc::signal<void> signal_;
|
||||
DispatchNotifier* notifier_;
|
||||
|
||||
// noncopyable
|
||||
Dispatcher(const Dispatcher&);
|
||||
Dispatcher& operator=(const Dispatcher&);
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
friend class Glib::DispatchNotifier;
|
||||
#endif
|
||||
};
|
||||
|
||||
/*! A Glib::Dispatcher example.
|
||||
* @example thread/dispatcher.cc
|
||||
*/
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_DISPATCHER_H */
|
||||
|
198
libs/glibmm2/glib/glibmm/error.cc
Normal file
198
libs/glibmm2/glib/glibmm/error.cc
Normal file
|
@ -0,0 +1,198 @@
|
|||
// -*- c++ -*-
|
||||
/* $Id: error.cc,v 1.4 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* error.cc
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/gerror.h>
|
||||
#include <glib/gmessages.h>
|
||||
|
||||
#include <map>
|
||||
#include <glibmmconfig.h>
|
||||
#include <glibmm/error.h>
|
||||
#include <glibmm/wrap_init.h>
|
||||
|
||||
GLIBMM_USING_STD(map)
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
typedef std::map<GQuark,Glib::Error::ThrowFunc> ThrowFuncTable;
|
||||
|
||||
static ThrowFuncTable* throw_func_table = 0;
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
Error::Error()
|
||||
:
|
||||
gobject_ (0)
|
||||
{}
|
||||
|
||||
Error::Error(GQuark domain, int code, const Glib::ustring& message)
|
||||
:
|
||||
gobject_ (g_error_new_literal(domain, code, message.c_str()))
|
||||
{}
|
||||
|
||||
Error::Error(GError* gobject, bool take_copy)
|
||||
:
|
||||
gobject_ ((take_copy && gobject) ? g_error_copy(gobject) : gobject)
|
||||
{}
|
||||
|
||||
Error::Error(const Error& other)
|
||||
:
|
||||
Exception(other),
|
||||
gobject_ ((other.gobject_) ? g_error_copy(other.gobject_) : 0)
|
||||
{}
|
||||
|
||||
Error& Error::operator=(const Error& other)
|
||||
{
|
||||
if(gobject_ != other.gobject_)
|
||||
{
|
||||
if(gobject_)
|
||||
{
|
||||
g_error_free(gobject_);
|
||||
gobject_ = 0;
|
||||
}
|
||||
if(other.gobject_)
|
||||
{
|
||||
gobject_ = g_error_copy(other.gobject_);
|
||||
}
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
Error::~Error() throw()
|
||||
{
|
||||
if(gobject_)
|
||||
g_error_free(gobject_);
|
||||
}
|
||||
|
||||
GQuark Error::domain() const
|
||||
{
|
||||
g_return_val_if_fail(gobject_ != 0, 0);
|
||||
|
||||
return gobject_->domain;
|
||||
}
|
||||
|
||||
int Error::code() const
|
||||
{
|
||||
g_return_val_if_fail(gobject_ != 0, -1);
|
||||
|
||||
return gobject_->code;
|
||||
}
|
||||
|
||||
Glib::ustring Error::what() const
|
||||
{
|
||||
g_return_val_if_fail(gobject_ != 0, "");
|
||||
g_return_val_if_fail(gobject_->message != 0, "");
|
||||
|
||||
return gobject_->message;
|
||||
}
|
||||
|
||||
bool Error::matches(GQuark domain, int code) const
|
||||
{
|
||||
return g_error_matches(gobject_, domain, code);
|
||||
}
|
||||
|
||||
GError* Error::gobj()
|
||||
{
|
||||
return gobject_;
|
||||
}
|
||||
|
||||
const GError* Error::gobj() const
|
||||
{
|
||||
return gobject_;
|
||||
}
|
||||
|
||||
void Error::propagate(GError** dest)
|
||||
{
|
||||
g_propagate_error(dest, gobject_);
|
||||
gobject_ = 0;
|
||||
}
|
||||
|
||||
// static
|
||||
void Error::register_init()
|
||||
{
|
||||
if(!throw_func_table)
|
||||
{
|
||||
throw_func_table = new ThrowFuncTable();
|
||||
Glib::wrap_init(); // make sure that at least the Glib exceptions are registered
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void Error::register_cleanup()
|
||||
{
|
||||
if(throw_func_table)
|
||||
{
|
||||
delete throw_func_table;
|
||||
throw_func_table = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void Error::register_domain(GQuark domain, Error::ThrowFunc throw_func)
|
||||
{
|
||||
g_assert(throw_func_table != 0);
|
||||
|
||||
(*throw_func_table)[domain] = throw_func;
|
||||
}
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
// static, noreturn
|
||||
void Error::throw_exception(GError* gobject)
|
||||
#else
|
||||
std::auto_ptr<Glib::Error> Error::throw_exception(GError* gobject)
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
{
|
||||
g_assert(gobject != 0);
|
||||
|
||||
// Just in case Gtk::Main hasn't been instantiated yet.
|
||||
if(!throw_func_table)
|
||||
register_init();
|
||||
|
||||
if(const ThrowFunc throw_func = (*throw_func_table)[gobject->domain])
|
||||
{
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
(*throw_func)(gobject);
|
||||
#else
|
||||
return (*throw_func)(gobject);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
g_warning("Glib::Error::throw_exception():\n "
|
||||
"unknown error domain '%s': throwing generic Glib::Error exception\n",
|
||||
(gobject->domain) ? g_quark_to_string(gobject->domain) : "(null)");
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
// Doesn't copy, because error-returning functions return a newly allocated GError for us.
|
||||
throw Glib::Error(gobject);
|
||||
#else
|
||||
return std::auto_ptr<Glib::Error>(new Glib::Error(gobject));
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
}
|
||||
|
||||
|
||||
} // namespace Glib
|
||||
|
92
libs/glibmm2/glib/glibmm/error.h
Normal file
92
libs/glibmm2/glib/glibmm/error.h
Normal file
|
@ -0,0 +1,92 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_ERROR_H
|
||||
#define _GLIBMM_ERROR_H
|
||||
/* $Id: error.h,v 1.3 2006/10/04 12:04:05 murrayc Exp $ */
|
||||
|
||||
/* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
extern "C" { typedef struct _GError GError; }
|
||||
#endif
|
||||
|
||||
#include <glib/gquark.h>
|
||||
#include <glibmm/exception.h>
|
||||
#include <glibmmconfig.h> //For GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
#ifndef GLIBMM_EXCEPTIONS_ENABLED
|
||||
//When not usinge exceptions, we pass auto_ptrs of the exceptions objects around instead.
|
||||
#include <memory> //For std::auto_ptr
|
||||
#endif
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class Error : public Glib::Exception
|
||||
{
|
||||
public:
|
||||
Error();
|
||||
Error(GQuark domain, int code, const Glib::ustring& message);
|
||||
explicit Error(GError* gobject, bool take_copy = false);
|
||||
|
||||
Error(const Error& other);
|
||||
Error& operator=(const Error& other);
|
||||
|
||||
virtual ~Error() throw();
|
||||
|
||||
GQuark domain() const;
|
||||
int code() const;
|
||||
virtual Glib::ustring what() const;
|
||||
|
||||
bool matches(GQuark domain, int code) const;
|
||||
|
||||
GError* gobj();
|
||||
const GError* gobj() const;
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
void propagate(GError** dest);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
typedef void (* ThrowFunc) (GError*);
|
||||
#else
|
||||
//When not using exceptions, we just pass the Exception object around without throwing it:
|
||||
typedef std::auto_ptr<Glib::Error> (* ThrowFunc) (GError*);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
static void register_init();
|
||||
static void register_cleanup();
|
||||
static void register_domain(GQuark domain, ThrowFunc throw_func);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
static void throw_exception(GError* gobject) G_GNUC_NORETURN;
|
||||
#else
|
||||
static std::auto_ptr<Glib::Error> throw_exception(GError* gobject);
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
protected:
|
||||
GError* gobject_;
|
||||
};
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_ERROR_H */
|
||||
|
40
libs/glibmm2/glib/glibmm/exception.cc
Normal file
40
libs/glibmm2/glib/glibmm/exception.cc
Normal file
|
@ -0,0 +1,40 @@
|
|||
// -*- c++ -*-
|
||||
/* $Id: exception.cc,v 1.1.1.1 2003/01/07 16:58:45 murrayc Exp $ */
|
||||
|
||||
/* exception.cc
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib/gmessages.h>
|
||||
#include <glibmm/exception.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
Exception::~Exception() throw()
|
||||
{}
|
||||
|
||||
Glib::ustring Exception::what() const
|
||||
{
|
||||
g_assert_not_reached();
|
||||
return Glib::ustring();
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
42
libs/glibmm2/glib/glibmm/exception.h
Normal file
42
libs/glibmm2/glib/glibmm/exception.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_EXCEPTION_H
|
||||
#define _GLIBMM_EXCEPTION_H
|
||||
/* $Id: exception.h,v 1.1.1.1 2003/01/07 16:58:45 murrayc Exp $ */
|
||||
|
||||
/* exception.h
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class Exception
|
||||
{
|
||||
public:
|
||||
virtual ~Exception() throw() = 0;
|
||||
virtual Glib::ustring what() const = 0;
|
||||
};
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
|
||||
#endif /* _GLIBMM_EXCEPTION_H */
|
||||
|
163
libs/glibmm2/glib/glibmm/exceptionhandler.cc
Normal file
163
libs/glibmm2/glib/glibmm/exceptionhandler.cc
Normal file
|
@ -0,0 +1,163 @@
|
|||
// -*- c++ -*-
|
||||
/* $Id: exceptionhandler.cc,v 1.5 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* exceptionhandler.cc
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include <exception>
|
||||
#include <list>
|
||||
|
||||
#include <glibmmconfig.h>
|
||||
#include <glibmm/error.h>
|
||||
#include <glibmm/exceptionhandler.h>
|
||||
#include <glibmm/thread.h>
|
||||
|
||||
GLIBMM_USING_STD(exception)
|
||||
GLIBMM_USING_STD(list)
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
typedef sigc::signal<void> HandlerList;
|
||||
|
||||
// Each thread has its own list of exception handlers
|
||||
// to avoid thread synchronization problems.
|
||||
static Glib::StaticPrivate<HandlerList> thread_specific_handler_list = GLIBMM_STATIC_PRIVATE_INIT;
|
||||
|
||||
|
||||
static void glibmm_exception_warning(const GError* error)
|
||||
{
|
||||
g_assert(error != 0);
|
||||
|
||||
g_critical("\n"
|
||||
"unhandled exception (type Glib::Error) in signal handler:\n"
|
||||
"domain: %s\n"
|
||||
"code : %d\n"
|
||||
"what : %s\n",
|
||||
g_quark_to_string(error->domain), error->code,
|
||||
(error->message) ? error->message : "(null)");
|
||||
}
|
||||
|
||||
static void glibmm_unexpected_exception()
|
||||
{
|
||||
try
|
||||
{
|
||||
throw; // re-throw current exception
|
||||
}
|
||||
catch(const Glib::Error& error)
|
||||
{
|
||||
// Access the GError directly, to avoid possible exceptions from C++ code.
|
||||
glibmm_exception_warning(error.gobj());
|
||||
|
||||
// For most failures that cause a Glib::Error exception, aborting the
|
||||
// program seems too harsh. Instead, give control back to the main loop.
|
||||
return;
|
||||
}
|
||||
catch(const std::exception& except)
|
||||
{
|
||||
g_error("\n"
|
||||
"unhandled exception (type std::exception) in signal handler:\n"
|
||||
"what: %s\n", except.what());
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
g_error("\nunhandled exception (type unknown) in signal handler\n");
|
||||
}
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
sigc::connection add_exception_handler(const sigc::slot<void>& slot)
|
||||
{
|
||||
HandlerList* handler_list = thread_specific_handler_list.get();
|
||||
|
||||
if(!handler_list)
|
||||
{
|
||||
handler_list = new HandlerList();
|
||||
thread_specific_handler_list.set(handler_list);
|
||||
}
|
||||
|
||||
handler_list->slots().push_front(slot);
|
||||
return handler_list->slots().begin();
|
||||
}
|
||||
|
||||
// internal
|
||||
void exception_handlers_invoke() throw()
|
||||
{
|
||||
// This function will be called from our GLib signal handler proxies
|
||||
// if an exception has been caught. It's not possible to throw C++
|
||||
// exceptions through C signal handlers. To handle this situation, the
|
||||
// programmer can install slots to global Reusable Exception Handlers.
|
||||
//
|
||||
// A handler has to re-throw the current exception in a try block, and then
|
||||
// catch the exceptions it knows about. Any unknown exceptions should just
|
||||
// fall through, i.e. the handler must not do catch(...).
|
||||
//
|
||||
// We now invoke each of the installed slots until the exception has been
|
||||
// handled. If there are no more handlers in the list and the exception
|
||||
// is still unhandled, call glibmm_unexpected_exception().
|
||||
|
||||
if(HandlerList *const handler_list = thread_specific_handler_list.get())
|
||||
{
|
||||
HandlerList::iterator pslot = handler_list->slots().begin();
|
||||
|
||||
while(pslot != handler_list->slots().end())
|
||||
{
|
||||
// Calling an empty slot would mean ignoring the exception,
|
||||
// thus we have to check for dead slots explicitly.
|
||||
if(pslot->empty())
|
||||
{
|
||||
pslot = handler_list->slots().erase(pslot);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Call the Reusable Exception Handler, which should re-throw
|
||||
// the exception that's currently on the stack.
|
||||
try
|
||||
{
|
||||
(*pslot)();
|
||||
}
|
||||
catch(...) // unhandled, try next slot
|
||||
{
|
||||
++pslot;
|
||||
continue;
|
||||
}
|
||||
|
||||
// The exception has either been handled or ignored.
|
||||
// Give control back to the GLib main loop.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Critical: The exception is still unhandled.
|
||||
glibmm_unexpected_exception();
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
|
48
libs/glibmm2/glib/glibmm/exceptionhandler.h
Normal file
48
libs/glibmm2/glib/glibmm/exceptionhandler.h
Normal file
|
@ -0,0 +1,48 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_EXCEPTIONHANDLER_H
|
||||
#define _GLIBMM_EXCEPTIONHANDLER_H
|
||||
|
||||
/* $Id: exceptionhandler.h,v 1.3 2006/05/12 08:08:43 murrayc Exp $ */
|
||||
|
||||
/* exceptionhandler.h
|
||||
*
|
||||
* Copyright 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
#include <glibmmconfig.h>
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
/** Specify a slot to be called when an exception is thrown by a signal handler.
|
||||
*/
|
||||
sigc::connection add_exception_handler(const sigc::slot<void>& slot);
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
// internal
|
||||
void exception_handlers_invoke() throw();
|
||||
#endif
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
#endif /* _GLIBMM_EXCEPTIONHANDLER_H */
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user