This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 183
/
static_library.gn
77 lines (66 loc) · 2.5 KB
/
static_library.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
root_extra_deps = [ "//libchromiumcontent/chromiumcontent" ]
is_electron_build = true
is_component_build = false
is_mas_build = getenv("MAS_BUILD") != ""
is_official_build = true
symbol_level = 2
enable_nacl = false
enable_cdm_host_verification = false
proprietary_codecs = true
is_component_ffmpeg = true
ffmpeg_branding = "Chrome"
# This may be guarded behind is_chrome_branded alongside
# proprietary_codecs https://webrtc-review.googlesource.com/c/src/+/36321,
# explicitly override here to build OpenH264 encoder/FFmpeg decoder.
# The initialization of the decoder depends on whether ffmpeg has
# been built with H.264 support.
rtc_use_h264 = true
# As of Chromium 67.0.3396.99 widevine is only supported on Mac and Windows.
if (target_os != "linux") {
enable_widevine = true
}
# CFI is disabled for the time being, as Electron is not a monolithic binary
# with at least one shared library component (Node) and CFI is tricky in that
# scenario
is_cfi = false
# Use the system provided standard library on platforms other than Linux.
if (target_os != "linux") {
use_custom_libcxx = false
}
# Jumbo build should improve compilation times.
# https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
use_jumbo_build = true
# This is required by Node.js
# See https://github.com/nodejs/node/pull/13242
v8_promise_internal_field_count = 1
# This is required by Node.js
# Unconditionally force typed arrays to allocate outside the v8 heap. This
# is to prevent memory pointers from being moved around that are returned by
# Buffer::Data()
v8_typed_array_max_size_in_heap = 0
# Suppress the linking warning for arm64:
# warning: libfreetype.so.6, needed by ../../build/linux/debian_jessie_arm64-sysroot/usr/lib/aarch64-linux-gnu/libfontconfig.so, may conflict with libfreetype.so.6
if (target_cpu == "arm64") {
fatal_linker_warnings = false
}
# ERROR at //chrome/installer/linux/BUILD.gn:385:7: Assertion failed.
# Linux installer not configured for this architecture.
if (target_cpu == "arm64") {
enable_linux_installer = false
}
# On Windows, we cannot use allocator shim because even though this is
# a non-component build, we still use the dynamic CRT with which the shim
# does not work
if (target_os == "win") {
use_allocator_shim = false
}
# Configuration for mips64el
if (target_cpu == "mips64el") {
is_clang = false
use_allocator = "none"
mips_arch_variant = "loongson3"
# Use custom sysroot image.
use_sysroot = true
target_sysroot = "//build/linux/debian_jessie_mips64-sysroot"
system_libdir = "lib64"
}