Commit graph

18 commits

Author SHA1 Message Date
C Stout
edd4d06624 meson_to_hermetic: fix Fuchsia build
Change-Id: Ia2083cf1b6ecbc596147fe7e0d1f493937d419c5
2024-12-19 11:45:37 -08:00
=
58c4db5184 meson_to_hermetic: fuchsia build fixes
Adds fuchsia_io dependency and adds some configs for fuchsia turnip
build

Test: Run build-fuchsia-turnip
Bug: None
Change-Id: Iec4396b0af6a107b9cd7ca557814f11e5402e141
2024-12-10 18:47:26 +00:00
=
5c374aa1a3 meson_to_hermetic: Fix parser not accounting for files with '-'
Test: run generate_python_build.py
Bug: 357080225
Change-Id: I8a73e900cad488b6d8eb90643bdd5a5078204b47
2024-11-19 20:19:26 +00:00
=
85de971256 meson_to_hermetic: Add global base project config / inheritence
Current changes to configs actually breaks the scripts to produce
a valid Android.bp file

Test: Refactor CL
Bug: 357080225
Change-Id: I1d9064b8e9c206b5b8f410a0adc7dab552c0b232
2024-11-14 23:08:25 +00:00
=
9391fab7e6 meson_to_hermetic: Add bazel code generation
This CL will remove the usage of impl.fprints in favor
of jinja2 templates and a project state tracker.

Note: this CL does not fix the underlying script problems.

Test: build-fuchsia-turnip.sh
Bug: 357080225
Change-Id: Ic40dbc4d18a283600d95af1d104ed8a0fc6f4e04
2024-10-31 21:34:50 +00:00
=
4757219701 meson_to_hermetic: Add jinja code generation for Android.bp
Currently does not fix the actual tooling, but generates code with the transient
states

Test: Run android-build file
Change-Id: Icc4a324100b64cde5daef3c0d91338d099c8ca72
2024-10-29 16:36:05 +00:00
C Stout
2955af2d04 meson-to-hermetic: add pyyaml to python libs
Change-Id: I576cbe44d3aa703faf13e132fe4d786bdc976811
2024-10-17 10:27:39 -07:00
=
c022519393 meson_to_hermetic: Capture bazel project state
CL solely saves transient data from bazel build

Test: Simple feature, no side effects
Bug: 357080225
Change-Id: I71590de4331a3cbb935ebf58bb527c03b8925cfc
2024-10-07 22:57:00 +00:00
=
a5d0cf74d8 meson_to_hermetic: Add project state tracking (Android)
Adds state tracking for android (Soong) projects.
Does not currently generate any build files

Test: Refactor / Non-changing feature
Bug: 353540875
Change-Id: Ic995b161381e51a68c721165242e647f5938c8f7
2024-09-30 22:53:37 +00:00
=
81ec5fcd88 meson_to_hermetic: add missing python dependency
Developers will have to reset their venv via ./setup-venv.sh

Test: Simple depedency addition
Change-Id: Ifaf7e4017a28fa50469bc128e40859724c4179b9
2024-09-24 22:19:20 +00:00
=
63df159d78 meson_to_hermetic/templates: Add templates for all code generation
Test: Run build scripts
Bug: 357080225
Change-Id: Ief80a6078c6473ebb03deda8c15c958c0b366c63
2024-09-23 21:57:45 +00:00
=
667533d690 meson_to_hermetic: Add build state tracker
First part of capturing the transient state of build configs.
Currently adds prototype classes, does not assign any values yet.

Test: Run build-<platform>-turnip.sh
Bug: 357080225
Change-Id: I3a5e04610041f93c1b2b9079296085386a372c19
2024-09-17 17:05:50 +00:00
=
04614c57c9 meson_to_hermetic: Fix cpu/cpu family not syncing on project configs
Also handles some new configs that are needed for lavapipe

Test: Run build-<platform>-turnip.sh
Bug: 357080225
Change-Id: I6270cabbc3916b3bb3d2167957ae561a4893e514
2024-09-06 21:52:51 +00:00
=
d9e6d80c49 meson_to_hermetic: Fix package path and all meson options being loaded
Test: build-<type>-turnip.sh
Bug: 357080225
Change-Id: Iaf26680f3c8c730d870bff4fde56085254872594
2024-09-03 19:44:55 +00:00
Brandon Nguyen
ab3e13cee2 Merge "meson_to_hermetic: Code health / lint update" into main 2024-08-29 23:07:40 +00:00
=
e48fd1ffe3 meson_to_hermetic: Code health / lint update
Test: Run build-<platform>-turnip.sh
Change-Id: Id73cc43050ceb1593da0a1813cd02c0aeae43c09
2024-08-27 23:29:56 +00:00
=
cd3e8cb750 meson_to_hermetic_test: Adds some rudimentry unit tests for Config Parsing in meson_impl
See README.md for instructions

Test: python -m unittest meson_to_hermetic_test/meson_impl_test.py and see passing
Bug: 360173803
Change-Id: I54fc37043bff745de32c0c56496615f466790361
2024-08-27 22:41:36 +00:00
=
c6cc3b175f meson-to-hermetic: Rename meson-to-hermetic to -> meson_to_hermetic
Python packages does not allow for the use of hyphen as it's a reserved token.
This change needs to be made to be imported by unit-tests in the future

This change will require a new venv to be generated locally:
`$ rm -rf venv`
`$ ./setup-venv.sh`
`$ source venv/bin/activate`

Test: Run meson_to_hermetic/build-android/fuchsia-turnip.sh
Bug: 360173803
Change-Id: Ie6fab4689ef5fc985e15747b0c06bfae662c387c
2024-08-26 22:13:07 +00:00