Common/Global Include path for GYP

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Common/Global Include path for GYP

Postby ashutoshd » Tue Aug 25, 2015 9:53 am

I am trying to cross-compile CEF and chromium to ARM platform from Ubuntu 14.04 host machine.
I am using automate-git.py script for doing this with following GYP configurations,
GYP_GENERATORS='ninja'
GYP_CROSSCOMPILE=1
GYP_DEFINES="target_arch=arm arm_float_abi=hard component=shared_library linux_use_gold_flags=1 clang=0"

Code fetch and gclient sync steps are through, but I am stuck at compilation due to Include paths issues.
For cross-compilation, several files/projects within CEF/chromium need ARM cross-compiler's includes "/usr/arm-linux-gnueabihf/include".

However, I am struggling to find a common GYP file within CEF/Chromium source-tree where I can specify it in global manner such that all sub-projects also get it.
(I tried include_dirs at various places without any luck.)

Please share if somebody also faced similar issues earlier.
(I also tried including it in PATH, but that also is not working. :( )
ashutoshd
Newbie
 
Posts: 5
Joined: Thu Aug 20, 2015 2:10 am

Re: Common/Global Include path for GYP

Postby ashutoshd » Wed Aug 26, 2015 12:25 am

Using 'include_dirs+' instead of simple 'include_dirs' in common.gyp file resolved this issue for me! :)
ashutoshd
Newbie
 
Posts: 5
Joined: Thu Aug 20, 2015 2:10 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 73 guests