Getting to the way it's supposed to be!
This commit is contained in:
34
modules/ufbx/first.jai
Normal file
34
modules/ufbx/first.jai
Normal file
@@ -0,0 +1,34 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user