Commit Graph

283 Commits

Author SHA1 Message Date
Cedric BAIL fe21e281a7 eeze: add back support for older system.
Support for older system that don't come with libmount or have
an older libmount. This is a backport from Eeze 1.7 tree. There
is no code change there.
2013-02-21 17:19:35 +09:00
Cedric BAIL 91711d8a69 ecore: add Ecore_Coroutine.
That work clearly was possible thanks to Leandro. If you want more information
go to his blog : http://tia.mat.br/posts/async_io_with_coroutines/ .

The main difference with his implementation is more portable and not thread safe.
It does not have a custom swapcontext (would make sense as we don't need to save
the sigcontext) so it will be less fast. If people are ready to contribute asm
patch for that purpose I will be happy to apply them.

As for portability this code should work on all architecture we already support
thanks to a nice hack with setjmp/longjmp borowed from libcoroutine. We do use
Fiber for Windows support, but as 1.8 is completely borken in that regard, this
is theorical work only.

Thinks left to do :
- Eoify the API
- Documentation
- More tests
- Add support for coroutine in fd handler
- Add coroutine support to ecore_thread api
- Write some example
2013-02-18 14:38:33 +01:00
Carsten Haitzler a7cd80338e Fix emotion build to add eeze includes if EEZE on.. not v4l2! 2013-02-18 19:35:58 +09:00
Cedric BAIL 884c31df41 eina: fix siginfo detection.
Signal are not a portable way to detect memory mapped file corruption.
So let's disable it for system without signal and later find a way to
detect it on other system.
2013-02-18 16:46:52 +09:00
Tom Hacohen 0f3d5509bc Efl: Ship cmake configs (like pkg-config).
This should make it easier for applications to use efl with cmake.
It seems to work with my tests. It's ugly and redundant but it's the first
step. Not all the components are supported at the moment.

SVN revision: 83637
2013-02-05 16:19:37 +00:00
Daniel Willmann ed92993aab efl: Add switch to enable edje-multisense
/vtorri NEWS and ChangeLog

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 83381
2013-01-28 15:15:32 +00:00
Bruno Dilly ce199b41d1 efl: Support AM_PROG_AR in build sys when available
Patch by Henrique Dante de Almeida <hdante@profusion.mobi>



SVN revision: 83306
2013-01-24 16:18:07 +00:00
Christopher Michael a2dfe25719 Change wayland shm engine to use proper macro.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83271
2013-01-24 09:20:32 +00:00
Carsten Haitzler 6c12934bb1 disanle AM_PROG_AR... see comment in configure.ac
SVN revision: 83113
2013-01-22 23:52:40 +00:00
Gustavo Sverzut Barbieri 44732c72d9 relax that test.
seems autoconf is stupid and cannot agree on a single variable to
store stuff, if you give ./configure CXX=bla it will change
everything.

Relax the test and just use CXX, if it's set, believe it's usable.



SVN revision: 83008
2013-01-19 15:46:57 +00:00
Gustavo Sverzut Barbieri ee3575e8c8 fix missing linkage with -lrt for shm_open users.
strange that nobody except hdante noticed this before, but it was
missing linkage with -lrt in libemotion (due generic being static) and
ecore_evas/extn.



SVN revision: 83007
2013-01-19 14:59:39 +00:00
Gustavo Sverzut Barbieri eb7abae5c5 remove useless AM_CONDITIONAL
SVN revision: 83006
2013-01-19 14:14:21 +00:00
Gustavo Sverzut Barbieri 7a60e815e2 fix one more build break due DSO (now gcov-related).
SVN revision: 82997
2013-01-18 19:44:19 +00:00
Gustavo Sverzut Barbieri 68610d3d28 fix c++ check on some platforms.
i guess it was automake change (1.11 x 1.13)


