From: Youngsoo Choi Date: Mon, 6 Aug 2018 01:45:37 +0000 (-0700) Subject: [M67 Dev][Tizen] Remove GYP dependencies in tizen_src X-Git-Tag: submit/tizen/20201118.160233~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a5fa648e8e6b94eb5d14eff7fa67af4729a97df;p=platform%2Fframework%2Fweb%2Fchromium-efl.git [M67 Dev][Tizen] Remove GYP dependencies in tizen_src This removes GYP dependencies in tizen_src. Change-Id: Iedd7c5e6f1665f601e04100a4c0d46ee728bcc58 Signed-off-by: Youngsoo Choi --- diff --git a/tizen_src/build/common.sh b/tizen_src/build/common.sh index 983c005..37b9bd9 100755 --- a/tizen_src/build/common.sh +++ b/tizen_src/build/common.sh @@ -56,12 +56,10 @@ OPTIONS: --no-content-shell Don't build content_shell application --debug Build debug version of chromium-efl (out.${host_arch}/Debug instead of out.${host_arch}/Release) -jN Set number of jobs, just like with make or ninja - --skip-gyp Skip restore_gyp, jhbuild and gyp_chromium steps --skip-ninja Skip ninja step examples: -$0 --skip-gyp -$0 --skip-gyp --ccache +$0 --ccache $0 --skip-ninja EOF exit @@ -69,7 +67,6 @@ EOF function parseHostBuildScriptParams() { - export SKIP_GYP=0 export USE_CCACHE=0 export USE_CLANG=0 export FORCE_JHBUILD=0 @@ -87,9 +84,6 @@ function parseHostBuildScriptParams() { -h|--help) hostBuldScriptUsage ${0} ;; - --skip-gyp) - export SKIP_GYP=1 - ;; --skip-gn) export SKIP_GN=1 ;; @@ -131,24 +125,6 @@ function parseHostBuildScriptParams() { done } -function hostGypChromiumEfl() { - if [[ $SKIP_GYP == 0 ]]; then - local XWALK_ARG="" - local COMPONENT_ARG="" - if [[ $BUILD_XWALK == 1 ]]; then - XWALK_ARG="--xwalk" - fi - if [[ $COMPONENT_BUILD == 1 ]]; then - COMPONENT_ARG="-Dcomponent=shared_library" - fi - ${TOPDIR}/tizen_src/build/gyp_chromiumefl.sh \ - $XWALK_ARG \ - $COMPONENT_ARG \ - -Doutdir="$TOPDIR/out.$(getHostArch)" \ - $@ - fi -} - function hostGnChromiumEfl() { if [[ $SKIP_GN != 1 ]]; then local XWALK_ARG="" @@ -228,11 +204,6 @@ function setupAndExecuteTargetBuild() { count=$(( $count + 1 )) ARGS[$count]="_skip_ninja 1" ;; - --skip-gyp) - ARGS[$count]=--define - count=$(( $count + 1 )) - ARGS[$count]="_skip_gyp 1" - ;; --skip-gn) ARGS[$count]=--define count=$(( $count + 1 )) diff --git a/tizen_src/build/cross_build_mobile.sh b/tizen_src/build/cross_build_mobile.sh index a19ba14..47e2893 100755 --- a/tizen_src/build/cross_build_mobile.sh +++ b/tizen_src/build/cross_build_mobile.sh @@ -26,10 +26,6 @@ function postBuild() { rollbackGbsSysrootChanges $1 } -if [ -z "$GYP_GENERATOR_OUTPUT" ]; then - export GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.cross.arm" -fi - parseHostBuildScriptParams crosscompile $@ if [ -z "$GBS_ROOT_PATH" ]; then @@ -52,15 +48,11 @@ export RANLIB_target=${CROSS_COMPILE}ranlib export SYSROOTDIR="${GBS_ROOT_PATH}"/local/BUILD-ROOTS/scratch.armv7l.0 export PKG_CONFIG_SYSROOT_DIR="${SYSROOTDIR}" export PKG_CONFIG_PATH="${SYSROOTDIR}/usr/lib/pkgconfig:${SYSROOTDIR}/usr/share/pkgconfig" -export GYP_CROSSCOMPILE=1 export PATH="${TOPDIR}/build/cross-shim:$PATH" preBuild ${SYSROOTDIR} -export __GYP_CHROMIUMEFL_TARGET=crosscompile -hostGypChromiumEfl -Dbuilding_for_tizen_mobile=1 - hostNinja crosscompile RET=$? diff --git a/tizen_src/build/cross_build_tv.sh b/tizen_src/build/cross_build_tv.sh index 0246cd4..47e2893 100755 --- a/tizen_src/build/cross_build_tv.sh +++ b/tizen_src/build/cross_build_tv.sh @@ -26,10 +26,6 @@ function postBuild() { rollbackGbsSysrootChanges $1 } -if [ -z "$GYP_GENERATOR_OUTPUT" ]; then - export GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.cross.tv.arm" -fi - parseHostBuildScriptParams crosscompile $@ if [ -z "$GBS_ROOT_PATH" ]; then @@ -52,15 +48,11 @@ export RANLIB_target=${CROSS_COMPILE}ranlib export SYSROOTDIR="${GBS_ROOT_PATH}"/local/BUILD-ROOTS/scratch.armv7l.0 export PKG_CONFIG_SYSROOT_DIR="${SYSROOTDIR}" export PKG_CONFIG_PATH="${SYSROOTDIR}/usr/lib/pkgconfig:${SYSROOTDIR}/usr/share/pkgconfig" -export GYP_CROSSCOMPILE=1 export PATH="${TOPDIR}/build/cross-shim:$PATH" preBuild ${SYSROOTDIR} -export __GYP_CHROMIUMEFL_TARGET=crosscompile -hostGypChromiumEfl -Dbuilding_for_tizen_tv=1 -Dchromium_efl_tizen_version="2.4" - hostNinja crosscompile RET=$? diff --git a/tizen_src/build/efl_filename_rules.gypi b/tizen_src/build/efl_filename_rules.gypi deleted file mode 100644 index 189961b..0000000 --- a/tizen_src/build/efl_filename_rules.gypi +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2015 Samsung Electronics. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'target_conditions': [ - ['<(use_efl)==0', { - 'source/': [ - [ 'exclude', '_efl\.(h|cc)$' ], - ], - }], - ] -} diff --git a/tizen_src/build/gyp_chromiumefl b/tizen_src/build/gyp_chromiumefl deleted file mode 100755 index 2237ce8..0000000 --- a/tizen_src/build/gyp_chromiumefl +++ /dev/null @@ -1,196 +0,0 @@ -#!/usr/bin/env python - -import argparse -import glob -import os -import shlex -import subprocess -import sys - -top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) -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) -if not chrome_src or not os.path.isdir(chrome_src): - chrome_src = os.path.join(top_dir, '..') - print 'CHROME_SRC not set, falling back to ' + chrome_src - -script_dir = os.path.abspath(os.path.join(chrome_src, 'build')) -if not os.path.isdir(script_dir): - print script_dir + " is not a valid directory" - sys.exit(1) - -sys.path.insert(0, script_dir) -import gyp_helper -sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) -import gyp -import gyp.generator.ninja - - -def gyp_ninja_override_CalculateVariables(default_variables, params): - """Calculate additional variables for use in the build (called by gyp).""" - - default_variables.setdefault('OS', 'linux') - default_variables.setdefault('gcc_version', '49') - default_variables.setdefault('SHARED_LIB_SUFFIX', '.so') - default_variables.setdefault('SHARED_LIB_DIR', - os.path.join('$!PRODUCT_DIR', 'lib')) - # Take into account the fact that toplevel_dir might not be equal to depth - toplevel_offset = '' - if 'options' in params: - options = params['options'] - toplevel_offset = os.path.relpath(options.depth, options.toplevel_dir) - default_variables.setdefault('LIB_DIR', - os.path.join('$!PRODUCT_DIR', 'obj', toplevel_offset)) - -# Override CalculateVariables functions in gyp ninja generator instead of patching gyp. -gyp.generator.ninja.CalculateVariables = gyp_ninja_override_CalculateVariables - -# Add paths so that pymod_do_main(...) can import files. -sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) -sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) - -sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit', - 'Source', 'core', 'core.gyp', 'scripts')) -# Remove the above and keep the line below once we require a newer specific -# Chromium revision. -sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit', - 'Source', 'build', 'scripts')) -sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) -sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) - -import repack_locales - -def additional_include_files(args=[]): - """ - Returns a list of additional (.gypi) files to include, without - duplicating ones that are already specified on the command line. - """ - # Determine the include files specified on the command line. - # This doesn't cover all the different option formats you can use, - # but it's mainly intended to avoid duplicating flags on the automatic - # makefile regeneration which only uses this format. - specified_includes = set() - for arg in args: - if arg.startswith('-I') and len(arg) > 2: - specified_includes.add(os.path.realpath(arg[2:])) - - result = [] - def AddInclude(path): - if os.path.realpath(path) not in specified_includes: - result.append(path) - - # Include xwalk common.gypi to effect chromium source tree. - if xwalk_dir: - AddInclude(os.path.join(xwalk_dir, 'build', 'common.gypi')) - - # Always include common.gypi. - AddInclude(os.path.join(script_dir, 'common.gypi')) - - # Optionally add supplemental .gypi files if present. - supplements = glob.glob(os.path.join(chrome_src, '*', 'supplement.gypi')) - for supplement in supplements: - AddInclude(supplement) - - return result - - -def GetOutputDirectory(): - """Returns the output directory that GYP will use.""" - - # Handle command line generator flags. - parser = argparse.ArgumentParser() - parser.add_argument('-G', dest='genflags', default=[], action='append') - genflags = parser.parse_known_args()[0].genflags - - # Handle generator flags from the environment. - genflags += shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', '')) - - needle = 'output_dir=' - for item in genflags: - if item.startswith(needle): - return item[len(needle):] - - return 'out' - - -if __name__ == '__main__': - args = sys.argv[1:] - - # On Mac we want to override CXX and CC that is provided with - # the Chromium GYP environment. - if sys.platform.startswith('darwin'): - os.environ['CXX'] = 'clang++' - os.environ['CC'] = 'clang' - - gyp_helper.apply_chromium_gyp_env() - - # This could give false positives since it doesn't actually do real option - # parsing. Oh well. - gyp_file_specified = False - for arg in args: - if arg.endswith('.gyp'): - gyp_file_specified = True - break - - if not gyp_file_specified: - args.append(os.path.join(top_dir, 'ewk', 'chromium-ewk.gyp')) - - if xwalk_dir: - args.append(os.path.join(xwalk_dir, 'xwalk.gyp')) - - args.extend(['-I' + i for i in additional_include_files(args)]) - - # On Mac we want to build in x64 mode. And we want to use libc++. - # Even though we are not on linux, it seems we specifically have to disable linux_use_tcmalloc. - if sys.platform in ('darwin',): - args.extend(['-D', 'host_arch=x64', '-D', 'use_libcpp=1', '-D', 'linux_use_tcmalloc=0']) - - # There shouldn't be a circular dependency relationship between .gyp files, - # but in Chromium's .gyp files, on non-Mac platforms, circular relationships - # currently exist. The check for circular dependencies is currently - # bypassed on other platforms, but is left enabled on the Mac, where a - # violation of the rule causes Xcode to misbehave badly. - # TODO(mark): Find and kill remaining circular dependencies, and remove this - # option. http://crbug.com/35878. - # TODO(tc): Fix circular dependencies in ChromiumOS then add linux2 to the - # list. - if sys.platform not in ('darwin',): - args.append('--no-circular-check') - - # the top_level source directory is the first common ancestor of our module and the chromium source tree for the build to be sane. - # commonprefix works on a character basis, so it might return a phony common prefix (not the common parent directory we expect), - toplevel= os.path.commonprefix([top_dir, chrome_src]) - if not os.path.exists(toplevel): - toplevel = os.path.join(toplevel, os.pardir) - args.extend(["--toplevel-dir=" + toplevel]) - # Tweak the output location. - args.extend(['--generator-output', os.path.abspath(GetOutputDirectory())]) - args.extend(['-Goutput_dir='+ os.path.abspath(GetOutputDirectory())]) - args.append("--check") - - # gyp on gbs fails with multiprocessing.SemLock() not implemented - # disabling parallel gyp for gbs - gbs_build = os.environ.get('BUILDING_WITH_GBS') - if gbs_build: - args.append("--no-parallel") - - # TODO(b.kelemen): remove the condition once gyp_trunk.py has landed. - if os.path.exists(os.path.join(script_dir, 'gyp_trunk.py')): - # gyp_trunk works on sys.argv so we merge |args| back. - sys.argv = [sys.argv[0]] + args - - import gyp_trunk - gyp_trunk.overwrite_arguments() - args = sys.argv[1:] - - - print 'Updating projects from gyp files...' - - # Off we go... - sys.exit(gyp.main(args)) diff --git a/tizen_src/build/gyp_chromiumefl.sh b/tizen_src/build/gyp_chromiumefl.sh deleted file mode 100755 index b0f6353..0000000 --- a/tizen_src/build/gyp_chromiumefl.sh +++ /dev/null @@ -1,260 +0,0 @@ -#!/bin/bash - -source $(dirname $0)/common.sh -trap 'error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT -host_arch=$(getHostArch) - -supported_targets=("mobile" "tv" "desktop") - -if [ -z "$GYP_GENERATOR_OUTPUT" ]; then - GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}" -fi - -if [ -z "$GYP_GENERATOR_FLAGS" ]; then - export GYP_GENERATOR_FLAGS="output_dir=${GYP_GENERATOR_OUTPUT}" -fi - -EXTRA_GYP_ARGS="$@" - -# __GYP_CHROMIUMEFL_TARGET is defined when we are called from build_desktop.sh. -# Otherwise we are called by gbs whch already passes the correct building_for_* flag. -if [ "$__GYP_CHROMIUMEFL_TARGET" == "desktop" ]; then - target=desktop -fi - -while [[ $# > 0 ]]; do - case "$1" in - -Dbuilding_for_tizen_*=1) - buildType="gbs" - target=$(echo $1 | sed -e 's#-Dbuilding_for_tizen_\([a-z]*\)\=1#\1#') - ;; - -Dchromium_efl_tizen_version=*) - tizen_version=$(echo $1 | sed -e 's#-Dchromium_efl_tizen_version\=\([0-9.]*\)#\1#') - ;; - -Dtizen_emulator_support=1) - tizen_emulator_support=1 - ;; - -Duse_wayland=1) - use_wayland=1 - ;; - --xwalk) - building_xwalk=1 - ;; - -Dbuilding_crosswalk_bin=*) - building_xwalk_for_development=1 - ;; - esac - shift; -done - -findElementInArray "$target" "${supported_targets[@]}" -if [[ $? == 1 ]]; then - echo "Unsupported target: $target" - exit 1 -fi - -if [ "$__GYP_CHROMIUMEFL_TARGET" == "crosscompile" ]; then - buildType=crosscompile - EXTRA_GYP_ARGS+=" -Dedje_compiler=${TOPDIR}/out.${host_arch}/Dependencies/Root/bin/edje_cc" -fi - -ORIGINAL_GYP_DEFINES="$GYP_DEFINES" -export GYP_DEFINES=$(echo "$GYP_DEFINES" | sed -e 's/component\s*=\s*shared_library//g') -if [ "$ORIGINAL_GYP_DEFINES" != "$GYP_DEFINES" ]; then - echo "WARNING: component build is not supported." - echo "Removing component=shared_library from GYP_DEFINES." -fi - -COMMON_GYP_PARAMETERS=" - -Duse_libjpeg_turbo=1 - -Dproprietary_codecs=1 - -Duse_alsa=0 - -Duse_aura=0 - -Duse_efl=1 - -Duse_gconf=0 - -Duse_kerberos=0 - -Duse_ozone=1 - -Dozone_auto_platforms=0 - -Dozone_platform_wayland=0 - -Duse_gnome_keyring=0 - -Duse_pango=0 - -Duse_cairo=0 - -Denable_plugins=1 - -Denable_extensions=1 - -Duse_cups=0 - -Duse_allocator=none - -Duse_libpci=0 - -Ddisable_fatal_linker_warnings= - --depth=${TOPDIR} - " - -if [ "$building_xwalk" == "1" ] && [ "$building_xwalk_for_development" != "1" ]; then - COMMON_GYP_PARAMETERS+=" - -Dxwalk_link_against_chromium_ewk=1 - " -fi - -add_desktop_flags() { - ADDITIONAL_GYP_PARAMETERS+="-Dbuilding_for_tizen=0 - -Dbuilding_for_tizen_mobile=0 - -Dbuilding_for_tizen_tv=0 - -Dclang=${USE_CLANG} - -Dwerror= - -Duse_sysroot=0 - -Duse_wayland=0 - " -} - -add_arm_flags() { - ADDITIONAL_GYP_PARAMETERS+="-Darmv7=1 - -Darm_thumb=1 - -Darm_neon=1 - " -} - -add_tizen_flags() { - ADDITIONAL_GYP_PARAMETERS+="-Dbuilding_for_tizen=1 - -Dtizen=1 - -Dpython_ver=$(getPythonVersion) - -Denable_basic_printing=1 - -Denable_print_preview=1 - -Dclang=0 - -Dlinux_use_bundled_gold=0 - -Dlinux_use_bundled_binutils=0 - -Ddisable_nacl=1 - -Dtizen_multimedia_eme_support=0 - " - - # TODO(youngsoo): Once binutils-gold issue on tizen v3.0 ARM 64bit is fixed, - # make the latest tizen version unconditional. - if [ "$tizen_version" == "3.0" ] && [ "$host_arch" == "arm" ]; then - # [M48_2564] Temporary disabling the flag for switching to new chromium - # FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15383 - ADDITIONAL_GYP_PARAMETERS+="-Dlinux_use_gold_flags=0 - -Dprebuilt_ld_gold_dir=${TOPDIR}/tizen_src/build/prebuild - " - elif [ "$tizen_version" == "2.4" -a "$target" == "tv" ]; then - ADDITIONAL_GYP_PARAMETERS+="-Dlinux_use_gold_flags=0 - -Dprebuilt_ld_gold_dir=${TOPDIR}/tizen_src/build/prebuild/tizen_v2.4_tv - " - else - ADDITIONAL_GYP_PARAMETERS+="-Dlinux_use_gold_flags=0 - -Dprebuilt_ld_gold_dir=${TOPDIR}/tizen_src/build/prebuild - " - fi - - if [ "$tizen_version" == "3.0" ]; then - # [M49_2623] Temporary disabling the flag. - # FIXME: http://165.213.149.170/jira/browse/TWF-610 - ADDITIONAL_GYP_PARAMETERS+="-Dtizen_multimedia_support=0 - -Dtizen_tbm_support=0 - " - else - ADDITIONAL_GYP_PARAMETERS+="-Dtizen_multimedia_support=0 - -Dwerror= - " - fi - - add_wayland_flags -} - -add_wayland_flags() { - if [ "$use_wayland" == "1" ]; then - ADDITIONAL_GYP_PARAMETERS+="-Duse_wayland=1 - -Dwayland_bringup=1 - " - else - ADDITIONAL_GYP_PARAMETERS+="-Duse_wayland=0 - -Dwayland_bringup=0 - " - fi -} - -add_gbs_flags() { - ADDITIONAL_GYP_PARAMETERS+="-Dtarget_arch=$host_arch - -Dhost_arch=$host_arch - -Dsysroot= - --no-parallel - " - # TODO(b.kelemen): ideally crosscompile should also support system libs. - # Unfortunately the gbs root doesn't contain everything chromium needs. - SYSTEM_DEPS="-Duse_system_expat=1 - -Duse_system_libjpeg=0 - -Duse_system_libpng=1 - -Duse_system_libusb=1 - -Duse_system_libxml=1 - -Duse_system_libxslt=1 - -Duse_system_zlib=1 - " - - # [M50_2661] Temporary using the icu of internal chformium instead of system. - # The icu of system doesn't support utrie2.h - # FIXME: http://suprem.sec.samsung.net/jira/browse/TWF-967 - SYSTEM_DEPS+="-Duse_system_icu=0 - " - - if [ "$target" == "mobile" ]; then - SYSTEM_DEPS+="-Duse_system_bzip2=1 - -Duse_system_libexif=1 - -Duse_system_nspr=1 - " - fi -} - -add_cross_flags() { - ADDITIONAL_GYP_PARAMETERS+="-Dtarget_arch=arm - -Dhost_arch=$host_arch - -Dsysroot=$SYSROOTDIR - -Darm_tune=arm7 - -Dhost_clang=0 - " - - # Compiling yasm with crosscompile + icecc leads to some strange errors (one file is built for target instead of host). - # Yasm is an assembler used only by the build (not at runtime) and it is generally available in Linux distros so let's just - # use it from the system. - ADDITIONAL_GYP_PARAMETERS+="-Duse_system_yasm=1" -} - -if [ "$target" == "desktop" ]; then - add_desktop_flags -else - add_tizen_flags - if [ "$target" == "mobile" -o "$target" == "tv" ]; then - if [ "$target_arch" == "arm" ]; then - add_arm_flags - fi - if [ "$buildType" == "gbs" ]; then - add_gbs_flags - elif [ "$buildType" == "crosscompile" ]; then - add_cross_flags - fi - fi - if [ "$SYSTEM_DEPS" != "" ]; then - #replacing original files with correct ones according to $SYSTEM_DEPS - $TOPDIR/build/linux/unbundle/replace_gyp_files.py $SYSTEM_DEPS - fi -fi - -_GYP_ARGS=" - $COMMON_GYP_PARAMETERS - $SYSTEM_DEPS - $ADDITIONAL_GYP_PARAMETERS - $EXTRA_GYP_ARGS - " -printf "GYP_ARGUMENTS:\n" -for arg in $_GYP_ARGS; do - printf " * ${arg##-D}\n" -done - -${TOPDIR}/tizen_src/build/gyp_chromiumefl \ - ${_GYP_ARGS} \ - ${TOPDIR}/tizen_src/ewk/chromium-ewk.gyp - -ret=$? - -if [ "$SYSTEM_DEPS" != "" ]; then - # Restore gyp files to their original states not to mess up the tree permanently. - $TOPDIR/build/linux/unbundle/replace_gyp_files.py --undo $SYSTEM_DEPS -fi - -exit $ret diff --git a/tizen_src/build/system.gyp b/tizen_src/build/system.gyp deleted file mode 100644 index e75a59f..0000000 --- a/tizen_src/build/system.gyp +++ /dev/null @@ -1,688 +0,0 @@ -# Copyright (c) 2015 Samsung Electronics. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'variables': { - 'pkg-config': 'pkg-config', - }, - 'targets': [ - { - 'target_name': 'evas', - 'type': 'none', - 'direct_dependent_settings': { - 'cflags': [ - '= "2.4"', { - 'variables': { - 'dependent_pkgs': [ - 'gstreamer-1.0', - 'gstreamer-base-1.0', - 'gstreamer-app-1.0', - 'gstreamer-pbutils-1.0', - 'gstreamer-video-1.0', - ], - }, - }, { # for Tizen v2.X - 'variables': { - 'dependent_pkgs': [ - 'gstreamer-0.10', - 'gstreamer-base-0.10', - 'gstreamer-app-0.10', - 'gstreamer-pbutils-0.10', - 'gstreamer-interfaces-0.10', - 'gstreamer-video-0.10', - ], - }, - }] - ], - 'direct_dependent_settings': { - 'cflags': [ - '= "3.0"', { - 'direct_dependent_settings': { - 'cflags': [ - '= 49', { - 'ldflags': [ - # In GCC 4.9, the linker (either bfd or gold) is called with the -plugin argument - # which our current bundled gold linker (in build/prebuild) does not accept. - # Since our gold a x64 64bit statically linked binary, even if we rebuild it - # with plugin support enabled, the plugin being loaded would be a 32bit ARM binary. - # and load would fail. So we disable linker's plugin loadeir (specifically - # gcc's liblto_plugin). - '-fno-use-linker-plugin', - ], - }], - ], # conditions - }], - - ['building_for_tizen==1', { - 'defines': [ - 'OS_TIZEN=1', - 'WTF_OS_TIZEN=1', - ], - # Tizen build system has a global option '-Wformat-security'. - # So, a cflag '-Wno-format' from chromium-efl needs to be ignored. - # Otherwise, following error will happen. - # error: -Wformat-security ignored without -Wformat [-Werror=format-security] - 'cflags!': [ - '-Wno-format', - ], - 'conditions': [ - ['chromium_efl_tizen_version=="3.0"', { - 'defines': [ - 'TIZEN_MAJOR_VERSION=3', - 'TIZEN_MINOR_VERSION=0', - 'TIZEN_PATCH_VERSION=0', - ], - }], - ['chromium_efl_tizen_version=="2.4"', { - 'defines': [ - 'TIZEN_MAJOR_VERSION=2', - 'TIZEN_MINOR_VERSION=4', - 'TIZEN_PATCH_VERSION=0', - ], - }], - ['chromium_efl_tizen_version=="2.3"', { - 'defines': [ - 'TIZEN_MAJOR_VERSION=2', - 'TIZEN_MINOR_VERSION=3', - 'TIZEN_PATCH_VERSION=0', - ], - }], - ['use_wayland==1', { - 'defines': [ - 'USE_WAYLAND=1', - ], - }], - ['tizen_multimedia_support==1', { - 'defines': [ - 'TIZEN_MULTIMEDIA_SUPPORT=1', - 'TIZEN_MULTIMEDIA_USE_CAPI_AUDIO_IO=1', - ], - }], - # TODO: There are X11 dependencies in following condition. - # The files need to be implemented based on Wayland. - ['wayland_bringup==1', { - 'defines': [ - 'WAYLAND_BRINGUP=1', - ], - }], - ], - }], - - ['building_for_tizen_mobile==1', { - 'defines': [ - 'OS_TIZEN_MOBILE=1', - 'WTF_OS_TIZEN_MOBILE=1', - 'TIZEN_CONTENTS_DETECTION=1', - ], - }], - - ['building_for_tizen_tv==1', { - 'defines': [ - 'OS_TIZEN_TV=1', - 'WTF_OS_TIZEN_TV=1', - ], - 'conditions': [ - ['chromium_efl_tizen_version=="2.4"', { - # The tizen v2.4 tv build gets its cpu-specific flags from the Tizen build system. - 'cflags!': [ - '-march=armv7-a', - '-mtune=generic-armv7-a', - ], - }], - ], - }], - - ], # conditions - }, # target_defaults -}