예제 #1
0
        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();
        }
예제 #2
0
        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();
        }