let project = new Project('Kha', __dirname); project.addFiles('kinc-bridge/**', 'hl/include/**', 'hl/src/std/**', 'hl/src/gc.c', 'hl/src/hl.h', 'hl/src/hlc.h', 'hl/src/hlmodule.h', 'hl/src/opcodes.h'); project.addExcludes('hl/src/std/unicase.c', 'hl/src/std/debug.c', 'hl/include/pcre/pcre2_jit_match.c', 'hl/include/pcre/pcre2_jit_misc.c'); project.addIncludeDirs('hl/src', 'hl/include/pcre', 'hl/include/mbedtls/include', 'hl/include/zlib'); project.addFiles('hl/include/mbedtls/library/**', 'hl/include/zlib/**', 'hl/libs/fmt/fmt.c', 'hl/libs/fmt/sha1.c', 'hl/libs/ssl/ssl.c'); if (platform == Platform.OSX) project.addDefine('KORE_DEBUGDIR="osx-hl"'); if (platform == Platform.iOS) project.addDefine('KORE_DEBUGDIR="ios-hl"'); if (platform !== Platform.Windows || audio !== AudioApi.DirectSound) { project.addDefine('KORE_MULTITHREADED_AUDIO'); } project.addDefine('KORE'); project.addDefine('KOREC'); project.addDefine('ROTATE90'); project.addDefine('LIBHL_STATIC'); project.addDefine('PCRE2_CODE_UNIT_WIDTH=16'); project.addDefine('HAVE_CONFIG_H'); project.cStd = 'c11'; if (platform === Platform.Windows || platform === Platform.WindowsApp) { project.addDefine('_WINSOCK_DEPRECATED_NO_WARNINGS'); } if (platform === Platform.Windows) { project.addLib('ws2_32'); project.addLib('Crypt32'); // SSL } resolve(project);