dev-v1.x branch merged.

This commit is contained in:
Taner Sener
2018-06-18 11:01:16 +03:00
parent 6aa695b20d
commit 1b6e71d157
928 changed files with 335724 additions and 1184 deletions
+1
View File
@@ -1,3 +1,4 @@
*.log
/prebuilt/
*.DS_Store
/.tmp/
+674
View File
@@ -0,0 +1,674 @@
GNU 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.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. 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
them 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 prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. 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.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey 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;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
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, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If 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 convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU 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 that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
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.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
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.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
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
state 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 3 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, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program 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, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
View File
+23 -17
View File
@@ -1,12 +1,13 @@
# MobileFFmpeg
Source code and scripts to build FFmpeg for Android and IOS platform
Source code and scripts to build FFmpeg for Android and IOS platform; prebuilt libraries for both platforms
### 1. Features
- Builds both Android and IOS
- Supports 18 external libraries and 10 architectures in total
- Supports 21 external libraries, 2 GPL libraries and 10 architectures in total
- Exposes FFmpeg capabilities both directly from FFmpeg libraries and through MobileFFmpeg wrapper library
- Creates shared libraries (.so for Android, .dylib for IOS)
- Licensed under LGPL 3.0
- Includes cross-compile instructions for 32 open-source libraries including FFmpeg
- Licensed under LGPL 3.0, can be customized to support GPL v3.0
#### 1.1 Android
- Creates Android archive with .aar extension
#### 1.2 IOS
@@ -28,31 +29,37 @@ Source code and scripts to build FFmpeg for Android and IOS platform
- x86_64
### 3. FFmpeg Support
This repository branch contains FFmpeg version 3.4.2 with support for the following external libraries.
This repository branch contains FFmpeg version 3.4.2 with support for the following external libraries.
Cross-compile instructions for all of them can be found under scripts inside `build` folder.
- fontconfig
- freetype
- fribidi
- gmp
- gnutls
- kvazaar
- libiconv
- lame
- libass
- libiconv
- libilbc
- libtheora
- libvorbis
- libvpx
- libwebp
- libxml2
- opencore-amr
- opus
- shine
- snappy
- speex
- wavpack
- x264
- xvidcore
External libraries and their dependencies are explained in the [External Libraries](https://github.com/tanersener/mobile-ffmpeg/wiki/External-Libraries) page.
### 4. Using
#### 4.1 Android
Import `mobile-ffmpeg-1.0.aar` into your project and use the following source code.
Import `mobile-ffmpeg-1.1.aar` into your project and use the following source code.
```
import com.arthenica.mobileffmpeg.FFmpeg;
@@ -90,7 +97,7 @@ There is an Android test application under the `android/test-app` folder and an
#### 5.1 Prerequisites
1. Use your package manager (apt, yum, dnf, brew, etc.) to install the following packages.
```
autoconf automake libtool pkg-config gcc cmake gperf yasm texinfo
autoconf automake libtool pkg-config curl cmake gcc gperf texinfo yasm nasm
```
Some of these packages are not mandatory for the default build.
Please visit [Android Prerequisites](https://github.com/tanersener/mobile-ffmpeg/wiki/Android-Prerequisites) and
@@ -105,7 +112,7 @@ Please visit [Android Prerequisites](https://github.com/tanersener/mobile-ffmpeg
- **IOS SDK 7.0.x** or later
- **Xcode 8.x** or later
- **Command Line Tools**
- **curl** and **lipo** utilities
- **lipo** utility
#### 5.2 Build Scripts
Use `android.sh` and `ios.sh` to build MobileFFmpeg for each platform.
@@ -123,20 +130,18 @@ export ANDROID_NDK_ROOT=<Android NDK Path>
```
./ios.sh
```
#### 5.3 GPL Support
From `v1.1` onwards it is possible to enable to GPL libraries `x264` and `xvidcore` from top level build scripts.
Their source code is not included in the repository and downloaded when enabled.
### 6. API
### 6. Documentation
Below you can find documentation for all APIs exposed.
[Android API](https://tanersener.github.io/mobile-ffmpeg/android/javadoc)
[Android Native API](https://tanersener.github.io/mobile-ffmpeg/ios/html)
[IOS API](https://tanersener.github.io/mobile-ffmpeg/android/doc/html)
A more detailed documentation is available at [Wiki](https://github.com/tanersener/mobile-ffmpeg/wiki).
### 7. License
This project is licensed under the LGPL v3.0.
This project is licensed under the LGPL v3.0. However, if source code is built using optional `--enable-gpl` flag or
prebuilt binaries with `-gpl` postfix are used then MobileFFmpeg is subject to the GPL v3.0 license.
Source code of FFmpeg and external libraries is included in compliance with their individual licenses.
@@ -150,5 +155,6 @@ This project is stable but far from complete. If you have any recommendations or
### 9. See Also
- [libav gas-preprocessor](https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl)
- [FFmpeg API Documentation](https://ffmpeg.org/doxygen/3.4/index.html)
- [FFmpeg License and Legal Considerations](https://ffmpeg.org/legal.html)
+138 -48
View File
@@ -26,24 +26,32 @@ LIBRARY_SHINE=14
LIBRARY_SPEEX=15
LIBRARY_WAVPACK=16
LIBRARY_KVAZAAR=17
LIBRARY_GIFLIB=18
LIBRARY_JPEG=19
LIBRARY_LIBOGG=20
LIBRARY_LIBPNG=21
LIBRARY_LIBUUID=22
LIBRARY_NETTLE=23
LIBRARY_TIFF=24
LIBRARY_ZLIB=25
LIBRARY_MEDIA_CODEC=26
LIBRARY_X264=18
LIBRARY_XVIDCORE=19
LIBRARY_LIBILBC=20
LIBRARY_OPUS=21
LIBRARY_SNAPPY=22
LIBRARY_GIFLIB=23
LIBRARY_JPEG=24
LIBRARY_LIBOGG=25
LIBRARY_LIBPNG=26
LIBRARY_LIBUUID=27
LIBRARY_NETTLE=28
LIBRARY_TIFF=29
LIBRARY_EXPAT=30
LIBRARY_ZLIB=31
LIBRARY_MEDIA_CODEC=32
# ENABLE ARCH
ENABLED_ARCHITECTURES=(1 1 1 1 1)
# ENABLE LIBRARIES
ENABLED_LIBRARIES=(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
ENABLED_LIBRARIES=(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
export BASEDIR=$(pwd)
export MOBILE_FFMPEG_TMPDIR="${BASEDIR}/.tmp"
# USING API LEVEL 21 / Android 5.0 (LOLLIPOP)
export API=21
@@ -58,6 +66,7 @@ display_help() {
echo -e "\n'"$COMMAND"' builds FFmpeg and MobileFFmpeg for Android platform. By default five Android ABIs (armeabi-v7a, armeabi-v7a-neon, arm64-v8a, x86 and x86_64) are built \
without any external libraries enabled. Options can be used to disable ABIs and/or enable external libraries. \
Please note that GPL libraries (external libraries with GPL license) need --enable-gpl flag to be set explicitly. \
When compilation ends an Android Archive (AAR) file is created with enabled platforms inside.\n"
echo -e "Usage: ./"$COMMAND" [OPTION]...\n"
@@ -69,38 +78,54 @@ When compilation ends an Android Archive (AAR) file is created with enabled plat
echo -e " -h, --help\t\t\tdisplay this help and exit"
echo -e " -V, --version\t\t\tdisplay version information and exit\n"
echo -e "Licensing options:"
echo -e " --enable-gpl\t\t\tallow use of GPL libraries, resulting libs will be licensed under GPLv3.0 [no]\n"
echo -e "Platforms:"
echo -e " --disable-arm-v7a\t\tdo not build arm-v7a platform"
echo -e " --disable-arm-v7a-neon\tdo not build arm-v7a-neon platform"
echo -e " --disable-arm64-v8a\t\tdo not build arm64-v8a platform"
echo -e " --disable-x86\t\t\tdo not build x86 platform"
echo -e " --disable-x86-64\t\tdo not build x86-64 platform\n"
echo -e " --disable-arm-v7a\t\tdo not build arm-v7a platform [yes]"
echo -e " --disable-arm-v7a-neon\tdo not build arm-v7a-neon platform [yes]"
echo -e " --disable-arm64-v8a\t\tdo not build arm64-v8a platform [yes]"
echo -e " --disable-x86\t\t\tdo not build x86 platform [yes]"
echo -e " --disable-x86-64\t\tdo not build x86-64 platform [yes]\n"
echo -e "Libraries:"
echo -e " --full\t\t\tenables all external libraries"
echo -e " --enable-android-media-codec\tbuild with built-in media codec"
echo -e " --enable-android-zlib\t\tbuild with built-in zlib"
echo -e " --enable-fontconfig\t\tbuild with fontconfig"
echo -e " --enable-freetype\t\tbuild with freetype"
echo -e " --enable-fribidi\t\tbuild with fribidi"
echo -e " --enable-gnutls\t\tbuild with gnutls"
echo -e " --enable-gmp\t\t\tbuild with gmp"
echo -e " --enable-kvazaar\t\tbuild with kvazaar"
echo -e " --enable-lame\t\t\tbuild with lame"
echo -e " --enable-libass\t\tbuild with libass"
echo -e " --enable-libiconv\t\tbuild with libiconv"
echo -e " --enable-libtheora\t\tbuild with libtheora"
echo -e " --enable-libvorbis\t\tbuild with libvorbis"
echo -e " --enable-libvpx\t\tbuild with libvpx"
echo -e " --enable-libwebp\t\tbuild with libwebp"
echo -e " --enable-libxml2\t\tbuild with libxml2"
echo -e " --enable-opencore-amr\t\tbuild with opencore-amr"
echo -e " --enable-shine\t\tbuild with shine"
echo -e " --enable-speex\t\tbuild with speex"
echo -e " --enable-wavpack\t\tbuild with wavpack"
echo -e " --reconf-LIBRARY\t\trun autoreconf before building LIBRARY\n"
echo -e " --enable-android-media-codec\tbuild with built-in Android MediaCodec [no]"
echo -e " --enable-android-zlib\t\tbuild with built-in zlib [no]"
echo -e " --enable-fontconfig\t\tbuild with fontconfig [no]"
echo -e " --enable-freetype\t\tbuild with freetype [no]"
echo -e " --enable-fribidi\t\tbuild with fribidi [no]"
echo -e " --enable-gmp\t\t\tbuild with gmp [no]"
echo -e " --enable-gnutls\t\tbuild with gnutls [no]"
echo -e " --enable-kvazaar\t\tbuild with kvazaar [no]"
echo -e " --enable-lame\t\t\tbuild with lame [no]"
echo -e " --enable-libass\t\tbuild with libass [no]"
echo -e " --enable-libiconv\t\tbuild with libiconv [no]"
echo -e " --enable-libilbc\t\tbuild with libilbc [no]"
echo -e " --enable-libtheora\t\tbuild with libtheora [no]"
echo -e " --enable-libvorbis\t\tbuild with libvorbis [no]"
echo -e " --enable-libvpx\t\tbuild with libvpx [no]"
echo -e " --enable-libwebp\t\tbuild with libwebp [no]"
echo -e " --enable-libxml2\t\tbuild with libxml2 [no]"
echo -e " --enable-opencore-amr\t\tbuild with opencore-amr [no]"
echo -e " --enable-opus\t\t\tbuild with opus [no]"
echo -e " --enable-shine\t\tbuild with shine [no]"
echo -e " --enable-snappy\t\tbuild with snappy [no]"
echo -e " --enable-speex\t\tbuild with speex [no]"
echo -e " --enable-wavpack\t\tbuild with wavpack [no]\n"
echo -e "GPL libraries:"
echo -e " --enable-x264\t\t\tbuild with x264 [no]"
echo -e " --enable-xvidcore\t\tbuild with xvidcore [no]\n"
echo -e "Advanced options:"
echo -e " --reconf-LIBRARY\t\trun autoreconf before building LIBRARY [no]"
echo -e " --rebuild-LIBRARY\t\tbuild LIBRARY even it is detected as already built [no]\n"
}
display_version() {
@@ -122,6 +147,12 @@ reconf_library() {
export ${RECONF_VARIABLE}=1
}
rebuild_library() {
REBUILD_VARIABLE=$(echo "REBUILD_$1" | sed "s/\-/\_/g")
export ${REBUILD_VARIABLE}=1
}
enable_library() {
set_library $1 1
}
@@ -137,12 +168,14 @@ set_library() {
fontconfig)
ENABLED_LIBRARIES[LIBRARY_FONTCONFIG]=$2
ENABLED_LIBRARIES[LIBRARY_LIBUUID]=$2
set_library "libxml2" $2
ENABLED_LIBRARIES[LIBRARY_EXPAT]=$2
ENABLED_LIBRARIES[LIBRARY_LIBICONV]=$2
set_library "freetype" $2
;;
freetype)
ENABLED_LIBRARIES[LIBRARY_FREETYPE]=$2
ENABLED_LIBRARIES[LIBRARY_LIBPNG]=$2
ENABLED_LIBRARIES[LIBRARY_ZLIB]=$2
set_library "libpng" $2
;;
fribidi)
ENABLED_LIBRARIES[LIBRARY_FRIBIDI]=$2
@@ -153,6 +186,7 @@ set_library() {
gnutls)
ENABLED_LIBRARIES[LIBRARY_GNUTLS]=$2
ENABLED_LIBRARIES[LIBRARY_NETTLE]=$2
ENABLED_LIBRARIES[LIBRARY_ZLIB]=$2
set_library "gmp" $2
set_library "libiconv" $2
;;
@@ -165,16 +199,23 @@ set_library() {
;;
libass)
ENABLED_LIBRARIES[LIBRARY_LIBASS]=$2
ENABLED_LIBRARIES[LIBRARY_LIBUUID]=$2
ENABLED_LIBRARIES[LIBRARY_EXPAT]=$2
set_library "freetype" $2
set_library "fribidi" $2
set_library "fontconfig" $2
set_library "libiconv" $2
ENABLED_LIBRARIES[LIBRARY_LIBUUID]=$2
set_library "libxml2" $2
;;
libiconv)
ENABLED_LIBRARIES[LIBRARY_LIBICONV]=$2
;;
libilbc)
ENABLED_LIBRARIES[LIBRARY_LIBILBC]=$2
;;
libpng)
ENABLED_LIBRARIES[LIBRARY_LIBPNG]=$2
ENABLED_LIBRARIES[LIBRARY_ZLIB]=$2
;;
libtheora)
ENABLED_LIBRARIES[LIBRARY_LIBTHEORA]=$2
ENABLED_LIBRARIES[LIBRARY_LIBOGG]=$2
@@ -191,8 +232,8 @@ set_library() {
ENABLED_LIBRARIES[LIBRARY_LIBWEBP]=$2
ENABLED_LIBRARIES[LIBRARY_GIFLIB]=$2
ENABLED_LIBRARIES[LIBRARY_JPEG]=$2
ENABLED_LIBRARIES[LIBRARY_LIBPNG]=$2
ENABLED_LIBRARIES[LIBRARY_TIFF]=$2
set_library "libpng" $2
;;
libxml2)
ENABLED_LIBRARIES[LIBRARY_LIBXML2]=$2
@@ -201,16 +242,30 @@ set_library() {
opencore-amr)
ENABLED_LIBRARIES[LIBRARY_OPENCOREAMR]=$2
;;
opus)
ENABLED_LIBRARIES[LIBRARY_OPUS]=$2
;;
shine)
ENABLED_LIBRARIES[LIBRARY_SHINE]=$2
;;
snappy)
ENABLED_LIBRARIES[LIBRARY_SNAPPY]=$2
ENABLED_LIBRARIES[LIBRARY_ZLIB]=$2
;;
speex)
ENABLED_LIBRARIES[LIBRARY_SPEEX]=$2
;;
wavpack)
ENABLED_LIBRARIES[LIBRARY_WAVPACK]=$2
;;
giflib | jpeg | libogg | libpng | libuuid | nettle | tiff)
x264)
ENABLED_LIBRARIES[LIBRARY_X264]=$2
;;
xvidcore)
ENABLED_LIBRARIES[LIBRARY_XVIDCORE]=$2
;;
giflib | jpeg | libogg | libpng | libuuid | nettle | tiff | expat)
# THESE LIBRARIES ARE NOT ENABLED DIRECTLY
;;
*)
print_unknown_library $1
@@ -288,7 +343,7 @@ print_enabled_libraries() {
let enabled=0;
# FIRST BUILT-IN LIBRARIES
for library in {25..26}
for library in {31..32}
do
if [[ ${ENABLED_LIBRARIES[$library]} -eq 1 ]]; then
if [[ ${enabled} -ge 1 ]]; then
@@ -300,7 +355,7 @@ print_enabled_libraries() {
done
# THEN EXTERNAL LIBRARIES
for library in {0..17}
for library in {0..22}
do
if [[ ${ENABLED_LIBRARIES[$library]} -eq 1 ]]; then
if [[ ${enabled} -ge 1 ]]; then
@@ -338,6 +393,8 @@ EOF
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
GPL_ENABLED="no"
while [ ! $# -eq 0 ]
do
@@ -355,12 +412,22 @@ do
reconf_library ${CONF_LIBRARY}
;;
--rebuild-*)
BUILD_LIBRARY=`echo $1 | sed -e 's/^--[A-Za-z]*-//g'`
rebuild_library ${BUILD_LIBRARY}
;;
--full)
for library in {0..26}
for library in {0..32}
do
enable_library $(get_library_name $library)
if [[ $library -ne 18 ]] && [[ $library -ne 19 ]]; then
enable_library $(get_library_name $library)
fi
done
;;
--enable-gpl)
GPL_ENABLED="yes"
;;
--enable-*)
ENABLED_LIBRARY=`echo $1 | sed -e 's/^--[A-Za-z]*-//g'`
@@ -384,6 +451,8 @@ if [[ -z ${ANDROID_NDK_ROOT} ]]; then
fi
echo -e "Building mobile-ffmpeg for Android\n"
echo -e -n "INFO: Building mobile-ffmpeg for Android: " >>${BASEDIR}/build.log
echo -e `date` >>${BASEDIR}/build.log
if [[ ${ENABLED_ARCHITECTURES[0]} -eq 0 ]] && [[ ${ENABLED_ARCHITECTURES[1]} -eq 1 ]]; then
ENABLED_ARCHITECTURES[0]=1
@@ -395,6 +464,27 @@ fi
print_enabled_architectures
print_enabled_libraries
# CHECKING GPL LIBRARIES
for gpl_library in {18..19}
do
if [[ ${ENABLED_LIBRARIES[$gpl_library]} -eq 1 ]]; then
library_name=$(get_library_name ${gpl_library})
if [ ${GPL_ENABLED} != "yes" ]; then
echo -e "\n(*) Invalid configuration detected. GPL library ${library_name} enabled without --enable-gpl flag.\n"
echo -e "\n(*) Invalid configuration detected. GPL library ${library_name} enabled without --enable-gpl flag.\n" >> ${BASEDIR}/build.log
exit 1
else
DOWNLOAD_RESULT=$(download_gpl_library_source ${library_name})
if [[ ${DOWNLOAD_RESULT} -ne 0 ]]; then
echo -e "\n(*) Failed to download GPL library ${library_name} source. Please check build.log file for details. If the problem persists refer to offline building instructions.\n"
echo -e "\n(*) Failed to download GPL library ${library_name} source.\n" >> ${BASEDIR}/build.log
exit 1
fi
fi
fi
done
for run_arch in {0..4}
do
if [[ ${ENABLED_ARCHITECTURES[$run_arch]} -eq 1 ]]; then
@@ -407,7 +497,7 @@ do
. ${BASEDIR}/build/main-android.sh "${ENABLED_LIBRARIES[@]}" || exit 1
# CLEAR FLAGS
for library in {1..27}
for library in {1..33}
do
library_name=$(get_library_name $((library - 1)))
unset $(echo "OK_${library_name}" | sed "s/\-/\_/g")
@@ -469,7 +559,7 @@ if [[ ! -z ${ANDROID_ARCHITECTURES} ]]; then
exit 1
fi
cp ${BASEDIR}/android/app/build/outputs/aar/mobile-ffmpeg-1.0.aar ${MOBILE_FFMPEG_AAR} || exit 1
cp ${BASEDIR}/android/app/build/outputs/aar/mobile-ffmpeg-1.1.aar ${MOBILE_FFMPEG_AAR} || exit 1
echo -e "Created mobile-ffmpeg Android archive successfully.\n" >> ${BASEDIR}/build.log
+1 -1
View File
@@ -38,7 +38,7 @@ PROJECT_NAME = "MobileFFmpeg Android API"
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = 1.0
PROJECT_NUMBER = 1.1
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
+2 -2
View File
@@ -5,8 +5,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
versionCode 11
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
project.archivesBaseName = "mobile-ffmpeg"
}
+1 -1
View File
@@ -28,7 +28,7 @@
#include "log.h"
/** Library version string */
#define MOBILE_FFMPEG_VERSION "1.0"
#define MOBILE_FFMPEG_VERSION "1.1"
/*
* Class: com_arthenica_mobileffmpeg_FFmpeg
@@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.arthenica.mobileffmpeg.test">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
+312 -29
View File
@@ -28,15 +28,21 @@ get_library_name() {
15) echo "speex" ;;
16) echo "wavpack" ;;
17) echo "kvazaar" ;;
18) echo "giflib" ;;
19) echo "jpeg" ;;
20) echo "libogg" ;;
21) echo "libpng" ;;
22) echo "libuuid" ;;
23) echo "nettle" ;;
24) echo "tiff" ;;
25) echo "android-zlib" ;;
26) echo "android-media-codec" ;;
18) echo "x264" ;;
19) echo "xvidcore" ;;
20) echo "libilbc" ;;
21) echo "opus" ;;
22) echo "snappy" ;;
23) echo "giflib" ;;
24) echo "jpeg" ;;
25) echo "libogg" ;;
26) echo "libpng" ;;
27) echo "libuuid" ;;
28) echo "nettle" ;;
29) echo "tiff" ;;
30) echo "expat" ;;
31) echo "android-zlib" ;;
32) echo "android-media-codec" ;;
esac
}
@@ -196,7 +202,7 @@ get_app_specific_cflags() {
APP_FLAGS=""
case $1 in
libwebp)
libwebp | xvidcore)
APP_FLAGS=""
;;
ffmpeg | shine)
@@ -214,11 +220,11 @@ get_app_specific_cflags() {
}
get_cflags() {
ARCH_FLAGS=$(get_arch_specific_cflags);
APP_FLAGS=$(get_app_specific_cflags $1);
COMMON_FLAGS=$(get_common_cflags);
OPTIMIZATION_FLAGS=$(get_size_optimization_cflags $1);
COMMON_INCLUDES=$(get_common_includes);
ARCH_FLAGS=$(get_arch_specific_cflags)
APP_FLAGS=$(get_app_specific_cflags $1)
COMMON_FLAGS=$(get_common_cflags)
OPTIMIZATION_FLAGS=$(get_size_optimization_cflags $1)
COMMON_INCLUDES=$(get_common_includes)
echo "${ARCH_FLAGS} ${APP_FLAGS} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS} ${COMMON_INCLUDES}"
}
@@ -283,9 +289,9 @@ get_arch_specific_ldflags() {
}
get_ldflags() {
ARCH_FLAGS=$(get_arch_specific_ldflags);
OPTIMIZATION_FLAGS=$(get_size_optimization_ldflags);
COMMON_LINKED_LIBS=$(get_common_linked_libraries $1);
ARCH_FLAGS=$(get_arch_specific_ldflags)
OPTIMIZATION_FLAGS=$(get_size_optimization_ldflags)
COMMON_LINKED_LIBS=$(get_common_linked_libraries $1)
echo "${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMMON_LINKED_LIBS}"
}
@@ -307,7 +313,7 @@ cachedir=\${localstatedir}/cache/\${PACKAGE}
Name: Fontconfig
Description: Font configuration and customization library
Version: ${FONTCONFIG_VERSION}
Requires: freetype2 >= 21.0.15, uuid, libxml-2.0 >= 2.6
Requires: freetype2 >= 21.0.15, uuid, expat >= 2.2.0, libiconv
Requires.private:
Libs: -L\${libdir} -lfontconfig
Libs.private:
@@ -540,6 +546,44 @@ Libs: -L\${libdir} -luuid
EOF
}
create_snappy_package_config() {
local SNAPPY_VERSION="$1"
cat > "${INSTALL_PKG_CONFIG_DIR}/snappy.pc" << EOF
prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/snappy
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include
Name: snappy
Description: a fast compressor/decompressor
Version: ${SNAPPY_VERSION}
Requires:
Libs: -L\${libdir} -lz -lstdc++
Cflags: -I\${includedir}
EOF
}
create_xvidcore_package_config() {
local XVIDCORE_VERSION="$1"
cat > "${INSTALL_PKG_CONFIG_DIR}/xvidcore.pc" << EOF
prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/xvidcore
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include
Name: xvidcore
Description: the main MPEG-4 de-/encoding library
Version: ${XVIDCORE_VERSION}
Requires:
Libs: -L\${libdir}
Cflags: -I\${includedir}
EOF
}
create_zlib_package_config() {
ZLIB_VERSION=$(grep '#define ZLIB_VERSION' ${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot/usr/include/zlib.h | grep -Eo '\".*\"' | sed -e 's/\"//g')
@@ -576,15 +620,138 @@ Cflags: -I\${includedir}
EOF
}
#
# download <url> <local file name> <on error action>
#
download() {
if [ ! -d "${MOBILE_FFMPEG_TMPDIR}" ]; then
mkdir -p "${MOBILE_FFMPEG_TMPDIR}"
fi
(curl --fail --location $1 -o ${MOBILE_FFMPEG_TMPDIR}/$2) 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
local RC=$?
if [ ${RC} -eq 0 ]; then
echo -e "\nDEBUG: Downloaded $1 to ${MOBILE_FFMPEG_TMPDIR}/$2\n" >>${BASEDIR}/build.log
else
rm -f ${MOBILE_FFMPEG_TMPDIR}/$2 >>${BASEDIR}/build.log
echo -e -n "\nINFO: Failed to download $1 to ${MOBILE_FFMPEG_TMPDIR}/$2, rc=${RC}. " >>${BASEDIR}/build.log
if [ "$3" == "exit" ]; then
echo -e "DEBUG: Build will now exit.\n" >>${BASEDIR}/build.log
exit 1
else
echo -e "DEBUG: Build will continue.\n" >>${BASEDIR}/build.log
fi
fi
echo ${RC}
}
download_gpl_library_source() {
local GPL_LIB_URL=""
local GPL_LIB_FILE=""
local GPL_LIB_ORIG_DIR=""
local GPL_LIB_DEST_DIR=""
echo -e "\nDEBUG: Downloading GPL library source: $1\n" >>${BASEDIR}/build.log
case $1 in
x264)
GPL_LIB_URL="ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20180606-2245-stable.tar.bz2"
GPL_LIB_FILE="x264-snapshot-20180606-2245-stable.tar.bz2"
GPL_LIB_ORIG_DIR="x264-snapshot-20180606-2245-stable"
GPL_LIB_DEST_DIR="x264"
;;
xvidcore)
GPL_LIB_URL="https://downloads.xvid.com/downloads/xvidcore-1.3.5.tar.gz"
GPL_LIB_FILE="xvidcore-1.3.5.tar.gz"
GPL_LIB_ORIG_DIR="xvidcore"
GPL_LIB_DEST_DIR="xvidcore"
;;
esac
local GPL_LIB_SOURCE_PATH="${BASEDIR}/src/${GPL_LIB_DEST_DIR}"
if [ -d "${GPL_LIB_SOURCE_PATH}" ]; then
echo -e "INFO: $1 already downloaded. Source folder found at ${GPL_LIB_SOURCE_PATH}\n" >>${BASEDIR}/build.log
echo 0
return
fi
local GPL_LIB_PACKAGE_PATH="${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_FILE}"
echo -e "DEBUG: $1 source not found. Checking if library package ${GPL_LIB_FILE} is downloaded at ${GPL_LIB_PACKAGE_PATH} \n" >>${BASEDIR}/build.log
if [ ! -f "${GPL_LIB_PACKAGE_PATH}" ]; then
echo -e "DEBUG: $1 library package not found. Downloading from ${GPL_LIB_URL}\n" >>${BASEDIR}/build.log
local DOWNLOAD_RC=$(download "${GPL_LIB_URL}" "${GPL_LIB_FILE}")
if [ ${DOWNLOAD_RC} -ne 0 ]; then
echo -e "INFO: Downloading GPL library $1 failed. Can not get library package from ${GPL_LIB_URL}\n" >>${BASEDIR}/build.log
echo ${DOWNLOAD_RC}
return
else
echo -e "DEBUG: $1 library package downloaded\n" >>${BASEDIR}/build.log
fi
else
echo -e "DEBUG: $1 library package already downloaded\n" >>${BASEDIR}/build.log
fi
local EXTRACT_COMMAND=""
if [[ ${GPL_LIB_FILE} == *bz2 ]]; then
EXTRACT_COMMAND="tar jxf ${GPL_LIB_PACKAGE_PATH} --directory ${MOBILE_FFMPEG_TMPDIR}"
else
EXTRACT_COMMAND="tar zxf ${GPL_LIB_PACKAGE_PATH} --directory ${MOBILE_FFMPEG_TMPDIR}"
fi
echo -e "DEBUG: Extracting library package ${GPL_LIB_FILE} inside ${MOBILE_FFMPEG_TMPDIR}\n" >>${BASEDIR}/build.log
${EXTRACT_COMMAND}
local EXTRACT_RC=$?
if [ ${EXTRACT_RC} -ne 0 ]; then
echo -e "\nINFO: Downloading GPL library $1 failed. Extract for library package ${GPL_LIB_FILE} completed with rc=${EXTRACT_RC}. Deleting failed files.\n" >>${BASEDIR}/build.log
echo ${EXTRACT_RC}
rm -f ${GPL_LIB_PACKAGE_PATH} >>${BASEDIR}/build.log
rm -rf ${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_ORIG_DIR} >>${BASEDIR}/build.log
return
fi
echo -e "DEBUG: Extract completed. Copying library source to ${GPL_LIB_SOURCE_PATH}\n" >>${BASEDIR}/build.log
CP_RC=$(cp -r ${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_ORIG_DIR} ${GPL_LIB_SOURCE_PATH} >>${BASEDIR}/build.log)
if [[ ${CP_RC} -eq 0 ]]; then
echo -e "DEBUG: Downloading GPL library source $1 completed successfully\n" >>${BASEDIR}/build.log
echo ${CP_RC}
else
echo -e "INFO: Downloading GPL library $1 failed. Copying library source to ${GPL_LIB_SOURCE_PATH} completed with rc={CP_RC}\n" >>${BASEDIR}/build.log
rm -rf ${GPL_LIB_SOURCE_PATH} >>${BASEDIR}/build.log
echo ${CP_RC}
fi
}
set_toolchain_clang_paths() {
export PATH=$PATH:${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin
TARGET_HOST=$(get_target_host)
export AR=${TARGET_HOST}-ar
export AS=${TARGET_HOST}-as
export CC=${TARGET_HOST}-clang
export CXX=${TARGET_HOST}-clang++
if [ "$1" == "x264" ]; then
export AS=${CC}
else
export AS=${TARGET_HOST}-as
fi
export LD=${TARGET_HOST}-ld
export RANLIB=${TARGET_HOST}-ranlib
export STRIP=${TARGET_HOST}-strip
@@ -607,9 +774,15 @@ set_toolchain_gcc_paths() {
TARGET_HOST=$(get_target_host)
export AR=${TARGET_HOST}-ar
export AS=${TARGET_HOST}-as
export CC=${TARGET_HOST}-gcc
export CXX=${TARGET_HOST}-gcc++
if [ "$1" == "x264" ]; then
export AS=${CC}
else
export AS=${TARGET_HOST}-as
fi
export LD=${TARGET_HOST}-ld
export RANLIB=${TARGET_HOST}-ranlib
export STRIP=${TARGET_HOST}-strip
@@ -636,15 +809,125 @@ create_toolchain() {
build_cpufeatures() {
# CLEAN FIRST
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.a
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.so
# CLEAN OLD BUILD
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o >> ${BASEDIR}/build.log
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.a >> ${BASEDIR}/build.log
rm -f ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.so >> ${BASEDIR}/build.log
# THEN BUILD AGAIN
${TARGET_HOST}-clang -c ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.c -o ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o
${TARGET_HOST}-ar rcs ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.a ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o
${TARGET_HOST}-clang -shared ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o -o ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.so
set_toolchain_clang_paths "cpu-features"
echo -e "\nINFO: Building cpu-features for for ${ARCH}\n" >> ${BASEDIR}/build.log
# THEN BUILD FOR THIS ABI
${TARGET_HOST}-clang -c ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.c -o ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o >> ${BASEDIR}/build.log
${TARGET_HOST}-ar rcs ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.a ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o >> ${BASEDIR}/build.log
${TARGET_HOST}-clang -shared ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/cpu-features.o -o ${ANDROID_NDK_ROOT}/sources/android/cpufeatures/libcpufeatures.so >> ${BASEDIR}/build.log
create_cpufeatures_package_config
}
autoreconf_library() {
echo -e "\nDEBUG: Running full autoreconf for $1\n" >> ${BASEDIR}/build.log
# TRY FULL RECONF
(autoreconf --force --install)
local EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Full autoreconf failed. Running full autoreconf with include for $1\n" >> ${BASEDIR}/build.log
# TRY FULL RECONF WITH m4
(autoreconf --force --install -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Full autoreconf with include failed. Running autoreconf without force for $1\n" >> ${BASEDIR}/build.log
# TRY RECONF WITHOUT FORCE
(autoreconf --install)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Autoreconf without force failed. Running autoreconf without force with include for $1\n" >> ${BASEDIR}/build.log
# TRY RECONF WITHOUT FORCE WITH m4
(autoreconf --install -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Autoreconf without force with include failed. Running default autoreconf for $1\n" >> ${BASEDIR}/build.log
# TRY DEFAULT RECONF
(autoreconf)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Default autoreconf failed. Running default autoreconf with include for $1\n" >> ${BASEDIR}/build.log
# TRY DEFAULT RECONF WITH m4
(autoreconf -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
}
library_is_installed() {
local INSTALL_PATH=$1
local LIB_NAME=$2
echo -e "DEBUG: Checking if ${LIB_NAME} is already built and installed at ${INSTALL_PATH}/${LIB_NAME}\n" >> ${BASEDIR}/build.log
if [ ! -d ${INSTALL_PATH}/${LIB_NAME} ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME} directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [ ! -d ${INSTALL_PATH}/${LIB_NAME}/lib ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME}/lib directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [ ! -d ${INSTALL_PATH}/${LIB_NAME}/include ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME}/include directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
local HEADER_COUNT=$(ls -l ${INSTALL_PATH}/${LIB_NAME}/include | wc -l)
local LIB_COUNT=$(ls -l ${INSTALL_PATH}/${LIB_NAME}/lib | wc -l)
if [[ ${HEADER_COUNT} -eq 0 ]]; then
echo -e "DEBUG: No headers found under ${INSTALL_PATH}/${LIB_NAME}/include\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [[ ${LIB_COUNT} -eq 0 ]]; then
echo -e "DEBUG: No libraries found under ${INSTALL_PATH}/${LIB_NAME}/lib\n" >> ${BASEDIR}/build.log
echo 1
return
fi
echo -e "INFO: ${LIB_NAME} library is already built and installed\n" >> ${BASEDIR}/build.log
echo 0
}
+61
View File
@@ -0,0 +1,61 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="expat"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_expat} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--without-docbook \
--without-xmlwf \
--enable-static \
--disable-shared \
--disable-fast-install \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./expat.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+123 -73
View File
@@ -1,28 +1,28 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
HOST_PKG_CONFIG_PATH=`type pkg-config 2>/dev/null | sed 's/.*is //g'`
if [[ -z ${HOST_PKG_CONFIG_PATH} ]]; then
echo "pkg-config not found"
HOST_PKG_CONFIG_PATH=`command -v pkg-config`
if [ -z ${HOST_PKG_CONFIG_PATH} ]; then
echo -e "(*) pkg-config command not found\n"
exit 1
fi
@@ -30,14 +30,15 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="ffmpeg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
CFLAGS=$(get_cflags "ffmpeg")
CXXFLAGS=$(get_cxxflags "ffmpeg")
LDFLAGS=$(get_ldflags "ffmpeg")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
CFLAGS=$(get_cflags ${LIB_NAME})
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
TARGET_CPU=""
TARGET_ARCH=""
@@ -74,7 +75,7 @@ esac
CONFIGURE_POSTFIX=""
for library in {1..27}
for library in {1..33}
do
if [[ ${!library} -eq 1 ]]; then
ENABLED_LIBRARY=$(get_library_name $((library - 1)))
@@ -83,120 +84,149 @@ do
case $ENABLED_LIBRARY in
fontconfig)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags fontconfig)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static fontconfig)"
CFLAGS+=" $(pkg-config --cflags fontconfig)"
LDFLAGS+=" $(pkg-config --libs --static fontconfig)"
CONFIGURE_POSTFIX+=" --enable-libfontconfig"
;;
freetype)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags freetype2)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static freetype2)"
CFLAGS+=" $(pkg-config --cflags freetype2)"
LDFLAGS+=" $(pkg-config --libs --static freetype2)"
CONFIGURE_POSTFIX+=" --enable-libfreetype"
;;
fribidi)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags fribidi)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static fribidi)"
CFLAGS+=" $(pkg-config --cflags fribidi)"
LDFLAGS+=" $(pkg-config --libs --static fribidi)"
CONFIGURE_POSTFIX+=" --enable-libfribidi"
;;
gmp)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags gmp)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static gmp)"
CFLAGS+=" $(pkg-config --cflags gmp)"
LDFLAGS+=" $(pkg-config --libs --static gmp)"
CONFIGURE_POSTFIX+=" --enable-gmp"
;;
gnutls)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags gnutls)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static gnutls)"
CFLAGS+=" $(pkg-config --cflags gnutls)"
LDFLAGS+=" $(pkg-config --libs --static gnutls)"
CONFIGURE_POSTFIX+=" --enable-gnutls"
;;
kvazaar)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags kvazaar)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static kvazaar)"
CFLAGS+=" $(pkg-config --cflags kvazaar)"
LDFLAGS+=" $(pkg-config --libs --static kvazaar)"
CONFIGURE_POSTFIX+=" --enable-libkvazaar"
;;
lame)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libmp3lame)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libmp3lame)"
CFLAGS+=" $(pkg-config --cflags libmp3lame)"
LDFLAGS+=" $(pkg-config --libs --static libmp3lame)"
CONFIGURE_POSTFIX+=" --enable-libmp3lame"
;;
libass)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libass)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libass)"
CFLAGS+=" $(pkg-config --cflags libass)"
LDFLAGS+=" $(pkg-config --libs --static libass)"
CONFIGURE_POSTFIX+=" --enable-libass"
;;
libiconv)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libiconv)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libiconv)"
CFLAGS+=" $(pkg-config --cflags libiconv)"
LDFLAGS+=" $(pkg-config --libs --static libiconv)"
CONFIGURE_POSTFIX+=" --enable-iconv"
;;
libilbc)
CFLAGS+=" $(pkg-config --cflags libilbc)"
LDFLAGS+=" $(pkg-config --libs --static libilbc)"
CONFIGURE_POSTFIX+=" --enable-libilbc"
;;
libtheora)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags theora)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static theora)"
CFLAGS+=" $(pkg-config --cflags theora)"
LDFLAGS+=" $(pkg-config --libs --static theora)"
CONFIGURE_POSTFIX+=" --enable-libtheora"
;;
libvorbis)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags vorbis)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static vorbis)"
CFLAGS+=" $(pkg-config --cflags vorbis)"
LDFLAGS+=" $(pkg-config --libs --static vorbis)"
CONFIGURE_POSTFIX+=" --enable-libvorbis"
;;
libvpx)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags vpx)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs vpx)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static cpufeatures)"
CFLAGS+=" $(pkg-config --cflags vpx)"
LDFLAGS+=" $(pkg-config --libs vpx)"
LDFLAGS+=" $(pkg-config --libs --static cpufeatures)"
CONFIGURE_POSTFIX+=" --enable-libvpx"
;;
libwebp)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libwebp)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libwebp)"
CFLAGS+=" $(pkg-config --cflags libwebp)"
LDFLAGS+=" $(pkg-config --libs --static libwebp)"
CONFIGURE_POSTFIX+=" --enable-libwebp"
;;
libxml2)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libxml-2.0)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libxml-2.0)"
CFLAGS+=" $(pkg-config --cflags libxml-2.0)"
LDFLAGS+=" $(pkg-config --libs --static libxml-2.0)"
CONFIGURE_POSTFIX+=" --enable-libxml2"
;;
opencore-amr)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags opencore-amrnb)"
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags opencore-amrwb)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static opencore-amrnb)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static opencore-amrwb)"
CFLAGS+=" $(pkg-config --cflags opencore-amrnb)"
CFLAGS+=" $(pkg-config --cflags opencore-amrwb)"
LDFLAGS+=" $(pkg-config --libs --static opencore-amrnb)"
LDFLAGS+=" $(pkg-config --libs --static opencore-amrwb)"
CONFIGURE_POSTFIX+=" --enable-libopencore-amrnb"
CONFIGURE_POSTFIX+=" --enable-libopencore-amrwb"
;;
opus)
CFLAGS+=" $(pkg-config --cflags opus)"
LDFLAGS+=" $(pkg-config --libs --static opus)"
CONFIGURE_POSTFIX+=" --enable-libopus"
;;
shine)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags shine)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static shine)"
CFLAGS+=" $(pkg-config --cflags shine)"
LDFLAGS+=" $(pkg-config --libs --static shine)"
CONFIGURE_POSTFIX+=" --enable-libshine"
;;
snappy)
CFLAGS+=" $(pkg-config --cflags snappy)"
LDFLAGS+=" $(pkg-config --libs --static snappy)"
CONFIGURE_POSTFIX+=" --enable-libsnappy"
;;
speex)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags speex)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static speex)"
CFLAGS+=" $(pkg-config --cflags speex)"
LDFLAGS+=" $(pkg-config --libs --static speex)"
CONFIGURE_POSTFIX+=" --enable-libspeex"
;;
wavpack)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags wavpack)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static wavpack)"
CFLAGS+=" $(pkg-config --cflags wavpack)"
LDFLAGS+=" $(pkg-config --libs --static wavpack)"
CONFIGURE_POSTFIX+=" --enable-libwavpack"
;;
x264)
CFLAGS+=" $(pkg-config --cflags x264)"
LDFLAGS+=" $(pkg-config --libs --static x264)"
CONFIGURE_POSTFIX+=" --enable-libx264 --enable-gpl"
;;
xvidcore)
CFLAGS+=" $(pkg-config --cflags xvidcore)"
LDFLAGS+=" $(pkg-config --libs --static xvidcore)"
CONFIGURE_POSTFIX+=" --enable-libxvid --enable-gpl"
;;
expat)
CFLAGS+=" $(pkg-config --cflags expat)"
LDFLAGS+=" $(pkg-config --libs --static expat)"
;;
libogg)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags ogg)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static ogg)"
CFLAGS+=" $(pkg-config --cflags ogg)"
LDFLAGS+=" $(pkg-config --libs --static ogg)"
;;
libpng)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libpng)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libpng)"
CFLAGS+=" $(pkg-config --cflags libpng)"
LDFLAGS+=" $(pkg-config --libs --static libpng)"
;;
libuuid)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags uuid)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static uuid)"
CFLAGS+=" $(pkg-config --cflags uuid)"
LDFLAGS+=" $(pkg-config --libs --static uuid)"
;;
nettle)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags nettle)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static nettle)"
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags hogweed)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static hogweed)"
CFLAGS+=" $(pkg-config --cflags nettle)"
LDFLAGS+=" $(pkg-config --libs --static nettle)"
CFLAGS+=" $(pkg-config --cflags hogweed)"
LDFLAGS+=" $(pkg-config --libs --static hogweed)"
;;
android-zlib)
CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags zlib)"
LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static zlib)"
CFLAGS+=" $(pkg-config --cflags zlib)"
LDFLAGS+=" $(pkg-config --libs --static zlib)"
CONFIGURE_POSTFIX+=" --enable-zlib"
;;
android-media-codec)
@@ -204,7 +234,9 @@ do
;;
esac
else
if [[ ${library} -eq 26 ]]; then
# THE FOLLOWING LIBRARIES SHOULD BE EXPLICITLY DISABLED TO PREVENT AUTODETECT
if [[ ${library} -eq 32 ]]; then
CONFIGURE_POSTFIX+=" --disable-zlib"
fi
fi
@@ -212,16 +244,16 @@ done
LDFLAGS+=" -L${ANDROID_NDK_ROOT}/platforms/android-${API}/arch-${TOOLCHAIN_ARCH}/usr/lib"
cd ${BASEDIR}/src/ffmpeg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
echo -n -e "\nffmpeg: "
echo -n -e "\n${LIB_NAME}: "
make distclean 2>/dev/null 1>/dev/null
./configure \
--cross-prefix="${TARGET_HOST}-" \
--sysroot="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot" \
--prefix="${BASEDIR}/prebuilt/android-$(get_target_build)/ffmpeg" \
--prefix="${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}" \
--pkg-config="${HOST_PKG_CONFIG_PATH}" \
--extra-cflags="${CFLAGS}" \
--extra-cxxflags="${CXXFLAGS}" \
@@ -241,18 +273,36 @@ make distclean 2>/dev/null 1>/dev/null
--disable-xmm-clobber-test \
--disable-debug \
--disable-neon-clobber-test \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-videotoolbox \
--disable-programs \
--disable-postproc \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--disable-static \
--disable-jack \
--disable-sndio \
--disable-schannel \
--disable-sdl2 \
--disable-securetransport \
--disable-xlib \
--disable-cuda \
--disable-cuvid \
--disable-nvenc \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--disable-videotoolbox \
--disable-appkit \
--disable-alsa \
--disable-cuda \
--disable-cuvid \
--disable-nvenc \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--disable-videotoolbox \
${CONFIGURE_POSTFIX} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ $? -ne 0 ]; then
+17 -15
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,34 +24,36 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="fontconfig"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "fontconfig")
export CXXFLAGS=$(get_cxxflags "fontconfig")
export LDFLAGS=$(get_ldflags "fontconfig")
export PKG_CONFIG_PATH=${INSTALL_PKG_CONFIG_DIR}
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR=${INSTALL_PKG_CONFIG_DIR}
cd ${BASEDIR}/src/fontconfig || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_fontconfig} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/fontconfig \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-libiconv \
--with-libiconv-prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv \
--with-expat=${BASEDIR}/prebuilt/android-$(get_target_build)/expat \
--without-libintl-prefix \
--enable-static \
--disable-shared \
--disable-fast-install \
--disable-rpath \
--enable-iconv \
--enable-libxml2 \
--disable-libxml2 \
--disable-docs \
--host=${TARGET_HOST} || exit 1
+20 -15
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,31 +24,36 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="freetype"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "freetype")
export CXXFLAGS=$(get_cxxflags "freetype")
export LDFLAGS=$(get_ldflags "freetype")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/freetype || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_freetype} -eq 1 ]]; then
autoreconf --force --install
fi
# OVERRIDING PKG-CONFIG
export LIBPNG_CFLAGS="-I${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/include"
export LIBPNG_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/lib"
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/freetype \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-zlib \
--with-png \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--without-harfbuzz \
--without-bzip2 \
--without-fsref \
--without-quickdraw-toolbox \
--without-quickdraw-carbon \
--without-ats \
--enable-static \
--disable-shared \
--disable-fast-install \
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,27 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="fribidi"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "fribidi")
export CXXFLAGS=$(get_cxxflags "fribidi")
export LDFLAGS=$(get_ldflags "fribidi")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/fribidi || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_fribidi} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/fribidi \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--without-glib \
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,27 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="giflib"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "giflib")" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR"
export CXXFLAGS=$(get_cxxflags "giflib")
export LDFLAGS=$(get_ldflags "giflib")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR"
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/giflib || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_giflib} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/giflib \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+14 -13
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,32 +24,33 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="gmp"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "gmp")
export CXXFLAGS=$(get_cxxflags "gmp")
export LDFLAGS=$(get_ldflags "gmp")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/gmp || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_gmp} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/gmp \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
--disable-shared \
--disable-assembly \
--enable-assembly \
--disable-fast-install \
--disable-maintainer-mode \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
+22 -14
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,30 +24,37 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="gnutls"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
COMMON_CFLAGS=$(get_cflags "gnutls")
COMMON_CXXFLAGS=$(get_cxxflags "gnutls")
COMMON_LDFLAGS=$(get_ldflags "gnutls")
COMMON_CFLAGS=$(get_cflags ${LIB_NAME})
COMMON_CXXFLAGS=$(get_cxxflags ${LIB_NAME})
COMMON_LDFLAGS=$(get_ldflags ${LIB_NAME})
export CFLAGS="${COMMON_CFLAGS} -I${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv/include -I${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/include"
export CFLAGS="${COMMON_CFLAGS} -I${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv/include"
export CXXFLAGS="${COMMON_CXXFLAGS}"
export LDFLAGS="${COMMON_LDFLAGS} -L${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv/lib -L${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/lib"
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export LDFLAGS="${COMMON_LDFLAGS} -L${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv/lib"
cd ${BASEDIR}/src/gnutls || exit 1
export NETTLE_CFLAGS="-I${BASEDIR}/prebuilt/android-$(get_target_build)/nettle/include"
export NETTLE_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/nettle/lib"
export HOGWEED_CFLAGS="-I${BASEDIR}/prebuilt/android-$(get_target_build)/nettle/include"
export HOGWEED_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/nettle/lib"
export GMP_CFLAGS="-I${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/include"
export GMP_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/lib"
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_gnutls} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/gnutls \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--with-included-libtasn1 \
@@ -56,6 +63,7 @@ fi
--without-libidn2 \
--without-p11-kit \
--enable-openssl-compatibility \
--enable-hardware-acceleration \
--enable-static \
--disable-shared \
--disable-fast-install \
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="jpeg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "jpeg")
export CXXFLAGS=$(get_cxxflags "jpeg")
export LDFLAGS=$(get_ldflags "jpeg")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/jpeg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_jpeg} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/jpeg \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,27 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="kvazaar"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "kvazaar")
export CXXFLAGS=$(get_cxxflags "kvazaar")
export LDFLAGS=$(get_ldflags "kvazaar")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/kvazaar || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_kvazaar} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/kvazaar \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,27 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="lame"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "lame")
export CXXFLAGS=$(get_cxxflags "lame")
export LDFLAGS=$(get_ldflags "lame")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/lame || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_lame} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/lame \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--with-libiconv-prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv \
+22 -16
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,22 +24,31 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libass"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libass")
export CXXFLAGS=$(get_cxxflags "libass")
export LDFLAGS=$(get_ldflags "libass")
unset PKG_CONFIG_PATH
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/libass || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libass} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
ASM_FLAGS=""
case ${ARCH} in
x86)
# please note that asm is disabled
# because enabling asm for x86 causes text relocations in libavfilter.so
ASM_FLAGS=" --disable-asm"
;;
*)
@@ -47,21 +56,18 @@ case ${ARCH} in
;;
esac
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libass} -eq 1 ]]; then
autoreconf --force --install
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libass \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--disable-libtool-lock \
--enable-static \
--disable-shared \
--disable-harfbuzz \
--disable-fast-install \
--disable-test \
--disable-profile \
--disable-coretext \
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libiconv"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libiconv")
export CXXFLAGS=$(get_cxxflags "libiconv")
export LDFLAGS=$(get_ldflags "libiconv")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libiconv || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libiconv} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+59
View File
@@ -0,0 +1,59 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="libilbc"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libilbc} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
--disable-shared \
--disable-fast-install \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./libilbc.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+12 -11
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,25 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libogg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libogg")
export CXXFLAGS=$(get_cxxflags "libogg")
export LDFLAGS=$(get_ldflags "libogg")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libogg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libogg} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libogg \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+16 -13
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,39 +24,42 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libpng"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libpng")
export CXXFLAGS=$(get_cxxflags "libpng")
export LDFLAGS=$(get_ldflags "libpng")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
CPU_SPECIFIC_OPTIONS=""
case ${ARCH} in
x86 | x86-64)
CPU_SPECIFIC_OPTIONS="--enable-hardware-optimizations --enable-sse"
CPU_SPECIFIC_OPTIONS="--enable-hardware-optimizations --enable-intel-sse"
;;
arm-v7a-neon | arm64-v8a)
CPU_SPECIFIC_OPTIONS="--enable-hardware-optimizations --enable-arm-neon"
;;
arm-v7a)
# hardware-optimizations not enabled because
# when --enable-hardware-optimizations is added
# make tries to build arm-neon specific instructions, which breaks compilation
CPU_SPECIFIC_OPTIONS="--disable-arm-neon"
;;
esac
cd ${BASEDIR}/src/libpng || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libpng} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libpng \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+15 -14
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,34 +24,35 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libtheora"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libtheora")
export CXXFLAGS=$(get_cxxflags "libtheora")
export LDFLAGS=$(get_ldflags "libtheora")
export PKG_CONFIG_PATH=${INSTALL_PKG_CONFIG_DIR}
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/libtheora || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libtheora} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libtheora \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--enable-static \
--disable-shared \
--disable-fast-install \
--disable-spec \
--disable-examples \
--disable-telemetry \
--enable-valgrind-testing \
--disable-sdltest \
--disable-valgrind-testing \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libuuid"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libuuid")
export CXXFLAGS=$(get_cxxflags "libuuid")
export LDFLAGS=$(get_ldflags "libuuid")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libuuid || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libuuid} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libuuid \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+12 -11
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,25 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_gcc_paths
LIB_NAME="libvorbis"
set_toolchain_gcc_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libvorbis")
export CXXFLAGS=$(get_cxxflags "libvorbis")
export LDFLAGS=$(get_ldflags "libvorbis")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libvorbis || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libvorbis} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libvorbis \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--with-ogg-includes=${BASEDIR}/prebuilt/android-$(get_target_build)/libogg/include \
+17 -21
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,47 +24,44 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libvpx"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
export CFLAGS="$(get_cflags "libvpx") -I${ANDROID_NDK_ROOT}/sources/android/cpufeatures"
export CXXFLAGS=$(get_cxxflags "libvpx")
export LDFLAGS="$(get_ldflags "libvpx") -L${ANDROID_NDK_ROOT}/sources/android/cpufeatures -lcpufeatures"
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS="$(get_cflags ${LIB_NAME}) -I${ANDROID_NDK_ROOT}/sources/android/cpufeatures"
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS="$(get_ldflags ${LIB_NAME}) -L${ANDROID_NDK_ROOT}/sources/android/cpufeatures -lcpufeatures"
TARGET_CPU=""
DISABLE_NEON_FLAG=""
case ${ARCH} in
arm-v7a)
TARGET_CPU="armv7"
# NEON disabled explicitly because
# --enable-runtime-cpu-detect enables NEON for armv7 cpu
DISABLE_NEON_FLAG="--disable-neon"
;;
arm-v7a-neon)
TARGET_CPU="armv7"
# NEON IS ENABLED BY --enable-runtime-cpu-detect
TARGET_CPU="armv7"
;;
arm64-v8a)
# NEON IS ENABLED BY --enable-runtime-cpu-detect
TARGET_CPU="arm64"
;;
*)
# INTEL CPU EXTENSIONS ENABLED BY --enable-runtime-cpu-detect
TARGET_CPU="$(get_target_build)"
;;
esac
cd ${BASEDIR}/src/libvpx || exit 1
# build cpu-features
build_cpufeatures
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libvpx} -eq 1 ]]; then
autoreconf --force --install
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libvpx \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--target="${TARGET_CPU}-android-gcc" \
--extra-cflags="${CFLAGS}" \
--extra-cxxflags="${CXXFLAGS}" \
@@ -81,7 +78,6 @@ fi
--enable-vp9 \
--enable-multithread \
--enable-spatial-resampling \
--enable-runtime-cpu-detect \
--enable-small \
--enable-static \
--disable-shared \
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,19 +24,19 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libwebp"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
CFLAGS=$(get_cflags "libwebp")
CXXFLAGS=$(get_cxxflags "libwebp")
LDFLAGS=$(get_ldflags "libwebp")
PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
CFLAGS=$(get_cflags ${LIB_NAME})
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libwebp || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
if [ -d "build" ]; then
rm -rf build;
rm -rf build
fi
mkdir build;
@@ -50,11 +50,12 @@ cmake -Wno-dev \
-DCMAKE_SYSROOT="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot" \
-DCMAKE_FIND_ROOT_PATH="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/android-$(get_target_build)/libwebp" \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}" \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_C_COMPILER="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$CC" \
-DCMAKE_LINKER="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$LD" \
-DCMAKE_AR="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$AR" \
-DCMAKE_AS="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$AS" \
-DGIF_INCLUDE_DIR="${BASEDIR}/prebuilt/android-$(get_target_build)/giflib/include" \
-DGIF_LIBRARY="${BASEDIR}/prebuilt/android-$(get_target_build)/giflib/lib" \
-DJPEG_INCLUDE_DIR="${BASEDIR}/prebuilt/android-$(get_target_build)/jpeg/include" \
+14 -13
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,16 +24,17 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libxml2"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libxml2")
export CXXFLAGS=$(get_cxxflags "libxml2")
export LDFLAGS=$(get_ldflags "libxml2")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/libxml2 || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
@@ -45,15 +46,15 @@ make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libxml2} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/libxml2 \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--with-zlib \
--with-iconv=${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv \
--with-iconv=${BASEDIR}/prebuilt/android-$(get_target_build)/libiconv/lib \
--with-sax1 \
--without-python \
--without-debug \
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,14 +24,14 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="nettle"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "nettle")
export CXXFLAGS=$(get_cxxflags "nettle")
export LDFLAGS=$(get_ldflags "nettle")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
OPTIONAL_CPU_SUPPORT=""
case ${ARCH} in
@@ -43,17 +43,17 @@ case ${ARCH} in
;;
esac
cd ${BASEDIR}/src/nettle || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_nettle} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/nettle \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--enable-pic \
--enable-static \
--with-include-path=${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/include \
+12 -11
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,25 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="opencore-amr"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "opencore-amr")
export CXXFLAGS=$(get_cxxflags "opencore-amr")
export LDFLAGS=$(get_ldflags "opencore-amr")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/opencore-amr || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_opencore_amr} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/opencore-amr \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+67
View File
@@ -0,0 +1,67 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="opus"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_opus} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
--enable-rtcd \
--enable-asm \
--enable-check-asm \
--enable-custom-modes \
--disable-shared \
--disable-fast-install \
--disable-maintainer-mode \
--disable-doc \
--disable-extra-programs \
--disable-ambisonics \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./opus.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="shine"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "shine")
export CXXFLAGS=$(get_cxxflags "shine")
export LDFLAGS=$(get_ldflags "shine")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/shine || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_shine} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/shine \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
+71
View File
@@ -0,0 +1,71 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="snappy"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
if [ -d "build" ]; then
rm -rf build
fi
mkdir build;
cd build
cmake -Wno-dev \
-DCMAKE_VERBOSE_MAKEFILE=0 \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SYSROOT="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot" \
-DCMAKE_FIND_ROOT_PATH="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}" \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_CXX_COMPILER="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$CXX" \
-DCMAKE_C_COMPILER="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$CC" \
-DCMAKE_LINKER="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$LD" \
-DCMAKE_AR="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$AR" \
-DCMAKE_AS="${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/bin/$AS" \
-DSNAPPY_BUILD_TESTS=0 \
-DHAVE_LIBLZO2=0 \
-DHAVE_LIBZ=1 \
-DCMAKE_SYSTEM_PROCESSOR=$(get_target_build) \
-DBUILD_SHARED_LIBS=0 .. || exit 1
make -j$(get_cpu_count) || exit 1
# CREATE PACKAGE CONFIG MANUALLY
create_snappy_package_config "1.1.7"
make install || exit 1
+13 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,31 +24,32 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="speex"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "speex")
export CXXFLAGS=$(get_cxxflags "speex")
export LDFLAGS=$(get_ldflags "speex")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
OPTIONAL_CPU_SUPPORT=""
if [ ${ARCH} == "x86" ] || [ ${ARCH} == "x86-64" ]; then
OPTIONAL_CPU_SUPPORT="--enable-sse"
fi
cd ${BASEDIR}/src/speex || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_speex} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/speex \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static ${OPTIONAL_CPU_SUPPORT} \
+12 -11
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,25 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="tiff"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "tiff")
export CXXFLAGS=$(get_cxxflags "tiff")
export LDFLAGS=$(get_ldflags "tiff")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/tiff || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_tiff} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/tiff \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--with-jpeg-include-dir=${BASEDIR}/prebuilt/android-$(get_target_build)/jpeg/include \
+12 -12
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -24,26 +24,26 @@ fi
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="wavpack"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "wavpack")
export CXXFLAGS=$(get_cxxflags "wavpack")
export LDFLAGS=$(get_ldflags "wavpack")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/wavpack || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_wavpack} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/wavpack \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--with-pic \
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--without-iconv \
+81
View File
@@ -0,0 +1,81 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
if ! [ -x "$(command -v tar)" ]; then
echo -e "(*) tar command not found\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="x264"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
ASM_FLAGS=""
case ${ARCH} in
x86)
# please note that asm is disabled
# because enabling asm for x86 causes text relocations in libavfilter.so
ASM_FLAGS="--disable-asm"
;;
x86-64)
if ! [ -x "$(command -v nasm)" ]; then
echo -e "(*) nasm command not found\n"
exit 1
fi
export AS="$(command -v nasm)"
# WORKAROUND APPLIED TO ENABLE X86 ASM
# https://github.com/android-ndk/ndk/issues/693
export CFLAGS="${CFLAGS} -mno-stackrealign"
;;
esac
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
--enable-pic \
--sysroot=${ANDROID_NDK_ROOT}/toolchains/mobile-ffmpeg-${TOOLCHAIN}/sysroot \
--enable-static \
--disable-cli \
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp x264.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+68
View File
@@ -0,0 +1,68 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/android-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="xvidcore"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME}/build/generic || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_xvidcore} -eq 1 ]]; then
./bootstrap.sh
fi
ASM_FLAGS=""
case ${ARCH} in
x86)
# please note that asm is disabled
# because enabling asm for x86 causes text relocations in libavcodec.so
ASM_FLAGS="--disable-assembly"
;;
esac
./configure \
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# CREATE PACKAGE CONFIG MANUALLY
create_xvidcore_package_config "1.3.5"
make install || exit 1
# REMOVE DYNAMIC LIBS
rm -f ${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}/lib/libxvidcore.so*
+347 -29
View File
@@ -28,14 +28,23 @@ get_library_name() {
15) echo "speex" ;;
16) echo "wavpack" ;;
17) echo "kvazaar" ;;
18) echo "giflib" ;;
19) echo "jpeg" ;;
20) echo "libogg" ;;
21) echo "libpng" ;;
22) echo "libuuid" ;;
23) echo "nettle" ;;
24) echo "tiff" ;;
25) echo "ios-zlib" ;;
18) echo "x264" ;;
19) echo "xvidcore" ;;
20) echo "libilbc" ;;
21) echo "opus" ;;
22) echo "snappy" ;;
23) echo "giflib" ;;
24) echo "jpeg" ;;
25) echo "libogg" ;;
26) echo "libpng" ;;
27) echo "libuuid" ;;
28) echo "nettle" ;;
29) echo "tiff" ;;
30) echo "expat" ;;
31) echo "ios-zlib" ;;
32) echo "ios-audiotoolbox" ;;
33) echo "ios-coreimage" ;;
34) echo "ios-bzip2" ;;
esac
}
@@ -160,8 +169,8 @@ get_app_specific_cflags() {
APP_FLAGS=""
case $1 in
libwebp)
APP_FLAGS=""
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
ffmpeg | shine)
APP_FLAGS="-Wno-unused-function"
@@ -181,26 +190,42 @@ get_app_specific_cflags() {
}
get_cflags() {
ARCH_FLAGS=$(get_arch_specific_cflags);
APP_FLAGS=$(get_app_specific_cflags $1);
COMMON_FLAGS=$(get_common_cflags);
OPTIMIZATION_FLAGS=$(get_size_optimization_cflags $1);
MIN_VERSION_FLAGS=$(get_min_version_cflags);
COMMON_INCLUDES=$(get_common_includes);
ARCH_FLAGS=$(get_arch_specific_cflags)
APP_FLAGS=$(get_app_specific_cflags $1)
COMMON_FLAGS=$(get_common_cflags)
OPTIMIZATION_FLAGS=$(get_size_optimization_cflags $1)
MIN_VERSION_FLAGS=$(get_min_version_cflags)
COMMON_INCLUDES=$(get_common_includes)
echo "${ARCH_FLAGS} ${APP_FLAGS} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS} ${MIN_VERSION_FLAGS} ${COMMON_INCLUDES}"
}
get_asmflags() {
ARCH_FLAGS=$(get_arch_specific_cflags)
APP_FLAGS=$(get_app_specific_cflags $1)
COMMON_FLAGS=$(get_common_cflags)
OPTIMIZATION_FLAGS=$(get_size_optimization_cflags $1)
MIN_VERSION_FLAGS=$(get_min_version_cflags)
COMMON_INCLUDES=$(get_common_includes)
echo "${ARCH_FLAGS} ${APP_FLAGS} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS} ${MIN_VERSION_FLAGS} ${COMMON_INCLUDES}"
}
get_cxxflags() {
local COMMON_CFLAGS="$(get_common_cflags $1) $(get_common_includes $1) $(get_arch_specific_cflags $1) $(get_min_version_cflags)"
case $1 in
gnutls)
echo "-std=c++11 -fno-rtti -fembed-bitcode"
echo "-std=c++11 -fno-rtti -fembed-bitcode ${COMMON_CFLAGS}"
;;
opencore-amr)
echo "-fno-rtti -fembed-bitcode"
echo "-fno-rtti -fembed-bitcode ${COMMON_CFLAGS}"
;;
libwebp | xvidcore)
echo "-std=c++11 -fno-exceptions -fno-rtti -fembed-bitcode -fno-common -DPIC ${COMMON_CFLAGS}"
;;
*)
echo "-std=c++11 -fno-exceptions -fno-rtti -fembed-bitcode"
echo "-std=c++11 -fno-exceptions -fno-rtti -fembed-bitcode ${COMMON_CFLAGS}"
;;
esac
}
@@ -234,9 +259,9 @@ get_arch_specific_ldflags() {
}
get_ldflags() {
ARCH_FLAGS=$(get_arch_specific_ldflags);
LINKED_LIBRARIES=$(get_common_linked_libraries);
COMMON_FLAGS=$(get_common_ldflags);
ARCH_FLAGS=$(get_arch_specific_ldflags)
LINKED_LIBRARIES=$(get_common_linked_libraries)
COMMON_FLAGS=$(get_common_ldflags)
echo "${ARCH_FLAGS} ${LINKED_LIBRARIES} ${COMMON_FLAGS}"
}
@@ -258,7 +283,7 @@ cachedir=\${localstatedir}/cache/\${PACKAGE}
Name: Fontconfig
Description: Font configuration and customization library
Version: ${FONTCONFIG_VERSION}
Requires: freetype2 >= 21.0.15, uuid, libxml-2.0 >= 2.6
Requires: freetype2 >= 21.0.15, uuid, expat >= 2.2.0, libiconv
Requires.private:
Libs: -L\${libdir} -lfontconfig
Libs.private:
@@ -509,6 +534,44 @@ Libs: -L\${libdir} -luuid
EOF
}
create_snappy_package_config() {
local SNAPPY_VERSION="$1"
cat > "${INSTALL_PKG_CONFIG_DIR}/snappy.pc" << EOF
prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/snappy
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include
Name: snappy
Description: a fast compressor/decompressor
Version: ${SNAPPY_VERSION}
Requires:
Libs: -L\${libdir} -lz -lstdc++
Cflags: -I\${includedir}
EOF
}
create_xvidcore_package_config() {
local XVIDCORE_VERSION="$1"
cat > "${INSTALL_PKG_CONFIG_DIR}/xvidcore.pc" << EOF
prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/xvidcore
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include
Name: xvidcore
Description: the main MPEG-4 de-/encoding library
Version: ${XVIDCORE_VERSION}
Requires:
Libs: -L\${libdir}
Cflags: -I\${includedir}
EOF
}
create_zlib_package_config() {
ZLIB_VERSION=$(grep '#define ZLIB_VERSION' ${SDK_PATH}/usr/include/zlib.h | grep -Eo '\".*\"' | sed -e 's/\"//g')
@@ -528,10 +591,151 @@ Cflags: -I\${includedir}
EOF
}
create_bzip2_package_config() {
BZIP2_VERSION=$(grep -Eo 'version.*of' ${SDK_PATH}/usr/include/bzlib.h | sed -e 's/of//;s/version//g;s/\ //g')
cat > "${INSTALL_PKG_CONFIG_DIR}/bzip2.pc" << EOF
prefix=${SDK_PATH}/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: bzip2
Description: library for lossless, block-sorting data compression
Version: ${BZIP2_VERSION}
Requires:
Libs: -L\${libdir} -lbz2
Cflags: -I\${includedir}
EOF
}
#
# download <url> <local file name> <on error action>
#
download() {
if [ ! -d "${MOBILE_FFMPEG_TMPDIR}" ]; then
mkdir -p "${MOBILE_FFMPEG_TMPDIR}"
fi
(curl --fail --location $1 -o ${MOBILE_FFMPEG_TMPDIR}/$2) 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
local RC=$?
if [ ${RC} -eq 0 ]; then
echo -e "\nDEBUG: Downloaded $1 to ${MOBILE_FFMPEG_TMPDIR}/$2\n" >>${BASEDIR}/build.log
else
rm -f ${MOBILE_FFMPEG_TMPDIR}/$2 >>${BASEDIR}/build.log
echo -e -n "\nINFO: Failed to download $1 to ${MOBILE_FFMPEG_TMPDIR}/$2, rc=${RC}. " >>${BASEDIR}/build.log
if [ "$3" == "exit" ]; then
echo -e "DEBUG: Build will now exit.\n" >>${BASEDIR}/build.log
exit 1
else
echo -e "DEBUG: Build will continue.\n" >>${BASEDIR}/build.log
fi
fi
echo ${RC}
}
download_gpl_library_source() {
local GPL_LIB_URL=""
local GPL_LIB_FILE=""
local GPL_LIB_ORIG_DIR=""
local GPL_LIB_DEST_DIR=""
echo -e "\nDEBUG: Downloading GPL library source: $1\n" >>${BASEDIR}/build.log
case $1 in
x264)
GPL_LIB_URL="ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20180606-2245-stable.tar.bz2"
GPL_LIB_FILE="x264-snapshot-20180606-2245-stable.tar.bz2"
GPL_LIB_ORIG_DIR="x264-snapshot-20180606-2245-stable"
GPL_LIB_DEST_DIR="x264"
;;
xvidcore)
GPL_LIB_URL="https://downloads.xvid.com/downloads/xvidcore-1.3.5.tar.gz"
GPL_LIB_FILE="xvidcore-1.3.5.tar.gz"
GPL_LIB_ORIG_DIR="xvidcore"
GPL_LIB_DEST_DIR="xvidcore"
;;
esac
local GPL_LIB_SOURCE_PATH="${BASEDIR}/src/${GPL_LIB_DEST_DIR}"
if [ -d "${GPL_LIB_SOURCE_PATH}" ]; then
echo -e "INFO: $1 already downloaded. Source folder found at ${GPL_LIB_SOURCE_PATH}\n" >>${BASEDIR}/build.log
echo 0
return
fi
local GPL_LIB_PACKAGE_PATH="${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_FILE}"
echo -e "DEBUG: $1 source not found. Checking if library package ${GPL_LIB_FILE} is downloaded at ${GPL_LIB_PACKAGE_PATH} \n" >>${BASEDIR}/build.log
if [ ! -f "${GPL_LIB_PACKAGE_PATH}" ]; then
echo -e "DEBUG: $1 library package not found. Downloading from ${GPL_LIB_URL}\n" >>${BASEDIR}/build.log
local DOWNLOAD_RC=$(download "${GPL_LIB_URL}" "${GPL_LIB_FILE}")
if [ ${DOWNLOAD_RC} -ne 0 ]; then
echo -e "INFO: Downloading GPL library $1 failed. Can not get library package from ${GPL_LIB_URL}\n" >>${BASEDIR}/build.log
echo ${DOWNLOAD_RC}
return
else
echo -e "DEBUG: $1 library package downloaded\n" >>${BASEDIR}/build.log
fi
else
echo -e "DEBUG: $1 library package already downloaded\n" >>${BASEDIR}/build.log
fi
local EXTRACT_COMMAND=""
if [[ ${GPL_LIB_FILE} == *bz2 ]]; then
EXTRACT_COMMAND="tar jxf ${GPL_LIB_PACKAGE_PATH} --directory ${MOBILE_FFMPEG_TMPDIR}"
else
EXTRACT_COMMAND="tar zxf ${GPL_LIB_PACKAGE_PATH} --directory ${MOBILE_FFMPEG_TMPDIR}"
fi
echo -e "DEBUG: Extracting library package ${GPL_LIB_FILE} inside ${MOBILE_FFMPEG_TMPDIR}\n" >>${BASEDIR}/build.log
${EXTRACT_COMMAND}
local EXTRACT_RC=$?
if [ ${EXTRACT_RC} -ne 0 ]; then
echo -e "\nINFO: Downloading GPL library $1 failed. Extract for library package ${GPL_LIB_FILE} completed with rc=${EXTRACT_RC}. Deleting failed files.\n" >>${BASEDIR}/build.log
echo ${EXTRACT_RC}
rm -f ${GPL_LIB_PACKAGE_PATH} >>${BASEDIR}/build.log
rm -rf ${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_ORIG_DIR} >>${BASEDIR}/build.log
return
fi
echo -e "DEBUG: Extract completed. Copying library source to ${GPL_LIB_SOURCE_PATH}\n" >>${BASEDIR}/build.log
CP_RC=$(cp -r ${MOBILE_FFMPEG_TMPDIR}/${GPL_LIB_ORIG_DIR} ${GPL_LIB_SOURCE_PATH} >>${BASEDIR}/build.log)
if [[ ${CP_RC} -eq 0 ]]; then
echo -e "DEBUG: Downloading GPL library source $1 completed successfully\n" >>${BASEDIR}/build.log
echo ${CP_RC}
else
echo -e "INFO: Downloading GPL library $1 failed. Copying library source to ${GPL_LIB_SOURCE_PATH} completed with rc={CP_RC}\n" >>${BASEDIR}/build.log
rm -rf ${GPL_LIB_SOURCE_PATH} >>${BASEDIR}/build.log
echo ${CP_RC}
fi
}
set_toolchain_clang_paths() {
if [ ! -f /tmp/gas-preprocessor.pl ]; then
(curl -L https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl \
-o /tmp/gas-preprocessor.pl 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log && chmod +x /tmp/gas-preprocessor.pl) || exit 1
if [ ! -f "${MOBILE_FFMPEG_TMPDIR}/gas-preprocessor.pl" ]; then
download "https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl" "gas-preprocessor.pl" "exit"
(chmod +x ${MOBILE_FFMPEG_TMPDIR}/gas-preprocessor.pl >>${BASEDIR}/build.log) || exit 1
fi
local GAS_PREPROCESSOR="${MOBILE_FFMPEG_TMPDIR}/gas-preprocessor.pl"
if [ "$1" == "x264" ]; then
GAS_PREPROCESSOR="${BASEDIR}/src/x264/tools/gas-preprocessor.pl"
fi
TARGET_HOST=$(get_target_host)
@@ -540,23 +744,27 @@ set_toolchain_clang_paths() {
export CC="$(xcrun --sdk $(get_sdk_name) -f clang)"
export OBJC="$(xcrun --sdk $(get_sdk_name) -f clang)"
export CXX="$(xcrun --sdk $(get_sdk_name) -f clang++)"
local ASMFLAGS="$(get_asmflags $1)"
case ${ARCH} in
armv7 | armv7s)
export AS="/tmp/gas-preprocessor.pl -arch arm -- ${CC}"
export AS="${GAS_PREPROCESSOR} -arch arm -- ${CC} ${ASMFLAGS}"
;;
arm64)
export AS="/tmp/gas-preprocessor.pl -arch aarch64 -- ${CC}"
export AS="${GAS_PREPROCESSOR} -arch aarch64 -- ${CC} ${ASMFLAGS}"
;;
*)
export AS="${CC}"
export AS="${CC} ${ASMFLAGS}"
;;
esac
export LD="$(xcrun --sdk $(get_sdk_name) -f ld)"
export RANLIB="$(xcrun --sdk $(get_sdk_name) -f ranlib)"
export STRIP="$(xcrun --sdk $(get_sdk_name) -f strip)"
export INSTALL_PKG_CONFIG_DIR="${BASEDIR}/prebuilt/ios-$(get_target_host)/pkgconfig"
export ZLIB_PACKAGE_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}/zlib.pc"
export BZIP2_PACKAGE_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}/bzip2.pc"
if [ ! -d ${INSTALL_PKG_CONFIG_DIR} ]; then
mkdir -p ${INSTALL_PKG_CONFIG_DIR}
@@ -565,4 +773,114 @@ set_toolchain_clang_paths() {
if [ ! -f ${ZLIB_PACKAGE_CONFIG_PATH} ]; then
create_zlib_package_config
fi
if [ ! -f ${BZIP2_PACKAGE_CONFIG_PATH} ]; then
create_bzip2_package_config
fi
}
autoreconf_library() {
echo -e "\nDEBUG: Running full autoreconf for $1\n" >> ${BASEDIR}/build.log
# TRY FULL RECONF
(autoreconf --force --install)
local EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Full autoreconf failed. Running full autoreconf with include for $1\n" >> ${BASEDIR}/build.log
# TRY FULL RECONF WITH m4
(autoreconf --force --install -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Full autoreconf with include failed. Running autoreconf without force for $1\n" >> ${BASEDIR}/build.log
# TRY RECONF WITHOUT FORCE
(autoreconf --install)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Autoreconf without force failed. Running autoreconf without force with include for $1\n" >> ${BASEDIR}/build.log
# TRY RECONF WITHOUT FORCE WITH m4
(autoreconf --install -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Autoreconf without force with include failed. Running default autoreconf for $1\n" >> ${BASEDIR}/build.log
# TRY DEFAULT RECONF
(autoreconf)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
echo -e "\nDEBUG: Default autoreconf failed. Running default autoreconf with include for $1\n" >> ${BASEDIR}/build.log
# TRY DEFAULT RECONF WITH m4
(autoreconf -I m4)
EXTRACT_RC=$?
if [ ${EXTRACT_RC} -eq 0 ]; then
return
fi
}
library_is_installed() {
local INSTALL_PATH=$1
local LIB_NAME=$2
echo -e "DEBUG: Checking if ${LIB_NAME} is already built and installed at ${INSTALL_PATH}/${LIB_NAME}\n" >> ${BASEDIR}/build.log
if [ ! -d ${INSTALL_PATH}/${LIB_NAME} ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME} directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [ ! -d ${INSTALL_PATH}/${LIB_NAME}/lib ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME}/lib directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [ ! -d ${INSTALL_PATH}/${LIB_NAME}/include ]; then
echo -e "DEBUG: ${INSTALL_PATH}/${LIB_NAME}/include directory not found\n" >> ${BASEDIR}/build.log
echo 1
return
fi
local HEADER_COUNT=$(ls -l ${INSTALL_PATH}/${LIB_NAME}/include | wc -l)
local LIB_COUNT=$(ls -l ${INSTALL_PATH}/${LIB_NAME}/lib | wc -l)
if [[ ${HEADER_COUNT} -eq 0 ]]; then
echo -e "DEBUG: No headers found under ${INSTALL_PATH}/${LIB_NAME}/include\n" >> ${BASEDIR}/build.log
echo 1
return
fi
if [[ ${LIB_COUNT} -eq 0 ]]; then
echo -e "DEBUG: No libraries found under ${INSTALL_PATH}/${LIB_NAME}/lib\n" >> ${BASEDIR}/build.log
echo 1
return
fi
echo -e "INFO: ${LIB_NAME} library is already built and installed\n" >> ${BASEDIR}/build.log
echo 0
}
+66
View File
@@ -0,0 +1,66 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="expat"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_expat} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--without-docbook \
--without-xmlwf \
--enable-static \
--disable-shared \
--disable-fast-install \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./expat.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+150 -77
View File
@@ -1,33 +1,32 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
HOST_PKG_CONFIG_PATH=`type pkg-config 2>/dev/null | sed 's/.*is //g'`
if [[ -z ${HOST_PKG_CONFIG_PATH} ]]; then
echo "pkg-config not found"
if ! [ -x "$(command -v pkg-config)" ]; then
echo -e "(*) pkg-config command not found\n"
exit 1
fi
@@ -35,13 +34,14 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="ffmpeg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
FFMPEG_CFLAGS=""
FFMPEG_LDFLAGS=""
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
TARGET_CPU=""
TARGET_ARCH=""
@@ -76,143 +76,199 @@ esac
CONFIGURE_POSTFIX=""
for library in {1..26}
for library in {1..35}
do
if [[ ${!library} -eq 1 ]]; then
ENABLED_LIBRARY=$(get_library_name $((library - 1)))
echo -e "INFO: Enabling library ${ENABLED_LIBRARY}" >> ${BASEDIR}/build.log
case $ENABLED_LIBRARY in
case ${ENABLED_LIBRARY} in
fontconfig)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags fontconfig)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static fontconfig)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags fontconfig)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static fontconfig)"
CONFIGURE_POSTFIX+=" --enable-libfontconfig"
;;
freetype)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags freetype2)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static freetype2)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags freetype2)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static freetype2)"
CONFIGURE_POSTFIX+=" --enable-libfreetype"
;;
fribidi)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags fribidi)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static fribidi)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags fribidi)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static fribidi)"
CONFIGURE_POSTFIX+=" --enable-libfribidi"
;;
gmp)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags gmp)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static gmp)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags gmp)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static gmp)"
CONFIGURE_POSTFIX+=" --enable-gmp"
;;
gnutls)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags gnutls)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static gnutls)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags gnutls)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static gnutls)"
CONFIGURE_POSTFIX+=" --enable-gnutls"
;;
kvazaar)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags kvazaar)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static kvazaar)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags kvazaar)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static kvazaar)"
CONFIGURE_POSTFIX+=" --enable-libkvazaar"
;;
lame)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libmp3lame)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libmp3lame)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libmp3lame)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libmp3lame)"
CONFIGURE_POSTFIX+=" --enable-libmp3lame"
;;
libass)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libass)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libass)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libass)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libass)"
CONFIGURE_POSTFIX+=" --enable-libass"
;;
libiconv)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libiconv)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libiconv)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libiconv)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libiconv)"
CONFIGURE_POSTFIX+=" --enable-iconv"
;;
libilbc)
FFMPEG_CFLAGS+=" $(pkg-config --cflags libilbc)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libilbc)"
CONFIGURE_POSTFIX+=" --enable-libilbc"
;;
libtheora)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags theora)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static theora)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags theora)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static theora)"
CONFIGURE_POSTFIX+=" --enable-libtheora"
;;
libvorbis)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags vorbis)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static vorbis)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags vorbis)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static vorbis)"
CONFIGURE_POSTFIX+=" --enable-libvorbis"
;;
libvpx)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags vpx)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs vpx)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags vpx)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs vpx)"
CONFIGURE_POSTFIX+=" --enable-libvpx"
;;
libwebp)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libwebp)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libwebp)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libwebp)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libwebp)"
CONFIGURE_POSTFIX+=" --enable-libwebp"
;;
libxml2)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libxml-2.0)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libxml-2.0)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libxml-2.0)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libxml-2.0)"
CONFIGURE_POSTFIX+=" --enable-libxml2"
;;
opencore-amr)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags opencore-amrnb)"
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags opencore-amrwb)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static opencore-amrnb)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static opencore-amrwb)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags opencore-amrnb)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags opencore-amrwb)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static opencore-amrnb)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static opencore-amrwb)"
CONFIGURE_POSTFIX+=" --enable-libopencore-amrnb"
CONFIGURE_POSTFIX+=" --enable-libopencore-amrwb"
;;
opus)
FFMPEG_CFLAGS+=" $(pkg-config --cflags opus)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static opus)"
CONFIGURE_POSTFIX+=" --enable-libopus"
;;
shine)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags shine)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static shine)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags shine)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static shine)"
CONFIGURE_POSTFIX+=" --enable-libshine"
;;
snappy)
FFMPEG_CFLAGS+=" $(pkg-config --cflags snappy)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static snappy)"
CONFIGURE_POSTFIX+=" --enable-libsnappy"
;;
speex)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags speex)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static speex)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags speex)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static speex)"
CONFIGURE_POSTFIX+=" --enable-libspeex"
;;
wavpack)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags wavpack)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static wavpack)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags wavpack)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static wavpack)"
CONFIGURE_POSTFIX+=" --enable-libwavpack"
;;
x264)
FFMPEG_CFLAGS+=" $(pkg-config --cflags x264)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static x264)"
CONFIGURE_POSTFIX+=" --enable-libx264 --enable-gpl"
;;
xvidcore)
FFMPEG_CFLAGS+=" $(pkg-config --cflags xvidcore)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static xvidcore)"
CONFIGURE_POSTFIX+=" --enable-libxvid --enable-gpl"
;;
expat)
FFMPEG_CFLAGS+=" $(pkg-config --cflags expat)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static expat)"
;;
libogg)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags ogg)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static ogg)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags ogg)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static ogg)"
;;
libpng)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags libpng)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static libpng)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags libpng)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static libpng)"
;;
libuuid)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags uuid)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static uuid)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags uuid)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static uuid)"
;;
nettle)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags nettle)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static nettle)"
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags hogweed)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static hogweed)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags nettle)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static nettle)"
FFMPEG_CFLAGS+=" $(pkg-config --cflags hogweed)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static hogweed)"
;;
ios-zlib)
FFMPEG_CFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --cflags zlib)"
FFMPEG_LDFLAGS+=" $(${HOST_PKG_CONFIG_PATH} --libs --static zlib)"
CONFIGURE_POSTFIX+=" --enable-zlib"
ios-*)
# BUILT-IN LIBRARIES SHARE INCLUDE AND LIB DIRECTORIES
# INCLUDING ONLY ONE OF THEM IS ENOUGH
FFMPEG_CFLAGS+=" $(pkg-config --cflags zlib)"
FFMPEG_LDFLAGS+=" $(pkg-config --libs --static zlib)"
case ${ENABLED_LIBRARY} in
ios-zlib)
CONFIGURE_POSTFIX+=" --enable-zlib"
;;
ios-audiotoolbox)
CONFIGURE_POSTFIX+=" --enable-audiotoolbox"
;;
ios-coreimage)
CONFIGURE_POSTFIX+=" --enable-coreimage"
;;
ios-bzip2)
CONFIGURE_POSTFIX+=" --enable-bzlib"
;;
esac
;;
esac
else
if [[ ${library} -eq 26 ]]; then
# THE FOLLOWING LIBRARIES SHOULD BE EXPLICITLY DISABLED TO PREVENT AUTODETECT
if [[ ${library} -eq 8 ]]; then
CONFIGURE_POSTFIX+=" --disable-iconv"
elif [[ ${library} -eq 32 ]]; then
CONFIGURE_POSTFIX+=" --disable-zlib"
elif [[ ${library} -eq 33 ]]; then
CONFIGURE_POSTFIX+=" --disable-audiotoolbox"
elif [[ ${library} -eq 34 ]]; then
CONFIGURE_POSTFIX+=" --disable-coreimage"
elif [[ ${library} -eq 35 ]]; then
CONFIGURE_POSTFIX+=" --disable-bzlib"
fi
fi
done
# CFLAGS PARTS
ARCH_CFLAGS=$(get_arch_specific_cflags);
APP_CFLAGS=$(get_app_specific_cflags "ffmpeg");
APP_CFLAGS=$(get_app_specific_cflags ${LIB_NAME});
COMMON_CFLAGS=$(get_common_cflags);
OPTIMIZATION_CFLAGS=$(get_size_optimization_cflags "ffmpeg");
OPTIMIZATION_CFLAGS=$(get_size_optimization_cflags ${LIB_NAME});
MIN_VERSION_CFLAGS=$(get_min_version_cflags);
COMMON_INCLUDES=$(get_common_includes);
@@ -223,19 +279,18 @@ COMMON_LDFLAGS=$(get_common_ldflags);
# REORDERED FLAGS
CFLAGS="${ARCH_CFLAGS} ${APP_CFLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_CFLAGS} ${MIN_VERSION_CFLAGS} ${FFMPEG_CFLAGS} ${COMMON_INCLUDES}"
CXXFLAGS=$(get_cxxflags "ffmpeg")
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
LDFLAGS="${ARCH_LDFLAGS} ${FFMPEG_LDFLAGS} ${LINKED_LIBRARIES} ${COMMON_LDFLAGS}"
cd ${BASEDIR}/src/ffmpeg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
echo -n -e "\nffmpeg: "
echo -n -e "\n${LIB_NAME}: "
make distclean 2>/dev/null 1>/dev/null
./configure \
--sysroot=${SDK_PATH} \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/ffmpeg \
--pkg-config="${HOST_PKG_CONFIG_PATH}" \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--extra-cflags="${CFLAGS}" \
--extra-cxxflags="${CXXFLAGS}" \
--extra-ldflags="${LDFLAGS}" \
@@ -261,18 +316,36 @@ make distclean 2>/dev/null 1>/dev/null
--disable-xmm-clobber-test \
--disable-debug \
--disable-neon-clobber-test \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-videotoolbox \
--disable-programs \
--disable-postproc \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--disable-static \
--disable-jack \
--disable-sndio \
--disable-schannel \
--disable-sdl2 \
--disable-securetransport \
--disable-xlib \
--disable-cuda \
--disable-cuvid \
--disable-nvenc \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--disable-videotoolbox \
--disable-appkit \
--disable-alsa \
--disable-cuda \
--disable-cuvid \
--disable-nvenc \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--disable-videotoolbox \
${CONFIGURE_POSTFIX} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ $? -ne 0 ]; then
+18 -16
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,34 +29,36 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="fontconfig"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "fontconfig")
export CXXFLAGS=$(get_cxxflags "fontconfig")
export LDFLAGS=$(get_ldflags "fontconfig")
export PKG_CONFIG_PATH=${INSTALL_PKG_CONFIG_DIR}
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR=${INSTALL_PKG_CONFIG_DIR}
cd ${BASEDIR}/src/fontconfig || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_fontconfig} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/fontconfig \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-libiconv \
--with-libiconv-prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv \
--with-expat=${BASEDIR}/prebuilt/ios-$(get_target_host)/expat \
--without-libintl-prefix \
--enable-static \
--disable-shared \
--disable-fast-install \
--disable-rpath \
--enable-iconv \
--enable-libxml2 \
--disable-libxml2 \
--disable-docs \
--host=${TARGET_HOST} || exit 1
+21 -16
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,31 +29,36 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="freetype"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "freetype")
export CXXFLAGS=$(get_cxxflags "freetype")
export LDFLAGS=$(get_ldflags "freetype")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/freetype || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_freetype} -eq 1 ]]; then
autoreconf --force --install
fi
# OVERRIDING PKG-CONFIG
export LIBPNG_CFLAGS="-I${BASEDIR}/prebuilt/ios-$(get_target_host)/libpng/include"
export LIBPNG_LIBS="-L${BASEDIR}/prebuilt/ios-$(get_target_host)/libpng/lib"
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/freetype \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-zlib \
--with-png \
--with-sysroot=${SDK_PATH} \
--without-harfbuzz \
--without-bzip2 \
--without-fsref \
--without-quickdraw-toolbox \
--without-quickdraw-carbon \
--without-ats \
--enable-static \
--disable-shared \
--disable-fast-install \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,27 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="fribidi"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "fribidi")
export CXXFLAGS=$(get_cxxflags "fribidi")
export LDFLAGS=$(get_ldflags "fribidi")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/fribidi || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_fribidi} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/fribidi \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--without-glib \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,27 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="giflib"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "giflib")" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR"
export CXXFLAGS=$(get_cxxflags "giflib")
export LDFLAGS=$(get_ldflags "giflib")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR"
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/giflib || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_giflib} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/giflib \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+24 -14
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,7 +29,8 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="gmp"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
case ${ARCH} in
@@ -40,27 +41,36 @@ case ${ARCH} in
TARGET_HOST=$(get_target_host)
;;
esac
export CFLAGS=$(get_cflags "gmp")
export CXXFLAGS=$(get_cxxflags "gmp")
export LDFLAGS=$(get_ldflags "gmp")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/gmp || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_gmp} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
ASM_FLAGS=""
case ${ARCH} in
armv7 | armv7s | arm64)
ASM_FLAGS="--disable-assembly"
;;
i386 | x86-64)
ASM_FLAGS="--enable-assembly"
;;
esac
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
--disable-shared \
--disable-assembly \
${ASM_FLAGS} \
--disable-fast-install \
--disable-maintainer-mode \
--host=${TARGET_HOST} || exit 1
+22 -15
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,18 +29,25 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="gnutls"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
COMMON_CFLAGS=$(get_cflags "gnutls")
COMMON_CXXFLAGS=$(get_cxxflags "gnutls")
COMMON_LDFLAGS=$(get_ldflags "gnutls")
COMMON_CFLAGS=$(get_cflags ${LIB_NAME})
COMMON_CXXFLAGS=$(get_cxxflags ${LIB_NAME})
COMMON_LDFLAGS=$(get_ldflags ${LIB_NAME})
export CFLAGS="${COMMON_CFLAGS} -I${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv/include -I${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp/include"
export CFLAGS="${COMMON_CFLAGS} -I${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv/include"
export CXXFLAGS="${COMMON_CXXFLAGS}"
export LDFLAGS="${COMMON_LDFLAGS} -L${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv/lib -L${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp/lib"
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export LDFLAGS="${COMMON_LDFLAGS} -L${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv/lib"
export NETTLE_CFLAGS="-I${BASEDIR}/prebuilt/ios-$(get_target_host)/nettle/include"
export NETTLE_LIBS="-L${BASEDIR}/prebuilt/ios-$(get_target_host)/nettle/lib"
export HOGWEED_CFLAGS="-I${BASEDIR}/prebuilt/ios-$(get_target_host)/nettle/include"
export HOGWEED_LIBS="-L${BASEDIR}/prebuilt/ios-$(get_target_host)/nettle/lib"
export GMP_CFLAGS="-I${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp/include"
export GMP_LIBS="-L${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp/lib"
HARDWARE_ACCELERATION=""
case ${ARCH} in
@@ -57,17 +64,17 @@ case ${ARCH} in
;;
esac
cd ${BASEDIR}/src/gnutls || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_gnutls} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/gnutls \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--with-included-libtasn1 \
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="jpeg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "jpeg")
export CXXFLAGS=$(get_cxxflags "jpeg")
export LDFLAGS=$(get_ldflags "jpeg")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/jpeg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_jpeg} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/jpeg \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,7 +29,8 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="kvazaar"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
case ${ARCH} in
@@ -40,22 +41,22 @@ case ${ARCH} in
TARGET_HOST=$(get_target_host)
;;
esac
export CFLAGS=$(get_cflags "kvazaar")
export CXXFLAGS=$(get_cxxflags "kvazaar")
export LDFLAGS=$(get_ldflags "kvazaar")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/kvazaar || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_kvazaar} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/kvazaar \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,27 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="lame"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "lame")
export CXXFLAGS=$(get_cxxflags "lame")
export LDFLAGS=$(get_ldflags "lame")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/lame || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_lame} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/lame \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--with-libiconv-prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv \
+16 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,27 +29,30 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libass"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libass")
export CXXFLAGS=$(get_cxxflags "libass")
export LDFLAGS=$(get_ldflags "libass")
export PKG_CONFIG_PATH=${INSTALL_PKG_CONFIG_DIR}
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR=${INSTALL_PKG_CONFIG_DIR}
cd ${BASEDIR}/src/libass || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libass} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libass \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--disable-libtool-lock \
--enable-static \
--disable-shared \
--disable-harfbuzz \
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libiconv"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libiconv")
export CXXFLAGS=$(get_cxxflags "libiconv")
export LDFLAGS=$(get_ldflags "libiconv")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libiconv || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libiconv} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libiconv \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+64
View File
@@ -0,0 +1,64 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="libilbc"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libilbc} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
--disable-shared \
--disable-fast-install \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./libilbc.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+13 -12
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,25 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libogg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libogg")
export CXXFLAGS=$(get_cxxflags "libogg")
export LDFLAGS=$(get_ldflags "libogg")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libogg || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libogg} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libogg \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,14 +29,14 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libpng"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libpng")
export CXXFLAGS=$(get_cxxflags "libpng")
export LDFLAGS=$(get_ldflags "libpng")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
CPU_SPECIFIC_OPTIONS="--enable-hardware-optimizations"
case ${ARCH} in
@@ -48,17 +48,17 @@ case ${ARCH} in
;;
esac
cd ${BASEDIR}/src/libpng || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libpng} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libpng \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+16 -15
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,34 +29,35 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libtheora"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libtheora")
export CXXFLAGS=$(get_cxxflags "libtheora")
export LDFLAGS=$(get_ldflags "libtheora")
export PKG_CONFIG_PATH=${INSTALL_PKG_CONFIG_DIR}
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/libtheora || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libtheora} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libtheora \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--enable-static \
--disable-shared \
--disable-fast-install \
--disable-spec \
--disable-examples \
--disable-telemetry \
--enable-valgrind-testing \
--disable-sdltest \
--disable-valgrind-testing \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libuuid"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libuuid")
export CXXFLAGS=$(get_cxxflags "libuuid")
export LDFLAGS=$(get_ldflags "libuuid")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libuuid || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libuuid} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libuuid \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+13 -12
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,25 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libvorbis"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libvorbis")
export CXXFLAGS=$(get_cxxflags "libvorbis")
export LDFLAGS=$(get_ldflags "libvorbis")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libvorbis || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libvorbis} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libvorbis \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--with-ogg-includes=${BASEDIR}/prebuilt/ios-$(get_target_host)/libogg/include \
+26 -24
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,46 +29,49 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libvpx"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
export CFLAGS=$(get_cflags "libvpx")
export CXXFLAGS=$(get_cxxflags "libvpx")
export LDFLAGS=$(get_ldflags "libvpx")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
# note that --disable-runtime-cpu-detect is used for arm
# using --enable-runtime-cpu-detect cause the following error
# vpx_ports/arm_cpudetect.c:151:2: error: "--enable-runtime-cpu-detect selected, but no CPU detection method " "available for your platform. Reconfigure with --disable-runtime-cpu-detect."
TARGET=""
NEON=""
ASM_FLAGS=""
case ${ARCH} in
armv7 | armv7s)
NEON="--enable-neon --enable-neon-asm"
TARGET="$(get_target_arch)-darwin-gcc"
ASM_FLAGS="--disable-runtime-cpu-detect --enable-neon --enable-neon-asm"
;;
arm64)
NEON="--enable-neon"
TARGET="arm64-darwin-gcc"
# --enable-neon-asm option not added because it causes the following error
# vpx_dsp/arm/intrapred_neon_asm.asm.S:653:26: error: vector register expected
# vst1.64
ASM_FLAGS="--disable-runtime-cpu-detect --enable-neon"
;;
i386)
NEON="--disable-neon --disable-neon-asm"
TARGET="x86-iphonesimulator-gcc"
ASM_FLAGS="--enable-runtime-cpu-detect"
;;
x86-64)
NEON="--disable-neon --disable-neon-asm"
TARGET="x86_64-iphonesimulator-gcc"
ASM_FLAGS="--enable-runtime-cpu-detect"
;;
esac
cd ${BASEDIR}/src/libvpx || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libvpx} -eq 1 ]]; then
autoreconf --force --install
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libvpx \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--target="${TARGET}" \
--extra-cflags="${CFLAGS}" \
--extra-cxxflags="${CXXFLAGS}" \
@@ -79,8 +82,7 @@ fi
--enable-pic \
--enable-optimizations \
--enable-better-hw-compatibility \
--disable-runtime-cpu-detect \
${NEON} \
${ASM_FLAGS} \
--enable-vp8 \
--enable-vp9 \
--enable-multithread \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,19 +29,19 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libwebp"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
CFLAGS=$(get_cflags "libwebp")
CXXFLAGS=$(get_cxxflags "libwebp")
LDFLAGS=$(get_ldflags "libwebp")
PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
CFLAGS=$(get_cflags ${LIB_NAME})
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/libwebp || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
if [ -d "build" ]; then
rm -rf build;
rm -rf build
fi
mkdir build;
@@ -55,11 +55,12 @@ cmake -Wno-dev \
-DCMAKE_SYSROOT="${SDK_PATH}" \
-DCMAKE_FIND_ROOT_PATH="${SDK_PATH}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/ios-$(get_target_host)/libwebp" \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME}" \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_C_COMPILER="$CC" \
-DCMAKE_LINKER="$LD" \
-DCMAKE_AR="$AR" \
-DCMAKE_AS="$AS" \
-DGIF_INCLUDE_DIR="${BASEDIR}/prebuilt/ios-$(get_target_host)/giflib/include" \
-DGIF_LIBRARY="${BASEDIR}/prebuilt/ios-$(get_target_host)/giflib/lib" \
-DJPEG_INCLUDE_DIR="${BASEDIR}/prebuilt/ios-$(get_target_host)/jpeg/include" \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,27 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="libxml2"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "libxml2")
export CXXFLAGS=$(get_cxxflags "libxml2")
export LDFLAGS=$(get_ldflags "libxml2")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/src/libxml2 || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_libxml2} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/libxml2 \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--with-zlib \
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,31 +29,32 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="mobile-ffmpeg"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
COMMON_CFLAGS=$(get_cflags "mobile-ffmpeg")
COMMON_LDFLAGS=$(get_ldflags "mobile-ffmpeg")
COMMON_CFLAGS=$(get_cflags ${LIB_NAME})
COMMON_LDFLAGS=$(get_ldflags ${LIB_NAME})
export CFLAGS="${COMMON_CFLAGS} -I${BASEDIR}/prebuilt/ios-$(get_target_host)/ffmpeg/include"
export CXXFLAGS=$(get_cxxflags "mobile-ffmpeg")
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS="${COMMON_LDFLAGS} -L${BASEDIR}/prebuilt/ios-$(get_target_host)/ffmpeg/lib"
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
cd ${BASEDIR}/ios || exit 1
echo -n -e "\nmobile-ffmpeg: "
echo -n -e "\n${LIB_NAME}: "
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_mobile_ffmpeg} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/mobile-ffmpeg \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-shared \
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,14 +29,14 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="nettle"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "nettle")
export CXXFLAGS=$(get_cxxflags "nettle")
export LDFLAGS=$(get_ldflags "nettle")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
OPTIONAL_CPU_SUPPORT=""
case ${ARCH} in
@@ -48,17 +48,17 @@ case ${ARCH} in
;;
esac
cd ${BASEDIR}/src/nettle || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_nettle} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/nettle \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--enable-pic \
--enable-static \
--with-include-path=${BASEDIR}/prebuilt/ios-$(get_target_host)/gmp/include \
+13 -12
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,13 +29,14 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="opencore-amr"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "opencore-amr")
export CXXFLAGS=$(get_cxxflags "opencore-amr")
export LDFLAGS=$(get_ldflags "opencore-amr")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
# OVERRIDE CXX
case ${ARCH} in
@@ -47,17 +48,17 @@ case ${ARCH} in
;;
esac
cd ${BASEDIR}/src/opencore-amr || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_opencore_amr} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/opencore-amr \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+72
View File
@@ -0,0 +1,72 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="opus"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_opus} -eq 1 ]]; then
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
--enable-rtcd \
--enable-asm \
--enable-check-asm \
--enable-custom-modes \
--disable-shared \
--disable-fast-install \
--disable-maintainer-mode \
--disable-doc \
--disable-extra-programs \
--disable-ambisonics \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp ./opus.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="shine"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "shine")
export CXXFLAGS=$(get_cxxflags "shine")
export LDFLAGS=$(get_ldflags "shine")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/shine || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_shine} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/shine \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+76
View File
@@ -0,0 +1,76 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="snappy"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
CFLAGS="$(get_cflags ${LIB_NAME}) -I${SDK_PATH}/usr/include"
CXXFLAGS="$(get_cxxflags ${LIB_NAME})"
LDFLAGS="$(get_ldflags ${LIB_NAME}) -L${SDK_PATH}/usr/lib"
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
if [ -d "build" ]; then
rm -rf build
fi
mkdir build;
cd build
cmake -Wno-dev \
-DCMAKE_VERBOSE_MAKEFILE=0 \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SYSROOT="${SDK_PATH}" \
-DCMAKE_FIND_ROOT_PATH="${SDK_PATH}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME}" \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_CXX_COMPILER="$CXX" \
-DCMAKE_C_COMPILER="$CC" \
-DCMAKE_LINKER="$LD" \
-DCMAKE_AR="$AR" \
-DCMAKE_AS="$AS" \
-DSNAPPY_BUILD_TESTS=0 \
-DHAVE_LIBLZO2=0 \
-DHAVE_LIBZ=1 \
-DCMAKE_SYSTEM_PROCESSOR=$(get_target_arch) \
-DBUILD_SHARED_LIBS=0 .. || exit 1
make -j$(get_cpu_count) || exit 1
# CREATE PACKAGE CONFIG MANUALLY
create_snappy_package_config "1.1.7"
make install || exit 1
+14 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,31 +29,32 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="speex"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "speex")
export CXXFLAGS=$(get_cxxflags "speex")
export LDFLAGS=$(get_ldflags "speex")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"
OPTIONAL_CPU_SUPPORT=""
if [ ${ARCH} == "x86" ] || [ ${ARCH} == "x86-64" ]; then
OPTIONAL_CPU_SUPPORT="--enable-sse"
fi
cd ${BASEDIR}/src/speex || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_speex} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/speex \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--enable-static \
+13 -14
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,27 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="tiff"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "tiff")
export CXXFLAGS=$(get_cxxflags "tiff")
export LDFLAGS=$(get_ldflags "tiff")
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
echo "LDFLAGS is $LDFLAGS"
cd ${BASEDIR}/src/tiff || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_tiff} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/tiff \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--with-jpeg-include-dir=${BASEDIR}/prebuilt/ios-$(get_target_host)/jpeg/include \
+13 -13
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -29,26 +29,26 @@ fi
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
set_toolchain_clang_paths
LIB_NAME="wavpack"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags "wavpack")
export CXXFLAGS=$(get_cxxflags "wavpack")
export LDFLAGS=$(get_ldflags "wavpack")
export PKG_CONFIG_PATH="${INSTALL_PKG_CONFIG_DIR}"
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/wavpack || exit 1
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_wavpack} -eq 1 ]]; then
autoreconf --force --install
autoreconf_library ${LIB_NAME}
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/wavpack \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--with-pic \
--with-sysroot=${SDK_PATH} \
--without-iconv \
+76
View File
@@ -0,0 +1,76 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
if ! [ -x "$(command -v tar)" ]; then
echo -e "(*) tar command not found\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="x264"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME} || exit 1
make distclean 2>/dev/null 1>/dev/null
ASM_FLAGS=""
case ${ARCH} in
i386 |x86-64)
if ! [ -x "$(command -v nasm)" ]; then
echo -e "(*) nasm command not found\n"
exit 1
fi
export AS="$(command -v nasm)"
;;
esac
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--enable-pic \
--sysroot=${SDK_PATH} \
--enable-static \
--disable-cli \
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# MANUALLY COPY PKG-CONFIG FILES
cp x264.pc ${INSTALL_PKG_CONFIG_DIR}
make install || exit 1
+62
View File
@@ -0,0 +1,62 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
# ENABLE COMMON FUNCTIONS
. ${BASEDIR}/build/ios-common.sh
# PREPARING PATHS & DEFINING ${INSTALL_PKG_CONFIG_DIR}
LIB_NAME="xvidcore"
set_toolchain_clang_paths ${LIB_NAME}
# PREPARING FLAGS
TARGET_HOST=$(get_target_host)
export CFLAGS=$(get_cflags ${LIB_NAME})
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS=$(get_ldflags ${LIB_NAME})
cd ${BASEDIR}/src/${LIB_NAME}/build/generic || exit 1
make distclean 2>/dev/null 1>/dev/null
# RECONFIGURING IF REQUESTED
if [[ ${RECONF_xvidcore} -eq 1 ]]; then
./bootstrap.sh
fi
./configure \
--prefix=${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME} \
--host=${TARGET_HOST} || exit 1
make -j$(get_cpu_count) || exit 1
# CREATE PACKAGE CONFIG MANUALLY
create_xvidcore_package_config "1.3.5"
make install || exit 1
# REMOVE DYNAMIC LIBS
rm -f ${BASEDIR}/prebuilt/ios-$(get_target_host)/${LIB_NAME}/lib/libxvidcore.dylib*
+51 -34
View File
@@ -1,22 +1,22 @@
#!/bin/bash
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
echo "ANDROID_NDK_ROOT not defined"
echo -e "(*) ANDROID_NDK_ROOT not defined\n"
exit 1
fi
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${API} ]]; then
echo "API not defined"
echo -e "(*) API not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -27,18 +27,16 @@ echo -e "\nBuilding ${ARCH} platform on API level ${API}\n"
echo -e "\nINFO: Starting new build for ${ARCH} on API level ${API} at "$(date)"\n">> ${BASEDIR}/build.log
INSTALL_BASE="${BASEDIR}/prebuilt/android-$(get_target_build)"
# CLEANING EXISTING PACKAGE CONFIG DIRECTORY
# CREATING PACKAGE CONFIG DIRECTORY
PKG_CONFIG_DIRECTORY="${INSTALL_BASE}/pkgconfig"
if [ -d ${PKG_CONFIG_DIRECTORY} ]; then
cd ${PKG_CONFIG_DIRECTORY} || exit 1
rm -f *.pc || exit 1
else
if [ ! -d ${PKG_CONFIG_DIRECTORY} ]; then
mkdir -p ${PKG_CONFIG_DIRECTORY} || exit 1
fi
# BUILDING EXTERNAL LIBRARIES
# FILTERING WHICH EXTERNAL LIBRARIES WILL BE BUILT
# NOTE THAT BUILT-IN LIBRARIES ARE FORWARDED TO FFMPEG SCRIPT WITHOUT ANY PROCESSING
enabled_library_list=()
for library in {1..25}
for library in {1..31}
do
if [[ ${!library} -eq 1 ]]; then
ENABLED_LIBRARY=$(get_library_name $((library - 1)))
@@ -48,6 +46,9 @@ do
fi
done
# BUILD CPU-FEATURES FIRST
build_cpufeatures
let completed=0
while [ ${#enabled_library_list[@]} -gt $completed ]; do
for library in "${enabled_library_list[@]}"
@@ -55,7 +56,7 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
let run=0
case $library in
fontconfig)
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_libxml2 ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]]; then
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_expat ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]]; then
run=1
fi
;;
@@ -75,7 +76,7 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
fi
;;
libass)
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_libxml2 ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]] && [[ ! -z $OK_fribidi ]] && [[ ! -z $OK_fontconfig ]]; then
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_expat ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]] && [[ ! -z $OK_fribidi ]] && [[ ! -z $OK_fontconfig ]]; then
run=1
fi
;;
@@ -104,39 +105,55 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
;;
esac
CONTROL=$(echo "OK_${library}" | sed "s/\-/\_/g")
BUILD_COMPLETED_FLAG=$(echo "OK_${library}" | sed "s/\-/\_/g")
REBUILD_FLAG=$(echo "REBUILD_${library}" | sed "s/\-/\_/g")
if [ $run -eq 1 ] && [[ -z ${!CONTROL} ]]; then
if [ $run -eq 1 ] && [[ -z ${!BUILD_COMPLETED_FLAG} ]]; then
ENABLED_LIBRARY_PATH="${INSTALL_BASE}/${library}"
echo -e "\nINFO: Building $library with the following environment variables\n" >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------" >> ${BASEDIR}/build.log
env >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
LIBRARY_IS_INSTALLED=$(library_is_installed ${INSTALL_BASE} ${library})
echo -n "${library}: "
echo -e "INFO: Flags detected for ${library}: already installed=${LIBRARY_IS_INSTALLED}, rebuild=${!REBUILD_FLAG}\n" >> ${BASEDIR}/build.log
if [ -d ${ENABLED_LIBRARY_PATH} ]; then
rm -rf ${INSTALL_BASE}/${library} || exit 1
fi
# DECIDE TO BUILD OR NOT
if [[ ${LIBRARY_IS_INSTALLED} -ne 0 ]] || [[ ${!REBUILD_FLAG} -eq 1 ]]; then
SCRIPT_PATH="${BASEDIR}/build/android-${library}.sh"
echo -e "----------------------------------------------------------------" >> ${BASEDIR}/build.log
echo -e "\nINFO: Building $library with the following environment variables\n" >> ${BASEDIR}/build.log
env >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
echo -e "INFO: System information\n" >> ${BASEDIR}/build.log
uname -a >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
cd ${BASEDIR}
echo -n "${library}: "
# BUILD EACH LIBRARY ALONE FIRST
${SCRIPT_PATH} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ -d ${ENABLED_LIBRARY_PATH} ]; then
rm -rf ${INSTALL_BASE}/${library} || exit 1
fi
if [ $? -eq 0 ]; then
(( completed+=1 ))
declare "$CONTROL=1"
echo "ok"
SCRIPT_PATH="${BASEDIR}/build/android-${library}.sh"
cd ${BASEDIR}
# BUILD EACH LIBRARY ALONE FIRST
${SCRIPT_PATH} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ $? -eq 0 ]; then
(( completed+=1 ))
declare "$BUILD_COMPLETED_FLAG=1"
echo "ok"
else
echo "failed"
exit 1
fi
else
echo "failed"
exit 1
(( completed+=1 ))
declare "$BUILD_COMPLETED_FLAG=1"
echo "${library}: already built"
fi
else
echo -e "\nINFO: Skipping $library, run=$run, completed=${!CONTROL}\n" >> ${BASEDIR}/build.log
echo -e "INFO: Skipping $library, run=$run, completed=${!BUILD_COMPLETED_FLAG}\n" >> ${BASEDIR}/build.log
fi
done
done
+49 -35
View File
@@ -1,27 +1,27 @@
#!/bin/bash
if [[ -z ${ARCH} ]]; then
echo "ARCH not defined"
echo -e "(*) ARCH not defined\n"
exit 1
fi
if [[ -z ${IOS_MIN_VERSION} ]]; then
echo "IOS_MIN_VERSION not defined"
echo -e "(*) IOS_MIN_VERSION not defined\n"
exit 1
fi
if [[ -z ${TARGET_SDK} ]]; then
echo "TARGET_SDK not defined"
echo -e "(*) TARGET_SDK not defined\n"
exit 1
fi
if [[ -z ${SDK_PATH} ]]; then
echo "SDK_PATH not defined"
echo -e "(*) SDK_PATH not defined\n"
exit 1
fi
if [[ -z ${BASEDIR} ]]; then
echo "BASEDIR not defined"
echo -e "(*) BASEDIR not defined\n"
exit 1
fi
@@ -32,18 +32,16 @@ echo -e "\nBuilding ${ARCH} platform\n"
echo -e "\nINFO: Starting new build for ${ARCH} at "$(date)"\n">> ${BASEDIR}/build.log
INSTALL_BASE="${BASEDIR}/prebuilt/ios-$(get_target_host)"
# CLEANING EXISTING PACKAGE CONFIG DIRECTORY
# CREATING PACKAGE CONFIG DIRECTORY
PKG_CONFIG_DIRECTORY="${INSTALL_BASE}/pkgconfig"
if [ -d ${PKG_CONFIG_DIRECTORY} ]; then
cd ${PKG_CONFIG_DIRECTORY} || exit 1
rm -f *.pc || exit 1
else
if [ ! -d ${PKG_CONFIG_DIRECTORY} ]; then
mkdir -p ${PKG_CONFIG_DIRECTORY} || exit 1
fi
# BUILDING EXTERNAL LIBRARIES
# FILTERING WHICH EXTERNAL LIBRARIES WILL BE BUILT
# NOTE THAT BUILT-IN LIBRARIES ARE FORWARDED TO FFMPEG SCRIPT WITHOUT ANY PROCESSING
enabled_library_list=()
for library in {1..25}
for library in {1..31}
do
if [[ ${!library} -eq 1 ]]; then
ENABLED_LIBRARY=$(get_library_name $((library - 1)))
@@ -60,7 +58,7 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
let run=0
case $library in
fontconfig)
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_libxml2 ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]]; then
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_expat ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]]; then
run=1
fi
;;
@@ -80,7 +78,7 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
fi
;;
libass)
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_libxml2 ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]] && [[ ! -z $OK_fribidi ]] && [[ ! -z $OK_fontconfig ]]; then
if [[ ! -z $OK_libuuid ]] && [[ ! -z $OK_expat ]] && [[ ! -z $OK_libiconv ]] && [[ ! -z $OK_freetype ]] && [[ ! -z $OK_fribidi ]] && [[ ! -z $OK_fontconfig ]]; then
run=1
fi
;;
@@ -109,39 +107,55 @@ while [ ${#enabled_library_list[@]} -gt $completed ]; do
;;
esac
CONTROL=$(echo "OK_${library}" | sed "s/\-/\_/g")
BUILD_COMPLETED_FLAG=$(echo "OK_${library}" | sed "s/\-/\_/g")
REBUILD_FLAG=$(echo "REBUILD_${library}" | sed "s/\-/\_/g")
if [ $run -eq 1 ] && [[ -z ${!CONTROL} ]]; then
if [ $run -eq 1 ] && [[ -z ${!BUILD_COMPLETED_FLAG} ]]; then
ENABLED_LIBRARY_PATH="${INSTALL_BASE}/${library}"
echo -e "\nINFO: Building $library with the following environment variables\n" >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------" >> ${BASEDIR}/build.log
env >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
LIBRARY_IS_INSTALLED=$(library_is_installed ${INSTALL_BASE} ${library})
echo -n "${library}: "
echo -e "INFO: Flags detected for ${library}: already installed=${LIBRARY_IS_INSTALLED}, rebuild=${!REBUILD_FLAG}\n" >> ${BASEDIR}/build.log
if [ -d ${ENABLED_LIBRARY_PATH} ]; then
rm -rf ${INSTALL_BASE}/${library} || exit 1
fi
# DECIDE TO BUILD OR NOT
if [[ ${LIBRARY_IS_INSTALLED} -ne 0 ]] || [[ ${!REBUILD_FLAG} -eq 1 ]]; then
SCRIPT_PATH="${BASEDIR}/build/ios-${library}.sh"
echo -e "----------------------------------------------------------------" >> ${BASEDIR}/build.log
echo -e "\nINFO: Building $library with the following environment variables\n" >> ${BASEDIR}/build.log
env >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
echo -e "INFO: System information\n" >> ${BASEDIR}/build.log
uname -a >> ${BASEDIR}/build.log
echo -e "----------------------------------------------------------------\n" >> ${BASEDIR}/build.log
cd ${BASEDIR}
echo -n "${library}: "
# BUILD EACH LIBRARY ALONE FIRST
${SCRIPT_PATH} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ -d ${ENABLED_LIBRARY_PATH} ]; then
rm -rf ${INSTALL_BASE}/${library} || exit 1
fi
if [ $? -eq 0 ]; then
(( completed+=1 ))
declare "$CONTROL=1"
echo "ok"
SCRIPT_PATH="${BASEDIR}/build/ios-${library}.sh"
cd ${BASEDIR}
# BUILD EACH LIBRARY ALONE FIRST
${SCRIPT_PATH} 1>>${BASEDIR}/build.log 2>>${BASEDIR}/build.log
if [ $? -eq 0 ]; then
(( completed+=1 ))
declare "$BUILD_COMPLETED_FLAG=1"
echo "ok"
else
echo "failed"
exit 1
fi
else
echo "failed"
exit 1
(( completed+=1 ))
declare "$BUILD_COMPLETED_FLAG=1"
echo "${library}: already built"
fi
else
echo -e "\nINFO: Skipping $library, run=$run, completed=${!CONTROL}\n" >> ${BASEDIR}/build.log
echo -e "INFO: Skipping $library, run=$run, completed=${!BUILD_COMPLETED_FLAG}\n" >> ${BASEDIR}/build.log
fi
done
done
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -257,7 +257,7 @@ Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -71,7 +71,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -299,7 +299,7 @@ Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -71,7 +71,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -438,7 +438,7 @@ Variables</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -84,7 +84,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -74,7 +74,7 @@ $(function() {
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab40bb25ef4ec0f35c70e84dbad36cfc2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/da5/mobileffmpeg_8h.html#ab40bb25ef4ec0f35c70e84dbad36cfc2">MOBILE_FFMPEG_VERSION</a>&#160;&#160;&#160;&quot;1.0&quot;</td></tr>
<tr class="memitem:ab40bb25ef4ec0f35c70e84dbad36cfc2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/da5/mobileffmpeg_8h.html#ab40bb25ef4ec0f35c70e84dbad36cfc2">MOBILE_FFMPEG_VERSION</a>&#160;&#160;&#160;&quot;1.1&quot;</td></tr>
<tr class="separator:ab40bb25ef4ec0f35c70e84dbad36cfc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
@@ -94,7 +94,7 @@ Functions</h2></td></tr>
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MOBILE_FFMPEG_VERSION&#160;&#160;&#160;&quot;1.0&quot;</td>
<td class="memname">#define MOBILE_FFMPEG_VERSION&#160;&#160;&#160;&quot;1.1&quot;</td>
</tr>
</table>
</div><div class="memdoc">
@@ -232,7 +232,7 @@ Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
File diff suppressed because one or more lines are too long
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -204,7 +204,7 @@ Variables</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -82,7 +82,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -326,7 +326,7 @@ Variables</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -80,7 +80,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -97,7 +97,7 @@ Variables</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -70,7 +70,7 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -80,7 +80,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -213,7 +213,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:53 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -109,7 +109,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:53 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -102,7 +102,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:53 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -106,7 +106,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:53 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg Android API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -69,7 +69,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:58 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:52 for MobileFFmpeg Android API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
+22 -18
View File
@@ -1,15 +1,16 @@
---
layout: default
---
MobileFFmpeg aims to provide FFmpeg on both mobile platforms with support for shared libraries without GPL restrictions.
MobileFFmpeg aims to provide FFmpeg on both mobile platforms with support for shared libraries including LGPL and GPL building options.
### 1. Features
- Builds both Android and IOS
- Supports 18 external libraries and 10 architectures in total
- Includes build scripts and prebuilt libraries for both Android and IOS
- Supports 21 external libraries, 2 GPL libraries and 10 architectures in total
- Exposes FFmpeg capabilities both directly from FFmpeg libraries and through MobileFFmpeg wrapper library
- Includes cross-compile instructions for 32 open-source libraries including FFmpeg
- Creates Android archive with .aar extension
- Creates IOS dynamic universal (fat) library
- Creates IOS dynamic framework for IOS 8 or later
- Licensed under LGPL 3.0
- Licensed under LGPL 3.0, can be customized to support GPL v3.0
### 2. Architectures
- Android arm-v7a
@@ -24,29 +25,34 @@ MobileFFmpeg aims to provide FFmpeg on both mobile platforms with support for sh
- IOS x86_64
### 3. FFmpeg Support
Latest release (v1.0) of this project contains FFmpeg version 3.4.2 with support for the following external libraries.
Latest release (v1.1) of this project contains FFmpeg version 3.4.2 with support for the following external libraries.
- fontconfig
- freetype
- fribidi
- gmp
- gnutls
- kvazaar
- libiconv
- lame
- libass
- libiconv
- libilbc
- libtheora
- libvorbis
- libvpx
- libwebp
- libxml2
- opencore-amr
- opus
- shine
- snappy
- speex
- wavpack
- x264
- xvidcore
### 4. Using
#### 4.1 Android
Import `mobile-ffmpeg-1.0.aar` into your project and use the following source code.
Import `mobile-ffmpeg-1.1.aar` into your project and use the following source code.
```
import com.arthenica.mobileffmpeg.FFmpeg;
@@ -81,7 +87,7 @@ Then run the following Objective-C source code.
1. Use your package manager (apt, yum, dnf, brew, etc.) to install the following packages.
```
autoconf automake libtool pkg-config gcc cmake gperf yasm texinfo
autoconf automake libtool pkg-config curl cmake gcc gperf texinfo yasm nasm
```
2. Android builds require these additional packages.
@@ -93,7 +99,7 @@ Then run the following Objective-C source code.
- **IOS SDK 7.0.x** or later
- **Xcode 8.x** or later
- **Command Line Tools**
- **curl** and **lipo** utilities
- **lipo** utility
#### 5.2 Build Scripts
Use `android.sh` and `ios.sh` to build MobileFFmpeg for each platform.
@@ -108,20 +114,18 @@ export ANDROID_NDK_ROOT=<Android NDK Path>
```
./ios.sh
```
#### 5.3 GPL Support
From `v1.1` onwards it is possible to enable to GPL libraries `x264` and `xvidcore` from top level build scripts.
Their source code is not included in the repository and downloaded when enabled.
### 6. API
### 6. Documentation
Below you can find documentation for all APIs exposed.
[Android API](https://tanersener.github.io/mobile-ffmpeg/android/javadoc)
[Android Native API](https://tanersener.github.io/mobile-ffmpeg/ios/html)
[IOS API](https://tanersener.github.io/mobile-ffmpeg/android/doc/html)
A more detailed documentation is available at [Wiki](https://github.com/tanersener/mobile-ffmpeg/wiki).
### 7. License
This project is licensed under the LGPL v3.0.
This project is licensed under the LGPL v3.0. However, if source code is built using optional `--enable-gpl` flag or
prebuilt binaries with `-gpl` postfix are used then MobileFFmpeg is subject to the GPL v3.0 license.
Source code of FFmpeg and external libraries is included in compliance with their individual licenses.
+2 -2
View File
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MobileFFmpeg IOS API
&#160;<span id="projectnumber">1.0</span>
&#160;<span id="projectnumber">1.1</span>
</div>
</td>
</tr>
@@ -102,7 +102,7 @@ Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jun 3 2018 20:35:53 for MobileFFmpeg IOS API by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Fri Jun 15 2018 21:21:51 for MobileFFmpeg IOS API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>

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