Patch level : 12.00

Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
This commit is contained in:
Alessandro Bonazzi 2025-04-06 00:42:21 +02:00
parent 8f8b450425
commit 8c43d5cf2f
42696 changed files with 13125549 additions and 391 deletions

View File

@ -0,0 +1,28 @@
project(AES256)
cmake_minimum_required(VERSION 2.6)
enable_testing()
set(compiler_common_flags "-ggdb -Wall -Wsign-compare -Wformat-security -Wpointer-arith")
set(compiler_common_flags "${compiler_common_flags} -fPIC -fdiagnostics-show-option")
set(compiler_common_flags "${compiler_common_flags} -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT")
set(CMAKE_C_FLAGS "${compiler_common_flags} -Wmissing-prototypes ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${compiler_common_flags} -Wnon-virtual-dtor -Woverloaded-virtual ${CMAKE_CXX_FLAGS}")
IF (NOT LIB_SUFFIX)
IF (CMAKE_SIZEOF_VOID_P EQUAL 4)
SET(LIB_SUFFIX "")
ELSE (CMAKE_SIZEOF_VOID_P EQUAL 4)
SET(LIB_SUFFIX 64)
ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 4)
ENDIF (NOT LIB_SUFFIX)
include_directories(src)
add_subdirectory(src)
add_subdirectory(utils)
add_subdirectory(tests)

336
libraries/Aes256/COPYING Normal file
View File

@ -0,0 +1,336 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 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.
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 Library 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.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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. Hereny 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 Section

View File

@ -0,0 +1,504 @@
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.
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.
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.
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 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.
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.
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.
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 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!

View File

@ -0,0 +1,61 @@
# Aes256
Welcome to Aes256 library
Author: Danilo Treffiletti <urban82@gmail.com>
## About
Aes256 is a library written in C++ that offer AES 256 bit encryption
and decryption.
It use a salt to extend the encryption key to 256 bit. The encrypted
stream is aware of this salt and of the padding added to complete last
encryption block.
A test of functionalities (with test of the AES 256 test vectors) is
included.
Two utilities to encrypt and decrypt files are also included.
## Compile
To compile Aes256, use cmake:
```shell
$ mkdir build
$ cd build
$ cmake ..
$ make
```
The library is compiled as shared library, so it can be linked in any
project.
To execute the test, type:
```shell
$ make test
```
## License
Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
All rights reserved.
Aes256 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.1
of the License, or (at your option) any later version.
Aes256 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 Aes256.
If not, see <http://www.gnu.org/licenses/>.
A copy of the license is included in the files COPYING and COPYING.LESSER.

View File

@ -0,0 +1,80 @@
# Copyright (c) 2014, Danilo Treffiletti urban82@gmail.com
# All rights reserved.
# Aes256 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.1 of the License, or (at your option) any later version.
# Aes256 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 Aes256. If not, see http://www.gnu.org/licenses/.
# A copy of the license is included in the files COPYING and COPYING.LESSER.
%global _prefix /usr/local
%global SONAME aes256
Name: Aes256
Version: 0.1
Release: 0%{?dist}
Summary: AES 256 bit encryption and decryption
License: LGPL-2.1
Group: Productivity
Url: https://github.com/Urban82/Aes256
Source0: %{name}.tar.gz
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: x86_64
%description
Aes256 is a library written in C++ that offer AES 256 bit encryption and decryption.
%package devel
Summary: Header files and libraries for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{SONAME} = %{version}
%description devel
The %{name}-devel package contains the header files and
libraries for aes256.
%package libs
Summary: Shared library for %{name}
Group: Productivity
%description libs
Shared library for %{name}.
%prep
%setup -n %{name}
%build
mkdir -p build && cd build && cmake ../ && make -j16
%install
cd build && make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.a' -delete
%post
# -n %{libname} -p /sbin/ldconfig
%postun
# -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING README.md
%{_bindir}/encrypt
%{_bindir}/decrypt
#%attr(0755,root,root) %{_bindir}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/
%{_libdir}/lib%{SONAME}.so*
%files libs
%defattr(0755,root,root,0755)
%{_libdir}/lib%{SONAME}.so.*
%changelog

View File

@ -0,0 +1,9 @@
add_library(aes256 SHARED aes256.cpp)
SET_TARGET_PROPERTIES(
aes256
PROPERTIES
SOVERSION 0
VERSION 0.1)
INSTALL(TARGETS aes256 LIBRARY DESTINATION lib${LIB_SUFFIX})
INSTALL(DIRECTORY ./ DESTINATION include FILES_MATCHING PATTERN "*.hpp")

View File

@ -0,0 +1,568 @@
/*
* aes256.cpp
*
* Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
* All rights reserved.
*
* This file is part of Aes256.
*
* Aes256 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.1
* of the License, or (at your option) any later version.
*
* Aes256 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 Aes256.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "aes256.hpp"
#include <iostream>
#include <stdlib.h>
#define FE(x) (((x) << 1) ^ ((((x)>>7) & 1) * 0x1b))
#define FD(x) (((x) >> 1) ^ (((x) & 1) ? 0x8d : 0))
#define KEY_SIZE 32
#define NUM_ROUNDS 14
unsigned char rj_xtime(unsigned char x);
const unsigned char sbox[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,
0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0,
0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc,
0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a,
0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75,
0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84,
0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b,
0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85,
0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8,
0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2,
0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17,
0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88,
0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb,
0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79,
0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9,
0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6,
0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a,
0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e,
0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94,
0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68,
0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16
};
const unsigned char sboxinv[256] = {
0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38,
0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb,
0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb,
0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d,
0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2,
0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25,
0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92,
0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda,
0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a,
0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06,
0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b,
0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea,
0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85,
0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e,
0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b,
0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20,
0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31,
0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f,
0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef,
0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0,
0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26,
0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d
};
Aes256::Aes256(const ByteArray& key)
: m_key(ByteArray(key.size() > KEY_SIZE ? KEY_SIZE : key.size(), 0))
, m_salt(ByteArray(KEY_SIZE - m_key.size(), 0))
, m_rkey(ByteArray(KEY_SIZE, 0))
, m_buffer_pos(0)
, m_remainingLength(0)
, m_decryptInitialized(false)
{
for(ByteArray::size_type i = 0; i < m_key.size(); ++i)
m_key[i] = key[i];
}
Aes256::~Aes256()
{}
ByteArray::size_type Aes256::encrypt(const ByteArray& key, const ByteArray& plain, ByteArray& encrypted)
{
Aes256 aes(key);
aes.encrypt_start(plain.size(), encrypted);
aes.encrypt_continue(plain, encrypted);
aes.encrypt_end(encrypted);
return encrypted.size();
}
ByteArray::size_type Aes256::encrypt(const ByteArray& key, const unsigned char* plain, const ByteArray::size_type plain_length, ByteArray& encrypted)
{
Aes256 aes(key);
aes.encrypt_start(plain_length, encrypted);
aes.encrypt_continue(plain, plain_length, encrypted);
aes.encrypt_end(encrypted);
return encrypted.size();
}
ByteArray::size_type Aes256::decrypt(const ByteArray& key, const ByteArray& encrypted, ByteArray& plain)
{
Aes256 aes(key);
aes.decrypt_start(encrypted.size());
aes.decrypt_continue(encrypted, plain);
aes.decrypt_end(plain);
return plain.size();
}
ByteArray::size_type Aes256::decrypt(const ByteArray& key, const unsigned char* encrypted, const ByteArray::size_type encrypted_length, ByteArray& plain)
{
Aes256 aes(key);
aes.decrypt_start(encrypted_length);
aes.decrypt_continue(encrypted, encrypted_length, plain);
aes.decrypt_end(plain);
return plain.size();
}
ByteArray::size_type Aes256::encrypt_start(const ByteArray::size_type plain_length, ByteArray& encrypted)
{
m_remainingLength = plain_length;
// Generate salt
ByteArray::iterator it = m_salt.begin(), itEnd = m_salt.end();
while (it != itEnd)
*(it++) = (rand() & 0xFF);
// Calculate padding
ByteArray::size_type padding = 0;
if (m_remainingLength % BLOCK_SIZE != 0)
padding = (BLOCK_SIZE - (m_remainingLength % BLOCK_SIZE));
m_remainingLength += padding;
// Add salt
encrypted.insert(encrypted.end(), m_salt.begin(), m_salt.end());
m_remainingLength += m_salt.size();
// Add 1 bytes for padding size
encrypted.push_back(padding & 0xFF);
++m_remainingLength;
// Reset buffer
m_buffer_pos = 0;
return encrypted.size();
}
ByteArray::size_type Aes256::encrypt_continue(const ByteArray& plain, ByteArray& encrypted)
{
ByteArray::const_iterator it = plain.begin(), itEnd = plain.end();
while(it != itEnd) {
m_buffer[m_buffer_pos++] = *(it++);
check_and_encrypt_buffer(encrypted);
}
return encrypted.size();
}
ByteArray::size_type Aes256::encrypt_continue(const unsigned char* plain, const ByteArray::size_type plain_length, ByteArray& encrypted)
{
ByteArray::size_type i = 0;
while(i < plain_length) {
m_buffer[m_buffer_pos++] = plain[i++];
check_and_encrypt_buffer(encrypted);
}
return encrypted.size();
}
void Aes256::check_and_encrypt_buffer(ByteArray& encrypted)
{
if (m_buffer_pos == BLOCK_SIZE) {
encrypt(m_buffer);
for (m_buffer_pos = 0; m_buffer_pos < BLOCK_SIZE; ++m_buffer_pos) {
encrypted.push_back(m_buffer[m_buffer_pos]);
--m_remainingLength;
}
m_buffer_pos = 0;
}
}
ByteArray::size_type Aes256::encrypt_end(ByteArray& encrypted)
{
if (m_buffer_pos > 0) {
while (m_buffer_pos < BLOCK_SIZE)
m_buffer[m_buffer_pos++] = 0;
encrypt(m_buffer);
for (m_buffer_pos = 0; m_buffer_pos < BLOCK_SIZE; ++m_buffer_pos) {
encrypted.push_back(m_buffer[m_buffer_pos]);
--m_remainingLength;
}
m_buffer_pos = 0;
}
return encrypted.size();
}
void Aes256::encrypt(unsigned char* buffer)
{
unsigned char i, rcon;
copy_key();
add_round_key(buffer, 0);
for(i = 1, rcon = 1; i < NUM_ROUNDS; ++i)
{
sub_bytes(buffer);
shift_rows(buffer);
mix_columns(buffer);
if( !(i & 1) )
expand_enc_key(&rcon);
add_round_key(buffer, i);
}
sub_bytes(buffer);
shift_rows(buffer);
expand_enc_key(&rcon);
add_round_key(buffer, i);
}
ByteArray::size_type Aes256::decrypt_start(const ByteArray::size_type encrypted_length)
{
register unsigned char j;
m_remainingLength = encrypted_length;
// Reset salt
for(j = 0; j < m_salt.size(); ++j)
m_salt[j] = 0;
m_remainingLength -= m_salt.size();
// Reset buffer
m_buffer_pos = 0;
m_decryptInitialized = false;
return m_remainingLength;
}
ByteArray::size_type Aes256::decrypt_continue(const ByteArray& encrypted, ByteArray& plain)
{
ByteArray::const_iterator it = encrypted.begin(), itEnd = encrypted.end();
while(it != itEnd) {
m_buffer[m_buffer_pos++] = *(it++);
check_and_decrypt_buffer(plain);
}
return plain.size();
}
ByteArray::size_type Aes256::decrypt_continue(const unsigned char* encrypted, const ByteArray::size_type encrypted_length, ByteArray& plain)
{
ByteArray::size_type i = 0;
while(i < encrypted_length) {
m_buffer[m_buffer_pos++] = encrypted[i++];
check_and_decrypt_buffer(plain);
}
return plain.size();
}
void Aes256::check_and_decrypt_buffer(ByteArray& plain)
{
if (!m_decryptInitialized && m_buffer_pos == m_salt.size() + 1) {
register unsigned char j;
ByteArray::size_type padding;
// Get salt
for(j = 0; j < m_salt.size(); ++j)
m_salt[j] = m_buffer[j];
// Get padding
padding = (m_buffer[j] & 0xFF);
m_remainingLength -= padding + 1;
// Start decrypting
m_buffer_pos = 0;
m_decryptInitialized = true;
}
else if (m_decryptInitialized && m_buffer_pos == BLOCK_SIZE) {
decrypt(m_buffer);
for (m_buffer_pos = 0; m_buffer_pos < BLOCK_SIZE; ++m_buffer_pos)
if (m_remainingLength > 0) {
plain.push_back(m_buffer[m_buffer_pos]);
--m_remainingLength;
}
m_buffer_pos = 0;
}
}
ByteArray::size_type Aes256::decrypt_end(ByteArray& plain)
{
return plain.size();
}
void Aes256::decrypt(unsigned char* buffer)
{
unsigned char i, rcon = 1;
copy_key();
for (i = NUM_ROUNDS / 2; i > 0; --i)
expand_enc_key(&rcon);
add_round_key(buffer, NUM_ROUNDS);
shift_rows_inv(buffer);
sub_bytes_inv(buffer);
for (i = NUM_ROUNDS, rcon = 0x80; --i;)
{
if( (i & 1) )
expand_dec_key(&rcon);
add_round_key(buffer, i);
mix_columns_inv(buffer);
shift_rows_inv(buffer);
sub_bytes_inv(buffer);
}
add_round_key(buffer, i);
}
void Aes256::expand_enc_key(unsigned char* rc)
{
register unsigned char i;
m_rkey[0] = m_rkey[0] ^ sbox[m_rkey[29]] ^ (*rc);
m_rkey[1] = m_rkey[1] ^ sbox[m_rkey[30]];
m_rkey[2] = m_rkey[2] ^ sbox[m_rkey[31]];
m_rkey[3] = m_rkey[3] ^ sbox[m_rkey[28]];
*rc = FE(*rc);
for(i = 4; i < 16; i += 4) {
m_rkey[i] = m_rkey[i] ^ m_rkey[i-4];
m_rkey[i+1] = m_rkey[i+1] ^ m_rkey[i-3];
m_rkey[i+2] = m_rkey[i+2] ^ m_rkey[i-2];
m_rkey[i+3] = m_rkey[i+3] ^ m_rkey[i-1];
}
m_rkey[16] = m_rkey[16] ^ sbox[m_rkey[12]];
m_rkey[17] = m_rkey[17] ^ sbox[m_rkey[13]];
m_rkey[18] = m_rkey[18] ^ sbox[m_rkey[14]];
m_rkey[19] = m_rkey[19] ^ sbox[m_rkey[15]];
for(i = 20; i < 32; i += 4) {
m_rkey[i] = m_rkey[i] ^ m_rkey[i-4];
m_rkey[i+1] = m_rkey[i+1] ^ m_rkey[i-3];
m_rkey[i+2] = m_rkey[i+2] ^ m_rkey[i-2];
m_rkey[i+3] = m_rkey[i+3] ^ m_rkey[i-1];
}
}
void Aes256::expand_dec_key(unsigned char* rc)
{
unsigned char i;
for(i = 28; i > 16; i -= 4) {
m_rkey[i+0] = m_rkey[i+0] ^ m_rkey[i-4];
m_rkey[i+1] = m_rkey[i+1] ^ m_rkey[i-3];
m_rkey[i+2] = m_rkey[i+2] ^ m_rkey[i-2];
m_rkey[i+3] = m_rkey[i+3] ^ m_rkey[i-1];
}
m_rkey[16] = m_rkey[16] ^ sbox[m_rkey[12]];
m_rkey[17] = m_rkey[17] ^ sbox[m_rkey[13]];
m_rkey[18] = m_rkey[18] ^ sbox[m_rkey[14]];
m_rkey[19] = m_rkey[19] ^ sbox[m_rkey[15]];
for(i = 12; i > 0; i -= 4) {
m_rkey[i+0] = m_rkey[i+0] ^ m_rkey[i-4];
m_rkey[i+1] = m_rkey[i+1] ^ m_rkey[i-3];
m_rkey[i+2] = m_rkey[i+2] ^ m_rkey[i-2];
m_rkey[i+3] = m_rkey[i+3] ^ m_rkey[i-1];
}
*rc = FD(*rc);
m_rkey[0] = m_rkey[0] ^ sbox[m_rkey[29]] ^ (*rc);
m_rkey[1] = m_rkey[1] ^ sbox[m_rkey[30]];
m_rkey[2] = m_rkey[2] ^ sbox[m_rkey[31]];
m_rkey[3] = m_rkey[3] ^ sbox[m_rkey[28]];
}
void Aes256::sub_bytes(unsigned char* buffer)
{
register unsigned char i = KEY_SIZE / 2;
while (i--)
buffer[i] = sbox[buffer[i]];
}
void Aes256::sub_bytes_inv(unsigned char* buffer)
{
register unsigned char i = KEY_SIZE / 2;
while (i--)
buffer[i] = sboxinv[buffer[i]];
}
void Aes256::copy_key()
{
ByteArray::size_type i;
for (i = 0; i < m_key.size(); ++i)
m_rkey[i] = m_key[i];
for (i = 0; i < m_salt.size(); ++i)
m_rkey[i + m_key.size()] = m_salt[i];
}
void Aes256::add_round_key(unsigned char* buffer, const unsigned char round)
{
register unsigned char i = KEY_SIZE / 2;
while (i--)
buffer[i] ^= m_rkey[ (round & 1) ? i + 16 : i ];
}
void Aes256::shift_rows(unsigned char* buffer)
{
register unsigned char i, j, k, l; /* to make it potentially parallelable :) */
i = buffer[1];
buffer[1] = buffer[5];
buffer[5] = buffer[9];
buffer[9] = buffer[13];
buffer[13] = i;
j = buffer[10];
buffer[10] = buffer[2];
buffer[2] = j;
k = buffer[3];
buffer[3] = buffer[15];
buffer[15] = buffer[11];
buffer[11] = buffer[7];
buffer[7] = k;
l = buffer[14];
buffer[14] = buffer[6];
buffer[6] = l;
}
void Aes256::shift_rows_inv(unsigned char* buffer)
{
register unsigned char i, j, k, l; /* same as above :) */
i = buffer[1];
buffer[1] = buffer[13];
buffer[13] = buffer[9];
buffer[9] = buffer[5];
buffer[5] = i;
j = buffer[2];
buffer[2] = buffer[10];
buffer[10] = j;
k = buffer[3];
buffer[3] = buffer[7];
buffer[7] = buffer[11];
buffer[11] = buffer[15];
buffer[15] = k;
l = buffer[6];
buffer[6] = buffer[14];
buffer[14] = l;
}
void Aes256::mix_columns(unsigned char* buffer)
{
register unsigned char i, a, b, c, d, e;
for (i = 0; i < 16; i += 4)
{
a = buffer[i];
b = buffer[i + 1];
c = buffer[i + 2];
d = buffer[i + 3];
e = a ^ b ^ c ^ d;
buffer[i ] ^= e ^ rj_xtime(a^b);
buffer[i + 1] ^= e ^ rj_xtime(b^c);
buffer[i + 2] ^= e ^ rj_xtime(c^d);
buffer[i + 3] ^= e ^ rj_xtime(d^a);
}
}
void Aes256::mix_columns_inv(unsigned char* buffer)
{
register unsigned char i, a, b, c, d, e, x, y, z;
for (i = 0; i < 16; i += 4)
{
a = buffer[i];
b = buffer[i + 1];
c = buffer[i + 2];
d = buffer[i + 3];
e = a ^ b ^ c ^ d;
z = rj_xtime(e);
x = e ^ rj_xtime(rj_xtime(z^a^c)); y = e ^ rj_xtime(rj_xtime(z^b^d));
buffer[i ] ^= x ^ rj_xtime(a^b);
buffer[i + 1] ^= y ^ rj_xtime(b^c);
buffer[i + 2] ^= x ^ rj_xtime(c^d);
buffer[i + 3] ^= y ^ rj_xtime(d^a);
}
}
inline unsigned char rj_xtime(unsigned char x)
{
return (x & 0x80) ? ((x << 1) ^ 0x1b) : (x << 1);
}

View File

