Commit Graph

39 Commits

Author SHA1 Message Date
Marcel Hollerbach 46d464e5bf here comes meson
a new shiny buildtool that currently completes in the total of ~ 4 min..
1 min. conf time
2:30 min. build time
Where autotools takes:
1:50 min. conf time
3:40 min. build time.

meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read.

Further informations can be gathered from the README.meson

Right now, bindings & windows support are missing.

It is highly recommented to use meson 0.48 due to optimizations in meson
that reduced the time the meson call would need.

Co-authored-by: Mike Blumenkrantz <zmike@samsung.com>

Differential Revision: https://phab.enlightenment.org/D7012
Depends on D7011
2018-10-02 17:22:50 +02:00
Carsten Haitzler 932ae95a4e efl src - mark fallthrough switch statements in 3rd party code
in code we importend that doesnt use eina we have warnings of
fallthroughs. all o them are commented to be fallthrough so add the
attribute there too to have fewer warnings.
2017-08-04 10:19:27 +09:00
Carsten Haitzler bdadc30691 epp - fix buffer size for possibly bigger int snpritnfs
8 bytes wasn't enough for the full int range. use 12 and we're good.
removes warning for sure

@fix
2017-08-02 18:48:06 +09:00
Carsten Haitzler 1dc443a1a6 epp - cpp - fix buffer end/null checks given static buffer paths
this is an ncient bug that's never been triggered... but it's there.
fix and compare to null buffer.

found by PVS studio

@fix
2017-07-31 11:31:04 +09:00
Carsten Haitzler 71b1f4d5a5 epp - remove redundent check for char
makes static analyisers happy... not a bug

found by PVS studio
2017-07-31 10:58:27 +09:00
Jaehyun Cho 6262cbfb62 cpphash: Fix not to access freed pointer. 2016-12-06 14:48:20 +09:00
Jean Guyomarc'h 6687e8b0c0 epp: fix memory corruption when using #warning and #error
The epp instructions #warning and #error would led to a segmentation
fault (invalid free) because the malloced buffer's base pointer was
moved.

@fix
2016-10-05 21:16:06 +02:00
Carsten Haitzler f37a0398c3 epp - document that fallthrough is intended 2016-09-08 17:30:59 +09:00
Carsten Haitzler 4e29db73c9 edje epp - fix gcc warning about possible unused var usage
gcc now is complaining about out ancient cpp code possibly using
newlines as undefined. this should keep this warning quiet - there
isnt a real performance issue here.

bin/edje/epp/cpplib.c: In function ‘cpp_get_token’:
bin/edje/epp/cpplib.c:4602:15: warning: ‘newlines’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
       else if (newlines > 0)

@fix
2016-03-01 13:25:35 +09:00
Vincent Torri 3b44645363 efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:04:36 +01:00
Cedric BAIL 863ed65a0f epp: fix annotate. 2015-04-16 19:21:45 +02:00
Cedric BAIL ae157734ff Added non-edc resource dependencies on .edc while dumping dependencies
Summary: Added code to include non-edc resource (image, sound, video etc) path in dep file while dumping include dependencies for edc files.

Reviewers: raster, cedric, Sergeant_Whitespace

Reviewed By: cedric, Sergeant_Whitespace

Subscribers: Sergeant_Whitespace

Projects: #efl

Maniphest Tasks: T2252

Differential Revision: https://phab.enlightenment.org/D2270
2015-04-06 16:37:53 +02:00
Dinesh Dwivedi 70df9f48ba edje: add option to dump gnu style include dependencies in edje_cc.
Summary:
We were facing one problem in tizen sdk's build system as it does not trigger build for edc file
if only sub-edc files are changed. During analysis, we found that there is no option in edje_cc
for dumping include dependencies which other compiler (clang/ gcc etc) does have. We can do other
hack to solve this problem but it will be great if edje_cc can emit gnu style include dependency
target.

This patch will add support to generate gnu format include dependency file while compiling edc file.
similar to what gcc generates with option '-MMD -MF=<dep_file> -MT<dep_file>'
https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Preprocessor-Options.html

Test Plan: no failure in existing test

Reviewers: raster, cedric

Reviewed By: cedric

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D2263

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-31 18:03:56 +02:00
Tom Hacohen 374fa09f48 Edje epp: Fix FSF mailing address in the copyright notice.
Fixes T2157.

Thanks to spotrh for suggesting the fix.
2015-03-06 10:40:14 +00:00
Nicolas Aguirre 71dd24a481 edje: epp - fix build of edje file in cas of recursive includes.
Amitesh Singh fixed this issue with Commit
e66e132d9d, but this commit has been reverted
recently, by a commit freeing ressources
(6d0b834a76). It's clear that we are leaking here
if we remove the free, but there is also a valgrind error when this memory is
freed. After trying to debug and understand the code of epp, i can only
propose to remove this free, we will need to include a lot of files before this
memory leak could be visible.

