This adds cflags for desktop linux
* Usage in C/C++
#if defined(USE_EFL)
// implementation here
#endif
* Usage in gyp
if (desktop_linux) {
// implementation here
}
Change-Id: I73fb49441fb6581bc87b0a5fba05b1ea6de8a46e
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
'openssl_fips': '',
'openssl_no_asm': 1,
'use_efl%': 0,
+ 'desktop_linux%': 0,
'use_openssl_def': 0,
'OPENSSL_PRODUCT': 'libopenssl.a',
'node_release_urlbase': 'https://atom.io/download/atom-shell',
# bootstrap
-${TOPDIR}/script/bootstrap.py \
- --define "use_efl=1 libchromiumcontent_component=1" \
- --dev \
- --disable_clang \
- -v \
- $@
+hostGypElectronEfl $@
# build
function getPythonVersion() {
echo $(python --version 2>&1 | sed -e 's/Python \([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')
}
+
+function hostGypElectronEfl() {
+ if [[ $SKIP_GYP != 1 ]]; then
+ local DEFINE_ARGS="
+ desktop_linux=1
+ libchromiumcontent_component=1
+ use_efl=1
+ "
+ ${TOPDIR}/script/bootstrap.py \
+ --define "${DEFINE_ARGS}" \
+ --dev \
+ --disable_clang \
+ -v \
+ $@
+ fi
+}
if args.msvs:
generator = 'msvs-ninja'
+ print "GYP defines ::: ", defines
return subprocess.call([python, gyp, '-f', generator, '--depth', '.',
'electron.gyp', '-Icommon.gypi'] + defines, env=env)
'DISABLE_NACL',
],
'conditions': [
- ['OS!="mac"', {
+ ['OS!="mac" and use_efl!=1', {
'defines': [
'TOOLKIT_VIEWS',
'USE_AURA',
],
}, {
'conditions': [
+ ['desktop_linux==1', {
+ 'defines': [
+ 'DESKTOP_LINUX',
+ ],
+ }],
['use_efl==1', {
'defines': [
'USE_EFL',