@ -0,0 +1,88 @@
/*
* aes256.hpp
*
* Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
* All rights reserved.
*
* This file is part of Aes256.
*
* Aes256 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.1
* of the License, or (at your option) any later version.
*
* Aes256 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 Aes256.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AES256_HPP
#define AES256_HPP
#include <vector>
typedef std::vector<unsigned char> ByteArray;
#define BLOCK_SIZE 16
class Aes256 {
public:
Aes256(const ByteArray& key);
~Aes256();
static ByteArray::size_type encrypt(const ByteArray& key, const ByteArray& plain, ByteArray& encrypted);
static ByteArray::size_type encrypt(const ByteArray& key, const unsigned char* plain, const ByteArray::size_type plain_length, ByteArray& encrypted);
static ByteArray::size_type decrypt(const ByteArray& key, const ByteArray& encrypted, ByteArray& plain);
static ByteArray::size_type decrypt(const ByteArray& key, const unsigned char* encrypted, const ByteArray::size_type encrypted_length, ByteArray& plain);
ByteArray::size_type encrypt_start(const ByteArray::size_type plain_length, ByteArray& encrypted);
ByteArray::size_type encrypt_continue(const ByteArray& plain, ByteArray& encrypted);
ByteArray::size_type encrypt_continue(const unsigned char* plain, const ByteArray::size_type plain_length, ByteArray& encrypted);
ByteArray::size_type encrypt_end(ByteArray& encrypted);
ByteArray::size_type decrypt_start(const ByteArray::size_type encrypted_length);
ByteArray::size_type decrypt_continue(const ByteArray& encrypted, ByteArray& plain);
ByteArray::size_type decrypt_continue(const unsigned char* encrypted, const ByteArray::size_type encrypted_length, ByteArray& plain);
ByteArray::size_type decrypt_end(ByteArray& plain);
private:
ByteArray m_key;
ByteArray m_salt;
ByteArray m_rkey;
unsigned char m_buffer[3 * BLOCK_SIZE];
unsigned char m_buffer_pos;
ByteArray::size_type m_remainingLength;
bool m_decryptInitialized;
void check_and_encrypt_buffer(ByteArray& encrypted);
void check_and_decrypt_buffer(ByteArray& plain);
void encrypt(unsigned char *buffer);
void decrypt(unsigned char *buffer);
void expand_enc_key(unsigned char *rc);
void expand_dec_key(unsigned char *rc);
void sub_bytes(unsigned char *buffer);
void sub_bytes_inv(unsigned char *buffer);
void copy_key();
void add_round_key(unsigned char *buffer, const unsigned char round);
void shift_rows(unsigned char *buffer);
void shift_rows_inv(unsigned char *buffer);
void mix_columns(unsigned char *buffer);
void mix_columns_inv(unsigned char *buffer);
};
#endif /* AES256_HPP */

View File

@ -0,0 +1,3 @@
add_executable(test_aes256 test_aes256.cpp)
target_link_libraries(test_aes256 aes256)
add_test(test_aes256 test_aes256)

View File

@ -0,0 +1,321 @@
/*
* test_aes256.cpp
*
* Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
* All rights reserved.
*
* This file is part of Aes256.
*
* Aes256 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.1
* of the License, or (at your option) any later version.
*
* Aes256 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 Aes256.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <iostream>
#include "aes256.hpp"
#define KEY_LEN 32
#define TEXT_SIZE 100
#define ENC_SIZE 113
unsigned char test_key[KEY_LEN] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f };
unsigned char test_enc[ENC_SIZE] = { 0x0c,
0x8e, 0xa2, 0xb7, 0xca, 0x51, 0x67, 0x45, 0xbf, 0xea, 0xfc, 0x49, 0x90, 0x4b, 0x49, 0x60, 0x89,
0x3e, 0x8d, 0x89, 0x22, 0xaf, 0x24, 0xef, 0x56, 0x57, 0x96, 0x84, 0x29, 0xfe, 0x01, 0xcd, 0xa0,
0xd2, 0xfb, 0x4c, 0xd1, 0xf1, 0x95, 0x62, 0xea, 0x68, 0x7f, 0xce, 0x26, 0xc6, 0x34, 0xa8, 0xc2,
0xda, 0xd8, 0x22, 0x75, 0xcc, 0x1c, 0x87, 0x3d, 0x77, 0xde, 0x14, 0xfc, 0x09, 0x38, 0x4c, 0xc2,
0x40, 0xec, 0xbb, 0x5a, 0x2d, 0x7f, 0x53, 0xbc, 0x64, 0xef, 0x45, 0x16, 0xbf, 0xee, 0x3a, 0xac,
0xa3, 0xc9, 0x9c, 0x16, 0x87, 0x39, 0xf3, 0x9e, 0xad, 0x0a, 0xbd, 0xae, 0x19, 0x1a, 0x5a, 0xb5,
0xb9, 0x5f, 0xe8, 0xea, 0x96, 0x99, 0xf3, 0x47, 0x83, 0x20, 0x69, 0x9e, 0xcd, 0xf3, 0xc8, 0x6e };
unsigned char test_dec[TEXT_SIZE] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff,
0x10, 0x21, 0x32, 0x43, 0x54, 0x65, 0x76, 0x87, 0x98, 0xa9, 0xba, 0xcb, 0xdc, 0xed, 0xfe, 0x0f,
0x20, 0x31, 0x42, 0x53, 0x64, 0x75, 0x86, 0x97, 0xa8, 0xb9, 0xca, 0xdb, 0xec, 0xfd, 0x0e, 0x1f,
0x30, 0x41, 0x52, 0x63, 0x74, 0x85, 0x96, 0xa7, 0xb8, 0xc9, 0xda, 0xeb, 0xfc, 0x0d, 0x1e, 0x2f,
0x40, 0x51, 0x62, 0x73, 0x84, 0x95, 0xa6, 0xb7, 0xc8, 0xd9, 0xea, 0xfb, 0x0c, 0x1d, 0x2e, 0x3f,
0x50, 0x61, 0x72, 0x83, 0x94, 0xa5, 0xb6, 0xc7, 0xd8, 0xe9, 0xfa, 0x0b, 0x1c, 0x2d, 0x3e, 0x4f,
0x60, 0x71, 0x82, 0x93 };
// Test vectors
#define TEST_VECTOR_NUM 4
#define TEST_VECTOR_SIZE 16
unsigned char testv_key[KEY_LEN] = { 0x60, 0x3d, 0xeb, 0x10, 0x15, 0xca, 0x71, 0xbe, 0x2b, 0x73, 0xae, 0xf0, 0x85, 0x7d, 0x77, 0x81,
0x1f, 0x35, 0x2c, 0x07, 0x3b, 0x61, 0x08, 0xd7, 0x2d, 0x98, 0x10, 0xa3, 0x09, 0x14, 0xdf, 0xf4 };
unsigned char testv_dec[TEST_VECTOR_SIZE][TEST_VECTOR_SIZE] = {
{ 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a },
{ 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c, 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51 },
{ 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11, 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef },
{ 0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17, 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 }
};
unsigned char testv_enc[TEST_VECTOR_SIZE][TEST_VECTOR_SIZE + 1] = {
{ 0x00, 0xf3, 0xee, 0xd1, 0xbd, 0xb5, 0xd2, 0xa0, 0x3c, 0x06, 0x4b, 0x5a, 0x7e, 0x3d, 0xb1, 0x81, 0xf8 },
{ 0x00, 0x59, 0x1c, 0xcb, 0x10, 0xd4, 0x10, 0xed, 0x26, 0xdc, 0x5b, 0xa7, 0x4a, 0x31, 0x36, 0x28, 0x70 },
{ 0x00, 0xb6, 0xed, 0x21, 0xb9, 0x9c, 0xa6, 0xf4, 0xf9, 0xf1, 0x53, 0xe7, 0xb1, 0xbe, 0xaf, 0xed, 0x1d },
{ 0x00, 0x23, 0x30, 0x4b, 0x7a, 0x39, 0xf9, 0xf3, 0xff, 0x06, 0x7d, 0x8d, 0x8f, 0x9e, 0x24, 0xec, 0xc7 }
};
void init_key(ByteArray& key) {
for (unsigned char i = 0; i < KEY_LEN;i++)
key.push_back(test_key[i]);
}
void init_key(ByteArray& key, unsigned char index) {
for (unsigned char i = 0; i < KEY_LEN;i++) {
if (index < TEST_VECTOR_NUM)
key.push_back(testv_key[i]);
else
key.push_back(0);
}
}
void init_txt(ByteArray& txt) {
for (unsigned char i = 0; i < TEXT_SIZE; ++i)
txt.push_back(test_dec[i]);
}
void init_txt(unsigned char* txt) {
for (unsigned char i = 0; i < TEXT_SIZE; ++i)
txt[i] = test_dec[i];
}
void init_txt(ByteArray& txt, unsigned char index) {
for (unsigned char i = 0; i < TEST_VECTOR_SIZE; ++i) {
if (index < TEST_VECTOR_NUM)
txt.push_back(testv_dec[index][i]);
else
txt.push_back(0);
}
}
void init_enc(ByteArray& enc) {
for (unsigned char i = 0; i < ENC_SIZE; ++i)
enc.push_back(test_enc[i]);
}
void init_enc(unsigned char* enc) {
for (unsigned char i = 0; i < ENC_SIZE; ++i)
enc[i] = test_enc[i];
}
int test_encrypts_bytearray() {
std::cout << "Starting test encrypts bytearray..." << std::endl;
ByteArray key;
init_key(key);
std::cout << " Key initialized..." << std::endl;
ByteArray txt, enc;
init_txt(txt);
std::cout << " Text initialized..." << std::endl;
ByteArray::size_type enc_len = Aes256::encrypt(key, txt, enc);
std::cout << " Encrypted..." << std::endl;
if (enc_len != ENC_SIZE) {
std::cerr << "Wrong encrypted length: " << enc_len << " instead of " << ENC_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < ENC_SIZE; ++i)
if (enc[i] != test_enc[i]) {
std::cerr << "Wrong encrypted byte in position " << i << ": found " << std::hex << (int)enc[i] << " instead of " << (int)test_enc[i] << std::endl;
return -2;
}
std::cout << " Done!" << std::endl;
return 0;
}
int test_encrypts_char() {
std::cout << "Starting test encrypts char..." << std::endl;
ByteArray key;
init_key(key);
std::cout << " Key initialized..." << std::endl;
unsigned char txt[TEXT_SIZE];
ByteArray enc;
init_txt(txt);
std::cout << " Text initialized..." << std::endl;
ByteArray::size_type enc_len = Aes256::encrypt(key, txt, TEXT_SIZE, enc);
std::cout << " Encrypted..." << std::endl;
if (enc_len != ENC_SIZE) {
std::cerr << "Wrong encrypted length: " << enc_len << " instead of " << ENC_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < ENC_SIZE; ++i)
if (enc[i] != test_enc[i]) {
std::cerr << "Wrong encrypted byte in position " << i << ": found " << std::hex << (int)enc[i] << " instead of " << (int)test_enc[i] << std::endl;
return -2;
}
std::cout << " Done!" << std::endl;
return 0;
}
int test_decrypts_bytearray() {
std::cout << "Starting test decrypts bytearray..." << std::endl;
ByteArray key;
init_key(key);
std::cout << " Key initialized..." << std::endl;
ByteArray enc, dec;
init_enc(enc);
std::cout << " Encrypted initialized..." << std::endl;
ByteArray::size_type dec_len = Aes256::decrypt(key, enc, dec);
std::cout << " Decrypted..." << std::endl;
if (dec_len != TEXT_SIZE) {
std::cerr << "Wrong decrypted length: " << dec_len << " instead of " << TEXT_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < TEXT_SIZE; ++i)
if (dec[i] != test_dec[i]) {
std::cerr << "Wrong decrypted byte in position " << i << ": found " << std::hex << (int)dec[i] << " instead of " << (int)test_dec[i] << std::endl;
return -2;
}
std::cout << " Done!" << std::endl;
return 0;
}
int test_decrypts_char() {
std::cout << "Starting test decrypts char..." << std::endl;
ByteArray key;
init_key(key);
std::cout << " Key initialized..." << std::endl;
unsigned char enc[ENC_SIZE];
ByteArray dec;
init_enc(enc);
std::cout << " Encrypted initialized..." << std::endl;
ByteArray::size_type dec_len = Aes256::decrypt(key, enc, ENC_SIZE, dec);
std::cout << " Decrypted..." << std::endl;
if (dec_len != TEXT_SIZE) {
std::cerr << "Wrong decrypted length: " << dec_len << " instead of " << TEXT_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < TEXT_SIZE; ++i)
if (dec[i] != test_dec[i]) {
std::cerr << "Wrong decrypted byte in position " << i << ": found " << std::hex << (int)dec[i] << " instead of " << (int)test_enc[i] << std::endl;
return -2;
}
std::cout << " Done!" << std::endl;
return 0;
}
int test_encrypts_decrypts() {
std::cout << "Starting test encrypts/decrypts..." << std::endl;
ByteArray key;
init_key(key);
std::cout << " Key initialized..." << std::endl;
ByteArray txt, enc, dec;
init_txt(txt);
std::cout << " Text initialized..." << std::endl;
ByteArray::size_type enc_len = Aes256::encrypt(key, txt, enc);
std::cout << " Encrypted..." << std::endl;
if (enc_len != ENC_SIZE) {
std::cerr << "Wrong encrypted length: " << enc_len << " instead of " << ENC_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < ENC_SIZE; ++i)
if (enc[i] != test_enc[i]) {
std::cerr << "Wrong encrypted byte in position " << i << ": found " << std::hex << (int)enc[i] << " instead of " << (int)test_enc[i] << std::endl;
return -2;
}
ByteArray::size_type dec_len = Aes256::decrypt(key, enc, dec);
std::cout << " Decrypted..." << std::endl;
if (dec_len != TEXT_SIZE) {
std::cerr << "Wrong decrypted length: " << dec_len << " instead of " << TEXT_SIZE << std::endl;
return -1;
}
for (unsigned char i = 0; i < TEXT_SIZE; ++i)
if (dec[i] != test_dec[i]) {
std::cerr << "Wrong decrypted byte in position " << i << ": found " << std::hex << (int)dec[i] << " instead of " << (int)test_dec[i] << std::endl;
return -2;
}
std::cout << " Done!" << std::endl;
return 0;
}
int test_vectors() {
std::cout << "Starting test vectors..." << std::endl;
for (int i = 0; i < TEST_VECTOR_NUM; ++i) {
ByteArray key;
init_key(key, i);
std::cout << " Key initialized..." << std::endl;
ByteArray txt, enc;
init_txt(txt, i);
std::cout << " Text initialized..." << std::endl;
ByteArray::size_type enc_len = Aes256::encrypt(key, txt, enc);
std::cout << " Encrypted..." << std::endl;
if (enc_len != TEST_VECTOR_SIZE + 1) {
std::cerr << "Wrong encrypted length: " << enc_len << " instead of " << TEST_VECTOR_SIZE + 1 << std::endl;
return -1;
}
for (unsigned char j = 0; j < TEST_VECTOR_SIZE; ++j)
if (enc[j] != testv_enc[i][j]) {
std::cerr << "Wrong encrypted byte in position " << j << ": found " << std::hex << (int)enc[j] << " instead of " << (int)testv_enc[i][j] << std::endl;
return -2;
}
}
std::cout << " Done!" << std::endl;
return 0;
}
int main(int argc, char *argv[])
{
if (test_encrypts_bytearray() != 0)
return -1;
if (test_encrypts_char() != 0)
return -2;
if (test_decrypts_bytearray() != 0)
return -3;
if (test_decrypts_char() != 0)
return -4;
if (test_encrypts_decrypts() != 0)
return -5;
if (test_vectors() != 0)
return -6;
return 0;
} /* main */

View File

@ -0,0 +1,7 @@
add_executable(encrypt encrypt.cpp)
target_link_libraries(encrypt aes256)
install(TARGETS encrypt DESTINATION bin)
add_executable(decrypt decrypt.cpp)
target_link_libraries(decrypt aes256)
install(TARGETS decrypt DESTINATION bin)

View File

@ -0,0 +1,97 @@
/*
* decrypt.cpp
*
* Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
* All rights reserved.
*
* This file is part of Aes256.
*
* Aes256 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.1
* of the License, or (at your option) any later version.
*
* Aes256 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 Aes256.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "aes256.hpp"
#define BUFFER_SIZE 1024*1024
#ifdef __APPLE__
# define fseeko64 fseeko
#endif
int main(int argc, char **argv)
{
ByteArray key, dec;
size_t file_len;
FILE *input, *output;
srand(time(0));
if (argc != 4) {
fprintf(stderr, "Missing arguments\n");
fprintf(stderr, "Usage: %s <key> <input file> <output file>\n", argv[0]);
return 1;
}
size_t key_len = 0;
while(argv[1][key_len] != 0)
key.push_back(argv[1][key_len++]);
input = fopen(argv[2], "rb");
if (input == 0) {
fprintf(stderr, "Cannot read file '%s'\n", argv[2]);
return 1;
}
output = fopen(argv[3], "wb");
if (output == 0) {
fprintf(stderr, "Cannot write file '%s'\n", argv[3]);
return 1;
}
Aes256 aes(key);
fseeko64(input, 0, SEEK_END);
file_len = ftell(input);
fseeko64(input, 0, SEEK_SET);
printf("File is %zd bytes\n", file_len);
aes.decrypt_start(file_len);
while (!feof(input)) {
unsigned char buffer[BUFFER_SIZE];
size_t buffer_len;
buffer_len = fread(buffer, 1, BUFFER_SIZE, input);
printf("Read %zd bytes\n", buffer_len);
if (buffer_len > 0) {
dec.clear();
aes.decrypt_continue(buffer, buffer_len, dec);
fwrite(dec.data(), dec.size(), 1, output);
}
}
dec.clear();
aes.decrypt_end(dec);
fwrite(dec.data(), dec.size(), 1, output);
fclose(input);
fclose(output);
return 0;
}

View File

@ -0,0 +1,99 @@
/*
* encrypt.cpp
*
* Copyright (c) 2014, Danilo Treffiletti <urban82@gmail.com>
* All rights reserved.
*
* This file is part of Aes256.
*
* Aes256 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.1
* of the License, or (at your option) any later version.
*
* Aes256 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 Aes256.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "aes256.hpp"
#define BUFFER_SIZE 1024*1024
#ifdef __APPLE__
# define fseeko64 fseeko
#endif
int main(int argc, char **argv)
{
ByteArray key, enc;
size_t file_len;
FILE *input, *output;
srand(time(0));
if (argc != 4) {
fprintf(stderr, "Missing argument\n");
fprintf(stderr, "Usage: %s <key> <input file> <output file>\n", argv[0]);
return 1;
}
size_t key_len = 0;
while(argv[1][key_len] != 0)
key.push_back(argv[1][key_len++]);
input = fopen(argv[2], "rb");
if (input == 0) {
fprintf(stderr, "Cannot read file '%s'\n", argv[2]);
return 1;
}
output = fopen(argv[3], "wb");
if (output == 0) {
fprintf(stderr, "Cannot write file '%s'\n", argv[3]);
return 1;
}
Aes256 aes(key);
fseeko64(input, 0, SEEK_END);
file_len = ftell(input);
fseeko64(input, 0, SEEK_SET);
printf("File is %zd bytes\n", file_len);
enc.clear();
aes.encrypt_start(file_len, enc);
fwrite(enc.data(), enc.size(), 1, output);
while (!feof(input)) {
unsigned char buffer[BUFFER_SIZE];
size_t buffer_len;
buffer_len = fread(buffer, 1, BUFFER_SIZE, input);
printf("Read %zd bytes\n", buffer_len);
if (buffer_len > 0) {
enc.clear();
aes.encrypt_continue(buffer, buffer_len, enc);
fwrite(enc.data(), enc.size(), 1, output);
}
}
enc.clear();
aes.encrypt_end(enc);
fwrite(enc.data(), enc.size(), 1, output);
fclose(input);
fclose(output);
return 0;
}

24
libraries/html2pdf/.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# ignore mac build files
build/
*.plist
*~
\#*\#
bin
wkhtmltopdf.app/
wkhtmltopdf.xcodeproj/
release*/
test/
static-build/
.obj/
doc/
docs/_site/
docs/Gemfile.lock
libdoc/
man1/
Makefile
qrc_wkhtmltopdf.cpp
Makefile.*
*_resource.rc
*.o
moc_*.*
.qmake*

4
libraries/html2pdf/.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "qt"]
path = qt
url = ../qt.git
branch = wk_4.8.7

View File

@ -0,0 +1,77 @@

