function hostGypChromiumEfl() {
if [[ $SKIP_GYP == 0 ]]; then
- ${TOPDIR}/tizen_src/build/gyp_chromiumefl.sh $@
+ local XWALK_ARG=""
+ if [[ $BUILD_XWALK == 1 ]]; then
+ XWALK_ARG="--xwalk"
+ fi
+ ${TOPDIR}/tizen_src/build/gyp_chromiumefl.sh $XWALK_ARG $@
fi
}
import sys
top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
-xwalk_dir = os.path.join(top_dir, '..', 'xwalk')
+if '--xwalk' in sys.argv:
+ xwalk_dir = os.path.join(top_dir, '..', 'xwalk')
+ sys.argv.remove('--xwalk')
+else:
+ xwalk_dir = None
chrome_src = os.environ.get('CHROME_SRC')
if chrome_src:
chrome_src = os.path.abspath(chrome_src)
result.append(path)
# Include xwalk common.gypi to effect chromium source tree.
- AddInclude(os.path.join(xwalk_dir, 'build', 'common.gypi'))
+ if xwalk_dir:
+ AddInclude(os.path.join(xwalk_dir, 'build', 'common.gypi'))
# Always include common.gypi.
AddInclude(os.path.join(script_dir, 'common.gypi'))
if not gyp_file_specified:
args.append(os.path.join(top_dir, 'ewk', 'chromium-ewk.gyp'))
- args.append(os.path.join(xwalk_dir, 'xwalk.gyp'))
+
+ if xwalk_dir:
+ args.append(os.path.join(xwalk_dir, 'xwalk.gyp'))
args.extend(['-I' + i for i in additional_include_files(args)])