|
| 1 | +[library] |
| 2 | +name = "LibMinc2Simple" |
| 3 | +output_base = "../src/LibMinc2Simple" |
| 4 | +prologue_file_path = "" |
| 5 | + |
| 6 | +[codegen] |
| 7 | +use_julia_native_enum = true |
| 8 | +use_ccall_macro = false |
| 9 | +markdown_output = "index.md" |
| 10 | + |
| 11 | +# How to handle opaque pointers (void*) |
| 12 | +# "cvoid" maps to `Ptr{Cvoid}`, which is standard.opaque_func_arg_as_ptr = true |
| 13 | +opaque_func_arg_as_ptr = true |
| 14 | + |
| 15 | +# If true, C enums are mapped to Julia @enum. |
| 16 | +# If false, they are mapped to Cint constants (which is often easier for bitwise flags). |
| 17 | +use_deterministic_symbol = true |
| 18 | + |
| 19 | + |
| 20 | +[general] |
| 21 | +# The name of the module to generate |
| 22 | +module_name = "LibMinc" |
| 23 | + |
| 24 | +# The name of the JLL package that provides the shared library |
| 25 | +jll_pkg_name = "libminc_jll" |
| 26 | + |
| 27 | +# The specific library constant to export from the JLL. |
| 28 | +library_name = "libminc2_simple" |
| 29 | + |
| 30 | +# Output file for the generated code |
| 31 | +output_file_path = "../src/LibMinc.jl" |
| 32 | + |
| 33 | +# Common prefixes to export automatically |
| 34 | +# This prevents polluting the namespace with internal C symbols |
| 35 | +export_symbol_prefixes = ["minc2_", "MINC2_", "miget_", "miset_"] |
| 36 | + |
| 37 | +# Optional: Generate strictly typed functions (default is false, which uses Any for some pointers) |
| 38 | +# true is generally better for performance/safety but requires cleaner headers. |
| 39 | +is_function_strictly_typed = true |
| 40 | + |
| 41 | + |
| 42 | +# Optional: Map C booleans to Julia Bool |
| 43 | +use_julia_bool = true |
| 44 | + |
0 commit comments