234 Commits

Author SHA1 Message Date
Colomban Wendling
d42837f021 Merge pull request #351 from techee/guards
Protect private definitions by the GEANY_PRIVATE macro in headers
2014-10-18 18:13:45 +02:00
Enrico Tröger
5a243fd224 Explicitly define Windows version for older Mingw environments 2014-10-15 17:33:57 +02:00
Jiří Techet
10a28b4191 Protect private definitions by the GEANY_PRIVATE macro in headers
In addition, this patch defines the GEANY_PRIVATE macro for the tag
manager library where it wasn't defined before, removes 2 tag manager
headers from distribution as they are not needed by plugins and
in the tag manager changes the docstrings to ordinary comments for
private definitions.
2014-10-09 20:51:32 +02:00
Jiří Techet
ce46f8f0b4 Remove unused tm_tagmanager.c 2014-10-05 22:40:15 +02:00
Jiří Techet
4646323878 Remove unused tm_symbol 2014-10-05 22:40:15 +02:00
Jiří Techet
b512aa0368 Remove unused tm_project and all its references in docstrings 2014-10-05 22:40:15 +02:00
Enrico Tröger
f219ea1b38 Cleanup apidoc and hackingdoc commands to use ctx.top_dir and ctx.out_dir
This should be cleaner and safer than using '../' mixed with os.chdir().
2014-08-29 16:12:40 +02:00
Enrico Tröger
5bd878cb7c Reuse ConfigurationContext when searching for programs if we have one
This enables proper logging when checking for rst2html during configuration.
2014-08-29 15:46:44 +02:00
Enrico Tröger
9307a6877c Explicitly specify extensions when searching for rst2html
This is cleaner than searching for rst2html and rst2html.py since Waf
offers the API for this and this change enables Windows support.
While at it, add binary name 'rst2html2' for ArchLinux support.
2014-08-29 15:40:47 +02:00
Enrico Tröger
6ecf750759 The missing bits for HTML docs: only on GIT build and support in-tree geany.html 2014-08-29 14:39:26 +02:00
Enrico Tröger
8961f0b6e9 Add option --disable-html-docs 2014-08-29 14:27:12 +02:00
Enrico Tröger
985cd9146f Add "hackingdoc" as proper action and remove non-working --hackingdoc option 2014-08-29 14:13:57 +02:00
Enrico Tröger
8d5e666d9e Build HTML documentation automatically during the build process
This is an improvement as requested in #322 to update the HTML docs
after geany.txt or geany.css have changed.
Also, with this change the resulting HTML will be generated in the outdir,
not in srcdir/doc anymore.
2014-08-29 14:10:56 +02:00
Colomban Wendling
64910a4ea1 Fix Waf build after HTML documentation untracking 2014-08-27 19:02:24 +02:00
Enrico Tröger
881ca4fa02 Fix typo in generated geany.pc 2014-06-22 14:09:04 +02:00
Enrico Tröger
01cf9a9fdc Do not use backward slashes in geany.pc on Windows
And explicitly convert backward slashes in the global
prefix to forward slashes as tools like pkg-config or
gcc could interpret the backward slashes as escape
sequences.
2014-05-29 17:47:37 +02:00
Enrico Tröger
1bacf869e0 Extend use of os.path.join() to construct platform compliant paths 2014-05-24 11:32:45 +02:00
Matthew Brush
4efcbab332 Include what you use
This is a mega-commit - because most of it had to be done in one go
otherwise some commits would fail to compile - that attempts to fix a
few problems with Geany's includes as well as various other related
cleanups. After this change it's easier to use includes and there's
little worry about which order things are included in or who includes
what.

Overview of changes:

* Include config.h at the start of each source file if HAVE_CONFIG_H
  is defined (and never in headers).
* Go through each source file and make the includes section generally
  like this:
  - Always config.h first as above
  - Then if the file has a header with the same name, include that
  - Then include in alphabetical order each other internal/geany header.
  - Then include standard headers
  - Then include non-standard system headers
  - Then include GLib/GTK+ related stuff
* Doing as above makes it easier to find implicit header include
  dependencies and it exposed quite a few weird problems with includes
  or forward declarations, fix those.
* Make geany.h contain not much besides some defines.
  - Add a little header file "app.h" for GeanyApp and move it there
  - Move "app" global to new "app.h" file
  - Move "ignore_callback" global to "callbacks.h"
  - Move "geany_object" global to "geanyobject.h"
* Add an include in "geany.h" for "app.h" since GeanyApp used to be
  defined there and some plugins included this header to access
  GeanyApp.
* Include "gtkcompat.h" everywhere instead of gtk/gtk.h so that
  everywhere sees the same definitions (not a problem in practice AFAIK
  so this could be changed back if better that way.
* Remove forward declarations from previous commits as some people
  apparently consider this bad style, despite that it reduces inter-
  header dependencies.

TODO:
* As always, to test on win32
* As always, to test with not Autotools
* Test plugins better, both builtin and geany-plugins, likely API/ABI bump
* Test with various defines/flags that may change what is included
* win32.[ch] not really touched since I couldn't test
2014-05-21 15:37:19 -07:00
Colomban Wendling
09b2cf1592 Fix Waf build for recent Doxyfile changes
Recent changes to Doxyfile.in added new placeholders the build system
has to replace, and Waf recognized them but failed, not knowing what to
replace them with.
2014-05-02 21:41:02 +02:00
Colomban Wendling
d58c344585 Waf: correctly link libm as required 2014-04-29 02:03:06 +02:00
Colomban Wendling
24f2363fb7 Post release version bump
Say hello to Geany 1.25 "Veed"!
2014-04-13 19:33:23 +02:00
Enrico Tröger
e5eb69b20c Add linker flags -static-libgcc and -static-libstdc++ on Windows
This seems necessary with newer gcc versions to not
require libgcc*.dll libraries on runtime.
2014-04-13 11:00:56 +02:00
Enrico Tröger
9f294c25c3 Add --no-scm configure option to bypass SCM detection 2014-04-13 10:43:55 +02:00
Enrico Tröger
82842b230b Install header files and geany.pc also on Windows 2014-04-11 00:06:29 +02:00
Colomban Wendling
6a85a50d21 Replace bare CTags parser ID numbers with an enumeration
Avoid using magic numbers in the source for better readability and
easier maintenance.
2014-01-29 01:34:26 +01:00
SiegeLord
3d7ade4e02 Integrate the Rust lexer with the rest of Geany's functionality 2014-01-14 12:50:38 -05:00
Colomban Wendling
82f82ed372 Use GLib's portable version gethostname(): g_get_host_name()
Drop our own portability layer and use GLib's one instead (which
actually does exactly the same as our own).

