History log of /ndk/build/tools/package.py
Revision Date Author Comments
93b6f97ab71cac5bea372a38be4e2f25384cb0bb 02-Feb-2016 Dan Albert <danalbert@google.com> Add source.properties file for the SDK manager.

Change-Id: Ifcb1c8181d72dc35f09ceca77b5be0b6dee57b91
cb15bb82985e825169669c8625f342dd125bac2d 27-Jan-2016 Dan Albert <danalbert@google.com> Unpack modules to a known location when packaging.

If we extract the modules to a known location we can reuse the
directory for testing. This cuts the final unpack out of our build ->
package -> unpack -> repack -> unpack -> test process.

Change-Id: I254c4dc4f13d70d881fe98cc418eb333ba1e6d7d
35a7b70856064b3331c0d1323891b1065e814e1b 21-Jan-2016 Dan Albert <danalbert@google.com> Remove the redundant binutils and gcclibs.

Since we're not ready for the modular layout yet, we don't need to
ship these components separately as they are already in the GCC
package. Remove them to save some space.

Change-Id: Idaa0f53dcbb98f99af8340365598cee409c42c9b
7528fef948b58069a5f81f1b1cb5b362af93f7ed 12-Jan-2016 Dan Albert <danalbert@google.com> Differentiate OUT_DIR and DIST_DIR.

DIST_DIR is archived on the build server, so we don't want to be
putting everything in there.

Also, this lays the groundwork for us to remove the build -> pack ->
unpack -> repack -> unpack -> test workflow that we currently have
and replace it with build -> test -> pack, since we can install
things to their proper locations, test them where they are, and then
package it directly.

Change-Id: I37529b5f564d82ba0e8b126d9fd44b4b148c1478
9dd492a31a544a82a736c7bdfdf909a4ecf0cead 08-Jan-2016 Dan Albert <danalbert@google.com> Make packages without NOTICE files an error.

Bug: http://b/25592257
Change-Id: Ib3ba0e926f2e127d9f2fe3ed0e01f1e584b22525
c26cd6ae6ef560155c20c5110e000f33516335b5 08-Jan-2016 Dan Albert <danalbert@google.com> Warn if there is not a NOTICE file in a package.

Bug: http://b/25592257
Change-Id: I8c607da4fa2badd08ae7fce3c57d767e15075009
7b6d965a213e6597a4210458e5c0a19ad27ea36e 19-Dec-2015 Dan Albert <danalbert@google.com> Restore the old package layout.

We haven't been able to finalize a new package layout, and we don't
want to change it twice. Restore the old layout until we can figure
out the new one.

Change-Id: I3082a0354b5f1f34456ba3a769b37257484e5f45
695f178d9b6739dd8de4443cba559c32ccd845b0 17-Dec-2015 Dan Albert <danalbert@google.com> Switch all modules from tarballs to zipfiles.

The SDK manager doesn't speak tar. This should also speed up the
package validation step of package.py (since it isn't reading the
files but is just interested in the TOC). It will, however, increase
the size of each module. We're still building the final monolithic
package as a tarball for Linux and Darwin though, so the largest
download will still be the same size.

Bug: http://b/26237669
Change-Id: I967d0b60f4132c864726c2e88f0f52a012b03909
7b3a5add39b9998a3cd120f6af4603091c3f9400 17-Dec-2015 Dan Albert <danalbert@google.com> Make old style packages fail instead of warning.

There aren't any more of these, but we'll leave the error in place for
a while in case we botch a revert.

Bug: http://b/26235995
Change-Id: I0ea97863b93eb0419e8ffe49813587186e547bb7
89bbcdc29bc3e7ef738823af6bab3ca3357479fb 17-Dec-2015 Dan Albert <danalbert@google.com> Fix the libc++ and stlport packages.

These two packages actually needed to be split into six to fit the
modules model, since they had multiple "top level" directories. We now
have:

* gabixx
* libandroid_support
* libcxx
* libcxxabi
* stlport
* system-stl

Bug: http://b/26235995
Change-Id: Icaaa0b090996a066cd3243c924f464e95097102d
20fe3a6f4433ee4a2130f51224897f5d98baaace 17-Dec-2015 Dan Albert <danalbert@google.com> Fix gnustl package.

Bug: http://b/26235995
Change-Id: I242c4e01a899c7cc08d96af759a6ae09fb5c1709
b1186a336cbb8d60ad416d726347cc2ec872b0c3 17-Dec-2015 Dan Albert <danalbert@google.com> Fix gdbserver package.

Bug: http://b/26235995
Change-Id: Idc4f397d70bcc2530c4fbcff57a07144d2ebaad1
28f4913bfeba3a7737c95dd3d345a31f63b4f756 17-Dec-2015 Dan Albert <danalbert@google.com> Remove layout from GCC package.

Bug: http://b/26235995
Change-Id: Ie40713de62c923a953297b7b8f6748af35c3977a
2928df9030bce4f3ad2ad1f49740db49903c067c 17-Dec-2015 Dan Albert <danalbert@google.com> Fix make_package to build a new style package.

Bug: http://b/26235995
Change-Id: Ie00877190023f0e6ef686f80573ba105325a01f1
c9ee555446a28c681f9bdc626ad1571ea1f18acc 17-Dec-2015 Dan Albert <danalbert@google.com> Remove package structure from clang package.

Bug: http://b/26235995
Change-Id: I7388546de80251078977839cbcedace84ffca4c6
38793bacc5dc57f341595767f15c62996e568546 17-Dec-2015 Dan Albert <danalbert@google.com> Strip package layout information from platforms.

This makes the platforms packages the first of the new style packages.

