]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doc: Update man page to include more information on profiles
authorAlistair Thomas <astavale@yahoo.co.uk>
Sat, 8 May 2021 11:43:43 +0000 (12:43 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 May 2021 06:54:28 +0000 (08:54 +0200)
README.md
compiler/valacompiler.vala
doc/valac.1
doc/valac.h2m
doc/valadoc.1
valadoc/valadoc.vala

index fe0108802c8f54575b6a955ba94ca7ea887b3995..45a16fd08c21636a2a66dc182ea3e0bfe7062b0c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -59,6 +59,11 @@ Install the following packages:
  * automake
  * libtool
 
+These additional packages are needed to generate the documentation:
+
+ * help2man when updating the man pages
+ * xsltproc
+ * weasyprint for PDF generation
 
 ### Step Two:
 Decide where the Vala compiler is to be found.
index 4cf66f3c5cb190978ddefe8bf51daac4cce1bb96..163146931ca252657aaa30123c7ed2eea9c4dfbf 100644 (file)
@@ -153,7 +153,7 @@ class Vala.Compiler {
                { "pkg-config", 0, 0, OptionArg.STRING, ref pkg_config_command, "Use COMMAND as pkg-config command", "COMMAND" },
                { "dump-tree", 0, 0, OptionArg.FILENAME, ref dump_tree, "Write code tree to FILE", "FILE" },
                { "save-temps", 0, 0, OptionArg.NONE, ref save_temps, "Keep temporary files", null },
-               { "profile", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_parse_profile, "Use the given profile instead of the default, options are 'gobject' or 'posix'", "PROFILE" },
+               { "profile", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_parse_profile, "Minimum runtime dependency: 'gobject' (default) or 'posix' (minimal libc)", "PROFILE" },
                { "quiet", 'q', 0, OptionArg.NONE, ref quiet_mode, "Do not print messages to the console", null },
                { "verbose", 'v', 0, OptionArg.NONE, ref verbose_mode, "Print additional messages to the console", null },
                { "no-color", 0, 0, OptionArg.NONE, ref disable_colored_output, "Disable colored output, alias for --color=never", null },
@@ -521,7 +521,7 @@ class Vala.Compiler {
                if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) {
                        return quit ();
                }
-               
+
                if (!ccode_only) {
                        var ccompiler = new CCodeCompiler ();
                        if (cc_command == null && Environment.get_variable ("CC") != null) {
@@ -636,7 +636,7 @@ class Vala.Compiler {
                        stdout.printf ("Run '%s --help' to see a full list of available command line options.\n", args[0]);
                        return 1;
                }
-               
+
                if (version) {
                        stdout.printf ("Vala %s\n", Vala.BUILD_VERSION);
                        return 0;
@@ -644,12 +644,12 @@ class Vala.Compiler {
                        stdout.printf ("%s\n", Vala.API_VERSION);
                        return 0;
                }
-               
+
                if (sources == null && fast_vapis == null) {
                        stderr.printf ("No source file specified.\n");
                        return 1;
                }
-               
+
                var compiler = new Compiler ();
                return compiler.run ();
        }
index 2c6ffb2256d987ddd17f208332f8c7583b49d7ca..c78dcfb5c4f0d819abb04b1f42b6812f30d3c789 100644 (file)
@@ -172,7 +172,17 @@ Write code tree to FILE
 Keep temporary files
 .TP
 \fB\-\-profile\fR=\fI\,PROFILE\/\fR
-Use the given profile instead of the default, options are 'gobject' or 'posix'
+Minimum runtime dependency: 'gobject' (default) or 'posix' (minimal libc)
+.RS
+\fIgobject\fR enables GLib's GType runtime type system. The runtime environment
+will usually require libgobject and its small number of dependencies.
+\fIposix\fR removes the dependency on GLib and disables the runtime type
+system. The profile either generates alternative code or errors at compile time
+if a Vala language feature is used that requires the runtime type system. This
+is useful for writing code, for example, that targets microcontrollers or
+for extremely small system utilities or container images. The runtime
+environment will usually require a small subset of the ISO C standard library.
+.RE
 .TP
 \fB\-q\fR, \fB\-\-quiet\fR
 Do not print messages to the console
index 70740811d725964767bd8be2812b2f1c7513e986..97995fa5d7d9ba56a25fcf5cba08b4872ab79136 100644 (file)
@@ -23,6 +23,18 @@ or \fB--no-color\fR are declared then \fB--color\fR=\fIauto\fR is used where
 output is colored when stderr is a terminal.
 .RE
 
+/Minimum runtime dependency/
+.RS
+\fIgobject\fR enables GLib's GType runtime type system. The runtime environment
+will usually require libgobject and its small number of dependencies.
+\fIposix\fR removes the dependency on GLib and disables the runtime type
+system. The profile either generates alternative code or errors at compile time
+if a Vala language feature is used that requires the runtime type system. This
+is useful for writing code, for example, that targets microcontrollers or
+for extremely small system utilities or container images. The runtime
+environment will usually require a small subset of the ISO C standard library.
+.RE
+
 /Enable support for ABI stability/
 .RS
 This changes the current behaviour to output public members of classes and
index f540870a3fcb52f620e194a49d1b5210af633536..8ccf130a00b3afc0f6939ac714b040498d049b78 100644 (file)
@@ -27,7 +27,7 @@ Base source directory
 Define SYMBOL
 .TP
 \fB\-\-profile\fR=\fI\,PROFILE\/\fR
-Use the given profile instead of the default, options are 'gobject' or 'posix'
+Minimum runtime dependency: 'gobject' (default) or 'posix' (minimal libc)
 .TP
 \fB\-\-enable\-experimental\fR
 Enable experimental features
index 6ed4a6792d485ea7f41a54183c8aa9bb790311a1..b1113b728c52a17efd6455d94dd5957d0f6aec54 100644 (file)
@@ -79,7 +79,7 @@ public class ValaDoc : Object {
 
                { "basedir", 'b', 0, OptionArg.FILENAME, ref basedir, "Base source directory", "DIRECTORY" },
                { "define", 'D', 0, OptionArg.STRING_ARRAY, ref defines, "Define SYMBOL", "SYMBOL..." },
-               { "profile", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_parse_profile, "Use the given profile instead of the default, options are 'gobject' or 'posix'", "PROFILE" },
+               { "profile", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_parse_profile, "Minimum runtime dependency: 'gobject' (default) or 'posix' (minimal libc)", "PROFILE" },
 
                { "enable-experimental", 0, 0, OptionArg.NONE, ref experimental, "Enable experimental features", null },
                { "enable-experimental-non-null", 0, 0, OptionArg.NONE, ref experimental_non_null, "Enable experimental enhancements for non-null types", null },