Commit graph android_packages_modules_Co.../tools
Message SHA1
cronet: Add dependency needed to make use of SdkLevel
Test: m with this CL + aosp/2369503

Change-Id: I867ad377fb98a1645a461dafba79266f0cd58cc3

Stefano Duo   commited 2023-01-10 09:58:46 +00:00
0978c0716e
gn2bp: Use startswith instead of regex
Test: ./update_results.sh
Change-Id: Ic85de603d6edb3565552731bac60a57961c8aecc

Motomu Utsumi   commited 2023-01-06 11:53:27 +09:00
7841c80557
gn2bp: Remove unused condition for src path filtering
Test: ./update_results.sh
Change-Id: I5731123496490759e5ec3e8f53dd19d8fe6554b4

Motomu Utsumi   commited 2023-01-06 11:53:14 +09:00
4424f34582
gn2bp: Use "out" prefix for src path filtering
instead of "out/test".

Test: ./update_results.sh
Change-Id: I28fd863742f2531bb942a15c636ca311ef45c307

Motomu Utsumi   commited 2023-01-06 11:52:18 +09:00
e5ea57bc4f
Merge "cronet: add script to generate desc_*.json"
Patrick Rohr   authored and   Gerrit Code Review   commited 2023-01-05 15:47:33 +00:00
e54ec746d7
cronet: add script to generate desc_*.json
It's very basic for now.

Test: run the script
Change-Id: Ie848f8da6936f4300ba5ecdc041523440be25e8a

Patrick Rohr   commited 2023-01-05 07:45:43 -08:00
6d722af6f3
gn2bp: remove unnecessary chrome_root_store target
Test: cd external/cronet && mm
Change-Id: Idec19f1364c9dca4d278a33eebf500a4db87f389

Patrick Rohr   commited 2023-01-03 05:27:57 -08:00
7184dce577
gn2bp: Remove empty srcs cc_object from blueprint
* This was failing the pre-submits are cc_objects are compilable modules but they failed to compile due to empty srcs. However, this didn't affect the compilation of Cronet as the empty cc_objects are never in the path of compilation of Cronet because their attributes are propagated up the tree.

Test: m
Change-Id: I7cc87d53d4f460ef4958d5ecfb23ac28662fdbdc

Mohannad Farrag   commited 2022-12-29 11:49:04 +00:00
b6dbca96b6
gn2bp: Use libmediandk to include <media/NdkMediaError.h>
media_ndk_headers is not available to tethering apex.
But header files are available via libmediandk ndk_library

Test: m
Change-Id: I319d9f3a68c64d7b73af68db40d4a509eba59cd3

Motomu Utsumi   commited 2022-12-24 01:15:08 +09:00
dbf2863471
gn2bp: Add cronet_aml_api_java to cronet_aml_java lib
Test: ./update_results.sh
Change-Id: I02fb762d2a4af0fe5b200a9aafc6dee33d3eaed0

Motomu Utsumi   commited 2022-12-24 01:15:02 +09:00
46ec15cdeb
gn2bp: Add filegroup for cronet api
Test: ./update_results.sh
Change-Id: I4f02494448ede2eeefadbbb9c7c4fdf38ede645c

Motomu Utsumi   commited 2022-12-24 01:14:53 +09:00
a0a3dbea5f
gn2bp: Remove api sources from cronet_aml_java
Test: ./update_results.sh
Change-Id: I2d1df64fe312806fc834d58847ba7f041e202fc3

Motomu Utsumi   commited 2022-12-24 01:14:47 +09:00
1002cd851b
gn2bp: Added java group name to java_sources/actions
Test: ./update_results.sh
Change-Id: Ibc2b3152ab68c5b46acff7d19d2c853889fa887c

Motomu Utsumi   commited 2022-12-24 01:14:40 +09:00
ea729d3204
gn2bp: Update is_java_target to java_group_name
This helps to know java_sources/java_actions are in which java group

Test: ./update_results.sh
Change-Id: Iec3fad1aded935a8d17184a2315d7f21b2a803f2

Motomu Utsumi   commited 2022-12-24 01:14:33 +09:00
940cc564a1
gn2bp: remove hardcoded jni_registration denylist
Test: m cronet_aml_java
Change-Id: I1470e1faa64f17729c63082228423f8177798d88

Patrick Rohr   commited 2022-12-22 19:35:06 -08:00
f20b5ed35b
gn2bp: add javacflag to skip GEN_JNI stub generation
This conflicts as the fully-featured GEN_JNI is already generated by
another genrule.

Test: none
Change-Id: I522501444b02d2a304e81d86d86b0c8f3589035c