SVN revision: 82996
2013-01-18 19:33:02 +00:00
Gustavo Sverzut Barbieri acb864c987 fix report of test command summary
SVN revision: 82994
2013-01-18 19:15:14 +00:00
Gustavo Sverzut Barbieri 475ed5548d Use -Wl,--no-copy-dt-needed-entries to force DSO everywhere.
-Wl,--no-copy-dt-needed-entries (previously known as --no-add-needed)
 will tell the linker to not recursively copy DT_NEEDED from one
 library. This is the new behavior some distros are wisely using, so
 let's force it everywhere.

 * http://wiki.debian.org/ToolChain/DSOLinking
 * http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking



SVN revision: 82992
2013-01-18 18:54:44 +00:00
Gustavo Sverzut Barbieri db38bdd6de cosmetic: simplify and colorize features.
EFL_ADD_FEATURE(PKG, NAME, [VALUE]) will do an amazing work to produce
colored output in a standard way.

if value == yes, it's green and shows "+name"
if value == no, it's red and shows "-name"
else it shows cyan and shows "name=value"

if not provided, will use ${have_name:-${want_name}}



SVN revision: 82976
2013-01-18 13:48:14 +00:00
Gustavo Sverzut Barbieri 88f2d26608 don't mix private and public libraries dependencies.
when I fixed eina's dependency on -lpthread I used all the libraries
eina links to. But we should just do with -lpthread as it's a public
dependency... that was in eina.pc.in and I missed.

Now we have EFL_ADD_PUBLIC_LIBS() that will register for
requirements_public_libs_name and use internally when eina is used.

This should also fix the problem by Arvind with gcrypt.



SVN revision: 82942
2013-01-17 18:55:32 +00:00
Gustavo Sverzut Barbieri eb7a8feef5 try to fix --with-crypto=gnutls due libcrypt-config usage.
Seems AC_PATH_GENERIC() wasn't present somewhere, then I'm adding the
AM_PATH_LIBGCRYPT() provided by libcrypt (I need to include it in m4/
otherwise it will fail for people doing ./autogen.sh without libgcrypt
installed).

It works on my machine, but `libgcrypt-config --libs` output is just
"-lgcrypt -lgpg-error", including no -L.



SVN revision: 82939
2013-01-17 16:47:36 +00:00
Cedric BAIL 6242f4543c efl: disable for now the libgcrypt check so thinks build.
SVN revision: 82916
2013-01-17 02:36:09 +00:00
Gustavo Sverzut Barbieri fadeb72831 eeze's mount shouldn't be optional.
eeze is just used on linux, where libmount exists and then we
shouldn't make this an option so we can rely on eeze's mount being
there.

(the code keeps the #ifdef's for a while, in case we need to revert that later)



SVN revision: 82901
2013-01-16 21:05:19 +00:00
Gustavo Sverzut Barbieri 9463885e78 be strict about c++ compiler.
SVN revision: 82900
2013-01-16 20:53:35 +00:00
Gustavo Sverzut Barbieri bc6f4c0b8d Make ecore_cocoa use the EFL_LIB_START_OPTIONAL(), remove cruft, add TODO.
It seems that Cocoa engines were not working, so they're still disabled.



SVN revision: 82899
2013-01-16 20:43:49 +00:00
Gustavo Sverzut Barbieri ad1417713b simplify efl version and initialization in a macro, fixes libtool version-info.
Introduces EFL_VERSION() to make it simpler to define our version. The
last parameter is the release status, defaults to 'dev' for
development purposes and may be set to something else to be a
snapshot. It non-empty will be given to libtool's -release.

As EFL_VERSION() must be done *before* AC_INIT(), we need to create
another macro to do the AC_SUBST() and AC_DEFINE(). This is
EFL_INIT. And no, we can't just call AC_INIT() from inside EFL_INIT().

Last but not least, we had a problem with our libtool version-info. It
was being calculated as MAJOR + MINOR, right now 1 + 7 = 8. But as
soon as we get to MAJOR=2 and MINOR=0, we get into problems. This was
fixed by rewriting as (MAJOR * 100 + MINOR), but this is still
problematic.

According to libtool's manual (info libtool), we shouldn't bind the
version-info with package info, instead doing the 'release'
field. Pretty likely we'll do worse than expected by distros and
binary packages in future :-/




SVN revision: 82891
2013-01-16 17:24:36 +00:00
Lucas De Marchi 1d295abac0 efl: use autotools testsuite for running tests
Instead of just making our own "check-local" and calling the binaries
ourselves, just append them into "TESTS" variable. Then they run after
all check_PROGRAMS are compiled.

The reasons for changing are:
  1) If we change the test and call "make check" the test is not
  compiled again -- and the only way to compile it is to "make clean".
  2) There's no need to reinvent the wheel here.

