Generate Java constants from C++ or idl
Categories
(GeckoView :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: agi, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
We have some places in the GeckoView codebase where we duplicate some constants definitions from idl files or C++ source. It would be nice to have a way to generate these files automatically to prevent mistakes or stale duplicated code.
Examples: https://searchfox.org/mozilla-central/search?q=keep+in+sync&path=geckoview
Reporter | ||
Comment 1•5 years ago
|
||
I got really annoyed at this again so I fixed it.
Reporter | ||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 3•5 years ago
|
||
Reporter | ||
Comment 4•5 years ago
|
||
Reporter | ||
Comment 5•5 years ago
|
||
Comment 6•5 years ago
|
||
Since this focuses on stuff generated by idl, can we file a follow-up bug for other doing this for non-idl constants?
Updated•2 years ago
|
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Bug 1666491 added support for packaging XPT artifacts at build time and populating them during artifact builds. Technically, this bug could be satisfied by those XPT artifacts directly, but it would be inconvenient. Better to follow the example of the earlier ticket and package generated Java/Kotlin for use in subsequent artifact builds.
Description
•