• Miro Knejp's avatar
    Generate YAML files with type descriptions for other projects · e181adc0
    Miro Knejp authored
    These YAML files generated by Djinni hold all the necessary information to integrate these types with other Djinni projects, thus making (precompiled) libraries with possible.
    
    There are still limitations:
    - Extern enums/records cannot be used as constants as their enumerant/field information is not yet preserved.
    - Include paths are fixed at the point of YAML generation, including paths do Djinni's support-lib. This may require some form of placeholders, or being smart about project structure in general.
    
    Generation is controlled with following options
    - --yaml-out: The output folder for YAML files (Generator disabled if unspecified).
    - --yaml-out-file: If specified all types are merged into a single YAML file instead of generating one file per type  (relative to --yaml-out).
    - --yaml-prefix: The prefix to add to type names stored in YAML files (default: "").
    e181adc0
CppMarshal.scala 5.01 KB