Thanks to Matthew for spotting this.
2013-08-18 00:52:48 +02:00
Dimitar Zhekov
b7fbb78ca7 import cxx_compiler to enable C++ compiler detection change 2013-06-08 13:43:37 +02:00
Dimitar Zhekov
42c00f2f50 sync C++ compiler detection under Windows with the C compiler detection 2013-06-07 06:57:41 +02:00
Enrico Troeger
9edd4f4a90 For now disable detecion of MSVC on Windows 2013-04-24 22:05:56 +02:00
Igor Shaula
666f471c78 Update waf to version 1.7.10 and fix wscript to fit new API 2013-04-14 15:02:36 +03:00
Enrico Tröger
0c5442b625 More GTK3 Waf build system adjustments
Install the src/gtkcompat.h header and install data/geany.css if necessary.
2013-03-11 19:54:28 +01:00
Enrico Tröger
84176f2e8a Add --enable-gtk3 configure flag to the Waf build system 2013-03-10 18:21:05 +01:00
Colomban Wendling
7e3a235436 Post release version bump
Say welcome to Geany 1.24 "Sakai"!
2013-03-10 17:00:01 +01:00
Baptiste Pierrat
d4e61bf093 Add support for Abaqus files
Support for Abaqus (.inp) files, including scintilla lexer and tag
parser.

Signed-off-by: Baptiste Pierrat <baptiste.pierrat@gmail.com>
2013-02-12 14:56:38 +01:00
Lex
8294ea2c2e Add Asciidoc filetype
Add a filetype for Asciidoc with symbol parser, but not styling.
2013-01-17 15:43:24 +11:00
Colomban Wendling
320f10c85b Don't install themes index on non-Windows
On non-Windows, the icons are installed on the system's icon directory,
so installing our index.theme might override the system's one.  Since
it's highly unlikely the theme index is missing on non-Windows, just
don't install it.
2013-01-15 22:28:00 +01:00
Colomban Wendling
b80c8cd2a9 Fix custom icons on Windows
Install all icons on Windows, as well as a theme index because the
system doesn't have one and one is required.

Also install the theme index on non-Windows, although it shouldn't
be necessary because the system is likely to provide one.
2013-01-14 19:42:03 +01:00
Colomban Wendling
dabae1f94f Replace images embedded in the sources with proper themable icons
Additionally, provide SVG versions of the icons as well as them
rendered at the various icons sizes.
2013-01-01 19:10:48 +01:00
Colomban Wendling
eeddd6f720 Move custom styles to a resource file 2012-10-08 17:51:19 +02:00
Colomban Wendling
d11f9a51b9 Rely on GModule for adding or not the --export-dynamic linker flag
We explicitly use GModule's .pc since 7b2f0fe, and it provides the
appropriate flag: we don't need to add it ourselves anymore.  Moreover,
since this flag is not needed (nor available) on all platforms (e.g.
Windows or MacOS X), it is safer to let GModule deal with adding it
anyway.
2012-07-17 23:09:00 +02:00
Nick Treleaven
c72dce06a5 Merge remote-tracking branch 'origin/master' into tm/tree-refactoring
Conflicts:
	makefile.win32
	src/makefile.win32
2012-07-04 12:15:53 +01:00
Colomban Wendling
e9d61aa7e5 Post release version bump 2012-06-18 19:16:05 +02:00
Colomban Wendling
1c2c455b1d Update copyright information 2012-06-18 01:15:04 +02:00
Colomban Wendling
13f3ee5e99 Update Waf build system 2012-05-08 23:01:23 +02:00
Enrico Tröger
9a80935835 Use the same Python interpreter for the genapi.py script as for the Waf script
This ensures we call the genapi.py script with the same Python interpreter as the Waf
build system was called. This is relevant if the used interpreter is not 'python' but e.g.
python2 or python2.6 or whatever.
2012-05-04 23:13:36 +02:00
Enrico Tröger
3eb8e23ecc Code style cleanup
Several small fixes to be more PEP8 compliant (while not completely on purpose).
There are no functional changes.
2012-04-12 23:07:33 +02:00
Enrico Tröger
012a904e74 Define minimum GTK and Glib versions globally to be reused later 2012-04-12 23:00:39 +02:00
Colomban Wendling
5f0963d470 List package dependencies only in configure.ac
This prevents from having to update both configure.ac and geany.pc.in
every time our dependencies (e.g. GTK version) change.
2012-04-12 18:41:53 +02:00
Colomban Wendling
ba4ccc6653 Waf: mark Scintilla as using GLib and GModule
This doesn't change anything in practice since GTK brings GLib and
GModule is linked with the Geany program, but it's cleaner for the lib
to list its true dependencies.
2012-04-02 15:56:47 +02:00