Simplify
This commit is contained in:
parent
7a1463202a
commit
66290530a3
14
generate.jai
14
generate.jai
|
@ -11,10 +11,7 @@ AT_COMPILE_TIME :: true;
|
||||||
COMPILE :: true; // Enable to compile the dr_libs library from source before generating bindings.
|
COMPILE :: true; // Enable to compile the dr_libs library from source before generating bindings.
|
||||||
COMPILE_DEBUG :: false; // Compile a debug or release version of dr_libs
|
COMPILE_DEBUG :: false; // Compile a debug or release version of dr_libs
|
||||||
|
|
||||||
MAKE_STATIC_LIB :: true;
|
MAKE_DYNAMIC_LIB :: false; // Will make a static lib when false.
|
||||||
MAKE_DYNAMIC_LIB :: false;
|
|
||||||
|
|
||||||
#assert (MAKE_STATIC_LIB || MAKE_DYNAMIC_LIB) && !(MAKE_STATIC_LIB && MAKE_DYNAMIC_LIB);
|
|
||||||
|
|
||||||
SOURCE_PATH :: "source";
|
SOURCE_PATH :: "source";
|
||||||
|
|
||||||
|
@ -116,6 +113,15 @@ generate_bindings :: () -> bool {
|
||||||
|
|
||||||
array_add(*extra_clang_arguments, "-x", "c++", "-DWIN32_LEAN_AND_MEAN");
|
array_add(*extra_clang_arguments, "-x", "c++", "-DWIN32_LEAN_AND_MEAN");
|
||||||
|
|
||||||
|
#if MAKE_DYNAMIC_LIB {
|
||||||
|
libs := type_info(Libs);
|
||||||
|
for libs.names {
|
||||||
|
if LIBS_TO_BUILD & (xx libs.values[it_index]) {
|
||||||
|
array_add(*extra_clang_arguments, tprint("/DDR%_DLL", it));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log_stripped_declarations = false; // Set to true if things aren't working...
|
log_stripped_declarations = false; // Set to true if things aren't working...
|
||||||
generate_compile_time_struct_checks = true;
|
generate_compile_time_struct_checks = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user