public void ReadBuildOptions() { HaxeOptions options = project.CompilerOptions; ReadStartElement("build"); while (Name == "option") { MoveToFirstAttribute(); switch (Name) { case "directives": options.Directives = (Value == "") ? new string[] {} : Value.Split('\n'); break; case "flashStrict": options.FlashStrict = BoolValue; break; case "noInlineOnDebug": options.NoInlineOnDebug = BoolValue; break; case "mainClass": options.MainClass = Value; break; case "enabledebug": options.EnableDebug = BoolValue; break; case "additional": options.Additional = Value.Split('\n'); break; } Read(); } ReadEndElement(); }
public void WriteBuildOptions() { WriteComment(" Build options "); WriteStartElement("build"); HaxeOptions options = project.CompilerOptions; WriteOption("directives", string.Join("\n", options.Directives)); WriteOption("flashStrict", options.FlashStrict); WriteOption("mainClass", options.MainClass); WriteOption("enabledebug", options.EnableDebug); WriteOption("additional", string.Join("\n", options.Additional)); WriteEndElement(); }