This commit is contained in:
Michael Campagnaro 2023-09-18 20:53:15 -04:00
parent 7a1463202a
commit 66290530a3

View File

@ -11,10 +11,7 @@ AT_COMPILE_TIME :: true;
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
MAKE_STATIC_LIB :: true;
MAKE_DYNAMIC_LIB :: false;
#assert (MAKE_STATIC_LIB || MAKE_DYNAMIC_LIB) && !(MAKE_STATIC_LIB && MAKE_DYNAMIC_LIB);
MAKE_DYNAMIC_LIB :: false; // Will make a static lib when false.
SOURCE_PATH :: "source";
@ -116,6 +113,15 @@ generate_bindings :: () -> bool {
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...
generate_compile_time_struct_checks = true;
}