Bug: http://b/26235995
Change-Id: Iee3f09f6f776eeb6291600138340d5910cca140f
bde1eb1da0cc75d25f4e3c049620b7a33f62d841 17-Dec-2015 Dan Albert <danalbert@google.com> Fix "triple" expansion in package.py.

Change-Id: Ib54c3606ba0d72b070910c68a9ce1241ee43e58b
4828e3681aaa4103582d5db5159ece3967d3f41c 17-Dec-2015 Dan Albert <danalbert@google.com> Add support for specifying package install paths.

We want to strip package layout information from the modules so they
can be installed anywhere (and the SDK manager expects this). This
allows us to make that change and control package layout entirely from
package.py.

Bug: http://b/26235995
Change-Id: I7c193378f1784b6f0052fdf8ead32b468aa166b3
329ffa46d5dc293d20cc833a43211ee6e5acbd00 17-Dec-2015 Dan Albert <danalbert@google.com> Make one platform package per API level.

The NDK is getting huge, and the reason is that the platforms/
directory is growing without bound. We're making the assumption that
most users don't care about having *every* platform installed, since
they probably are only targeting one, maybe two.

This split is the first step of making it possible to skip installing
some.

Bug: http://b/25954102
Change-Id: Ib5c5fbbceffb30942b9c51ba7cd28cdb10abe13b
b31e211f46e2070a1c3b9551e372b32a019b6c66 12-Dec-2015 Dan Albert <danalbert@google.com> Copy the changelog into the final package.

Change-Id: I21e3323ecde1b433d0f4e399ee7ea9ff910d32c3
3d2acb7ed92e974aa1f88dd37268ce25bf0741e5 09-Dec-2015 Dan Albert <danalbert@google.com> Properly forward arguments to ndk-build.

When running $NDK/ndk-build APP_CFLAGS="-foo -bar", the ndk-build
shortcut would not forward the quoted args to the real ndk-build,
resulting in `APP_CFLAGS=-foo -bar`, where `-bar` were actually passed
directly to make.

Change-Id: Ic4e6f8c305855b6bc224598a7ee7078550ed3a76
e78fb69047e4d1ffa2d4c2b41c630311ca15fe68 05-Dec-2015 Dan Albert <danalbert@google.com> Stop packaging tests.

Now that we can run the tests against an arbitrary NDK install,
there's not much reason to include it in the package.

Change-Id: I694c9687e9eaa4411ce967cfde9968a639788ca1
8cb89adf86d8070f89868cec0987fbe87df6f0e4 25-Nov-2015 Dan Albert <danalbert@google.com> Remove the clang version number from the package.

This is going to be changing fairly often. We already have version
info in the directory (AndroidVersion.txt), so there's no sense
maintaining this.

Bug: http://b/25782259
Change-Id: Ieec105bfe08701d61871a213abb16741bcaa96f8
a124257903f0872f30f202ed46e9a7b08b4aad96 24-Nov-2015 Dan Albert <danalbert@google.com> Package the NDK as a zip for Windows.

Zip will automatically un-symlink all the symlinks, which is needed
for Windows.

Note this is actually just fixing a regression from the switch to
package.py.

Change-Id: I4deb3aad1e7d4fe4ac27ad082238cf41fa9f6aa8
9fdbf603901800f30be00720e1250462e0a36d7f 24-Nov-2015 Dan Albert <danalbert@google.com> Make the shortcuts to ndk-build for --unpack too.

When building a full multiarch NDK, the steps of packing and then
unpacking for tests can add several unnecessary minutes.

Change-Id: If909b3aed3557976f928ea3ce2a2b554247c7014
edd20b3dcec06ac9a94320d1917c4a5281c52730 24-Nov-2015 Dan Albert <danalbert@google.com> Update the NDK to the newest clang.

Bug: http://b/25792040
Bug: http://b/24916954
Bug: http://b/24804544
Change-Id: Id42daef4c7c14097af8f4efc93ba0a75b97af646
b839e0bbe9cd25c95744f50026094e1012463aff 18-Nov-2015 Dan Albert <danalbert@google.com> Move ndk-build into the build package.

This finishes cleaning up the various packages so we don't have any
strange overlap or files escaping their directories any more.

When building a monolithic NDK, this will add a shortcut to the new
ndk-build location in the root of the package (to preserve the ability
to run $NDK/ndk-build).

Bug: http://b/25454836
Change-Id: Icb1399be4f2178bcfd1e9160f0db74f0bfe69931
88cec601244ab22c9ffcece4a2cf326a6bc1f12b 16-Nov-2015 Dan Albert <danalbert@google.com> Add python_packages to packaging, rename to match.

Bug: http://b/25561370
Change-Id: If9abdd593ef631838538cb00984e10ceb400f255
aad6c96143c3aba383ade9d4a1678051c1af9f52 10-Nov-2015 Dan Albert <danalbert@google.com> Add packages for native_app_glue and ndk_helper.

Bug: http://b/25561378
Change-Id: I28170e8af990efe212ce586f8bd80a7ea1cf39d2
8120ea73d4becb4e5298b3033462f045e32f12a6 10-Nov-2015 Dan Albert <danalbert@google.com> Build a GCC module from prebuilts/ndk.

Previously the module was built only when building GCC (with --module
gcc or build.py in toolchain/gcc), but doing that is a waste of time.
This changes the meaning of the GCC module from "build GCC from
source" to "package the prebuilt GCC for the NDK".

Change-Id: I8309d758cb1ae5b1ea816348c3f5c1d4a67aa281
daec14f3186c422eca5e32553d40b258e208e2b2 16-Oct-2015 Dan Albert <danalbert@google.com> Add script to bundle modules into full package.

Bug: http://b/24985283
Change-Id: I485da5296ce98b3c4878706b24717db82ad9bf91