build/gyp.mozbuild

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 gyp_vars = {
michael@0 8 'build_with_mozilla': 1,
michael@0 9 'build_with_chromium': 0,
michael@0 10 'use_official_google_api_keys': 0,
michael@0 11 'have_clock_monotonic': 1 if CONFIG['HAVE_CLOCK_MONOTONIC'] else 0,
michael@0 12 'have_ethtool_cmd_speed_hi': 1 if CONFIG['MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI'] else 0,
michael@0 13 'include_alsa_audio': 1 if CONFIG['MOZ_ALSA'] else 0,
michael@0 14 'include_pulse_audio': 1 if CONFIG['MOZ_PULSEAUDIO'] else 0,
michael@0 15 # basic stuff for everything
michael@0 16 'include_internal_video_render': 0,
michael@0 17 'clang_use_chrome_plugins': 0,
michael@0 18 'enable_protobuf': 0,
michael@0 19 'include_tests': 0,
michael@0 20 'enable_android_opensl': 1,
michael@0 21 'enable_android_opensl_output': 0,
michael@0 22 # use_system_lib* still seems to be in use in trunk/build
michael@0 23 'use_system_libjpeg': 0,
michael@0 24 'use_system_libvpx': 0,
michael@0 25 'build_libjpeg': 0,
michael@0 26 'build_libvpx': 0,
michael@0 27 'build_libyuv': 0,
michael@0 28 'libyuv_dir': '/media/libyuv',
michael@0 29 'yuv_disable_avx2': 0 if CONFIG['HAVE_X86_AVX2'] else 1,
michael@0 30
michael@0 31 # saves 4MB when webrtc_trace is off
michael@0 32 'enable_lazy_trace_alloc': 1,
michael@0 33
michael@0 34 # turn off mandatory use of NEON and instead use NEON detection
michael@0 35 'arm_neon': 0,
michael@0 36 'arm_neon_optional': 1,
michael@0 37
michael@0 38 'moz_widget_toolkit_gonk': 0,
michael@0 39 'moz_webrtc_omx': 0,
michael@0 40
michael@0 41 # (for vp8) chromium sets to 0 also
michael@0 42 'use_temporal_layers': 0,
michael@0 43 # Creates AEC internal sample dump files in current directory
michael@0 44 # 'aec_debug_dump': 1,
michael@0 45
michael@0 46 # codec enable/disables:
michael@0 47 'include_g711': 1,
michael@0 48 'include_opus': 1,
michael@0 49 'include_g722': 0,
michael@0 50 'include_ilbc': 0,
michael@0 51 'include_isac': 0,
michael@0 52 'include_pcm16b': 1,
michael@0 53 }
michael@0 54
michael@0 55 os = CONFIG['OS_TARGET']
michael@0 56
michael@0 57 if os == 'WINNT':
michael@0 58 gyp_vars.update(
michael@0 59 MSVS_VERSION=CONFIG['_MSVS_VERSION'],
michael@0 60 MSVS_OS_BITS=64 if CONFIG['HAVE_64BIT_OS'] else 32,
michael@0 61 )
michael@0 62 elif os == 'Android':
michael@0 63 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 64 gyp_vars['build_with_gonk'] = 1
michael@0 65 gyp_vars['moz_widget_toolkit_gonk'] = 1
michael@0 66 if int(CONFIG['ANDROID_VERSION']) >= 18:
michael@0 67 gyp_vars['moz_webrtc_omx'] = 1
michael@0 68 else:
michael@0 69 gyp_vars.update(
michael@0 70 gtest_target_type='executable',
michael@0 71 android_toolchain=CONFIG['ANDROID_TOOLCHAIN'],
michael@0 72 )
michael@0 73
michael@0 74 flavors = {
michael@0 75 'WINNT': 'win',
michael@0 76 'Android': 'linux' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' else 'android',
michael@0 77 'Linux': 'linux',
michael@0 78 'Darwin': 'mac' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' else 'ios',
michael@0 79 'SunOS': 'solaris',
michael@0 80 'GNU/kFreeBSD': 'freebsd',
michael@0 81 'DragonFly': 'dragonfly',
michael@0 82 'FreeBSD': 'freebsd',
michael@0 83 'NetBSD': 'netbsd',
michael@0 84 'OpenBSD': 'openbsd',
michael@0 85 }
michael@0 86 gyp_vars['OS'] = flavors[os]
michael@0 87
michael@0 88 arches = {
michael@0 89 'x86_64': 'x64',
michael@0 90 'x86': 'ia32',
michael@0 91 }
michael@0 92
michael@0 93 gyp_vars['target_arch'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])
michael@0 94
michael@0 95 if CONFIG['ARM_ARCH']:
michael@0 96 if int(CONFIG['ARM_ARCH']) < 7:
michael@0 97 gyp_vars['armv7'] = 0
michael@0 98 gyp_vars['arm_neon_optional'] = 0
michael@0 99 elif os == 'Android':
michael@0 100 gyp_vars['armv7'] = 1
michael@0 101 else:
michael@0 102 # CPU detection for ARM works on Android only. armv7 always uses CPU
michael@0 103 # detection, so we have to set armv7=0 for non-Android target
michael@0 104 gyp_vars['armv7'] = 0
michael@0 105 # For libyuv
michael@0 106 gyp_vars['arm_version'] = CONFIG['ARM_ARCH']
michael@0 107
michael@0 108 # Don't try to compile ssse3/sse4.1 code if toolchain doesn't support
michael@0 109 if CONFIG['INTEL_ARCHITECTURE']:
michael@0 110 if not CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSSE3'] or not CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSE4_1']:
michael@0 111 gyp_vars['yuv_disable_asm'] = 1
michael@0 112
michael@0 113 if CONFIG['MACOS_SDK_DIR']:
michael@0 114 gyp_vars['mac_sdk_path'] = CONFIG['MACOS_SDK_DIR']

mercurial