105 Commits

Author SHA1 Message Date
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
Colomban Wendling
59e13f9e44 Add a script to update Python filetype's identifiers list 2015-11-14 22:57:22 +01:00
Colomban Wendling
c081983e85 Scintilla update script: properly abort on lexer copy error 2015-09-20 17:53:13 +02:00
Enrico Tröger
8d367d49b9 Merge pull request #360 from b4n/travis-test
travis: Add a Travis CI settings file
2015-07-11 10:05:30 +02:00
Colomban Wendling
3e2b4a269b travis: Make it a bit easier to change GTK bundle URLs 2015-07-10 23:45:48 +02:00
Colomban Wendling
02e6682ea6 travis: Enable Windows cross-compilation
We unfortunately can't run tests as they require running the just build
(foreign) executable, but at least it tries and build the Windows code
paths.
2015-07-10 23:32:56 +02:00
Thomas Martitz
9224c3c391 win32: run geany.nsi.in through automake to replace @GTK_VERSION@ variable
This automatically keeps the installer's idea of Gtk version with the one
used to compile geany in sync.

Traditionally we use the bundles from gtk.org to compile geany, and this
is also used for the installer. With msys2, we can use precompiled
msys2 binaries. These exist for GTK3 as well so we can actually provide a
GTK3 based installer. The installer naturually should reflect this.
Msys2's GTK2 is also newer.

Use the new script gtk-bundle-from-msys2.sh to extract the precompiled
GTK binaries from msys2 / pacman for packing the installer (can also be
used to make a zip for sharing).

mkdir gtk; cd gtk; ../scripts/gtk-bundle-from-msys.sh [-c] [-z] [-2 | -3]

waf is also adapted to process geany.nsi.in. This implies geany.nsi is now
under _build_, not in the root anymore.
2015-07-05 18:28:09 +02:00
Colomban Wendling
efb639435c Scintilla update script: only ask for checking when something changed
Only ask the user to check the SciLexer.h diff if the file actually
changed.
2015-04-21 15:40:15 +02:00
Colomban Wendling
264df2ec7b Scintilla update script: improve success banner 2015-04-21 15:39:30 +02:00
Colomban Wendling
96cc37946f Scintilla update script: strip "a/" and "b/" automatically 2015-04-21 15:34:54 +02:00
Colomban Wendling
06068d38d8 Fix a typo in the update script 2014-04-14 16:37:29 +02:00
Fitorec
f934d2cf94 Update the create_php_tags.php script
* Uses more recent URL (as updated in other PR)
* Downloads the funcsummary.txt file by itself
* Support running the script from any directory

Closes #47
2013-08-15 22:24:25 -07:00
John Long
a1e9205270 Update PHP source repo for tags and tags file
The new tags file seems to have lots of new symbols. It needs testing
by PHP programmers.

Closes #137
2013-08-15 13:09:35 -07:00
Colomban Wendling
7d1cd77eef update-scintilla.sh: Fix displaying of the message for new files 2013-07-21 11:33:40 +02:00
Colomban Wendling
6b406d04dc Add a note in the Scintilla update script to add files to the build system 2013-06-06 16:07:08 +02:00
Enrico Tröger
82f259f6b5 Print filename of failed plugin 2013-02-03 12:35:05 +01:00
Enrico Tröger
baafa6325c Strip more tags which start with a keyword 2012-09-12 19:29:21 +02:00
Enrico Tröger
883ce3acb6 Add method to generate also tags for __builtins__
This way we get easily also tags for standard exceptions and a few builtin types.
2012-08-29 23:03:25 +02:00
Enrico Tröger
29f0d02be3 Add a warning about running this script with its potential side effects 2012-08-29 22:40:54 +02:00
Enrico Tröger
f1cb61f6cb Ignore tag names starting a Python keyword
This removes tags like 'pass_', 'pass_stmt' or 'return_stmt' which are quite annoying
when typing the actual keywords and pressing Enter afterwards.
Also add some more modules and packages to the ignore list to avoid weird side effects
when importing them (even though antigravity is funny).
2012-08-29 22:22:57 +02:00
Colomban Wendling
409c1a68a5 Make argument checking in Scintilla update script more strict 2012-06-30 22:00:42 +02:00