Jakob Truelsen <antialize@gmail.com>
Ashish Kulkarni <ashish@kulkarni.dev>
Jan Habermann <jan@habermann24.com>
Pablo Ruiz García <pablo.ruiz@gmail.com>
Trevor North <trevor@blubolt.com>
Nate Pinchot <nate.pinchot@gmail.com>
pussbb <pussbb@gmail.com>
Aaron Stone <aaron@serendipity.cx>
Patrick Widauer @a-ctor
Peter van der Tak <pta@ibuildgreen.eu>
Benjamin Sinkula <bsinky@gmail.com>
Kasper F. Brandt <poizan@poizan.dk>
Michael Nitze <michael.nitze@online.de>
Rok Dvojmoc <rok.dvojmoc@gmail.com>
theirix <theirix@gmail.com>
Tomsgu <tomasjakll@gmail.com>
Artem Butusov <art.sormy@gmail.com>
Christian Sciberras <uuf6429@gmail.com>
Daniel M. Lambea <dmlambea@gmail.com>
Douglas Bagnall <douglas@paradise.net.nz>
peterrehm <peter.rehm@renvest.de>
Renan Gonçalves <renan.saddam@gmail.com>
Ruslan Grabovoy <kudgo.test@gmail.com>
Sander Kleykens <sander.kleykens@avnu.be>
Adam Thorsen <adam.thorsen@gmail.com>
Albin Kerouanton <albin.kerouanton@knplabs.com>
Alejandro Dubrovsky <alito@organicrobot.com>
Arthur Cinader @acinader
Benoit Garret <benoit.garret@gmail.com>
Bill Kuker <bkuker@billkuker.com>
cptjazz <alexander@jesner.eu>
daigot <daigot@rayze.com>
Destan Sarpkaya @destan
Duncan Smart <duncan.smart@gmail.com>
Emil Lerch <emil@lerch.org>
Erik Hyrkas <erik.hyrkas@thomsonreuters.com>
Erling Linde <erlingwl@gmail.com>
Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Fr33m1nd <lukion@gmx.de>
Frank Groeneveld <frank@frankgroeneveld.nl>
Immanuel Häussermann <haeussermann@gmail.com>
Jake Petroules <jake.petroules@petroules.com>
James Macdonald <james@kingfisher-systems.co.uk>
Jason Smith <JasonParallel@gmail.com>
John Muccigrosso @Jmuccigr
Julien Le Goff <julego@gmail.com>
Kay Lukas <kay.lukas@gmail.com>
Kurt Revis <krevis@snoize.com>
laura @holamon
Marc Laporte <marc@laporte.name>
Matthew M. Boedicker <matthewm@boedicker.org>
Matthieu Bontemps <matthieu.bontemps@gmail.com>
Max Sikstrom <max.sikstrom@op5.com>
Nolan Neustaeter <github@noolan.ca>
Oleg Kostyuk <cub.uanic@gmail.com>
Pankaj Jangid <pankaj.jangid@gmail.com>
robinbetts <robinbetts@yahoo.com>
Sem <spam@esemi.ru>
Stefan Weil <sw@weilnetz.de>
Stephen Kennedy <sk4425@gmail.com>
Steve Shreeve <steve.shreeve@gmail.com>
Sven Nierlein <sven@nierlein.org>
Tobin Juday <tobinibot@gmail.com>
Todd Fisher <todd.fisher@gmail.com>
Костадин Дамянов <maxmight@gmail.com>
Emmanuel Bouthenot <kolter@openics.org>
Rami @icnocop
Khodeir-hubdoc @Khodeir-hubdoc
Jonathan Jefferies @jjok
Joe Ayers <joseph.ayers@crunchydata.com>
Jeffrey Cafferata <jeffrey@jcid.nl>
rainabba
Mehdi Abbad
Lyes Amazouz
Pascal Bach
Mário Silva

View File

@ -0,0 +1,246 @@
v0.11.0 rc2:
* #354: Proper handling of directly embedded grayscale jpeg images
* #429: output filenames interperted as latin1 instead of utf8
* #441: Gif images do not work
* #463: Null byte in anchor name
* #635: Make /dests an indirect object
* #730: Do not assume that QPixmap requiers GUI
v0.11.0 rc1:
* #149: Use base url to resolve links
* #667: Expose load settings in image c binding
* #707: Relative links are converted to absolute links
* Update to newer version of qt
v0.10.0 rc2:
* Relicense under LGPL
* #349: HTTP POST format
* #365: isLoaded Flag
* #414: Release bz2 files instead of xz files
* #426: Reenable --page-offset
* #428: toimage buffer does no work
v0.10.0 rc1:
* #171, #307: Javascript does not work well in i386 static binaries
* #226, #326: Absolute path are broken on windows
* #310: Sections in headers only work for the first document
* #315: Allow arbitrery javascript to be run
* #332: Also used names to resolve local links
* #333: Segmentation fault when plugins are not enabled
* #345 double escaping of html entries in toc
* Partly #366: allow for custum SVG for checkboxes and radio button
* #378: the -n switch is ambigius
* Fix issue: Do not include covers in the outline and toc
v0.10.0 beta5:
* Create a libwkhtmltox an relicense under LGPL
* Add missing --header-line switch
* #271: Image quality in wkhtmltoimage is not good when using --zoom.
* #286: Outlines have incorrect page numbers
* #288: -s, --page-size command line switch broken
* #328: Ignores supplied xsl stylesheet for to
v0.10.0 beta4:
* Added wkhtmtoimage to the source tree, thanks to Christian Sciberras.
* Added width parameter to wkhtmloimage
* Added svg support to wkhtmlimage
* Command line layout reworked
* Allow for options to be parsed on a per page section
* Table of content is now generated via XSLT
* Updated to use QT 4.7
* Mac binary no longer displayes in dock.
* #72: the font spacing issues on linux solved when using --use-xserver
* #55: wkhtmltopdf dies on unavaliable url or network disconnection
* #114: Add option to for not loading images.
* #122: No output to stderr describing HTTP 500 server error
* #143: Add wkhtmltoimage
* #144: User stylesheet is not working
* #161: Better image handling
* #170: Allow for table of content to be placed anywhere
* #184: wkhtmltopdf crashes with rigt to left texts.
* #188: Allow for greater TOC customization
* #205: Add support for local timezone in creation date
* #238: Add option to force output format
* #244: Outline contains headers from hidden content
* #249: Spelling
* #258: Likns and references to the right pages.
* #265: mingwm10.dll is empty
* #267: Sizing problem with wkhtmltoimage and page with no particular width
* #268: --scale-w doesn't work as expected
* #270: Do not print crosses and circles in ALL the form fields
* #273: (Hack) Do not draw the content of a textbox when using forms
* #278: wkhtmltoimage exits with none existing http error codes.
* #280: Incorrect page numbering
* Implement issue 281: Support of page title in header/footer
* #284: Wrong width when dealing with an invalid html file
v0.9.7
* Fix bug: Use \- some more places in the man page.
* #220: Allowing the good load check to be disabled.
* #223: Replace date and time in headers and footers.
* #225: Add support for links in headers and footers.
v0.9.6
* #191: Add support for not compressing pdf.
* #210: PATH is overridden by windows 7 install
* #228: Unable to use none ASCII pdf titles
* Add nicer rendering for text fields and checkboxes
* Added initial support for HTML forms
v0.9.5
* #196: Unable to use none ASCII file names.
* Fix multiple issues with links in the pdf file
v0.9.4
* Fix --toc-header-font-size implementation, added --toc-header-font-name
* Added a --dump-outline option (Patch by Douglas Bagnall)
* Added a minimal font size option (Patch by Dmitry Teslenko)
* Fix pdf outline parent ID (Patch by Douglas Bagnall)
v0.9.3
* #141: wkhtmltopdf does not terminate properly on OSX. (Jan Harbermann)
* #176: Properly escape strings in the pdf engine. (Patch by Douglas Bagnall)
* #181: Properly encode string in pdf outline. (Patch by Douglas Bagnall)
* Fix some spelling in the manual
v0.9.2
* #160: Handle slow scripts instead of terminating with a no X warning. The
new default is to just let the scripts run for as long as they want.
Unless --stop-slow-scripts is specified.
* #164: Text read from standard in is interpreted as ASCII, not as local 8bit. (utf8)
* #165: Add a title to the pdf document.
* Fix page numbers in TOC when pageOffset has been specified.
* Fixed faults in documentation.
* Handle javascript alert, confirm and prompt gracefully.
* Added a switch --debug-javascript to output javascript errors and warnings to stderr.
v0.9.1
* Added change log to release tar ball
* Fixed up man page
* #140: --disable-javascript shod not affect --header-html
* #142: We now wait for --redirect-delay microseconds before printing a page,
allowing for javascript redirects to occur, or dynamic content to be
generated. However if a window.print() javascript statement is executed
we wait no longer.
* #147: Detect if --header-html is html
* #155: Cookie support is broken
* Add support for userdefined replacements in headers and footers.
* Fix bug where the header line would not be horizontal
v0.9.0
* Complete code rewrite.
* Add support for HTML headers and footers.
* Do not exit 0 when a 404 has occurred
* Added a manual/readme
* Added an installer under windows
* #47: Give better error message if destination is not writeble
* #56: with checkboxes printed badly
* #61: PDF's send to stdout are broken on windows
* #74: Scale of output is not fixed
* #92: Support space between headers and contest
* #125: Html documents from stdin does not work under windows
* Allow headers and footers to be utf8
* Add zoom support
* Add support for internal and external links
* Add links and back links to the table of content
* Links in the table of content, and outline now point at the correct location.
* Fixed multiple issues with wrong TOC and outlines
* Add support for custom HTML headers
* Add support for loading and saving cookies
* Add support for POST requests
* Make static build work with older versions of libc
* Much more that I have now forgotten.
* Add support for custom page sizes
* Upgrade to qt4.6 fixing issues with not being able to copy text in acroread
* Upgrade to qt4.6 fixing issues with only one font family working.
v0.8.3
* Allow custom page numbering (patch by Refael Bedia)
* Add options to support HTTP authentication
* Fix yet another leek in batch mode (patch by Mário Silva)
* #when compiling with OT4.4
* #regarding X11 with unpatched Qt
v0.8.2
* #with batch mode (patch by Mário Silva)
* #with locale support in units
* Added optional support for using X11 server, try this if no X11 fails.
* Attempt to add support for NS Plugins
* Fix issues when compiling with GCC 4.4
v0.8.1
* Static Linux version no longer requires X11
v0.8.0
* Added support for changing default input encoding (static binary only)
* Added support for supplying user style sheet
v0.7.5
* Fixed bug with proxy not working as it should
* Added proxy information to the man page
* Corrected some spelling
v0.7.4
* Fixed bug: stdin input does not work, stdout does not work on windows
* Fixed bug: minus not minus on a man page
v0.7.2
* Fixed bug: Unable to compile with CMake
* Default to printing in screen media-type, switch added to restore old default paper (static binary only)
* Added an experimental windows executable
* Fixed bud: Logic invertion in --disable-javascript
v0.7.1
* Fixed bug: h1 and h6 not included in outline
* Fixed bug: Page calculation not correct for none toplevel h1 tags
* Fixed bug: Outline page coordinates are wrong (and inverted)
* Fixed bug: Outline depth setting has no effect
v0.7.0
* Added support for pdf outlines (static version only)
* Added support for cover pages (static version only)
* Added support for Table of Contents (static version only)
* Added support for putting multiple files into one pdf (static version only)
* Extensive rewrite of the argument parsing code
* Several arguments have been renamed
* Added support for disabling javascript
v0.6.4
* Fix a bug regarding writing pages to stdout
* Fixed spelling
v0.6.2
* Fixed bugs regarding header and footer line in static build
* Made the qmake file generate and install manpage
* The Source tarball now actually contains the source
v0.6.1
* Added a manpage
* Fixed bug that disabled local page support
* Update: The static binary has now been fixed.
v0.6
* Added support for headers and footers (static binary only)
* Added support for js-redirects
* More code documentation added
v0.5
* Added support for reading command line options from stdin, to do multiple conversions fast.
* Added options to set page margins.
* Now shipping a binary statically compiled against QT4.5rc1, that shuld run as is on just about any Linux System.
v0.4
* Added support for generation deb packages
* Added option for dpi, low resolution and grayscale
* Added (untested) support for removing background image when running under QT 4.5
v0.3
* Added support for printing sites with self signed certificates
* Added options for pageSize and orientation
v0.2
* Added proxy support
* Commandline parsing and quiet support
v0.1.1
* Initial release

View File

