private static boolean compileModule(final CompileContext context, @NotNull final Module module) {
final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
final boolean isDebug = ExecutorRegistry.getInstance()
.isStarting(context.getProject(), DefaultDebugExecutor.EXECUTOR_ID, HaxeDebugRunner.HAXE_DEBUG_RUNNER_ID);
final ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(module);
final Sdk sdk = moduleRootManager.getSdk();
if (sdk == null) {
context.addMessage(CompilerMessageCategory.ERROR, HaxeBundle.message("no.sdk.for.module", module.getName()), null, -1, -1);
return false;
}
boolean compiled = HaxeCommonCompilerUtil.compile(new HaxeCommonCompilerUtil.CompilationContext() {
private String myErrorRoot;
@NotNull
@Override
public HaxeModuleSettingsBase getModuleSettings() {
return settings;
}
@Override
public String getModuleName() {
return module.getName();
}
@Override
public void errorHandler(String message) {
context.addMessage(CompilerMessageCategory.ERROR, message, null, -1, -1);
}
@Override
public void log(String message) {
LOG.debug(message);
}
@Override
public String getSdkName() {
return sdk.getName();
}
@Override
public String getSdkHomePath() {
return sdk.getHomePath();
}
@Override
public String getHaxelibPath() {
SdkAdditionalData data = sdk.getSdkAdditionalData();
return data instanceof HaxeSdkAdditionalDataBase ? ((HaxeSdkAdditionalDataBase)data).getHaxelibPath() : null;
}
@Override
public boolean isDebug() {