summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/eobj/AUTHORS1
-rw-r--r--legacy/eobj/ChangeLog0
-rw-r--r--legacy/eobj/INSTALL365
-rw-r--r--legacy/eobj/Makefile.am99
-rw-r--r--legacy/eobj/NEWS0
-rw-r--r--legacy/eobj/README0
-rw-r--r--legacy/eobj/autogen.sh39
-rw-r--r--legacy/eobj/configure.ac192
-rw-r--r--legacy/eobj/doc/Doxyfile.in12
-rw-r--r--legacy/eobj/doc/Makefile.am39
-rw-r--r--legacy/eobj/eo.pc.in14
-rw-r--r--legacy/eobj/m4/efl_benchmark.m433
-rw-r--r--legacy/eobj/m4/efl_doxygen.m494
-rw-r--r--legacy/eobj/m4/efl_examples.m463
-rw-r--r--legacy/eobj/m4/efl_tests.m465
-rw-r--r--legacy/eobj/src/Makefile.am18
-rw-r--r--legacy/eobj/src/benchmarks/Makefile.am25
-rw-r--r--legacy/eobj/src/benchmarks/class_simple.c6
-rw-r--r--legacy/eobj/src/benchmarks/class_simple.h2
-rw-r--r--legacy/eobj/src/benchmarks/eo_bench.c4
-rw-r--r--legacy/eobj/src/benchmarks/eo_bench.h3
-rw-r--r--legacy/eobj/src/benchmarks/eo_bench_eo_do.c3
-rw-r--r--legacy/eobj/src/examples/Makefile.am4
-rw-r--r--legacy/eobj/src/examples/eo_isa/Makefile.am38
-rw-r--r--legacy/eobj/src/examples/eo_isa/complex.c6
-rw-r--r--legacy/eobj/src/examples/eo_isa/interface.c6
-rw-r--r--legacy/eobj/src/examples/eo_isa/main.c4
-rw-r--r--legacy/eobj/src/examples/eo_isa/mixin.c6
-rw-r--r--legacy/eobj/src/examples/eo_isa/simple.c6
-rw-r--r--legacy/eobj/src/examples/evas/Makefile.am41
-rw-r--r--legacy/eobj/src/examples/evas/elw_box.c6
-rw-r--r--legacy/eobj/src/examples/evas/elw_boxedbutton.c6
-rw-r--r--legacy/eobj/src/examples/evas/elw_button.c6
-rw-r--r--legacy/eobj/src/examples/evas/elw_win.c4
-rw-r--r--legacy/eobj/src/examples/evas/evas_obj.c6
-rw-r--r--legacy/eobj/src/examples/evas/test.c4
-rw-r--r--legacy/eobj/src/examples/simple/Makefile.am36
-rw-r--r--legacy/eobj/src/examples/simple/interface.c6
-rw-r--r--legacy/eobj/src/examples/simple/main.c4
-rw-r--r--legacy/eobj/src/examples/simple/mixin.c6
-rw-r--r--legacy/eobj/src/examples/simple/simple.c6
-rw-r--r--legacy/eobj/src/lib/Makefile.am19
-rw-r--r--legacy/eobj/src/lib/eo.c7
-rw-r--r--legacy/eobj/src/lib/eo_base_class.c7
-rw-r--r--legacy/eobj/src/lib/eo_private.h1
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 @@
1Installation Instructions
2*************************
3
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
52006, 2007, 2008, 2009 Free Software Foundation, Inc.
6
7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright
9notice and this notice are preserved. This file is offered as-is,
10without warranty of any kind.
11
12Basic Installation
13==================
14
15 Briefly, the shell commands `./configure; make; make install' should
16configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for
18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented
20below. The lack of an optional feature in a given package is not
21necessarily a bug. More recommendations for GNU packages can be found
22in *note Makefile Conventions: (standards)Makefile Conventions.
23
24 The `configure' shell script attempts to guess correct values for
25various system-dependent variables used during compilation. It uses
26those values to create a `Makefile' in each directory of the package.
27It may also create one or more `.h' files containing system-dependent
28definitions. Finally, it creates a shell script `config.status' that
29you can run in the future to recreate the current configuration, and a
30file `config.log' containing compiler output (useful mainly for
31debugging `configure').
32
33 It can also use an optional file (typically called `config.cache'
34and enabled with `--cache-file=config.cache' or simply `-C') that saves
35the results of its tests to speed up reconfiguring. Caching is
36disabled by default to prevent problems with accidental use of stale
37cache files.
38
39 If you need to do unusual things to compile the package, please try
40to figure out how `configure' could check whether to do them, and mail
41diffs or instructions to the address given in the `README' so they can
42be considered for the next release. If you are using the cache, and at
43some point `config.cache' contains results you don't want to keep, you
44may 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
48you want to change it or regenerate `configure' using a newer version
49of `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
96Compilers and Options
97=====================
98
99 Some systems require unusual options for compilation or linking that
100the `configure' script does not know about. Run `./configure --help'
101for details on some of the pertinent environment variables.
102
103 You can give `configure' initial values for configuration parameters
104by setting variables in the command line or in the environment. Here
105is an example:
106
107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108
109 *Note Defining Variables::, for more details.
110
111Compiling For Multiple Architectures
112====================================
113
114 You can compile the package for more than one kind of computer at the
115same time, by placing the object files for each architecture in their
116own directory. To do this, you can use GNU `make'. `cd' to the
117directory where you want the object files and executables to go and run
118the `configure' script. `configure' automatically checks for the
119source code in the directory that `configure' is in and in `..'. This
120is known as a "VPATH" build.
121
122 With a non-GNU `make', it is safer to compile the package for one
123architecture at a time in the source code directory. After you have
124installed the package for one architecture, use `make distclean' before
125reconfiguring for another architecture.
126
127 On MacOS X 10.5 and later systems, you can create libraries and
128executables that work on multiple system types--known as "fat" or
129"universal" binaries--by specifying multiple `-arch' options to the
130compiler but only a single `-arch' option to the preprocessor. Like
131this:
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
138may have to build one architecture at a time and combine the results
139using the `lipo' tool if you have problems.
140
141Installation 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
146can specify an installation prefix other than `/usr/local' by giving
147`configure' the option `--prefix=PREFIX', where PREFIX must be an
148absolute file name.
149
150 You can specify separate installation prefixes for
151architecture-specific files and architecture-independent files. If you
152pass the option `--exec-prefix=PREFIX' to `configure', the package uses
153PREFIX as the prefix for installing programs and libraries.
154Documentation and other data files still use the regular prefix.
155
156 In addition, if you use an unusual directory layout you can give
157options like `--bindir=DIR' to specify different values for particular
158kinds of files. Run `configure --help' for a list of the directories
159you can set and what kinds of files go in them. In general, the
160default for these options is expressed in terms of `${prefix}', so that
161specifying just `--prefix' will affect all of the other directory
162specifications that were not explicitly provided.
163
164 The most portable way to affect installation locations is to pass the
165correct locations to `configure'; however, many packages provide one or
166both of the following shortcuts of passing variable assignments to the
167`make install' command line to change installation locations without
168having to reconfigure or recompile.
169
170 The first method involves providing an override variable for each
171affected directory. For example, `make install
172prefix=/alternate/directory' will choose an alternate location for all
173directory configuration variables that were expressed in terms of
174`${prefix}'. Any directories that were specified during `configure',
175but not in terms of `${prefix}', must each be overridden at install
176time for the entire installation to be relocated. The approach of
177makefile variable overrides for each directory variable is required by
178the GNU Coding Standards, and ideally causes no recompilation.
179However, some platforms have known limitations with the semantics of
180shared libraries that end up requiring recompilation when using this
181method, particularly noticeable in packages that use GNU Libtool.
182
183 The second method involves providing the `DESTDIR' variable. For
184example, `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
187does not work on platforms that have drive letters. On the other hand,
188it does better at avoiding recompilation issues, and works well even
189when some directory options were not specified in terms of `${prefix}'
190at `configure' time.
191
192Optional Features
193=================
194
195 If the package supports it, you can cause programs to be installed
196with an extra prefix or suffix on their names by giving `configure' the
197option `--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.
201They may also pay attention to `--with-PACKAGE' options, where PACKAGE
202is something like `gnu-as' or `x' (for the X Window System). The
203`README' should mention any `--enable-' and `--with-' options that the
204package recognizes.
205
206 For packages that use the X Window System, `configure' can usually
207find the X include and library files automatically, but if it doesn't,
208you 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
212execution of `make' will be. For these packages, running `./configure
213--enable-silent-rules' sets the default to minimal output, which can be
214overridden with `make V=1'; while running `./configure
215--disable-silent-rules' sets the default to verbose, which can be
216overridden with `make V=0'.
217
218Particular systems
219==================
220
221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
222CC is not installed, it is recommended to use the following options in
223order to use an ANSI C compiler:
224
225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226
227and 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
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended
232to try
233
234 ./configure CC="cc"
235
236and 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
241directory contains several dysfunctional programs; working variants of
242these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
243in your `PATH', put it _after_ `/usr/bin'.
244
245 On Haiku, software installed for all users goes in `/boot/common',
246not `/usr/local'. It is recommended to use the following options:
247
248 ./configure --prefix=/boot/common
249
250Specifying the System Type
251==========================
252
253 There may be some features `configure' cannot figure out
254automatically, but needs to determine by the type of machine the package
255will 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
257a 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
259type, such as `sun4', or a canonical name which has the form:
260
261 CPU-COMPANY-SYSTEM
262
263where 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
270need to know the machine type.
271
272 If you are _building_ compiler tools for cross-compiling, you should
273use the option `--target=TYPE' to select the type of system they will
274produce code for.
275
276 If you want to _use_ a cross compiler, that generates code for a
277platform different from the build platform, you should specify the
278"host" platform (i.e., that on which the generated programs will
279eventually be run) with `--host=TYPE'.
280
281Sharing Defaults
282================
283
284 If you want to set default values for `configure' scripts to share,
285you can create a site shell script called `config.site' that gives
286default 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.
290A warning: not all `configure' scripts look for a site script.
291
292Defining Variables
293==================
294
295 Variables not defined in a site shell script can be set in the
296environment passed to `configure'. However, some packages may run
297configure again during the build, and the customized values of these
298variables may be lost. In order to avoid this problem, you should set
299them in the `configure' command line, using `VAR=value'. For example:
300
301 ./configure CC=/usr/local2/bin/gcc
302
303causes the specified `gcc' to be used as the C compiler (unless it is
304overridden in the site shell script).
305
306Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307an 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
315operates.
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
2ACLOCAL_AMFLAGS = -I m4
3
4SUBDIRS = src doc
5
6MAINTAINERCLEANFILES = \
7Makefile.in \
8aclocal.m4 \
9config.cache-env \
10config.guess \
11config.h.in \
12config.h.in~ \
13config.sub \
14configure \
15depcomp \
16install-sh \
17ltconfig \
18ltmain.sh \
19missing \
20$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
21$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
22$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
23m4/libtool.m4 \
24m4/lt~obsolete.m4 \
25m4/ltoptions.m4 \
26m4/ltsugar.m4 \
27m4/ltversion.m4
28
29pkgconfigdir = $(libdir)/pkgconfig
30pkgconfig_DATA = eo.pc
31
32EXTRA_DIST = \
33AUTHORS \
34COPYING \
35README \
36autogen.sh \
37eo.pc.in \
38m4/efl_benchmark.m4 \
39m4/efl_doxygen.m4 \
40m4/efl_examples.m4 \
41m4/efl_tests.m4
42
43.PHONY: doc benchmark
44
45# Documentation
46
47doc:
48 @echo "entering doc/"
49 @cd doc && $(MAKE) doc
50
51# Unit tests
52
53if EFL_ENABLE_TESTS
54
55lcov-reset:
56 @rm -rf $(top_builddir)/coverage
57 @find $(top_builddir) -name "*.gcda" -delete
58 @lcov --zerocounters --directory $(top_builddir)
59
60lcov-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
67check-local:
68 @$(MAKE) lcov-reset
69 @./src/tests/eina_suite
70 @$(MAKE) lcov-report
71
72else
73
74lcov-reset:
75 @echo "reconfigure with --enable-tests"
76
77lcov-report:
78 @echo "reconfigure with --enable-tests"
79
80check-local:
81 @echo "reconfigure with --enable-tests"
82
83endif
84
85if EFL_ENABLE_BENCHMARK
86
87benchmark:
88 @cd src && $(MAKE) benchmark
89 @mkdir result || true
90 @cd result && ../src/tests/eina_bench `date +%F_%s`
91
92else
93
94benchmark:
95 @echo "reconfigure with --enable-benchmark"
96endif
97
98clean-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
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6touch README
7touch ABOUT-NLS
8
9echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
10echo "Running autoheader..." ; autoheader || exit 1
11echo "Running autoconf..." ; autoconf || exit 1
12echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
13echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
14
15W=0
16
17rm -f config.cache-env.tmp
18echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp
19echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp
20echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp
21echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp
22echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp
23
24cmp config.cache-env.tmp config.cache-env >> /dev/null
25if [ $? -ne 0 ]; then
26 W=1;
27fi
28
29if [ $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
33else
34 rm -f config.cache-env.tmp
35fi
36
37if [ -z "$NOCONFIGURE" ]; then
38 ./configure -C "$@"
39fi
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##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3m4_define([v_maj], [1])
4m4_define([v_min], [7])
5m4_define([v_mic], [99])
6m4_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']))
7m4_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
9dnl m4_undefine([v_rev])
10##-- When doing snapshots - change soname. remove dnl on below line
11dnl m4_define([relname], [ver-pre-svn-07])
12dnl m4_define([v_rel], [-release relname])
13##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14m4_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])])
15m4_define([lt_cur], m4_eval(v_maj + v_min))
16m4_define([lt_rev], v_mic)
17m4_define([lt_age], v_min)
18##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21AC_INIT([eo], [v_ver], [enlightenment-devel@lists.sourceforge.net])
22AC_PREREQ([2.59])
23AC_CONFIG_SRCDIR([configure.ac])
24AC_CONFIG_MACRO_DIR([m4])
25
26AC_CONFIG_HEADERS([config.h])
27AH_TOP([
28#ifndef EFL_CONFIG_H__
29#define EFL_CONFIG_H__
30])
31AH_BOTTOM([
32#endif /* EFL_CONFIG_H__ */
33])
34
35AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
38#lt_cv_deplibs_check_method='pass_all'
39AC_LIBTOOL_WIN32_DLL
40define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
41define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
42AC_PROG_LIBTOOL
43
44##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
46m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
47m4_ifdef([v_rel], , [m4_define([v_rel], [])])
48AC_DEFINE_UNQUOTED([VMAJ], [v_maj], [Major version])
49AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version])
50AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version])
51AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison])
52version_info="lt_cur:lt_rev:lt_age"
53release_info="v_rel"
54AC_SUBST([version_info])
55AC_SUBST([release_info])
56##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58VMAJ=v_maj
59AC_SUBST([VMAJ])
60
61
62### Needed information
63
64AC_CANONICAL_HOST
65
66EFL_EO_BUILD=""
67case "$host_os" in
68 mingw*)
69 EFL_EO_BUILD="-DEFL_EO_BUILD"
70 ;;
71esac
72AC_SUBST([EFL_EO_BUILD])
73
74requirements_pc_eo="eina"
75
76
77### Additional options to configure
78
79
80### Checks for programs
81
82AC_PROG_CC
83
84# pkg-config
85PKG_PROG_PKG_CONFIG
86
87# Check whether pkg-config supports Requires.private
88if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
89 pkgconfig_requires_private="Requires.private"
90else
91 pkgconfig_requires_private="Requires"
92fi
93AC_SUBST(pkgconfig_requires_private)
94
95# doxygen program for documentation building
96
97EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
98
99
100### Checks for libraries
101
102PKG_CHECK_MODULES([EO], [${requirements_pc_eo}])
103
104PKG_CHECK_MODULES([ELM], [elementary >= 1.7.0], [have_elm="yes"], [have_elm="no"])
105
106AM_CONDITIONAL([EO_BUILD_EXAMPLE_EVAS], [test "x${have_elm}" = "xyes"])
107
108
109### Checks for header files
110
111AC_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
125lt_enable_auto_import=""
126case "${host_os}" in
127 mingw*)
128 lt_enable_auto_import="-Wl,--enable-auto-import"
129 ;;
130esac
131AC_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
139EFL_CHECK_TESTS([eina], [enable_tests="yes"], [enable_tests="no"])
140
141EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"])
142
143AC_SUBST([requirements_pc_eo])
144
145
146### Build and install examples
147EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
148EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
149
150AC_CONFIG_FILES([
151Makefile
152eo.pc
153doc/Doxyfile
154doc/Makefile
155src/Makefile
156src/benchmarks/Makefile
157src/examples/Makefile
158src/examples/eo_isa/Makefile
159src/examples/evas/Makefile
160src/examples/simple/Makefile
161src/lib/Makefile
162])
163
164AC_OUTPUT
165
166#####################################################################
167## Info
168
169echo
170echo
171echo
172echo "------------------------------------------------------------------------"
173echo "$PACKAGE $VERSION"
174echo "------------------------------------------------------------------------"
175echo
176echo
177echo "Configuration Options Summary:"
178echo
179echo " Documentation........: ${build_doc}"
180echo " Tests................: ${enable_tests} (Coverage: ${efl_enable_coverage})"
181echo " Examples.............: ${enable_build_examples}"
182echo " Examples installed...: ${enable_install_examples}"
183echo " Benchmark............: ${enable_benchmark}"
184echo
185echo "Compilation............: make (or gmake)"
186echo " CPPFLAGS.............: $CPPFLAGS"
187echo " CFLAGS...............: $CFLAGS"
188echo " LDFLAGS..............: $LDFLAGS"
189echo
190echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
191echo " prefix...............: $prefix"
192echo
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
601INPUT = @CMAKE_SOURCE_DIR@/src/lib 601INPUT = @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
661EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/src/examples 661EXAMPLE_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
681IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/img 681IMAGE_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
828HTML_HEADER = @CMAKE_CURRENT_SOURCE_DIR@/head.html 828HTML_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
834HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/foot.html 834HTML_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
843HTML_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/e.css 843HTML_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 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3.PHONY: doc
4
5PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
6
7if EFL_BUILD_DOC
8
9doc-clean:
10 rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
11
12doc: 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
26clean-local: doc-clean
27
28else
29
30doc:
31 @echo "Documentation not built. Run ./configure --help"
32
33endif
34
35EXTRA_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 @@
1prefix=@CMAKE_INSTALL_PREFIX@ 1prefix=@prefix@
2exec_prefix=${prefix} 2exec_prefix=@exec_prefix@
3libdir=${exec_prefix}/lib 3libdir=@libdir@
4includedir=${prefix}/include 4includedir=@includedir@
5 5
6Name: Eo 6Name: Eo
7Description: EFL's generic object system library. 7Description: EFL's generic object system library.
8Version: @PACKAGE_VERSION@ 8Version: @PACKAGE_VERSION@
9@pkgconfig_requires_private@: @requirements_pc_eo@
9Libs: -L${libdir} -leo 10Libs: -L${libdir} -leo
10Libs.private: 11Libs.private:
11Cflags: -I${includedir} -I${includedir}/eo-@VMAJ@ 12Cflags: -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 @@
1dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if benchmark support is wanted.
5
6dnl Usage: EFL_CHECK_BENCHMARK([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Defines the automake conditionnal EFL_ENABLE_BENCHMARK
8
9AC_DEFUN([EFL_CHECK_BENCHMARK],
10[
11
12dnl configure option
13
14AC_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
25AC_MSG_CHECKING([whether benchmark are built])
26AC_MSG_RESULT([${_efl_enable_benchmark}])
27
28AM_CONDITIONAL(EFL_ENABLE_BENCHMARK, test "x${_efl_enable_benchmark}" = "xyes")
29
30AS_IF([test "x$_efl_enable_benchmark" = "xyes"], [$1], [$2])
31])
32
33dnl 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 @@
1dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if doxygen is available or not.
5
6dnl EFL_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Test for the doxygen program
8dnl Defines efl_doxygen
9dnl Defines the automake conditionnal EFL_BUILD_DOC
10dnl
11AC_DEFUN([EFL_CHECK_DOXYGEN],
12[
13
14dnl
15dnl Disable the build of the documentation
16dnl
17AC_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
30AC_MSG_CHECKING([whether to build documentation])
31AC_MSG_RESULT([${efl_enable_doc}])
32
33if test "x${efl_enable_doc}" = "xyes" ; then
34
35dnl 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
44dnl 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 ])
76else
77 efl_have_doxygen="no"
78fi
79
80dnl
81dnl Substitution
82dnl
83AC_SUBST([efl_doxygen])
84
85if ! test "x${efl_have_doxygen}" = "xyes" ; then
86 efl_enable_doc="no"
87fi
88
89AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_have_doxygen}" = "xyes")
90
91AS_IF([test "x$efl_have_doxygen" = "xyes"], [$1], [$2])
92])
93
94dnl 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 @@
1dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if building examples is wanted.
5
6dnl Usage: EFL_CHECK_BUILD_EXAMPLES([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Defines the automake conditionnal EFL_ENABLE_BUILD_EXAMPLES
8
9AC_DEFUN([EFL_CHECK_BUILD_EXAMPLES],
10[
11
12dnl configure option
13
14AC_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
25AC_MSG_CHECKING([whether examples are built])
26AC_MSG_RESULT([${_efl_enable_build_examples}])
27
28AM_CONDITIONAL(EFL_BUILD_EXAMPLES, test "x${_efl_enable_build_examples}" = "xyes")
29
30AS_IF([test "x$_efl_enable_build_examples" = "xyes"], [$1], [$2])
31])
32
33
34dnl Macro that check if installing examples is wanted.
35
36dnl Usage: EFL_CHECK_INSTALL_EXAMPLES([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
37dnl Defines the automake conditionnal EFL_ENABLE_INSTALL_EXAMPLES
38
39AC_DEFUN([EFL_CHECK_INSTALL_EXAMPLES],
40[
41
42dnl configure option
43
44AC_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
55AC_MSG_CHECKING([whether examples are installed])
56AC_MSG_RESULT([${_efl_enable_install_examples}])
57
58AM_CONDITIONAL(EFL_INSTALL_EXAMPLES, test "x${_efl_enable_install_examples}" = "xyes")
59
60AS_IF([test "x$_efl_enable_install_examples" = "xyes"], [$1], [$2])
61])
62
63dnl 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 @@
1dnl Copyright (C) 2008-2012 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if tests programs are wanted and if yes, if
5dnl the Check library is available.
6dnl the lcov program is available.
7
8dnl Usage: EFL_CHECK_TESTS(EFL[, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
9dnl Define the automake conditionnal EFL_ENABLE_TESTS
10
11AC_DEFUN([EFL_CHECK_TESTS],
12[
13m4_pushdef([UPEFL], m4_translit([$1], [-a-z], [_A-Z]))dnl
14
15dnl configure option
16
17AC_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
28AC_MSG_CHECKING([whether tests are built])
29AC_MSG_RESULT([${_efl_enable_tests}])
30
31AC_REQUIRE([PKG_PROG_PKG_CONFIG])
32
33if 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"])
38fi
39
40efl_enable_coverage="no"
41if 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
56fi
57
58AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")
59
60AS_IF([test "x$_efl_enable_tests" = "xyes"], [$2], [$3])
61
62m4_popdef([UPEFL])
63])
64
65dnl 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
2MAINTAINERCLEANFILES = Makefile.in
3
4SUBDIRS = lib benchmarks examples
5
6.PHONY: benchmark
7
8if EFL_ENABLE_BENCHMARK
9
10benchmark: all
11 cd benchamrks && make eo_bench
12
13else
14
15benchmark:
16 @echo "reconfigure with --enable-benchmark"
17
18endif
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
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I$(top_srcdir)/src/lib \
6-I$(top_builddir)/src/lib \
7@EFL_EO_BUILD@ \
8@EO_CFLAGS@
9
10if EFL_ENABLE_BENCHMARK
11
12bin_PROGRAMS = eo_bench
13
14eo_bench_SOURCES = \
15class_simple.c \
16class_simple.h \
17eo_bench.c \
18eo_bench.h \
19eo_bench_eo_do.c
20eo_bench_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@
21
22endif
23
24clean-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
8EAPI Eo_Op SIMPLE_BASE_ID = 0; 10EAPI 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
6extern EAPI Eo_Op SIMPLE_BASE_ID; 4extern EAPI Eo_Op SIMPLE_BASE_ID;
7 5
8enum { 6enum {
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
7void eo_bench_eo_do(Eina_Benchmark *bench); 4void 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
10static void 9static 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
2MAINTAINERCLEANFILES = Makefile.in
3
4SUBDIRS = 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
2MAINTAINERCLEANFILES = Makefile.in
3
4exampledir = $(pkgdatadir)/examples
5
6AM_CPPFLAGS = \
7-I. \
8-I$(top_srcdir)/src/lib \
9-I$(top_builddir)/src/lib \
10@EFL_EO_BUILD@ \
11@EO_CFLAGS@
12
13SRCS = \
14complex.c \
15complex.h \
16interface.c \
17interface.h \
18main.c \
19mixin.c \
20mixin.h \
21simple.c \
22simple.h
23
24example_PROGRAMS =
25
26if EFL_INSTALL_EXAMPLES
27filesdir = $(pkgdatadir)/examples
28files_DATA = $(SRCS)
29endif
30
31if EFL_BUILD_EXAMPLES
32
33example_PROGRAMS += eo_isa
34
35eo_isa_SOURCES = $(SRCS)
36eo_isa_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@
37
38endif
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
8static const Eo_Class_Description class_desc = { 10static 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
6EAPI Eo_Op INTERFACE_BASE_ID = 0; 8EAPI 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
7EAPI Eo_Op MIXIN_BASE_ID = 0; 9EAPI 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
6EAPI Eo_Op SIMPLE_BASE_ID = 0; 8EAPI Eo_Op SIMPLE_BASE_ID = 0;
7 9
8typedef struct 10typedef 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
2MAINTAINERCLEANFILES = Makefile.in
3
4exampledir = $(pkgdatadir)/examples
5
6AM_CPPFLAGS = \
7-I. \
8-I$(top_srcdir)/src/lib \
9-I$(top_builddir)/src/lib \
10@EO_CFLAGS@
11
12SRCS = \
13elw_box.c \
14elw_box.h \
15elw_boxedbutton.c \
16elw_boxedbutton.h \
17elw_button.c \
18elw_button.h \
19elw_win.h \
20elw_win.c \
21evas_obj.c \
22evas_obj.h \
23test.c
24
25example_PROGRAMS =
26
27if EFL_INSTALL_EXAMPLES
28filesdir = $(pkgdatadir)/examples
29files_DATA = $(SRCS)
30endif
31
32if EFL_BUILD_EXAMPLES
33if EO_BUILD_EXAMPLE_EVAS
34
35example_PROGRAMS += evas
36
37evas_SOURCES = $(SRCS)
38evas_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@
39
40endif
41endif
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
9EAPI Eo_Op ELW_BOX_BASE_ID = 0; 11EAPI Eo_Op ELW_BOX_BASE_ID = 0;
10 12
11typedef struct 13typedef 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
11typedef struct 13typedef 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
9EAPI Eo_Op ELW_BUTTON_BASE_ID = 0; 11EAPI Eo_Op ELW_BUTTON_BASE_ID = 0;
10 12
11EAPI const Eo_Event_Description _EV_CLICKED = 13EAPI 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
10EAPI Eo_Op EXEVAS_OBJ_BASE_ID = 0; 12EAPI 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
2MAINTAINERCLEANFILES = Makefile.in
3
4exampledir = $(pkgdatadir)/examples
5
6AM_CPPFLAGS = \
7-I. \
8-I$(top_srcdir)/src/lib \
9-I$(top_builddir)/src/lib \
10@EFL_EO_BUILD@ \
11@EO_CFLAGS@
12
13SRCS = \
14interface.c \
15interface.h \
16main.c \
17mixin.c \
18mixin.h \
19simple.c \
20simple.h
21
22example_PROGRAMS =
23
24if EFL_INSTALL_EXAMPLES
25filesdir = $(pkgdatadir)/examples
26files_DATA = $(SRCS)
27endif
28
29if EFL_BUILD_EXAMPLES
30
31example_PROGRAMS += simple
32
33simple_SOURCES = $(SRCS)
34simple_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@
35
36endif
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
6EAPI Eo_Op INTERFACE_BASE_ID = 0; 8EAPI 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
7EAPI Eo_Op MIXIN_BASE_ID = 0; 9EAPI 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
6EAPI Eo_Op SIMPLE_BASE_ID = 0; 8EAPI Eo_Op SIMPLE_BASE_ID = 0;
7 9
8typedef struct 10typedef 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 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3AM_CPPFLAGS = \
4-I$(top_srcdir)/src/include \
5-I$(top_builddir)/src/include \
6@EFL_EO_BUILD@ \
7@EO_CFLAGS@
8
9installed_headerdir = $(includedir)/eo-@VMAJ@
10dist_installed_header_DATA = Eo.h
11
12lib_LTLIBRARIES = libeo.la
13
14libeo_la_SOURCES = eo.c eo_base_class.c eo_private.h
15libeo_la_LIBADD = @EO_LIBS@
16libeo_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@
17
18clean-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
8EAPI Eo_Op EO_BASE_BASE_ID = 0; 10EAPI Eo_Op EO_BASE_BASE_ID = 0;
9 11
10static int event_freeze_count = 0; 12static int event_freeze_count = 0;
@@ -575,4 +577,3 @@ static const Eo_Class_Description class_desc = {
575}; 577};
576 578
577EO_DEFINE_CLASS(eo_base_class_get, &class_desc, NULL, NULL) 579EO_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;
57void _eo_condtor_done(Eo *obj); 57void _eo_condtor_done(Eo *obj);
58 58
59#endif 59#endif
60