diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2012-09-04 07:03:02 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2012-09-04 07:03:02 +0000 |
commit | bf1fe91b6cc7b07198d7a21e9f0e023c9eeb81b3 (patch) | |
tree | 35a3dbf5de56ed32ffddff3b609674c6a44c24bf /legacy/eobj | |
parent | 853c851dd0f33a17e3c61f6272ad2d16ee5d5016 (diff) |
Eo: autotools + minor fixes so that it compiles on Windows (mainly reordering the header files inclusion
SVN revision: 76109
Diffstat (limited to 'legacy/eobj')
45 files changed, 1259 insertions, 53 deletions
diff --git a/legacy/eobj/AUTHORS b/legacy/eobj/AUTHORS new file mode 100644 index 0000000000..fe7b20832b --- /dev/null +++ b/legacy/eobj/AUTHORS | |||
@@ -0,0 +1 @@ | |||
Tom Hacohen <tom@stosb.com> | |||
diff --git a/legacy/eobj/ChangeLog b/legacy/eobj/ChangeLog new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/legacy/eobj/ChangeLog | |||
diff --git a/legacy/eobj/INSTALL b/legacy/eobj/INSTALL new file mode 100644 index 0000000000..7d1c323bea --- /dev/null +++ b/legacy/eobj/INSTALL | |||
@@ -0,0 +1,365 @@ | |||
1 | Installation Instructions | ||
2 | ************************* | ||
3 | |||
4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | ||
5 | 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
6 | |||
7 | Copying and distribution of this file, with or without modification, | ||
8 | are permitted in any medium without royalty provided the copyright | ||
9 | notice and this notice are preserved. This file is offered as-is, | ||
10 | without warranty of any kind. | ||
11 | |||
12 | Basic Installation | ||
13 | ================== | ||
14 | |||
15 | Briefly, the shell commands `./configure; make; make install' should | ||
16 | configure, build, and install this package. The following | ||
17 | more-detailed instructions are generic; see the `README' file for | ||
18 | instructions specific to this package. Some packages provide this | ||
19 | `INSTALL' file but do not implement all of the features documented | ||
20 | below. The lack of an optional feature in a given package is not | ||
21 | necessarily a bug. More recommendations for GNU packages can be found | ||
22 | in *note Makefile Conventions: (standards)Makefile Conventions. | ||
23 | |||
24 | The `configure' shell script attempts to guess correct values for | ||
25 | various system-dependent variables used during compilation. It uses | ||
26 | those values to create a `Makefile' in each directory of the package. | ||
27 | It may also create one or more `.h' files containing system-dependent | ||
28 | definitions. Finally, it creates a shell script `config.status' that | ||
29 | you can run in the future to recreate the current configuration, and a | ||
30 | file `config.log' containing compiler output (useful mainly for | ||
31 | debugging `configure'). | ||
32 | |||
33 | It can also use an optional file (typically called `config.cache' | ||
34 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | ||
35 | the results of its tests to speed up reconfiguring. Caching is | ||
36 | disabled by default to prevent problems with accidental use of stale | ||
37 | cache files. | ||
38 | |||
39 | If you need to do unusual things to compile the package, please try | ||
40 | to figure out how `configure' could check whether to do them, and mail | ||
41 | diffs or instructions to the address given in the `README' so they can | ||
42 | be considered for the next release. If you are using the cache, and at | ||
43 | some point `config.cache' contains results you don't want to keep, you | ||
44 | may remove or edit it. | ||
45 | |||
46 | The file `configure.ac' (or `configure.in') is used to create | ||
47 | `configure' by a program called `autoconf'. You need `configure.ac' if | ||
48 | you want to change it or regenerate `configure' using a newer version | ||
49 | of `autoconf'. | ||
50 | |||
51 | The simplest way to compile this package is: | ||
52 | |||
53 | 1. `cd' to the directory containing the package's source code and type | ||
54 | `./configure' to configure the package for your system. | ||
55 | |||
56 | Running `configure' might take a while. While running, it prints | ||
57 | some messages telling which features it is checking for. | ||
58 | |||
59 | 2. Type `make' to compile the package. | ||
60 | |||
61 | 3. Optionally, type `make check' to run any self-tests that come with | ||
62 | the package, generally using the just-built uninstalled binaries. | ||
63 | |||
64 | 4. Type `make install' to install the programs and any data files and | ||
65 | documentation. When installing into a prefix owned by root, it is | ||
66 | recommended that the package be configured and built as a regular | ||
67 | user, and only the `make install' phase executed with root | ||
68 | privileges. | ||
69 | |||
70 | 5. Optionally, type `make installcheck' to repeat any self-tests, but | ||
71 | this time using the binaries in their final installed location. | ||
72 | This target does not install anything. Running this target as a | ||
73 | regular user, particularly if the prior `make install' required | ||
74 | root privileges, verifies that the installation completed | ||
75 | correctly. | ||
76 | |||
77 | 6. You can remove the program binaries and object files from the | ||
78 | source code directory by typing `make clean'. To also remove the | ||
79 | files that `configure' created (so you can compile the package for | ||
80 | a different kind of computer), type `make distclean'. There is | ||
81 | also a `make maintainer-clean' target, but that is intended mainly | ||
82 | for the package's developers. If you use it, you may have to get | ||
83 | all sorts of other programs in order to regenerate files that came | ||
84 | with the distribution. | ||
85 | |||
86 | 7. Often, you can also type `make uninstall' to remove the installed | ||
87 | files again. In practice, not all packages have tested that | ||
88 | uninstallation works correctly, even though it is required by the | ||
89 | GNU Coding Standards. | ||
90 | |||
91 | 8. Some packages, particularly those that use Automake, provide `make | ||
92 | distcheck', which can by used by developers to test that all other | ||
93 | targets like `make install' and `make uninstall' work correctly. | ||
94 | This target is generally not run by end users. | ||
95 | |||
96 | Compilers and Options | ||
97 | ===================== | ||
98 | |||
99 | Some systems require unusual options for compilation or linking that | ||
100 | the `configure' script does not know about. Run `./configure --help' | ||
101 | for details on some of the pertinent environment variables. | ||
102 | |||
103 | You can give `configure' initial values for configuration parameters | ||
104 | by setting variables in the command line or in the environment. Here | ||
105 | is an example: | ||
106 | |||
107 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix | ||
108 | |||
109 | *Note Defining Variables::, for more details. | ||
110 | |||
111 | Compiling For Multiple Architectures | ||
112 | ==================================== | ||
113 | |||
114 | You can compile the package for more than one kind of computer at the | ||
115 | same time, by placing the object files for each architecture in their | ||
116 | own directory. To do this, you can use GNU `make'. `cd' to the | ||
117 | directory where you want the object files and executables to go and run | ||
118 | the `configure' script. `configure' automatically checks for the | ||
119 | source code in the directory that `configure' is in and in `..'. This | ||
120 | is known as a "VPATH" build. | ||
121 | |||
122 | With a non-GNU `make', it is safer to compile the package for one | ||
123 | architecture at a time in the source code directory. After you have | ||
124 | installed the package for one architecture, use `make distclean' before | ||
125 | reconfiguring for another architecture. | ||
126 | |||
127 | On MacOS X 10.5 and later systems, you can create libraries and | ||
128 | executables that work on multiple system types--known as "fat" or | ||
129 | "universal" binaries--by specifying multiple `-arch' options to the | ||
130 | compiler but only a single `-arch' option to the preprocessor. Like | ||
131 | this: | ||
132 | |||
133 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
134 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
135 | CPP="gcc -E" CXXCPP="g++ -E" | ||
136 | |||
137 | This is not guaranteed to produce working output in all cases, you | ||
138 | may have to build one architecture at a time and combine the results | ||
139 | using the `lipo' tool if you have problems. | ||
140 | |||
141 | Installation Names | ||
142 | ================== | ||
143 | |||
144 | By default, `make install' installs the package's commands under | ||
145 | `/usr/local/bin', include files under `/usr/local/include', etc. You | ||
146 | can specify an installation prefix other than `/usr/local' by giving | ||
147 | `configure' the option `--prefix=PREFIX', where PREFIX must be an | ||
148 | absolute file name. | ||
149 | |||
150 | You can specify separate installation prefixes for | ||
151 | architecture-specific files and architecture-independent files. If you | ||
152 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses | ||
153 | PREFIX as the prefix for installing programs and libraries. | ||
154 | Documentation and other data files still use the regular prefix. | ||
155 | |||
156 | In addition, if you use an unusual directory layout you can give | ||
157 | options like `--bindir=DIR' to specify different values for particular | ||
158 | kinds of files. Run `configure --help' for a list of the directories | ||
159 | you can set and what kinds of files go in them. In general, the | ||
160 | default for these options is expressed in terms of `${prefix}', so that | ||
161 | specifying just `--prefix' will affect all of the other directory | ||
162 | specifications that were not explicitly provided. | ||
163 | |||
164 | The most portable way to affect installation locations is to pass the | ||
165 | correct locations to `configure'; however, many packages provide one or | ||
166 | both of the following shortcuts of passing variable assignments to the | ||
167 | `make install' command line to change installation locations without | ||
168 | having to reconfigure or recompile. | ||
169 | |||
170 | The first method involves providing an override variable for each | ||
171 | affected directory. For example, `make install | ||
172 | prefix=/alternate/directory' will choose an alternate location for all | ||
173 | directory configuration variables that were expressed in terms of | ||
174 | `${prefix}'. Any directories that were specified during `configure', | ||
175 | but not in terms of `${prefix}', must each be overridden at install | ||
176 | time for the entire installation to be relocated. The approach of | ||
177 | makefile variable overrides for each directory variable is required by | ||
178 | the GNU Coding Standards, and ideally causes no recompilation. | ||
179 | However, some platforms have known limitations with the semantics of | ||
180 | shared libraries that end up requiring recompilation when using this | ||
181 | method, particularly noticeable in packages that use GNU Libtool. | ||
182 | |||
183 | The second method involves providing the `DESTDIR' variable. For | ||
184 | example, `make install DESTDIR=/alternate/directory' will prepend | ||
185 | `/alternate/directory' before all installation names. The approach of | ||
186 | `DESTDIR' overrides is not required by the GNU Coding Standards, and | ||
187 | does not work on platforms that have drive letters. On the other hand, | ||
188 | it does better at avoiding recompilation issues, and works well even | ||
189 | when some directory options were not specified in terms of `${prefix}' | ||
190 | at `configure' time. | ||
191 | |||
192 | Optional Features | ||
193 | ================= | ||
194 | |||
195 | If the package supports it, you can cause programs to be installed | ||
196 | with an extra prefix or suffix on their names by giving `configure' the | ||
197 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | ||
198 | |||
199 | Some packages pay attention to `--enable-FEATURE' options to | ||
200 | `configure', where FEATURE indicates an optional part of the package. | ||
201 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | ||
202 | is something like `gnu-as' or `x' (for the X Window System). The | ||
203 | `README' should mention any `--enable-' and `--with-' options that the | ||
204 | package recognizes. | ||
205 | |||
206 | For packages that use the X Window System, `configure' can usually | ||
207 | find the X include and library files automatically, but if it doesn't, | ||
208 | you can use the `configure' options `--x-includes=DIR' and | ||
209 | `--x-libraries=DIR' to specify their locations. | ||
210 | |||
211 | Some packages offer the ability to configure how verbose the | ||
212 | execution of `make' will be. For these packages, running `./configure | ||
213 | --enable-silent-rules' sets the default to minimal output, which can be | ||
214 | overridden with `make V=1'; while running `./configure | ||
215 | --disable-silent-rules' sets the default to verbose, which can be | ||
216 | overridden with `make V=0'. | ||
217 | |||
218 | Particular systems | ||
219 | ================== | ||
220 | |||
221 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
222 | CC is not installed, it is recommended to use the following options in | ||
223 | order to use an ANSI C compiler: | ||
224 | |||
225 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | ||
226 | |||
227 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
228 | |||
229 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
230 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
231 | a workaround. If GNU CC is not installed, it is therefore recommended | ||
232 | to try | ||
233 | |||
234 | ./configure CC="cc" | ||
235 | |||
236 | and if that doesn't work, try | ||
237 | |||
238 | ./configure CC="cc -nodtk" | ||
239 | |||
240 | On Solaris, don't put `/usr/ucb' early in your `PATH'. This | ||
241 | directory contains several dysfunctional programs; working variants of | ||
242 | these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | ||
243 | in your `PATH', put it _after_ `/usr/bin'. | ||
244 | |||
245 | On Haiku, software installed for all users goes in `/boot/common', | ||
246 | not `/usr/local'. It is recommended to use the following options: | ||
247 | |||
248 | ./configure --prefix=/boot/common | ||
249 | |||
250 | Specifying the System Type | ||
251 | ========================== | ||
252 | |||
253 | There may be some features `configure' cannot figure out | ||
254 | automatically, but needs to determine by the type of machine the package | ||
255 | will run on. Usually, assuming the package is built to be run on the | ||
256 | _same_ architectures, `configure' can figure that out, but if it prints | ||
257 | a message saying it cannot guess the machine type, give it the | ||
258 | `--build=TYPE' option. TYPE can either be a short name for the system | ||
259 | type, such as `sun4', or a canonical name which has the form: | ||
260 | |||
261 | CPU-COMPANY-SYSTEM | ||
262 | |||
263 | where SYSTEM can have one of these forms: | ||
264 | |||
265 | OS | ||
266 | KERNEL-OS | ||
267 | |||
268 | See the file `config.sub' for the possible values of each field. If | ||
269 | `config.sub' isn't included in this package, then this package doesn't | ||
270 | need to know the machine type. | ||
271 | |||
272 | If you are _building_ compiler tools for cross-compiling, you should | ||
273 | use the option `--target=TYPE' to select the type of system they will | ||
274 | produce code for. | ||
275 | |||
276 | If you want to _use_ a cross compiler, that generates code for a | ||
277 | platform different from the build platform, you should specify the | ||
278 | "host" platform (i.e., that on which the generated programs will | ||
279 | eventually be run) with `--host=TYPE'. | ||
280 | |||
281 | Sharing Defaults | ||
282 | ================ | ||
283 | |||
284 | If you want to set default values for `configure' scripts to share, | ||
285 | you can create a site shell script called `config.site' that gives | ||
286 | default values for variables like `CC', `cache_file', and `prefix'. | ||
287 | `configure' looks for `PREFIX/share/config.site' if it exists, then | ||
288 | `PREFIX/etc/config.site' if it exists. Or, you can set the | ||
289 | `CONFIG_SITE' environment variable to the location of the site script. | ||
290 | A warning: not all `configure' scripts look for a site script. | ||
291 | |||
292 | Defining Variables | ||
293 | ================== | ||
294 | |||
295 | Variables not defined in a site shell script can be set in the | ||
296 | environment passed to `configure'. However, some packages may run | ||
297 | configure again during the build, and the customized values of these | ||
298 | variables may be lost. In order to avoid this problem, you should set | ||
299 | them in the `configure' command line, using `VAR=value'. For example: | ||
300 | |||
301 | ./configure CC=/usr/local2/bin/gcc | ||
302 | |||
303 | causes the specified `gcc' to be used as the C compiler (unless it is | ||
304 | overridden in the site shell script). | ||
305 | |||
306 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | ||
307 | an Autoconf bug. Until the bug is fixed you can use this workaround: | ||
308 | |||
309 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | ||
310 | |||
311 | `configure' Invocation | ||
312 | ====================== | ||
313 | |||
314 | `configure' recognizes the following options to control how it | ||
315 | operates. | ||
316 | |||
317 | `--help' | ||
318 | `-h' | ||
319 | Print a summary of all of the options to `configure', and exit. | ||
320 | |||
321 | `--help=short' | ||
322 | `--help=recursive' | ||
323 | Print a summary of the options unique to this package's | ||
324 | `configure', and exit. The `short' variant lists options used | ||
325 | only in the top level, while the `recursive' variant lists options | ||
326 | also present in any nested packages. | ||
327 | |||
328 | `--version' | ||
329 | `-V' | ||
330 | Print the version of Autoconf used to generate the `configure' | ||
331 | script, and exit. | ||
332 | |||
333 | `--cache-file=FILE' | ||
334 | Enable the cache: use and save the results of the tests in FILE, | ||
335 | traditionally `config.cache'. FILE defaults to `/dev/null' to | ||
336 | disable caching. | ||
337 | |||
338 | `--config-cache' | ||
339 | `-C' | ||
340 | Alias for `--cache-file=config.cache'. | ||
341 | |||
342 | `--quiet' | ||
343 | `--silent' | ||
344 | `-q' | ||
345 | Do not print messages saying which checks are being made. To | ||
346 | suppress all normal output, redirect it to `/dev/null' (any error | ||
347 | messages will still be shown). | ||
348 | |||
349 | `--srcdir=DIR' | ||
350 | Look for the package's source code in directory DIR. Usually | ||
351 | `configure' can determine that directory automatically. | ||
352 | |||
353 | `--prefix=DIR' | ||
354 | Use DIR as the installation prefix. *note Installation Names:: | ||
355 | for more details, including other options available for fine-tuning | ||
356 | the installation locations. | ||
357 | |||
358 | `--no-create' | ||
359 | `-n' | ||
360 | Run the configure checks, but stop before creating any output | ||
361 | files. | ||
362 | |||
363 | `configure' also accepts some other, not widely useful, options. Run | ||
364 | `configure --help' for more details. | ||
365 | |||
diff --git a/legacy/eobj/Makefile.am b/legacy/eobj/Makefile.am new file mode 100644 index 0000000000..b0afe91904 --- /dev/null +++ b/legacy/eobj/Makefile.am | |||
@@ -0,0 +1,99 @@ | |||
1 | |||
2 | ACLOCAL_AMFLAGS = -I m4 | ||
3 | |||
4 | SUBDIRS = src doc | ||
5 | |||
6 | MAINTAINERCLEANFILES = \ | ||
7 | Makefile.in \ | ||
8 | aclocal.m4 \ | ||
9 | config.cache-env \ | ||
10 | config.guess \ | ||
11 | config.h.in \ | ||
12 | config.h.in~ \ | ||
13 | config.sub \ | ||
14 | configure \ | ||
15 | depcomp \ | ||
16 | install-sh \ | ||
17 | ltconfig \ | ||
18 | ltmain.sh \ | ||
19 | missing \ | ||
20 | $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \ | ||
21 | $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \ | ||
22 | $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \ | ||
23 | m4/libtool.m4 \ | ||
24 | m4/lt~obsolete.m4 \ | ||
25 | m4/ltoptions.m4 \ | ||
26 | m4/ltsugar.m4 \ | ||
27 | m4/ltversion.m4 | ||
28 | |||
29 | pkgconfigdir = $(libdir)/pkgconfig | ||
30 | pkgconfig_DATA = eo.pc | ||
31 | |||
32 | EXTRA_DIST = \ | ||
33 | AUTHORS \ | ||
34 | COPYING \ | ||
35 | README \ | ||
36 | autogen.sh \ | ||
37 | eo.pc.in \ | ||
38 | m4/efl_benchmark.m4 \ | ||
39 | m4/efl_doxygen.m4 \ | ||
40 | m4/efl_examples.m4 \ | ||
41 | m4/efl_tests.m4 | ||
42 | |||
43 | .PHONY: doc benchmark | ||
44 | |||
45 | # Documentation | ||
46 | |||
47 | doc: | ||
48 | @echo "entering doc/" | ||
49 | @cd doc && $(MAKE) doc | ||
50 | |||
51 | # Unit tests | ||
52 | |||
53 | if EFL_ENABLE_TESTS | ||
54 | |||
55 | lcov-reset: | ||
56 | @rm -rf $(top_builddir)/coverage | ||
57 | @find $(top_builddir) -name "*.gcda" -delete | ||
58 | @lcov --zerocounters --directory $(top_builddir) | ||
59 | |||
60 | lcov-report: | ||
61 | @mkdir $(top_builddir)/coverage | ||
62 | lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) | ||
63 | lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info | ||
64 | genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info | ||
65 | @echo "Coverage Report at $(top_builddir)/coverage/html" | ||
66 | |||
67 | check-local: | ||
68 | @$(MAKE) lcov-reset | ||
69 | @./src/tests/eina_suite | ||
70 | @$(MAKE) lcov-report | ||
71 | |||
72 | else | ||
73 | |||
74 | lcov-reset: | ||
75 | @echo "reconfigure with --enable-tests" | ||
76 | |||
77 | lcov-report: | ||
78 | @echo "reconfigure with --enable-tests" | ||
79 | |||
80 | check-local: | ||
81 | @echo "reconfigure with --enable-tests" | ||
82 | |||
83 | endif | ||
84 | |||
85 | if EFL_ENABLE_BENCHMARK | ||
86 | |||
87 | benchmark: | ||
88 | @cd src && $(MAKE) benchmark | ||
89 | @mkdir result || true | ||
90 | @cd result && ../src/tests/eina_bench `date +%F_%s` | ||
91 | |||
92 | else | ||
93 | |||
94 | benchmark: | ||
95 | @echo "reconfigure with --enable-benchmark" | ||
96 | endif | ||
97 | |||
98 | clean-local: | ||
99 | @rm -rf coverage benchmark | ||
diff --git a/legacy/eobj/NEWS b/legacy/eobj/NEWS new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/legacy/eobj/NEWS | |||
diff --git a/legacy/eobj/README b/legacy/eobj/README new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/legacy/eobj/README | |||
diff --git a/legacy/eobj/autogen.sh b/legacy/eobj/autogen.sh new file mode 100644 index 0000000000..cc2cf7729a --- /dev/null +++ b/legacy/eobj/autogen.sh | |||
@@ -0,0 +1,39 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | rm -rf autom4te.cache | ||
4 | rm -f aclocal.m4 ltmain.sh | ||
5 | |||
6 | touch README | ||
7 | touch ABOUT-NLS | ||
8 | |||
9 | echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1 | ||
10 | echo "Running autoheader..." ; autoheader || exit 1 | ||
11 | echo "Running autoconf..." ; autoconf || exit 1 | ||
12 | echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 | ||
13 | echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 | ||
14 | |||
15 | W=0 | ||
16 | |||
17 | rm -f config.cache-env.tmp | ||
18 | echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp | ||
19 | echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp | ||
20 | echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp | ||
21 | echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp | ||
22 | echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp | ||
23 | |||
24 | cmp config.cache-env.tmp config.cache-env >> /dev/null | ||
25 | if [ $? -ne 0 ]; then | ||
26 | W=1; | ||
27 | fi | ||
28 | |||
29 | if [ $W -ne 0 ]; then | ||
30 | echo "Cleaning configure cache..."; | ||
31 | rm -f config.cache config.cache-env | ||
32 | mv config.cache-env.tmp config.cache-env | ||
33 | else | ||
34 | rm -f config.cache-env.tmp | ||
35 | fi | ||
36 | |||
37 | if [ -z "$NOCONFIGURE" ]; then | ||
38 | ./configure -C "$@" | ||
39 | fi | ||
diff --git a/legacy/eobj/configure.ac b/legacy/eobj/configure.ac new file mode 100644 index 0000000000..c8bb6b7f67 --- /dev/null +++ b/legacy/eobj/configure.ac | |||
@@ -0,0 +1,192 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [7]) | ||
5 | m4_define([v_mic], [99]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | dnl m4_undefine([v_rev]) | ||
10 | ##-- When doing snapshots - change soname. remove dnl on below line | ||
11 | dnl m4_define([relname], [ver-pre-svn-07]) | ||
12 | dnl m4_define([v_rel], [-release relname]) | ||
13 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
14 | m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) | ||
15 | m4_define([lt_cur], m4_eval(v_maj + v_min)) | ||
16 | m4_define([lt_rev], v_mic) | ||
17 | m4_define([lt_age], v_min) | ||
18 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
19 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | AC_INIT([eo], [v_ver], [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.59]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | #lt_cv_deplibs_check_method='pass_all' | ||
39 | AC_LIBTOOL_WIN32_DLL | ||
40 | define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl | ||
41 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
42 | AC_PROG_LIBTOOL | ||
43 | |||
44 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
45 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
46 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
47 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
48 | AC_DEFINE_UNQUOTED([VMAJ], [v_maj], [Major version]) | ||
49 | AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version]) | ||
50 | AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version]) | ||
51 | AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison]) | ||
52 | version_info="lt_cur:lt_rev:lt_age" | ||
53 | release_info="v_rel" | ||
54 | AC_SUBST([version_info]) | ||
55 | AC_SUBST([release_info]) | ||
56 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
57 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
58 | VMAJ=v_maj | ||
59 | AC_SUBST([VMAJ]) | ||
60 | |||
61 | |||
62 | ### Needed information | ||
63 | |||
64 | AC_CANONICAL_HOST | ||
65 | |||
66 | EFL_EO_BUILD="" | ||
67 | case "$host_os" in | ||
68 | mingw*) | ||
69 | EFL_EO_BUILD="-DEFL_EO_BUILD" | ||
70 | ;; | ||
71 | esac | ||
72 | AC_SUBST([EFL_EO_BUILD]) | ||
73 | |||
74 | requirements_pc_eo="eina" | ||
75 | |||
76 | |||
77 | ### Additional options to configure | ||
78 | |||
79 | |||
80 | ### Checks for programs | ||
81 | |||
82 | AC_PROG_CC | ||
83 | |||
84 | # pkg-config | ||
85 | PKG_PROG_PKG_CONFIG | ||
86 | |||
87 | # Check whether pkg-config supports Requires.private | ||
88 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
89 | pkgconfig_requires_private="Requires.private" | ||
90 | else | ||
91 | pkgconfig_requires_private="Requires" | ||
92 | fi | ||
93 | AC_SUBST(pkgconfig_requires_private) | ||
94 | |||
95 | # doxygen program for documentation building | ||
96 | |||
97 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
98 | |||
99 | |||
100 | ### Checks for libraries | ||
101 | |||
102 | PKG_CHECK_MODULES([EO], [${requirements_pc_eo}]) | ||
103 | |||
104 | PKG_CHECK_MODULES([ELM], [elementary >= 1.7.0], [have_elm="yes"], [have_elm="no"]) | ||
105 | |||
106 | AM_CONDITIONAL([EO_BUILD_EXAMPLE_EVAS], [test "x${have_elm}" = "xyes"]) | ||
107 | |||
108 | |||
109 | ### Checks for header files | ||
110 | |||
111 | AC_CHECK_HEADERS([stdarg.h]) | ||
112 | |||
113 | |||
114 | ### Checks for types | ||
115 | |||
116 | |||
117 | ### Checks for structures | ||
118 | |||
119 | |||
120 | ### Checks for compiler characteristics | ||
121 | |||
122 | |||
123 | ### Checks for linker characteristics | ||
124 | |||
125 | lt_enable_auto_import="" | ||
126 | case "${host_os}" in | ||
127 | mingw*) | ||
128 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
129 | ;; | ||
130 | esac | ||
131 | AC_SUBST([lt_enable_auto_import]) | ||
132 | |||
133 | ### Checks for library functions | ||
134 | |||
135 | ### Make the debug preprocessor configurable | ||
136 | |||
137 | ### Unit tests, coverage and benchmarking | ||
138 | |||
139 | EFL_CHECK_TESTS([eina], [enable_tests="yes"], [enable_tests="no"]) | ||
140 | |||
141 | EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"]) | ||
142 | |||
143 | AC_SUBST([requirements_pc_eo]) | ||
144 | |||
145 | |||
146 | ### Build and install examples | ||
147 | EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"]) | ||
148 | EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"]) | ||
149 | |||
150 | AC_CONFIG_FILES([ | ||
151 | Makefile | ||
152 | eo.pc | ||
153 | doc/Doxyfile | ||
154 | doc/Makefile | ||
155 | src/Makefile | ||
156 | src/benchmarks/Makefile | ||
157 | src/examples/Makefile | ||
158 | src/examples/eo_isa/Makefile | ||
159 | src/examples/evas/Makefile | ||
160 | src/examples/simple/Makefile | ||
161 | src/lib/Makefile | ||
162 | ]) | ||
163 | |||
164 | AC_OUTPUT | ||
165 | |||
166 | ##################################################################### | ||
167 | ## Info | ||
168 | |||
169 | echo | ||
170 | echo | ||
171 | echo | ||
172 | echo "------------------------------------------------------------------------" | ||
173 | echo "$PACKAGE $VERSION" | ||
174 | echo "------------------------------------------------------------------------" | ||
175 | echo | ||
176 | echo | ||
177 | echo "Configuration Options Summary:" | ||
178 | echo | ||
179 | echo " Documentation........: ${build_doc}" | ||
180 | echo " Tests................: ${enable_tests} (Coverage: ${efl_enable_coverage})" | ||
181 | echo " Examples.............: ${enable_build_examples}" | ||
182 | echo " Examples installed...: ${enable_install_examples}" | ||
183 | echo " Benchmark............: ${enable_benchmark}" | ||
184 | echo | ||
185 | echo "Compilation............: make (or gmake)" | ||
186 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
187 | echo " CFLAGS...............: $CFLAGS" | ||
188 | echo " LDFLAGS..............: $LDFLAGS" | ||
189 | echo | ||
190 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
191 | echo " prefix...............: $prefix" | ||
192 | echo | ||
diff --git a/legacy/eobj/doc/Doxyfile.in b/legacy/eobj/doc/Doxyfile.in index 56abe89e89..c4260712cd 100644 --- a/legacy/eobj/doc/Doxyfile.in +++ b/legacy/eobj/doc/Doxyfile.in | |||
@@ -598,7 +598,7 @@ WARN_LOGFILE = | |||
598 | # directories like "/usr/src/myproject". Separate the files or directories | 598 | # directories like "/usr/src/myproject". Separate the files or directories |
599 | # with spaces. | 599 | # with spaces. |
600 | 600 | ||
601 | INPUT = @CMAKE_SOURCE_DIR@/src/lib | 601 | INPUT = @top_srcdir@/src/lib |
602 | 602 | ||
603 | # This tag can be used to specify the character encoding of the source files | 603 | # This tag can be used to specify the character encoding of the source files |
604 | # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is | 604 | # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is |
@@ -658,7 +658,7 @@ EXCLUDE_SYMBOLS = | |||
658 | # directories that contain example code fragments that are included (see | 658 | # directories that contain example code fragments that are included (see |
659 | # the \include command). | 659 | # the \include command). |
660 | 660 | ||
661 | EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/src/examples | 661 | EXAMPLE_PATH = @top_srcdir@/src/examples |
662 | 662 | ||
663 | # If the value of the EXAMPLE_PATH tag contains directories, you can use the | 663 | # If the value of the EXAMPLE_PATH tag contains directories, you can use the |
664 | # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp | 664 | # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp |
@@ -678,7 +678,7 @@ EXAMPLE_RECURSIVE = NO | |||
678 | # directories that contain image that are included in the documentation (see | 678 | # directories that contain image that are included in the documentation (see |
679 | # the \image command). | 679 | # the \image command). |
680 | 680 | ||
681 | IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/img | 681 | IMAGE_PATH = @top_srcdir@/doc/img |
682 | 682 | ||
683 | # The INPUT_FILTER tag can be used to specify a program that doxygen should | 683 | # The INPUT_FILTER tag can be used to specify a program that doxygen should |
684 | # invoke to filter for each input file. Doxygen will invoke the filter program | 684 | # invoke to filter for each input file. Doxygen will invoke the filter program |
@@ -825,13 +825,13 @@ HTML_FILE_EXTENSION = .html | |||
825 | # each generated HTML page. If it is left blank doxygen will generate a | 825 | # each generated HTML page. If it is left blank doxygen will generate a |
826 | # standard header. | 826 | # standard header. |
827 | 827 | ||
828 | HTML_HEADER = @CMAKE_CURRENT_SOURCE_DIR@/head.html | 828 | HTML_HEADER = @top_srcdir@/doc/head.html |
829 | 829 | ||
830 | # The HTML_FOOTER tag can be used to specify a personal HTML footer for | 830 | # The HTML_FOOTER tag can be used to specify a personal HTML footer for |
831 | # each generated HTML page. If it is left blank doxygen will generate a | 831 | # each generated HTML page. If it is left blank doxygen will generate a |
832 | # standard footer. | 832 | # standard footer. |
833 | 833 | ||
834 | HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/foot.html | 834 | HTML_FOOTER = @top_srcdir@/doc/foot.html |
835 | 835 | ||
836 | # The HTML_STYLESHEET tag can be used to specify a user-defined cascading | 836 | # The HTML_STYLESHEET tag can be used to specify a user-defined cascading |
837 | # style sheet that is used by each HTML page. It can be used to | 837 | # style sheet that is used by each HTML page. It can be used to |
@@ -840,7 +840,7 @@ HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/foot.html | |||
840 | # the style sheet file to the HTML output directory, so don't put your own | 840 | # the style sheet file to the HTML output directory, so don't put your own |
841 | # stylesheet in the HTML output directory as well, or it will be erased! | 841 | # stylesheet in the HTML output directory as well, or it will be erased! |
842 | 842 | ||
843 | HTML_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/e.css | 843 | HTML_STYLESHEET = @top_srcdir@/doc/e.css |
844 | 844 | ||
845 | # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. | 845 | # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. |
846 | # Doxygen will adjust the colors in the stylesheet and background images | 846 | # Doxygen will adjust the colors in the stylesheet and background images |
diff --git a/legacy/eobj/doc/Makefile.am b/legacy/eobj/doc/Makefile.am new file mode 100644 index 0000000000..33a2c9b590 --- /dev/null +++ b/legacy/eobj/doc/Makefile.am | |||
@@ -0,0 +1,39 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | .PHONY: doc | ||
4 | |||
5 | PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc | ||
6 | |||
7 | if EFL_BUILD_DOC | ||
8 | |||
9 | doc-clean: | ||
10 | rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar* | ||
11 | |||
12 | doc: all | ||
13 | $(efl_doxygen) | ||
14 | cp $(srcdir)/img/* html/ | ||
15 | cp $(srcdir)/img/*.eps latex/ | ||
16 | rm -rf $(PACKAGE_DOCNAME).tar* | ||
17 | mkdir -p $(PACKAGE_DOCNAME)/doc | ||
18 | cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc | ||
19 | tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/ | ||
20 | bzip2 -9 $(PACKAGE_DOCNAME).tar | ||
21 | rm -rf $(PACKAGE_DOCNAME)/ | ||
22 | mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir) | ||
23 | @echo "Documentation Package: doc/$(PACKAGE_DOCNAME).tar.bz2" | ||
24 | @echo "Documentation HTML: doc/html" | ||
25 | |||
26 | clean-local: doc-clean | ||
27 | |||
28 | else | ||
29 | |||
30 | doc: | ||
31 | @echo "Documentation not built. Run ./configure --help" | ||
32 | |||
33 | endif | ||
34 | |||
35 | EXTRA_DIST = $(srcdir)/Doxyfile.in \ | ||
36 | $(wildcard $(srcdir)/img/*.*) \ | ||
37 | $(srcdir)/e.css \ | ||
38 | $(srcdir)/head.html \ | ||
39 | $(srcdir)/foot.html | ||
diff --git a/legacy/eobj/eo.pc.in b/legacy/eobj/eo.pc.in index f0276a0bbc..9abb5260c3 100644 --- a/legacy/eobj/eo.pc.in +++ b/legacy/eobj/eo.pc.in | |||
@@ -1,14 +1,12 @@ | |||
1 | prefix=@CMAKE_INSTALL_PREFIX@ | 1 | prefix=@prefix@ |
2 | exec_prefix=${prefix} | 2 | exec_prefix=@exec_prefix@ |
3 | libdir=${exec_prefix}/lib | 3 | libdir=@libdir@ |
4 | includedir=${prefix}/include | 4 | includedir=@includedir@ |
5 | 5 | ||
6 | Name: Eo | 6 | Name: Eo |
7 | Description: EFL's generic object system library. | 7 | Description: EFL's generic object system library. |
8 | Version: @PACKAGE_VERSION@ | 8 | Version: @PACKAGE_VERSION@ |
9 | @pkgconfig_requires_private@: @requirements_pc_eo@ | ||
9 | Libs: -L${libdir} -leo | 10 | Libs: -L${libdir} -leo |
10 | Libs.private: | 11 | Libs.private: |
11 | Cflags: -I${includedir} -I${includedir}/eo-@VMAJ@ | 12 | Cflags: -I${includedir}/eo-@VMAJ@ |
12 | |||
13 | |||
14 | ~ | ||
diff --git a/legacy/eobj/m4/efl_benchmark.m4 b/legacy/eobj/m4/efl_benchmark.m4 new file mode 100644 index 0000000000..1d1e22ec32 --- /dev/null +++ b/legacy/eobj/m4/efl_benchmark.m4 | |||
@@ -0,0 +1,33 @@ | |||
1 | dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that check if benchmark support is wanted. | ||
5 | |||
6 | dnl Usage: EFL_CHECK_BENCHMARK([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
7 | dnl Defines the automake conditionnal EFL_ENABLE_BENCHMARK | ||
8 | |||
9 | AC_DEFUN([EFL_CHECK_BENCHMARK], | ||
10 | [ | ||
11 | |||
12 | dnl configure option | ||
13 | |||
14 | AC_ARG_ENABLE([benchmark], | ||
15 | [AC_HELP_STRING([--enable-benchmark], [enable benchmarking @<:@default=disabled@:>@])], | ||
16 | [ | ||
17 | if test "x${enableval}" = "xyes" ; then | ||
18 | _efl_enable_benchmark="yes" | ||
19 | else | ||
20 | _efl_enable_benchmark="no" | ||
21 | fi | ||
22 | ], | ||
23 | [_efl_enable_benchmark="no"]) | ||
24 | |||
25 | AC_MSG_CHECKING([whether benchmark are built]) | ||
26 | AC_MSG_RESULT([${_efl_enable_benchmark}]) | ||
27 | |||
28 | AM_CONDITIONAL(EFL_ENABLE_BENCHMARK, test "x${_efl_enable_benchmark}" = "xyes") | ||
29 | |||
30 | AS_IF([test "x$_efl_enable_benchmark" = "xyes"], [$1], [$2]) | ||
31 | ]) | ||
32 | |||
33 | dnl End of efl_benchmark.m4 | ||
diff --git a/legacy/eobj/m4/efl_doxygen.m4 b/legacy/eobj/m4/efl_doxygen.m4 new file mode 100644 index 0000000000..7324af3e42 --- /dev/null +++ b/legacy/eobj/m4/efl_doxygen.m4 | |||
@@ -0,0 +1,94 @@ | |||
1 | dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that check if doxygen is available or not. | ||
5 | |||
6 | dnl EFL_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
7 | dnl Test for the doxygen program | ||
8 | dnl Defines efl_doxygen | ||
9 | dnl Defines the automake conditionnal EFL_BUILD_DOC | ||
10 | dnl | ||
11 | AC_DEFUN([EFL_CHECK_DOXYGEN], | ||
12 | [ | ||
13 | |||
14 | dnl | ||
15 | dnl Disable the build of the documentation | ||
16 | dnl | ||
17 | AC_ARG_ENABLE([doc], | ||
18 | [AC_HELP_STRING( | ||
19 | [--disable-doc], | ||
20 | [Disable documentation build @<:@default=enabled@:>@])], | ||
21 | [ | ||
22 | if test "x${enableval}" = "xyes" ; then | ||
23 | efl_enable_doc="yes" | ||
24 | else | ||
25 | efl_enable_doc="no" | ||
26 | fi | ||
27 | ], | ||
28 | [efl_enable_doc="yes"]) | ||
29 | |||
30 | AC_MSG_CHECKING([whether to build documentation]) | ||
31 | AC_MSG_RESULT([${efl_enable_doc}]) | ||
32 | |||
33 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
34 | |||
35 | dnl Specify the file name, without path | ||
36 | |||
37 | efl_doxygen="doxygen" | ||
38 | |||
39 | AC_ARG_WITH([doxygen], | ||
40 | [AC_HELP_STRING( | ||
41 | [--with-doxygen=FILE], | ||
42 | [doxygen program to use @<:@default=doxygen@:>@])], | ||
43 | |||
44 | dnl Check the given doxygen program. | ||
45 | |||
46 | [efl_doxygen=${withval} | ||
47 | AC_CHECK_PROG([efl_have_doxygen], | ||
48 | [${efl_doxygen}], | ||
49 | [yes], | ||
50 | [no]) | ||
51 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
52 | echo "WARNING:" | ||
53 | echo "The doxygen program you specified:" | ||
54 | echo "${efl_doxygen}" | ||
55 | echo "was not found. Please check the path and make sure " | ||
56 | echo "the program exists and is executable." | ||
57 | AC_MSG_WARN([no doxygen detected. Documentation will not be built]) | ||
58 | fi | ||
59 | ], | ||
60 | [AC_CHECK_PROG([efl_have_doxygen], | ||
61 | [${efl_doxygen}], | ||
62 | [yes], | ||
63 | [no]) | ||
64 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
65 | echo "WARNING:" | ||
66 | echo "The doxygen program was not found in your execute path." | ||
67 | echo "You may have doxygen installed somewhere not covered by your path." | ||
68 | echo "" | ||
69 | echo "If this is the case make sure you have the packages installed, AND" | ||
70 | echo "that the doxygen program is in your execute path (see your" | ||
71 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
72 | echo "alternatively, specify the program to use with --with-doxygen." | ||
73 | AC_MSG_WARN([no doxygen detected. Documentation will not be built]) | ||
74 | fi | ||
75 | ]) | ||
76 | else | ||
77 | efl_have_doxygen="no" | ||
78 | fi | ||
79 | |||
80 | dnl | ||
81 | dnl Substitution | ||
82 | dnl | ||
83 | AC_SUBST([efl_doxygen]) | ||
84 | |||
85 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
86 | efl_enable_doc="no" | ||
87 | fi | ||
88 | |||
89 | AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_have_doxygen}" = "xyes") | ||
90 | |||
91 | AS_IF([test "x$efl_have_doxygen" = "xyes"], [$1], [$2]) | ||
92 | ]) | ||
93 | |||
94 | dnl End of efl_doxygen.m4 | ||
diff --git a/legacy/eobj/m4/efl_examples.m4 b/legacy/eobj/m4/efl_examples.m4 new file mode 100644 index 0000000000..2a809adff5 --- /dev/null +++ b/legacy/eobj/m4/efl_examples.m4 | |||
@@ -0,0 +1,63 @@ | |||
1 | dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that check if building examples is wanted. | ||
5 | |||
6 | dnl Usage: EFL_CHECK_BUILD_EXAMPLES([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
7 | dnl Defines the automake conditionnal EFL_ENABLE_BUILD_EXAMPLES | ||
8 | |||
9 | AC_DEFUN([EFL_CHECK_BUILD_EXAMPLES], | ||
10 | [ | ||
11 | |||
12 | dnl configure option | ||
13 | |||
14 | AC_ARG_ENABLE([build-examples], | ||
15 | [AC_HELP_STRING([--enable-build-examples], [enable building examples @<:@default=disabled@:>@])], | ||
16 | [ | ||
17 | if test "x${enableval}" = "xyes" ; then | ||
18 | _efl_enable_build_examples="yes" | ||
19 | else | ||
20 | _efl_enable_build_examples="no" | ||
21 | fi | ||
22 | ], | ||
23 | [_efl_enable_build_examples="no"]) | ||
24 | |||
25 | AC_MSG_CHECKING([whether examples are built]) | ||
26 | AC_MSG_RESULT([${_efl_enable_build_examples}]) | ||
27 | |||
28 | AM_CONDITIONAL(EFL_BUILD_EXAMPLES, test "x${_efl_enable_build_examples}" = "xyes") | ||
29 | |||
30 | AS_IF([test "x$_efl_enable_build_examples" = "xyes"], [$1], [$2]) | ||
31 | ]) | ||
32 | |||
33 | |||
34 | dnl Macro that check if installing examples is wanted. | ||
35 | |||
36 | dnl Usage: EFL_CHECK_INSTALL_EXAMPLES([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
37 | dnl Defines the automake conditionnal EFL_ENABLE_INSTALL_EXAMPLES | ||
38 | |||
39 | AC_DEFUN([EFL_CHECK_INSTALL_EXAMPLES], | ||
40 | [ | ||
41 | |||
42 | dnl configure option | ||
43 | |||
44 | AC_ARG_ENABLE([install-examples], | ||
45 | [AC_HELP_STRING([--enable-install-examples], [enable installing example source files @<:@default=disabled@:>@])], | ||
46 | [ | ||
47 | if test "x${enableval}" = "xyes" ; then | ||
48 | _efl_enable_install_examples="yes" | ||
49 | else | ||
50 | _efl_enable_install_examples="no" | ||
51 | fi | ||
52 | ], | ||
53 | [_efl_enable_install_examples="no"]) | ||
54 | |||
55 | AC_MSG_CHECKING([whether examples are installed]) | ||
56 | AC_MSG_RESULT([${_efl_enable_install_examples}]) | ||
57 | |||
58 | AM_CONDITIONAL(EFL_INSTALL_EXAMPLES, test "x${_efl_enable_install_examples}" = "xyes") | ||
59 | |||
60 | AS_IF([test "x$_efl_enable_install_examples" = "xyes"], [$1], [$2]) | ||
61 | ]) | ||
62 | |||
63 | dnl End of efl_examples.m4 | ||
diff --git a/legacy/eobj/m4/efl_tests.m4 b/legacy/eobj/m4/efl_tests.m4 new file mode 100644 index 0000000000..d8554e1539 --- /dev/null +++ b/legacy/eobj/m4/efl_tests.m4 | |||
@@ -0,0 +1,65 @@ | |||
1 | dnl Copyright (C) 2008-2012 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that check if tests programs are wanted and if yes, if | ||
5 | dnl the Check library is available. | ||
6 | dnl the lcov program is available. | ||
7 | |||
8 | dnl Usage: EFL_CHECK_TESTS(EFL[, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
9 | dnl Define the automake conditionnal EFL_ENABLE_TESTS | ||
10 | |||
11 | AC_DEFUN([EFL_CHECK_TESTS], | ||
12 | [ | ||
13 | m4_pushdef([UPEFL], m4_translit([$1], [-a-z], [_A-Z]))dnl | ||
14 | |||
15 | dnl configure option | ||
16 | |||
17 | AC_ARG_ENABLE([tests], | ||
18 | [AC_HELP_STRING([--enable-tests], [enable tests @<:@default=disabled@:>@])], | ||
19 | [ | ||
20 | if test "x${enableval}" = "xyes" ; then | ||
21 | _efl_enable_tests="yes" | ||
22 | else | ||
23 | _efl_enable_tests="no" | ||
24 | fi | ||
25 | ], | ||
26 | [_efl_enable_tests="no"]) | ||
27 | |||
28 | AC_MSG_CHECKING([whether tests are built]) | ||
29 | AC_MSG_RESULT([${_efl_enable_tests}]) | ||
30 | |||
31 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | ||
32 | |||
33 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
34 | PKG_CHECK_MODULES([CHECK], | ||
35 | [check >= 0.9.5], | ||
36 | [dummy="yes"], | ||
37 | [_efl_enable_tests="no"]) | ||
38 | fi | ||
39 | |||
40 | efl_enable_coverage="no" | ||
41 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
42 | AC_CHECK_PROG(have_lcov, [lcov], [yes], [no]) | ||
43 | if test "x$have_lcov" = "xyes" ; then | ||
44 | m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -fprofile-arcs -ftest-coverage" | ||
45 | m4_defn([UPEFL])[]_LIBS="${m4_defn([UPEFL])[]_LIBS} -lgcov" | ||
46 | # remove any optimisation flag and force debug symbols | ||
47 | if test "x${prefer_assert}" = "xno"; then | ||
48 | m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -DNDEBUG" | ||
49 | else | ||
50 | m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG" | ||
51 | fi | ||
52 | efl_enable_coverage="yes" | ||
53 | else | ||
54 | AC_MSG_WARN([lcov is not found, disable profiling instrumentation]) | ||
55 | fi | ||
56 | fi | ||
57 | |||
58 | AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes") | ||
59 | |||
60 | AS_IF([test "x$_efl_enable_tests" = "xyes"], [$2], [$3]) | ||
61 | |||
62 | m4_popdef([UPEFL]) | ||
63 | ]) | ||
64 | |||
65 | dnl End of efl_tests.m4 | ||
diff --git a/legacy/eobj/src/Makefile.am b/legacy/eobj/src/Makefile.am new file mode 100644 index 0000000000..cb86447f7b --- /dev/null +++ b/legacy/eobj/src/Makefile.am | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | SUBDIRS = lib benchmarks examples | ||
5 | |||
6 | .PHONY: benchmark | ||
7 | |||
8 | if EFL_ENABLE_BENCHMARK | ||
9 | |||
10 | benchmark: all | ||
11 | cd benchamrks && make eo_bench | ||
12 | |||
13 | else | ||
14 | |||
15 | benchmark: | ||
16 | @echo "reconfigure with --enable-benchmark" | ||
17 | |||
18 | endif | ||
diff --git a/legacy/eobj/src/benchmarks/Makefile.am b/legacy/eobj/src/benchmarks/Makefile.am new file mode 100644 index 0000000000..70952148fb --- /dev/null +++ b/legacy/eobj/src/benchmarks/Makefile.am | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I$(top_srcdir)/src/lib \ | ||
6 | -I$(top_builddir)/src/lib \ | ||
7 | @EFL_EO_BUILD@ \ | ||
8 | @EO_CFLAGS@ | ||
9 | |||
10 | if EFL_ENABLE_BENCHMARK | ||
11 | |||
12 | bin_PROGRAMS = eo_bench | ||
13 | |||
14 | eo_bench_SOURCES = \ | ||
15 | class_simple.c \ | ||
16 | class_simple.h \ | ||
17 | eo_bench.c \ | ||
18 | eo_bench.h \ | ||
19 | eo_bench_eo_do.c | ||
20 | eo_bench_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ | ||
21 | |||
22 | endif | ||
23 | |||
24 | clean-local: | ||
25 | rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda | ||
diff --git a/legacy/eobj/src/benchmarks/class_simple.c b/legacy/eobj/src/benchmarks/class_simple.c index 6492d91b62..2e8dc3f621 100644 --- a/legacy/eobj/src/benchmarks/class_simple.c +++ b/legacy/eobj/src/benchmarks/class_simple.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "class_simple.h" | 6 | #include "class_simple.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | #define MY_CLASS SIMPLE_CLASS | 8 | #define MY_CLASS SIMPLE_CLASS |
7 | 9 | ||
8 | EAPI Eo_Op SIMPLE_BASE_ID = 0; | 10 | EAPI Eo_Op SIMPLE_BASE_ID = 0; |
diff --git a/legacy/eobj/src/benchmarks/class_simple.h b/legacy/eobj/src/benchmarks/class_simple.h index 86f07a1c07..b29e7987c1 100644 --- a/legacy/eobj/src/benchmarks/class_simple.h +++ b/legacy/eobj/src/benchmarks/class_simple.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef SIMPLE_H | 1 | #ifndef SIMPLE_H |
2 | #define SIMPLE_H | 2 | #define SIMPLE_H |
3 | 3 | ||
4 | #include "Eo.h" | ||
5 | |||
6 | extern EAPI Eo_Op SIMPLE_BASE_ID; | 4 | extern EAPI Eo_Op SIMPLE_BASE_ID; |
7 | 5 | ||
8 | enum { | 6 | enum { |
diff --git a/legacy/eobj/src/benchmarks/eo_bench.c b/legacy/eobj/src/benchmarks/eo_bench.c index dd6af6e42d..0da83a1f34 100644 --- a/legacy/eobj/src/benchmarks/eo_bench.c +++ b/legacy/eobj/src/benchmarks/eo_bench.c | |||
@@ -1,11 +1,13 @@ | |||
1 | #ifdef HAVE_CONFIG_H | 1 | #ifdef HAVE_CONFIG_H |
2 | # include "config.h" | 2 | # include <config.h> |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
6 | #include <stdio.h> | 6 | #include <stdio.h> |
7 | #include <limits.h> | 7 | #include <limits.h> |
8 | 8 | ||
9 | #include <Eina.h> | ||
10 | |||
9 | #include "Eo.h" | 11 | #include "Eo.h" |
10 | #include "eo_bench.h" | 12 | #include "eo_bench.h" |
11 | 13 | ||
diff --git a/legacy/eobj/src/benchmarks/eo_bench.h b/legacy/eobj/src/benchmarks/eo_bench.h index f55f1c3e58..feea3bc333 100644 --- a/legacy/eobj/src/benchmarks/eo_bench.h +++ b/legacy/eobj/src/benchmarks/eo_bench.h | |||
@@ -1,9 +1,6 @@ | |||
1 | #ifndef EINA_BENCH_H_ | 1 | #ifndef EINA_BENCH_H_ |
2 | #define EINA_BENCH_H_ | 2 | #define EINA_BENCH_H_ |
3 | 3 | ||
4 | #include <Eina.h> | ||
5 | #include <eina_benchmark.h> | ||
6 | |||
7 | void eo_bench_eo_do(Eina_Benchmark *bench); | 4 | void eo_bench_eo_do(Eina_Benchmark *bench); |
8 | 5 | ||
9 | #endif | 6 | #endif |
diff --git a/legacy/eobj/src/benchmarks/eo_bench_eo_do.c b/legacy/eobj/src/benchmarks/eo_bench_eo_do.c index a919061331..1e8d484979 100644 --- a/legacy/eobj/src/benchmarks/eo_bench_eo_do.c +++ b/legacy/eobj/src/benchmarks/eo_bench_eo_do.c | |||
@@ -1,10 +1,9 @@ | |||
1 | #ifdef HAVE_CONFIG_H | 1 | #ifdef HAVE_CONFIG_H |
2 | # include "config.h" | 2 | # include <config.h> |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include "Eo.h" | 5 | #include "Eo.h" |
6 | #include "eo_bench.h" | 6 | #include "eo_bench.h" |
7 | |||
8 | #include "class_simple.h" | 7 | #include "class_simple.h" |
9 | 8 | ||
10 | static void | 9 | static void |
diff --git a/legacy/eobj/src/examples/Makefile.am b/legacy/eobj/src/examples/Makefile.am new file mode 100644 index 0000000000..1ca1fb4505 --- /dev/null +++ b/legacy/eobj/src/examples/Makefile.am | |||
@@ -0,0 +1,4 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | SUBDIRS = eo_isa evas simple | ||
diff --git a/legacy/eobj/src/examples/eo_isa/Makefile.am b/legacy/eobj/src/examples/eo_isa/Makefile.am new file mode 100644 index 0000000000..84a1678936 --- /dev/null +++ b/legacy/eobj/src/examples/eo_isa/Makefile.am | |||
@@ -0,0 +1,38 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | exampledir = $(pkgdatadir)/examples | ||
5 | |||
6 | AM_CPPFLAGS = \ | ||
7 | -I. \ | ||
8 | -I$(top_srcdir)/src/lib \ | ||
9 | -I$(top_builddir)/src/lib \ | ||
10 | @EFL_EO_BUILD@ \ | ||
11 | @EO_CFLAGS@ | ||
12 | |||
13 | SRCS = \ | ||
14 | complex.c \ | ||
15 | complex.h \ | ||
16 | interface.c \ | ||
17 | interface.h \ | ||
18 | main.c \ | ||
19 | mixin.c \ | ||
20 | mixin.h \ | ||
21 | simple.c \ | ||
22 | simple.h | ||
23 | |||
24 | example_PROGRAMS = | ||
25 | |||
26 | if EFL_INSTALL_EXAMPLES | ||
27 | filesdir = $(pkgdatadir)/examples | ||
28 | files_DATA = $(SRCS) | ||
29 | endif | ||
30 | |||
31 | if EFL_BUILD_EXAMPLES | ||
32 | |||
33 | example_PROGRAMS += eo_isa | ||
34 | |||
35 | eo_isa_SOURCES = $(SRCS) | ||
36 | eo_isa_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ | ||
37 | |||
38 | endif | ||
diff --git a/legacy/eobj/src/examples/eo_isa/complex.c b/legacy/eobj/src/examples/eo_isa/complex.c index 4265af6ac9..e21068cb11 100644 --- a/legacy/eobj/src/examples/eo_isa/complex.c +++ b/legacy/eobj/src/examples/eo_isa/complex.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "complex.h" | 6 | #include "complex.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | #define MY_CLASS COMPLEX_CLASS | 8 | #define MY_CLASS COMPLEX_CLASS |
7 | 9 | ||
8 | static const Eo_Class_Description class_desc = { | 10 | static const Eo_Class_Description class_desc = { |
diff --git a/legacy/eobj/src/examples/eo_isa/interface.c b/legacy/eobj/src/examples/eo_isa/interface.c index 2bfcc8a7f1..a1a130957a 100644 --- a/legacy/eobj/src/examples/eo_isa/interface.c +++ b/legacy/eobj/src/examples/eo_isa/interface.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "interface.h" | 6 | #include "interface.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | EAPI Eo_Op INTERFACE_BASE_ID = 0; | 8 | EAPI Eo_Op INTERFACE_BASE_ID = 0; |
7 | 9 | ||
8 | #define MY_CLASS INTERFACE_CLASS | 10 | #define MY_CLASS INTERFACE_CLASS |
diff --git a/legacy/eobj/src/examples/eo_isa/main.c b/legacy/eobj/src/examples/eo_isa/main.c index b9be815964..517e1bd0a3 100644 --- a/legacy/eobj/src/examples/eo_isa/main.c +++ b/legacy/eobj/src/examples/eo_isa/main.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "simple.h" | 6 | #include "simple.h" |
3 | #include "complex.h" | 7 | #include "complex.h" |
diff --git a/legacy/eobj/src/examples/eo_isa/mixin.c b/legacy/eobj/src/examples/eo_isa/mixin.c index b94ba6db83..458dd084b1 100644 --- a/legacy/eobj/src/examples/eo_isa/mixin.c +++ b/legacy/eobj/src/examples/eo_isa/mixin.c | |||
@@ -1,9 +1,11 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "mixin.h" | 6 | #include "mixin.h" |
3 | #include "simple.h" | 7 | #include "simple.h" |
4 | 8 | ||
5 | #include "config.h" | ||
6 | |||
7 | EAPI Eo_Op MIXIN_BASE_ID = 0; | 9 | EAPI Eo_Op MIXIN_BASE_ID = 0; |
8 | 10 | ||
9 | #define MY_CLASS MIXIN_CLASS | 11 | #define MY_CLASS MIXIN_CLASS |
diff --git a/legacy/eobj/src/examples/eo_isa/simple.c b/legacy/eobj/src/examples/eo_isa/simple.c index d16032bfa0..00016e5171 100644 --- a/legacy/eobj/src/examples/eo_isa/simple.c +++ b/legacy/eobj/src/examples/eo_isa/simple.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "simple.h" | 6 | #include "simple.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | EAPI Eo_Op SIMPLE_BASE_ID = 0; | 8 | EAPI Eo_Op SIMPLE_BASE_ID = 0; |
7 | 9 | ||
8 | typedef struct | 10 | typedef struct |
diff --git a/legacy/eobj/src/examples/evas/Makefile.am b/legacy/eobj/src/examples/evas/Makefile.am new file mode 100644 index 0000000000..ab4cd4b3d6 --- /dev/null +++ b/legacy/eobj/src/examples/evas/Makefile.am | |||
@@ -0,0 +1,41 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | exampledir = $(pkgdatadir)/examples | ||
5 | |||
6 | AM_CPPFLAGS = \ | ||
7 | -I. \ | ||
8 | -I$(top_srcdir)/src/lib \ | ||
9 | -I$(top_builddir)/src/lib \ | ||
10 | @EO_CFLAGS@ | ||
11 | |||
12 | SRCS = \ | ||
13 | elw_box.c \ | ||
14 | elw_box.h \ | ||
15 | elw_boxedbutton.c \ | ||
16 | elw_boxedbutton.h \ | ||
17 | elw_button.c \ | ||
18 | elw_button.h \ | ||
19 | elw_win.h \ | ||
20 | elw_win.c \ | ||
21 | evas_obj.c \ | ||
22 | evas_obj.h \ | ||
23 | test.c | ||
24 | |||
25 | example_PROGRAMS = | ||
26 | |||
27 | if EFL_INSTALL_EXAMPLES | ||
28 | filesdir = $(pkgdatadir)/examples | ||
29 | files_DATA = $(SRCS) | ||
30 | endif | ||
31 | |||
32 | if EFL_BUILD_EXAMPLES | ||
33 | if EO_BUILD_EXAMPLE_EVAS | ||
34 | |||
35 | example_PROGRAMS += evas | ||
36 | |||
37 | evas_SOURCES = $(SRCS) | ||
38 | evas_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ | ||
39 | |||
40 | endif | ||
41 | endif | ||
diff --git a/legacy/eobj/src/examples/evas/elw_box.c b/legacy/eobj/src/examples/evas/elw_box.c index 027a0e3257..1a2330f845 100644 --- a/legacy/eobj/src/examples/evas/elw_box.c +++ b/legacy/eobj/src/examples/evas/elw_box.c | |||
@@ -1,11 +1,13 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
4 | #include "evas_obj.h" | 8 | #include "evas_obj.h" |
5 | #include "elw_box.h" | 9 | #include "elw_box.h" |
6 | 10 | ||
7 | #include "config.h" | ||
8 | |||
9 | EAPI Eo_Op ELW_BOX_BASE_ID = 0; | 11 | EAPI Eo_Op ELW_BOX_BASE_ID = 0; |
10 | 12 | ||
11 | typedef struct | 13 | typedef struct |
diff --git a/legacy/eobj/src/examples/evas/elw_boxedbutton.c b/legacy/eobj/src/examples/evas/elw_boxedbutton.c index 59d9d6b716..457dba892a 100644 --- a/legacy/eobj/src/examples/evas/elw_boxedbutton.c +++ b/legacy/eobj/src/examples/evas/elw_boxedbutton.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
@@ -6,8 +10,6 @@ | |||
6 | #include "elw_button.h" | 10 | #include "elw_button.h" |
7 | #include "elw_boxedbutton.h" | 11 | #include "elw_boxedbutton.h" |
8 | 12 | ||
9 | #include "config.h" | ||
10 | |||
11 | typedef struct | 13 | typedef struct |
12 | { | 14 | { |
13 | // Evas_Object *bx; | 15 | // Evas_Object *bx; |
diff --git a/legacy/eobj/src/examples/evas/elw_button.c b/legacy/eobj/src/examples/evas/elw_button.c index d1a5231d42..82fa39b354 100644 --- a/legacy/eobj/src/examples/evas/elw_button.c +++ b/legacy/eobj/src/examples/evas/elw_button.c | |||
@@ -1,11 +1,13 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
4 | #include "evas_obj.h" | 8 | #include "evas_obj.h" |
5 | #include "elw_button.h" | 9 | #include "elw_button.h" |
6 | 10 | ||
7 | #include "config.h" | ||
8 | |||
9 | EAPI Eo_Op ELW_BUTTON_BASE_ID = 0; | 11 | EAPI Eo_Op ELW_BUTTON_BASE_ID = 0; |
10 | 12 | ||
11 | EAPI const Eo_Event_Description _EV_CLICKED = | 13 | EAPI const Eo_Event_Description _EV_CLICKED = |
diff --git a/legacy/eobj/src/examples/evas/elw_win.c b/legacy/eobj/src/examples/evas/elw_win.c index d05d465e0a..dd9e1002f5 100644 --- a/legacy/eobj/src/examples/evas/elw_win.c +++ b/legacy/eobj/src/examples/evas/elw_win.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
diff --git a/legacy/eobj/src/examples/evas/evas_obj.c b/legacy/eobj/src/examples/evas/evas_obj.c index 957be476fe..9d13c66813 100644 --- a/legacy/eobj/src/examples/evas/evas_obj.c +++ b/legacy/eobj/src/examples/evas/evas_obj.c | |||
@@ -1,10 +1,12 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
4 | #include "evas_obj.h" | 8 | #include "evas_obj.h" |
5 | 9 | ||
6 | #include "config.h" | ||
7 | |||
8 | #define MY_CLASS EXEVAS_OBJ_CLASS | 10 | #define MY_CLASS EXEVAS_OBJ_CLASS |
9 | 11 | ||
10 | EAPI Eo_Op EXEVAS_OBJ_BASE_ID = 0; | 12 | EAPI Eo_Op EXEVAS_OBJ_BASE_ID = 0; |
diff --git a/legacy/eobj/src/examples/evas/test.c b/legacy/eobj/src/examples/evas/test.c index 9d7afa77a8..7a5751367b 100644 --- a/legacy/eobj/src/examples/evas/test.c +++ b/legacy/eobj/src/examples/evas/test.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Elementary.h> | 5 | #include <Elementary.h> |
2 | 6 | ||
3 | #include "evas_obj.h" | 7 | #include "evas_obj.h" |
diff --git a/legacy/eobj/src/examples/simple/Makefile.am b/legacy/eobj/src/examples/simple/Makefile.am new file mode 100644 index 0000000000..959e440f6c --- /dev/null +++ b/legacy/eobj/src/examples/simple/Makefile.am | |||
@@ -0,0 +1,36 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | exampledir = $(pkgdatadir)/examples | ||
5 | |||
6 | AM_CPPFLAGS = \ | ||
7 | -I. \ | ||
8 | -I$(top_srcdir)/src/lib \ | ||
9 | -I$(top_builddir)/src/lib \ | ||
10 | @EFL_EO_BUILD@ \ | ||
11 | @EO_CFLAGS@ | ||
12 | |||
13 | SRCS = \ | ||
14 | interface.c \ | ||
15 | interface.h \ | ||
16 | main.c \ | ||
17 | mixin.c \ | ||
18 | mixin.h \ | ||
19 | simple.c \ | ||
20 | simple.h | ||
21 | |||
22 | example_PROGRAMS = | ||
23 | |||
24 | if EFL_INSTALL_EXAMPLES | ||
25 | filesdir = $(pkgdatadir)/examples | ||
26 | files_DATA = $(SRCS) | ||
27 | endif | ||
28 | |||
29 | if EFL_BUILD_EXAMPLES | ||
30 | |||
31 | example_PROGRAMS += simple | ||
32 | |||
33 | simple_SOURCES = $(SRCS) | ||
34 | simple_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ | ||
35 | |||
36 | endif | ||
diff --git a/legacy/eobj/src/examples/simple/interface.c b/legacy/eobj/src/examples/simple/interface.c index 2bfcc8a7f1..a1a130957a 100644 --- a/legacy/eobj/src/examples/simple/interface.c +++ b/legacy/eobj/src/examples/simple/interface.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "interface.h" | 6 | #include "interface.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | EAPI Eo_Op INTERFACE_BASE_ID = 0; | 8 | EAPI Eo_Op INTERFACE_BASE_ID = 0; |
7 | 9 | ||
8 | #define MY_CLASS INTERFACE_CLASS | 10 | #define MY_CLASS INTERFACE_CLASS |
diff --git a/legacy/eobj/src/examples/simple/main.c b/legacy/eobj/src/examples/simple/main.c index 1fedc83b08..95c352a563 100644 --- a/legacy/eobj/src/examples/simple/main.c +++ b/legacy/eobj/src/examples/simple/main.c | |||
@@ -1,3 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "simple.h" | 6 | #include "simple.h" |
3 | 7 | ||
diff --git a/legacy/eobj/src/examples/simple/mixin.c b/legacy/eobj/src/examples/simple/mixin.c index b94ba6db83..458dd084b1 100644 --- a/legacy/eobj/src/examples/simple/mixin.c +++ b/legacy/eobj/src/examples/simple/mixin.c | |||
@@ -1,9 +1,11 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "mixin.h" | 6 | #include "mixin.h" |
3 | #include "simple.h" | 7 | #include "simple.h" |
4 | 8 | ||
5 | #include "config.h" | ||
6 | |||
7 | EAPI Eo_Op MIXIN_BASE_ID = 0; | 9 | EAPI Eo_Op MIXIN_BASE_ID = 0; |
8 | 10 | ||
9 | #define MY_CLASS MIXIN_CLASS | 11 | #define MY_CLASS MIXIN_CLASS |
diff --git a/legacy/eobj/src/examples/simple/simple.c b/legacy/eobj/src/examples/simple/simple.c index d16032bfa0..00016e5171 100644 --- a/legacy/eobj/src/examples/simple/simple.c +++ b/legacy/eobj/src/examples/simple/simple.c | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include "Eo.h" | 5 | #include "Eo.h" |
2 | #include "simple.h" | 6 | #include "simple.h" |
3 | 7 | ||
4 | #include "config.h" | ||
5 | |||
6 | EAPI Eo_Op SIMPLE_BASE_ID = 0; | 8 | EAPI Eo_Op SIMPLE_BASE_ID = 0; |
7 | 9 | ||
8 | typedef struct | 10 | typedef struct |
diff --git a/legacy/eobj/src/lib/Makefile.am b/legacy/eobj/src/lib/Makefile.am new file mode 100644 index 0000000000..f9f20b45c5 --- /dev/null +++ b/legacy/eobj/src/lib/Makefile.am | |||
@@ -0,0 +1,19 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_CPPFLAGS = \ | ||
4 | -I$(top_srcdir)/src/include \ | ||
5 | -I$(top_builddir)/src/include \ | ||
6 | @EFL_EO_BUILD@ \ | ||
7 | @EO_CFLAGS@ | ||
8 | |||
9 | installed_headerdir = $(includedir)/eo-@VMAJ@ | ||
10 | dist_installed_header_DATA = Eo.h | ||
11 | |||
12 | lib_LTLIBRARIES = libeo.la | ||
13 | |||
14 | libeo_la_SOURCES = eo.c eo_base_class.c eo_private.h | ||
15 | libeo_la_LIBADD = @EO_LIBS@ | ||
16 | libeo_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ | ||
17 | |||
18 | clean-local: | ||
19 | rm -rf *.gcno | ||
diff --git a/legacy/eobj/src/lib/eo.c b/legacy/eobj/src/lib/eo.c index 98a0631e77..59e11f3c44 100644 --- a/legacy/eobj/src/lib/eo.c +++ b/legacy/eobj/src/lib/eo.c | |||
@@ -1,10 +1,12 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Eina.h> | 5 | #include <Eina.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
4 | #include "eo_private.h" | 8 | #include "eo_private.h" |
5 | 9 | ||
6 | #include "config.h" | ||
7 | |||
8 | /* The last id that should be reserved for statically allocated classes. */ | 10 | /* The last id that should be reserved for statically allocated classes. */ |
9 | #define EO_CLASS_IDS_FIRST 1 | 11 | #define EO_CLASS_IDS_FIRST 1 |
10 | #define EO_OP_IDS_FIRST 1 | 12 | #define EO_OP_IDS_FIRST 1 |
@@ -1569,4 +1571,3 @@ eo_manual_free(Eo *obj) | |||
1569 | 1571 | ||
1570 | _eo_free(obj); | 1572 | _eo_free(obj); |
1571 | } | 1573 | } |
1572 | |||
diff --git a/legacy/eobj/src/lib/eo_base_class.c b/legacy/eobj/src/lib/eo_base_class.c index acf3ac1feb..4657da2bbc 100644 --- a/legacy/eobj/src/lib/eo_base_class.c +++ b/legacy/eobj/src/lib/eo_base_class.c | |||
@@ -1,10 +1,12 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
1 | #include <Eina.h> | 5 | #include <Eina.h> |
2 | 6 | ||
3 | #include "Eo.h" | 7 | #include "Eo.h" |
4 | #include "eo_private.h" | 8 | #include "eo_private.h" |
5 | 9 | ||
6 | #include "config.h" | ||
7 | |||
8 | EAPI Eo_Op EO_BASE_BASE_ID = 0; | 10 | EAPI Eo_Op EO_BASE_BASE_ID = 0; |
9 | 11 | ||
10 | static int event_freeze_count = 0; | 12 | static int event_freeze_count = 0; |
@@ -575,4 +577,3 @@ static const Eo_Class_Description class_desc = { | |||
575 | }; | 577 | }; |
576 | 578 | ||
577 | EO_DEFINE_CLASS(eo_base_class_get, &class_desc, NULL, NULL) | 579 | EO_DEFINE_CLASS(eo_base_class_get, &class_desc, NULL, NULL) |
578 | |||
diff --git a/legacy/eobj/src/lib/eo_private.h b/legacy/eobj/src/lib/eo_private.h index 7759a2af5b..0045645701 100644 --- a/legacy/eobj/src/lib/eo_private.h +++ b/legacy/eobj/src/lib/eo_private.h | |||
@@ -57,4 +57,3 @@ extern int _eo_log_dom; | |||
57 | void _eo_condtor_done(Eo *obj); | 57 | void _eo_condtor_done(Eo *obj); |
58 | 58 | ||
59 | #endif | 59 | #endif |
60 | |||