Patrick Rohr   commited 2022-12-22 19:35:06 -08:00
8d393193c1
gn2bp: use Android libgtest_prod_headers
This requires aosp/2366787 to work.
Unfortunately, Chromium does not add a dependency on gtest, so
builtin_module cannot be used.
Using the gtest prod headers from Android is fine for //base. The only
thing that's used is gtest_prod.h, which includes one friend macro that
hasn't changed in 14 years.

Test: build cronet
Change-Id: I03b12ae698699527da7e69c9d4d50da1822fd5bc

Patrick Rohr   commited 2022-12-22 19:35:06 -08:00
baaf160382
gn2bp: depend on :current_android_jar for JNI generation
Test: update_results.sh
Change-Id: Id08cb64c65cc2f2b2136d6e437ad8af1876da180

Patrick Rohr   commited 2022-12-22 11:39:35 -08:00
7d2cdf44bc
gn2bp: Update tree_path to 'external/cronet'
Test: ./update_results.sh
Change-Id: I63f0bd1645d7b7ac007e1c86668c4719dae6a5f3

Motomu Utsumi   commited 2022-12-22 19:20:01 +09:00
ad6323cd76
gn2bp: Update desc.json from cronet 108.0.5359.128
This CL also update the default_targets to use
//components/cronet/android:cronet_android_mainline

Test: ./update_results.sh
Change-Id: Iae5d61b9abb0136cb077e4341ce7a74e1e08061c

Motomu Utsumi   commited 2022-12-22 18:02:05 +09:00
ddcc9082a2
gn2bp: build against Android's zlib
I guess we can decide if that is what we really want to do long term.
(In which case, we would preferably have a target to link zlib
statically).

Test: builds
Change-Id: Ic5b371059874aa8cac8d24adf9f44925a89bc5a2

Patrick Rohr   commited 2022-12-21 11:19:01 -08:00
3d1059cf2a
gn2bp: Merge cc_genrule cmd
Test: ./update_results.sh
Test: m cronet_aml_components_cronet_android_cronet
Test: m cronet_aml_java
Change-Id: Ib9efad99e87acf47ba88a31bac86dcabd2a40c4f

Motomu Utsumi   commited 2022-12-19 11:11:06 +09:00
3029ac9fc3
gn2bp: Remove arch suffix from the genrule
This CL makes gn2bp ignore the arch difference in genrule and breaks the
build.
Next CL fixes this by properly merging arch specific cmd for cc_genrule.
Splitting CL to make the Android.bp.swp diff in the next CL readable.

Test: ./update_results.sh
Change-Id: I2d74e91cab5782a3ce9de51a0fa0c9c5c21bf8bf

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
e74bab885b
gn2bp: Support merging genrule
Test: ./update_results.sh
Change-Id: I2551ec2f333805820eca6c85bbbde4be28787d04

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
877e6f0a77
gn2bp: Add function to merge modules
Test: ./update_results.sh
Change-Id: I274243769e366f41b129365c8f4ee89d0e1bf929

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
822bfc4143
gn2bp: Add function to merge cmd for genrule
Test: ./update_results.sh
Change-Id: Ic45b83728f72277949b82fcda062f5d4c83f0717

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
d32f9aa136
gn2bp: Add helper function to get condition for arch
This function return the condition which can be used within the cmd in
the cc_genrule

Test: ./update_results.sh
Change-Id: Ib36bfed7f37a8d86d2dddd12c4fca31477ebd6ee

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
170cc2de7e
gn2bp: Update sanitizer to accept arch specific attributes
Test: ./update_results.sh
Change-Id: Ic1fbc420aeff630485503f5fe32c8c8435e15f60

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
0facea583d
gn2bp: Add action attributes to arch
These arch dependent attributes are not used yet.

Test: ./update_results.sh
Change-Id: I871fcdb51a7fa48503430970721f019e90fda484

Motomu Utsumi   commited 2022-12-19 11:10:58 +09:00
2165ccddcf
gn2bp: Add finalize function for non set attributes
Test: ./update_results.sh
Change-Id: Ib5ce43b3a3edf453ce169ede997f8d8505ba271d

Motomu Utsumi   commited 2022-12-19 11:10:55 +09:00
5fde8e17ab
gn2bp: Add helper function to finalize attributes
Test: ./update_results.sh
Change-Id: Iba1429c70c68b6dfd7a95391b77224f5c7a560ca

Motomu Utsumi   commited 2022-12-16 20:08:11 +09:00
2648df0263
gn2bp: Update initial value of script and response_file_contents
Test: ./update_results.sh
Change-Id: I831fb326ae3eef37c700502803fcc6a873c25d56

Motomu Utsumi   commited 2022-12-16 20:07:41 +09:00
27bf5962ed
gn2bp: Remove unused imports
Test: ./update_results.sh
Change-Id: Ie868d599fe8ad8024ca188ec24d87106a363a8cf

