edje: add option to dump gnu style include dependencies in edje_cc.
authorDinesh Dwivedi <dinesh.d@samsung.com>
Tue, 31 Mar 2015 15:40:30 +0000 (17:40 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 31 Mar 2015 16:03:56 +0000 (18:03 +0200)
commit70df9f48bae3a55ab9bd0e9ca555f6cfb8b2da4c
tree4a7690dbd610cf9316b668f6ac7cf676a9e50dce
parent22fafce84d015368ac4838d7fd129f76218df9da
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>
src/bin/edje/edje_cc.c
src/bin/edje/edje_cc.h
src/bin/edje/edje_cc_parse.c
src/bin/edje/epp/cpplib.c