With a recent version of Automake, the test output is redirected to log
files. This is good but unexpected for whom was used to the previous
way. So, be warned.



SVN revision: 82841
2013-01-15 20:51:04 +00:00
Gustavo Sverzut Barbieri d97c63e4c6 fix directory structure: move ethumd_client out of ethumb.
it's another library, do not mix stuff as it used to be.




SVN revision: 82835
2013-01-15 18:10:58 +00:00
Gustavo Sverzut Barbieri a4b89a16ac fix scim and ibus imf dependencies.
we must not use PKG_CHECK_MODULES() for internal dependencies, as
their pc were not installed at the time of configure.



SVN revision: 82825
2013-01-15 16:55:14 +00:00
Leif Middelschulte 31bd3af105 Prepend svnversion command with LC_ALL=C so the subsequent grep works with non-english locales too.
This patch was brought to you by:
sed -i'' 's/svnversion/LC_ALL=C svnversion/' configure.ac

Anybody who has the entire trunk and branches around is welcome to apply an analogue patches to it.


SVN revision: 82822
2013-01-15 15:57:58 +00:00
ChunEon Park ca0cc1cbc9 efl/ecore_imf - need dependecy from imf modules.
SVN revision: 82801
2013-01-15 12:51:16 +00:00
Gustavo Sverzut Barbieri b1bc5aeb24 efl: simplify automake.
Instead of -I$(top_srcdir)... -I$(top_builddir)... and then do it for
the .la, use the EFL_ macros to generate the contents to be used in
automake files.

There is a nasty bit that libtool will parse Makefile*.am and will not
get _DEPENDENCIES from _LIBADD and _LDADD if these are in
@REPLACEMENT@. To solve this we must explicitly set _DEPENDENCIES. The
contents of this is almost the same as _LIBADD or _LDADD with the
"_INTERNAL_" replacement name.

I hope the code will be result will be shorter and consistent as there
is less places to change when we add/remove dependencies.

Statistics are quite impressive (diffstat):
{{{
37 files changed, 663 insertions(+), 1599 deletions(-)
}}}



SVN revision: 82785
2013-01-14 22:36:23 +00:00
Lucas De Marchi 2d7e10363d efl/efreet: remove clearenv usage
This improves the tests on freebsd, which doesn't have clearenv()  (
though this commit was untested on such environement). clearenv was
rejected from POSIX so we better aim to stop its usage. However since
tests use setenv() this may lead to leaks, but it's better a leak than a
failing test.

On Linux all tests that were passing continue to pass.



SVN revision: 82779
2013-01-14 21:04:22 +00:00
Lucas De Marchi a2d1bd89d7 efl: remove check for openat function
This function is being used nowhere, so no need to check for its
availability.



SVN revision: 82777
2013-01-14 21:04:11 +00:00
Gustavo Sverzut Barbieri f07856769a use our custom version to test dirfd().
it was reported that AC_CHECK_FUNCS() couldn't work on netbsd because
dirfd is a macro and it would not properly evaluate int that
traditional test.



