public void WriteLibraries()
        {
            LoomOptions options = project.CompilerOptions;

            WriteComment(" Loom Libraries ");
            WriteList("libraryPaths", options.LibraryPaths);
            //WriteComment(" Intrinsic Libraries ");
            //WriteList("intrinsics", options.IntrinsicPaths);
        }
        public void WriteBuildOptions()
        {
            WriteComment(" Build options ");
            WriteStartElement("build");

            LoomOptions options = project.CompilerOptions;

            //WriteOption("warnings", options.Warnings);
            WriteOption("additional", string.Join("\n", options.Additional));

            WriteEndElement();
        }
Beispiel #3
0
        /*public void ReadLibraryAssets()
         * {
         *  ReadStartElement("library");
         *  while (Name == "asset")
         *  {
         *      string path = OSPath(GetAttribute("path"));
         *
         *      if (path == null)
         *          throw new Exception("All library assets must have a 'path' attribute.");
         *
         *      LibraryAsset asset = new LibraryAsset(project, path);
         *      project.LibraryAssets.Add(asset);
         *
         *      asset.UpdatePath = OSPath(GetAttribute("update")); // could be null
         *      asset.FontGlyphs = GetAttribute("glyphs"); // could be null
         *
         *      Read();
         *  }
         *  ReadEndElement();
         * }*/

        public void ReadBuildOptions()
        {
            LoomOptions options = project.CompilerOptions;

            ReadStartElement("build");
            while (Name == "option")
            {
                MoveToFirstAttribute();
                switch (Name)
                {
                //case "warnings": options.Warnings = BoolValue; break;
                case "additional": options.Additional = Value.Split('\n'); break;
                }
                Read();
            }
            ReadEndElement();
        }