@@ -16,22 +16,12 @@ curl_h = joinpath(include_dir, "curl", "curl.h")
1616# mprintf_h = joinpath(include_dir, "curl", "mprintf.h")
1717# stdcheaders_h = joinpath(include_dir, "curl", "stdcheaders.h")
1818
19+ options = load_options (joinpath (@__DIR__ , " generator.toml" ))
20+
1921for target in JLLEnvs. JLL_ENV_TRIPLES
2022 @info " processing $target "
2123
22- # programmatically add options
23- options = Dict {String,Any} (" general" => Dict {String,Any} ())
24- general = options[" general" ]
25- general[" library_name" ] = " libcurl"
26- general[" output_file_path" ] = joinpath (@__DIR__ , " .." , " lib" , " $target .jl" )
27- general[" use_julia_native_enum_type" ] = true
28- general[" auto_mutability" ] = true
29- general[" use_deterministic_symbol" ] = true
30- general[" printer_blacklist" ] = [
31- " CURL_SUFFIX_CURL_OFF_T" ,
32- " CURL_SUFFIX_CURL_OFF_TU" ,
33- " CURL_ZERO_TERMINATED" ,
34- ]
24+ options[" general" ][" output_file_path" ] = joinpath (@__DIR__ , " .." , " lib" , " $target .jl" )
3525
3626 args = get_default_args (target)
3727 push! (args, " -I$include_dir " )
0 commit comments