Quick Reorganization

This commit is contained in:
cra0zy 2017-09-05 02:09:07 +02:00 committed by Thibault Saunier
parent 676d8bdea3
commit c35a345041
2598 changed files with 341 additions and 17902 deletions

View file

@ -1,7 +1,7 @@
Maintainers:
Mike Kestner
Contributors:
Mike Kestner
Aaron Bockover
Age Bosma
Alan McGovern
@ -96,4 +96,4 @@ Contributors:
petr
pixelpapst@users.sourceforge.net
psonek2@seznam.cz

480
COPYING
View file

@ -1,480 +0,0 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
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 Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, 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 or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the 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 a program 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.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
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, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
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.
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.
6. As an exception to the Sections above, you may also compile 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) 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.
c) 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.
d) 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 source code 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.
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 to
this License.
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 Library 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.
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
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 version 2 of the Lesser GNU General
Public License as published by the Free Software Foundation.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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!

File diff suppressed because it is too large Load diff

24
HACKING
View file

@ -1,24 +0,0 @@
Before beginning work on something, please post your intentions to the
mailing list (gtk-sharp-list@ximian.com). Duplication of effort just gets
folks cranky in general.
Code contributions can be made in the form of pull requests on GitHub,
through https://github.com/mono/gtk-sharp or by attaching patches to bug
reports. Please make sure the patch is produced using 'git format-patch'.
Getting Started:
----------------
Getting started with "hacking" Gtk# can seem formidable at first. However
there is some additional information already written, to help you get
up and going.
Those wishing to "hack" at Gtk#, are encouraged to also read:
o README.generator
o sources/README
If you still have more questions or need assitance, you can get help on
the Gtk# mailing list and the #gtk# or #mono IRC channels. (Information
about each of these is contained in the README file.)

339
LICENSE Normal file
View file

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, 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 or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
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 give any other recipients of the Program a copy of this License
along with the Program.
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 Program or any portion
of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
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 Program, 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 Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) 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; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, 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 executable. However, as a
special exception, the source code 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.
If distribution of executable or 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 counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program 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.
5. 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 Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program 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 to
this License.
7. 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 Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program 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 Program.
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.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program 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.
9. The Free Software Foundation may publish revised and/or new versions
of the 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 Program
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 Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, 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
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. 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.
{description}
Copyright (C) {year} {fullname}
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

281
NEWS
View file

