• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

data/H03-May-2022-66,51553,787

docs/H02-Mar-2021-2,5632,225

gtksourceview/H03-May-2022-67,26743,550

msvc/H02-Mar-2021-5817

po/H02-Mar-2021-218,467168,327

scripts/H02-Mar-2021-144108

tests/H02-Mar-2021-15,62411,980

testsuite/H02-Mar-2021-7,9155,690

AUTHORSH A D02-Mar-2021462 1713

COPYINGH A D02-Mar-202125.8 KiB505418

HACKINGH A D02-Mar-20215.9 KiB149108

NEWSH A D02-Mar-202145.3 KiB1,6881,394

README.mdH A D02-Mar-20211.1 KiB4432

README.win32H A D02-Mar-20213.5 KiB7157

gtksourceview.doapH A D02-Mar-20211.7 KiB3934

gtksourceview.pc.inH A D02-Mar-2021359 1311

meson.buildH A D02-Mar-20219.1 KiB311269

README.md

1GtkSourceView
2=============
3
4GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+
5widget for multiline text editing. GtkSourceView adds support for syntax
6highlighting, undo/redo, file loading and saving, search and replace, a
7completion system, printing, displaying line numbers, and other features
8typical of a source code editor.
9
10The GtkSourceView library is free software and is released under the terms of
11the GNU Lesser General Public License, see the 'COPYING' file for more details.
12The official web site is https://wiki.gnome.org/Projects/GtkSourceView.
13
14Dependencies
15------------
16
17* GLib >= 2.48
18* GTK+ >= 3.24
19* libxml2 >= 2.6
20* freebidi >= 0.19.7
21
22Installation
23------------
24
25Simple install procedure from a tarball:
26```
27  $ mkdir build
28  $ meson build
29  $ cd build
30  [ Become root if necessary ]
31  $ ninja install
32```
33
34See the file 'INSTALL' for more detailed information.
35
36To build the latest version of GtkSourceView plus its dependencies from Git,
37[Jhbuild](https://wiki.gnome.org/Projects/Jhbuild) is recommended.
38
39
40How to contribute
41-----------------
42
43See the 'HACKING' file.
44

README.win32

1Building GtkSourceView for Windows with Meson using Visual Studio
2=========
3
4Meson is now the supported method of building GtkSourceView with Visual Studio, where the process
5of doing so is described in the following section:
6
7Prior to building, you will need the following:
8-Python 3.5.x or later
9-Meson 0.49.0 (or later) at this time of writing
10-A version of Visual Studio 2008 to 2019.
11-Ninja build tool (unless --backend=vs is
12 specified in the Meson configure command line for
13 Visual Studio 2010, 2015, 2017, 2019)
14-The pkg-config utility (or a compatible one), either in
15 your PATH or found by setting PKG_CONFIG to point to
16 such a tool.
17
18-GLib 2.48.0 (or later) at this time of writing
19-GTK 3.20.0 (or later) at this time of writing
20-LibXML2 2.6 (or later) at this time of writing
21-libgladeui 3.9 (or later) at this time of writing [optional]
22-GObject-Introspection 1.42.0 (or later) at this time of writing [optional]
23
24For the depedent packages, you will need to ensure that their pkg-config (.pc) files
25could be found by the pkg-config utility, either directly or by setting PKG_CONFIG_PATH
26to point to the path(s) where the .pc files could be found.  For libxml2, if .pc files
27are not available, ensure that its headers and import library can be found by ensuring
28your INCLUDE and LIB environment variables include these repective paths.  For the
29introspection to complete successfully, you will also need to ensure that the DLLs can be
30found in the bindir entries of your .pc files or in your PATH.
31
32To build GtkSourceView, do the following:
33
34-Open a Visual Studio command prompt.
35-In the command prompt, create an empty build directory that is on the same drive
36 as the GtkSourceView sources.
37-Run the command in the command prompt in your build directory:
38   meson <path_to_GtkSourceView_sources> --buildtype=... --prefix=... -Dvapi=false
39
40 Where:
41  -buildtype can be debug, release,plain or debugoptmized (default),
42   please see the Meson documentation for more details
43  -prefix is where the built files are copied to upon 'install'
44  -Dvapi=false is the build to not check for Vala, which is normally not present
45   on Visual Studio builds.
46
47 You may want to specify the following as well:
48  --backend=vs: Generate Visual Studio projects for building on Visual Studio 2010, 2015
49                2017, 2019.  This will remove the need for Ninja.  Please note that the
50                generated project files are only valid on the machine they are generated.
51  -Dgir=false: Disable introspection builds.
52
53-If the previous command completed successfully, carry out the build by running 'ninja' or
54 by opening and building the projects with the generated Visual Studio projects, if using
55 --backend=vs.  If desired, run the test using 'ninja test' or building the 'test' project
56 in the Visual Studio projects.
57
58-Install the build results using 'ninja install' or building the 'install' project in the
59 Visual Studio projects.
60
61Some additional notes on building with Visual Studio 2008:
62===
63The builds generate the SxS manifest files that need to be manually embedded into the built
64DLL and EXE files, which can be done by after running 'ninja install' using the Visual Studio
65command prompt from within the build directory:
66
67 for /r %f in (*.dll.manifest) do if exist <install_prefix>\bin\%~nf mt /manifest %f /outputresource:<install_prefix>\bin\%~nf;2
68 for /r %f in (*.exe.manifest) do if exist <install_prefix>\bin\%~nf mt /manifest %f /outputresource:<install_prefix>\bin\%~nf;1
69
70This is to ensure that the built binaries can be run.
71