Files
coven/modules/ufbx/first.jai

35 lines
938 B
Plaintext

#import "Basic";
#import "Compiler";
#import "BuildCpp";
#import "Check";
#import "Bindings_Generator";
#import "File";
#run {
set_build_options_dc(.{do_output=false});
if !generate_bindings() {
compiler_set_workspace_status(.FAILED);
}
}
generate_bindings :: () -> bool {
output_filename: string;
opts: Generate_Bindings_Options;
{
using opts;
output_filename = "module.jai";
array_add(*libpaths, ".");
array_add(*libnames, "ufbx");
array_add(*system_include_paths, GENERATOR_DEFAULT_SYSTEM_INCLUDE_PATH);
array_add(*source_files, "ufbx.h");
array_add(*extra_clang_arguments, "-x", "c", "-DWIN32_LEAN_AND_MEAN");
//strip_flags = 0;
generate_compile_time_struct_checks = false;
//strip_flags &= ~(Strip_Flags.CONSTRUCTORS | .DESTRUCTORS);
}
return generate_bindings(opts, output_filename);
}