Open Bug 1580919 Opened 5 years ago Updated 2 years ago

Generate Java constants from C++ or idl

Categories

(GeckoView :: General, task, P3)

Unspecified
All

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

I got really annoyed at this again so I fixed it.

Assignee: nobody → agi

Since this focuses on stuff generated by idl, can we file a follow-up bug for other doing this for non-idl constants?

Blocks: 1637635
Assignee: agi → nobody
Severity: normal → S3

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.

Depends on: 1666491

Tasks should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: