Task #11855 (closed)
Opened 10 years ago
Closed 10 years ago
Bug: C++ cmake xsd-fu generalisation
Reported by: | rleigh | Owned by: | rleigh |
---|---|---|---|
Priority: | minor | Milestone: | 5.0.0 |
Component: | Bio-Formats | Version: | 5.0.0-beta2-RC3 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
The logic required to invoke xsd-fu is composed of several steps:
- introspect generated files
- introspect dependencies
- generate build rule
Which is repeated for each combination of file type (source/header) and command to run (java_classes, enums, etc.). This duplicates a huge amount of reasonably complex code.
Refactor this into a function/macro which may be called for each command (or could take a list of commands), which can return a variable containing the needed information for other rules to make use of. This will make maintenance of xsd-fu generation much simpler, and make it easier to add generation in other components (e.g. bioformats omexmlmetadatastore etc.)
Change History (2)
comment:1 Changed 10 years ago by rleigh
comment:2 Changed 10 years ago by rleigh
- Resolution set to fixed
- Status changed from new to closed
Fixed in https://github.com/openmicroscopy/bioformats/pull/826