1
by Neil Jagdish Patel
Initial autofoo |
1 |
#
|
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
2 |
# Based on Clutter's autofoo. Here's how this goes down: |
1
by Neil Jagdish Patel
Initial autofoo |
3 |
#
|
4 |
# api_version = The soname version "libnux-1.0.so" |
|
5 |
# version = The package version "1.2.2" |
|
6 |
# |
|
7 |
# Making a point release: |
|
8 |
# - Increase micro_version to the next even number |
|
23
by Neil Jagdish Patel
Fix some spelling mistakes |
9 |
# - Increase interface_age to the next even number UNLESS there was an API |
1
by Neil Jagdish Patel
Initial autofoo |
10 |
# addition/deprecation, at which point you should set it to 0 |
11 |
#
|
|
12 |
# After the release: |
|
13 |
# - Increase micro_version to the next odd number |
|
14 |
# - Increase interface_version to the next odd number |
|
15 |
# |
|
699.4.1
by Tim Penhey
Move trunk to 4.0. |
16 |
m4_define([nux_major_version], [4]) |
17 |
m4_define([nux_minor_version], [0]) |
|
443
by Neil Jagdish Patel
[release] 1.4.0 |
18 |
m4_define([nux_micro_version], [0]) |
1
by Neil Jagdish Patel
Initial autofoo |
19 |
|
699.4.1
by Tim Penhey
Move trunk to 4.0. |
20 |
m4_define([nux_api_version], [4.0]) |
524.1.2
by Jay Taoko
* Nux/ABI.h is now generated from ABI.h.in during the configure process |
21 |
# Increase the number (to the current date) everytime you propose a branch that breaks the API or ABI |
22 |
# The number format is : year/month/day |
|
23 |
# e.g.: december 5th, 2011 is: 20111205 |
|
551
by Jay Taoko
Releasing 2.2 |
24 |
# To make more than one API change in a day, add a number to the date. Like 20111205.xx |
660.1.1
by Jay Taoko
* Added support for re-directed views |
25 |
|
769.2.9
by Marco Trevisan (Treviño)
configure.ac: increase ABI version |
26 |
m4_define([nux_abi_version], [20130411.0]) |
1
by Neil Jagdish Patel
Initial autofoo |
27 |
|
28 |
m4_define([nux_version], |
|
29 |
[nux_major_version.nux_minor_version.nux_micro_version]) |
|
30 |
||
31 |
# increase the interface age by 1 for each release; if the API changes, |
|
32 |
# set to 0. interface_age and binary_age are used to create the soname |
|
33 |
# of the shared object: |
|
34 |
#
|
|
35 |
# (<minor> * 100 + <micro>) - <interface_age> |
|
36 |
#
|
|
37 |
# this allows using the same soname for different micro-releases in case |
|
38 |
# no API was added or deprecated. for instance: |
|
39 |
#
|
|
40 |
# nux 1.2.0 -> 100 * 2 + 0 = 200, interface age = 0 -> 200 |
|
41 |
# nux 1.2.2 -> 100 * 2 + 2 = 202, interface age = 2 -> 200 |
|
42 |
# nux 1.2.4 -> 100 * 2 + 4 = 204, interface age = 4 -> 200 |
|
43 |
# [ API addition, deprecation ] |
|
44 |
# nux 1.2.6 -> 100 * 2 + 6 = 206, interface age = 0 -> 206 |
|
45 |
# nux 1.2.8 -> 100 * 2 + 8 = 208, interface age = 2 -> 206 |
|
46 |
# nux 1.2.10 -> 100 * 2 + 10 = 210, interface age = 4 -> 206 |
|
47 |
# ... |
|
48 |
#
|
|
369
by Neil Jagdish Patel
[release] 1.0.1 |
49 |
m4_define([nux_interface_age], [0]) |
1
by Neil Jagdish Patel
Initial autofoo |
50 |
m4_define([nux_binary_age], |
51 |
[m4_eval(100 * nux_minor_version + nux_micro_version)]) |
|
52 |
||
53 |
AC_PREREQ(2.59) |
|
54 |
||
55 |
AC_INIT([nux], |
|
56 |
[nux_version], |
|
57 |
[https://bugs.launchpad.net/nux]) |
|
699.4.1
by Tim Penhey
Move trunk to 4.0. |
58 |
AC_COPYRIGHT([Copyright 2010-2012 Inalogic Inc.]) |
4
by Neil Jagdish Patel
Add pkgconfig file |
59 |
|
60 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |
|
1
by Neil Jagdish Patel
Initial autofoo |
61 |
|
62 |
AC_CONFIG_SRCDIR([Makefile.am]) |
|
63 |
AM_CONFIG_HEADER([config.h]) |
|
64 |
AM_INIT_AUTOMAKE([1.10]) |
|
65 |
||
66 |
NUX_MAJOR_VERSION=nux_major_version |
|
67 |
NUX_MINOR_VERSION=nux_minor_version |
|
68 |
NUX_MICRO_VERSION=nux_micro_version |
|
69 |
NUX_VERSION=nux_version |
|
70 |
NUX_API_VERSION=nux_api_version |
|
524.1.2
by Jay Taoko
* Nux/ABI.h is now generated from ABI.h.in during the configure process |
71 |
NUX_ABI_VERSION=nux_abi_version |
1
by Neil Jagdish Patel
Initial autofoo |
72 |
AC_SUBST(NUX_MAJOR_VERSION) |
73 |
AC_SUBST(NUX_MINOR_VERSION) |
|
74 |
AC_SUBST(NUX_MICRO_VERSION) |
|
75 |
AC_SUBST(NUX_VERSION) |
|
76 |
AC_SUBST(NUX_API_VERSION) |
|
524.1.2
by Jay Taoko
* Nux/ABI.h is now generated from ABI.h.in during the configure process |
77 |
AC_SUBST(NUX_ABI_VERSION) |
1
by Neil Jagdish Patel
Initial autofoo |
78 |
|
79 |
m4_define([lt_current], |
|
80 |
[m4_eval(100 * nux_minor_version + nux_micro_version - nux_interface_age)]) |
|
81 |
m4_define([lt_revision], [nux_interface_age]) |
|
82 |
m4_define([lt_age], [m4_eval(nux_binary_age - nux_interface_age)]) |
|
83 |
NUX_LT_CURRENT=lt_current |
|
84 |
NUX_LT_REV=lt_revision |
|
85 |
NUX_LT_AGE=lt_age |
|
86 |
NUX_LT_VERSION="$NUX_LT_CURRENT:$NUX_LT_REV:$NUX_LT_AGE" |
|
17
by Neil Jagdish Patel
Fix LT versioning, a couple of pc file bugs |
87 |
NUX_LT_LDFLAGS="-version-info $NUX_LT_VERSION" |
1
by Neil Jagdish Patel
Initial autofoo |
88 |
|
89 |
AC_SUBST(NUX_LT_VERSION) |
|
90 |
AC_SUBST(NUX_LT_LDFLAGS) |
|
91 |
||
47.1.2
by Gord Allott
made nicer so that we don't conflict with others |
92 |
AC_CONFIG_MACRO_DIR([m4]) |
93 |
||
1
by Neil Jagdish Patel
Initial autofoo |
94 |
dnl =========================================================================== |
95 |
||
96 |
# Checks for programs |
|
296.1.1
by Loïc Molinari
Improved unity_support_test tool |
97 |
AC_PROG_CC_C99
|
1
by Neil Jagdish Patel
Initial autofoo |
98 |
AC_PROG_CXX
|
99 |
AM_PROG_CC_C_O
|
|
100 |
||
101 |
# require libtool >= 2.2 |
|
102 |
LT_PREREQ([2.2.6]) |
|
103 |
LT_INIT([disable-static]) |
|
104 |
||
105 |
# Checks for header files |
|
106 |
AC_HEADER_STDC
|
|
107 |
||
108 |
# Checks for typedefs, structures and compiler charecteristics |
|
109 |
AC_C_CONST
|
|
110 |
||
111 |
# Checks for library functions |
|
112 |
AC_FUNC_MALLOC
|
|
113 |
AC_FUNC_MMAP
|
|
114 |
AC_CHECK_FUNCS([memset munmap strcasecmp strdup]) |
|
115 |
||
116 |
PKG_PROG_PKG_CONFIG
|
|
117 |
||
118 |
dnl =========================================================================== |
|
653.1.1
by Stephen M. Webb
resolves unresolved libraries (lp: #680168 ) |
119 |
GL_PKGS="gl glu glew glewmx xext x11" |
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
120 |
MAINTAINER_CFLAGS="" |
121 |
||
690.4.3
by Tim Penhey
Add automake options for USE_X11 |
122 |
# X11 build |
123 |
AC_ARG_ENABLE([x_support], |
|
124 |
[AC_HELP_STRING([--enable-x-support=@<:@no/yes@:>@], |
|
125 |
[Enable X11 code path @<:@default=yes@:>@])], |
|
126 |
[], |
|
127 |
[enable_x_support=yes]) |
|
128 |
AS_IF([test "x$enable_x_support" = "xyes"], [ |
|
129 |
MAINTAINER_CFLAGS+=" -DUSE_X11"
|
|
130 |
]) |
|
131 |
AS_IF([test "x$enable_x_support" = "xno"], [ |
|
132 |
MAINTAINER_CFLAGS+=" -DNO_X11"
|
|
133 |
]) |
|
134 |
||
135 |
AM_CONDITIONAL(USE_X11, [test "x$enable_x_support" = "xyes"]) |
|
136 |
||
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
137 |
# Enable opengl es 20 code path |
138 |
AC_ARG_ENABLE([opengles_20], |
|
139 |
[AC_HELP_STRING([--enable-opengles-20=@<:@no/yes@:>@], |
|
140 |
[Enable OpenGL ES 20 code path @<:@default=no@:>@])], |
|
141 |
[], |
|
142 |
[enable_opengles_20=no]) |
|
143 |
AS_IF([test "x$enable_opengles_20" = "xyes"], |
|
144 |
[ |
|
688.4.2
by Jay Taoko
* Clean ARM build. |
145 |
MAINTAINER_CFLAGS+=" -DNUX_OPENGLES_20"
|
146 |
GL_PKGS="egl glesv2"
|
|
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
147 |
] |
148 |
)
|
|
149 |
AM_CONDITIONAL(NUX_OPENGLES_20, [test "x$enable_opengles_20" = "xyes"]) |
|
150 |
||
690.4.8
by Tim Penhey
Add minimal build flag. |
151 |
# Minimal builds |
152 |
AC_ARG_ENABLE([minimal_build], |
|
153 |
[AC_HELP_STRING([--enable-minimal-build=@<:@no/yes@:>@], |
|
154 |
[Enable minimal builds @<:@default=no@:>@])], |
|
155 |
[], |
|
156 |
[enable_minimal_build=no]) |
|
157 |
||
158 |
AS_IF([test "x$enable_minimal_build" = "xyes"], [ |
|
159 |
MAINTAINER_CFLAGS+=" -DNUX_MINIMAL"
|
|
160 |
]) |
|
161 |
AM_CONDITIONAL(NUX_MINIMAL, [test "x$enable_minimal_build" = "xyes"]) |
|
162 |
||
163 |
||
344.11.40
by Travis Watkins
merge with lp:nux |
164 |
AC_SUBST(GL_PKGS) |
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
165 |
AC_SUBST(MAINTAINER_CFLAGS) |
166 |
||
167 |
dnl =========================================================================== |
|
1
by Neil Jagdish Patel
Initial autofoo |
168 |
|
618.2.1
by steve at stevebaker
Use shared tinyxml lib. Has the side effect of removing some Coverity warnings |
169 |
PKG_CHECK_MODULES(NUX_CORE, |
170 |
glib-2.0 >= 2.25.14 |
|
171 |
gthread-2.0 |
|
172 |
sigc++-2.0 |
|
173 |
gio-2.0 |
|
631.1.2
by Jay Taoko
* Removed dependency of tinyxml. Using Gnome g_markup to parse xml style files. |
174 |
) |
1
by Neil Jagdish Patel
Initial autofoo |
175 |
AC_SUBST(NUX_CORE_CFLAGS) |
176 |
AC_SUBST(NUX_CORE_LIBS) |
|
177 |
||
9
by Neil Jagdish Patel
Add NuxGraphics with licensing |
178 |
PKG_CHECK_MODULES(NUX_GRAPHICS, |
179 |
glib-2.0 >= 2.25.14 |
|
157.1.8
by Jay Taoko
* Build fixes |
180 |
gdk-pixbuf-2.0 |
615.1.3
by Jay Taoko
* Deprecated nux-image library. The feature by nux-image has been merged into nux-graphics. |
181 |
cairo >= 1.9.14 |
182 |
libpng >= 1.2.44 |
|
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
183 |
$GL_PKGS |
13
by Neil Jagdish Patel
Add support for Nux |
184 |
xxf86vm |
188.1.1
by Loïc Molinari
Use the sigc++ library in the nux::Trackable base class |
185 |
sigc++-2.0 |
514
by Jay Taoko
*Added dependency on libutouch-geis |
186 |
xinerama |
13
by Neil Jagdish Patel
Add support for Nux |
187 |
) |
9
by Neil Jagdish Patel
Add NuxGraphics with licensing |
188 |
AC_SUBST(NUX_GRAPHICS_CFLAGS) |
189 |
AC_SUBST(NUX_GRAPHICS_LIBS) |
|
190 |
||
13
by Neil Jagdish Patel
Add support for Nux |
191 |
PKG_CHECK_MODULES(NUX, |
192 |
glib-2.0 >= 2.25.14 |
|
79.1.1
by jassmith at gmail
Implement pixbuf loader |
193 |
gdk-pixbuf-2.0 |
15
by Neil Jagdish Patel
Fix some missing libs |
194 |
gthread-2.0 |
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
195 |
$GL_PKGS |
13
by Neil Jagdish Patel
Add support for Nux |
196 |
sigc++-2.0 |
64.1.4
by Mirco Müller
added pangocairo-based text-rendering, added initial support for screen-DPI-query |
197 |
pango |
198 |
pangocairo |
|
157.1.8
by Jay Taoko
* Build fixes |
199 |
libpcre |
13
by Neil Jagdish Patel
Add support for Nux |
200 |
) |
201 |
AC_SUBST(NUX_CFLAGS) |
|
202 |
AC_SUBST(NUX_LIBS) |
|
203 |
||
296.1.1
by Loïc Molinari
Improved unity_support_test tool |
204 |
PKG_CHECK_MODULES(UNITY_SUPPORT_TEST, |
205 |
x11 |
|
344.12.5
by Alexandros Frantzis
Build system fixes to allow building against GLES2.0. Nux (in non-debug mode) |
206 |
$GL_PKGS |
371
by Neil Jagdish Patel
[release] 1.0.2 |
207 |
xcomposite |
208 |
xdamage |
|
296.1.1
by Loïc Molinari
Improved unity_support_test tool |
209 |
libpci |
210 |
) |
|
211 |
AC_SUBST(UNITY_SUPPORT_TEST_CFLAGS) |
|
212 |
AC_SUBST(UNITY_SUPPORT_TEST_LIBS) |
|
13
by Neil Jagdish Patel
Add support for Nux |
213 |
|
574.1.1
by Brandon Schaefer
Ready for development, using exmamples not instead of text. |
214 |
PKG_CHECK_MODULES(IBUS, |
215 |
glib-2.0 >= 2.25.14 |
|
216 |
gio-2.0 |
|
217 |
ibus-1.0 |
|
218 |
gobject-2.0 |
|
219 |
) |
|
220 |
||
221 |
AC_SUBST(IBUS_CFLAGS) |
|
222 |
AC_SUBST(IBUS_LIBS) |
|
223 |
||
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
224 |
dnl ********************************************************* |
225 |
dnl Enable/disable gestures (geis, from Open Input Framework) |
|
226 |
dnl ********************************************************* |
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
227 |
|
641.1.1
by Jay Taoko
* Make libgeis package optional in nux-graphics.pc.in. For instance libgeis is not available on Ubuntu Precise. |
228 |
GEIS_PKGS="libgeis" |
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
229 |
AC_ARG_ENABLE(gestures, |
230 |
AC_HELP_STRING(--disable-gestures, Disables multitouch gestures support (default: auto-detect)), |
|
231 |
[], |
|
232 |
[enable_gestures=auto]) |
|
233 |
||
234 |
||
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
235 |
# Check for geis as an optional dependency |
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
236 |
AS_IF([test "x$enable_gestures" = "xauto"], |
237 |
[ |
|
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
238 |
PKG_CHECK_MODULES(GEIS,
|
239 |
[libgeis >= 2.2.10], |
|
240 |
[have_geis=yes], |
|
241 |
[have_geis=no]) |
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
242 |
]) |
243 |
||
244 |
||
245 |
AS_IF([test "x$enable_gestures" = "xyes"], |
|
246 |
[ |
|
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
247 |
PKG_CHECK_MODULES(GEIS,
|
248 |
[libgeis >= 2.2.10], |
|
249 |
[have_geis=yes], |
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
250 |
[ |
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
251 |
AC_MSG_ERROR([libgeis not found!]) |
252 |
have_geis=no |
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
253 |
]) |
254 |
]) |
|
255 |
||
256 |
AS_IF([test "x$enable_gestures" = "xno"], |
|
641.1.2
by Jay Taoko
* Fix |
257 |
[have_geis=no]) |
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
258 |
|
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
259 |
AS_IF([test "x$have_geis" = "xyes"], |
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
260 |
[ |
261 |
NUX_GESTURES_SUPPORT="NUX_GESTURES_SUPPORT"
|
|
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
262 |
AM_CONDITIONAL(HAVE_GEIS, true)
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
263 |
], |
264 |
[ |
|
265 |
NUX_GESTURES_SUPPORT="NUX_NO_GESTURES_SUPPORT"
|
|
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
266 |
AM_CONDITIONAL(HAVE_GEIS, false)
|
641.1.2
by Jay Taoko
* Fix |
267 |
GEIS_PKGS=""
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
268 |
]) |
269 |
||
270 |
AC_SUBST(NUX_GESTURES_SUPPORT) |
|
271 |
||
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
272 |
AC_SUBST(GEIS_CFLAGS) |
273 |
AC_SUBST(GEIS_LIBS) |
|
641.1.3
by Jay Taoko
* Fix |
274 |
AC_SUBST(GEIS_PKGS) |
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
275 |
|
356.3.21
by Tim Penhey
Add rules for the configure script to confirm presense of google test and google mock. |
276 |
dnl ************************************ |
370
by Neil Jagdish Patel
Make tests optional to allow for gtest not being in main |
277 |
dnl Enable/disable tests |
356.3.21
by Tim Penhey
Add rules for the configure script to confirm presense of google test and google mock. |
278 |
dnl ************************************ |
279 |
||
606.1.1
by Jay Taoko
* Fix make check: |
280 |
|
370
by Neil Jagdish Patel
Make tests optional to allow for gtest not being in main |
281 |
AC_ARG_ENABLE([tests], |
282 |
[AC_HELP_STRING([--enable-tests=@<:@no/yes@:>@], |
|
283 |
[Enable Nux Testing @<:@default=yes@:>@])], |
|
284 |
[], |
|
285 |
[enable_tests=yes]) |
|
606.1.2
by Jay Taoko
* Prevent "make check" from running if some packages are not installed. |
286 |
|
370
by Neil Jagdish Patel
Make tests optional to allow for gtest not being in main |
287 |
AS_IF([test "x$enable_tests" = "xyes"], |
288 |
[ |
|
606.1.2
by Jay Taoko
* Prevent "make check" from running if some packages are not installed. |
289 |
# Check for google gtest
|
290 |
CHECK_GTEST
|
|
291 |
AS_IF([test "x$have_gtest" = "xyes"], |
|
292 |
[AC_SUBST([GTEST_CPPFLAGS])], |
|
293 |
[AC_MSG_WARN([you are missing google-test, apt-get install libgtest-dev])]) |
|
294 |
||
295 |
# Check for googlemock |
|
296 |
AC_LANG_PUSH([C++]) |
|
297 |
AC_CHECK_HEADER([gmock/gmock.h], |
|
298 |
[have_gmock=yes], |
|
299 |
[AC_MSG_WARN([you are missing google-mock, apt-get install google-mock])]) |
|
300 |
AC_LANG_POP([C++]) |
|
301 |
||
668.2.2
by Eleni Maria Stea
configure.ac warns if libboost-filesystem libboost-system or libboost is missing |
302 |
#Check for libboost |
668.2.1
by Eleni Maria Stea
checks for: |
303 |
|
304 |
AC_LANG_PUSH([C++]) |
|
305 |
AC_CHECK_HEADER([boost/filesystem.hpp], |
|
306 |
[have_boost=yes], |
|
307 |
[AC_MSG_WARN([you are missing boost, apt-get install libboost-dev])]) |
|
308 |
AC_LANG_POP([C++]) |
|
309 |
||
310 |
#Check for libboost-system |
|
311 |
||
312 |
AC_LANG_PUSH([C++]) |
|
313 |
AC_CHECK_HEADER([boost/system/config.hpp], |
|
314 |
[have_boost_system=yes], |
|
315 |
[AC_MSG_WARN([you are missing boost-system, apt-get install libboost-system-dev])]) |
|
316 |
AC_LANG_POP([C++]) |
|
317 |
||
318 |
#Check for libboost-filesystem |
|
319 |
||
320 |
AC_LANG_PUSH([C++]) |
|
321 |
AC_CHECK_HEADER([boost/filesystem/fstream.hpp], |
|
322 |
[have_boost_fs=yes], |
|
323 |
[AC_MSG_WARN([you are missing boost-filesystem, apt-get install libboost-filesystem-dev])]) |
|
324 |
AC_LANG_POP([C++]) |
|
325 |
||
606.1.2
by Jay Taoko
* Prevent "make check" from running if some packages are not installed. |
326 |
#Check for libxtst |
327 |
AC_CHECK_HEADER([X11/extensions/XTest.h], |
|
328 |
[have_xtest=yes], |
|
329 |
[AC_MSG_WARN([you are missing libxtst-dev, apt-get install libxtst-dev])]) |
|
370
by Neil Jagdish Patel
Make tests optional to allow for gtest not being in main |
330 |
] |
331 |
)
|
|
606.1.2
by Jay Taoko
* Prevent "make check" from running if some packages are not installed. |
332 |
|
333 |
AS_IF([test "x$have_xtest" = "xyes" && |
|
668.2.1
by Eleni Maria Stea
checks for: |
334 |
test "x$have_boost" = "xyes" &&
|
335 |
test "x$have_boost_system" = "xyes" &&
|
|
336 |
test "x$have_boost_fs" = "xyes" &&
|
|
606.1.2
by Jay Taoko
* Prevent "make check" from running if some packages are not installed. |
337 |
test "x$have_gmock" = "xyes" &&
|
338 |
test "x$have_gtest" = "xyes"], |
|
339 |
[], |
|
340 |
[enable_tests=no] |
|
341 |
)
|
|
342 |
||
370
by Neil Jagdish Patel
Make tests optional to allow for gtest not being in main |
343 |
AM_CONDITIONAL(BUILD_TESTS, [test "x$enable_tests" = "xyes"]) |
344 |
||
727.3.1
by Francis Ginther
Adding code coverage reporting with coverage-html and coverage-xml targets. |
345 |
###########################
|
346 |
# gcov coverage reporting |
|
347 |
###########################
|
|
348 |
m4_include([m4/gcov.m4]) |
|
349 |
AC_TDD_GCOV
|
|
350 |
AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes]) |
|
351 |
AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes]) |
|
352 |
AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes]) |
|
353 |
AC_SUBST(COVERAGE_CFLAGS) |
|
354 |
AC_SUBST(COVERAGE_LDFLAGS) |
|
355 |
||
1
by Neil Jagdish Patel
Initial autofoo |
356 |
dnl =========================================================================== |
357 |
||
47.1.1
by Gord Allott
first doxygen builds working |
358 |
# sets up doxygen |
47.1.3
by Neil Jagdish Patel
Support for enabling documentation building |
359 |
DX_DOXYGEN_FEATURE(ON) |
47.1.1
by Gord Allott
first doxygen builds working |
360 |
DX_HTML_FEATURE(ON) |
361 |
DX_CHM_FEATURE(OFF) |
|
362 |
DX_CHI_FEATURE(OFF) |
|
363 |
DX_MAN_FEATURE(OFF) |
|
364 |
DX_RTF_FEATURE(OFF) |
|
365 |
DX_XML_FEATURE(OFF) |
|
47.1.3
by Neil Jagdish Patel
Support for enabling documentation building |
366 |
DX_PDF_FEATURE(OFF) |
47.1.1
by Gord Allott
first doxygen builds working |
367 |
DX_PS_FEATURE(OFF) |
368 |
DX_INIT_DOXYGEN(nux, doxygen.cfg, doc) |
|
369 |
||
47.1.3
by Neil Jagdish Patel
Support for enabling documentation building |
370 |
AC_ARG_ENABLE([documentation], |
371 |
[AC_HELP_STRING([--enable-documentation=@<:@no/yes@:>@], |
|
372 |
[Enable building of documentation @<:@default=no@:>@])], |
|
373 |
[], |
|
374 |
[enable_documentation=no]) |
|
375 |
||
376 |
AM_CONDITIONAL(BUILD_DOCUMENTATION, [test "x$enable_documentation" = "xyes"]) |
|
377 |
||
114
by Neil Jagdish Patel
[release] 0.9.1 |
378 |
dnl ========================================================================== |
47.1.1
by Gord Allott
first doxygen builds working |
379 |
|
1
by Neil Jagdish Patel
Initial autofoo |
380 |
if test "x$GCC" = "xyes"; then |
688.3.5
by Jay Taoko
* Runtime fixes. |
381 |
GCC_FLAGS="-g -Werror -Wall -Wextra -Wno-unused-parameter -std=c++0x" |
1
by Neil Jagdish Patel
Initial autofoo |
382 |
fi
|
383 |
||
686.3.3
by Jay Taoko
* Fixed build of tests. |
384 |
# gcc flags for building the tests. |
690.1.1
by Tim Penhey
Add -O0 to the debug cflags. |
385 |
GCC_TESTS_FLAGS="-g -O0 -Wall -Wextra -std=c++0x" |
686.3.3
by Jay Taoko
* Fixed build of tests. |
386 |
|
1
by Neil Jagdish Patel
Initial autofoo |
387 |
# use strict compiler flags only on development releases |
131
by Didier Roche
fix maintainer mode |
388 |
m4_define([maintainer_mode_default], [m4_if(m4_eval(nux_micro_version % 2), [1], [yes], [no])]) |
389 |
AC_ARG_ENABLE([maintainer-mode], |
|
390 |
[AC_HELP_STRING([--enable-maintainer-mode=@<:@no/yes@:>@], |
|
1
by Neil Jagdish Patel
Initial autofoo |
391 |
[Use strict compiler flags @<:@default=no@:>@])], |
392 |
[], |
|
131
by Didier Roche
fix maintainer mode |
393 |
[enable_maintainer_mode=maintainer_mode_default]) |
1
by Neil Jagdish Patel
Initial autofoo |
394 |
|
131
by Didier Roche
fix maintainer mode |
395 |
AS_IF([test "x$enable_maintainer_mode" = "xyes" && test "x$GCC" = "xyes"], |
1
by Neil Jagdish Patel
Initial autofoo |
396 |
[ |
688.4.1
by Jay Taoko
* Fixing ARM build. |
397 |
MAINTAINER_CFLAGS+="-Werror -Wall -Wextra -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wno-unused-parameter"
|
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
398 |
] |
399 |
)
|
|
400 |
||
686.3.2
by Jay Taoko
* Minor fix. |
401 |
# This enables lots of useful debugging output in Nux. |
402 |
# In debug mode, relax the number of build failures due to -Werror. |
|
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
403 |
AC_ARG_ENABLE([debug], |
404 |
[AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@], |
|
405 |
[Enable Nux debugging @<:@default=no@:>@])], |
|
406 |
[], |
|
407 |
[enable_debug=no]) |
|
408 |
AS_IF([test "x$enable_debug" = "xyes"], |
|
409 |
[ |
|
688.3.5
by Jay Taoko
* Runtime fixes. |
410 |
MAINTAINER_CFLAGS+=" -DNUX_DEBUG"
|
690.4.2
by Tim Penhey
Merge trunk and resolve conflicts. |
411 |
GCC_FLAGS="-g -O0 -Wall -Wextra -Wno-unused-parameter -std=c++0x"
|
1
by Neil Jagdish Patel
Initial autofoo |
412 |
] |
413 |
)
|
|
414 |
||
660.3.1
by Jay Taoko
* Warnings fixes. |
415 |
AC_SUBST(GCC_FLAGS) |
686.3.3
by Jay Taoko
* Fixed build of tests. |
416 |
AC_SUBST(GCC_TESTS_FLAGS) |
1
by Neil Jagdish Patel
Initial autofoo |
417 |
AC_SUBST(MAINTAINER_CFLAGS) |
418 |
||
45
by Neil Jagdish Patel
Make building examples optional |
419 |
# this enables lots of useful debugging output in Nux |
420 |
AC_ARG_ENABLE([examples], |
|
421 |
[AC_HELP_STRING([--enable-examples=@<:@no/yes@:>@], |
|
422 |
[Enable building of examples @<:@default=yes@:>@])], |
|
423 |
[], |
|
424 |
[enable_examples=yes]) |
|
425 |
||
426 |
AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = "xyes"]) |
|
91
by Didier Roche
add additional links needed if examples are built |
427 |
AM_COND_IF([BUILD_EXAMPLES], |
428 |
[ |
|
197.1.1
by Didier Roche
nux doesn't need anymore to incude glu now that glew fix has been uploaded (LP: #711945) |
429 |
PKG_CHECK_MODULES(NUX_EXAMPLES, x11)
|
91
by Didier Roche
add additional links needed if examples are built |
430 |
AC_SUBST(NUX_EXAMPLES_CFLAGS)
|
431 |
AC_SUBST(NUX_EXAMPLES_LIBS)
|
|
432 |
], |
|
433 |
)
|
|
434 |
||
135.2.1
by Jay Taoko
* Adding gpu tests |
435 |
# this enables gpu tests |
436 |
AC_ARG_ENABLE([gputests], |
|
437 |
[AC_HELP_STRING([--enable-gputests=@<:@no/yes@:>@], |
|
438 |
[Enable building of gpu tests @<:@default=yes@:>@])], |
|
439 |
[], |
|
440 |
[enable_gputests=yes]) |
|
441 |
||
156
by Jay Taoko
* Added GPU tests |
442 |
AM_CONDITIONAL(BUILD_GPUTESTS, [test "x$enable_gputests" = "xyes"]) |
135.2.1
by Jay Taoko
* Adding gpu tests |
443 |
AM_COND_IF([BUILD_GPUTESTS], |
444 |
[ |
|
445 |
PKG_CHECK_MODULES(NUX_GPUTESTS, x11)
|
|
446 |
AC_SUBST(NUX_GPUTESTS_CFLAGS)
|
|
447 |
AC_SUBST(NUX_GPUTESTS_LIBS)
|
|
448 |
], |
|
449 |
)
|
|
45
by Neil Jagdish Patel
Make building examples optional |
450 |
|
1
by Neil Jagdish Patel
Initial autofoo |
451 |
dnl =========================================================================== |
452 |
||
453 |
AC_CONFIG_FILES([ |
|
454 |
Makefile
|
|
455 |
data/Makefile
|
|
3
by Neil Jagdish Patel
Import and build NuxCore |
456 |
NuxCore/Makefile
|
4
by Neil Jagdish Patel
Add pkgconfig file |
457 |
NuxCore/nux-core.pc
|
9
by Neil Jagdish Patel
Add NuxGraphics with licensing |
458 |
NuxGraphics/Makefile
|
459 |
NuxGraphics/nux-graphics.pc
|
|
13
by Neil Jagdish Patel
Add support for Nux |
460 |
Nux/Makefile
|
15
by Neil Jagdish Patel
Fix some missing libs |
461 |
Nux/nux.pc
|
524.1.2
by Jay Taoko
* Nux/ABI.h is now generated from ABI.h.in during the configure process |
462 |
Nux/ABI.h
|
637.2.1
by Daniel d'Andrada
Make utouch-geis an optional dependency |
463 |
Nux/Features.h
|
37.1.2
by Neil Jagdish Patel
Add bits for examples, and the first example |
464 |
examples/Makefile
|
1
by Neil Jagdish Patel
Initial autofoo |
465 |
tests/Makefile
|
151
by Didier Roche
move the support test to tools/ and install in libexec |
466 |
tools/Makefile
|
135.2.1
by Jay Taoko
* Adding gpu tests |
467 |
gputests/Makefile
|
1
by Neil Jagdish Patel
Initial autofoo |
468 |
]) |
469 |
||
470 |
AC_OUTPUT
|
|
471 |
||
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
472 |
BOLD_GREEN="\033@<:@1;32m" |
473 |
GREEN="\033@<:@0;32m" |
|
474 |
BOLD_WHITE="\033@<:@1;37m" |
|
475 |
RESET="\033@<:@0m" |
|
476 |
||
477 |
echo "" |
|
478 |
echo -e "${BOLD_GREEN} Nux - $VERSION" |
|
479 |
echo -e "${RESET}" |
|
480 |
||
47.1.3
by Neil Jagdish Patel
Support for enabling documentation building |
481 |
echo -e "${GREEN} • Global:${RESET}" |
468
by Andrea Cimitan
Fix typo in configure.ac |
482 |
echo -e " Prefix : ${BOLD_WHITE}${prefix}" |
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
483 |
|
484 |
echo -e "${RESET}" |
|
485 |
echo -e "${GREEN} • Compiler Options:${RESET}" |
|
468
by Andrea Cimitan
Fix typo in configure.ac |
486 |
echo -e " CFLAGS : ${BOLD_WHITE}${CFLAGS} ${GCC_FLAGS}${RESET}" |
487 |
echo -e " Maintainer CFlags : ${BOLD_WHITE}${MAINTAINER_CFLAGS}${RESET}" |
|
488 |
echo -e " Debug Mode : ${BOLD_WHITE}${enable_debug}${RESET}" |
|
47.1.3
by Neil Jagdish Patel
Support for enabling documentation building |
489 |
|
490 |
echo -e "${RESET}" |
|
491 |
echo -e "${GREEN} • Documentation:${RESET}" |
|
468
by Andrea Cimitan
Fix typo in configure.ac |
492 |
echo -e " Build Documentation: ${BOLD_WHITE}${enable_documentation}${RESET}" |
45
by Neil Jagdish Patel
Make building examples optional |
493 |
|
494 |
echo -e "${RESET}" |
|
495 |
echo -e "${GREEN} • Misc Options:${RESET}" |
|
468
by Andrea Cimitan
Fix typo in configure.ac |
496 |
echo -e " Build Examples : ${BOLD_WHITE}${enable_examples}${RESET}" |
497 |
echo -e " Build Gpu Tests : ${BOLD_WHITE}${enable_gputests}${RESET}" |
|
498 |
echo -e " Build Nux Tests : ${BOLD_WHITE}${enable_tests}${RESET}" |
|
727.3.1
by Francis Ginther
Adding code coverage reporting with coverage-html and coverage-xml targets. |
499 |
echo -e " Coverage Reporting : ${BOLD_WHITE}${use_gcov}${RESET}" |
637.2.24
by Daniel d'Andrada
Use geis from Open Input Framework instead of utouch-geis |
500 |
echo -e " Gestures support : ${BOLD_WHITE}${have_geis}${RESET}" |
690.4.3
by Tim Penhey
Add automake options for USE_X11 |
501 |
echo -e " X11 build support : ${BOLD_WHITE}${enable_x_support}${RESET}" |
690.4.8
by Tim Penhey
Add minimal build flag. |
502 |
echo -e " Minimal build : ${BOLD_WHITE}${enable_minimal_build}${RESET}" |
37.1.1
by Neil Jagdish Patel
- Color my autofoo |
503 |
echo "" |
504 |
||
505 |
echo -e "${RESET}" |