@ -1,281 +0,0 @@
===============================================================================
Gtk# 2.99.3 - 2014-06-06
===============================================================================
Gtk# 2.99.3 is a beta release of C# bindings for GTK 3.x.
This version of Gtk# provides bindings for the API exposed by these libraries:
* cairo 1.10.0
* glib 2.28.0
* pango 1.28.3
* atk 1.32.0
* gdk-pixbuf 2.22.1
* gtk+ 3.0.0
There is no API stability guarantee for now, but we try to keep breaking
changes to a minimum.
This version of Gtk# can be installed in parallel with Gtk# 2.x, and should not
have any impact on applications using Gtk# 2.x.
New features and enhancements
-----------------------------
* Windows installer: this is the first release of a Gtk# Windows installer
with GTK+ 3.x. It includes 32-bit native binaries of GTK+ 3.6.4, provided
at http://www.gtk.org/download/win32.php
* generator: Add support for fixed length arrays as method parameters
* build: Add a pkg-config file for gdk-sharp-3.0
* Add samples to show the Spinner widget, and to demonstrate CSS theming
Changes
-------
* generator: Create a directory for each namespace of generated code
* cairo: Remove FormatStrideForWidth and PathExtents methods from Context
* glib: Add GVariant to fundamental types and allow conversion to and from
GValue
Bug fixes
---------
* Various fixes to build on Windows with MinGW and the .NET compiler
* generator: Fix generation of SetGValue method
* generator: Add new keyword to GType property if it hides parent
* generator: Fix handle being passed when type is a struct
* generator: Fix signature of static method overloads
* gtk: Add ListStore.SetValue overload for long type
===============================================================================
Gtk# 2.99.2 - 2013-12-04
===============================================================================
Gtk# 2.99.2 is the third beta release of C# bindings for GTK 3.x.
This version of Gtk# provides bindings for the API exposed by these libraries:
* cairo 1.10.0
* glib 2.28.0
* pango 1.28.3
* atk 1.32.0
* gdk-pixbuf 2.22.1
* gtk+ 3.0.0
There is no API stability guarantee for now, but we try to keep breaking
changes to a minimum.
This version of Gtk# can be installed in parallel with Gtk# 2.x, and should not
have any impact on applications using Gtk# 2.x.
New features and enhancements
-----------------------------
* Lots of improvements to the code generator, to support GAPI XML converted
from GObject Introspection XML (GIR).
* generator: Remove redundant class name from method name
* generator: Implement attribute to hide method parameters
* cairo: Throw ObjectDisposedException when trying to use an object that has
been disposed
* glib: Add Mutex, RecMutex and Cond types
* glib: Add GPollFD and GSource types
* glib: Add GDate and GDateTime classes
* glib: Map MainContext type and expose members
Changes
-------
* Move the fixup tool from the parser to the generator folder
* generator: Provide a GType static property for adapters and rename existing
GType property to GInterfaceGType
* gio: Rename ApplicationFlags.FlagsNone to ApplicationFlags.None
* gio: Delete unused DBusInterfaceVTable class
* gio: Fix up returns type for several GSettings.List* methods
* glib: Install properties before class_init finishes
* glib: Remove obsolete Argv-related methods in Marshaller
* gtk: Fix TreeView.GetTooltipContext method signature (bxc#14678)
Bug fixes
---------
* generator: Dispose ownable method parameters in VM callback (bxc#237)
* generator: Dispose ownable parameters in signal callbacks (bxc#237)
* atk: Add metadata fixup to avoid crash due to ABI change
* cairo: Fix leaks when managed objects are finalized
* glib: Fix copy-paste error in Object.FindClassProperty()
* gtk: Fix Application to be more robust when embedding mono
* gui-thread-check: Add two more methods to the whitelist
===============================================================================
Gtk# 2.99.1 - 2013-09-23
===============================================================================
Gtk# 2.99.1 is the second release of C# bindings for GTK 3.x. This is a beta
release, primarily intended for applications developers who want to start
porting their application to GTK 3.x.
This version of Gtk# provides bindings for the API exposed by these libraries:
* cairo 1.10.0
* glib 2.28.0
* pango 1.28.3
* atk 1.32.0
* gdk-pixbuf 2.22.1
* gtk+ 3.0.0
There is no API stability guarantee for now, but we will try to keep breaking
changes to a minimum.
This version of Gtk# can be installed in parallel with Gtk# 2.x, and should not
have any impact on applications using Gtk# 2.x.
New features and enhancements
-----------------------------
* Support for async/await in the GTK main thread
If you use the async/await keywords in your Gtk# app, things will now
work as expected with the GTK main thread. For example:
static async void DoWork () // called in the GTK main thread
{
// Do some stuff with the UI...
label.Text = "Starting Work";
// Run something asynchronously, UI is not frozen
int res = await DoLongOperation ();
// Do some more UI stuff, it'll run on the GTK main thread
label.Text = "Work done";
}
* gui-thread-check profiler module
This mono profiler module can be used to check if a GTK# application is
trying to invoke gtk or gdk methods from a thread which is not the main
GUI thread.
To use it, run your application with the command:
mono --profile=gui-thread-check yourapp.exe
If the profiler is properly installed, you'll see an output like this:
*** Running with gui-thread-check *** GUI THREAD INITIALIZED:
*** 2861676352
While the application is running, if the profiler detects a non-gui
thread invoking gtk methods, it will print a warning message together
with a stack trace. For example:
*** GTK CALL NOT IN GUI THREAD: Widget.gtk_widget_get_parent
Widget.get_Parent
SomeWidget.DoSomething
BackgroundWorker.OnDoWork
BackgroundWorker.ProcessWorker
* cairo: Rework the handling of native resources, to reduce memory leaks.
In general, the caller is responsible for disposing IDisposable objects
returned from any method.
* cairo: Add mechanism to debug missing Dispose calls, enabled by setting a
new MONO_CAIRO_DEBUG_DISPOSE environment variable.
* Provide and use an XML schema definition to validate GAPI XML files.
* Use generic collections in the generated code, in custom code and in the
generator itself.
* Improve handling of command-line parameters in the generator.
* glib: Install interfaces before they are initialized, to match the behavior
now required by glib 2.36 and above.
Changes
-------
* Generate all interfaces with the "I" prefix, to match .NET coding
convention. For example, Scrollable is now IScrollable.
* gdk: Remove AddClientMessageFilter method from Gdk.Display and Gdk.Global
* cairo: Add SetSourceColor method to Cairo.Context.
* gio: Correct return types for methods returning GList*, in various classes
* gio: Rename Content class to ContentType and adjust method names
* gio: Move the module-related static functions into the IOModule class,
adjust their names and fix the return types
* gio: Move the scheduler-related static functions into IOSchedulerJob
* gio: Move ErrorQuark method to GioGlobal
* gio: Create IOError class, with FromErrno and FromWin32Error methods
* gio: Rename the Dbus class to DBus, to have consistent capitalization
* gio: Rename all GDbus* properties to GDBus*, with correct capitalization
* gio: Rename the DBus.AddressGet* methods to DBus.Get*
* gio: Move static methods from Simple to SimpleAsyncResult class
* gio: Hide GioGlobal.RegistryBackendGetType method
* gio: Mark the ISeekable interface as consume-only
* gio: Correct GSettings.GetStrv and SetStrv values to be string[]
* gtk: Mark the whole Style class as obsolete
* gtk: Fix return types for several methods: GtkCellArea.GetFocusSiblings,
GtkMenu.GetForAttachWidget, GtkWindowGroup.ListWindows
* gtk: Make the Group property for Radio* widgets a properly typed array
* gtk: Fix return types for IterList* methods in WidgetPath
* gtk: Change the second parameter in AccelMap.LookupEntry to be an out param
Bug fixes
---------
* generator: Add validation check for return values that are arrays
* cairo: Fix rectangles returned by StrokeExtents and FillExtents methods
* cairo: Fix various text API calls to use the correct types
* glib: Fix crash when freeing lists with elements typed as interfaces
* gdk: Allow passing a null Gdk.Event
* gtk: Fix return type of IRecentChooser.GetUris to an array of strings
===============================================================================
Gtk# 2.99.0 - 2012-10-23
===============================================================================
Gtk# 2.99.0 is the first release of C# bindings for GTK 3.x. This is a beta
release, primarily intended for applications developers who want to start
porting their application to GTK 3.x.
This version of Gtk# provides bindings for the API exposed by these libraries:
* cairo 1.10.0
* glib 2.28.0
* pango 1.28.3
* atk 1.32.0
* gdk-pixbuf 2.22.1
* gtk+ 3.0.0
There is no API stability guarantee for now, but we will try to keep breaking
changes to a minimum.
This version of Gtk# can be installed in parallel with Gtk# 2.x, and should not
have any impact on applications using Gtk# 2.x.
Changes
-------
* All the new APIs provided by GTK 3.0 and friends are now available.
* Gtk# now provides bindings for cairo 1.10 in cairo-sharp.dll. In the future
we might go back to using the Mono.Cairo.dll binding included in Mono.
* Bindings for Gio are now included, instead of requiring a separate
gio-sharp package.
* GLib.Object now uses the Dispose pattern. Subclasses that need to do
resource clean-up should implement a Dispose(bool) method.
* Custom code is now provided solely using partial classes. The Foo.custom
files that were used before are now proper Foo.cs files.
* Various enhancements to the parser and the generator.
Bug fixes
---------
* generator: Properly handle boolean attributes when parsing the GAPI XML
* glib: do not call g_thread_ functions in GLib >= 2.31
* gtk: Fix resurrection cycles in container subclasses (bxc#3801)
Lots of other bug fixes are included, in particular all the relevant fixes from
the stable 2.12 branch.

View file

@ -1,67 +0,0 @@
# Readme
## Overview
This is a series of python scripts to generate the binaries and NuGet Packages for GtkSharp and Gtk
* NuGet Packages for the GtkSharp .Net libraries
* NuGet Packages for the Windows 32bit / 64bit Gtk dll's
## Windows
### Depends
The following is used as part of the build process
* MSYS2 - Windows install
Also it's assumed that you've already installed the 32bit and 64bit binaries for gtk within the MSYS environment
if your going to generate the Win32 / Win64 Nuget Packages for windows
```
pacman -S mingw-w64-i686-pango mingw-w64-i686-atk mingw-w64-i686-gtk3
pacman -S mingw-w64-x86_64-pango mingw-w64-x86_64-atk mingw-w64-x86_64-gtk3
```
And installed the executor python module
```
C:\Python35\Scripts\pip.exe install executor yattag vsgen
```
### Running Build
To run the build
```
cd gtk-sharp\NuGet
build.py all
```
## Linux
### Depends
For Ubuntu we need to install pip for python 3 and a few other packages
```
sudo apt-get install python3-pip autoconf libtool libtool-bin mono-complete
sudo apt-get install libglib2.0-dev libpango1.0-dev libatk1.0-dev libgtk-3-dev
```
Then install the executor python module
```
pip3 install executor yattag vsgen
```
The version of Nuget needs to be the latest for linux
```
sudo wget https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe -O /usr/local/bin/nuget.exe
sudo chmod +x /usr/local/bin/nuget.exe
```
### Running Build
To run the build
```
cd gtk-sharp/NuGet
chmod +x build.py
./build.py all
```

View file

@ -1,92 +0,0 @@
#!/usr/bin/python3
"""Script to build out the .Net dll's and package them into a Nuget Package for gtksharp3"""
import sys
from pybuild.profiles.GtkSharp import GtkSharp
from pybuild.profiles.GtkSharp_Core import GtkSharp_Core
from pybuild.profiles.Glue_Win32 import Glue_Win32
from pybuild.profiles.Glue_Win64 import Glue_Win64
from pybuild.profiles.Gtk_Win32 import Gtk_Win32
from pybuild.profiles.Gtk_Win64 import Gtk_Win64
from pybuild.Helper import Helper
# Ideally I'd like to see the GtkSharp Build system redone via the build system of .Net core (dotnet cli tool)
# and using Scons / Cuppa for the glue libraries
# For now though we rely on the use of make to build the .Net dll's
# under linux we run this natively, under windows we can use MSYS2
class Build(object):
# Clean the Build directory
@staticmethod
def clean():
"""Clean the build dir"""
Helper.emptydir('./build')
print("Clean finished")
# Print Usage
@staticmethod
def usage():
print("Please use GtkSharp3_Build.py <target> where <target> is one of")
print(" clean to clean the output directory: ./build")
print(" gtksharp to build .Net libs for GtkSharp, via .Net 4.5")
print(" gtksharp_core to build .Net libs for GtkSharp, via .Net 4.5 using the dotnet cli tool")
print(" gtk_win32 to build the Nuget package for GtkSharp.Win32")
print(" gtk_win64 to build the Nuget package for GtkSharp.Win64")
print(" all to make all")
def main(self):
if len(sys.argv) != 2:
self.usage()
return
if sys.argv[1] == 'all':
self.runbuild('gtksharp')
self.runbuild('gtk_win32')
self.runbuild('gtk_win64')
return
self.runbuild(sys.argv[1])
def runbuild(self, build_type):
if build_type == 'clean':
self.clean()
return
Helper.install_pacman_deps()
if build_type == 'gtksharp':
profile = GtkSharp()
profile.clean()
profile.build()
profile.copy()
profile.build_nuget()
elif build_type == 'gtksharp_core':
profile = GtkSharp_Core()
profile.clean()
profile.build()
profile.copy_dll()
profile.build_nuget()
elif build_type == 'gtk_win32':
profile_glue = Glue_Win32()
profile_glue.clean()
profile_glue.build()
profile_gtk = Gtk_Win32()
profile_gtk.build()
profile_gtk.build_nuget()
elif build_type == 'gtk_win64':
profile_glue = Glue_Win64()
profile_glue.clean()
profile_glue.build()
profile = Gtk_Win64()
profile.build()
profile.build_nuget()
if __name__ == "__main__":
Build().main()

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CopyNativeDLLs" AfterTargets="AfterBuild">
<CreateItem Include="$(MSBuildThisFileDirectory)\*.dl_">
<Output TaskParameter="Include" ItemName="NativeDLLs" />
</CreateItem>
<Copy SourceFiles="@(NativeDLLs)" DestinationFiles="@(NativeDLLs->'$(OutDir)\%(RecursiveDir)%(Filename).dll')" />
</Target>
</Project>

View file

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>GBD.GtkSharp</id>
<version>3.22.0</version>
<authors>Grbd</authors>
<owners>grbd</owners>
<licenseUrl>https://github.com/mono/gtk-sharp/blob/master/COPYING</licenseUrl>
<projectUrl>https://github.com/mono/gtk-sharp</projectUrl>
<iconUrl>https://upload.wikimedia.org/wikipedia/en/5/5f/Gtk_Sharp_Logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Gtk# is a .NET language binding for the GTK+ toolkit and assorted GNOME libraries. Gtk# is free software, licensed under the GNU LGPL.</description>
<copyright>Copyright 2016</copyright>
<tags>GTK3 GTK# gtk3-sharp</tags>
</metadata>
</package>

View file

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CopyMapConfigs" AfterTargets="AfterBuild">
<CreateItem Include="$(MSBuildThisFileDirectory)\*.config">
<Output TaskParameter="Include" ItemName="MapConfigs" />
</CreateItem>
<Copy SourceFiles="@(MapConfigs)" DestinationFiles="@(MapConfigs->'$(OutDir)\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
</Project>

View file

@ -1,101 +0,0 @@
#!/usr/bin/python3
"""Helper Functions"""
import os
from os.path import join
from executor import ExternalCommand
class Helper(object):
@staticmethod
def emptydir(top):
"""Empty a Directory"""
if top == '/' or top == "\\":
return
else:
for root, dirs, files in os.walk(top, topdown=False):
for name in files:
os.remove(os.path.join(root, name))
for name in dirs:
os.rmdir(os.path.join(root, name))
@staticmethod
def run_cmd(cmdarray, workdir):
"""Run a command on the shell"""
cmd = ExternalCommand(*cmdarray, capture=True, capture_stderr=True, async=True, shell=False, directory=workdir)
cmd.start()
last_out = ''
last_err = ''
while cmd.is_running:
new_out = cmd.stdout.decode(cmd.encoding, 'ignore').replace(last_out, '')
new_err = cmd.stderr.decode(cmd.encoding, 'ignore').replace(last_err, '')
last_out += new_out
last_err += new_err
new_out = new_out.replace(u"\u2018", "'").replace(u"\u2019", "'")
new_err = new_err.replace(u"\u2018", "'").replace(u"\u2019", "'")
if new_out != '':
print(new_out, end='')
if new_err != '':
print(new_err, end='')
if cmd.returncode != 0:
raise RuntimeError('Failure to run command')
return cmd
@staticmethod
def winpath_to_msyspath(winpath):
"""Convert a Windows path to a Msys type path"""
winpath = '/' + winpath[0] + winpath[2:].replace('\\', '/')
return winpath
@staticmethod
def get_gtksharp_version(srcdir):
"""Get the Version of GTK Sharp in use from the source directory"""
ret = None
with open(join(srcdir, 'configure.ac')) as f:
for line in f:
if line.startswith('AC_INIT'):
ret = line
ret = ret.replace('AC_INIT(gtk-sharp,', '')
ret = ret.replace(' ', '')
ret = ret.replace(')\n', '')
break
return ret
@staticmethod
def install_pacman_deps():
Helper.run_pacman_cmd(['-Sy'])
args = ['--needed', '--nodeps', '--noprogressbar', '--noconfirm', '-S']
args += 'unzip autoconf automake libtool pkg-config make'.split(' ')
deps_arch = 'gcc glib2 pango atk gtk3 zlib libiconv'
args += ['mingw-w64-i686-{0}'.format(i) for i in deps_arch.split(' ')]
args += ['mingw-w64-x86_64-{0}'.format(i) for i in deps_arch.split(' ')]
Helper.run_pacman_cmd(args)
@staticmethod
def run_pacman_cmd(pacman_args):
msyspath = 'C:\\msys64'
pacman_path = join(msyspath, 'usr\\bin\\pacman.exe')
return Helper.run_cmd([pacman_path] + pacman_args, msyspath)
@staticmethod
def get_gtk_version_msys(msyspath):
ret = ''
pacman_path = join(msyspath, 'usr\\bin\\pacman.exe')
# pull version from msys2 / pacman
# pacman -Qi mingw-w64-i686-gtk3
cmd = Helper.run_cmd([pacman_path, '-Qi', 'mingw-w64-i686-gtk3'], msyspath)
for line in cmd.output.split('\n'):
if 'Version' in line:
ret = line.replace('Version', '')
ret = ret.replace(' ', '').replace(':', '')
if '-' in ret:
ret = ret[:-2]
break
return ret

View file

@ -1,88 +0,0 @@
#!/usr/bin/python3
"""Base class for Settings profiles"""
import os
import shutil
from os.path import abspath, join
from xml.etree import ElementTree as et
from pybuild.Helper import Helper
class ProfileBase(object):
def __init__(self):
"""Class Init"""
self._NuGetPath = 'nuget.exe'
self._SrcDir = '../'
self._BuildDir = './build'
self._PackageDestination = './nupkg'
self._NuGet_PackageName = ''
self._MsysPath = 'C:\\msys64'
self._LinuxBashPath = '/bin/bash'
self._Version = '0.0.0'
@property
def NuGetPath(self):
return self._NuGetPath
@property
def SrcDir(self):
return abspath(self._SrcDir)
@property
def BuildDir(self):
return abspath(self._BuildDir)
@property
def Build_NugetDir(self):
return abspath(join(self._BuildDir, 'nuget'))
@property
def PackageDestination(self):
return abspath(self._PackageDestination)
@property
def NuGet_PackageName(self):
return self._NuGet_PackageName
@property
def MsysPath(self):
return abspath(self._MsysPath)
@property
def LinuxBashPath(self):
return abspath(self._LinuxBashPath)
@property
def Version(self):
return self._Version
@staticmethod
def clean():
"""Clean the build dir"""
Helper.emptydir('./build')
print("Clean finished")
def build_nuget(self):
"""Package up a nuget file based on the default build"""
# Copy Nuget Spec file
shutil.copy('./misc/GtkSharp.nuspec', self.Build_NugetDir)
# Edit the XML version / package name in the .nuspec file
nuspecfile = join(self.Build_NugetDir, 'GtkSharp.nuspec')
et.register_namespace('', 'http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd')
tree = et.parse(nuspecfile)
xmlns = {'nuspec': '{http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd}'}
tree.find('.//{nuspec}version'.format(**xmlns)).text = self.Version
tree.find('.//{nuspec}id'.format(**xmlns)).text = self.NuGet_PackageName
tree.write(nuspecfile)
# Run Nuget
Helper.run_cmd([self.NuGetPath, 'pack', 'GtkSharp.nuspec'], self.Build_NugetDir)
# Copy Nuget files out of build directory
nugetfile = join(self.Build_NugetDir, self.NuGet_PackageName + '.' + self.Version + '.nupkg')
os.makedirs(self.PackageDestination, exist_ok=True)
shutil.copy(nugetfile, self.PackageDestination)
print('Generation of Nuget package complete - ' + self.NuGet_PackageName)

View file

@ -1,54 +0,0 @@
#!/usr/bin/python3
import ntpath
import os
import shutil
from glob import glob
from os.path import abspath, join
from pybuild.Helper import Helper
from pybuild.ProfileBase import ProfileBase
from pybuild.profiles.GtkSharp import GtkSharp
class Glue_Win32(ProfileBase):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp.Win32.Glue'
self._Version = Helper.get_gtksharp_version(self.SrcDir)
self.MSYSTEM = 'MINGW32'
def Get_Dlls_GtkSharp_Glue(self):
ret = []
# Gtksharp Glue libs
ret.append(['atk/glue/.libs/*atksharpglue-3.dll', 'atksharpglue-3.dl_'])
ret.append(['pango/glue/.libs/*pangosharpglue-3.dll', 'pangosharpglue-3.dl_'])
ret.append(['gio/glue/.libs/*giosharpglue-3.dll', 'giosharpglue-3.dl_'])
ret.append(['gtk/glue/.libs/*gtksharpglue-3.dll', 'gtksharpglue-3.dl_'])
return ret
def build(self):
"""Package up a nuget file based on the default build"""
if os.name != 'nt':
print("Skipping Native Nuget package build, as this needs to be run on Windows")
return
# Trigger build of gtksharp with specific bash for Mingw32
builder = GtkSharp()
builder.MSYSTEM = self.MSYSTEM
builder.build()
net45_build_dir = join(self.Build_NugetDir, 'build', 'net45')
os.makedirs(net45_build_dir, exist_ok=True)
print('Copying Files')
dll_list = self.Get_Dlls_GtkSharp_Glue()
for item in dll_list:
src = glob(abspath(join(self.SrcDir, item[0])))[0]
f_basename, f_extension = os.path.splitext(ntpath.basename(src))
dest = join(net45_build_dir, item[1])
shutil.copy(src, dest)

View file

@ -1,13 +0,0 @@
#!/usr/bin/python3
from pybuild.Helper import Helper
from pybuild.profiles.Glue_Win32 import Glue_Win32
class Glue_Win64(Glue_Win32):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp.Win64.Glue'
self._Version = Helper.get_gtksharp_version(self.SrcDir)
self.MSYSTEM = 'MINGW64'

View file

@ -1,73 +0,0 @@
#!/usr/bin/python3
import os
import shutil
from os.path import abspath, join
from pybuild.Helper import Helper
from pybuild.ProfileBase import ProfileBase
class GtkSharp(ProfileBase):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp'
self._Version = Helper.get_gtksharp_version(self.SrcDir)
self.MSYSTEM = 'MINGW64'
@property
def Build_ScriptDir(self):
return abspath(join(self._BuildDir, 'scripts'))
def build(self):
"""Build the gtksharp binaries for .Net 4.5"""
os.makedirs(self.Build_ScriptDir, exist_ok=True)
buildfile = join(self.Build_ScriptDir, 'net45_build.sh')
buildbatch = join(self.Build_ScriptDir, 'net45_build.bat')
# run script via MSYS for windows, or shell for linux
if os.name == 'nt':
print("Building .Net GtkSharp using MSYS2")
with open(buildfile, 'w') as f:
f.write('PATH=/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/Windows/v10.0A/bin/NETFX\ 4.6\ Tools/:$PATH\n')
f.write('PATH=/c/Windows/Microsoft.NET/Framework/v4.0.30319/:$PATH\n')
f.write('cd ' + Helper.winpath_to_msyspath(self.SrcDir + '\n'))
f.write('./autogen.sh --prefix=/tmp/install\n')
f.write('make clean\n')
f.write('make\n')
bashexe = join(self.MsysPath, 'usr\\bin\\bash.exe')
with open(buildbatch, 'w') as f:
f.write('set MSYSTEM=' + self.MSYSTEM + '\n')
f.write(bashexe + ' --login ' + buildfile)
cmds = ['C:\Windows\System32\cmd.exe', '/C', buildbatch]
cmd = Helper.run_cmd(cmds, self.SrcDir)
else:
print("Building using Linux shell")
with open(buildfile, 'w') as f:
f.write('cd ' + self.SrcDir + '\n')
f.write('./autogen.sh --prefix=/tmp/install\n')
f.write('make clean\n')
f.write('make\n')
cmds = [self.LinuxBashPath, buildfile]
cmd = Helper.run_cmd(cmds, self.SrcDir)
def copy(self):
"""Copy the .Net 4.5 dll's to the build dir"""
net45_build_dir = join(self.Build_NugetDir, 'build', 'net45')
net45_lib_dir = join(self.Build_NugetDir, 'lib', 'net45')
os.makedirs(net45_build_dir, exist_ok=True)
os.makedirs(net45_lib_dir, exist_ok=True)
shutil.copy('./misc/GtkSharp.targets', net45_build_dir)
dll_list = ['atk', 'cairo', 'gdk', 'gio', 'glib', 'gtk', 'pango']
for item in dll_list:
shutil.copy(join(self.SrcDir, item, item + "-sharp.dll"), net45_lib_dir)
shutil.copy(join(self.SrcDir, item, item + "-sharp.pdb"), net45_lib_dir)
if item != 'cairo':
shutil.copy(join(self.SrcDir, item, item + '-sharp.dll.config'), net45_build_dir)

View file

@ -1,155 +0,0 @@
#!/usr/bin/python3
import os
import shutil
from glob import glob
from os.path import abspath, join
import vsgen
from pybuild.Helper import Helper
from pybuild.ProfileBase import ProfileBase
from pybuild.vsgenext.CoreVSProject import CoreVSProject
# Note at this stage we can't complile GtkSharp using the .Net Core platform libraries, such as netstandard1.6
# https://docs.microsoft.com/en-us/dotnet/articles/standard/library
# This is due to some small api changes in the platform that the Gtksharp code would need to be adjusted to
# We can however use the newer dotnet build system specifying the net461 platform
# This is the same set of platform libs under the surface (using mono) but a step in the right direction
# with modernising the build system. One advantage to this newer build system is that we don't need to list all the .cs files
# Within the project files (see generated .xproj file and project.json)
# TODO look into package for symbols, via NuGet -symbols
class GtkSharp_Core(ProfileBase):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp.Core'
self._Version = Helper.get_gtksharp_version(self.SrcDir)
self.Solution = None
self.BuildConfig = 'Release'
@property
def Build_CoreDir(self):
return abspath(join(self._BuildDir, 'core'))
@property
def Dotnet_BuildExe(self):
return 'dotnet.exe'
def Copy_CS_Files(self, csfiles):
srclist = glob(join(self.SrcDir, csfiles[0]))
destdir = join(self.Build_CoreDir, csfiles[1])
os.makedirs(destdir, exist_ok=True)
for fname in srclist:
shutil.copy(fname, destdir)
def SetupProject(self, projname):
proj = CoreVSProject()
proj.Name = projname
proj.RootNamespace = projname
proj.FileName = join(self.Build_CoreDir, projname, projname + '.xproj')
proj.Frameworks = {'net461': {}}
proj.Depends = {}
proj.BuildOptions = {"allowUnsafe": True, "outputName": projname + "-sharp"}
proj.Version = self._Version
self.Solution.Projects.append(proj)
self.Solution.write()
return proj
def Build_Project(self, proj):
projdir = join(self.Build_CoreDir, proj.Name)
Helper.run_cmd([self.Dotnet_BuildExe, 'restore'], projdir)
Helper.run_cmd([self.Dotnet_BuildExe, 'build',
'--configuration', self.BuildConfig,
'--framework', 'net461',
'--output', join(self.Build_CoreDir, 'build')]
, projdir)
def build(self):
"""Build the gtksharp binaries for .Net 4.5"""
os.makedirs(self.Build_CoreDir, exist_ok=True)
self.Solution = vsgen.solution.VSGSolution()
self.Solution.FileName = join(self.Build_CoreDir, 'GtkSharp.sln')
# Build Glib
self.Copy_CS_Files(['glib/*.cs', 'glib/'])
proj = self.SetupProject('glib')
proj.write()
self.Build_Project(proj)
# Build Gio
self.Copy_CS_Files(['gio/*.cs', 'gio/'])
self.Copy_CS_Files(['gio/generated/GLib/*.cs', 'gio/generated/GLib/'])
proj = self.SetupProject('gio')
proj.Depends = {'glib': self._Version}
proj.write()
self.Build_Project(proj)
# Build Cairo
self.Copy_CS_Files(['cairo/*.cs', 'cairo/'])
proj = self.SetupProject('cairo')
proj.write()
self.Build_Project(proj)
# Build Pango
self.Copy_CS_Files(['pango/*.cs', 'pango/'])
self.Copy_CS_Files(['pango/generated/Pango/*.cs', 'pango/generated/Pango/'])
proj = self.SetupProject('pango')
proj.Depends = {'glib': self._Version,
'cairo': self._Version}
proj.write()
self.Build_Project(proj)
# Build Atk
self.Copy_CS_Files(['atk/*.cs', 'atk/'])
self.Copy_CS_Files(['atk/generated/Atk/*.cs', 'atk/generated/Atk/'])
proj = self.SetupProject('atk')
proj.Depends = {'glib': self._Version}
proj.write()
self.Build_Project(proj)
# Build Gdk
self.Copy_CS_Files(['gdk/*.cs', 'gdk/'])
self.Copy_CS_Files(['gdk/generated/Gdk/*.cs', 'gdk/generated/Gdk/'])
self.Copy_CS_Files(['gdk/generated/GLib/*.cs', 'gdk/generated/GLib/'])
proj = self.SetupProject('gdk')
proj.Depends = {'atk': self._Version,
'cairo': self._Version,
'gio': self._Version,
'glib': self._Version,
'pango': self._Version}
proj.write()
self.Build_Project(proj)
# Build Gtk
self.Copy_CS_Files(['gtk/*.cs', 'gtk/'])
self.Copy_CS_Files(['gtk/generated/GLib/*.cs', 'gtk/generated/GLib/'])
self.Copy_CS_Files(['gtk/generated/Gtk/*.cs', 'gtk/generated/Gtk/'])
proj = self.SetupProject('gtk')
proj.Depends = {'gdk': self._Version,
'glib': self._Version}
proj.write()
self.Build_Project(proj)
def copy_dll(self):
"""Copy the .Net 4.5 dll's to the build dir"""
net45_build_dir = join(self.Build_NugetDir, 'build', 'net45')
net45_lib_dir = join(self.Build_NugetDir, 'lib', 'net45')
os.makedirs(net45_build_dir, exist_ok=True)
os.makedirs(net45_lib_dir, exist_ok=True)
shutil.copy('./misc/GtkSharp.targets', net45_build_dir)
srclist = glob(join(self.Build_CoreDir, 'build', '*.dll'))
for item in srclist:
shutil.copy(item, net45_lib_dir)
# Get the Config files
dll_list = ['atk', 'cairo', 'gdk', 'gio', 'glib', 'gtk', 'pango']
for item in dll_list:
if item != 'cairo':
shutil.copy(join(self.SrcDir, item, item + '-sharp.dll.config'), net45_build_dir)

View file

@ -1,103 +0,0 @@
#!/usr/bin/python3
"""Build of GTK3 into a NuGet package - Windows 32bit"""
import ntpath
import os
import shutil
from glob import iglob
from os.path import abspath, join
from pybuild.Helper import Helper
from pybuild.ProfileBase import ProfileBase
class Gtk_Win32(ProfileBase):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp.Win32'
self._MingwBinPath = join(self.MsysPath + '\\mingw32\\bin')
self.arch = 'Win32'
self._Version = Helper.get_gtk_version_msys(self.MsysPath)
@property
def MingwBinPath(self):
return abspath(self._MingwBinPath)
def Get_Dlls_Native_GTK(self):
ret = []
# Gtk
ret.append('libgtk-3-0.dll')
ret.append('libgdk-3-0.dll')
# atk
ret.append('libatk-1.0-0.dll')
# cairo
ret.append('libcairo-2.dll')
ret.append('libcairo-gobject-2.dll')
# gdk-pixbuf
ret.append('libgdk_pixbuf-2.0-0.dll')
# glib2
ret.append('libgio-2.0-0.dll')
ret.append('libglib-2.0-0.dll')
ret.append('libgmodule-2.0-0.dll')
ret.append('libgobject-2.0-0.dll')
# pango
ret.append('libpango-1.0-0.dll')
ret.append('libpangocairo-1.0-0.dll')
ret.append('libpangoft2-1.0-0.dll')
ret.append('libpangowin32-1.0-0.dll')
return ret
def Get_Dlls_Native_GTK_Deps(self):
ret = []
# Determined by using PE Explorer
ret.append('libgcc_*.dll')
ret.append('libepoxy-0.dll')
ret.append('libintl-8.dll')
ret.append('libwinpthread-1.dll')
ret.append('libiconv-2.dll')
ret.append('libfontconfig-1.dll')
ret.append('libexpat-1.dll')
ret.append('libfreetype-6.dll')
ret.append('libpixman-1-0.dll')
ret.append('libpng16-16.dll')
ret.append('zlib1.dll')
ret.append('libpcre-1.dll')
ret.append('libffi-6.dll')
ret.append('libharfbuzz-0.dll')
ret.append('libgraphite2.dll')
ret.append('libstdc++-6.dll')
ret.append('libbz2-1.dll')
return ret
def build(self):
"""Package up a nuget file based on the default build"""
if os.name != 'nt':
print("Skipping Native Nuget package build, as this needs to be run on Windows")
return
net45_build_dir = join(self.Build_NugetDir, 'build', 'net45')
os.makedirs(net45_build_dir, exist_ok=True)
print('Copying Files')
shutil.copy('./misc/GtkSharp.Native.targets', join(net45_build_dir, 'GtkSharp.' + self.arch + '.targets'))
# Copy dlls
dll_list = []
dll_list += self.Get_Dlls_Native_GTK()
dll_list += self.Get_Dlls_Native_GTK_Deps()
for item in dll_list:
src = join(self.MingwBinPath, item)
srclist = iglob(src)
for fname in srclist:
f_basename, f_extension = os.path.splitext(ntpath.basename(fname))
shutil.copy(fname, join(net45_build_dir, f_basename + '.dl_'))

View file

@ -1,17 +0,0 @@
#!/usr/bin/python3
"""Build of GTK3 into a NuGet package - Windows 64bit"""
from os.path import join
from pybuild.Helper import Helper
from pybuild.profiles.Gtk_Win32 import Gtk_Win32
class Gtk_Win64(Gtk_Win32):
def __init__(self):
"""Class Init"""
super().__init__()
self._NuGet_PackageName = 'GtkSharp.Win64'
self._MingwBinPath = join(self.MsysPath + '\\mingw64\\bin')
self.arch = 'Win64'
self._Version = Helper.get_gtk_version_msys(self.MsysPath)

View file

@ -1,146 +0,0 @@
#!/usr/bin/python3
import json
import os
from collections import OrderedDict
from os.path import join
from xml.etree import ElementTree as et
from vsgen.project import VSGProject
from yattag import indent
class CoreVSProject(VSGProject):
"""
CoreVSProject extends :class:`~vsgen.project.VSGProject` with data and logic needed to create a `.xproj` file.
:ivar str TargetFrameworkVersion: The target framework version.
:ivar str BaseIntermediateOutputPath: Intermediate path for building the output.
:ivar str ProjectXml: Override the xml within the .xproj file.
:ivar str ProjectJson: Override the json within the project.lock file.
"""
__project_type__ = 'netcore'
__writable_name__ = "Visual Studio .Net Core Project"
__registerable_name__ = "Visual Studio C# Compiler"
def __init__(self, **kwargs):
"""
Constructor.
:param kwargs: List of arbitrary keyworded arguments to be processed as instance variable data
"""
super(CoreVSProject, self).__init__(**kwargs)
def _import(self, datadict):
"""
Internal method to import instance variables data from a dictionary
:param dict datadict: The dictionary containing variables values.
"""
super(CoreVSProject, self)._import(datadict)
self.TargetFrameworkVersion = datadict.get('TargetFrameworkVersion', 'v4.6.1')
self.BaseIntermediateOutputPath = datadict.get('BaseIntermediateOutputPath', '.\obj')
self.ProjectXml = datadict.get('ProjectXml', None)
self.ProjectJson = datadict.get('ProjectJson', None)
self.Version = datadict.get('Version', '1.0.0-*')
self.Depends = datadict.get('Depends', {'NETStandard.Library': '1.6.0'})
self.Frameworks = datadict.get('Frameworks', None)
self.BuildOptions = datadict.get('BuildOptions', None)
def get_project_json(self):
"""
Get the json for use in Project.lock
"""
data = OrderedDict()
ver = {'version': self.Version}
data.update(ver)
depends = self.Depends
depends2 = {'dependencies': depends}
data.update(depends2)
if self.Frameworks is not None:
frameworks = {'frameworks': self.Frameworks}
else:
frameworks = {'frameworks': {'netstandard1.6': {'imports': 'dnxcore50'}}}
data.update(frameworks)
if self.BuildOptions is not None:
buildopts = {'buildOptions': self.BuildOptions}
data.update(buildopts)
return data
def get_project_xml(self):
"""
Get the xml for use in the xproj file
"""
xml_projroot = et.Element('Project')
xml_projroot.set('ToolsVersion', '14.0')
xml_projroot.set('DefaultTargets', 'Build')
xml_projroot.set('xmlns', 'http://schemas.microsoft.com/developer/msbuild/2003')
propgroup1 = et.SubElement(xml_projroot, 'PropertyGroup')
studiover = et.SubElement(propgroup1, 'VisualStudioVersion')
studiover.set('Condition', "'$(VisualStudioVersion)' == ''")
studiover.text = '14.0'
vstoolspath = et.SubElement(propgroup1, 'VSToolsPath')
vstoolspath.set('Condition', "'$(VSToolsPath)' == ''")
vstoolspath.text = r"$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)"
import1 = et.SubElement(xml_projroot, 'Import')
import1.set('Project', '$(VSToolsPath)\DotNet\Microsoft.DotNet.Props')
import1.set('Condition', "'$(VSToolsPath)' != ''")
propgroup2 = et.SubElement(xml_projroot, 'PropertyGroup')
propgroup2.set('Label', 'Globals')
projguid = et.SubElement(propgroup2, 'ProjectGuid')
projguid.text = self.lower(self.GUID)
rootnamespace = et.SubElement(propgroup2, 'RootNamespace')
rootnamespace.text = self.RootNamespace
baseintermediateoutputpath = et.SubElement(propgroup2, 'BaseIntermediateOutputPath')
baseintermediateoutputpath.set('Condition', "'$(BaseIntermediateOutputPath)'=='' ")
baseintermediateoutputpath.text = self.BaseIntermediateOutputPath
targetframeworkversion = et.SubElement(propgroup2, 'TargetFrameworkVersion')
targetframeworkversion.text = self.TargetFrameworkVersion
propgroup3 = et.SubElement(xml_projroot, 'PropertyGroup')
schemaver = et.SubElement(propgroup3, 'SchemaVersion')
schemaver.text = '2.0'
import2 = et.SubElement(xml_projroot, 'Import')
import2.set('Project', '$(VSToolsPath)\DotNet\Microsoft.DotNet.targets')
import2.set('Condition', "'$(VSToolsPath)' != ''")
etstr = et.tostring(xml_projroot, encoding='utf-8', method='xml').decode('utf-8')
outtxt = indent(etstr)
return outtxt
def write(self):
"""
Creates the project files.
"""
npath = os.path.normpath(self.FileName)
(filepath, filename) = os.path.split(npath)
os.makedirs(filepath, exist_ok=True)
projectFileName = os.path.normpath(self.FileName)
projxml = ''
if self.ProjectXml is None:
projxml = self.get_project_xml()
else:
projxml = self.ProjectXml
with open(projectFileName, 'wt') as f:
f.write(projxml)
jsonFileName = join(filepath, 'project.json')
if self.ProjectJson is None:
projjson = self.get_project_json()
else:
projjson = self.ProjectJson
with open(jsonFileName, 'w') as f:
txt = json.dumps(projjson, indent=2, separators=(',', ': '))
f.write(txt)

View file

@ -1,25 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "App", "App", "{52C7113D-CB6A-4A0E-AD00-F2840069C3A5}"
EndProject
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "GtkSharp-NugetBuild", "GtkSharp-NugetBuild\GtkSharp-NugetBuild.pyproj", "{222475C5-78B6-4961-9552-D83D2C65A9A1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{222475C5-78B6-4961-9552-D83D2C65A9A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{222475C5-78B6-4961-9552-D83D2C65A9A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{222475C5-78B6-4961-9552-D83D2C65A9A1} = {52C7113D-CB6A-4A0E-AD00-F2840069C3A5}
EndGlobalSection
EndGlobal

View file

@ -1,93 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>222475c5-78b6-4961-9552-d83d2c65a9a1</ProjectGuid>
<ProjectHome>
</ProjectHome>
<StartupFile>..\..\build.py</StartupFile>
<SearchPath>..\..\;..\..\pybuild\;..\..\pybuild\vsgen\</SearchPath>
<WorkingDirectory>..\..\</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>GtkSharp-NugetBuild</Name>
<RootNamespace>GtkSharp3-Build</RootNamespace>
<IsWindowsApplication>False</IsWindowsApplication>
<InterpreterId>{9a7a9026-48c1-4688-9d5d-e5699d47d074}</InterpreterId>
<InterpreterVersion>3.5</InterpreterVersion>
<LaunchProvider>Standard Python launcher</LaunchProvider>
<EnableNativeCodeDebugging>False</EnableNativeCodeDebugging>
<CommandLineArguments>all</CommandLineArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
</PropertyGroup>
<ItemGroup>
<InterpreterReference Include="{9a7a9026-48c1-4688-9d5d-e5699d47d074}\3.5" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\build.py">
<Link>build.py</Link>
</Compile>
<Compile Include="..\..\pybuild\Helper.py">
<Link>pybuild\Helper.py</Link>
</Compile>
<Compile Include="..\..\pybuild\ProfileBase.py">
<Link>pybuild\ProfileBase.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\Glue_Win32.py">
<Link>pybuild\profiles\Glue_Win32.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\Glue_Win64.py">
<Link>pybuild\profiles\Glue_Win64.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\GtkSharp.py">
<Link>pybuild\profiles\GtkSharp.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\GtkSharp_Core.py">
<Link>pybuild\profiles\GtkSharp_Core.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\Gtk_Win32.py">
<Link>pybuild\profiles\Gtk_Win32.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\Gtk_Win64.py">
<Link>pybuild\profiles\Gtk_Win64.py</Link>
</Compile>
<Compile Include="..\..\pybuild\profiles\__init__.py">
<Link>pybuild\profiles\__init__.py</Link>
</Compile>
<Compile Include="..\..\pybuild\vsgenext\CoreVSProject.py">
<Link>pybuild\vsgenext\CoreVSProject.py</Link>
</Compile>
<Compile Include="..\..\pybuild\vsgenext\__init__.py">
<Link>pybuild\vsgenext\__init__.py</Link>
</Compile>
<Compile Include="..\..\pybuild\__init__.py">
<Link>pybuild\__init__.py</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="pybuild\" />
<Folder Include="pybuild\vsgenext\" />
<Folder Include="pybuild\profiles\" />
</ItemGroup>
<Import Condition="Exists($(PtvsTargetsFile))" Project="$(PtvsTargetsFile)" />
<Import Condition="!Exists($(PtvsTargetsFile))" Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in
the BeforeBuild and AfterBuild targets below. -->
<!--<Target Name="CoreCompile" />-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
</Project>

View file

View file

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

View file

Before

Width:  |  Height:  |  Size: 137 B

After

Width:  |  Height:  |  Size: 137 B

View file

Before

Width:  |  Height:  |  Size: 861 B

After

Width:  |  Height:  |  Size: 861 B

View file

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View file

Before

Width:  |  Height:  |  Size: 90 B

After

Width:  |  Height:  |  Size: 90 B

View file

Before

Width:  |  Height:  |  Size: 90 B

After

Width:  |  Height:  |  Size: 90 B

View file

Before

Width:  |  Height:  |  Size: 101 B

After

Width:  |  Height:  |  Size: 101 B

View file

Before

Width:  |  Height:  |  Size: 65 B

After

Width:  |  Height:  |  Size: 65 B

View file

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View file

Before

Width:  |  Height:  |  Size: 73 B

After

Width:  |  Height:  |  Size: 73 B

View file

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

View file

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 70 B

View file

Before

Width:  |  Height:  |  Size: 73 B

After

Width:  |  Height:  |  Size: 73 B

View file

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View file

Before

Width:  |  Height:  |  Size: 101 B

After

Width:  |  Height:  |  Size: 101 B

View file

Before

Width:  |  Height:  |  Size: 73 B

After

Width:  |  Height:  |  Size: 73 B

View file

Before

Width:  |  Height:  |  Size: 49 B

After

Width:  |  Height:  |  Size: 49 B

View file

Before

Width:  |  Height:  |  Size: 64 B

After

Width:  |  Height:  |  Size: 64 B

View file

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View file

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 81 B

View file

Before

Width:  |  Height:  |  Size: 92 B

After

Width:  |  Height:  |  Size: 92 B

Some files were not shown because too many files have changed in this diff Show more