File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
developer-guides/documentation/vala-for-csharp-devs
tutorials/programming-language/main Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
33C#: ` System.Collections.Generic ` namespace
44
5- Vala: ` Gee ` namespace, ` --pkg gee-1.0 ` ,
5+ Vala: ` Gee ` namespace, ` --pkg gee-0.8 ` ,
66[ Libgee] ( https://wiki.gnome.org/Projects/Libgee )
77
88Rough equivalents:
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ level of Vala specific information.
88A "Vala library" is therefore, the system part:
99
1010- A system library (e.g. * libgee.so* )
11- - A * pkg-config* entry (e.g. * gee-1.0 .pc* )
11+ - A * pkg-config* entry (e.g. * gee-0.8 .pc* )
1212
1313Both of which are installed in the standard locations. And the Vala
1414specific files:
1515
16- - A VAPI file (e.g. * gee-1.0 .vapi* )
17- - An optional dependency file (e.g. * gee-1.0 .deps* )
16+ - A VAPI file (e.g. * gee-0.8 .vapi* )
17+ - An optional dependency file (e.g. * gee-0.8 .deps* )
1818
1919These files are explained later in this section. It should be noted that
2020the library names are the same in the Vala specific files as in the
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ package. You tell the compiler that a package is needed by your program
66as follows:
77
88``` shell
9- valac --pkg gee-1.0 test.vala
9+ valac --pkg gee-0.8 test.vala
1010```
1111
1212This command means your program can use any of the definitions in the
13- * gee-1.0. vapi* file, and also any in any of the packages that * gee-1.0 *
14- depends on. These dependencies would be listed in * gee-1.0 .deps* if
13+ * gee-0.8. vapi* file, and also any in any of the packages that * gee-0.8 *
14+ depends on. These dependencies would be listed in * gee-0.8 .deps* if
1515there were any. In this example * valac* is set to build all the way to
1616binary, and will therefore incorporate information from * pkg-config* to
1717link the correct libraries. This is why the * pkg-config* names are also
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ VALAFLAGS = \
6060 $( top_srcdir) /vapi/config.vapi \
6161 --vapidir=$( top_srcdir) /vapi \
6262 --pkg libxml-2.0 \
63- --pkg gee-1.0 \
63+ --pkg gee-0.8 \
6464 --pkg gobject-2.0 \
6565 --pkg gio-2.0 \
6666 $( NULL)
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ valac can also automate the entire build and link project in simple
3939cases:
4040
4141``` shell
42- valac -o appname --pkg gee-1.0 file_name_1.vala file_name_2.vala
42+ valac -o appname --pkg gee-0.8 file_name_1.vala file_name_2.vala
4343```
4444
4545The ` -o ` switch requests that an object file is created, rather than
4646just outputting C source files. The ` --pkg ` option says that this build
47- needs information from the * gee-1.0 * package. You do not need to specify
47+ needs information from the * gee-0.8 * package. You do not need to specify
4848details about what libraries to link in, the package has this
4949information internally. Finally, a list of source files is given. If you
5050need a more complicated build process, use the ` -C ` switch to generate C
You can’t perform that action at this time.
0 commit comments