Motomu Utsumi   commited 2022-12-16 18:25:43 +09:00
8f1eb5bd42
gn2bp: Run ./update_results.sh
This might be the non deterministic behavior of gn2bp but running
./update_results.sh 10 times and the result was not changed.

Test: ./update_results.sh
Change-Id: I7cb9edb9971a7b0388031703cb3b202614c5bfab

Motomu Utsumi   commited 2022-12-16 18:25:10 +09:00
f097064d2d
gn2bp: support building against Android's modp_b64
For experimental purposes only...

Test: builds
Change-Id: I08043bfc01dfa01e5a9bd02c4d20a7ee27d798ab

Patrick Rohr   commited 2022-12-15 16:25:28 -08:00
ce21088a07
gn2bp: support building against Android's libbrotli
For experimental purposes only.

Test: builds
Change-Id: I765a85da2baec982a24225465d709af8df8dfa11

Patrick Rohr   commited 2022-12-15 16:25:28 -08:00
feed22392c
gn2bp: properly support builtin modules
Test: none
Change-Id: Icdc8e5ed038a27bc1c0b4d07f80263e84a643ea2

Patrick Rohr   commited 2022-12-15 16:25:28 -08:00
6cd0f25dac
gn2bp: add support for building against Android zlib
Experimental support -- off by default.

Test: builds.
Change-Id: Ibf58f981f9b135bc1504bc8264d4e2b917f8b597

Patrick Rohr   commited 2022-12-14 21:37:50 -08:00
10b746fe03
gn2bp: support architecture in builtin_deps
Test: none
Change-Id: I2c007222d8beeec3d37941eca69813f791bc67dd

Patrick Rohr   commited 2022-12-14 21:37:50 -08:00
25926e6dc2
gn2bp: correctly flatten source_sets under linker unit target
Test: none
Change-Id: I23d13c7168a32db8bbb47a326cbadd117da0199c

Patrick Rohr   commited 2022-12-14 21:37:50 -08:00
706955670b
gn2bp: add is_linker_unit_type helper to Target
Test: none
Change-Id: I4c1a8be6d3bd3676dd0ea6ef700b01db1134119f

Patrick Rohr   commited 2022-12-14 21:37:50 -08:00
94c2490d7f
gn2bp: fix include dir denylist
This makes it work for both common and arch-dependent include dirs.

Test: none
Change-Id: I96e4c083b7b72b947886f6d3e1c95973003d756c

Patrick Rohr   commited 2022-12-14 21:37:50 -08:00
9d7539e208
gn2bp: fix Android.bp.swp
Somehow I missed these?! Not sure how this happened.

Test: none
Change-Id: I2a41fed7ba3af9e5bc8b733b90b9781cfaa9aab2

Patrick Rohr   commited 2022-12-14 21:37:49 -08:00
dd98f5b0c8
gn2bp: fix comment formatting.
Test: none
Change-Id: Ia9a4c64f3fc90dbc76f9b54d199726ac8324e3f4

Patrick Rohr   commited 2022-12-13 17:34:26 -08:00
e71a061ccf
gn2bp: fix _is_java_group
re.match returns a match object, not a boolean.

Test: none
Change-Id: I094cc67e2bf5abc4b1738571bdc71d10f04dc09c

Patrick Rohr   commited 2022-12-13 17:32:28 -08:00
689a9c08e3
gn2bp: disable libunwind
libunwind should not be needed.

Test: none
Change-Id: I7ce419641bbf3c70297352e8dc855ae5dc14ab58

Patrick Rohr   commited 2022-12-13 15:34:02 -08:00
dd10b43220
gn2bp: stop parsing dep tree for builtin modules
Targets that are part of builtin_deps will be removed / replaced by
gen_android_bp. So if such a target is encountered while parsing the gn
desc output, all of its dependencies can be safely ignored.

Test: builds
Change-Id: I5bd954c2b95e2ae53a4ac9dc420a067fd76da9a7

Patrick Rohr   commited 2022-12-13 15:33:22 -08:00
0913f0b083
Merge "gn2bp: propagate is_java_target value"
Motomu Utsumi   authored and   Gerrit Code Review   commited 2022-12-13 06:06:20 +00:00
33dc0cf113
Merge "gn2bp: rename _is_java_target to _is_java_group"
Motomu Utsumi   authored and   Gerrit Code Review   commited 2022-12-13 05:54:01 +00:00
dac9cd5a93
Merge "gn2bp: delete unused function"
Motomu Utsumi   authored and   Gerrit Code Review   commited 2022-12-13 05:53:41 +00:00
b7b3b749f1