It is also not a real problem, the memory leak only concern the file name passed
in the include directive and epp is started per file anyway. It is unlikely to
create any real life problem and we better spend our time on more pressing matter.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05 15:59:10 +01:00
Thiep Ha c27b511b28 edje: fix memory leak in epp
Summary:
Variable include_defaults can be allocated and
go out of scope without freeing it.

Reviewers: cedric, seoz, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1784
2014-12-18 09:17:03 +09:00
ChunEon Park 0f5a5fc19e edje/cpplib: fix formatting 2014-12-18 09:09:33 +09:00
Thiep Ha 6d0b834a76 edje: free allocated memory in epp
Summary: fname variable's memory is allocated but not freed.

Reviewers: cedric, seoz, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1785
2014-12-18 09:05:50 +09:00
Nibha Sharma 08d0137987 Logically dead code has been removed.Because width will always be less than HOST_BITS_PER_INT so else branch will never execute.
Reviewers: singh.amitesh, seoz, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1506
2014-12-16 20:10:25 +09:00
Srivardhan Hebbar 9867fe5863 edje: Removed redundant assignement of rest_args.
Summary:
While going through the code, I found this. Thought this was just a redundant and fixed it.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1774
2014-12-12 09:14:13 -05:00
Amitesh Singh e66e132d9d Revert "edje: prevent resource leak."
Summary:
This reverts commit f6eb1f17a1.

This will result into failure of edc compilation with recursive use of include.

Reviewers: cedric, raster, seoz

Reviewed By: seoz

Subscribers: chinmaya061, cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1475

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-23 11:08:43 +02:00
Amitesh Singh 8ebf5d49b2 epp: fix memory leak.
Reviewers: cedric, seoz

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1470

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Anand e520d3128e edje: fix resourse leak in epp.
Summary: Variable prefix going out of scope leaks the storage it points to.

Reviewers: seoz, singh.amitesh, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1468

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Chinmaya Panigrahi f6eb1f17a1 edje: prevent resource leak.
Summary:
The pointer used is not freed at the end of the function which
results resource leak.

@fix

Test Plan: Not Available

Reviewers: seoz, raster, cedric

Reviewed By: cedric

Subscribers: raster, seoz, cedric

Differential Revision: https://phab.enlightenment.org/D1438

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-12 23:08:26 +02:00
Carsten Haitzler f5f27afee0 epp - fix unused pointer var bug
fix CID 1039493
2014-08-25 12:57:26 +09:00
Carsten Haitzler f9cef6f079 epp - fix unchecked return
fix CID 1039717
2014-08-14 19:04:38 +09:00
Carsten Haitzler 00d3bd1747 epp - fix unchecked return
this fixes CID 1039718
2014-08-14 19:02:39 +09:00
Carsten Haitzler e82b61b420 epp - fix bit underflow in bitshift for multibyte
this fixes CID 1193200
2014-08-14 17:39:11 +09:00
ChunEon Park dc945ccb55 edje/epp - clean up memory allocated. 2014-05-27 22:17:01 +09:00
Carsten Haitzler abb780bf5f edje - epp - fix possible array access by negative
this should fix CID 1039357
2013-12-13 21:26:05 +09:00
Cedric Bail 11bad33813 epp: avoid to rely on undefined behavior for fopen.
In the case we didn't define the file to save to, fopen would have
been called with a NULL parameter. The result of that call is not
really defined and could have led to some crash at some point.
2013-11-05 16:28:56 +09:00
Cedric BAIL 48bc51b0c7 edje: fix CID 1054522 - Logically dead code
The buffer is a static buffer in that scenario, so never going to be NULL indeed.
2013-10-14 13:53:06 +02:00
Carsten Haitzler 2ca7f23dbc fix clang nonnull complaint 2013-07-16 17:12:08 +09:00
Carsten Haitzler 8db1013956 fix clang nonnull complaint 2013-07-16 17:10:59 +09:00
Chris Michael 93fc18daf2 Fix leak of fd handle reported by Coverity
NB: Fixes Coverity CID1039288

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-08 13:07:18 +01:00
Sebastian Dransfeld 336f6ec328 efl: formatting 2013-06-20 13:28:18 +02:00
Cedric Bail 69b5868005 edje: fix epp compilation on Windows. 2013-03-16 15:40:35 +09: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
Gustavo Sverzut Barbieri 9ea2ce1041 efl: merge edje.
this is still in progress, mostly the multisense stuff is pending.

it seems that when we merge ecore_audio in edje the libremix and
similar are gone, at least from Edje, and will be in ecore_audio
itself (or pulseaudio).

Changes:
 * __UNUSED__ to EINA_UNUSED
 * binaries (epp, embryo_cc, edje_cc) now consider EFL_RUN_IN_TREE and
   will assume the binaries are still not installed, running from
   build tree location (needs more testing, maybe doesn't work with
   srcdir != builddir, still doesn't solve cross compile builds)



SVN revision: 82139
2013-01-04 02:08:14 +00:00