125 Commits

Author SHA1 Message Date
Thomas Martitz
3512f6cc74 gtkdoc: add support for array annotions
We can now use @array and @arraylen{param} annotations for arrays that
will make it to the generated gtkdoc header.

g-ir-scanner cannot properly parse 'gchar **' parameters without this.
2018-12-03 21:51:01 +01:00
Colomban Wendling
c415d1d19d Merge pull request #1931 from eht16/issue1930_fix_gtk3_bundle_download
Update link to GTK+3 bundle for test builds to self-hosted version
2018-09-21 11:16:26 +02:00
Colomban Wendling
0b75601ac8 Merge pull request #1914 from b4n/scintilla/update-3-10-0
Update Scintilla to version 3.10.0

Fixes #1421.
2018-09-19 22:22:24 +02:00
Enrico Tröger
a098fa847b Update link to GTK+3 bundle for test builds to self-hosted version
The host win32builder.gnome.org seems dead and so host the GTK+3 bundle
we use to test builds for Windows cross-compilation on our own.
2018-08-26 09:52:42 +02:00
Enrico Tröger
60621434c9 Windows: Update indirect dependencies for bundle creation
Pango now requires fribidi, so we need to install it.
Update the download URL for UnxUtils.
Remove unnecessary cmake files after installation.
2018-08-19 23:32:02 +02:00
Colomban Wendling
958deb55fe Add a few extra hints in the Scintilla update script 2018-08-01 14:41:00 +02:00
Colomban Wendling
18360460ab Update Scintilla to version 3.7.5 (#1503)
* Update Scintilla to version 3.7.5

This now requires a C++11-capable compiler.

Closes #1308.

* Test using newer dist on Travis

Since Scintilla needs C++11

* Add debugging code for when configure fails

* Workaround a pkg-config-corsswrapper bug on Ubuntu 14.04

See https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1327242
2017-07-25 09:24:05 +10:00
Colomban Wendling
46812c47fb Fix scripts/set-release-date when LC_TIME is set
We actually need to override LC_TIME if it is set, so use LC_ALL which
overrides everything rather than LANG that is used as a fallback.
2017-03-19 18:20:53 +01:00
Colomban Wendling
1aa82c3e6e Add a script to fixup copyright years translations 2017-03-18 20:02:45 +01:00
Colomban Wendling
1724bab3b8 scripts/github-news: Fix issues link
Closes #1360.
2017-01-11 14:32:37 +01:00
Enrico Tröger
16ea1d35a6 Fix file names of generated tags files for C, PHP and Python 2016-12-28 23:20:47 +01:00
Enrico Tröger
59f080d058 Update tags and filedefs path references in scripts
This is a follow-up of #485.
2016-12-28 22:59:46 +01:00
Colomban Wendling
26c0d6266e Add a script to set the release date 2016-11-13 19:04:37 +01:00
Colomban Wendling
a4990e9da5 Add a script to make the version bump 2016-11-13 19:04:18 +01:00
Colomban Wendling
5241f40dcf Add a script to convert NEWS to GitHub release format 2016-11-13 18:15:45 +01:00
Enrico Tröger
973a721574 Use pre-compiled 'grep' binary from MSYS2 on Windows
This drops the self-compiled 'grep' version which caused issues
with recursive searches on Windows as well as with non-ASCII
characters in paths.
The pre-compiled 'grep' binary from MSYS2 (matching the target ABI)
seems to solve probably all of the known problems on Windows.
The only drawback is that we need to ship a few additional MSYS2
libraries on which the 'grep' binary depends.

Closes #1229 and #1260.
2016-11-13 14:24:17 +01:00
Jiří Techet
470d99ee94 Update various comments mentioning tagmanager/src 2016-07-21 13:14:21 +02:00
Colomban Wendling
ec15b6f529 scripts/cross-build-mingw.sh: Use newer support libraries with GTK2
Combine the libraries from the GTK3 bundle with GTK from the GTK2 one
to get newer GLib & co for GTK2 builds.
2016-06-23 22:33:49 +02:00
Enrico Troeger
b28d14bb2b Windows: Add new indirect dependencies to the bundle 2016-06-17 20:42:49 +02:00
Colomban Wendling
81a5b771b5 scripts/cross-build-mingw.sh: Allow to specify the build directory
This can be useful to maintain 2 separate build directories in parallel,
i.e. for GTK2 and 3 builds.
2016-06-08 12:30:03 +02:00
Enrico Tröger
bd8caf2a85 GTK bundle creation: don't delete necessary GLib schema files
The files in share/glib-2.0/schemas are necessary for GTK3,
so don't delete them but everything else on the same directory level.
2016-03-21 23:16:12 +01:00
Thomas Martitz
0bafb067b9 gtkdoc: fix gtkdoc header script for structs with inline types
Doxygen adds unhandled xml output for structs that define types inline, for
example struct Foo { enum { FOO, BAR } baz; }. A type definitions precedes the
members. The script wrongly assumed the first sectiondef child of compounddef
would contain all members, but actually this is the case for sectiondefs with
kind=public-attrib (the sectiondef defining the type has kind=public-type).
2016-03-14 08:26:45 +01:00
Colomban Wendling
214365777d Merge pull request #769 from eht16/drop_waf_build_system
Drop Waf build system support
2016-03-13 13:15:43 +01:00
Enrico Tröger
479cf3dc53 Improve Windows GTK runtime bundle creation script
Update the list of dependencies, include sort.exe and grep.exe,
create a information file with all download links of included
binaries and re-structure the script for better readability.
See #560 for details.
2016-03-12 16:54:42 +01:00
Thomas Martitz
c3c67c96d4 doc: Generate geany-sciwrappers-gtkdoc.h along geany-gtkdoc.h
geany-sciwrappers-gtkdoc.h contains all scintilla_object_* methods. It is
intended that they are going to be exposed through a separate .gir file,
therefore a separate header makes things easier.

This is useful when you want scintlla-related stuff in a separate .gir file or
oarse it specially otherwise.

gen-api-gtkdoc.py: Add switch to write out scintilla_object methods
2016-03-09 23:42:09 +01:00
Thomas Martitz
d868130d78 tagmanager: make doxygen comments and typedefs gtkdoc generation friendly
Because of the missing "typedef struct TMFoo" it was missing from the gtkdoc
header (the struct listings are always without typedef). This is also
consistent with the rest of geany.

@gironly for TMParserType so it's picked up as well.
2016-03-09 22:49:51 +01:00
Thomas Martitz
4a54ee86f3 Include more headers into geany-gtkdoc.h
gtkcompat.h is more convinient, and includes gtk.h and glib.h. Due to
including ScintillaWidget.h, the manual ScintillaObject typedef isn't required
anymore.
2016-03-09 22:49:51 +01:00
Colomban Wendling
ed700a9dc6 Fix forward reference to enumeration types in GtkDoc header
It's invalid to forward-declare enumerations, yet they might be
referenced by typedefs.

Fix this by outputting enumerations first so typedefs can references
them.  As enumerations can't reference other types, it's safe to place
them before anything else.

Closes #952.
Closes #955.
2016-03-09 22:41:48 +01:00
Colomban Wendling
0556b89d08 Merge pull request #603 from eht16/create_php_tags_update
Rewrite PHP tag creation script using up to date upstream tag
definitions.
2016-03-06 16:28:03 +01:00
Enrico Tröger
b0cf5f6cda Rewrite PHP tag creation script using up to date upstream tag definitions
Fixes #584.
2016-03-06 09:41:39 +01:00
Colomban Wendling
9a854751e1 Fix GtkDoc header generation script to handle references inside typedef 2016-03-04 23:21:23 +01:00
Colomban Wendling
44694f638b Remove unused classes from the GtkDoc header generation script 2016-03-01 16:37:08 +01:00
Colomban Wendling
9ce7c22ad7 Fix Doxygen generation instead of working around incorrect output
Make Doxygen ignore `G_{BEGIN,END}_DECLS` and `GEANY_API_SYMBOL` itself
instead of stripping those manually when parsing the XML output.

This makes Doxygen parsing more robust by ignoring some odd C syntax,
and also improves the HTML version removing some incorrect C code
references.
2016-03-01 16:34:05 +01:00
Colomban Wendling
6f79a94cec Add GPL header to GtkDoc header generation script 2016-02-29 00:34:27 +01:00
Colomban Wendling
00f0ce5991 PEP8 the GtkDoc header generator script a little
But use 110 as line length and leave visual operators alignment alone.
2016-02-28 04:49:51 +01:00
Colomban Wendling
e4bdf45cc6 Add support for out and optional GI annotations 2016-02-28 01:58:48 +01:00
Colomban Wendling
2b8cfb3f84 Use %NULL, %FALSE and %TRUE in the GtkDoc output 2016-02-28 01:02:52 +01:00
Colomban Wendling
7f9129c938 Mark private fields as private in the GtkDoc header 2016-02-20 22:45:53 +01:00
Colomban Wendling
91daa9f9db Fix handling of some GtkDoc annotations 2016-02-19 00:03:30 +01:00
Thomas Martitz
c35f29ae36 scripts: gen-api-gtkdoc.py cleanup
- do not write out scintilla_object_* functions
- remove scioutput file parameter
- do not open output file until after xml parsing to avoid stale files
- fixed simplesect handling
- handle output being a pipe to head or tail
2016-02-16 07:14:11 +01:00
Matthew Brush
8033e26180 Remove commented-out code 2016-02-16 06:52:09 +01:00
Matthew Brush
5a391c79c3 Replace comments and asserts with doc-comments and doc-tests 2016-02-16 06:52:09 +01:00
Matthew Brush
4f3e32e95f Rename global "constant" to follow PEP-8 naming 2016-02-16 06:52:08 +01:00
Matthew Brush
402e771c9b Use 4-space indentation to follow PEP-8
The other Python scripts already follow this convention.
2016-02-16 06:52:08 +01:00
Matthew Brush
5534e5cca0 Move globals into main() function
This prevents running a bunch of top-level code if the module is
ever imported and cleans-up the global namespace.
2016-02-16 06:52:08 +01:00
Thomas Martitz
658821d2dd api: add script to generate {geany,geany-scintilla}-gtkdoc.h
The script reads the doxygen xml output and generates two headers (optionally
a single header) that contains all of the plugin API in gtk-doc format.

Two headers because it's preferrable to group Scintilla related stuff
into its own namespace. This is a lot easier if g-ir-scanner can
work with a separate header file. If we change minds later on the script is
prepared to generate only one header.
2016-02-07 17:50:23 +01:00
Enrico Tröger
632b215f77 Remove obsolete scripts/plugin_test.c
This script was used in the nightly builds to verify plugins will load
and have no undefined symbol references. Since the new way plugins
are built and linked, this is no longer necessary.
Additionally, this script won't work with new style geany_load_module()
plugins.
2016-01-23 15:29:03 +01:00
Enrico Tröger
34088fbbb8 Drop Waf build system support
See #768.
2015-12-13 14:36:12 +01:00
Colomban Wendling
f12edc0299 Update keywords too from the Python identifiers update script 2015-11-14 23:58:37 +01:00
Colomban Wendling
498764bcaf Refactor the Python identifiers update script for better flexibility 2015-11-14 23:52:58 +01:00