val gmp_setup =
gmp_root match { case Some(dir) => val (x, y) = Executable.library_path(platform) val z = platform_context.standard_path(dir.absolute) + "/" + y "export " + x + "=" + quote(z + ":" + "$" + x) case None => ""
}
When this file is open in the Prover IDE, the ML files of the Poly/ML
compiler can be explored interactively. This is a separate copy: it does
not affect the running ML session. *) """ + ml_files.mkString("\n", "\n", "\n"))
}
val isabelle_tool1 =
Isabelle_Tool("make_polyml_gmp", "make GMP library from existing sources", Scala_Project.here,
{ args => var mingw = MinGW.none var verbose = false
val getopts = Getopts("""
Usage: isabelle make_polyml_gmp [OPTIONS] ROOT [CONFIGURE_OPTIONS]
Options are:
-M DIR msys/mingw root specification for Windows
Make GMP library in the ROOT directory of its sources, with additional
CONFIGURE_OPTIONS. """, "M:" -> (arg => mingw = MinGW(Path.explode(arg))), "v" -> (_ => verbose = true))
val more_args = getopts(args) val (root, options) =
more_args match { case root :: options => (Path.explode(root), options) case Nil => getopts.usage()
}
val progress = new Console_Progress(verbose = verbose)
val platform_context = Isabelle_Platform.Context(mingw = mingw, progress = progress) val target_dir = make_polyml_gmp(platform_context, root, options = options)
val isabelle_tool2 =
Isabelle_Tool("make_polyml", "make Poly/ML from existing sources", Scala_Project.here,
{ args => var gmp_root: Option[Path] = None var mingw = MinGW.none var arch_64 = false var sha1_root: Option[Path] = None var verbose = false
val getopts = Getopts("""
Usage: isabelle make_polyml [OPTIONS] ROOT [CONFIGURE_OPTIONS]
Options are:
-M DIR msys/mingw root specification for Windows
-g DIR GMP library root
-m ARCH processor architecture (32 or 64, default: """ +
(if (arch_64) "64"else"32") + """)
-s DIR sha1 sources, see https://isabelle.sketis.net/repos/sha1
Make Poly/ML in the ROOT directory of its sources, with additional
CONFIGURE_OPTIONS. """, "M:" -> (arg => mingw = MinGW(Path.explode(arg))), "g:" -> (arg => gmp_root = Some(Path.explode(arg))), "m:" ->
{ case"32" => arch_64 = false case"64" => arch_64 = true case bad => error("Bad processor architecture: " + quote(bad))
}, "s:" -> (arg => sha1_root = Some(Path.explode(arg))), "v" -> (_ => verbose = true))
val more_args = getopts(args) val (root, options) =
more_args match { case root :: options => (Path.explode(root), options) case Nil => getopts.usage()
}
val isabelle_tool3 =
Isabelle_Tool("component_polyml", "build Poly/ML component from official repository",
Scala_Project.here,
{ args => var target_dir = Path.current var gmp_url = default_gmp_url var mingw = MinGW.none var component_name = "" var sha1_url = default_sha1_url var sha1_version = default_sha1_version var polyml_url = default_polyml_url var polyml_version = default_polyml_version var polyml_name = default_polyml_name var gmp_root: Option[Path] = None var verbose = false
val getopts = Getopts("""
Usage: isabelle component_polyml [OPTIONS] [CONFIGURE_OPTIONS]
Options are:
-D DIR target directory (default ".")
-G URL build GMP library from source (overrides option -g)
(default """ + quote(default_gmp_url) + """)
-M DIR msys/mingw root specification for Windows
-N NAME component name (default: derived from Poly/ML version)
-S URL SHA1 repository archive area
(default: """ + quote(default_sha1_url) + """)
-T VERSION SHA1 version (default: """ + quote(default_sha1_version) + """)
-U URL Poly/ML repository archive area
(default: """ + quote(default_polyml_url) + """)
-V VERSION Poly/ML version (default: """ + quote(default_polyml_version) + """)
-W NAME Poly/ML name (default: """ + quote(default_polyml_name) + """)
-g DIR use existing GMP library (overrides option -G)
-v verbose
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.16Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.