SVN revision: 82736
2013-01-14 00:09:47 +00:00
Gustavo Sverzut Barbieri fe0df086f3 efl/evas_cserve2 slave just need -lrt, not whole evas deps/libs
SVN revision: 82732
2013-01-13 23:12:40 +00:00
Gustavo Sverzut Barbieri 3815810b1a clean up benchmark and example rules.
- they have no 'all' rule, keep out of SUBDIRS

 - they depend on 'all-am', the non-recursive target that builds everything.

 - they do not need a directory on its own to declare nothing.x



SVN revision: 82689
2013-01-12 07:38:26 +00:00
Gustavo Sverzut Barbieri 00f59eaf54 turn on automake warnings and fix them.
using their recommended way to implement silent rules.


SVN revision: 82686
2013-01-12 06:50:35 +00:00
Gustavo Sverzut Barbieri 4f52ae0f1b efl/ethumb: the test is actually an example.
SVN revision: 82676
2013-01-12 03:59:25 +00:00
Gustavo Sverzut Barbieri 34f5315141 merge ethumb.
This one was a painful bitch. The edbus2 port was quite broken, mainly
leaking eina_stringshare and also not adding the '\0' to the strings
that are represented as bytearray (paths cannot be utf8 to avoid
translations).

Emotion plugin was also quite bogus and the video thumbnail as edje
(animated) is not working yet due bug in Edje_Edit api -- someone
needs to investigate this, seems strange.

Emotion plugin also had a bug that it was deleting the object from
inside object callback.

Now it seems to work. Please report if it does not.



SVN revision: 82675
2013-01-12 01:15:45 +00:00
Gustavo Sverzut Barbieri 7d5e6fffb9 efl/configure: fix AM_CONDITIONAL() error if eeze is not to be built.
SVN revision: 82649
2013-01-11 17:07:04 +00:00
Gustavo Sverzut Barbieri 85f8163c3e efl/ecore_evas: merge buffer into core, split extn apart.
buffer is lightweight and dependency for many engines, merge it back
into core.

extn is a module on its own, and it's the only one linking to
ecore_ipc, no need to add that to ecore_evas.

minor cosmetic changes to configure to make output consistent.



SVN revision: 82648
2013-01-11 16:57:21 +00:00
Gustavo Sverzut Barbieri f0a0fd7f4e efl: fix option for gstreamer.
Thanks to Nicolas Aguirre


SVN revision: 82604
2013-01-11 03:22:03 +00:00
Lucas De Marchi 06ff74834f efl: remove checks for socket.h, net/*, arpa/*
SVN revision: 82585
2013-01-10 20:26:02 +00:00
Lucas De Marchi 90ba30ec7c efl: remove checks for sys/select.h, sys/time.h and sys/resource.h
SVN revision: 82584
2013-01-10 20:25:57 +00:00
Lucas De Marchi f1ca8b54d6 efl: remove check for langinfo.h and locale.h
SVN revision: 82583
2013-01-10 20:25:53 +00:00
Lucas De Marchi 4af2647d05 efl: remove check for libgen.h
SVN revision: 82582
2013-01-10 20:25:48 +00:00
Lucas De Marchi 3e4eb4437e efl: remove check for errno.h
SVN revision: 82581
2013-01-10 20:25:44 +00:00
Lucas De Marchi 23b741699f efl: remove check for inttypes.h and stdint.h
SVN revision: 82580
2013-01-10 20:25:39 +00:00
Lucas De Marchi f60bfe38d6 efl: Remove check for siginfo.h and siginfo_t
SVN revision: 82579
2013-01-10 20:25:35 +00:00
Lucas De Marchi 8f86ee2065 efl: Remove check for signal.h
SVN revision: 82578
2013-01-10 20:25:31 +00:00
Lucas De Marchi db395ef7eb efl: Remove check for unistd.h
* unistd.h: is very useful, very old and very standard.



SVN revision: 82577
2013-01-10 20:25:26 +00:00