@ -0,0 +1,168 @@
v0.12.7 (unreleased)
--------------------
v0.12.6 (2020-06-11)
--------------------
* **#2124**: **[qt]** avoid "QFont::setPixelSize: Pixel size <= 0" (qt#42)
* **#3953**: fix TOC and other special pages not present in output PDF (#3962)
* **#3242**: **[qt]** fix regression from #2353 in setLineDash for Canvas (qt#35)
* **#4536**: BREAKING CHANGE: block local filesystem access by default
* **#4612**: allow --encoding to work for non-patched builds
* **[qt]** add support for ppc64le, thanks to @notorca (qt#40)
* **[qt]** add support for 64-bit ARM, thanks to @soleson (qt#45, qt#46)
v0.12.5 (2018-06-11)
--------------------
* fixed build without patched Qt and integrate with Travis CI and AppVeyor
* **#1524**: **[qt]** partial fix for overlapping text when repeating headers/footers in table (qt#29)
* **#1914**: **[qt]** rotated elements not rendered on thead on second page and beyond
* **#1870**: fixed sending of duplicate cookies (#3257)
* **#2609**: add viewportSize property to C API (#3440)
* **#2711**: fix differences between "counting" and "printing" phases (causing crashes/blank pages)
* **#3001**: fix static builds not working with updated OpenSSL
* **#3090**: added support for SSL client certificates (#3206)
* **#3241**: fix for DPI regression on OS X (#3386)
* **#3363**: added error message for network errors related to non-media files
* **#3364**: new option `verbosity` to allow different log levels in both CLI and API
* **#3476**: fix application name in libwkhtmltox (#3878)
* **#3672**: **[qt]** fix broken PDF with fonts having spaces in name (qt#38)
* **#3680**: **[qt]** fix build on macOS 10.13
* **#3900**: **[qt]** properly encode URLs with unicode characters in links
* add outlineDepth property to C API (#3291)
* add wkhtmltoimage_destroy_global_settings method to C API (#3324)
* switch to self-hosted website and downloads as gna.org is shutting down (#3390)
* fix conversion of read-only form fields (#3550)
* flush stderr to allow reading progress updates (#3583)
* fix handling of errors for media URLs with query string (#3593)
* add setting to perform hostname lookup via proxy (#3628)
* correctly pass --copies to underlying QPrinter (#3747)
* minor documentation updates and fixing compiler warnings
* add various Qt patches to support OpenSSL 1.1 and latest MinGW/macOS environments
* removed build scripts in favor of separate repo (wkhtmltopdf/packaging)
v0.12.4 (2016-11-22)
--------------------
* add support for building with VS2015
* update OpenSSL to 1.0.2j and libpng to 1.6.26
* **[qt]** change screen size in headless mode to a more sane value (1366x768)
* **[qt]** allow screen size in headless mode to be overriden via environment variables
* **[qt]** fix compilation failure on OS X 10.11 due to usage of deprecated APIs
* **#1768**: allow using long argument list (without hardcoded limits)
* **#2004**: **[qt]** fix rendering of form fields in PDF output
* **#2353**: **[qt]** context.setLineDash doesn't work in Canvas
* **#2416**: make background transparent by default for headers/footers
* **#2463**: **[qt]** standardize rendering DPI to 96
* **#2673**: fail immediately in the build script if the Qt source is not available
* **#2684**: **[qt]** fix crash in WebKit (RenderBlock::removeFloatingObjectsBelow)
* **#2885**: enforce UTF-8 encoding for input strings in the API
* **#2887**: improve docs to make examples of header/footer variables more explicit
* **#3077**: use correct install path for man pages
v0.12.3 (2016-01-20)
--------------------
* **[qt]** upgrade the patched Qt to the last Qt 4.8 commit
* removed support for CentOS 5 builds
* update OpenSSL to 1.0.2e and xz to 5.2.2 and libjpeg to 9b
* downgrade libpng to 1.2.56
* **#1843**: add --keep-relative-links and --resolve-relative-links to resolve relative links
* **#1981**: fix temporary PDF files not being removed when writing to stdout
* **#2104**: renamed COPYING to LICENSE
* **#2183**: apply --javascript-delay settings for non-main resource loaders
* **#2190**: do not depend on ICU even if it is already installed
* **#2194**: **[qt]** fix debugging of Qt/WebKit due to missing debug information
* **#2214**: **[qt]** fix broken rendering of transparent images when converting to PDF
* **#2252**: fix ownership of /usr/local being changed during installation on OS X
* **#2280**: do not allow data URIs for --header-html or --footer-html
* **#2322**: fix broken debug builds with MSVC
* **#2355**: add support for proxy bypass for specific hosts with --bypass-proxy-for
* **#2418**: fix build error on OS X
* **#2560**: allow using email address as proxy username
* **#2572**: fix incorrect version detection when building distro-specific packages
v0.12.2.1 (2015-01-19)
----------------------
* update OpenSSL to 1.0.1l
* **#2084**: **[qt]** make background transparent by default when rendering to PDF
* **#2142**: fix wkhtmltoimage ignoring --javascript-delay and --window-status
* **#2151**: **[qt]** fix PDFs rendering without embedded fonts on 64-bit Cocoa build
v0.12.2 (2015-01-09)
--------------------
* external libraries updated: OpenSSL to 1.0.1k, libpng to 1.5.21 and xz to 5.2.0
* fix build failure with unpatched Qt >= 5.3
* **#1539**: **[qt]** using OpenType fonts now results in selectable text on Windows
* **#1638**: **[qt]** fix incorrect rendering of JPEG images on Windows Server 2008 x64
* **#1639**: block access to local files on Windows when an invalid URL is used
* **#1640**: **[qt]** make table page-break logic opt-in via CSS at the row level
* **#1676**: do not allow overriding the header/footer settings for cover pages
* **#1676**: set page margins correctly via computed header/footer heights for multiple URLs
* **#1758**: fix corrupt image when output is specified as "-" in wkhtmltoimage on Windows
* **#1722**: **[qt]** fix broken hyphenation with soft-hyphens
* **#1769**: fixed unicode URLs in links
* **#1772**: added variable 'isodate' for substitution in headers/footers
* **#1790**: fix handling of temporary files during PDF conversion via API
* **#1808**: fix [sitepage] and [sitepages] not working without HTML headers/footers
* **#1825**: fix handling of non-ASCII characters in command-line arguments
* **#1863**: **[qt]** blank page or crash with low DPI on Windows
* **#1892**: --window-status causes endless loop with --header-html
* **#1906**: fix wrong comparison when parsing list parameters
* **#1944**: **[breaking change]** fix the reflection subsystem to fix the non-functional API
* **#1949**: fix generation of tarball in the posix-local build
* **#1955**: installer does not work on 32-bit OS X (10.6.x or 10.7.x)
* **#1961**: add explicit dependency on minimal font packages for all linux targets
* **#1988**: fix footer spacing being ignored (and header spacing being used instead)
* **#1992**: add support for CentOS 7 target
* **#2055**: **[qt]** rendering of Thai symbols is very slow
v0.12.1 (2014-06-26)
--------------------
* removed support for PostScript output which is not supported in QT5
* use OpenSSL 1.0.1h for the Windows builds
* **#1502**: fix spurious "exit with code 1 due to http error: 1xxx" errors
* **#1504**: **[qt]** fix rendering issues for JPEG with XMP metadata
* **#1507**: **[qt]** fix crash when CSS widows are specified
* **#1509**: fix TOC support which was broken after upgrade to latest Qt
* **#1512**: **[qt]** fix crashes when rendering JPEG images on Windows Server 2008 x64
* **#1544**: use UTF-8 encoding for the HTML generated by the TOC XSL
* **#1545**: PDFs rendering without embedded fonts on OS X
* **#1546**: fix problem with non-ASCII characters in output path on Windows
* **#1585**: delete existing files explicitly in windows installer
* **#1586**: **[qt]** suppress blank page generated if the first cell spans multiple pages
* **#1631**: **[qt]** crash when hiding header for a specific page
* **#1686**: **[qt]** --user-style-sheet does not work on Windows
* **#1757**: fix parsing of ColorMode and PrinterMode in the API
* **#1764**: include text codecs for Chinese (Simplified/Traditional), Japanese and Korean
* fix compilation failures when not building with patched Qt/WebKit
* support building with non-patched Qt4/Qt5 in either shared or static mode
* implement a --license command line option
* update URLs in the internal documentation
* generate API documentation for libwkhtmltox (on the website)
* display version in compiled binary properly under various scenarios
* complete revamp of the build system, which now generates native packages on all platforms
v0.12.0 (2014-02-06)
--------------------
* **#443**: add "sitepage" and "sitepages" support for headers
* **#175**: add ability to auto calculate header/footer heights
* **#1086**: don't return freed memory; instead use a string cache
* **#648**: delete infinite warnings into console about window status
* **#550**: enable tunneling to use a HTTP proxy for HTTPS
* **#1277**: avoid crash due to premature deletion of ResourceObject
* lots of fixes/enhancements for memory and error management
* add *--quiet* option to wkhtmltoimage
* add *--cache-dir* option for configuring web cache directory
* add *--load-media-error-handling* to handle errors for media files
* add *--viewport-size* to specify viewport size
* reserve heights when not using HTML header/footer
* lots of improvements in the build system
* lots of typos were fixed in various places
* **[qt]** rebase patch series on QT 4.8.5 (now hosted on github)
* **[qt]** fixes to get static builds working for MSVC 2010 (32/64 bit)
* **[qt]** prevent page breaks in table rows
* **[qt]** repeat THEAD/TFOOT when table contains page breaks
* **[qt]** improve font kerning as per Webkit bug 93263
* **[qt]** various table page-break improvements
* **[qt]** fix rendering due to incorrect page height computation
* **[qt]** implement "page-break-inside: avoid" for non-floating block elements
* **[qt]** enable WOFF file support
* **[qt]** add support for CSS widows and orphans for block elements

1518
libraries/html2pdf/Doxyfile Normal file

File diff suppressed because it is too large Load Diff

165
libraries/html2pdf/LICENSE Normal file
View File

@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
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 that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU 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 as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

View File

@ -0,0 +1,13 @@
wkhtmltopdf and wkhtmltoimage
-----------------------------
wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF
and various image formats using the QT Webkit rendering engine. These run
entirely "headless" and do not require a display or display service.
See https://wkhtmltopdf.org for updated documentation.
## Building
wkhtmltopdf has its own dedicated repository for building and packaging.
See https://github.com/wkhtmltopdf/packaging

View File

@ -0,0 +1 @@
0.12.7-dev

View File

@ -0,0 +1,43 @@
# Copyright 2010-2020 wkhtmltopdf authors
#
# This file is part of wkhtmltopdf.
#
# wkhtmltopdf 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 3 of the License, or
# (at your option) any later version.
#
# wkhtmltopdf 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 Lesser General Public License
# along with wkhtmltopdf. If not, see <http:#www.gnu.org/licenses/>.
CONFIG(static, shared|static):lessThan(QT_MAJOR_VERSION, 5) {
DEFINES += QT4_STATICPLUGIN_TEXTCODECS
QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs
}
INCLUDEPATH += ../../src/lib
RESOURCES = $$PWD/wkhtmltopdf.qrc
win32: CONFIG += console
win32-g++*: QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
QT += webkit network xmlpatterns svg
greaterThan(QT_MAJOR_VERSION, 4) {
QT += webkitwidgets
greaterThan(QT_MINOR_VERSION, 2): QT += printsupport
}
# version related information
VERSION_TEXT=$$(WKHTMLTOX_VERSION)
isEmpty(VERSION_TEXT): VERSION_TEXT=$$cat($$PWD/VERSION)
VERSION_LIST=$$split(VERSION_TEXT, "-")
count(VERSION_LIST, 1): VERSION=$$VERSION_TEXT
else: VERSION=$$member(VERSION_LIST, 0)
DEFINES += VERSION=$$VERSION FULL_VERSION=$$VERSION_TEXT BUILDING_WKHTMLTOX

View File

@ -0,0 +1,103 @@
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
* vi:set ts=4 sts=4 sw=4 noet :
*
* Copyright 2010, 2011 wkhtmltopdf authors
*
* This file is part of wkhtmltopdf.
*
* wkhtmltopdf 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 3 of the License, or
* (at your option) any later version.
*
* wkhtmltopdf 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 Lesser General Public License
* along with wkhtmltopdf. If not, see <http: *www.gnu.org/licenses/>.
*/
/* This is a simple example program showing how to use the wkhtmltopdf c bindings */
#include <stdbool.h>
#include <stdio.h>
#include <wkhtmltox/image.h>
/* Print out loading progress information */
void progress_changed(wkhtmltoimage_converter * c, int p) {
printf("%3d%%\r",p);
fflush(stdout);
}
/* Print loading phase information */
void phase_changed(wkhtmltoimage_converter * c) {
int phase = wkhtmltoimage_current_phase(c);
printf("%s\n", wkhtmltoimage_phase_description(c, phase));
}
/* Print a message to stderr when an error occurs */
void error(wkhtmltoimage_converter * c, const char * msg) {
fprintf(stderr, "Error: %s\n", msg);
}
/* Print a message to stderr when a warning is issued */
void warning(wkhtmltoimage_converter * c, const char * msg) {
fprintf(stderr, "Warning: %s\n", msg);
}
/* Main method convert image */
int main() {
wkhtmltoimage_global_settings * gs;
wkhtmltoimage_converter * c;
const unsigned char * data;
long len;
/* Init wkhtmltoimage in graphics less mode */
wkhtmltoimage_init(false);
/*
* Create a global settings object used to store options that are not
* related to input objects, note that control of this object is parsed to
* the converter later, which is then responsible for freeing it
*/
gs = wkhtmltoimage_create_global_settings();
/* We want to convert the qstring documentation page */
wkhtmltoimage_set_global_setting(gs, "in", "http://www.google.com/");
wkhtmltoimage_set_global_setting(gs, "fmt", "jpeg");
/* Create the actual converter object used to convert the pages */
c = wkhtmltoimage_create_converter(gs, NULL);
/* Call the progress_changed function when progress changes */
wkhtmltoimage_set_progress_changed_callback(c, progress_changed);
/* Call the phase _changed function when the phase changes */
wkhtmltoimage_set_phase_changed_callback(c, phase_changed);
/* Call the error function when an error occurs */
wkhtmltoimage_set_error_callback(c, error);
/* Call the warning function when a warning is issued */
wkhtmltoimage_set_warning_callback(c, warning);
/* Perform the actual conversion */
if (!wkhtmltoimage_convert(c))
fprintf(stderr, "Conversion failed!");
/* Output possible http error code encountered */
printf("httpErrorCode: %d\n", wkhtmltoimage_http_error_code(c));
len = wkhtmltoimage_get_output(c, &data);
printf("%ld len\n", len);
/* Destroy the converter object since we are done with it */
wkhtmltoimage_destroy_converter(c);
/* We will no longer be needing wkhtmltoimage funcionality */
wkhtmltoimage_deinit();
return 0;
}

View File

@ -0,0 +1,113 @@
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
* vi:set ts=4 sts=4 sw=4 noet :
*
* Copyright 2010, 2011 wkhtmltopdf authors
*
* This file is part of wkhtmltopdf.
*
* wkhtmltopdf 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 3 of the License, or
* (at your option) any later version.
*
* wkhtmltopdf 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 Lesser General Public License
* along with wkhtmltopdf. If not, see <http: *www.gnu.org/licenses/>.
*/
/* This is a simple example program showing how to use the wkhtmltopdf c bindings */
#include <stdbool.h>
#include <stdio.h>
#include <wkhtmltox/pdf.h>
/* Print out loading progress information */
void progress_changed(wkhtmltopdf_converter * c, int p) {
printf("%3d%%\r",p);
fflush(stdout);
}
/* Print loading phase information */
void phase_changed(wkhtmltopdf_converter * c) {
int phase = wkhtmltopdf_current_phase(c);
printf("%s\n", wkhtmltopdf_phase_description(c, phase));
}
/* Print a message to stderr when an error occurs */
void error(wkhtmltopdf_converter * c, const char * msg) {
fprintf(stderr, "Error: %s\n", msg);
}
/* Print a message to stderr when a warning is issued */
void warning(wkhtmltopdf_converter * c, const char * msg) {
fprintf(stderr, "Warning: %s\n", msg);
}
/* Main method convert pdf */
int main() {
wkhtmltopdf_global_settings * gs;
wkhtmltopdf_object_settings * os;
wkhtmltopdf_converter * c;
/* Init wkhtmltopdf in graphics less mode */
wkhtmltopdf_init(false);
/*
* Create a global settings object used to store options that are not
* related to input objects, note that control of this object is parsed to
* the converter later, which is then responsible for freeing it
*/
gs = wkhtmltopdf_create_global_settings();
/* We want the result to be storred in the file called test.pdf */
wkhtmltopdf_set_global_setting(gs, "out", "test.pdf");
wkhtmltopdf_set_global_setting(gs, "load.cookieJar", "myjar.jar");
/*
* Create a input object settings object that is used to store settings
* related to a input object, note again that control of this object is parsed to
* the converter later, which is then responsible for freeing it
*/
os = wkhtmltopdf_create_object_settings();
/* We want to convert to convert the qstring documentation page */
wkhtmltopdf_set_object_setting(os, "page", "http://doc.qt.io/qt-5/qstring.html");
/* Create the actual converter object used to convert the pages */
c = wkhtmltopdf_create_converter(gs);
/* Call the progress_changed function when progress changes */
wkhtmltopdf_set_progress_changed_callback(c, progress_changed);
/* Call the phase _changed function when the phase changes */
wkhtmltopdf_set_phase_changed_callback(c, phase_changed);
/* Call the error function when an error occurs */
wkhtmltopdf_set_error_callback(c, error);
/* Call the warning function when a warning is issued */
wkhtmltopdf_set_warning_callback(c, warning);
/*
* Add the the settings object describing the qstring documentation page
* to the list of pages to convert. Objects are converted in the order in which
* they are added
*/
wkhtmltopdf_add_object(c, os, NULL);
/* Perform the actual conversion */
if (!wkhtmltopdf_convert(c))
fprintf(stderr, "Conversion failed!");
/* Output possible http error code encountered */
printf("httpErrorCode: %d\n", wkhtmltopdf_http_error_code(c));
/* Destroy the converter object since we are done with it */
wkhtmltopdf_destroy_converter(c);
/* We will no longer be needing wkhtmltopdf funcionality */
wkhtmltopdf_deinit();
return 0;
}

View File

@ -0,0 +1,9 @@
# ===[ Subject ]==========[ one line, please wrap at 72 characters ]===|
# ---[ Details ]---------[ remember extra blank line after subject ]---|
# ---[ Fields ]-----------------[ uncomment and edit as applicable ]---|
#Task-number:
# ==================================[ please wrap at 72 characters ]===|

4
libraries/html2pdf/qt/.gitattributes vendored Normal file
View File

@ -0,0 +1,4 @@
.tag export-subst
.gitignore export-ignore
.gitattributes export-ignore
.commit-template export-ignore

272
libraries/html2pdf/qt/.gitignore vendored Normal file
View File

@ -0,0 +1,272 @@
# This file is used to ignore files which are generated in the Qt build system
# ----------------------------------------------------------------------------
examples/*/*/*
!examples/*/*/*[.]*
!examples/*/*/README
examples/*/*/*[.]app
!examples/declarative/*
!examples/tutorials/*
!examples/tutorials/*/*
!examples/ja_JP/*/*
demos/*/*
!demos/spectrum/*
demos/spectrum/bin
!demos/*/*[.]*
demos/*/*[.]app
!demos/declarative/*
config.tests/*/*/*
!config.tests/*/*/*[.]*
config.tests/*/*/*[.]app
callgrind.out.*
pcviewer.cfg
*~
*.a
*.la
*.core
*.moc
*.o
*.obj
*.orig
*.swp
*.rej
*.so
*.pbxuser
*.mode1
*.mode1v3
*_pch.h.cpp
*_resource.rc
.#*
*.*#
core
.qmake.cache
.qmake.vars
*.prl
tags
.DS_Store
*.debug
Makefile*
!qmake/Makefile.win32*
!qmake/Makefile.unix
*.prl
*.app
*.pro.user*
*.qmlproject.user*
*.gcov
bin/Qt*.dll
bin/assistant*
bin/designer*
bin/dumpcpp*
bin/idc*
bin/linguist*
bin/lrelease*
bin/lupdate*
bin/lconvert*
bin/moc*
bin/makeqpf*
bin/pixeltool*
bin/qmake*
bin/qdoc3*
bin/qt3to4*
bin/qtdemo*
bin/qttracereplay*
bin/rcc*
bin/uic*
bin/patternist*
bin/phonon*
bin/qcollectiongenerator*
bin/qdbus*
bin/qhelpconverter*
bin/qhelpgenerator*
bin/qtconfig*
bin/xmlpatterns*
bin/cetest*
bin/collectiongenerator
bin/helpconverter
bin/helpgenerator
bin/kmap2qmap*
bin/qlalr*
bin/qmlconv*
bin/qmldebugger*
bin/qml*
bin/qttracereplay*
configure.cache
config.status
mkspecs/default
mkspecs/modules/qt_webkit_version.pri
mkspecs/qconfig.pri
mkspecs/qdevice.pri
moc_*.cpp
qmake/qmake.exe
qmake/Makefile.bak
src/corelib/global/qconfig.cpp
src/corelib/global/qconfig.h
src/corelib/global/qconfig.h.qmake
src/tools/uic/qclass_lib_map.h
ui_*.h
tests/auto/qprocess/test*/*.exe
tests/auto/qtcpsocket/stressTest/*.exe
tests/auto/qprocess/fileWriterProcess/*.exe
tests/auto/qmake/testdata/quotedfilenames/*.exe
tests/auto/compilerwarnings/*.exe
tests/auto/qmake/testdata/quotedfilenames/test.cpp
tests/auto/qprocess/fileWriterProcess.txt
.com.apple.timemachine.supported
tests/auto/qlibrary/libmylib.so*
tests/auto/qresourceengine/runtime_resource.rcc
tools/qtestlib/chart/chart*
tools/qtestlib/updater/updater*
tools/activeqt/testcon/testcon.tlb
translations/*.qm
translations/*_untranslated.ts
qrc_*.cpp
/.device.vars
# Test generated files
QObject.log
tst_*
!tst_*.*
tst_*.log
tst_*.debug
tst_*~
# xemacs temporary files
*.flc
# Vim temporary files
.*.swp
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pch
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
# MinGW generated files
*.Debug
*.Release
# WebKit temp files
mkspecs/modules/qt_webkit_version.pri
src/3rdparty/webkit/WebCore/mocinclude.tmp
src/3rdparty/webkit/includes.txt
src/3rdparty/webkit/includes2.txt
src/3rdparty/webkit/Source/WebKit/qt/tests/MIMESniffing/MIMESniffing
src/3rdparty/webkit/Source/WebKit/qt/tests/hybridPixmap/hybridPixmap
# Symlinks generated by configure
tools/qvfb/qvfbhdr.h
tools/qvfb/qlock_p.h
tools/qvfb/qlock.cpp
tools/qvfb/qwssignalhandler.cpp
tools/qvfb/qwssignalhandler_p.h
.DS_Store
.pch
.rcc
*.app
config.status
config.tests/unix/cups/cups
config.tests/unix/getaddrinfo/getaddrinfo
config.tests/unix/getifaddrs/getifaddrs
config.tests/unix/iconv/iconv
config.tests/unix/ipv6/ipv6
config.tests/unix/ipv6ifname/ipv6ifname
config.tests/unix/largefile/largefile
config.tests/unix/nis/nis
config.tests/unix/odbc/odbc
config.tests/unix/openssl/openssl
config.tests/unix/stl/stl
config.tests/unix/zlib/zlib
config.tests/unix/3dnow/3dnow
config.tests/unix/mmx/mmx
config.tests/unix/sse/sse
config.tests/unix/sse2/sse2
# Directories to ignore
# ---------------------
debug
examples/tools/plugandpaint/plugins
include/*
include/*/*
lib/*
!lib/fonts
!lib/README
plugins/*/*
release
tmp
doc-build
doc/html/*
tools/qdoc3/doc/html/*
doc/qch
doc-build
.rcc
.pch
.metadata
# Symbian build system generated files
# ---------------------
ABLD.BAT
bld.inf*
*.mmp
*.mk
*.rss
*.loc
!s60main.rss
*.pkg
plugin_commonu.def
*.qtplugin
*.sis
*.sisx
*.lst
*.exe
*.mif
*.rsc
*.sym
*.lib
# runonphone crash dumps
d_exc_*.txt
d_exc_*.stk
# Generated by abldfast.bat from devtools.
.abldsteps.*
# Carbide project files
# ---------------------
.project
.cproject
.make.cache
*.d
qtc-debugging-helper
qtc-qmldump
qtc-qmldbg
src/corelib/lib
src/network/lib
src/xml/lib/
.pc/
# INTEGRITY generated files
*.gpj
*.int
*.ael
*.dla
*.dnm
*.dep
*.map
work

View File

@ -0,0 +1,138 @@
# This file is used to ignore files which are generated in the Qt build system
# ----------------------------------------------------------------------------
syntax: glob
*~
*.a
*.la
*.pc
*.core
*.moc
*.o
*.obj
*.orig
*.swp
*.rej
*.so
*.pbxuser
*.mode1
*.mode1v3
*.qch
*.dylib
*_pch.h.cpp
*_resource.rc
.qmake.cache
*.prl
tags
Makefile
Makefile.Debug
Makefile.Release
bin/Qt*.dll
bin/lconvert*
bin/xmlpatterns*
bin/assistant*
bin/designer*
bin/dumpcpp*
bin/idc*
bin/linguist*
bin/lrelease*
bin/lupdate*
bin/moc*
bin/pixeltool*
bin/qmake*
bin/qdoc3*
bin/qt3to4*
bin/qtdemo*
bin/rcc*
bin/uic*
bin/qcollectiongenerator
bin/qhelpgenerator
bin/macdeployqt
tools/qdoc3/qdoc3*
tools/macdeployqt/macchangeqt/macchangeqt
#configure.cache
mkspecs/default
mkspecs/qconfig.pri
moc_*.cpp
qmake/qmake.exe
qmake/Makefile.bak
src/corelib/global/qconfig.cpp
src/corelib/global/qconfig.h
src/tools/uic/qclass_lib_map.h
ui_*.h
.com.apple.timemachine.supported
# xemacs temporary files
*.flc
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
#
## Symlinks generated by configure
tools/qvfb/qvfbhdr.h
tools/qvfb/qlock_p.h
tools/qvfb/qlock.cpp
tools/qvfb/qwssignalhandler.cpp
tools/qvfb/qwssignalhandler_p.h
.DS_Store
.pch
.rcc
*.app
config.status
config.tests/unix/cups/cups
config.tests/unix/getaddrinfo/getaddrinfo
config.tests/unix/getifaddrs/getifaddrs
config.tests/unix/iconv/iconv
config.tests/unix/ipv6/ipv6
config.tests/unix/ipv6ifname/ipv6ifname
config.tests/unix/largefile/largefile
config.tests/unix/nis/nis
config.tests/unix/odbc/odbc
config.tests/unix/openssl/openssl
config.tests/unix/stl/stl
config.tests/unix/zlib/zlib
config.tests/unix/3dnow/3dnow
config.tests/unix/mmx/mmx
config.tests/unix/sse/sse
config.tests/unix/sse2/sse2
config.tests/unix/psql-escape/psql-escape
config.tests/unix/psql/psql
config.tests/unix/stdint/stdint
# Directories to ignore
# ---------------------
debug
examples/tools/plugandpaint/plugins
include/*
doc/html*
include/*/*
lib/*
plugins/*/*
release
tmp
doc/html/*
doc-build
src/gui/.pch
src/corelib/.pch
src/network/.pch
src/gui/.rcc
src/sql/.rcc
src/xml/.rcc
src/corelib/.rcc
src/network/.rcc
.DS_Store
src/gui/build
src/corelib/global/qconfig.h.qmake
*.perspectivev*
build
src/gui/qtdir.xcconfig

View File

@ -0,0 +1 @@
$Format:%H$

View File

@ -0,0 +1,14 @@
INSTALLING Qt Source Package Version %VERSION%.
For full installation instructions for each supported platform, please
see http://qt-project.org/doc/qt-%SHORTVERSION%/installation.html, the file
doc/html/installation.html in this package, or follow one of the following
links:
Embedded Linux: http://qt-project.org/doc/qt-%SHORTVERSION%/qt-embedded-install.html
Mac OS X: http://qt-project.org/doc/qt-%SHORTVERSION%/install-mac.html
Windows: http://qt-project.org/doc/qt-%SHORTVERSION%/install-win.html
Windows CE: http://qt-project.org/doc/qt-%SHORTVERSION%/install-wince.html
X11 Platforms: http://qt-project.org/doc/qt-%SHORTVERSION%/install-x11.html
Symbian Platform: http://qt-project.org/doc/qt-%SHORTVERSION%/install-symbian.html

View File

@ -0,0 +1,22 @@
The Qt Company Qt LGPL Exception version 1.1
As an additional permission to the GNU Lesser General Public License version
2.1, the object code form of a "work that uses the Library" may incorporate
material from a header file that is part of the Library. You may distribute
such object code under terms of your choice, provided that:
(i) the header files of the Library have not been modified; and
(ii) the incorporated material is limited to numerical parameters, data
structure layouts, accessors, macros, inline functions and
templates; and
(iii) you comply with the terms of Section 6 of the GNU Lesser General
Public License version 2.1.
Moreover, you may apply this exception to a modified version of the Library,
provided that such modification does not involve copying material from the
Library into the modified Library's header files unless such material is
limited to (i) numerical parameters; (ii) data structure layouts;
(iii) accessors; and (iv) small macros, templates and inline functions of
five lines or less in length.
Furthermore, you are not required to apply this additional permission to a
modified version of the Library.

View File

@ -0,0 +1,450 @@
GNU Free Documentation License
Version 1.3, 3 November 2008
Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
<http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
0. PREAMBLE
The purpose of this License is to make a manual, textbook, or other
functional and useful document "free" in the sense of freedom: to
assure everyone the effective freedom to copy and redistribute it,
with or without modifying it, either commercially or noncommercially.
Secondarily, this License preserves for the author and publisher a way
to get credit for their work, while not being considered responsible
for modifications made by others.
This License is a kind of "copyleft", which means that derivative
works of the document must themselves be free in the same sense. It
complements the GNU General Public License, which is a copyleft
license designed for free software.
We have designed this License in order to use it for manuals for free
software, because free software needs free documentation: a free
program should come with manuals providing the same freedoms that the
software does. But this License is not limited to software manuals;
it can be used for any textual work, regardless of subject matter or
whether it is published as a printed book. We recommend this License
principally for works whose purpose is instruction or reference.
1. APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium, that
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License. Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein. The "Document", below,
refers to any such manual or work. Any member of the public is a
licensee, and is addressed as "you". You accept the license if you
copy, modify or distribute the work in a way requiring permission
under copyright law.
A "Modified Version" of the Document means any work containing the
Document or a portion of it, either copied verbatim, or with
modifications and/or translated into another language.
A "Secondary Section" is a named appendix or a front-matter section of
the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall
subject (or to related matters) and contains nothing that could fall
directly within that overall subject. (Thus, if the Document is in
part a textbook of mathematics, a Secondary Section may not explain
any mathematics.) The relationship could be a matter of historical
connection with the subject or with related matters, or of legal,
commercial, philosophical, ethical or political position regarding
them.
The "Invariant Sections" are certain Secondary Sections whose titles
are designated, as being those of Invariant Sections, in the notice
that says that the Document is released under this License. If a
section does not fit the above definition of Secondary then it is not
allowed to be designated as Invariant. The Document may contain zero
Invariant Sections. If the Document does not identify any Invariant
Sections then there are none.
The "Cover Texts" are certain short passages of text that are listed,
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
the Document is released under this License. A Front-Cover Text may
be at most 5 words, and a Back-Cover Text may be at most 25 words.
A "Transparent" copy of the Document means a machine-readable copy,
represented in a format whose specification is available to the
general public, that is suitable for revising the document
straightforwardly with generic text editors or (for images composed of
pixels) generic paint programs or (for drawings) some widely available
drawing editor, and that is suitable for input to text formatters or
for automatic translation to a variety of formats suitable for input
to text formatters. A copy made in an otherwise Transparent file
format whose markup, or absence of markup, has been arranged to thwart
or discourage subsequent modification by readers is not Transparent.
An image format is not Transparent if used for any substantial amount
of text. A copy that is not "Transparent" is called "Opaque".
Examples of suitable formats for Transparent copies include plain
ASCII without markup, Texinfo input format, LaTeX input format, SGML
or XML using a publicly available DTD, and standard-conforming simple
HTML, PostScript or PDF designed for human modification. Examples of
transparent image formats include PNG, XCF and JPG. Opaque formats
include proprietary formats that can be read and edited only by
proprietary word processors, SGML or XML for which the DTD and/or
processing tools are not generally available, and the
machine-generated HTML, PostScript or PDF produced by some word
processors for output purposes only.
The "Title Page" means, for a printed book, the title page itself,
plus such following pages as are needed to hold, legibly, the material
this License requires to appear in the title page. For works in
formats which do not have any title page as such, "Title Page" means
the text near the most prominent appearance of the work's title,
preceding the beginning of the body of the text.
The "publisher" means any person or entity that distributes copies of
the Document to the public.
A section "Entitled XYZ" means a named subunit of the Document whose
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language. (Here XYZ stands for a
specific section name mentioned below, such as "Acknowledgements",
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
of such a section when you modify the Document means that it remains a
section "Entitled XYZ" according to this definition.
The Document may include Warranty Disclaimers next to the notice which
states that this License applies to the Document. These Warranty
Disclaimers are considered to be included by reference in this
License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and has
no effect on the meaning of this License.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either
commercially or noncommercially, provided that this License, the
copyright notices, and the license notice saying this License applies
to the Document are reproduced in all copies, and that you add no
other conditions whatsoever to those of this License. You may not use
technical measures to obstruct or control the reading or further
copying of the copies you make or distribute. However, you may accept
compensation in exchange for copies. If you distribute a large enough
number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and
you may publicly display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have
printed covers) of the Document, numbering more than 100, and the
Document's license notice requires Cover Texts, you must enclose the
copies in covers that carry, clearly and legibly, all these Cover
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
the back cover. Both covers must also clearly and legibly identify
you as the publisher of these copies. The front cover must present
the full title with all words of the title equally prominent and
visible. You may add other material on the covers in addition.
Copying with changes limited to the covers, as long as they preserve
the title of the Document and satisfy these conditions, can be treated
as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit
legibly, you should put the first ones listed (as many as fit
reasonably) on the actual cover, and continue the rest onto adjacent
pages.
If you publish or distribute Opaque copies of the Document numbering
more than 100, you must either include a machine-readable Transparent
copy along with each Opaque copy, or state in or with each Opaque copy
a computer-network location from which the general network-using
public has access to download using public-standard network protocols
a complete Transparent copy of the Document, free of added material.
If you use the latter option, you must take reasonably prudent steps,
when you begin distribution of Opaque copies in quantity, to ensure
that this Transparent copy will remain thus accessible at the stated
location until at least one year after the last time you distribute an
Opaque copy (directly or through your agents or retailers) of that
edition to the public.
It is requested, but not required, that you contact the authors of the
Document well before redistributing any large number of copies, to
give them a chance to provide you with an updated version of the
Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document under
the conditions of sections 2 and 3 above, provided that you release
the Modified Version under precisely this License, with the Modified
Version filling the role of the Document, thus licensing distribution
and modification of the Modified Version to whoever possesses a copy
of it. In addition, you must do these things in the Modified Version:
A. Use in the Title Page (and on the covers, if any) a title distinct
from that of the Document, and from those of previous versions
(which should, if there were any, be listed in the History section
of the Document). You may use the same title as a previous version
if the original publisher of that version gives permission.
B. List on the Title Page, as authors, one or more persons or entities
responsible for authorship of the modifications in the Modified
Version, together with at least five of the principal authors of the
Document (all of its principal authors, if it has fewer than five),
unless they release you from this requirement.
C. State on the Title page the name of the publisher of the
Modified Version, as the publisher.
D. Preserve all the copyright notices of the Document.
E. Add an appropriate copyright notice for your modifications
adjacent to the other copyright notices.
F. Include, immediately after the copyright notices, a license notice
giving the public permission to use the Modified Version under the
terms of this License, in the form shown in the Addendum below.
G. Preserve in that license notice the full lists of Invariant Sections
and required Cover Texts given in the Document's license notice.
H. Include an unaltered copy of this License.
I. Preserve the section Entitled "History", Preserve its Title, and add
to it an item stating at least the title, year, new authors, and
publisher of the Modified Version as given on the Title Page. If
there is no section Entitled "History" in the Document, create one
stating the title, year, authors, and publisher of the Document as
given on its Title Page, then add an item describing the Modified
Version as stated in the previous sentence.
J. Preserve the network location, if any, given in the Document for
public access to a Transparent copy of the Document, and likewise
the network locations given in the Document for previous versions
it was based on. These may be placed in the "History" section.
You may omit a network location for a work that was published at
least four years before the Document itself, or if the original
publisher of the version it refers to gives permission.
K. For any section Entitled "Acknowledgements" or "Dedications",
Preserve the Title of the section, and preserve in the section all
the substance and tone of each of the contributor acknowledgements
and/or dedications given therein.
L. Preserve all the Invariant Sections of the Document,
unaltered in their text and in their titles. Section numbers
or the equivalent are not considered part of the section titles.
M. Delete any section Entitled "Endorsements". Such a section
may not be included in the Modified Version.
N. Do not retitle any existing section to be Entitled "Endorsements"
or to conflict in title with any Invariant Section.
O. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or
appendices that qualify as Secondary Sections and contain no material
copied from the Document, you may at your option designate some or all
of these sections as invariant. To do this, add their titles to the
list of Invariant Sections in the Modified Version's license notice.
These titles must be distinct from any other section titles.
You may add a section Entitled "Endorsements", provided it contains
nothing but endorsements of your Modified Version by various
parties--for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
standard.
You may add a passage of up to five words as a Front-Cover Text, and a
passage of up to 25 words as a Back-Cover Text, to the end of the list
of Cover Texts in the Modified Version. Only one passage of
Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity. If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License
give permission to use their names for publicity for or to assert or
imply endorsement of any Modified Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this
License, under the terms defined in section 4 above for modified
versions, provided that you include in the combination all of the
Invariant Sections of all of the original documents, unmodified, and
list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be replaced with a single
copy. If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
author or publisher of that section if known, or else a unique number.
Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled "History"
in the various original documents, forming one section Entitled
"History"; likewise combine any sections Entitled "Acknowledgements",
and any sections Entitled "Dedications". You must delete all sections
Entitled "Endorsements".
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other
documents released under this License, and replace the individual
copies of this License in the various documents with a single copy
that is included in the collection, provided that you follow the rules
of this License for verbatim copying of each of the documents in all
other respects.
You may extract a single document from such a collection, and
distribute it individually under this License, provided you insert a
copy of this License into the extracted document, and follow this
License in all other respects regarding verbatim copying of that
document.
7. AGGREGATION WITH INDEPENDENT WORKS
A compilation of the Document or its derivatives with other separate
and independent documents or works, in or on a volume of a storage or
distribution medium, is called an "aggregate" if the copyright
resulting from the compilation is not used to limit the legal rights
of the compilation's users beyond what the individual works permit.
When the Document is included in an aggregate, this License does not
apply to the other works in the aggregate which are not themselves
derivative works of the Document.
If the Cover Text requirement of section 3 is applicable to these
copies of the Document, then if the Document is less than one half of
the entire aggregate, the Document's Cover Texts may be placed on
covers that bracket the Document within the aggregate, or the
electronic equivalent of covers if the Document is in electronic form.
Otherwise they must appear on printed covers that bracket the whole
aggregate.
8. TRANSLATION
Translation is considered a kind of modification, so you may
distribute translations of the Document under the terms of section 4.
Replacing Invariant Sections with translations requires special
permission from their copyright holders, but you may include
translations of some or all Invariant Sections in addition to the
original versions of these Invariant Sections. You may include a
translation of this License, and all the license notices in the
Document, and any Warranty Disclaimers, provided that you also include
the original English version of this License and the original versions
of those notices and disclaimers. In case of a disagreement between
the translation and the original version of this License or a notice
or disclaimer, the original version will prevail.
If a section in the Document is Entitled "Acknowledgements",
"Dedications", or "History", the requirement (section 4) to Preserve
its Title (section 1) will typically require changing the actual
title.
9. TERMINATION
You may not copy, modify, sublicense, or distribute the Document
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense, or distribute it is void, and
will automatically terminate your rights under this License.
However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, receipt of a copy of some or all of the same material does
not give you any rights to use it.
10. FUTURE REVISIONS OF THIS LICENSE
The Free Software Foundation may publish new, revised versions of the
GNU Free Documentation 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. See
http://www.gnu.org/copyleft/.
Each version of the License is given a distinguishing version number.
If the Document specifies that a particular numbered version of this
License "or any later version" applies to it, you have the option of
following the terms and conditions either of that specified version or
of any later version that has been published (not as a draft) by the
Free Software Foundation. If the Document does not specify a version
number of this License, you may choose any version ever published (not
as a draft) by the Free Software Foundation. If the Document
specifies that a proxy can decide which future versions of this
License can be used, that proxy's public statement of acceptance of a
version permanently authorizes you to choose that version for the
Document.
11. RELICENSING
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any
World Wide Web server that publishes copyrightable works and also
provides prominent facilities for anybody to edit those works. A
public wiki that anybody can edit is an example of such a server. A
"Massive Multiauthor Collaboration" (or "MMC") contained in the site
means any set of copyrightable works thus published on the MMC site.
"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
license published by Creative Commons Corporation, a not-for-profit
corporation with a principal place of business in San Francisco,
California, as well as future copyleft versions of that license
published by that same organization.
"Incorporate" means to publish or republish a Document, in whole or in
part, as part of another Document.
An MMC is "eligible for relicensing" if it is licensed under this
License, and if all works that were first published under this License
somewhere other than this MMC, and subsequently incorporated in whole or
in part into the MMC, (1) had no cover texts or invariant sections, and
(2) were thus incorporated prior to November 1, 2008.
The operator of an MMC Site may republish an MMC contained in the site
under CC-BY-SA on the same site at any time before August 1, 2009,
provided the MMC is eligible for relicensing.
ADDENDUM: How to use this License for your documents
To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and
license notices just after the title page:
Copyright (c) YEAR YOUR NAME.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License".
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
replace the "with...Texts." line with this:
with the Invariant Sections being LIST THEIR TITLES, with the
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.
If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

View File

@ -0,0 +1,514 @@
GNU LESSER GENERAL PUBLIC LICENSE
The Qt Toolkit is Copyright (C) 2015 The Qt Company Ltd.
Contact: http://www.qt.io/licensing/
You may use, distribute and copy the Qt GUI Toolkit under the terms of
GNU Lesser General Public License version 2.1, which is displayed below.
-------------------------------------------------------------------------
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 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 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.
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.
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.
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 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.
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.
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.
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 the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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., 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!

View File

@ -0,0 +1,514 @@
GNU LESSER GENERAL PUBLIC LICENSE
The Qt Toolkit is Copyright (C) 2015 The Qt Company Ltd.
Contact: http://www.qt.io/licensing/
You may use, distribute and copy the Qt GUI Toolkit under the terms of
GNU Lesser General Public License version 2.1, which is displayed below.
-------------------------------------------------------------------------
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 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 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.
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.
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.
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 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.
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.
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.
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 the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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., 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!

View File

@ -0,0 +1,173 @@
GNU LESSER GENERAL PUBLIC LICENSE
The Qt Toolkit is Copyright (C) 2015 The Qt Company Ltd.
Contact: http://www.qt.io/licensing/
You may use, distribute and copy the Qt GUI Toolkit under the terms of
GNU Lesser General Public License version 3, which is displayed below.
-------------------------------------------------------------------------
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
licensedocument, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, “this License” refers to version 3 of the GNU Lesser
General Public License, and the “GNU GPL” refers to version 3 of the
GNU General Public License.
“The Library” refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An “Application” is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A “Combined Work” is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the “Linked
Version”.
The “Minimal Corresponding Source” for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The “Corresponding Application Code” for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort
to ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this
license document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken
together, effectively do not restrict modification of the portions of
the Library contained in the Combined Work and reverse engineering for
debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this
license document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of
this License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with
the Library. A suitable mechanism is one that (a) uses at run
time a copy of the Library already present on the user's
computer system, and (b) will operate properly with a modified
version of the Library that is interface-compatible with the
Linked Version.
e) Provide Installation Information, but only if you would
otherwise be required to provide such information under section 6
of the GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the Application
with a modified version of the Linked Version. (If you use option
4d0, the Installation Information must accompany the Minimal
Corresponding Source and Corresponding Application Code. If you
use option 4d1, you must provide the Installation Information in
the manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.)
5. Combined Libraries.
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 that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of
it is a work based on the Library, and explaining where to find
the accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU 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
as you received it specifies that a certain numbered version of the
GNU Lesser General Public License “or any later version” applies to
it, you have the option of following the terms and conditions either
of that published version or of any later version published by the
Free Software Foundation. If the Library as you received it does not
specify a version number of the GNU Lesser General Public License,
you may choose any version of the GNU Lesser General Public License
ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the Library.

View File

@ -0,0 +1,630 @@
TECHNOLOGY PREVIEW LICENSE AGREEMENT
For individuals and/or legal entities resident in the Americas (North
America, Central America and South America), the applicable licensing
terms are specified under the heading "Technology Preview License
Agreement: The Americas".
For individuals and/or legal entities not resident in The Americas, the
applicable licensing terms are specified under the heading "Technology
Preview License Agreement: Rest of the World".
TECHNOLOGY PREVIEW LICENSE AGREEMENT: The Americas
Agreement version 2.4
This Technology Preview License Agreement ("Agreement")is a legal agreement
between The Qt Company USA, Inc. ("The Qt Company"), with its registered
office at 2350 Mission College Blvd., Suite 1020, Santa Clara, California
95054, U.S.A. and you (either an individual or a legal entity) ("Licensee")
for the Licensed Software (as defined below).
1. DEFINITIONS
"Affiliate" of a Party shall mean an entity (i) which is directly or
indirectly controlling such Party; (ii) which is under the same direct
or indirect ownership or control as such Party; or (iii) which is
directly or indirectly owned or controlled by such Party. For these
purposes, an entity shall be treated as being controlled by another if
that other entity has fifty percent (50 %) or more of the votes in such
entity, is able to direct its affairs and/or to control the composition
of its board of directors or equivalent body.
"Applications" shall mean Licensee's software products created using the
Licensed Software which may include portions of the Licensed Software.
"Term" shall mean the period of time six (6) months from the later of
(a) the Effective Date; or (b) the date the Licensed Software was
initially delivered to Licensee by The Qt Company. If no specific Effective
Date is set forth in the Agreement, the Effective Date shall be deemed to be
the date the Licensed Software was initially delivered to Licensee.
"Licensed Software" shall mean the computer software, "online" or
electronic documentation, associated media and printed materials,
including the source code, example programs and the documentation
delivered by The Qt Company to Licensee in conjunction with this Agreement.
"Party" or "Parties" shall mean Licensee and/or The Qt Company.
2. OWNERSHIP
The Licensed Software is protected by copyright laws and international
copyright treaties, as well as other intellectual property laws and
treaties. The Licensed Software is licensed, not sold.
If Licensee provides any findings, proposals, suggestions or other
feedback ("Feedback") to The Qt Company regarding the Licensed Software,
The Qt Company shall own all right, title and interest including the
intellectual property rights in and to such Feedback, excluding however any
existing patent rights of Licensee. To the extent Licensee owns or controls
any patents for such Feedback Licensee hereby grants to The Qt Company and its
Affiliates, a worldwide, perpetual, non-transferable, sublicensable,
royalty-free license to (i) use, copy and modify Feedback and to create
derivative works thereof, (ii) to make (and have made), use, import,
sell, offer for sale, lease, dispose, offer for disposal or otherwise
exploit any products or services of The Qt Company containing Feedback, and
(iii) sublicense all the foregoing rights to third party licensees and
customers of The Qt Company and/or its Affiliates.
3. VALIDITY OF THE AGREEMENT
By installing, copying, or otherwise using the Licensed Software,
Licensee agrees to be bound by the terms of this Agreement. If Licensee
does not agree to the terms of this Agreement, Licensee may not install,
copy, or otherwise use the Licensed Software. Upon Licensee's acceptance
of the terms and conditions of this Agreement, The Qt Company grants Licensee
the right to use the Licensed Software in the manner provided below.
4. LICENSES
4.1. Using and Copying
The Qt Company grants to Licensee a non-exclusive, non-transferable,
time-limited license to use and copy the Licensed Software for sole purpose
of designing, developing and testing Applications, and evaluating and the
Licensed Software during the Term.
Licensee may install copies of the Licensed Software on an unlimited
number of computers provided that (a) if an individual, only such
individual; or (b) if a legal entity only its employees; use the
Licensed Software for the authorized purposes.
4.2 No Distribution or Modifications
Licensee may not disclose, modify, sell, market, commercialise,
distribute, loan, rent, lease, or license the Licensed Software or any
copy of it or use the Licensed Software for any purpose that is not
expressly granted in this Section 4. Licensee may not alter or remove
any details of ownership, copyright, trademark or other property right
connected with the Licensed Software. Licensee may not distribute any
software statically or dynamically linked with the Licensed Software.
4.3 No Technical Support
The Qt Company has no obligation to furnish Licensee with any technical
support whatsoever. Any such support is subject to separate agreement between
the Parties.
5. PRE-RELEASE CODE
The Licensed Software contains pre-release code that is not at the level
of performance and compatibility of a final, generally available,
product offering. The Licensed Software may not operate correctly and
may be substantially modified prior to the first commercial product
release, if any. The Qt Company is not obligated to make this or any later
version of the Licensed Software commercially available. The License
Software is "Not for Commercial Use" and may only be used for the
purposes described in Section 4. The Licensed Software may not be used
in a live operating environment where it may be relied upon to perform
in the same manner as a commercially released product or with data that
has not been sufficiently backed up.
6. THIRD PARTY SOFTWARE
The Licensed Software may provide links to third party libraries or code
(collectively "Third Party Software") to implement various functions.
Third Party Software does not comprise part of the Licensed Software. In
some cases, access to Third Party Software may be included along with
the Licensed Software delivery as a convenience for development and
testing only. Such source code and libraries may be listed in the
".../src/3rdparty" source tree delivered with the Licensed Software or
documented in the Licensed Software where the Third Party Software is
used, as may be amended from time to time, do not comprise the Licensed
Software. Licensee acknowledges (1) that some part of Third Party
Software may require additional licensing of copyright and patents from
the owners of such, and (2) that distribution of any of the Licensed
Software referencing any portion of a Third Party Software may require
appropriate licensing from such third parties.
7. LIMITED WARRANTY AND WARRANTY DISCLAIMER
The Licensed Software is licensed to Licensee "as is". To the maximum
extent permitted by applicable law, The Qt Company on behalf of itself and
its suppliers, disclaims all warranties and conditions, either express or
implied, including, but not limited to, implied warranties of
merchantability, fitness for a particular purpose, title and
non-infringement with regard to the Licensed Software.
8. LIMITATION OF LIABILITY
If, The Qt Company's warranty disclaimer notwithstanding, The Qt Company is
held liable to Licensee, whether in contract, tort or any other legal theory,
based on the Licensed Software, The Qt Company's entire liability to Licensee
and Licensee's exclusive remedy shall be, at The Qt Company's option, either
(A) return of the price Licensee paid for the Licensed Software, or (B)
repair or replacement of the Licensed Software, provided Licensee
returns to The Qt Company all copies of the Licensed Software as originally
delivered to Licensee. The Qt Company shall not under any circumstances be
liable to Licensee based on failure of the Licensed Software if the failure
resulted from accident, abuse or misapplication, nor shall The Qt Company
under any circumstances be liable for special damages, punitive or exemplary
damages, damages for loss of profits or interruption of business or for
loss or corruption of data. Any award of damages from The Qt Company to
Licensee shall not exceed the total amount Licensee has paid to The Qt
Company in connection with this Agreement.
9. CONFIDENTIALITY
Each party acknowledges that during the Term of this Agreement it shall
have access to information about the other party's business, business
methods, business plans, customers, business relations, technology, and
other information, including the terms of this Agreement, that is
confidential and of great value to the other party, and the value of
which would be significantly reduced if disclosed to third parties (the
"Confidential Information"). Accordingly, when a party (the "Receiving
Party") receives Confidential Information from another party (the
"Disclosing Party"), the Receiving Party shall, and shall obligate its
employees and agents and employees and agents of its Affiliates to: (i)
maintain the Confidential Information in strict confidence; (ii) not
disclose the Confidential Information to a third party without the
Disclosing Party's prior written approval; and (iii) not, directly or
indirectly, use the Confidential Information for any purpose other than
for exercising its rights and fulfilling its responsibilities pursuant
to this Agreement. Each party shall take reasonable measures to protect
the Confidential Information of the other party, which measures shall
not be less than the measures taken by such party to protect its own
confidential and proprietary information.
"Confidential Information" shall not include information that (a) is or
becomes generally known to the public through no act or omission of the
Receiving Party; (b) was in the Receiving Party's lawful possession
prior to the disclosure hereunder and was not subject to limitations on
disclosure or use; (c) is developed by the Receiving Party without
access to the Confidential Information of the Disclosing Party or by
persons who have not had access to the Confidential Information of the
Disclosing Party as proven by the written records of the Receiving
Party; (d) is lawfully disclosed to the Receiving Party without
restrictions, by a third party not under an obligation of
confidentiality; or (e) the Receiving Party is legally compelled to
disclose the information, in which case the Receiving Party shall assert
the privileged and confidential nature of the information and cooperate
fully with the Disclosing Party to protect against and prevent
disclosure of any Confidential Information and to limit the scope of
disclosure and the dissemination of disclosed Confidential Information
by all legally available means.
The obligations of the Receiving Party under this Section shall continue
during the Initial Term and for a period of five (5) years after
expiration or termination of this Agreement. To the extent that the
terms of the Non-Disclosure Agreement between The Qt Company and Licensee
conflict with the terms of this Section 9, this Section 9 shall be
controlling over the terms of the Non-Disclosure Agreement.
10. GENERAL PROVISIONS
10.1 No Assignment
Licensee shall not be entitled to assign or transfer all or any of its
rights, benefits and obligations under this Agreement without the prior
written consent of The Qt Company, which shall not be unreasonably withheld.
10.2 Termination
The Qt Company may terminate the Agreement at any time immediately upon
written notice by The Qt Company to Licensee if Licensee breaches this
Agreement.
Upon termination of this Agreement, Licensee shall return to The Qt Company
all copies of Licensed Software that were supplied by The Qt Company. All
other copies of Licensed Software in the possession or control of Licensee
must be erased or destroyed. An officer of Licensee must promptly
deliver to The Qt Company a written confirmation that this has occurred.
10.3 Surviving Sections
Any terms and conditions that by their nature or otherwise reasonably
should survive a cancellation or termination of this Agreement shall
also be deemed to survive. Such terms and conditions include, but are
not limited to the following Sections: 2, 5, 6, 7, 8, 9, 10.2, 10.3, 10.4,
10.5, 10.6, 10.7, and 10.8 of this Agreement.
10.4 Entire Agreement
This Agreement constitutes the complete agreement between the parties
and supersedes all prior or contemporaneous discussions,
representations, and proposals, written or oral, with respect to the
subject matters discussed herein, with the exception of the
non-disclosure agreement executed by the parties in connection with this
Agreement ("Non-Disclosure Agreement"), if any, shall be subject to
Section 9. No modification of this Agreement shall be effective unless
contained in a writing executed by an authorized representative of each
party. No term or condition contained in Licensee's purchase order shall
apply unless expressly accepted by The Qt Company in writing. If any
provision of the Agreement is found void or unenforceable, the remainder
shall remain valid and enforceable according to its terms. If any remedy
provided is determined to have failed for its essential purpose, all
limitations of liability and exclusions of damages set forth in this
Agreement shall remain in effect.
10.5 Export Control
Licensee acknowledges that the Licensed Software may be subject to
export control restrictions of various countries. Licensee shall fully
comply with all applicable export license restrictions and requirements
as well as with all laws and regulations relating to the importation of
the Licensed Software and shall procure all necessary governmental
authorizations, including without limitation, all necessary licenses,
approvals, permissions or consents, where necessary for the
re-exportation of the Licensed Software.,
10.6 Governing Law and Legal Venue
This Agreement shall be governed by and construed in accordance with the
federal laws of the United States of America and the internal laws of
the State of New York without given effect to any choice of law rule
that would result in the application of the laws of any other
jurisdiction. The United Nations Convention on Contracts for the
International Sale of Goods (CISG) shall not apply. Each Party (a)
hereby irrevocably submits itself to and consents to the jurisdiction of
the United States District Court for the Southern District of New York
(or if such court lacks jurisdiction, the state courts of the State of
New York) for the purposes of any action, claim, suit or proceeding
between the Parties in connection with any controversy, claim, or
dispute arising out of or relating to this Agreement; and (b) hereby
waives, and agrees not to assert by way of motion, as a defense or
otherwise, in any such action, claim, suit or proceeding, any claim that
is not personally subject to the jurisdiction of such court(s), that the
action, claim, suit or proceeding is brought in an inconvenient forum or
that the venue of the action, claim, suit or proceeding is improper.
Notwithstanding the foregoing, nothing in this Section 9.6 is intended
to, or shall be deemed to, constitute a submission or consent to, or
selection of, jurisdiction, forum or venue for any action for patent
infringement, whether or not such action relates to this Agreement.
10.7 No Implied License
There are no implied licenses or other implied rights granted under this
Agreement, and all rights, save for those expressly granted hereunder,
shall remain with The Qt Company and its licensors. In addition, no licenses
or immunities are granted to the combination of the Licensed Software with
any other software or hardware not delivered by The Qt Company under this
Agreement.
10.8 Government End Users
A "U.S. Government End User" shall mean any agency or entity of the
government of the United States. The following shall apply if Licensee
is a U.S. Government End User. The Licensed Software is a "commercial
item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995),
consisting of "commercial computer software" and "commercial computer
software documentation," as such terms are used in 48 C.F.R. 12.212
(Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
through 227.7202-4 (June 1995), all U.S. Government End Users acquire
the Licensed Software with only those rights set forth herein. The
Licensed Software (including related documentation) is provided to U.S.
Government End Users: (a) only as a commercial end item; and (b) only
pursuant to this Agreement.
TECHNOLOGY PREVIEW LICENSE AGREEMENT: Rest of the World
Agreement version 2.4
This Technology Preview License Agreement ("Agreement") is a legal
agreement between The Qt Company Ltd ("The Qt Company"), with its registered
office at Valimotie 21,FI-00380 Helsinki, Finland and you (either an
individual or a legal entity) ("Licensee") for the Licensed Software.
1. DEFINITIONS
"Affiliate" of a Party shall mean an entity (i) which is directly or
indirectly controlling such Party; (ii) which is under the same direct
or indirect ownership or control as such Party; or (iii) which is
directly or indirectly owned or controlled by such Party. For these
purposes, an entity shall be treated as being controlled by another if
that other entity has fifty percent (50 %) or more of the votes in such
entity, is able to direct its affairs and/or to control the composition
of its board of directors or equivalent body.
"Applications" shall mean Licensee's software products created using the
Licensed Software which may include portions of the Licensed Software.
"Term" shall mean the period of time six (6) months from the later of
(a) the Effective Date; or (b) the date the Licensed Software was
initially delivered to Licensee by The Qt Company. If no specific Effective
Date is set forth in the Agreement, the Effective Date shall be deemed to be
the date the Licensed Software was initially delivered to Licensee.
"Licensed Software" shall mean the computer software, "online" or
electronic documentation, associated media and printed materials,
including the source code, example programs and the documentation
delivered by The Qt Company to Licensee in conjunction with this Agreement.
"Party" or "Parties" shall mean Licensee and/or The Qt Company.
2. OWNERSHIP
The Licensed Software is protected by copyright laws and international
copyright treaties, as well as other intellectual property laws and
treaties. The Licensed Software is licensed, not sold.
If Licensee provides any findings, proposals, suggestions or other
feedback ("Feedback") to The Qt Company regarding the Licensed Software,
The Qt Companyshall own all right, title and interest including the
intellectual property rights in and to such Feedback, excluding however any
existing patent rights of Licensee. To the extent Licensee owns or controls
any patents for such Feedback Licensee hereby grants to The Qt Company and
its Affiliates, a worldwide, perpetual, non-transferable, sublicensable,
royalty-free license to (i) use, copy and modify Feedback and to create
derivative works thereof, (ii) to make (and have made), use, import,
sell, offer for sale, lease, dispose, offer for disposal or otherwise
exploit any products or services of The Qt Company containing Feedback, and
(iii) sublicense all the foregoing rights to third party licensees and
customers of The Qt Company and/or its Affiliates.
3. VALIDITY OF THE AGREEMENT
By installing, copying, or otherwise using the Licensed Software,
Licensee agrees to be bound by the terms of this Agreement. If Licensee
does not agree to the terms of this Agreement, Licensee may not install,
copy, or otherwise use the Licensed Software. Upon Licensee's acceptance
of the terms and conditions of this Agreement, The Qt Company grants Licensee
the right to use the Licensed Software in the manner provided below.
4. LICENSES
4.1. Using and Copying
The Qt Company grants to Licensee a non-exclusive, non-transferable,
time-limited license to use and copy the Licensed Software for sole purpose
of designing, developing and testing Applications, and evaluating and the
Licensed Software during the Term.
Licensee may install copies of the Licensed Software on an unlimited
number of computers provided that (a) if an individual, only such
individual; or (b) if a legal entity only its employees; use the
Licensed Software for the authorized purposes.
4.2 No Distribution or Modifications
Licensee may not disclose, modify, sell, market, commercialise,
distribute, loan, rent, lease, or license the Licensed Software or any
copy of it or use the Licensed Software for any purpose that is not
expressly granted in this Section 4. Licensee may not alter or remove
any details of ownership, copyright, trademark or other property right
connected with the Licensed Software. Licensee may not distribute any
software statically or dynamically linked with the Licensed Software.
4.3 No Technical Support
The Qt Company has no obligation to furnish Licensee with any technical
support whatsoever. Any such support is subject to separate agreement
between the Parties.
5. PRE-RELEASE CODE
The Licensed Software contains pre-release code that is not at the level
of performance and compatibility of a final, generally available,
product offering. The Licensed Software may not operate correctly and
may be substantially modified prior to the first commercial product
release, if any. The Qt Company is not obligated to make this or any later
version of the Licensed Software commercially available. The License
Software is "Not for Commercial Use" and may only be used for the
purposes described in Section 4. The Licensed Software may not be used
in a live operating environment where it may be relied upon to perform
in the same manner as a commercially released product or with data that
has not been sufficiently backed up.
6. THIRD PARTY SOFTWARE
The Licensed Software may provide links to third party libraries or code
(collectively "Third Party Software") to implement various functions.
Third Party Software does not comprise part of the Licensed Software. In
some cases, access to Third Party Software may be included along with
the Licensed Software delivery as a convenience for development and
testing only. Such source code and libraries may be listed in the
".../src/3rdparty" source tree delivered with the Licensed Software or
documented in the Licensed Software where the Third Party Software is
used, as may be amended from time to time, do not comprise the Licensed
Software. Licensee acknowledges (1) that some part of Third Party
Software may require additional licensing of copyright and patents from
the owners of such, and (2) that distribution of any of the Licensed
Software referencing any portion of a Third Party Software may require
appropriate licensing from such third parties.
7. LIMITED WARRANTY AND WARRANTY DISCLAIMER
The Licensed Software is licensed to Licensee "as is". To the maximum
extent permitted by applicable law, The Qt Company on behalf of itself and
its suppliers, disclaims all warranties and conditions, either express or
implied, including, but not limited to, implied warranties of
merchantability, fitness for a particular purpose, title and
non-infringement with regard to the Licensed Software.
8. LIMITATION OF LIABILITY
If, The Qt Company's warranty disclaimer notwithstanding, The Qt Company is
held liable to Licensee, whether in contract, tort or any other legal theory,
based on the Licensed Software, The Qt Company's entire liability to Licensee
and Licensee's exclusive remedy shall be, at The Qt Company's option, either
(A) return of the price Licensee paid for the Licensed Software, or (B)
repair or replacement of the Licensed Software, provided Licensee
returns to The Qt Company all copies of the Licensed Software as originally
delivered to Licensee. The Qt Company shall not under any circumstances be
liable to Licensee based on failure of the Licensed Software if the failure
resulted from accident, abuse or misapplication, nor shall The Qt Company
under any circumstances be liable for special damages, punitive or exemplary
damages, damages for loss of profits or interruption of business or for
loss or corruption of data. Any award of damages from The Qt Company to
Licensee shall not exceed the total amount Licensee has paid to
The Qt Company in connection with this Agreement.
9. CONFIDENTIALITY
Each party acknowledges that during the Term of this Agreement it shall
have access to information about the other party's business, business
methods, business plans, customers, business relations, technology, and
other information, including the terms of this Agreement, that is
confidential and of great value to the other party, and the value of
which would be significantly reduced if disclosed to third parties (the
"Confidential Information"). Accordingly, when a party (the "Receiving
Party") receives Confidential Information from another party (the
"Disclosing Party"), the Receiving Party shall, and shall obligate its
employees and agents and employees and agents of its Affiliates to: (i)
maintain the Confidential Information in strict confidence; (ii) not
disclose the Confidential Information to a third party without the
Disclosing Party's prior written approval; and (iii) not, directly or
indirectly, use the Confidential Information for any purpose other than
for exercising its rights and fulfilling its responsibilities pursuant
to this Agreement. Each party shall take reasonable measures to protect
the Confidential Information of the other party, which measures shall
not be less than the measures taken by such party to protect its own
confidential and proprietary information.
"Confidential Information" shall not include information that (a) is or
becomes generally known to the public through no act or omission of the
Receiving Party; (b) was in the Receiving Party's lawful possession
prior to the disclosure hereunder and was not subject to limitations on
disclosure or use; (c) is developed by the Receiving Party without
access to the Confidential Information of the Disclosing Party or by
persons who have not had access to the Confidential Information of the
Disclosing Party as proven by the written records of the Receiving
Party; (d) is lawfully disclosed to the Receiving Party without
restrictions, by a third party not under an obligation of
confidentiality; or (e) the Receiving Party is legally compelled to
disclose the information, in which case the Receiving Party shall assert
the privileged and confidential nature of the information and cooperate
fully with the Disclosing Party to protect against and prevent
disclosure of any Confidential Information and to limit the scope of
disclosure and the dissemination of disclosed Confidential Information
by all legally available means.
The obligations of the Receiving Party under this Section shall continue
during the Initial Term and for a period of five (5) years after
expiration or termination of this Agreement. To the extent that the
terms of the Non-Disclosure Agreement between The Qt Company and Licensee
conflict with the terms of this Section 9, this Section 9 shall be
controlling over the terms of the Non-Disclosure Agreement.
10. GENERAL PROVISIONS
10.1 No Assignment
Licensee shall not be entitled to assign or transfer all or any of its
rights, benefits and obligations under this Agreement without the prior
written consent of The Qt Company, which shall not be unreasonably withheld.
10.2 Termination
The Qt Company may terminate the Agreement at any time immediately upon
written notice by The Qt Company to Licensee if Licensee breaches this
Agreement.
Upon termination of this Agreement, Licensee shall return to The Qt Company
all copies of Licensed Software that were supplied by The Qt Company. All
other copies of Licensed Software in the possession or control of Licensee
must be erased or destroyed. An officer of Licensee must promptly
deliver to The Qt Company a written confirmation that this has occurred.
10.3 Surviving Sections
Any terms and conditions that by their nature or otherwise reasonably
should survive a cancellation or termination of this Agreement shall
also be deemed to survive. Such terms and conditions include, but are
not limited to the following Sections: 2, 5, 6, 7, 8, 9, 10.2, 10.3, 10.4,
10.5, 10.6, 10.7, and 10.8 of this Agreement.
10.4 Entire Agreement
This Agreement constitutes the complete agreement between the parties
and supersedes all prior or contemporaneous discussions,
representations, and proposals, written or oral, with respect to the
subject matters discussed herein, with the exception of the
non-disclosure agreement executed by the parties in connection with this
Agreement ("Non-Disclosure Agreement"), if any, shall be subject to
Section 9. No modification of this Agreement shall be effective unless
contained in a writing executed by an authorized representative of each
party. No term or condition contained in Licensee's purchase order shall
apply unless expressly accepted by The Qt Company in writing. If any provision
of the Agreement is found void or unenforceable, the remainder shall remain
valid and enforceable according to its terms. If any remedy provided is
determined to have failed for its essential purpose, all limitations of
liability and exclusions of damages set forth in this Agreement shall
remain in effect.
10.5 Export Control
Licensee acknowledges that the Licensed Software may be subject to
export control restrictions of various countries. Licensee shall fully
comply with all applicable export license restrictions and requirements
as well as with all laws and regulations relating to the importation of
the Licensed Software and shall procure all necessary governmental
authorizations, including without limitation, all necessary licenses,
approvals, permissions or consents, where necessary for the
re-exportation of the Licensed Software.,
10.6 Governing Law and Legal Venue
This Agreement shall be construed and interpreted in accordance with the
laws of Finland, excluding its choice of law provisions. Any disputes
arising out of or relating to this Agreement shall be resolved in
arbitration under the Rules of Arbitration of the Chamber of Commerce of
Helsinki, Finland. The arbitration tribunal shall consist of one (1), or
if either Party so requires, of three (3), arbitrators. The award shall
be final and binding and enforceable in any court of competent
jurisdiction. The arbitration shall be held in Helsinki, Finland and the
process shall be conducted in the English language.
10.7 No Implied License
There are no implied licenses or other implied rights granted under this
Agreement, and all rights, save for those expressly granted hereunder,
shall remain with The Qt Company and its licensors. In addition, no licenses
or immunities are granted to the combination of the Licensed Software with
any other software or hardware not delivered by The Qt Company under this
Agreement.
10.8 Government End Users
A "U.S. Government End User" shall mean any agency or entity of the
government of the United States. The following shall apply if Licensee
is a U.S. Government End User. The Licensed Software is a "commercial
item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995),
consisting of "commercial computer software" and "commercial computer
software documentation," as such terms are used in 48 C.F.R. 12.212
(Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
through 227.7202-4 (June 1995), all U.S. Government End Users acquire
the Licensed Software with only those rights set forth herein. The
Licensed Software (including related documentation) is provided to U.S.
Government End Users: (a) only as a commercial end item; and (b) only
pursuant to this Agreement.

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=QMLViewer
Exec=/usr/bin/qmlviewer -graphicssystem meego
Icon=/usr/share/icons/hicolor/64x64/apps/QMLViewer.png
Categories=X-MeeGo;
OnlyShowIn=X-MeeGo;

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -0,0 +1,58 @@
This package uses quilt to manage all modifications to the upstream
source. Changes are stored in the source package as diffs in
debian/patches and applied during the build.
To configure quilt to use debian/patches instead of patches, you want
either to export QUILT_PATCHES=debian/patches in your environment
or use this snippet in your ~/.quiltrc:
for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
export QUILT_PATCHES=debian/patches
break
fi
done
To get the fully patched source after unpacking the source package, cd to
the root level of the source package and run:
quilt push -a
The last patch listed in debian/patches/series will become the current
patch.
To add a new set of changes, first run quilt push -a, and then run:
quilt new <patch>
where <patch> is a descriptive name for the patch, used as the filename in
debian/patches. Then, for every file that will be modified by this patch,
run:
quilt add <file>
before editing those files. You must tell quilt with quilt add what files
will be part of the patch before making changes or quilt will not work
properly. After editing the files, run:
quilt refresh
to save the results as a patch.
Alternately, if you already have an external patch and you just want to
add it to the build system, run quilt push -a and then:
quilt import -P <patch> /path/to/patch
quilt push -a
(add -p 0 to quilt import if needed). <patch> as above is the filename to
use in debian/patches. The last quilt push -a will apply the patch to
make sure it works properly.
To remove an existing patch from the list of patches that will be applied,
run:
quilt delete <patch>
You may need to run quilt pop -a to unapply patches first before running
this command.

View File

@ -0,0 +1,120 @@
interface: Phonon
type: library
libs-pkg: libqt4-phonon
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/phonon/*
interface: QtCore
type: library
libs-pkg: libqtcore4
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtCore/*
interface: QtDBus
type: library
libs-pkg: libqt4-dbus
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtDBus/*
interface: QtDeclarative
type: library
libs-pkg: libqt4-declarative
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtDeclarative/*
interface: QtGui
type: library
libs-pkg: libqtgui4
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtGui/*
interface: QtHelp
type: library
libs-pkg: libqt4-help
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtHelp/*
interface: QtMultimedia
type: library
libs-pkg: libqt4-multimedia
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtMultimedia/*
interface: QtNetwork
type: library
libs-pkg: libqt4-network
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtNetwork/*
interface: QtOpenGL
type: library
libs-pkg: libqt4-opengl
dev-pkg: libqt4-dev libqt4-opengl-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtOpenGL/*
interface: QtScript
type: library
libs-pkg: libqt4-script
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtScript/*
interface: QtSql
type: library
libs-pkg: libqt4-sql-sqlite libqt4-sql
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtSql/*
interface: QtSvg
type: library
libs-pkg: libqt4-svg
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtSvg/*
interface: QtTest
type: library
libs-pkg: libqt4-test
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtTest/*
interface: QtXml
type: library
libs-pkg: libqt4-xml
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtXml/*
interface: QtXmlPatterns
type: library
libs-pkg: libqt4-xmlpatterns
dev-pkg: libqt4-dev
state: stable
scope: Nokia MeeGo
headers: /usr/include/qt4/QtXmlPatterns/*

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,231 @@
begin 644 qtdemo.qhc
M4U%,:71E(&9O<FUA="`S``0``0$`0"`@````%@````````````````````8`
M```!```````````````"````````````````````````````````````````
M``````````````4````!`_L`````"`/[````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````````&`PT````"`MT``X$"
MW0``````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``"!(0(%`'6!76,`;P!M`"X`=`!R`&\`;`!L`'0`90!C`&@`+@!D`&4`<P!I
M`&<`;@!E`'(`+@`T`#0`,``N`"X`+P`N`"X`+P`N`"X`+P`N`"X`+P!S`&@`
M80!R`&4`+P!Q`'0`-``O`&0`;P!C`"\`:`!T`&T`;``M`&0`90!S`&D`9P!N
M`&4`<@`O`&0`90!S`&D`9P!N`&4`<@`N`'$`8P!H`'T!!0!=@2UC`&\`;0`N
M`'0`<@!O`&P`;`!T`&4`8P!H`"X`<0!T`"X`-``T`#``+@`N`"\`+@`N`"\`
M+@`N`"\`+@`N`"\`<P!H`&$`<@!E`"\`<0!T`#0`+P!D`&\`8P`O`&@`=`!M
M`&P`+0!Q`'0`+P!Q`'0`+@!Q`&,`:``-`````@/B``/Q`^(`````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````#0($``$=`G$`9`!O`&,`#0$$
M``$=`7$`9`!O`&,`#0````4#KP`#]P/H`],#Q`.O````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````!,%`P`M9`!E`',`:0!G`&X`90!R``T$`P`A=`!O`&\`;`!S
M`!,#`P`M<0!T`'(`90!F`&0`;P!C``T"`P`A-``N`#0`+@`P``<!`P`5<0!T
M``T````"`\(``^L#P@``````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````)P(#`%51`'0`(`!$`&4`<P!I`&<`;@!E`'(`
M(`!-`&$`;@!U`&$`;``3`0,`+5$`=``@`#0`+@`T`"X`,``-`````P$_``$_
M`BH##P``````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````@6@!!R%%
M10&"270`80!B`&P`90!.`&$`;0!E`',`<`!A`&,`90!4`&$`8@!L`&4`3@!A
M`&T`90!S`'``80!C`&4`5`!A`&(`;`!E``)#`%(`10!!`%0`10`@`%0`00!"
M`$P`10`@`$X`80!M`&4`<P!P`&$`8P!E`%0`80!B`&P`90`@`"@`20!D`"``
M20!.`%0`10!'`$4`4@`@`%``4@!)`$T`00!2`%D`(`!+`$4`60`L`"``3@!A
M`&T`90`@`%0`10!8`%0`+``@`$8`:0!L`&4`4`!A`'0`:``@`%0`10!8`%0`
M(``I`(%B`@<A.3D!@E5T`&$`8@!L`&4`1@!O`&P`9`!E`'(`5`!A`&(`;`!E
M`$8`;P!L`&0`90!R`%0`80!B`&P`90`#0P!2`$4`00!4`$4`(`!4`$$`0@!,
M`$4`(`!&`&\`;`!D`&4`<@!4`&$`8@!L`&4`(``H`$D`9``@`$D`3@!4`$4`
M1P!%`%(`(`!0`%(`20!-`$$`4@!9`"``2P!%`%D`+``@`$X`80!M`&4`<P!P
M`&$`8P!E`$D`9``@`$D`3@!4`$4`1P!%`%(`+``@`$X`80!M`&4`(`!4`$4`
M6`!4`"``*0"!;@,'(5U=`8(E=`!A`&(`;`!E`$8`:0!L`'0`90!R`$$`=`!T
M`'(`:0!B`'4`=`!E`%0`80!B`&P`90!&`&D`;`!T`&4`<@!!`'0`=`!R`&D`
M8@!U`'0`90!4`&$`8@!L`&4`!$,`4@!%`$$`5`!%`"``5`!!`$(`3`!%`"``
M1@!I`&P`=`!E`'(`00!T`'0`<@!I`&(`=0!T`&4`5`!A`&(`;`!E`"``*`!)
M`&0`(`!)`$X`5`!%`$<`10!2`"``4`!2`$D`30!!`%(`60`@`$L`10!9`"P`
M(`!.`&$`;0!E`"``5`!%`%@`5``@`"D`#0````4#W0`#^0/R`^L#Y`/=````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````%!0,!`0(%!00#`0$"!`4#`P$!`@$%
M`@,!`0$"!0$#`0$!`0T"7@`$`2L``F(#-0$K`?``````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````@4(&
M!R%!00&"!70`80!B`&P`90!3`&4`=`!T`&D`;@!G`',`5`!A`&(`;`!E`%,`
M90!T`'0`:0!N`&<`<P!4`&$`8@!L`&4`"4,`4@!%`$$`5`!%`"``5`!!`$(`
M3`!%`"``4P!E`'0`=`!I`&X`9P!S`%0`80!B`&P`90`@`"@`2P!E`'D`(`!4
M`$4`6`!4`"``4`!2`$D`30!!`%(`60`@`$L`10!9`"P`(`!6`&$`;`!U`&4`
M(`!"`$P`3P!"`"``*0!L!P<A@0U!`0!I`&X`9`!E`'@`<P!Q`&P`:0!T`&4`
M7P!A`'4`=`!O`&D`;@!D`&4`>`!?`%,`90!T`'0`:0!N`&<`<P!4`&$`8@!L
M`&4`7P`Q`%,`90!T`'0`:0!N`&<`<P!4`&$`8@!L`&4`"@````2!4`0'(4E)
M`8(1=`!A`&(`;`!E`$8`:0!L`'0`90!R`$X`80!M`&4`5`!A`&(`;`!E`$8`
M:0!L`'0`90!R`$X`80!M`&4`5`!A`&(`;`!E``5#`%(`10!!`%0`10`@`%0`
M00!"`$P`10`@`$8`:0!L`'0`90!R`$X`80!M`&4`5`!A`&(`;`!E`"``*`!)
M`&0`(`!)`$X`5`!%`$<`10!2`"``4`!2`$D`30!!`%(`60`@`$L`10!9`"P`
M(`!.`&$`;0!E`"``5`!%`%@`5``@`"D`@4@%!R$Y.0&"(70`80!B`&P`90!&
M`&D`;`!T`&4`<@!4`&$`8@!L`&4`1@!I`&P`=`!E`'(`5`!A`&(`;`!E``=#
M`%(`10!!`%0`10`@`%0`00!"`$P`10`@`$8`:0!L`'0`90!R`%0`80!B`&P`
M90`@`"@`3@!A`&T`90!)`&0`(`!)`$X`5`!%`$<`10!2`"P`(`!&`&D`;`!T
M`&4`<@!!`'0`=`!R`&D`8@!U`'0`90!)`&0`(`!)`$X`5`!%`$<`10!2`"``
M*0`-``````0`````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````"@`````$````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
9````````````````````````````````````
`
end

View File

@ -0,0 +1 @@
7

View File

@ -0,0 +1,122 @@
#/bin/sh
#############################################################################
##
## Copyright (C) 2015 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is the build configuration utility of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:LGPL$
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this file in
## accordance with the commercial license agreement provided with the
## Software or, alternatively, in accordance with the terms contained in
## a written agreement between you and The Qt Company. For licensing terms
## and conditions see http://www.qt.io/terms-conditions. For further
## information use the contact form at http://www.qt.io/contact-us.
##
## GNU Lesser General Public License Usage
## Alternatively, this file may be used under the terms of the GNU Lesser
## General Public License version 2.1 or version 3 as published by the Free
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
## following information to ensure the GNU Lesser General Public License
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
##
## As a special exception, The Qt Company gives you certain additional
## rights. These rights are described in The Qt Company LGPL Exception
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
##
## GNU General Public License Usage
## Alternatively, this file may be used under the terms of the GNU
## General Public License version 3.0 as published by the Free Software
## Foundation and appearing in the file LICENSE.GPL included in the
## packaging of this file. Please review the following information to
## ensure the GNU General Public License version 3.0 requirements will be
## met: http://www.gnu.org/copyleft/gpl.html.
##
## $QT_END_LICENSE$
##
#############################################################################
# Fail on error
set -e
# We will assume that if TOOLCHAIN_PATH is not set, that other required actions have not been done either
# so advise the user - N.B.: PATH & PKG_CONFIG_PATH may already be set to system values so we can't
# simply check for them being unset.
if [ -z "$TOOLCHAIN_PATH" ]; then
echo
echo "TOOLCHAIN_PATH must be set to the path of the columbus toolchain, e.g.:" 1>&2
echo " export TOOLCHAIN_PATH=/opt/toolchains/columbus/cs2007q3-glibc2.5-arm7" 1>&2
echo "PATH should have the path to toolchain's bin dir at beginning, e.g.:" 1>&2
echo " export PATH=\$TOOLCHAIN_PATH/bin:\$PATH" 1>&2
echo "PKG_CONFIG_PREFIX should have the prefix for pkg config, e.g.:" 1>&2
echo " export PKG_CONFIG_PREFIX=\$TOOLCHAIN_PATH/arm-none-linux-gnueabi" 1>&2
echo "PKG_CONFIG_PATH must be set to the path(s) to pkg config .pc file location(s), e.g.:" 1>&2
echo " export PKG_CONFIG_PATH=\$PKG_CONFIG_PREFIX/libc/lib/pkgconfig:\$PKG_CONFIG_PREFIX/libc/usr/lib/pkgconfig" 1>&2
echo
exit 1
fi
# We assume the current dir is the depot and we are not shadow building
# Blast the mkspec we use, if it exists, and copy it out of debian dir
rm -rf mkspecs/linux-g++-cross
cp -a debian/mkspecs/linux-g++-cross mkspecs/
# maemo does the next two lines, no idea why, left them for referance
# rm -rf mkspecs/glibc-g++
# cp -a mkspecs/linux-g++ mkspecs/glibc-g++
# Run configure - we take extra arguments if given
exec ./configure -nokia-developer \
-prefix "/usr" \
-bindir "/usr/bin" \
-libdir "/usr/lib" \
-docdir "/usr/share/qt4/doc" \
-headerdir "/usr/include/qt4" \
-datadir "/usr/share/qt4" \
-plugindir "/usr/lib/qt4/plugins" \
-translationdir "/usr/share/qt4/translations" \
-sysconfdir "/etc/xdg" \
-arch arm \
-xplatform linux-g++-cross \
-fast \
-mitshm \
-no-optimized-qmake \
-reduce-relocations \
-no-separate-debug-info \
-system-zlib \
-system-libtiff \
-system-libpng \
-system-libjpeg \
-no-nas-sound \
-qt-gif \
-no-qt3support \
-no-libmng \
-opengl es2 \
-no-accessibility \
-nomake examples \
-nomake demos \
-little-endian \
-I${TOOLCHAIN_PATH}/libc/usr/include/freetype2 \
-lfontconfig \
-no-cups \
-no-gtkstyle \
-exceptions \
-no-xinerama \
-dbus \
-glib \
-no-pch \
-gstreamer \
-svg \
-webkit \
-no-sql-ibase \
-xmlpatterns \
-system-sqlite \
-plugin-sql-sqlite \
-openssl \
-DQT_QLOCALE_USES_FCVT \
"$@"
# End of Script

View File

@ -0,0 +1,648 @@
Source: qt4-x11
Section: libs
Priority: optional
Maintainer: Petri Latvala <ext-petri.latvala@nokia.com>
Build-Depends: cdbs, debhelper (>= 7), flex, quilt, sharutils,
libdbus-1-dev, libfreetype6-dev, libglib2.0-dev, libice-dev, libjpeg62-dev,
libpng12-dev, libreadline5-dev | libreadline4-dev, libsm-dev, libtiff4-dev, libx11-dev,
libxext-dev, libxft-dev, libxi-dev, libxmu-dev,
libxrandr-dev, libxrender-dev, libxslt1-dev, libxt-dev, x11proto-core-dev,
zlib1g-dev, libgstreamer-plugins-base0.10-dev, libgstreamer0.10-dev, libicu-dev,
libgles2-sgx-img-dev [arm armel] | libgles2-dev [arm armel], libgles2 [arm armel],
opengles-sgx-img-common-dev [arm armel], opengles-sgx-img-common [arm armel],
libgl-dev [i386], libgl1 [i386],
libxau-dev, libxcb1-dev, libxdmcp-dev, libexpat1-dev,
libsqlite3-dev, libsqlite3-0, libssl-dev, libasound2-dev, libxv-dev,
icd2-dev, icd2-osso-ic-dev, osso-wlan-dev, libconnsettings0-dev
Standards-Version: 3.9.1.0
Package: libqtcore4
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: libqt4-core (<< 4.4.0~beta1-1), libqt4-gui (<< 4.4.0~beta1-1)
Description: Qt 4 core module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtCore module contains core non-GUI functionality.
Package: libqtcore4-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqtcore4 (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Core libraries.
Package: libqt4-core
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version}), libqt4-network (= ${binary:Version}), libqt4-script (= ${binary:Version}), libqt4-xml (= ${binary:Version}), libqt4-dbus (= ${binary:Version})
Description: transitional package for Qt 4 core non-GUI runtime libraries
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This is a dummy transitional package to enable installation of other Debian
packages linked against Qt 4.3 or earlier Qt 4 releases previously shipped
in Debian.
Package: libqtgui4
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version}), fontconfig, opengles-sgx-img-common [arm armel], libgles2 [arm armel]
Conflicts: libqt4-designer (<< 4.4.0~beta1-1)
Replaces: libqt4-core (<< 4.0.1-3), libqt4-gui (<< 4.4.0),
qt4-designer (<< 4.1.4), libqt4-designer (<< 4.4.0~beta1-1)
Description: Qt 4 GUI module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtGui module extends QtCore with GUI functionality.
Package: libqtgui4-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqtgui4 (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 GUI libraries.
Package: libqt4-gui
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtgui4 (= ${binary:Version}), libqt4-svg (= ${binary:Version})
Description: transitional package for Qt 4 GUI runtime libraries
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This is a dummy transitional package depending on the Qt4 GUI library
packages which the package of the same name used to provide in Qt 4.3.4
and earlier Debian packages of Qt4.
Package: libqt4-network
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 network module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtNetwork module offers classes that allow you to write TCP/IP clients and
servers. It provides classes to make network programming easier and portable.
Package: libqt4-network-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-network (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Network libraries.
Package: libqt4-script
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-dbus (= ${binary:Version}), libqtcore4 (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 script module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtScript module provides classes for making Qt applications scriptable.
Package: libqt4-script-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-script (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Script libraries.
Package: libqt4-sql
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version})
Recommends: libqt4-sql-sqlite
Suggests: libqt4-dev
Description: Qt 4 SQL module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtSql module helps you provide seamless database integration to your Qt
applications.
.
If you wish to use the SQL module for development, you should install the
libqt4-dev package.
Package: libqt4-sql-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-sql (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 SQL libraries.
Package: libqt4-sql-sqlite
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-sql (= ${binary:Version})
Description: Qt 4 SQLite plugin
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
Package: libqt4-sql-sqlite-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-sql-sqlite (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 SQL SQLite plugin.
Package: libqt4-svg
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version}), libqtgui4 (= ${binary:Version})
Conflicts: libqt4-gui (<< 4.4.0~beta1-1)
Replaces: libqt4-gui (<< 4.4.0~beta1-1)
Description: Qt 4 SVG module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtSvg module provides classes for displaying the contents of SVG files.
.
Scalable Vector Graphics (SVG) is a language for describing two-dimensional
graphics and graphical applications in XML.
Package: libqt4-svg-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-svg (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 SVG libraries.
Package: libqt4-webkit
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtwebkit4 (>= 2.0~)
Description: Qt 4 WebKit module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This is a dummy transitional package to enable installation of other packages
linked against Qt WebKit 4.4 - 4.7 releases previously shipped from Qt source.
Package: libqt4-xml
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 XML module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtXml module provides a stream reader and writer for XML documents,
and C++ implementations of SAX and DOM.
Package: libqt4-xml-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-xml (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 XML libraries.
Package: libqt4-xmlpatterns
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version}), libqt4-xml (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 XML Patterns module
lorem ipsum
.
and all that
Package: libqt4-xmlpatterns-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-xmlpatterns (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 XML patterns library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 XML patterns
library.
Package: libqt4-dbus
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-xml (= ${binary:Version}), libqtcore4 (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 D-Bus module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtDBus module is a Unix-only library that you can use to make Inter-Process
Communication using the D-Bus protocol.
.
Applications using the QtDBus module can provide services to other, remote
applications by exporting objects, as well as use services exported by those
applications by placing calls and accessing properties.
Package: libqt4-dbus-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-dbus (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 DBus libraries.
Package: libqt4-help
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-sql (= ${binary:Version}), libqtcore4 (= ${binary:Version}), libqtgui4 (= ${binary:Version})
Description: Qt 4 help module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtHelp module provides classes for integrating online documentation in
applications.
Package: libqt4-help-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-help (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Help libraries.
Package: libqt4-test
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 test module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtTest module provides classes for unit testing Qt applications and
libraries.
Package: libqt4-test-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-test (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Test libraries.
Package: libqt4-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends},
libqt4-dbus (= ${binary:Version}),
libqt4-xml (= ${binary:Version}), libqtcore4 (= ${binary:Version}),
libqt4-network (= ${binary:Version}), libqtgui4 (= ${binary:Version}),
libqt4-svg (= ${binary:Version}), libqt4-sql (= ${binary:Version}),
libqt4-script (= ${binary:Version}), libqt4-help (= ${binary:Version}),
libqt4-test (= ${binary:Version}), libqt4-phonon (= ${binary:Version}),
libqt4-xmlpatterns (= ${binary:Version}),
libqt4-multimedia (= ${binary:Version}), libqt4-opengl (= ${binary:Version}),
libqt4-declarative (= ${binary:Version}), qt4-linguist-tools (= ${binary:Version}),
libqt4-meegographicssystemhelper-dev (= ${binary:Version}) [arm armel],
libgl-dev [i386], libgles2-sgx-img-dev [arm armel],
opengles-sgx-img-common-dev [arm armel], libxv-dev, libc6-dev
Conflicts: qt3-dev-tools (<= 3:3.3.4-7)
Replaces: libqt4-opengl-dev (<< 4.4.0-2)
Suggests: libmysqlclient15-dev, libsqlite0-dev, libsqlite3-dev, libpq-dev, libiodbc2-dev, firebird2.0-dev
Description: Qt 4 development files
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the header development files and development programs
such as qmake used for building Qt4 applications.
Package: qt4-linguist-tools
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Qt 4 development files
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the Qt Linguist development tool
such as lrelease used for building Qt4 applications.
Package: libqt4
Architecture: any
Section: libs
Depends: libqt4-core (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 dummy package
This is a dummy alias-package.
Package: libqt4-phonon
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqtcore4 (= ${binary:Version}), libqt4-xml (= ${binary:Version}), libqtgui4 (= ${binary:Version}), libqt4-opengl (= ${binary:Version}), libqt4-dbus (= ${binary:Version})
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 Phonon Libraries
Qt 4 media playing libraries
Package: libqt4-phonon-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-phonon (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 phonon module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbol for the Qt phonon library.
Package: libqt4-multimedia
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Qt 4 Multimedia Libraries
Qt 4 media playing libraries
Package: libqt4-multimedia-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-multimedia (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 multimedia module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbol for the Qt multimedia library.
Package: libqt4-opengl
Architecture: any
Section: libs
Depends: libqtcore4 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, opengles-sgx-img-common [arm armel], libgles2 [arm armel], libgl1 [i386]
Replaces: libqt4-core (<< 4.4.0~beta1-1)
Description: Qt 4 OpenGL module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtOpenGL module offers classes that make it easy to use OpenGL in Qt
applications.
.
OpenGL is a standard API for rendering 3D graphics. OpenGL only deals with 3D
rendering and provides little or no support for GUI programming issues.
.
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the development files needed to build Qt 4 applications
using QtOpenGL library.
Package: libqt4-opengl-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-opengl (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 OpenGL libraries.
Package: libqt4-opengl-dev
Architecture: any
Section: libdevel
Depends: libqt4-dev (= ${binary:Version}), ${misc:Depends}
Replaces: libqt4-dev (<< 4.4.0~beta1-1)
Description: Qt 4 OpenGL library development files
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This is a transitional package for libqt4-opengl-dev, and can be safely removed
after the installation is complete.
Package: qt4-acceptance-tests
Section: libdevel
Priority: optional
Architecture: any
Depends: ci-testing, ${shlibs:Depends}, ${misc:Depends}
XB-Maemo-CI-Packages: libqtcore4
XB-Maemo-CI-Stage: staging, acceptance
Description: Tests for libqtcore4
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains selected autotest cases for CI testing.
Package: qt4-maemo-auto-tests
Section: libdevel
Priority: optional
Architecture: any
Depends: ci-testing, ${shlibs:Depends}, ${misc:Depends}
XB-Maemo-CI-Packages: libqtcore4
XB-Maemo-CI-Stage: staging
Description: Tests for Qt4
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains selected autotest cases for CI testing.
Package: libqt4-declarative
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Qt 4 declarative module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtDeclarative module contains declarative UI functionality.
Package: libqt4-declarative-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-declarative (= ${binary:Version}), ${misc:Depends}
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the debugging symbols for the Qt 4 Declarative
libraries.
Package: libqt4-declarative-dev
Architecture: any
Section: libdevel
Depends: libqt4-dev (>= ${binary:Version}), ${misc:Depends}
Description: Qt 4 Declarative development files
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This is a transitional package for libqt4-declarative-dev, and can be
safely removed after the installation is complete.
Package: qt4-declarative-qmlviewer
Architecture: any
Section: devel
Depends: libqt4-declarative (=${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Description: Qt 4 declarative module
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
The QtDeclarative viewer allows viewing QML files
Package: libqt4-gui-tests
Section: libdevel
Priority: optional
Architecture: any
Depends: ci-testing, ${shlibs:Depends}, ${misc:Depends}
XB-Maemo-CI-Packages: libqtgui4
XB-Maemo-CI-Stage: staging
Description: Tests for Qt4
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains selected autotest cases for CI testing.
Package: libqt4-doc
Section: doc
Priority: optional
Architecture: all
Depends: ${misc:Depends}
Description: Qt 4 documentation
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the documentation for Qt 4.
Package: libqt4-meegographicssystem
Architecture: arm armel
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-meegographicssystemhelper
Conflicts: libqt4-meego (<< 4.7.2~git20110119)
Replaces: libqt4-meego (<< 4.7.2~git20110119)
Description: Qt 4 MeeGo graphics system plugin
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the MeeGo graphics system plugin.
Package: libqt4-meegographicssystemhelper
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-meegographicssystem [arm armel]
Conflicts: libqt4-meego (<< 4.7.2~git20110119)
Replaces: libqt4-meego (<< 4.7.2~git20110119)
Provides: libqt4-meego
Description: Qt 4 MeeGo graphics system helper
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the MeeGo graphics system helper library.
Package: libqt4-meegographicssystemhelper-dev
Architecture: any
Section: libdevel
Depends: libqt4-meegographicssystemhelper (= ${binary:Version}), ${misc:Depends}
Conflicts: libqt4-meego-dev (<< 4.7.2~git20110119)
Replaces: libqt4-meego-dev (<< 4.7.2~git20110119)
Provides: libqt4-meego-dev
Description: Qt 4 MeeGo graphics system development libraries and headers
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the MeeGo graphics system header files and
development libraries.
Package: libqt4-meegographicssystemhelper-dbg
Priority: extra
Architecture: any
Section: debug
Depends: libqt4-meegographicssystemhelper (= ${binary:Version}), ${misc:Depends}
Conflicts: libqt4-meego-dbg (<< 4.7.2~git20110119)
Replaces: libqt4-meego-dbg (<< 4.7.2~git20110119)
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package provides the debugging symbols for the MeeGo support
libraries.
Package: libqt4-meegographicssystem-dbg
Priority: extra
Architecture: arm armel
Section: debug
Depends: libqt4-meegographicssystem (= ${binary:Version}), ${misc:Depends}
Conflicts: libqt4-meego-dbg (<< 4.7.2~git20110119)
Replaces: libqt4-meego-dbg (<< 4.7.2~git20110119)
Description: Qt 4 library debugging symbols
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package provides the debugging symbols for the MeeGo graphics
system plugin.
Package: libqt4-meego
Architecture: all
Section: oldlibs
Depends: libqt4-meegographicssystemhelper, libqt4-meegographicssystem [arm armel]
Description: Qt 4 MeeGo support libraries transitional package
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package is for transitioning purposes only and can be removed.
Package: libqt4-meego-dev
Architecture: all
Section: oldlibs
Depends: libqt4-meegographicssystemhelper-dev
Description: Qt 4 MeeGo support libraries transitional package
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package is for transitioning purposes only and can be removed.
Package: libqt4-meego-dbg
Priority: extra
Architecture: all
Section: debug
Depends: libqt4-meegographicssystemhelper-dbg, libqt4-meegographicssystem-dbg [arm armel]
Description: Qt 4 MeeGo support libraries transitional package
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package is for transitioning purposes only and can be removed.

View File

@ -0,0 +1 @@
libqt4-core: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-dbus-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,3 @@
usr/lib/libQtDBus.so.*
usr/bin/qdbus

View File

@ -0,0 +1,2 @@
libqt4-dbus: package-name-doesnt-match-sonames libQtDBus4
libqt4-dbus: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-declarative-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-declarative-dev: unknown-control-file digsigsums

View File

@ -0,0 +1,4 @@
usr/lib/libQtDeclarative.so.*
usr/lib/qt4/imports/Qt/labs/folderlistmodel
usr/lib/qt4/imports/Qt/labs/gestures
usr/lib/qt4/imports/Qt/labs/particles

View File

@ -0,0 +1,2 @@
libqt4-declarative: unknown-control-file digsigsums
libqt4-declarative: package-name-doesnt-match-sonames libQtDeclarative4

View File

@ -0,0 +1 @@
usr/share/qt4/doc/html

View File

@ -0,0 +1,85 @@
usr/bin/native-moc
usr/bin/qdbuscpp2xml
usr/bin/qdbusxml2cpp
usr/bin/native-qmake
usr/bin/qt3to4
usr/bin/native-rcc
usr/bin/native-uic
usr/bin/host-moc
usr/bin/host-qmake
usr/bin/host-rcc
usr/bin/host-uic
usr/include/qt4/QtUiTools
usr/include/qt4/QtSvg
usr/include/qt4/QtXml
usr/include/qt4/QtGui
usr/include/qt4/phonon
usr/include/qt4/QtScript
usr/include/qt4/QtScriptTools
usr/include/qt4/QtSql
usr/include/qt4/QtXmlPatterns
usr/include/qt4/QtDBus
usr/include/qt4/QtTest
usr/include/qt4/QtHelp
usr/include/qt4/Qt
usr/include/qt4/QtCore
usr/include/qt4/QtNetwork
usr/include/qt4/QtMultimedia
usr/include/qt4/QtOpenGL
usr/include/qt4/QtDeclarative
usr/lib/libphonon.prl
usr/lib/libphonon.so
usr/lib/libQtCLucene.prl
usr/lib/libQtCLucene.so
usr/lib/libQtCore.prl
usr/lib/libQtCore.so
usr/lib/libQtDBus.prl
usr/lib/libQtDBus.so
usr/lib/libQtGui.prl
usr/lib/libQtGui.so
usr/lib/libQtHelp.prl
usr/lib/libQtHelp.so
usr/lib/libQtNetwork.prl
usr/lib/libQtNetwork.so
usr/lib/libQtScript.prl
usr/lib/libQtScript.so
usr/lib/libQtScriptTools.prl
usr/lib/libQtScriptTools.so
usr/lib/libQtSql.prl
usr/lib/libQtSql.so
usr/lib/libQtSvg.prl
usr/lib/libQtSvg.so
usr/lib/libQtTest.prl
usr/lib/libQtTest.so
usr/lib/libQtUiTools.prl
usr/lib/libQtUiTools.a
usr/lib/libQtXmlPatterns.prl
usr/lib/libQtXmlPatterns.so
usr/lib/libQtXml.prl
usr/lib/libQtXml.so
usr/lib/libQtMultimedia.prl
usr/lib/libQtMultimedia.so
usr/lib/libQtOpenGL.prl
usr/lib/libQtOpenGL.so
usr/lib/libQtDeclarative.so
usr/lib/libQtDeclarative.prl
usr/lib/pkgconfig/phonon.pc
usr/lib/pkgconfig/QtCLucene.pc
usr/lib/pkgconfig/QtCore.pc
usr/lib/pkgconfig/QtDBus.pc
usr/lib/pkgconfig/QtGui.pc
usr/lib/pkgconfig/QtHelp.pc
usr/lib/pkgconfig/QtNetwork.pc
usr/lib/pkgconfig/QtScript.pc
usr/lib/pkgconfig/QtScriptTools.pc
usr/lib/pkgconfig/QtSql.pc
usr/lib/pkgconfig/QtSvg.pc
usr/lib/pkgconfig/QtTest.pc
usr/lib/pkgconfig/QtUiTools.pc
usr/lib/pkgconfig/QtXmlPatterns.pc
usr/lib/pkgconfig/QtXml.pc
usr/lib/pkgconfig/QtMultimedia.pc
usr/lib/pkgconfig/QtOpenGL.pc
usr/lib/pkgconfig/QtDeclarative.pc
usr/share/qt4/q3porting.xml
usr/share/qt4/mkspecs

View File

@ -0,0 +1,13 @@
usr/include/qt4 usr/share/qt4/include
usr/bin/lrelease usr/share/qt4/bin/lrelease
usr/bin/lupdate usr/share/qt4/bin/lupdate
usr/bin/moc usr/share/qt4/bin/moc
usr/bin/qmake usr/share/qt4/bin/qmake
usr/bin/uic usr/share/qt4/bin/uic
usr/bin/lrelease usr/bin/lrelease-qt4
usr/bin/lupdate usr/bin/lupdate-qt4
usr/bin/moc usr/bin/moc-qt4
usr/bin/qmake usr/bin/qmake-qt4
usr/bin/uic usr/bin/uic-qt4
usr/bin/rcc usr/share/qt4/bin/rcc
usr/lib/qt4/plugins usr/share/qt4/plugins

View File

@ -0,0 +1,17 @@
libqt4-dev: executable-not-elf-or-script ./usr/share/qt4/mkspecs/macx-pbuilder/Info.plist.app
libqt4-dev: executable-not-elf-or-script ./usr/share/qt4/mkspecs/macx-xcode/Info.plist.app
libqt4-dev: executable-not-elf-or-script ./usr/share/qt4/mkspecs/macx-xcode/qmake.conf
libqt4-dev: executable-not-elf-or-script ./usr/share/qt4/mkspecs/macx-pbuilder/qmake.conf
libqt4-dev: unknown-control-file digsigsums
libqt4-dev: binary-from-other-architecture ./usr/bin/host-moc
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-moc /scratchbox/host_shared/lib
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-moc /host_usr/lib
libqt4-dev: binary-from-other-architecture ./usr/bin/host-qmake
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-qmake /scratchbox/host_shared/lib
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-qmake /host_usr/lib
libqt4-dev: binary-from-other-architecture ./usr/bin/host-rcc
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-rcc /scratchbox/host_shared/lib
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-rcc /host_usr/lib
libqt4-dev: binary-from-other-architecture ./usr/bin/host-uic
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-uic /scratchbox/host_shared/lib
libqt4-dev: binary-or-shlib-defines-rpath ./usr/bin/host-uic /host_usr/lib

View File

@ -0,0 +1,5 @@
debian/manpages/lrelease.1
debian/manpages/lupdate.1
debian/manpages/moc.1
debian/manpages/qmake.1
debian/manpages/uic.1

View File

@ -0,0 +1,21 @@
#!/bin/sh
set -e
SPECDIR=/usr/share/qt4/mkspecs
rm -f ${SPECDIR}/default
ln -s ${SPECDIR}/#PLATFORM_ARG# ${SPECDIR}/default
PREFIX=native
if [ -f /targets/links/scratchbox.config ]; then
PREFIX=host
fi
BINARIES="qmake moc rcc uic"
for bin in $BINARIES; do
ln -sf "/usr/bin/${PREFIX}-${bin}" "/usr/bin/${bin}"
done
#DEBHELPER#

View File

@ -0,0 +1,16 @@
#!/bin/sh
set -e
BINARIES="qmake moc rcc uic"
case "$1" in
upgrade) ;;
remove|failed-upgrade|deconfigure)
for bin in $BINARIES; do
rm -f "/usr/bin/${bin}"
done
;;
esac
#DEBHELPER#

View File

@ -0,0 +1 @@
usr/share/qt4/doc/html/*

View File

@ -0,0 +1 @@
libqt4-doc: unknown-control-file digsigsums

View File

@ -0,0 +1,64 @@
libqt4-gui-tests: unknown-control-file digsigsums
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_modeltest
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractbutton
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractitemmodel
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractprintdialog
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractproxymodel
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractslider
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractspinbox
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstracttextdocumentlayout
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractvideobuffer
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qabstractvideosurface
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qaction
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qboxlayout
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qfileiconprovider
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qfocusframe
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qfont
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qfontmetrics
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qformlayout
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qgraphicslayout
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qnetworkcachemetadata
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpaintengine
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpalette
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qparallelanimationgroup
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpauseanimation
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpicture
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qplaintextedit
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpointer
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qprinterinfo
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qprogressbar
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qprogressdialog
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qpropertyanimation
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qradiobutton
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qregexpvalidator
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qscriptenginedebugger
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qscrollarea
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qscrollbar
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qsharedpointer_and_qwidget
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qsignalmapper
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qslider
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qsortfilterproxymodel
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qspinbox
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstackedlayout
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstackedwidget
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstandarditem
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstandarditemmodel
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstatemachine
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstringlistmodel
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qstyleoption
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qsyntaxhighlighter
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextblock
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextcursor
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextformat
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextlist
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextobject
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtextscriptengine
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtexttable
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtoolbox
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtoolbutton
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qtreewidgetitemiterator
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qundogroup
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qundostack
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qvideosurfaceformat
libqt4-gui-tests: file-in-unusual-dir usr/tests/qt4/tst_qwidgetaction
libqt4-gui-tests: non-standard-dir-in-usr usr/tests/

View File

@ -0,0 +1 @@
libqt4-gui: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-help-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,4 @@
usr/lib/libQtHelp.so.*
usr/lib/libQtCLucene.so.*
usr/share/qt4/translations/qt_help_de.qm
usr/share/qt4/translations/qt_help_pl.qm

View File

@ -0,0 +1,2 @@
libqt4-help: package-name-doesnt-match-sonames libQtCLucene4 libQtHelp4
libqt4-help: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-meego-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-meego-dev: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
libqt4-meego: unknown-control-file digsigsums
libqt4-meego: package-name-doesnt-match-sonames libQtMeeGoGraphicsSystemHelper4

View File

@ -0,0 +1 @@
usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so

View File

@ -0,0 +1,3 @@
usr/include/qt4/QtMeeGoGraphicsSystemHelper
usr/lib/libQtMeeGoGraphicsSystemHelper.so
usr/lib/libQtMeeGoGraphicsSystemHelper.prl

View File

@ -0,0 +1 @@
usr/lib/libQtMeeGoGraphicsSystemHelper.so.*

View File

@ -0,0 +1 @@
libqt4-multimedia-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
usr/lib/libQtMultimedia.so.*

View File

@ -0,0 +1,2 @@
libqt4-multimedia: unknown-control-file digsigsums
libqt4-multimedia: package-name-doesnt-match-sonames libQtMultimedia4

View File

@ -0,0 +1 @@
libqt4-network-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
usr/lib/libQtNetwork.so.*
usr/lib/qt4/plugins/bearer/libqicdbearer.so

View File

@ -0,0 +1,2 @@
libqt4-network: package-name-doesnt-match-sonames libQtNetwork4
libqt4-network: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-opengl-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-opengl-dev: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
usr/lib/libQtOpenGL.so.*
usr/lib/qt4/plugins/graphicssystems/libqglgraphicssystem.so

View File

@ -0,0 +1,3 @@
libqt4-opengl: package-name-doesnt-match-sonames libQtOpenGL4
libqt4-opengl: package-relation-with-self depends
libqt4-opengl: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-phonon-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
usr/lib/libphonon.so.*
usr/lib/qt4/plugins/phonon_backend/libphonon_*.so

View File

@ -0,0 +1,2 @@
libqt4-phonon: package-name-doesnt-match-sonames libphonon4
libqt4-phonon: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-script-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,3 @@
usr/lib/libQtScript.so.*
usr/lib/libQtScriptTools.so.*
usr/lib/qt4/plugins/script/libqtscriptdbus.so

View File

@ -0,0 +1,2 @@
libqt4-script: package-name-doesnt-match-sonames libQtScript4 libQtScriptTools4
libqt4-script: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-sql-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-sql-sqlite-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
usr/lib/qt4/plugins/sqldrivers/libqsqlite.so

View File

@ -0,0 +1 @@
libqt4-sql-sqlite: unknown-control-file digsigsums

View File

@ -0,0 +1,2 @@
usr/lib/libQtSql.so.*

View File

@ -0,0 +1,2 @@
libqt4-sql: package-name-doesnt-match-sonames libQtSql4
libqt4-sql: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-svg-dbg: unknown-control-file digsigsums

View File

@ -0,0 +1,4 @@
usr/lib/libQtSvg.so.*
usr/lib/qt4/plugins/iconengines/libqsvgicon.so
usr/lib/qt4/plugins/imageformats/libqsvg.so

View File

@ -0,0 +1,2 @@
libqt4-svg: package-name-doesnt-match-sonames libQtSvg4
libqt4-svg: unknown-control-file digsigsums

View File

@ -0,0 +1 @@
libqt4-test-dbg: unknown-control-file digsigsums

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