1018 Commits

Author SHA1 Message Date
David Tardon
725eba738e remove all traces of saxon
Change-Id: I33ca2c27d557d24e3900d7ebf8f3ea2d99b3cfb0
2012-10-25 14:48:23 +02:00
Tomas Chvatal
c627560d7a Do not die when using old configure options
Packagers get warning from autotools about using wrong configure opts.
If they decide to ignore it then its their problem.
With this approach we would have to die on all the configure script
changes which is bit annoying.
2012-10-25 12:54:55 +02:00
Peter Foley
2a9cf53b71 fix bluetooth enabling logic
Change-Id: Ia55154d001327a5d0f6ee20736f3335b01c80cf1
2012-10-24 10:20:02 -04:00
David Ostrovsky
97d83c45fa gbuildification of ct2n
Conflicts:
	config_host.mk.in

Change-Id: I98ca1bb2af19d99a7a908991cf27a148ee84c543
2012-10-23 19:11:01 +02:00
Andras Timar
ed24328deb make a configure message less confusing
Change-Id: I99b6fde467384aca690cdd0bd5b08e327c926f10
2012-10-22 17:27:05 +02:00
Luboš Luňák
1a90251fd2 move the ENABLE_DBGUTIL block higher in configure
the cpu/arch/gui/whatever block that follows it uses at least PROEXT
2012-10-22 17:25:40 +02:00
Stephan Bergmann
9cabab002b CLANGPLUGIN_CPPFLAGS for building plugin for Clang in nonstandard location
(i.e., configure with CLANGPLUGIN_CPPFLAGS=-I.../clang-installation/include
-I.../clang-build/tools/clang/include)

Change-Id: Ic6d2973629103f71c32f44ebba2ac70d137d18e7
2012-10-22 16:25:41 +02:00
Lubos Lunak
07f67f3ed7 fail on configure debug options that no longer make sense
Change-Id: I4d01e0e00bd06e219fdc0208292ddcd5631fa235
2012-10-22 14:56:20 +02:00
Lubos Lunak
3c00ff3a45 make configure remember C/CXX/OBJC/OBJCXX/LDFLAGS if explicitly passed to it
If not, the build system selects the right flags depending on --enable-debug
etc. , but e.g. packagers may want to do builds with e.g. both -O and -g.
This is also reasonably close to what autotools do, except that there configure
forces -g -O2 if nothing is explicitly given.

Change-Id: I1889569177ad3cbd6decdc7e9986f67ef5d4456a
2012-10-22 14:56:20 +02:00
Lubos Lunak
4e2e6bca85 use (gb_)ENABLE_DBGUTIL rather than the confusing (gb_)PRODUCT
Using --enable-debug already makes the build a non-product build,
so this whole 'product' notion is rather confusing when reading
the build system code.

Change-Id: I4bb6b879a6bcd8c76c4b48ddaccb433ab8eb4bb2
2012-10-22 14:56:19 +02:00
Lubos Lunak
a0320a9088 clean up configure options for debugging build
By default a product (non-developer) build is done. Code is optimized and no debugging
information is included (may be overriden though, see below).

Developers should preferably build with --enable-dbgutil , or at least --enable-debug.

The --enable-symbols switch has been removed. Use explicit CFLAGS/CXXFLAGS/LDFLAGS instead
if needed.

With --enable-debug optimizations are turned off and debugging information is included
(in order to make it possible to examine the code in a debugger). Additionally assertions
and logging is enabled (see SAL_WARN/SAL_INFO documentation for details and better control).
This switch should primarily by used for occassional development (such as when it is needed
to debug one module in a non-debug build, see also 'make DEBUG=true' below).

Using --enable-dbgutil is the recommended developer option. In addition to --enable-debug
it also enables additional checks, such as debugging mode for STL or checking compiler
plugins. This switch may also enable additional logging from obsolete debugging tools
(which should be converted to SAL_WARN/SAL_INFO for better control). Note that this option
makes the build binary incompatible from a --disable-dbgutil build, so it is not possible
to mix them.

When using --enable-debug/--enable-dbgutil , the build is noticeably larger because of the included
debugging information (compiler -g option). When disk space is an issue (or the computer
is not very powerful), the --enable-selective-debuginfo option allow specifying where
the debugging information should or should not be used. The option takes a list of arguments,
where all means everything, - prepended means not to enable, / appended means everything
in the directory; there is no ordering, more specific overrides more general,
and disabling takes precedence). For example, --enable-selective-debuginfo="all -sw/ -Library_sc"
enables debugginfo for everything except for anything in the sw module and the sc library.

Explicitly specified CFLAGS/CXXFLAGS/LDFLAGS override optimization and debugging options
(can be now also passed to configure which will make the build system use them).

If in a non-debug build it is needed to temporary build something as a debug build,
'make DEBUG=true' temporarily works as if --enable-debug was specified. It also temporarily
overrides debuginfo disabled using --enable-selective-debuginfo.

Old code using old logging functionality also has a concept of a debug level, forced using
'make DBGLEVEL=2'. Using a debug level of 2 (or higher) enables additional logging output.
New code should use SAL_WARN/SAL_INFO and use extra areas for additional logging output
that can be selectively enabled/disabled using SAL_LOG variable.

(Some smaller parts of this design will be implemented by separate follow-up commits.)

Change-Id: Ia6420ee3c99c217ead648e8967165eed7f632258
2012-10-22 14:56:19 +02:00
David Tardon
7f82096840 use absolute path
Change-Id: Ic814cba74dede2f5a079242d0194fe7579e670ab
2012-10-22 14:34:24 +02:00
Peter Foley
13a9b71d3a fix typo
Change-Id: I10ac442d9be4f592d79d8b2fbd824d94852781d9
2012-10-21 17:41:20 -04:00
Rene Engelhard
7c8c73dd5c fix sdremote related configure switches
sdremote itself apparently works also over IP (WLAN), so we don't need to
disable it when we just don't want/have bluetooth. And also dbus is also
needed in the bluez case

Change-Id: I55ba07cd715d1e9bd641ef28e2391e4fe85b85e0
2012-10-21 23:01:47 +02:00
Peter Foley
cd5fd07207 translations dir always exists with submodules
Change-Id: I7d6e671f45355eb03fb9e1a49d7123e2f1699e80
2012-10-21 12:41:10 -04:00
Peter Foley
ffcaa7651f convert postgresql to gbuild
Change-Id: Ia1345904a819d8edfad53c8882be35b398e8bc6e
2012-10-21 09:49:03 -04:00
David Tardon
de6b1a3099 only build librsvg deps if librsvg itself is built
gdk-pixbuf, gettext, glib, libcroco, libgsf and pango are only deps of
librsvg, which means they do not have to be configured/built in a build
without librsvg. In effect, this generalizes the previous exception for
Android and iOS.

Change-Id: Ia0bd5e1c2bfa27842d8806886cd5774a420a973f
2012-10-21 11:45:59 +02:00
Peter Foley
3955876751 use prefered name configure.ac to scilence aclocal 1.12 warning
Change-Id: I5875d3fface19bdce2948c6a2979b1b5e4e0735f
2012-10-19 16:59:21 -04:00