View | Details | Raw Unified | Return to bug 226476 | Differences between
and this patch

Collapse All | Expand All

(-)b/Mk/Uses/gecko.mk (-2 / +2 lines)
Lines 37-48 RUN_DEPENDS+= libxul>=45:www/libxul Link Here
37
.elif ${gecko_ARGS:Mfirefox}
37
.elif ${gecko_ARGS:Mfirefox}
38
38
39
_GECKO_DEFAULT_VERSION=	52
39
_GECKO_DEFAULT_VERSION=	52
40
_GECKO_VERSIONS=		52 59
40
_GECKO_VERSIONS=		52 60
41
_GECKO_TYPE=	firefox
41
_GECKO_TYPE=	firefox
42
42
43
# Dependence lines for different Firefox versions
43
# Dependence lines for different Firefox versions
44
52_DEPENDS=		${LOCALBASE}/lib/firefox/firefox:www/firefox-esr
44
52_DEPENDS=		${LOCALBASE}/lib/firefox/firefox:www/firefox-esr
45
59_DEPENDS=		${LOCALBASE}/lib/firefox/firefox:www/firefox
45
60_DEPENDS=		${LOCALBASE}/lib/firefox/firefox:www/firefox
46
46
47
.if exists(${LOCALBASE}/bin/firefox)
47
.if exists(${LOCALBASE}/bin/firefox)
48
_GECKO_INSTALLED_VER!=	${LOCALBASE}/bin/firefox --version 2>/dev/null
48
_GECKO_INSTALLED_VER!=	${LOCALBASE}/bin/firefox --version 2>/dev/null
(-)b/Mk/bsd.gecko.mk (-1 / +1 lines)
Lines 383-389 post-patch-SNDIO-on: Link Here
383
.endif
383
.endif
384
384
385
.if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54
385
.if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54
386
BUILD_DEPENDS+=	${RUST_PORT:T}>=1.22.1:${RUST_PORT}
386
BUILD_DEPENDS+=	${RUST_PORT:T}>=1.24:${RUST_PORT}
387
RUST_PORT?=		lang/rust
387
RUST_PORT?=		lang/rust
388
. if ${MOZILLA_VER:R:R} < 54
388
. if ${MOZILLA_VER:R:R} < 54
389
MOZ_OPTIONS+=	--enable-rust
389
MOZ_OPTIONS+=	--enable-rust
(-)b/www/firefox-i18n/Makefile (-3 / +2 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	firefox-i18n
4
PORTNAME=	firefox-i18n
5
PORTVERSION=	59.0
5
PORTVERSION=	60.0b3
6
PORTREVISION=	2
7
CATEGORIES=	www
6
CATEGORIES=	www
8
MASTER_SITES=	MOZILLA/${PORTNAME:S|-i18n||}/releases/${DISTVERSION}/linux-i686/xpi \
7
MASTER_SITES=	MOZILLA/${PORTNAME:S|-i18n||}/releases/${DISTVERSION}/linux-i686/xpi \
9
		MOZILLA/${PORTNAME:S|-i18n||}/candidates/${DISTVERSION}-candidates/build5/linux-i686/xpi
8
		MOZILLA/${PORTNAME:S|-i18n||}/candidates/${DISTVERSION}-candidates/build5/linux-i686/xpi
Lines 16-22 COMMENT= Localized interface for Firefox Link Here
16
15
17
EXTRACT_DEPENDS=	zip:archivers/zip
16
EXTRACT_DEPENDS=	zip:archivers/zip
18
17
19
USES=		zip:infozip gecko:firefox,59,build
18
USES=		zip:infozip gecko:firefox,60,build
20
USE_XPI=	firefox
19
USE_XPI=	firefox
21
20
22
NO_ARCH=	yes
21
NO_ARCH=	yes
(-)b/www/firefox-i18n/Makefile.lang (-1 / +4 lines)
Lines 6-12 FIREFOX_I18N_ALL_= ach af an ar as ast az be bg bn-BD bn-IN br bs ca cak \ Link Here
6
			es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gn	\
6
			es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gn	\
7
			gu-IN he hi-IN hr hsb hu hy-AM ia id is it ja ka kab	\
7
			gu-IN he hi-IN hr hsb hu hy-AM ia id is it ja ka kab	\
8
			kk km kn ko lij lt lv mai mk ml mr ms my nb-NO ne-NP nl	\
8
			kk km kn ko lij lt lv mai mk ml mr ms my nb-NO ne-NP nl	\
9
			nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son	\
9
			nn-NO oc or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son	\
10
			sq sr sv-SE ta te th tr uk ur uz vi xh zh-CN zh-TW
10
			sq sr sv-SE ta te th tr uk ur uz vi xh zh-CN zh-TW
11
11
12
.if defined(FIREFOX_I18N_ALL) || defined(PACKAGE_BUILDING) || target(package)
12
.if defined(FIREFOX_I18N_ALL) || defined(PACKAGE_BUILDING) || target(package)
Lines 225-230 FIREFOX_I18N+= nl Link Here
225
.if ${PORT_OPTIONS:MLANG_NN}
225
.if ${PORT_OPTIONS:MLANG_NN}
226
FIREFOX_I18N+=  nn-NO
226
FIREFOX_I18N+=  nn-NO
227
.endif
227
.endif
228
.if ${PORT_OPTIONS:MLANG_OC}
229
FIREFOX_I18N+=  oc
230
.endif
228
.if ${PORT_OPTIONS:MLANG_OR}
231
.if ${PORT_OPTIONS:MLANG_OR}
229
FIREFOX_I18N+=  or
232
FIREFOX_I18N+=  or
230
.endif
233
.endif
(-)b/www/firefox-i18n/Makefile.option (+2 lines)
Lines 73-78 OPTIONS_DEFINE= LANG_ACH \ Link Here
73
		LANG_NE \
73
		LANG_NE \
74
		LANG_NL \
74
		LANG_NL \
75
		LANG_NN \
75
		LANG_NN \
76
		LANG_OC \
76
		LANG_OR \
77
		LANG_OR \
77
		LANG_PA \
78
		LANG_PA \
78
		LANG_PL \
79
		LANG_PL \
Lines 122-127 LANG_LIJ_DESC?= Ligurian (Genoa) language support Link Here
122
LANG_MS_DESC?=	Malay language support
123
LANG_MS_DESC?=	Malay language support
123
LANG_MY_DESC?=	Burmese language support
124
LANG_MY_DESC?=	Burmese language support
124
LANG_NE_DESC?=	Nepali language support
125
LANG_NE_DESC?=	Nepali language support
126
LANG_OC_DESC?=	Occitan (lengadocian) language support
125
LANG_SW_DESC?=	Swahili language support
127
LANG_SW_DESC?=	Swahili language support
126
LANG_UR_DESC?=	Urdu (Pakistan) language support
128
LANG_UR_DESC?=	Urdu (Pakistan) language support
127
LANG_UZ_DESC?=	Uzbek language support
129
LANG_UZ_DESC?=	Uzbek language support
(-)b/www/firefox-i18n/distinfo (-195 / +197 lines)
Lines 1-195 Link Here
1
TIMESTAMP = 1520650457
1
TIMESTAMP = 1520868062
2
SHA256 (xpi/firefox-i18n-59.0/ach.xpi) = 1d3c6166b27b5e640733210faf4e7fa751d1acb8edd80448fd5cfb840c491987
2
SHA256 (xpi/firefox-i18n-60.0b3/ach.xpi) = 93907879b5b6ffdde334dae1759e2892b4d3eb31ef0530a584115a6173b5beac
3
SIZE (xpi/firefox-i18n-59.0/ach.xpi) = 439224
3
SIZE (xpi/firefox-i18n-60.0b3/ach.xpi) = 447326
4
SHA256 (xpi/firefox-i18n-59.0/af.xpi) = 21ef31da94eb74b269e65c47961f93d17827a480756d282cf367f3ec4998866c
4
SHA256 (xpi/firefox-i18n-60.0b3/af.xpi) = c9b3906996d8d9a696b7a4efdce96193733deeaae74f3e63cdf5d5c4fbcdfcae
5
SIZE (xpi/firefox-i18n-59.0/af.xpi) = 436729
5
SIZE (xpi/firefox-i18n-60.0b3/af.xpi) = 444620
6
SHA256 (xpi/firefox-i18n-59.0/an.xpi) = e544fcac272f5b3ee9365c53063164fb6f93e323c61fb0154e744fe046d0e348
6
SHA256 (xpi/firefox-i18n-60.0b3/an.xpi) = 1513e0d38c53947660119493fd06513efaa329e6460a954bb33b8fe3c3b893da
7
SIZE (xpi/firefox-i18n-59.0/an.xpi) = 463403
7
SIZE (xpi/firefox-i18n-60.0b3/an.xpi) = 470859
8
SHA256 (xpi/firefox-i18n-59.0/ar.xpi) = 6443febaa553ae1f843a20ca5c78be7db122ffa98289f100cca883c86b17fb0a
8
SHA256 (xpi/firefox-i18n-60.0b3/ar.xpi) = cce6181c402d09e5b8aa33672ad9f87b8cf717ecb974eb81240a4ee9fae7d736
9
SIZE (xpi/firefox-i18n-59.0/ar.xpi) = 486631
9
SIZE (xpi/firefox-i18n-60.0b3/ar.xpi) = 494960
10
SHA256 (xpi/firefox-i18n-59.0/as.xpi) = b8baf8448a59e13ae8ed5794f9a1b796f34029add488dc215023ff12c5549ccb
10
SHA256 (xpi/firefox-i18n-60.0b3/as.xpi) = a0e37fa706606d07b0378c78eec35e6f2a850988ea31c21e5d1561052f44a730
11
SIZE (xpi/firefox-i18n-59.0/as.xpi) = 483300
11
SIZE (xpi/firefox-i18n-60.0b3/as.xpi) = 488392
12
SHA256 (xpi/firefox-i18n-59.0/ast.xpi) = 82876aa720ab6c98c5c1dd12fde7d62a47d1c42a87d70666b765144e620334e2
12
SHA256 (xpi/firefox-i18n-60.0b3/ast.xpi) = 4ed5576d459d8d9fe3b1f042d81fc7dfda3843d2f94cbfbaf3633453e1ab193b
13
SIZE (xpi/firefox-i18n-59.0/ast.xpi) = 454341
13
SIZE (xpi/firefox-i18n-60.0b3/ast.xpi) = 462807
14
SHA256 (xpi/firefox-i18n-59.0/az.xpi) = e799b35e4a8d2272378b6f0fadee5777660af8d96e6cfa9b23d5d4e3a7088693
14
SHA256 (xpi/firefox-i18n-60.0b3/az.xpi) = 67650234ee3961cda299c35b39460add58141724de60341f39d68790cae58d17
15
SIZE (xpi/firefox-i18n-59.0/az.xpi) = 464267
15
SIZE (xpi/firefox-i18n-60.0b3/az.xpi) = 473916
16
SHA256 (xpi/firefox-i18n-59.0/be.xpi) = d4852d209ee8dfa9b88abc418f48cbb4df9599de9c4000455f50533ddc1dba08
16
SHA256 (xpi/firefox-i18n-60.0b3/be.xpi) = 797f526164a6ea42829771c1962448a1f528a489ba955126e04e0675b65f2988
17
SIZE (xpi/firefox-i18n-59.0/be.xpi) = 517058
17
SIZE (xpi/firefox-i18n-60.0b3/be.xpi) = 525486
18
SHA256 (xpi/firefox-i18n-59.0/bg.xpi) = ee011edf65e91faa21c8a75b8f9922484a899b4d6762f0a6a5f3b9f35521c2b3
18
SHA256 (xpi/firefox-i18n-60.0b3/bg.xpi) = 66b64a9752bae1e834f5778ed861a96ae43049e80973eb9bc71b4269c87b7657
19
SIZE (xpi/firefox-i18n-59.0/bg.xpi) = 508611
19
SIZE (xpi/firefox-i18n-60.0b3/bg.xpi) = 518261
20
SHA256 (xpi/firefox-i18n-59.0/bn-BD.xpi) = 5c39189efa5daf9e8d6574b98bed66edad98bd0a4459955c666c5a9734c16d28
20
SHA256 (xpi/firefox-i18n-60.0b3/bn-BD.xpi) = 3c2ba3189e4405620938f78066ece6e3fd196088d142be5dd322ddc49b3941a9
21
SIZE (xpi/firefox-i18n-59.0/bn-BD.xpi) = 526351
21
SIZE (xpi/firefox-i18n-60.0b3/bn-BD.xpi) = 534196
22
SHA256 (xpi/firefox-i18n-59.0/bn-IN.xpi) = cdacc3c3002f4bb335b13bea1ddf22d0725938156afe257d45ad1a2e1148aa68
22
SHA256 (xpi/firefox-i18n-60.0b3/bn-IN.xpi) = 25c0adcb6d360ee2bef1a762ef510cc40dba06191c1e2fe2bfb536ef0ba941ec
23
SIZE (xpi/firefox-i18n-59.0/bn-IN.xpi) = 510795
23
SIZE (xpi/firefox-i18n-60.0b3/bn-IN.xpi) = 520823
24
SHA256 (xpi/firefox-i18n-59.0/br.xpi) = dfa4af49f1c379c1e299d252ba416310775c0f6a5802b1f26bb6610e20ab890d
24
SHA256 (xpi/firefox-i18n-60.0b3/br.xpi) = 6076800a6de007d451954b873c26dd24d0b5376f205f3821c1b5b3faa2d667e6
25
SIZE (xpi/firefox-i18n-59.0/br.xpi) = 451718
25
SIZE (xpi/firefox-i18n-60.0b3/br.xpi) = 459914
26
SHA256 (xpi/firefox-i18n-59.0/bs.xpi) = 75b095a9128248737edcb22a5c7926c51f1657762549453fe5dba045628baa97
26
SHA256 (xpi/firefox-i18n-60.0b3/bs.xpi) = 2b51e1a289b07369d2e18fee02f2bd0b0f5637e53fe3495754c724d6eb210c08
27
SIZE (xpi/firefox-i18n-59.0/bs.xpi) = 457857
27
SIZE (xpi/firefox-i18n-60.0b3/bs.xpi) = 466803
28
SHA256 (xpi/firefox-i18n-59.0/ca.xpi) = 5171bf8d0c0f40bea63e81ae282cd41e42484b2ec06b904460c8669ee6454a3b
28
SHA256 (xpi/firefox-i18n-60.0b3/ca.xpi) = 943ae102d0fc0354729c931c529d2b02c6208843928c0db6a42859e66d9b7802
29
SIZE (xpi/firefox-i18n-59.0/ca.xpi) = 464910
29
SIZE (xpi/firefox-i18n-60.0b3/ca.xpi) = 474515
30
SHA256 (xpi/firefox-i18n-59.0/cak.xpi) = eaae22a1be95e28d55aa849dc3699ebe5ee567574e38a306f26591da03a7e332
30
SHA256 (xpi/firefox-i18n-60.0b3/cak.xpi) = c99abc2edda4347e2dd72913626d6c339f350c026ef6758c5ce8d73eecc731d4
31
SIZE (xpi/firefox-i18n-59.0/cak.xpi) = 475232
31
SIZE (xpi/firefox-i18n-60.0b3/cak.xpi) = 482387
32
SHA256 (xpi/firefox-i18n-59.0/cs.xpi) = 2843a427be283937c15f98e31cb23025960822a8faf0d71d7ef30e20007cecae
32
SHA256 (xpi/firefox-i18n-60.0b3/cs.xpi) = e0b1344ecf2e2aff76ea7dfa9725af106f140919569865aebaba4224f5a8e124
33
SIZE (xpi/firefox-i18n-59.0/cs.xpi) = 471573
33
SIZE (xpi/firefox-i18n-60.0b3/cs.xpi) = 478005
34
SHA256 (xpi/firefox-i18n-59.0/cy.xpi) = 9e83160f6142bc1189822957f7528f1a3ca4c221576cac1075dfed5731197516
34
SHA256 (xpi/firefox-i18n-60.0b3/cy.xpi) = 6258b44e09180fda6349356967dd05c8d447d5f3fc7c18e8d7c01f57dedaed3a
35
SIZE (xpi/firefox-i18n-59.0/cy.xpi) = 454431
35
SIZE (xpi/firefox-i18n-60.0b3/cy.xpi) = 463340
36
SHA256 (xpi/firefox-i18n-59.0/da.xpi) = 5803ba7d12156ef86fcc951ceac1b53f3fbce938826d51bc6f15780c1242d935
36
SHA256 (xpi/firefox-i18n-60.0b3/da.xpi) = 53cad6fdfa1c424b3379c6ed8b9209cef92300b8115b7b8819faea36e897de55
37
SIZE (xpi/firefox-i18n-59.0/da.xpi) = 446947
37
SIZE (xpi/firefox-i18n-60.0b3/da.xpi) = 455919
38
SHA256 (xpi/firefox-i18n-59.0/de.xpi) = 80cb4b481073f71acaa6e6d760ebf0b599a33895eab236cf2cc3a8c000be0697
38
SHA256 (xpi/firefox-i18n-60.0b3/de.xpi) = 177903150b7503dc191c4381e49e0359085f447fc47a8ffd4bf65084e2e16f55
39
SIZE (xpi/firefox-i18n-59.0/de.xpi) = 466271
39
SIZE (xpi/firefox-i18n-60.0b3/de.xpi) = 476407
40
SHA256 (xpi/firefox-i18n-59.0/dsb.xpi) = bcdb45e97f901fbff9b547a91a0b5c2a5bdadeea8ea5610ee5fceaf4484ef36f
40
SHA256 (xpi/firefox-i18n-60.0b3/dsb.xpi) = ab39ed41e78746c778ce6ffa9f65312d32a665dcc52067ee94215ced4ab0e6b2
41
SIZE (xpi/firefox-i18n-59.0/dsb.xpi) = 478973
41
SIZE (xpi/firefox-i18n-60.0b3/dsb.xpi) = 485580
42
SHA256 (xpi/firefox-i18n-59.0/el.xpi) = 466c2fef631c844ab1280e3879add57aacb98e2f30a7d8223f865d196deeb487
42
SHA256 (xpi/firefox-i18n-60.0b3/el.xpi) = cf6043cbde45353b8268549a19b0347ea38a570242f37edd6fea5ef7f0eeb1b0
43
SIZE (xpi/firefox-i18n-59.0/el.xpi) = 531406
43
SIZE (xpi/firefox-i18n-60.0b3/el.xpi) = 541171
44
SHA256 (xpi/firefox-i18n-59.0/en-GB.xpi) = cb42b3e458acc5ab249da6b55a9958585e4c064ddfb94b7bf49f9465626df0a4
44
SHA256 (xpi/firefox-i18n-60.0b3/en-GB.xpi) = d9d13e1ee4621aa824f7b9f7db68853524a6b5eb818f7f1f5617284b6285c9ce
45
SIZE (xpi/firefox-i18n-59.0/en-GB.xpi) = 434298
45
SIZE (xpi/firefox-i18n-60.0b3/en-GB.xpi) = 443380
46
SHA256 (xpi/firefox-i18n-59.0/en-US.xpi) = d7a323080afc9cf936cf672e584da825413637b4b413153b0f4ddd5169fdf05a
46
SHA256 (xpi/firefox-i18n-60.0b3/en-US.xpi) = 380421cf3257113d428769b8619928af1cb151e01898e772d0f045f9452ede56
47
SIZE (xpi/firefox-i18n-59.0/en-US.xpi) = 432747
47
SIZE (xpi/firefox-i18n-60.0b3/en-US.xpi) = 439189
48
SHA256 (xpi/firefox-i18n-59.0/en-ZA.xpi) = 4816897d2e2f2f5f3d3a35a0f335cd34673f4cc57fe82178af7522055b508e9b
48
SHA256 (xpi/firefox-i18n-60.0b3/en-ZA.xpi) = 6ba899d8d0849eea1a6ad34dddb4ea64cf5a2beedcdc8a4317f9f99655499c9c
49
SIZE (xpi/firefox-i18n-59.0/en-ZA.xpi) = 427364
49
SIZE (xpi/firefox-i18n-60.0b3/en-ZA.xpi) = 433608
50
SHA256 (xpi/firefox-i18n-59.0/eo.xpi) = c17ce4751c46e83a293d7272ca8cfeff8602b223226d8fb60aab74e9dae5e7ad
50
SHA256 (xpi/firefox-i18n-60.0b3/eo.xpi) = 300d389a0d3a7409fd21c4ddcca2bdd4dbf468f89b1d719a86908fe41ec9f48f
51
SIZE (xpi/firefox-i18n-59.0/eo.xpi) = 453365
51
SIZE (xpi/firefox-i18n-60.0b3/eo.xpi) = 461239
52
SHA256 (xpi/firefox-i18n-59.0/es-AR.xpi) = 1a51d27cafa512ee25f9738f3b121f8d7e573ba277d1b834bae30a739c851e03
52
SHA256 (xpi/firefox-i18n-60.0b3/es-AR.xpi) = d817f5e313d1aa72b0b9ef8192db12f796f010bd21d759f6b57390e2e405d3ee
53
SIZE (xpi/firefox-i18n-59.0/es-AR.xpi) = 461795
53
SIZE (xpi/firefox-i18n-60.0b3/es-AR.xpi) = 471065
54
SHA256 (xpi/firefox-i18n-59.0/es-CL.xpi) = f6c73332ed4ad8484aee9c87b70762ebf4795fbf340d87ee763879eb20788d14
54
SHA256 (xpi/firefox-i18n-60.0b3/es-CL.xpi) = 37c2d04425b8734c678d4e21a6ee81c8cfef961ffeae67c1b8f6c9701e37997d
55
SIZE (xpi/firefox-i18n-59.0/es-CL.xpi) = 464652
55
SIZE (xpi/firefox-i18n-60.0b3/es-CL.xpi) = 473822
56
SHA256 (xpi/firefox-i18n-59.0/es-ES.xpi) = c1fc12302f57f526ef483ffb79a39c63b0f946b09fd1541989dd2b28ba7eb83c
56
SHA256 (xpi/firefox-i18n-60.0b3/es-ES.xpi) = 474c3376eb29a182b7a21f5837a3f92e2452d6e50fcbdc7827563f7988a8a387
57
SIZE (xpi/firefox-i18n-59.0/es-ES.xpi) = 348462
57
SIZE (xpi/firefox-i18n-60.0b3/es-ES.xpi) = 395156
58
SHA256 (xpi/firefox-i18n-59.0/es-MX.xpi) = 208182f94525a759cba128b892e80e99ee6dd1921906f8c054a8a515e283b35a
58
SHA256 (xpi/firefox-i18n-60.0b3/es-MX.xpi) = b60d8e0557bc20e36d52efc0d830a9a72cd54d76871f85544117f613d9f99125
59
SIZE (xpi/firefox-i18n-59.0/es-MX.xpi) = 466310
59
SIZE (xpi/firefox-i18n-60.0b3/es-MX.xpi) = 475160
60
SHA256 (xpi/firefox-i18n-59.0/et.xpi) = 0414fc474c1457f8ec64a40d3f268aefe8ddc70cf85a07c5faba4b156f04353c
60
SHA256 (xpi/firefox-i18n-60.0b3/et.xpi) = bec1b07c7db4a995dd05f0c1925d64d59dfdc117ed1d0fa8ede3fe641f8f9931
61
SIZE (xpi/firefox-i18n-59.0/et.xpi) = 445393
61
SIZE (xpi/firefox-i18n-60.0b3/et.xpi) = 455787
62
SHA256 (xpi/firefox-i18n-59.0/eu.xpi) = 45a5df206d635e4b656c34e06e2c7df4b5614fd1584e7bd171432bff44cf155c
62
SHA256 (xpi/firefox-i18n-60.0b3/eu.xpi) = 2c1fb71f7b6a289a63cffc639e18c2596669b766b66136624a934e99ea98cd70
63
SIZE (xpi/firefox-i18n-59.0/eu.xpi) = 455235
63
SIZE (xpi/firefox-i18n-60.0b3/eu.xpi) = 462847
64
SHA256 (xpi/firefox-i18n-59.0/fa.xpi) = 375f9c9356891978d1b8558c63e34675ff3ed70dde54cbd70fbfee736a6dbe37
64
SHA256 (xpi/firefox-i18n-60.0b3/fa.xpi) = 2c0a1eec28fbe38e07f0a50d58b5504193103868951c0bdc11e308da7cc915c0
65
SIZE (xpi/firefox-i18n-59.0/fa.xpi) = 508096
65
SIZE (xpi/firefox-i18n-60.0b3/fa.xpi) = 517837
66
SHA256 (xpi/firefox-i18n-59.0/ff.xpi) = ef8313cd46c2e68af5388d4c705958db8e2b75c4156b2b5ee76b2822c5bb921e
66
SHA256 (xpi/firefox-i18n-60.0b3/ff.xpi) = d9e58945d8b2316b088ea39fbdac9ac1f598f7439047438b7de938f83aa73e55
67
SIZE (xpi/firefox-i18n-59.0/ff.xpi) = 455025
67
SIZE (xpi/firefox-i18n-60.0b3/ff.xpi) = 463534
68
SHA256 (xpi/firefox-i18n-59.0/fi.xpi) = 2d568720cd7f1d3106c6e1c8d02e838786a7643cdc8a74362a449127636346b6
68
SHA256 (xpi/firefox-i18n-60.0b3/fi.xpi) = 7fd2680b739552851552e7e622b3391e21a675162d814557cd6f56ecabf66cef
69
SIZE (xpi/firefox-i18n-59.0/fi.xpi) = 445181
69
SIZE (xpi/firefox-i18n-60.0b3/fi.xpi) = 454773
70
SHA256 (xpi/firefox-i18n-59.0/fr.xpi) = 7dad72da0d5ea4d30b70f34319a9446044d952bcdcaef8e50e8735328f86e857
70
SHA256 (xpi/firefox-i18n-60.0b3/fr.xpi) = 08925f884d639fa3c311bff351887d6ed89cfe3e910b8999e025358036e4c9f0
71
SIZE (xpi/firefox-i18n-59.0/fr.xpi) = 473591
71
SIZE (xpi/firefox-i18n-60.0b3/fr.xpi) = 482521
72
SHA256 (xpi/firefox-i18n-59.0/fy-NL.xpi) = d1595e13a228471d0e675148d52855d0f18fb0352ac559323204dfa648233b44
72
SHA256 (xpi/firefox-i18n-60.0b3/fy-NL.xpi) = 29b824756f8ff87232c6dc5d822edb146fb9fbf8a1639b7f04bf44f3e9d7220b
73
SIZE (xpi/firefox-i18n-59.0/fy-NL.xpi) = 462917
73
SIZE (xpi/firefox-i18n-60.0b3/fy-NL.xpi) = 471866
74
SHA256 (xpi/firefox-i18n-59.0/ga-IE.xpi) = 21c43c03c285a53f47a56be397dafed998b60fdc763d370465f692d90ba967b1
74
SHA256 (xpi/firefox-i18n-60.0b3/ga-IE.xpi) = 8e6a31ddde88d8dde4076a699a0141f85a7801fd089e88e6d55357ce7c1b0916
75
SIZE (xpi/firefox-i18n-59.0/ga-IE.xpi) = 471906
75
SIZE (xpi/firefox-i18n-60.0b3/ga-IE.xpi) = 481339
76
SHA256 (xpi/firefox-i18n-59.0/gd.xpi) = 0ecf7b654d8ab199277c286849bc50e4289c30b7766e3a9de28a69cafa75aa6b
76
SHA256 (xpi/firefox-i18n-60.0b3/gd.xpi) = 7edd4b6407f96b6de040c588814fd31bd35e4430635ff1c9b7a666c271f4aa6e
77
SIZE (xpi/firefox-i18n-59.0/gd.xpi) = 461296
77
SIZE (xpi/firefox-i18n-60.0b3/gd.xpi) = 471451
78
SHA256 (xpi/firefox-i18n-59.0/gl.xpi) = eddfdf159b7dc97c2ab00d5c13208fb161521cbeeaefbcabd3925f68fd28db0a
78
SHA256 (xpi/firefox-i18n-60.0b3/gl.xpi) = 1598bf09061f1fab4440831eac12a621c128d3ce961a918cf2b0d55a21410484
79
SIZE (xpi/firefox-i18n-59.0/gl.xpi) = 441613
79
SIZE (xpi/firefox-i18n-60.0b3/gl.xpi) = 447872
80
SHA256 (xpi/firefox-i18n-59.0/gn.xpi) = 14cb97943f1b501a77a843addd6b03c60518c8c30fb7337148f1803c492f91ad
80
SHA256 (xpi/firefox-i18n-60.0b3/gn.xpi) = b33cce5269a8a14149fef0a3ac2194426632631014116fa8fa8e9fdca7e573ac
81
SIZE (xpi/firefox-i18n-59.0/gn.xpi) = 469396
81
SIZE (xpi/firefox-i18n-60.0b3/gn.xpi) = 479163
82
SHA256 (xpi/firefox-i18n-59.0/gu-IN.xpi) = 3ffc20afbe2ad5a625079766ac286cb19f1052e874e3825169619364f8c843ba
82
SHA256 (xpi/firefox-i18n-60.0b3/gu-IN.xpi) = 21328b4469f391d235a6aa52a95877a889426b885064f53ede1f65c5dfb996c3
83
SIZE (xpi/firefox-i18n-59.0/gu-IN.xpi) = 521802
83
SIZE (xpi/firefox-i18n-60.0b3/gu-IN.xpi) = 530856
84
SHA256 (xpi/firefox-i18n-59.0/he.xpi) = 89ba85e80cf52e7743763804300a8b2e9c5e55b9d189954cf5d45c796ea77c04
84
SHA256 (xpi/firefox-i18n-60.0b3/he.xpi) = 726540b4cbb5d4da9bdb84996e45e7998891afe8dec10eb81303985801790415
85
SIZE (xpi/firefox-i18n-59.0/he.xpi) = 472769
85
SIZE (xpi/firefox-i18n-60.0b3/he.xpi) = 482051
86
SHA256 (xpi/firefox-i18n-59.0/hi-IN.xpi) = 16a5e4fbbf1ddd8827afb2382b82b59039fb040b16bd36f9c214ddaa4bd82db0
86
SHA256 (xpi/firefox-i18n-60.0b3/hi-IN.xpi) = cce5fa5c99061bcc16f8c5430313d8f54f6819425067ff1881e7e7662e2f0656
87
SIZE (xpi/firefox-i18n-59.0/hi-IN.xpi) = 524277
87
SIZE (xpi/firefox-i18n-60.0b3/hi-IN.xpi) = 533423
88
SHA256 (xpi/firefox-i18n-59.0/hr.xpi) = 2966dafaea8224e7e9e599f048fb9725f28704af53bb5f0a311dc9ef485f7325
88
SHA256 (xpi/firefox-i18n-60.0b3/hr.xpi) = 2cde8c53b19e1c876ebc4e913f308d26dc7dec79a8b7a489acc1034a96780f93
89
SIZE (xpi/firefox-i18n-59.0/hr.xpi) = 459976
89
SIZE (xpi/firefox-i18n-60.0b3/hr.xpi) = 469482
90
SHA256 (xpi/firefox-i18n-59.0/hsb.xpi) = 1311fdfe6784f73c1f7ead834a301e8818db253393510a0f6bc00e68ec5e4546
90
SHA256 (xpi/firefox-i18n-60.0b3/hsb.xpi) = 36dfe15abac1d967a642a0dcd68cb2201232991b7ada66263d1c315b0fc0ff89
91
SIZE (xpi/firefox-i18n-59.0/hsb.xpi) = 475939
91
SIZE (xpi/firefox-i18n-60.0b3/hsb.xpi) = 483360
92
SHA256 (xpi/firefox-i18n-59.0/hu.xpi) = c362521efa6a58d80eff294bd1d85939c42c6a29cbba6903a3d00525fd4ca9e0
92
SHA256 (xpi/firefox-i18n-60.0b3/hu.xpi) = e2494405b00dfc84ca70259c0706fca86773fc801be310c8c2e3761c0b7059e6
93
SIZE (xpi/firefox-i18n-59.0/hu.xpi) = 476895
93
SIZE (xpi/firefox-i18n-60.0b3/hu.xpi) = 484440
94
SHA256 (xpi/firefox-i18n-59.0/hy-AM.xpi) = 4b28fd26b21abe6897399a72c4d99c765d3b08f55a1f36c184d33bf83d646668
94
SHA256 (xpi/firefox-i18n-60.0b3/hy-AM.xpi) = 3c0335bc765fc3379de482a60364dd05207622e39c7f48e0acab974511f889be
95
SIZE (xpi/firefox-i18n-59.0/hy-AM.xpi) = 508165
95
SIZE (xpi/firefox-i18n-60.0b3/hy-AM.xpi) = 517930
96
SHA256 (xpi/firefox-i18n-59.0/ia.xpi) = 4c7f6069edb4cfab47bad733621b23d192f4ef666556877d441f224ed5f91dd9
96
SHA256 (xpi/firefox-i18n-60.0b3/ia.xpi) = 08f1780aeec56e43dbbb5e619b9a5f2553d6071793f88be4844c5f1de40fd684
97
SIZE (xpi/firefox-i18n-59.0/ia.xpi) = 448827
97
SIZE (xpi/firefox-i18n-60.0b3/ia.xpi) = 458298
98
SHA256 (xpi/firefox-i18n-59.0/id.xpi) = e11d14366748f021c336254f1557ca62d0bbd13ca308be097b28e68db5a8e02f
98
SHA256 (xpi/firefox-i18n-60.0b3/id.xpi) = 11831ecb0a7f9fdbd55c22ad96a645a78dc6b3979f004a7630a95e3aef1edde9
99
SIZE (xpi/firefox-i18n-59.0/id.xpi) = 441951
99
SIZE (xpi/firefox-i18n-60.0b3/id.xpi) = 450202
100
SHA256 (xpi/firefox-i18n-59.0/is.xpi) = 8bb7f3fb34c4fa15f297a99f5651f00a99844346a1d4469117c5dea0cd840843
100
SHA256 (xpi/firefox-i18n-60.0b3/is.xpi) = 5f730e6a1cde21ae2caf7941e4a47bf29f6b99c3f1cfc9e3fac1308e881748a1
101
SIZE (xpi/firefox-i18n-59.0/is.xpi) = 451371
101
SIZE (xpi/firefox-i18n-60.0b3/is.xpi) = 460806
102
SHA256 (xpi/firefox-i18n-59.0/it.xpi) = 619b955412cd52f1379a64f9bbc23f78d595dd0139c0097ea3e93c4267eef051
102
SHA256 (xpi/firefox-i18n-60.0b3/it.xpi) = 52bafed44673bcd90659ef1e9c0a4a59800cfc210fb1e714d7cb5ff69f428c02
103
SIZE (xpi/firefox-i18n-59.0/it.xpi) = 342522
103
SIZE (xpi/firefox-i18n-60.0b3/it.xpi) = 348666
104
SHA256 (xpi/firefox-i18n-59.0/ja.xpi) = e32dc966b1164b0a8bc5e8efbf660d8c462c9e50c93a978de88eb3915ab41247
104
SHA256 (xpi/firefox-i18n-60.0b3/ja.xpi) = 7923f12330af1bc5875ec30746c83a248a1602b44e48a045a1ee1db8cccd80b0
105
SIZE (xpi/firefox-i18n-59.0/ja.xpi) = 508146
105
SIZE (xpi/firefox-i18n-60.0b3/ja.xpi) = 517964
106
SHA256 (xpi/firefox-i18n-59.0/ka.xpi) = d0cb6ec913abd01d5826032716cb12b780e591d273080972d3627ab5c51e2bbd
106
SHA256 (xpi/firefox-i18n-60.0b3/ka.xpi) = 0d4c4c8ef2446883ac9548a290bc02e45add22babc72f48942136276394caa6e
107
SIZE (xpi/firefox-i18n-59.0/ka.xpi) = 492567
107
SIZE (xpi/firefox-i18n-60.0b3/ka.xpi) = 500317
108
SHA256 (xpi/firefox-i18n-59.0/kab.xpi) = 3b56006aa799f9c6e402781843a4774a858532c1f53ba03f5918efa52a3dabac
108
SHA256 (xpi/firefox-i18n-60.0b3/kab.xpi) = 717480d0264e324c7ecaecd40421d2b576a520831ce2ce01b81209d3c19d0f11
109
SIZE (xpi/firefox-i18n-59.0/kab.xpi) = 461838
109
SIZE (xpi/firefox-i18n-60.0b3/kab.xpi) = 469411
110
SHA256 (xpi/firefox-i18n-59.0/kk.xpi) = c1bbedcb92a43c18c654b098705d513d7663876a30875c322a61657e6046b72c
110
SHA256 (xpi/firefox-i18n-60.0b3/kk.xpi) = 025b251bc25ac90a356af55d4a06a18f3b978b9c94024e32db113b92a8b2a1f6
111
SIZE (xpi/firefox-i18n-59.0/kk.xpi) = 517582
111
SIZE (xpi/firefox-i18n-60.0b3/kk.xpi) = 526816
112
SHA256 (xpi/firefox-i18n-59.0/km.xpi) = 9fa77a9347c77f23f52f0129a35fe290bb3d67e261817956ba265f3b68cacbe4
112
SHA256 (xpi/firefox-i18n-60.0b3/km.xpi) = 3a536d9ca58cf007a9b32ed46c3ebae5865cbfdae5bd8e776d82e2d00e1d24fd
113
SIZE (xpi/firefox-i18n-59.0/km.xpi) = 526357
113
SIZE (xpi/firefox-i18n-60.0b3/km.xpi) = 534969
114
SHA256 (xpi/firefox-i18n-59.0/kn.xpi) = b62f5139ee71ed4107e878a5fab2e58e1dd910598b85199d1162c67ffc426c85
114
SHA256 (xpi/firefox-i18n-60.0b3/kn.xpi) = ad31daf5d7ebb6d8523c64323edfa07b51bca212f80afa51c8fbd77b92975f2c
115
SIZE (xpi/firefox-i18n-59.0/kn.xpi) = 527877
115
SIZE (xpi/firefox-i18n-60.0b3/kn.xpi) = 535036
116
SHA256 (xpi/firefox-i18n-59.0/ko.xpi) = 1c498889480fa8ea9a065ba12b185283edc518d738c6db8ff780098b38bf817a
116
SHA256 (xpi/firefox-i18n-60.0b3/ko.xpi) = 544e7699e1ae8bd404bf39804979cba4b794d9552c2460464da427064a16d9fd
117
SIZE (xpi/firefox-i18n-59.0/ko.xpi) = 487659
117
SIZE (xpi/firefox-i18n-60.0b3/ko.xpi) = 493727
118
SHA256 (xpi/firefox-i18n-59.0/lij.xpi) = 0312ca2b5aecd54f7456d8310542165f005f2e1bddc70bedb824541dcce4b65b
118
SHA256 (xpi/firefox-i18n-60.0b3/lij.xpi) = a72c005290ecb379b1588ba917f6fde3cbeecd59fa74ba928e546edd863034c4
119
SIZE (xpi/firefox-i18n-59.0/lij.xpi) = 446604
119
SIZE (xpi/firefox-i18n-60.0b3/lij.xpi) = 456042
120
SHA256 (xpi/firefox-i18n-59.0/lt.xpi) = 7ba6037547b3e5f1d402ce698cd74dfbe6c2eca8013f9ebb9cda820233cca998
120
SHA256 (xpi/firefox-i18n-60.0b3/lt.xpi) = f5e4a9f76f67939354a2073f4788f1d74c2f9e77a3989f4e9363c5a5345f9cd7
121
SIZE (xpi/firefox-i18n-59.0/lt.xpi) = 475141
121
SIZE (xpi/firefox-i18n-60.0b3/lt.xpi) = 482894
122
SHA256 (xpi/firefox-i18n-59.0/lv.xpi) = 85f32e9a7fd03423ae0b7339990c076b84409f95d9dc010089389666f891c1da
122
SHA256 (xpi/firefox-i18n-60.0b3/lv.xpi) = 4360940da69bda4f06a1d6f786184903741644101b1121912fe9d4abfbab8b8a
123
SIZE (xpi/firefox-i18n-59.0/lv.xpi) = 463653
123
SIZE (xpi/firefox-i18n-60.0b3/lv.xpi) = 473177
124
SHA256 (xpi/firefox-i18n-59.0/mai.xpi) = 2cc0ec3dc2a0296d17c0fd71060291caac8981c496acc524b26da7ef4cb62ed3
124
SHA256 (xpi/firefox-i18n-60.0b3/mai.xpi) = 00d5a13fe9f8f890e162c981d7589c01fe11c00df71db2482ec75e7046cb89bf
125
SIZE (xpi/firefox-i18n-59.0/mai.xpi) = 499908
125
SIZE (xpi/firefox-i18n-60.0b3/mai.xpi) = 505844
126
SHA256 (xpi/firefox-i18n-59.0/mk.xpi) = 0ffa52cdc876ceb990eb0b1d729ed5fa5fe92bfe2d65e9d4bfd759758ac216fa
126
SHA256 (xpi/firefox-i18n-60.0b3/mk.xpi) = dce14cde1f8273708a490f2c4bded0711fa0f7b5c6246e0fe47fd5e66f329210
127
SIZE (xpi/firefox-i18n-59.0/mk.xpi) = 484074
127
SIZE (xpi/firefox-i18n-60.0b3/mk.xpi) = 471170
128
SHA256 (xpi/firefox-i18n-59.0/ml.xpi) = ac845dba07dbbd76fe37c0bfc4dd5365e15254971f9588377a680e07745fed6f
128
SHA256 (xpi/firefox-i18n-60.0b3/ml.xpi) = 3c1f3531b329394259c504fcf09552892521dd0c6fadc5eeb065eaf13d42409e
129
SIZE (xpi/firefox-i18n-59.0/ml.xpi) = 539733
129
SIZE (xpi/firefox-i18n-60.0b3/ml.xpi) = 548073
130
SHA256 (xpi/firefox-i18n-59.0/mr.xpi) = 8bafe1760d2a1cf0093256cd019dac2c097e79f1484bfe66a1f3f73076d3b6b3
130
SHA256 (xpi/firefox-i18n-60.0b3/mr.xpi) = 2231c6fa9e70fdfe1d990a6648c866d13fc4686d90b8e571f82fb8fd09ac4849
131
SIZE (xpi/firefox-i18n-59.0/mr.xpi) = 517960
131
SIZE (xpi/firefox-i18n-60.0b3/mr.xpi) = 527929
132
SHA256 (xpi/firefox-i18n-59.0/ms.xpi) = 00c44f109551b23f0a904402573c06edf4d8bf087cc0e91b52b006621883c9b5
132
SHA256 (xpi/firefox-i18n-60.0b3/ms.xpi) = 7716cabd88d67a28be5fd4b95de7589fd99b49a4e220fd97c8d6afea3dc688a1
133
SIZE (xpi/firefox-i18n-59.0/ms.xpi) = 450073
133
SIZE (xpi/firefox-i18n-60.0b3/ms.xpi) = 457435
134
SHA256 (xpi/firefox-i18n-59.0/my.xpi) = 37708298e5bcf83d9570a5144b633709666b69840315c680bae3f7dd2a186001
134
SHA256 (xpi/firefox-i18n-60.0b3/my.xpi) = 8dea9196021521ed04fcd08a003e855799e48f6c55673aca1f3cc29ab20ccc44
135
SIZE (xpi/firefox-i18n-59.0/my.xpi) = 511892
135
SIZE (xpi/firefox-i18n-60.0b3/my.xpi) = 520518
136
SHA256 (xpi/firefox-i18n-59.0/nb-NO.xpi) = 90c61e5724b618b5fdfc65fc37d60686cd374f94a6567d6aa290c8733eb45c86
136
SHA256 (xpi/firefox-i18n-60.0b3/nb-NO.xpi) = eca1fec957d09da6dc43eb10dbfa294363669d5c114e7e40ee053e0d30f4693c
137
SIZE (xpi/firefox-i18n-59.0/nb-NO.xpi) = 450275
137
SIZE (xpi/firefox-i18n-60.0b3/nb-NO.xpi) = 457336
138
SHA256 (xpi/firefox-i18n-59.0/ne-NP.xpi) = d6a3aebbb11faca5a07794648f13946a84807abb7325176b0da8b51e2c53f251
138
SHA256 (xpi/firefox-i18n-60.0b3/ne-NP.xpi) = e6c7a3071f8fcab626c4ef696b3efad2dda931d3662cb350d8352042c89607ce
139
SIZE (xpi/firefox-i18n-59.0/ne-NP.xpi) = 509175
139
SIZE (xpi/firefox-i18n-60.0b3/ne-NP.xpi) = 505000
140
SHA256 (xpi/firefox-i18n-59.0/nl.xpi) = 95cdc03247c2e59313c59bf819401fcf140bcf556367755f79207ce38345c123
140
SHA256 (xpi/firefox-i18n-60.0b3/nl.xpi) = 139794f03fad4d8eb289754e9c5f17dec678311f1cfbc3778faf2f1589812b09
141
SIZE (xpi/firefox-i18n-59.0/nl.xpi) = 458127
141
SIZE (xpi/firefox-i18n-60.0b3/nl.xpi) = 463915
142
SHA256 (xpi/firefox-i18n-59.0/nn-NO.xpi) = 87fa01ddab0d6545cced17229187b63bead047549ea7c73ba3947f9a555a8dd7
142
SHA256 (xpi/firefox-i18n-60.0b3/nn-NO.xpi) = 6bff7f6281f2538409e413e4f9bdec14e9062cdd3c97d453a4cd86708d6d1a71
143
SIZE (xpi/firefox-i18n-59.0/nn-NO.xpi) = 451469
143
SIZE (xpi/firefox-i18n-60.0b3/nn-NO.xpi) = 458911
144
SHA256 (xpi/firefox-i18n-59.0/or.xpi) = a00da5f2a4b7c13947a27b526c0d35673eff42d9cab0979c6670ca54ee8f68c7
144
SHA256 (xpi/firefox-i18n-60.0b3/oc.xpi) = 7fbd098dd43d347e2ba22d906b917bd7fe318eff403f0f64af126b958c359127
145
SIZE (xpi/firefox-i18n-59.0/or.xpi) = 493180
145
SIZE (xpi/firefox-i18n-60.0b3/oc.xpi) = 475402
146
SHA256 (xpi/firefox-i18n-59.0/pa-IN.xpi) = e43dd78383255b594d8078c38d46e872565304427ab7bbeca47458477a34d4ef
146
SHA256 (xpi/firefox-i18n-60.0b3/or.xpi) = 44a5336595c2bee733a3f2cb5f91f793dfb23c2589c8d8f3cbc48f3666fa259b
147
SIZE (xpi/firefox-i18n-59.0/pa-IN.xpi) = 492418
147
SIZE (xpi/firefox-i18n-60.0b3/or.xpi) = 498996
148
SHA256 (xpi/firefox-i18n-59.0/pl.xpi) = 323c5439304f6fbed7db49ae96ab513071551ef87e12bc11103b5b4be0d07289
148
SHA256 (xpi/firefox-i18n-60.0b3/pa-IN.xpi) = 2c4e53a52ebd80df358b6d8e1ddfaafb0d45d30c31f76ae0d5092a1a2ce00f85
149
SIZE (xpi/firefox-i18n-59.0/pl.xpi) = 358509
149
SIZE (xpi/firefox-i18n-60.0b3/pa-IN.xpi) = 501556
150
SHA256 (xpi/firefox-i18n-59.0/pt-BR.xpi) = 21bde4b1666858fb65682147fa235fe9688206a2e0d492affd019b3fd99e2c64
150
SHA256 (xpi/firefox-i18n-60.0b3/pl.xpi) = 56c55978e319476c39ef211e9fbf93d4ef117f93af0cebd06d2293d467970d3c
151
SIZE (xpi/firefox-i18n-59.0/pt-BR.xpi) = 455913
151
SIZE (xpi/firefox-i18n-60.0b3/pl.xpi) = 368877
152
SHA256 (xpi/firefox-i18n-59.0/pt-PT.xpi) = d9008a9b59a265702ad5915149fa9960151bdd0699bafaf8c383ece97d182d9f
152
SHA256 (xpi/firefox-i18n-60.0b3/pt-BR.xpi) = c8917e87629875e11cf3a5ec6fe5e4b7977912e38fd05e02ef842c12e923c76d
153
SIZE (xpi/firefox-i18n-59.0/pt-PT.xpi) = 459329
153
SIZE (xpi/firefox-i18n-60.0b3/pt-BR.xpi) = 463587
154
SHA256 (xpi/firefox-i18n-59.0/rm.xpi) = 88192d2d2b3824d45ff862ba285ce36499ae15daaf89d21037a8ebfc0500fe61
154
SHA256 (xpi/firefox-i18n-60.0b3/pt-PT.xpi) = 3621d33b748912600d1665425c218436818b7a60a7e9a8b16bc28c7925119ff5
155
SIZE (xpi/firefox-i18n-59.0/rm.xpi) = 449756
155
SIZE (xpi/firefox-i18n-60.0b3/pt-PT.xpi) = 466657
156
SHA256 (xpi/firefox-i18n-59.0/ro.xpi) = 6fe642ecbb2d3f2c181fc8f1194c1b08cf1d6d1f76b8f205ffdfbab650f8827a
156
SHA256 (xpi/firefox-i18n-60.0b3/rm.xpi) = 05c929cc5372a8c2b5d50142698b685776af68b5fe47f68309418d3867669dab
157
SIZE (xpi/firefox-i18n-59.0/ro.xpi) = 453401
157
SIZE (xpi/firefox-i18n-60.0b3/rm.xpi) = 459504
158
SHA256 (xpi/firefox-i18n-59.0/ru.xpi) = 9905c2249e72bf8be629c59915298598ac6e63b90ba95ceee0795d077a4ad09b
158
SHA256 (xpi/firefox-i18n-60.0b3/ro.xpi) = fb95c9742f2b2961324087af5fff3049b38d2e7b2229bb84fba2ce214def1397
159
SIZE (xpi/firefox-i18n-59.0/ru.xpi) = 526521
159
SIZE (xpi/firefox-i18n-60.0b3/ro.xpi) = 463548
160
SHA256 (xpi/firefox-i18n-59.0/si.xpi) = 9608ae50405741a544270d2256035a8ae6484767fe737db8b98ac296ccdcda67
160
SHA256 (xpi/firefox-i18n-60.0b3/ru.xpi) = 9bad4cd4474fe931c6aa42f3b89203f293dd465aa996150ccb4298acd277b952
161
SIZE (xpi/firefox-i18n-59.0/si.xpi) = 492585
161
SIZE (xpi/firefox-i18n-60.0b3/ru.xpi) = 535012
162
SHA256 (xpi/firefox-i18n-59.0/sk.xpi) = ee8cc67c33edccc7b7291496fb20f2f850f6934f67a0694b1bb19774db254eb1
162
SHA256 (xpi/firefox-i18n-60.0b3/si.xpi) = 696eb1a64336ca7657951dc23d8d4e0fd7d6fe9b41635a7ea9fd15bbc66957e1
163
SIZE (xpi/firefox-i18n-59.0/sk.xpi) = 480811
163
SIZE (xpi/firefox-i18n-60.0b3/si.xpi) = 500214
164
SHA256 (xpi/firefox-i18n-59.0/sl.xpi) = 13a9308e3d93ecfb873f4fb9a4a6f14b77ac37a730c0700e7c0296ab81250de7
164
SHA256 (xpi/firefox-i18n-60.0b3/sk.xpi) = f3f5e774e7d43ae91963f33f6f979c42ee13c21c36ab01971f98669ced001f00
165
SIZE (xpi/firefox-i18n-59.0/sl.xpi) = 458823
165
SIZE (xpi/firefox-i18n-60.0b3/sk.xpi) = 488613
166
SHA256 (xpi/firefox-i18n-59.0/son.xpi) = 557087d226148a636c89313de04b7dfad71bca392dde28236163ca556f9322be
166
SHA256 (xpi/firefox-i18n-60.0b3/sl.xpi) = 5b0eee6f71463fb87fa44206837b015109372073985c1109387ef4ce532c4f32
167
SIZE (xpi/firefox-i18n-59.0/son.xpi) = 446398
167
SIZE (xpi/firefox-i18n-60.0b3/sl.xpi) = 466988
168
SHA256 (xpi/firefox-i18n-59.0/sq.xpi) = 492cbf457ad02ef8efdfc546207a2d6c9ea07df57741dcebf89bae235438ca55
168
SHA256 (xpi/firefox-i18n-60.0b3/son.xpi) = ce6fc02a98ef993acb03df5ab0de7d51e05229a8f02cc18e347a7465c587273c
169
SIZE (xpi/firefox-i18n-59.0/sq.xpi) = 464461
169
SIZE (xpi/firefox-i18n-60.0b3/son.xpi) = 454316
170
SHA256 (xpi/firefox-i18n-59.0/sr.xpi) = 30dc2cc54bd0bb4c88bd4ec016eba9285fc1d14d27417b402c2a44967baa4fd5
170
SHA256 (xpi/firefox-i18n-60.0b3/sq.xpi) = 34bdbd32667bf908eea6628af28849e0b395c86c31add6bd8c2709b9b4d04b1c
171
SIZE (xpi/firefox-i18n-59.0/sr.xpi) = 486176
171
SIZE (xpi/firefox-i18n-60.0b3/sq.xpi) = 472320
172
SHA256 (xpi/firefox-i18n-59.0/sv-SE.xpi) = 69fc218bcf153772dbeb1000dc35849210d00ede91537b948b27876ec03ffddf
172
SHA256 (xpi/firefox-i18n-60.0b3/sr.xpi) = 2ea10ed9699e802f4514c5652bb9b3beb44fc2226ba8f5a75e9142faa7ade1f6
173
SIZE (xpi/firefox-i18n-59.0/sv-SE.xpi) = 458658
173
SIZE (xpi/firefox-i18n-60.0b3/sr.xpi) = 493647
174
SHA256 (xpi/firefox-i18n-59.0/ta.xpi) = d55bc8f1458d96d548d7ef3e01a1cec3dbd9c4b62f8dd539658d4ad90129fb58
174
SHA256 (xpi/firefox-i18n-60.0b3/sv-SE.xpi) = 8dca1493f1fc62d00250aee990d125a73bfc4e164aa5b1d6c95cab784812b52e
175
SIZE (xpi/firefox-i18n-59.0/ta.xpi) = 512841
175
SIZE (xpi/firefox-i18n-60.0b3/sv-SE.xpi) = 465641
176
SHA256 (xpi/firefox-i18n-59.0/te.xpi) = 25368ecdd33ed9ec4ad5fd95f510afffc61740f2bbb33c814ec3a6863673dc39
176
SHA256 (xpi/firefox-i18n-60.0b3/ta.xpi) = 429eb0c71e2709ff73ae004a316542f05b8caaad09ce700eea75b2e7656cf666
177
SIZE (xpi/firefox-i18n-59.0/te.xpi) = 527082
177
SIZE (xpi/firefox-i18n-60.0b3/ta.xpi) = 522337
178
SHA256 (xpi/firefox-i18n-59.0/th.xpi) = a7e8951f27666735eb6e2bb526c069ae26a7bf6ed2dde12c0b47a9adacc1c200
178
SHA256 (xpi/firefox-i18n-60.0b3/te.xpi) = 7e4038953ec7a31442eafffe25e3a1333e4ed313a2a677b5460f2b6bf5c9bc80
179
SIZE (xpi/firefox-i18n-59.0/th.xpi) = 498542
179
SIZE (xpi/firefox-i18n-60.0b3/te.xpi) = 535700
180
SHA256 (xpi/firefox-i18n-59.0/tr.xpi) = 50728d089f891362a4b1f0d036edbc556e8dbe922c2abdbb89ffe45d57d275f4
180
SHA256 (xpi/firefox-i18n-60.0b3/th.xpi) = 64c76b8181841a934eccd2c9f3630ddfa2686181840eb35edd11024529169b8a
181
SIZE (xpi/firefox-i18n-59.0/tr.xpi) = 463592
181
SIZE (xpi/firefox-i18n-60.0b3/th.xpi) = 507467
182
SHA256 (xpi/firefox-i18n-59.0/uk.xpi) = 7b500089a303e93761054b3cda4e4a188ebe6ccc2a120e5c90fd5d4e7cf28cfe
182
SHA256 (xpi/firefox-i18n-60.0b3/tr.xpi) = ef51a4ce7871e61fa44e5dc4c253ce6c6b6a872643d379d5080922596923ac93
183
SIZE (xpi/firefox-i18n-59.0/uk.xpi) = 516924
183
SIZE (xpi/firefox-i18n-60.0b3/tr.xpi) = 472573
184
SHA256 (xpi/firefox-i18n-59.0/ur.xpi) = 9cc9ece7f94e13894651b4c342d226552e8544e8488e447da6c9f1ddf8884d31
184
SHA256 (xpi/firefox-i18n-60.0b3/uk.xpi) = 58a7298fe6d317f69ef306eed4ae39e2f03fe0e77634a3d79a3f0eb64759afbe
185
SIZE (xpi/firefox-i18n-59.0/ur.xpi) = 507378
185
SIZE (xpi/firefox-i18n-60.0b3/uk.xpi) = 524811
186
SHA256 (xpi/firefox-i18n-59.0/uz.xpi) = 4ae7546f790afe6b931d137531a6ef6a7287f1959ed20758c62624e23d75fa53
186
SHA256 (xpi/firefox-i18n-60.0b3/ur.xpi) = f56d7fb2d43af3eee1963aaa0fc932e205bb2fba58dfaed4a1b9ffb7676df079
187
SIZE (xpi/firefox-i18n-59.0/uz.xpi) = 456922
187
SIZE (xpi/firefox-i18n-60.0b3/ur.xpi) = 515602
188
SHA256 (xpi/firefox-i18n-59.0/vi.xpi) = 778ee06852609372e0303a5354b6e8b1f2a22e999cbeedba6bf9d8d303c05bf9
188
SHA256 (xpi/firefox-i18n-60.0b3/uz.xpi) = 364823b09773d55ca7b685f4bdecc38b8556faa2cdaf02bda6567fe5adbf66b5
189
SIZE (xpi/firefox-i18n-59.0/vi.xpi) = 470067
189
SIZE (xpi/firefox-i18n-60.0b3/uz.xpi) = 465257
190
SHA256 (xpi/firefox-i18n-59.0/xh.xpi) = 41dfddbd064d2da408b93409bfacafd32226cd086a3da5e603a5a3fba4891656
190
SHA256 (xpi/firefox-i18n-60.0b3/vi.xpi) = e29dab864cc1ac9abe2141b82cf11dd3e393accf26b44d2337673ae0ba41a29a
191
SIZE (xpi/firefox-i18n-59.0/xh.xpi) = 460770
191
SIZE (xpi/firefox-i18n-60.0b3/vi.xpi) = 479545
192
SHA256 (xpi/firefox-i18n-59.0/zh-CN.xpi) = 03679d815dee18016aae33fba44eafe8116d025c5f5d99b9efbba29d65886b8f
192
SHA256 (xpi/firefox-i18n-60.0b3/xh.xpi) = da7079e82d170281ad3828e90ce2c7a0742050c053d03ba3776d025604ab2496
193
SIZE (xpi/firefox-i18n-59.0/zh-CN.xpi) = 483447
193
SIZE (xpi/firefox-i18n-60.0b3/xh.xpi) = 467861
194
SHA256 (xpi/firefox-i18n-59.0/zh-TW.xpi) = 40253d142f875a27e086c34737e0c437939cea29011160c7d7b252ad1f34f9d2
194
SHA256 (xpi/firefox-i18n-60.0b3/zh-CN.xpi) = 58ed5ccfd66b145c70d82a6423f43d103f30fd491f5088cf2354d660525eaab2
195
SIZE (xpi/firefox-i18n-59.0/zh-TW.xpi) = 477087
195
SIZE (xpi/firefox-i18n-60.0b3/zh-CN.xpi) = 490717
196
SHA256 (xpi/firefox-i18n-60.0b3/zh-TW.xpi) = 41a7c41a530fd8026af52aba1692e18f1e49a70427a4749c0e2a0830f36e540f
197
SIZE (xpi/firefox-i18n-60.0b3/zh-TW.xpi) = 487681
(-)b/www/firefox/Makefile (-11 / +8 lines)
Lines 2-29 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	firefox
4
PORTNAME=	firefox
5
DISTVERSION=	59.0
5
DISTVERSION=	60.0b3
6
PORTREVISION=	4
7
PORTEPOCH=	1
6
PORTEPOCH=	1
8
CATEGORIES=	www ipv6
7
CATEGORIES=	www ipv6
9
MASTER_SITES=	https://hg.mozilla.org/releases/mozilla-release/archive/
8
MASTER_SITES=	https://hg.mozilla.org/releases/mozilla-beta/archive/
10
DISTNAME=	${MASTER_SITES:M*hg*:S,/archive/,,:T}-c61f5f5ead48c78a80c80db5c489bdc7cfaf8175
9
DISTNAME=	${MASTER_SITES:M*hg*:S,/archive/,,:T}-93daac564022a618daa8ae32c422a0ffac8a73d0
11
DISTFILES=	${DISTNAME:C/.*-//}${EXTRACT_SUFX}
10
DISTFILES=	${DISTNAME:C/.*-//}${EXTRACT_SUFX}
12
DIST_SUBDIR=	firefox
11
DIST_SUBDIR=	firefox
13
12
14
MAINTAINER=	gecko@FreeBSD.org
13
MAINTAINER=	gecko@FreeBSD.org
15
COMMENT=	Web browser based on the browser portion of Mozilla
14
COMMENT=	Web browser based on the browser portion of Mozilla
16
15
17
BUILD_DEPENDS=	nspr>=4.18:devel/nspr \
16
BUILD_DEPENDS=	nspr>=4.19:devel/nspr \
18
		nss>=3.35:security/nss \
17
		nss>=3.36:security/nss \
19
		icu>=59.1,1:devel/icu \
18
		icu>=59.1,1:devel/icu \
20
		libevent>=2.1.8:devel/libevent \
19
		libevent>=2.1.8:devel/libevent \
21
		harfbuzz>=1.7.4:print/harfbuzz \
20
		harfbuzz>=1.7.6:print/harfbuzz \
22
		graphite2>=1.3.10:graphics/graphite2 \
21
		graphite2>=1.3.11:graphics/graphite2 \
23
		png>=1.6.34:graphics/png \
22
		png>=1.6.34:graphics/png \
24
		libvorbis>=1.3.5,3:audio/libvorbis \
23
		libvorbis>=1.3.5,3:audio/libvorbis \
25
		libvpx>=1.5.0:multimedia/libvpx \
24
		libvpx>=1.5.0:multimedia/libvpx \
26
		sqlite3>=3.21.0:databases/sqlite3 \
25
		sqlite3>=3.22.0:databases/sqlite3 \
27
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
28
		v4l_compat>0:multimedia/v4l_compat \
27
		v4l_compat>0:multimedia/v4l_compat \
29
		autoconf-2.13:devel/autoconf213 \
28
		autoconf-2.13:devel/autoconf213 \
Lines 31-38 BUILD_DEPENDS= nspr>=4.18:devel/nspr \ Link Here
31
		zip:archivers/zip
30
		zip:archivers/zip
32
#		soundtouch>=1.9.0:audio/soundtouch \
31
#		soundtouch>=1.9.0:audio/soundtouch \
33
32
34
LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
35
36
USE_GECKO=	gecko
33
USE_GECKO=	gecko
37
CONFLICTS_INSTALL=	firefox-esr
34
CONFLICTS_INSTALL=	firefox-esr
38
MOZ_PKGCONFIG_FILES=	# empty
35
MOZ_PKGCONFIG_FILES=	# empty
(-)b/www/firefox/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1520650457
1
TIMESTAMP = 1520868062
2
SHA256 (firefox/c61f5f5ead48c78a80c80db5c489bdc7cfaf8175.tar.bz2) = 1c591e52ca808c3bfbdcd9bcca0c8c1457fe9503face27cde6272a3b791afec4
2
SHA256 (firefox/93daac564022a618daa8ae32c422a0ffac8a73d0.tar.bz2) = 0d7a9b1ba4bc7709d05aa7e6c0646e6adc37670cffd13cbb4a9d4f437cf60d53
3
SIZE (firefox/c61f5f5ead48c78a80c80db5c489bdc7cfaf8175.tar.bz2) = 304957396
3
SIZE (firefox/93daac564022a618daa8ae32c422a0ffac8a73d0.tar.bz2) = 329398305
(-)b/www/firefox/files/patch-bug1021761 (-3 / +3 lines)
Lines 1198-1206 index b139b8f497fd..d1f8a223c6d8 100755 Link Here
1198
 cp $1/src/cubeb_mixer.h src
1198
 cp $1/src/cubeb_mixer.h src
1199
 cp $1/src/cubeb_opensl.c src
1199
 cp $1/src/cubeb_opensl.c src
1200
+cp $1/src/cubeb_oss.c src
1200
+cp $1/src/cubeb_oss.c src
1201
 cp $1/src/cubeb_osx_run_loop.h src
1201
 cp $1/src/cubeb-jni.cpp src
1202
 cp $1/src/cubeb_panner.cpp src
1202
 cp $1/src/cubeb-jni.h src
1203
 cp $1/src/cubeb_panner.h src
1203
 cp $1/src/android/cubeb-output-latency.h src/android
1204
diff --git toolkit/library/moz.build toolkit/library/moz.build
1204
diff --git toolkit/library/moz.build toolkit/library/moz.build
1205
index a61c689c83c3..7764df6f8a6b 100644
1205
index a61c689c83c3..7764df6f8a6b 100644
1206
--- toolkit/library/moz.build
1206
--- toolkit/library/moz.build
(-)b/www/firefox/files/patch-bug1418162 (+58 lines)
Added Link Here
1
commit b2ebb8d82be2
2
Author: Tom Ritter <tom@mozilla.com>
3
Date:   Mon Feb 19 09:43:27 2018 -0600
4
5
    Bug 1418162 Use a build constant to determine update channel, and update ESR equation for 60 r?gijs,Build
6
    
7
    Previously we used Services.appinfo.defaultUpdateChannel to determine if we were on ESR
8
    and if so, we would assert to make sure the ESR equation hadn't changed. But that method
9
    is a footgun.  We could use UpdateUtils.getUpdateChannel, but for our purposes here, the
10
    compile-time constant will work just as well.
11
    
12
    If it's set correctly, for Mozilla, we will perform our assert check. If it's not set to
13
    esr (e.g. for Tor), they'll skip the assert. They probably want to control their user agent
14
    themselves anyway.
15
    
16
    MozReview-Commit-ID: DLnWSEpCVJ6
17
---
18
 .../resistfingerprinting/nsRFPService.cpp           | 21 +++++++--------------
19
 1 file changed, 7 insertions(+), 14 deletions(-)
20
21
diff --git toolkit/components/resistfingerprinting/nsRFPService.cpp toolkit/components/resistfingerprinting/nsRFPService.cpp
22
index aeb3cb6b3539..1fd6a6e8fe8d 100644
23
--- toolkit/components/resistfingerprinting/nsRFPService.cpp
24
+++ toolkit/components/resistfingerprinting/nsRFPService.cpp
25
@@ -606,26 +606,19 @@ nsRFPService::GetSpoofedUserAgent(nsACString &userAgent)
26
   uint32_t firefoxVersion = appVersion.ToInteger(&rv);
27
   NS_ENSURE_SUCCESS(rv, rv);
28
 
29
-  // Starting from Firefox 10, Firefox ESR was released once every seven
30
-  // Firefox releases, e.g. Firefox 10, 17, 24, 31, and so on.
31
-  // We infer the last and closest ESR version based on this rule.
32
-  nsCOMPtr<nsIXULRuntime> runtime =
33
-    do_GetService("@mozilla.org/xre/runtime;1", &rv);
34
-  NS_ENSURE_SUCCESS(rv, rv);
35
-
36
-  nsAutoCString updateChannel;
37
-  rv = runtime->GetDefaultUpdateChannel(updateChannel);
38
-  NS_ENSURE_SUCCESS(rv, rv);
39
-
40
   // If we are running in Firefox ESR, determine whether the formula of ESR
41
   // version has changed.  Once changed, we must update the formula in this
42
   // function.
43
-  if (updateChannel.EqualsLiteral("esr")) {
44
-    MOZ_ASSERT(((firefoxVersion % 7) == 3),
45
+  if (!strcmp(NS_STRINGIFY(MOZ_UPDATE_CHANNEL), "esr")) {
46
+    MOZ_ASSERT(((firefoxVersion % 7) == 4),
47
       "Please udpate ESR version formula in nsRFPService.cpp");
48
   }
49
 
50
-  uint32_t spoofedVersion = firefoxVersion - ((firefoxVersion - 3) % 7);
51
+  // Starting from Firefox 10, Firefox ESR was released once every seven
52
+  // Firefox releases, e.g. Firefox 10, 17, 24, 31, and so on.
53
+  // Except we used 60 as an ESR instead of 59.
54
+  // We infer the last and closest ESR version based on this rule.
55
+  uint32_t spoofedVersion = firefoxVersion - ((firefoxVersion - 4) % 7);
56
   userAgent.Assign(nsPrintfCString(
57
     "Mozilla/5.0 (%s; rv:%d.0) Gecko/%s Firefox/%d.0",
58
     SPOOFED_UA_OS, spoofedVersion, LEGACY_BUILD_ID, spoofedVersion));
(-)a/www/firefox/files/patch-bug1433747 (-24 lines)
Removed Link Here
1
Apply simd@cf87865a998a to unbreak -C target-cpu with Rust >= 1.24
2
3
diff --git third_party/rust/simd/.cargo-checksum.json third_party/rust/simd/.cargo-checksum.json
4
index 65f31b0560e6..f16d0dd4fd61 100644
5
--- third_party/rust/simd/.cargo-checksum.json
6
+++ third_party/rust/simd/.cargo-checksum.json
7
@@ -1 +1 @@
8
-{"files":{".travis.yml":"e2c720c3633b7671efce49147c62b12bcbf630d7c5d6fc65cd97620bfa4ddcea","Cargo.toml":"608aad04f17a524ee21048fa2ce9f656ae344e0473dd0e331dc954f0f9677c63","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"6d3a9431e65e69c73a8923e6517b889d17549b23db406b9ec027710d16af701f","README.md":"249294a9a5f63c64c0f7fe4a607060f43f3507dce2378067aa59d25fb3ae681d","benches/mandelbrot.rs":"051b5199e66bca6cf7774e9024915fd4e1349ab39726a10a14e06b60d65d87a4","benches/matrix.rs":"048a21dacdb62365e0105d00d2c8cd6bd2396ac81134f2bff7eb4f7d095fb735","examples/axpy.rs":"4307626045d64ec08361c97c9c72c5dc8d361bdc88f64453b97ac0212041a1b2","examples/convert.rs":"8e658fde050f8a0d8b84ad7570446b10fcf544afbd551b940ca340474f324840","examples/dot-product.rs":"6fe2e007c147af5353804173a593c5b9d57dbccec156e1da37e9e32537363f91","examples/fannkuch-redux-nosimd.rs":"7b2fbde35e8666929d14d67328471cb0483d038a5325232f8db148b30865312b","examples/fannkuch-redux.rs":"ea21fdbd2274488a62cc984acad6e0b65d52f24fb4ff63b7057a3a667e9c8aae","examples/mandelbrot.rs":"8b8fdca1edac50e5a33e0e0592bd41eb75114f31839ccd40d485c61a9a664380","examples/matrix-inverse.rs":"a378d20ef20c2119bb10a86de27c92fec2c2f77f374e6bfd36707c9825a5fe92","examples/nbody-nosimd.rs":"2c8e0a7feacd202fdd65eeceb6420d6e9f43340b81f20a8e532704a587a2796b","examples/nbody.rs":"a864311affab262024479d6348ff51af43d809e9ad332ec30ea4aacceaa2eae1","examples/ops.rs":"1316f915d0afcfa98fdc4077e965ccccf6b4b21c433cbe487ff0cdc60df3cd39","examples/spectral-norm-nosimd.rs":"ffc8512ecde779078ea467f38f423a0ea623c63da7078193f9dd370200773f79","examples/spectral-norm.rs":"edb09c9d477f83939098cfb77a27cc298bc7a0c8a8e29cece0cccae0d70d890e","src/aarch64/mod.rs":"83f52775364c98de0cecb7e1509530c18972e932469f5f1522aa24a735d0fa37","src/aarch64/neon.rs":"1fe769979e07d8e2bc3c78ce116e05d735860744efe097a894cc9421153257fb","src/arm/mod.rs":"dcdd90bc0b39abaf86a0c8946d442b16313563fbae1ff03248628275c74d8617","src/arm/neon.rs":"51cc509856200e80f8e4cc2c982586e6d1cef593ec4537e153dce0cfe31d3428","src/common.rs":"62f4e7e0fefb52ad190d0f2191bc435ac4deab3f2bc70dc427f2a7f9ccb7856e","src/lib.rs":"25f0b39c038fa85af858318135dfd87865be26c33bb4bd1438aec96a1e68d8b5","src/sixty_four.rs":"510a9e00189a61e4f0a5beb7052d5dee37fc8261f94a2af45ef10327e0f3b7df","src/v256.rs":"2e328e49034876d535e0627c7a62191da2b4fb156a657614bf531a5fc75b1385","src/x86/avx.rs":"c66140abefca634b48eae307c3ec8cf5a40f2279b10e246a7e2ac602a2a2bb28","src/x86/avx2.rs":"efe3006b13a13261a3dec3d37dc1d8cb53950f3803c420069231803374949937","src/x86/mod.rs":"0acc5a5e2672e2a0fddc11065663be8b8fa2da87320ea291fa86ff8c2f33edf5","src/x86/sse2.rs":"5ceda75a401958a135fc9d851b22075314cdeed69fd483b6a7be4f11373f40da","src/x86/sse3.rs":"9bd01a4f08069ca4f445952e744d651efe887e3835b18872e757375f0d053bd2","src/x86/sse4_1.rs":"9ceb80dd70a7e7dfeef508cb935e1a2637175bc87a3b090f5dea691ff6aa0516","src/x86/sse4_2.rs":"c59321aed8decdce4d0d8570cff46aed02e1a8265647ef7702e9b180fc581254","src/x86/ssse3.rs":"2290f0269bae316b8e0491495645ee38a9bd73525c8572759c1328341c3bdb4c"},"package":"7a94d14a2ae1f1f110937de5fb69e494372560181c7e1739a097fcc2cee37ba0"}
9
\ No newline at end of file
10
+{"files":{".travis.yml":"e2c720c3633b7671efce49147c62b12bcbf630d7c5d6fc65cd97620bfa4ddcea","Cargo.toml":"608aad04f17a524ee21048fa2ce9f656ae344e0473dd0e331dc954f0f9677c63","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"6d3a9431e65e69c73a8923e6517b889d17549b23db406b9ec027710d16af701f","README.md":"249294a9a5f63c64c0f7fe4a607060f43f3507dce2378067aa59d25fb3ae681d","benches/mandelbrot.rs":"051b5199e66bca6cf7774e9024915fd4e1349ab39726a10a14e06b60d65d87a4","benches/matrix.rs":"048a21dacdb62365e0105d00d2c8cd6bd2396ac81134f2bff7eb4f7d095fb735","examples/axpy.rs":"4307626045d64ec08361c97c9c72c5dc8d361bdc88f64453b97ac0212041a1b2","examples/convert.rs":"8e658fde050f8a0d8b84ad7570446b10fcf544afbd551b940ca340474f324840","examples/dot-product.rs":"6fe2e007c147af5353804173a593c5b9d57dbccec156e1da37e9e32537363f91","examples/fannkuch-redux-nosimd.rs":"7b2fbde35e8666929d14d67328471cb0483d038a5325232f8db148b30865312b","examples/fannkuch-redux.rs":"ea21fdbd2274488a62cc984acad6e0b65d52f24fb4ff63b7057a3a667e9c8aae","examples/mandelbrot.rs":"8b8fdca1edac50e5a33e0e0592bd41eb75114f31839ccd40d485c61a9a664380","examples/matrix-inverse.rs":"a378d20ef20c2119bb10a86de27c92fec2c2f77f374e6bfd36707c9825a5fe92","examples/nbody-nosimd.rs":"2c8e0a7feacd202fdd65eeceb6420d6e9f43340b81f20a8e532704a587a2796b","examples/nbody.rs":"a864311affab262024479d6348ff51af43d809e9ad332ec30ea4aacceaa2eae1","examples/ops.rs":"1316f915d0afcfa98fdc4077e965ccccf6b4b21c433cbe487ff0cdc60df3cd39","examples/spectral-norm-nosimd.rs":"ffc8512ecde779078ea467f38f423a0ea623c63da7078193f9dd370200773f79","examples/spectral-norm.rs":"edb09c9d477f83939098cfb77a27cc298bc7a0c8a8e29cece0cccae0d70d890e","src/aarch64/mod.rs":"83f52775364c98de0cecb7e1509530c18972e932469f5f1522aa24a735d0fa37","src/aarch64/neon.rs":"1fe769979e07d8e2bc3c78ce116e05d735860744efe097a894cc9421153257fb","src/arm/mod.rs":"dcdd90bc0b39abaf86a0c8946d442b16313563fbae1ff03248628275c74d8617","src/arm/neon.rs":"51cc509856200e80f8e4cc2c982586e6d1cef593ec4537e153dce0cfe31d3428","src/common.rs":"62f4e7e0fefb52ad190d0f2191bc435ac4deab3f2bc70dc427f2a7f9ccb7856e","src/lib.rs":"25f0b39c038fa85af858318135dfd87865be26c33bb4bd1438aec96a1e68d8b5","src/sixty_four.rs":"510a9e00189a61e4f0a5beb7052d5dee37fc8261f94a2af45ef10327e0f3b7df","src/v256.rs":"2e328e49034876d535e0627c7a62191da2b4fb156a657614bf531a5fc75b1385","src/x86/avx.rs":"c66140abefca634b48eae307c3ec8cf5a40f2279b10e246a7e2ac602a2a2bb28","src/x86/avx2.rs":"3bcb3f391ad5f16f0a6da0bc1301329beb478ad6265bd3b2c9c124fc2e6198e5","src/x86/mod.rs":"0acc5a5e2672e2a0fddc11065663be8b8fa2da87320ea291fa86ff8c2f33edf5","src/x86/sse2.rs":"5ceda75a401958a135fc9d851b22075314cdeed69fd483b6a7be4f11373f40da","src/x86/sse3.rs":"9bd01a4f08069ca4f445952e744d651efe887e3835b18872e757375f0d053bd2","src/x86/sse4_1.rs":"9ceb80dd70a7e7dfeef508cb935e1a2637175bc87a3b090f5dea691ff6aa0516","src/x86/sse4_2.rs":"c59321aed8decdce4d0d8570cff46aed02e1a8265647ef7702e9b180fc581254","src/x86/ssse3.rs":"2290f0269bae316b8e0491495645ee38a9bd73525c8572759c1328341c3bdb4c"},"package":"7a94d14a2ae1f1f110937de5fb69e494372560181c7e1739a097fcc2cee37ba0"}
11
\ No newline at end of file
12
diff --git third_party/rust/simd/src/x86/avx2.rs third_party/rust/simd/src/x86/avx2.rs
13
index fa92e3b60786..e86a33d3b5bb 100644
14
--- third_party/rust/simd/src/x86/avx2.rs
15
+++ third_party/rust/simd/src/x86/avx2.rs
16
@@ -42,7 +42,7 @@ extern "platform-intrinsic" {
17
     fn x86_mm256_packus_epi32(x: i32x8, y: i32x8) -> u16x16;
18
     fn x86_mm256_permutevar8x32_epi32(x: i32x8, y: i32x8) -> i32x8;
19
     fn x86_mm256_permutevar8x32_ps(x: f32x8, y: i32x8) -> f32x8;
20
-    fn x86_mm256_sad_epu8(x: u8x32, y: u8x32) -> u8x32;
21
+    fn x86_mm256_sad_epu8(x: u8x32, y: u8x32) -> u64x4;
22
     fn x86_mm256_shuffle_epi8(x: i8x32, y: i8x32) -> i8x32;
23
     fn x86_mm256_sign_epi8(x: i8x32, y: i8x32) -> i8x32;
24
     fn x86_mm256_sign_epi16(x: i16x16, y: i16x16) -> i16x16;
(-)b/www/firefox/files/patch-bug1437670 (+11036 lines)
Added Link Here
1
diff --git media/webrtc/trunk/moz.build media/webrtc/trunk/moz.build
2
index 0292981c2191..67a761d5a135 100644
3
--- media/webrtc/trunk/moz.build
4
+++ media/webrtc/trunk/moz.build
5
@@ -96,7 +96,7 @@ if CONFIG["OS_TARGET"] == "WINNT":
6
         "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
7
     ]
8
 
9
-if CONFIG["OS_TARGET"] == "Linux":
10
+if CONFIG["OS_TARGET"] == "DragonFly":
11
 
12
     DIRS += [
13
         "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
14
@@ -105,7 +105,6 @@ if CONFIG["OS_TARGET"] == "Linux":
15
         "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn",
16
         "/media/webrtc/trunk/webrtc/modules/desktop_capture/primitives_gn",
17
         "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn",
18
-        "/media/webrtc/trunk/webrtc/system_wrappers/cpu_features_linux_gn",
19
         "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
20
     ]
21
 
22
@@ -122,6 +121,71 @@ if CONFIG["OS_TARGET"] == "Darwin":
23
         "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
24
     ]
25
 
26
+if CONFIG["OS_TARGET"] == "FreeBSD":
27
+
28
+    DIRS += [
29
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn",
30
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/primitives_gn",
31
+        "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
32
+    ]
33
+
34
+if CONFIG["OS_TARGET"] == "NetBSD":
35
+
36
+    DIRS += [
37
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
38
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_sse2_gn",
39
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
40
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn",
41
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/primitives_gn",
42
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn",
43
+        "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
44
+    ]
45
+
46
+if CONFIG["OS_TARGET"] == "Linux":
47
+
48
+    DIRS += [
49
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
50
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_sse2_gn",
51
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
52
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn",
53
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/primitives_gn",
54
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn",
55
+        "/media/webrtc/trunk/webrtc/system_wrappers/cpu_features_linux_gn",
56
+        "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
57
+    ]
58
+
59
+if CONFIG["OS_TARGET"] == "OpenBSD":
60
+
61
+    DIRS += [
62
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
63
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_sse2_gn",
64
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
65
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn",
66
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/primitives_gn",
67
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn",
68
+        "/media/webrtc/trunk/webrtc/video_engine/video_engine_gn"
69
+    ]
70
+
71
+if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "FreeBSD":
72
+
73
+    DIRS += [
74
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
75
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_sse2_gn",
76
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
77
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn"
78
+    ]
79
+
80
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "FreeBSD":
81
+
82
+    DIRS += [
83
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_neon_c_gn",
84
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_neon_gn",
85
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn",
86
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_neon_c_gn",
87
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_neon_gn",
88
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_neon_gn"
89
+    ]
90
+
91
 if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
92
 
93
     DIRS += [
94
@@ -151,3 +215,12 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
95
         "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_neon_gn",
96
         "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_neon_gn"
97
     ]
98
+
99
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD":
100
+
101
+    DIRS += [
102
+        "/media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn",
103
+        "/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing_sse2_gn",
104
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
105
+        "/media/webrtc/trunk/webrtc/modules/video_processing/video_processing_sse2_gn"
106
+    ]
107
diff --git media/webrtc/trunk/webrtc/api/audio_mixer_api_gn/moz.build media/webrtc/trunk/webrtc/api/audio_mixer_api_gn/moz.build
108
index 9f9b4e365084..ac0c9d5f246e 100644
109
--- media/webrtc/trunk/webrtc/api/audio_mixer_api_gn/moz.build
110
+++ media/webrtc/trunk/webrtc/api/audio_mixer_api_gn/moz.build
111
@@ -65,6 +65,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
112
     DEFINES["WEBRTC_POSIX"] = True
113
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
114
 
115
+if CONFIG["OS_TARGET"] == "DragonFly":
116
+
117
+    DEFINES["USE_X11"] = "1"
118
+    DEFINES["WEBRTC_BSD"] = True
119
+    DEFINES["WEBRTC_POSIX"] = True
120
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
121
+
122
+if CONFIG["OS_TARGET"] == "FreeBSD":
123
+
124
+    DEFINES["USE_X11"] = "1"
125
+    DEFINES["WEBRTC_BSD"] = True
126
+    DEFINES["WEBRTC_POSIX"] = True
127
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
128
+
129
 if CONFIG["OS_TARGET"] == "Linux":
130
 
131
     DEFINES["USE_NSS_CERTS"] = "1"
132
@@ -73,6 +87,20 @@ if CONFIG["OS_TARGET"] == "Linux":
133
     DEFINES["WEBRTC_POSIX"] = True
134
     DEFINES["_FILE_OFFSET_BITS"] = "64"
135
 
136
+if CONFIG["OS_TARGET"] == "NetBSD":
137
+
138
+    DEFINES["USE_X11"] = "1"
139
+    DEFINES["WEBRTC_BSD"] = True
140
+    DEFINES["WEBRTC_POSIX"] = True
141
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
142
+
143
+if CONFIG["OS_TARGET"] == "OpenBSD":
144
+
145
+    DEFINES["USE_X11"] = "1"
146
+    DEFINES["WEBRTC_BSD"] = True
147
+    DEFINES["WEBRTC_POSIX"] = True
148
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
149
+
150
 if CONFIG["OS_TARGET"] == "WINNT":
151
 
152
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
153
@@ -106,6 +134,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
154
 
155
     DEFINES["_FORTIFY_SOURCE"] = "2"
156
 
157
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
158
+
159
+    DEFINES["_FORTIFY_SOURCE"] = "2"
160
+
161
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
162
+
163
+    DEFINES["_FORTIFY_SOURCE"] = "2"
164
+
165
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
166
+
167
+    DEFINES["_FORTIFY_SOURCE"] = "2"
168
+
169
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
170
+
171
+    DEFINES["_FORTIFY_SOURCE"] = "2"
172
+
173
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
174
 
175
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
176
@@ -121,6 +165,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
177
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
178
     DEFINES["WEBRTC_HAS_NEON"] = True
179
 
180
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
181
+
182
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
183
+    DEFINES["WEBRTC_HAS_NEON"] = True
184
+
185
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
186
 
187
     DEFINES["WEBRTC_ARCH_ARM64"] = True
188
@@ -132,4 +181,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
189
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
190
     DEFINES["WEBRTC_HAS_NEON"] = True
191
 
192
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
193
+
194
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
195
+    DEFINES["WEBRTC_HAS_NEON"] = True
196
+
197
 Library("audio_mixer_api_gn")
198
diff --git media/webrtc/trunk/webrtc/api/call_api_gn/moz.build media/webrtc/trunk/webrtc/api/call_api_gn/moz.build
199
index 516ef78c4911..e83c47210c06 100644
200
--- media/webrtc/trunk/webrtc/api/call_api_gn/moz.build
201
+++ media/webrtc/trunk/webrtc/api/call_api_gn/moz.build
202
@@ -65,6 +65,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
203
     DEFINES["WEBRTC_POSIX"] = True
204
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
205
 
206
+if CONFIG["OS_TARGET"] == "DragonFly":
207
+
208
+    DEFINES["USE_X11"] = "1"
209
+    DEFINES["WEBRTC_BSD"] = True
210
+    DEFINES["WEBRTC_POSIX"] = True
211
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
212
+
213
+if CONFIG["OS_TARGET"] == "FreeBSD":
214
+
215
+    DEFINES["USE_X11"] = "1"
216
+    DEFINES["WEBRTC_BSD"] = True
217
+    DEFINES["WEBRTC_POSIX"] = True
218
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
219
+
220
 if CONFIG["OS_TARGET"] == "Linux":
221
 
222
     DEFINES["USE_NSS_CERTS"] = "1"
223
@@ -73,6 +87,20 @@ if CONFIG["OS_TARGET"] == "Linux":
224
     DEFINES["WEBRTC_POSIX"] = True
225
     DEFINES["_FILE_OFFSET_BITS"] = "64"
226
 
227
+if CONFIG["OS_TARGET"] == "NetBSD":
228
+
229
+    DEFINES["USE_X11"] = "1"
230
+    DEFINES["WEBRTC_BSD"] = True
231
+    DEFINES["WEBRTC_POSIX"] = True
232
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
233
+
234
+if CONFIG["OS_TARGET"] == "OpenBSD":
235
+
236
+    DEFINES["USE_X11"] = "1"
237
+    DEFINES["WEBRTC_BSD"] = True
238
+    DEFINES["WEBRTC_POSIX"] = True
239
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
240
+
241
 if CONFIG["OS_TARGET"] == "WINNT":
242
 
243
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
244
@@ -106,6 +134,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
245
 
246
     DEFINES["_FORTIFY_SOURCE"] = "2"
247
 
248
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
249
+
250
+    DEFINES["_FORTIFY_SOURCE"] = "2"
251
+
252
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
253
+
254
+    DEFINES["_FORTIFY_SOURCE"] = "2"
255
+
256
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
257
+
258
+    DEFINES["_FORTIFY_SOURCE"] = "2"
259
+
260
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
261
+
262
+    DEFINES["_FORTIFY_SOURCE"] = "2"
263
+
264
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
265
 
266
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
267
@@ -121,6 +165,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
268
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
269
     DEFINES["WEBRTC_HAS_NEON"] = True
270
 
271
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
272
+
273
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
274
+    DEFINES["WEBRTC_HAS_NEON"] = True
275
+
276
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
277
 
278
     DEFINES["WEBRTC_ARCH_ARM64"] = True
279
@@ -132,4 +181,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
280
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
281
     DEFINES["WEBRTC_HAS_NEON"] = True
282
 
283
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
284
+
285
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
286
+    DEFINES["WEBRTC_HAS_NEON"] = True
287
+
288
 Library("call_api_gn")
289
diff --git media/webrtc/trunk/webrtc/api/transport_api_gn/moz.build media/webrtc/trunk/webrtc/api/transport_api_gn/moz.build
290
index 2c864e42a07f..4d249b2e5402 100644
291
--- media/webrtc/trunk/webrtc/api/transport_api_gn/moz.build
292
+++ media/webrtc/trunk/webrtc/api/transport_api_gn/moz.build
293
@@ -61,6 +61,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
294
     DEFINES["WEBRTC_POSIX"] = True
295
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
296
 
297
+if CONFIG["OS_TARGET"] == "DragonFly":
298
+
299
+    DEFINES["USE_X11"] = "1"
300
+    DEFINES["WEBRTC_BSD"] = True
301
+    DEFINES["WEBRTC_POSIX"] = True
302
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
303
+
304
+if CONFIG["OS_TARGET"] == "FreeBSD":
305
+
306
+    DEFINES["USE_X11"] = "1"
307
+    DEFINES["WEBRTC_BSD"] = True
308
+    DEFINES["WEBRTC_POSIX"] = True
309
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
310
+
311
 if CONFIG["OS_TARGET"] == "Linux":
312
 
313
     DEFINES["USE_NSS_CERTS"] = "1"
314
@@ -69,6 +83,20 @@ if CONFIG["OS_TARGET"] == "Linux":
315
     DEFINES["WEBRTC_POSIX"] = True
316
     DEFINES["_FILE_OFFSET_BITS"] = "64"
317
 
318
+if CONFIG["OS_TARGET"] == "NetBSD":
319
+
320
+    DEFINES["USE_X11"] = "1"
321
+    DEFINES["WEBRTC_BSD"] = True
322
+    DEFINES["WEBRTC_POSIX"] = True
323
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
324
+
325
+if CONFIG["OS_TARGET"] == "OpenBSD":
326
+
327
+    DEFINES["USE_X11"] = "1"
328
+    DEFINES["WEBRTC_BSD"] = True
329
+    DEFINES["WEBRTC_POSIX"] = True
330
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
331
+
332
 if CONFIG["OS_TARGET"] == "WINNT":
333
 
334
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
335
@@ -102,6 +130,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
336
 
337
     DEFINES["_FORTIFY_SOURCE"] = "2"
338
 
339
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
340
+
341
+    DEFINES["_FORTIFY_SOURCE"] = "2"
342
+
343
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
344
+
345
+    DEFINES["_FORTIFY_SOURCE"] = "2"
346
+
347
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
348
+
349
+    DEFINES["_FORTIFY_SOURCE"] = "2"
350
+
351
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
352
+
353
+    DEFINES["_FORTIFY_SOURCE"] = "2"
354
+
355
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
356
 
357
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
358
@@ -117,6 +161,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
359
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
360
     DEFINES["WEBRTC_HAS_NEON"] = True
361
 
362
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
363
+
364
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
365
+    DEFINES["WEBRTC_HAS_NEON"] = True
366
+
367
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
368
 
369
     DEFINES["WEBRTC_ARCH_ARM64"] = True
370
@@ -128,4 +177,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
371
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
372
     DEFINES["WEBRTC_HAS_NEON"] = True
373
 
374
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
375
+
376
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
377
+    DEFINES["WEBRTC_HAS_NEON"] = True
378
+
379
 Library("transport_api_gn")
380
diff --git media/webrtc/trunk/webrtc/api/video_frame_api_gn/moz.build media/webrtc/trunk/webrtc/api/video_frame_api_gn/moz.build
381
index 29bea6b3d128..81b605fa0d37 100644
382
--- media/webrtc/trunk/webrtc/api/video_frame_api_gn/moz.build
383
+++ media/webrtc/trunk/webrtc/api/video_frame_api_gn/moz.build
384
@@ -71,6 +71,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
385
     DEFINES["WEBRTC_POSIX"] = True
386
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
387
 
388
+if CONFIG["OS_TARGET"] == "DragonFly":
389
+
390
+    DEFINES["USE_X11"] = "1"
391
+    DEFINES["WEBRTC_BSD"] = True
392
+    DEFINES["WEBRTC_POSIX"] = True
393
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
394
+
395
+if CONFIG["OS_TARGET"] == "FreeBSD":
396
+
397
+    DEFINES["USE_X11"] = "1"
398
+    DEFINES["WEBRTC_BSD"] = True
399
+    DEFINES["WEBRTC_POSIX"] = True
400
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
401
+
402
 if CONFIG["OS_TARGET"] == "Linux":
403
 
404
     DEFINES["USE_NSS_CERTS"] = "1"
405
@@ -83,6 +97,20 @@ if CONFIG["OS_TARGET"] == "Linux":
406
         "rt"
407
     ]
408
 
409
+if CONFIG["OS_TARGET"] == "NetBSD":
410
+
411
+    DEFINES["USE_X11"] = "1"
412
+    DEFINES["WEBRTC_BSD"] = True
413
+    DEFINES["WEBRTC_POSIX"] = True
414
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
415
+
416
+if CONFIG["OS_TARGET"] == "OpenBSD":
417
+
418
+    DEFINES["USE_X11"] = "1"
419
+    DEFINES["WEBRTC_BSD"] = True
420
+    DEFINES["WEBRTC_POSIX"] = True
421
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
422
+
423
 if CONFIG["OS_TARGET"] == "WINNT":
424
 
425
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
426
@@ -120,6 +148,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
427
 
428
     DEFINES["_FORTIFY_SOURCE"] = "2"
429
 
430
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
431
+
432
+    DEFINES["_FORTIFY_SOURCE"] = "2"
433
+
434
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
435
+
436
+    DEFINES["_FORTIFY_SOURCE"] = "2"
437
+
438
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
439
+
440
+    DEFINES["_FORTIFY_SOURCE"] = "2"
441
+
442
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
443
+
444
+    DEFINES["_FORTIFY_SOURCE"] = "2"
445
+
446
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
447
 
448
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
449
@@ -145,6 +189,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
450
         "-msse2"
451
     ]
452
 
453
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
454
+
455
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
456
+    DEFINES["WEBRTC_HAS_NEON"] = True
457
+
458
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
459
+
460
+    CXXFLAGS += [
461
+        "-msse2"
462
+    ]
463
+
464
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
465
+
466
+    CXXFLAGS += [
467
+        "-msse2"
468
+    ]
469
+
470
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
471
+
472
+    CXXFLAGS += [
473
+        "-msse2"
474
+    ]
475
+
476
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
477
 
478
     DEFINES["WEBRTC_ARCH_ARM64"] = True
479
@@ -166,4 +233,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
480
         "-msse2"
481
     ]
482
 
483
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
484
+
485
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
486
+    DEFINES["WEBRTC_HAS_NEON"] = True
487
+
488
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
489
+
490
+    CXXFLAGS += [
491
+        "-msse2"
492
+    ]
493
+
494
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
495
+
496
+    CXXFLAGS += [
497
+        "-msse2"
498
+    ]
499
+
500
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
501
+
502
+    CXXFLAGS += [
503
+        "-msse2"
504
+    ]
505
+
506
 Library("video_frame_api_gn")
507
diff --git media/webrtc/trunk/webrtc/audio/audio_gn/moz.build media/webrtc/trunk/webrtc/audio/audio_gn/moz.build
508
index 31bfe517ce43..c43284f7e032 100644
509
--- media/webrtc/trunk/webrtc/audio/audio_gn/moz.build
510
+++ media/webrtc/trunk/webrtc/audio/audio_gn/moz.build
511
@@ -90,6 +90,22 @@ if CONFIG["OS_TARGET"] == "Darwin":
512
         "-framework CoreVideo"
513
     ]
514
 
515
+if CONFIG["OS_TARGET"] == "DragonFly":
516
+
517
+    DEFINES["USE_X11"] = "1"
518
+    DEFINES["WEBRTC_BSD"] = True
519
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
520
+    DEFINES["WEBRTC_POSIX"] = True
521
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
522
+
523
+if CONFIG["OS_TARGET"] == "FreeBSD":
524
+
525
+    DEFINES["USE_X11"] = "1"
526
+    DEFINES["WEBRTC_BSD"] = True
527
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
528
+    DEFINES["WEBRTC_POSIX"] = True
529
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
530
+
531
 if CONFIG["OS_TARGET"] == "Linux":
532
 
533
     DEFINES["USE_NSS_CERTS"] = "1"
534
@@ -105,6 +121,22 @@ if CONFIG["OS_TARGET"] == "Linux":
535
         "rt"
536
     ]
537
 
538
+if CONFIG["OS_TARGET"] == "NetBSD":
539
+
540
+    DEFINES["USE_X11"] = "1"
541
+    DEFINES["WEBRTC_BSD"] = True
542
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
543
+    DEFINES["WEBRTC_POSIX"] = True
544
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
545
+
546
+if CONFIG["OS_TARGET"] == "OpenBSD":
547
+
548
+    DEFINES["USE_X11"] = "1"
549
+    DEFINES["WEBRTC_BSD"] = True
550
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
551
+    DEFINES["WEBRTC_POSIX"] = True
552
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
553
+
554
 if CONFIG["OS_TARGET"] == "WINNT":
555
 
556
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
557
@@ -146,6 +178,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
558
 
559
     DEFINES["_FORTIFY_SOURCE"] = "2"
560
 
561
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
562
+
563
+    DEFINES["_FORTIFY_SOURCE"] = "2"
564
+
565
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
566
+
567
+    DEFINES["_FORTIFY_SOURCE"] = "2"
568
+
569
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
570
+
571
+    DEFINES["_FORTIFY_SOURCE"] = "2"
572
+
573
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
574
+
575
+    DEFINES["_FORTIFY_SOURCE"] = "2"
576
+
577
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
578
 
579
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
580
@@ -171,6 +219,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
581
         "-msse2"
582
     ]
583
 
584
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
585
+
586
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
587
+    DEFINES["WEBRTC_HAS_NEON"] = True
588
+
589
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
590
+
591
+    CXXFLAGS += [
592
+        "-msse2"
593
+    ]
594
+
595
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
596
+
597
+    CXXFLAGS += [
598
+        "-msse2"
599
+    ]
600
+
601
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
602
+
603
+    CXXFLAGS += [
604
+        "-msse2"
605
+    ]
606
+
607
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
608
 
609
     DEFINES["WEBRTC_ARCH_ARM64"] = True
610
@@ -192,4 +263,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
611
         "-msse2"
612
     ]
613
 
614
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
615
+
616
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
617
+    DEFINES["WEBRTC_HAS_NEON"] = True
618
+
619
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
620
+
621
+    CXXFLAGS += [
622
+        "-msse2"
623
+    ]
624
+
625
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
626
+
627
+    CXXFLAGS += [
628
+        "-msse2"
629
+    ]
630
+
631
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
632
+
633
+    CXXFLAGS += [
634
+        "-msse2"
635
+    ]
636
+
637
 Library("audio_gn")
638
diff --git media/webrtc/trunk/webrtc/audio/utility/audio_frame_operations_gn/moz.build media/webrtc/trunk/webrtc/audio/utility/audio_frame_operations_gn/moz.build
639
index 9fd694319308..26259d834b26 100644
640
--- media/webrtc/trunk/webrtc/audio/utility/audio_frame_operations_gn/moz.build
641
+++ media/webrtc/trunk/webrtc/audio/utility/audio_frame_operations_gn/moz.build
642
@@ -69,6 +69,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
643
     DEFINES["WEBRTC_POSIX"] = True
644
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
645
 
646
+if CONFIG["OS_TARGET"] == "DragonFly":
647
+
648
+    DEFINES["USE_X11"] = "1"
649
+    DEFINES["WEBRTC_BSD"] = True
650
+    DEFINES["WEBRTC_POSIX"] = True
651
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
652
+
653
+if CONFIG["OS_TARGET"] == "FreeBSD":
654
+
655
+    DEFINES["USE_X11"] = "1"
656
+    DEFINES["WEBRTC_BSD"] = True
657
+    DEFINES["WEBRTC_POSIX"] = True
658
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
659
+
660
 if CONFIG["OS_TARGET"] == "Linux":
661
 
662
     DEFINES["USE_NSS_CERTS"] = "1"
663
@@ -77,6 +91,20 @@ if CONFIG["OS_TARGET"] == "Linux":
664
     DEFINES["WEBRTC_POSIX"] = True
665
     DEFINES["_FILE_OFFSET_BITS"] = "64"
666
 
667
+if CONFIG["OS_TARGET"] == "NetBSD":
668
+
669
+    DEFINES["USE_X11"] = "1"
670
+    DEFINES["WEBRTC_BSD"] = True
671
+    DEFINES["WEBRTC_POSIX"] = True
672
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
673
+
674
+if CONFIG["OS_TARGET"] == "OpenBSD":
675
+
676
+    DEFINES["USE_X11"] = "1"
677
+    DEFINES["WEBRTC_BSD"] = True
678
+    DEFINES["WEBRTC_POSIX"] = True
679
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
680
+
681
 if CONFIG["OS_TARGET"] == "WINNT":
682
 
683
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
684
@@ -110,6 +138,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
685
 
686
     DEFINES["_FORTIFY_SOURCE"] = "2"
687
 
688
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
689
+
690
+    DEFINES["_FORTIFY_SOURCE"] = "2"
691
+
692
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
693
+
694
+    DEFINES["_FORTIFY_SOURCE"] = "2"
695
+
696
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
697
+
698
+    DEFINES["_FORTIFY_SOURCE"] = "2"
699
+
700
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
701
+
702
+    DEFINES["_FORTIFY_SOURCE"] = "2"
703
+
704
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
705
 
706
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
707
@@ -135,6 +179,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
708
         "-msse2"
709
     ]
710
 
711
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
712
+
713
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
714
+    DEFINES["WEBRTC_HAS_NEON"] = True
715
+
716
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
717
+
718
+    CXXFLAGS += [
719
+        "-msse2"
720
+    ]
721
+
722
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
723
+
724
+    CXXFLAGS += [
725
+        "-msse2"
726
+    ]
727
+
728
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
729
+
730
+    CXXFLAGS += [
731
+        "-msse2"
732
+    ]
733
+
734
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
735
 
736
     DEFINES["WEBRTC_ARCH_ARM64"] = True
737
@@ -156,4 +223,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
738
         "-msse2"
739
     ]
740
 
741
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
742
+
743
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
744
+    DEFINES["WEBRTC_HAS_NEON"] = True
745
+
746
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
747
+
748
+    CXXFLAGS += [
749
+        "-msse2"
750
+    ]
751
+
752
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
753
+
754
+    CXXFLAGS += [
755
+        "-msse2"
756
+    ]
757
+
758
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
759
+
760
+    CXXFLAGS += [
761
+        "-msse2"
762
+    ]
763
+
764
 Library("audio_frame_operations_gn")
765
diff --git media/webrtc/trunk/webrtc/base/gtest_prod_gn/moz.build media/webrtc/trunk/webrtc/base/gtest_prod_gn/moz.build
766
index 78e13fc728b4..54277e5cf0a2 100644
767
--- media/webrtc/trunk/webrtc/base/gtest_prod_gn/moz.build
768
+++ media/webrtc/trunk/webrtc/base/gtest_prod_gn/moz.build
769
@@ -61,6 +61,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
770
     DEFINES["WEBRTC_POSIX"] = True
771
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
772
 
773
+if CONFIG["OS_TARGET"] == "DragonFly":
774
+
775
+    DEFINES["USE_X11"] = "1"
776
+    DEFINES["WEBRTC_BSD"] = True
777
+    DEFINES["WEBRTC_POSIX"] = True
778
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
779
+
780
+if CONFIG["OS_TARGET"] == "FreeBSD":
781
+
782
+    DEFINES["USE_X11"] = "1"
783
+    DEFINES["WEBRTC_BSD"] = True
784
+    DEFINES["WEBRTC_POSIX"] = True
785
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
786
+
787
 if CONFIG["OS_TARGET"] == "Linux":
788
 
789
     DEFINES["USE_NSS_CERTS"] = "1"
790
@@ -69,6 +83,20 @@ if CONFIG["OS_TARGET"] == "Linux":
791
     DEFINES["WEBRTC_POSIX"] = True
792
     DEFINES["_FILE_OFFSET_BITS"] = "64"
793
 
794
+if CONFIG["OS_TARGET"] == "NetBSD":
795
+
796
+    DEFINES["USE_X11"] = "1"
797
+    DEFINES["WEBRTC_BSD"] = True
798
+    DEFINES["WEBRTC_POSIX"] = True
799
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
800
+
801
+if CONFIG["OS_TARGET"] == "OpenBSD":
802
+
803
+    DEFINES["USE_X11"] = "1"
804
+    DEFINES["WEBRTC_BSD"] = True
805
+    DEFINES["WEBRTC_POSIX"] = True
806
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
807
+
808
 if CONFIG["OS_TARGET"] == "WINNT":
809
 
810
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
811
@@ -102,6 +130,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
812
 
813
     DEFINES["_FORTIFY_SOURCE"] = "2"
814
 
815
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
816
+
817
+    DEFINES["_FORTIFY_SOURCE"] = "2"
818
+
819
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
820
+
821
+    DEFINES["_FORTIFY_SOURCE"] = "2"
822
+
823
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
824
+
825
+    DEFINES["_FORTIFY_SOURCE"] = "2"
826
+
827
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
828
+
829
+    DEFINES["_FORTIFY_SOURCE"] = "2"
830
+
831
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
832
 
833
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
834
@@ -117,6 +161,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
835
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
836
     DEFINES["WEBRTC_HAS_NEON"] = True
837
 
838
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
839
+
840
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
841
+    DEFINES["WEBRTC_HAS_NEON"] = True
842
+
843
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
844
 
845
     DEFINES["WEBRTC_ARCH_ARM64"] = True
846
@@ -128,4 +177,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
847
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
848
     DEFINES["WEBRTC_HAS_NEON"] = True
849
 
850
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
851
+
852
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
853
+    DEFINES["WEBRTC_HAS_NEON"] = True
854
+
855
 Library("gtest_prod_gn")
856
diff --git media/webrtc/trunk/webrtc/base/rtc_base_approved_gn/moz.build media/webrtc/trunk/webrtc/base/rtc_base_approved_gn/moz.build
857
index 9d8984d7314e..63f7424ead1b 100644
858
--- media/webrtc/trunk/webrtc/base/rtc_base_approved_gn/moz.build
859
+++ media/webrtc/trunk/webrtc/base/rtc_base_approved_gn/moz.build
860
@@ -107,6 +107,28 @@ if CONFIG["OS_TARGET"] == "Darwin":
861
         "/media/webrtc/trunk/webrtc/base/macutils.cc"
862
     ]
863
 
864
+if CONFIG["OS_TARGET"] == "DragonFly":
865
+
866
+    DEFINES["USE_X11"] = "1"
867
+    DEFINES["WEBRTC_BSD"] = True
868
+    DEFINES["WEBRTC_POSIX"] = True
869
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
870
+
871
+    UNIFIED_SOURCES += [
872
+        "/media/webrtc/trunk/webrtc/base/file_posix.cc"
873
+    ]
874
+
875
+if CONFIG["OS_TARGET"] == "FreeBSD":
876
+
877
+    DEFINES["USE_X11"] = "1"
878
+    DEFINES["WEBRTC_BSD"] = True
879
+    DEFINES["WEBRTC_POSIX"] = True
880
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
881
+
882
+    UNIFIED_SOURCES += [
883
+        "/media/webrtc/trunk/webrtc/base/file_posix.cc"
884
+    ]
885
+
886
 if CONFIG["OS_TARGET"] == "Linux":
887
 
888
     DEFINES["USE_NSS_CERTS"] = "1"
889
@@ -119,6 +141,28 @@ if CONFIG["OS_TARGET"] == "Linux":
890
         "/media/webrtc/trunk/webrtc/base/file_posix.cc"
891
     ]
892
 
893
+if CONFIG["OS_TARGET"] == "NetBSD":
894
+
895
+    DEFINES["USE_X11"] = "1"
896
+    DEFINES["WEBRTC_BSD"] = True
897
+    DEFINES["WEBRTC_POSIX"] = True
898
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
899
+
900
+    UNIFIED_SOURCES += [
901
+        "/media/webrtc/trunk/webrtc/base/file_posix.cc"
902
+    ]
903
+
904
+if CONFIG["OS_TARGET"] == "OpenBSD":
905
+
906
+    DEFINES["USE_X11"] = "1"
907
+    DEFINES["WEBRTC_BSD"] = True
908
+    DEFINES["WEBRTC_POSIX"] = True
909
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
910
+
911
+    UNIFIED_SOURCES += [
912
+        "/media/webrtc/trunk/webrtc/base/file_posix.cc"
913
+    ]
914
+
915
 if CONFIG["OS_TARGET"] == "WINNT":
916
 
917
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
918
@@ -157,6 +201,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
919
 
920
     DEFINES["_FORTIFY_SOURCE"] = "2"
921
 
922
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
923
+
924
+    DEFINES["_FORTIFY_SOURCE"] = "2"
925
+
926
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
927
+
928
+    DEFINES["_FORTIFY_SOURCE"] = "2"
929
+
930
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
931
+
932
+    DEFINES["_FORTIFY_SOURCE"] = "2"
933
+
934
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
935
+
936
+    DEFINES["_FORTIFY_SOURCE"] = "2"
937
+
938
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
939
 
940
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
941
@@ -182,6 +242,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
942
         "-msse2"
943
     ]
944
 
945
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
946
+
947
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
948
+    DEFINES["WEBRTC_HAS_NEON"] = True
949
+
950
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
951
+
952
+    CXXFLAGS += [
953
+        "-msse2"
954
+    ]
955
+
956
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
957
+
958
+    CXXFLAGS += [
959
+        "-msse2"
960
+    ]
961
+
962
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
963
+
964
+    CXXFLAGS += [
965
+        "-msse2"
966
+    ]
967
+
968
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
969
 
970
     DEFINES["WEBRTC_ARCH_ARM64"] = True
971
@@ -203,4 +286,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
972
         "-msse2"
973
     ]
974
 
975
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
976
+
977
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
978
+    DEFINES["WEBRTC_HAS_NEON"] = True
979
+
980
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
981
+
982
+    CXXFLAGS += [
983
+        "-msse2"
984
+    ]
985
+
986
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
987
+
988
+    CXXFLAGS += [
989
+        "-msse2"
990
+    ]
991
+
992
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
993
+
994
+    CXXFLAGS += [
995
+        "-msse2"
996
+    ]
997
+
998
 Library("rtc_base_approved_gn")
999
diff --git media/webrtc/trunk/webrtc/base/rtc_numerics_gn/moz.build media/webrtc/trunk/webrtc/base/rtc_numerics_gn/moz.build
1000
index 53f9ece07e2d..d4cf99fb0ca5 100644
1001
--- media/webrtc/trunk/webrtc/base/rtc_numerics_gn/moz.build
1002
+++ media/webrtc/trunk/webrtc/base/rtc_numerics_gn/moz.build
1003
@@ -69,6 +69,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
1004
     DEFINES["WEBRTC_POSIX"] = True
1005
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
1006
 
1007
+if CONFIG["OS_TARGET"] == "DragonFly":
1008
+
1009
+    DEFINES["USE_X11"] = "1"
1010
+    DEFINES["WEBRTC_BSD"] = True
1011
+    DEFINES["WEBRTC_POSIX"] = True
1012
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1013
+
1014
+if CONFIG["OS_TARGET"] == "FreeBSD":
1015
+
1016
+    DEFINES["USE_X11"] = "1"
1017
+    DEFINES["WEBRTC_BSD"] = True
1018
+    DEFINES["WEBRTC_POSIX"] = True
1019
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1020
+
1021
 if CONFIG["OS_TARGET"] == "Linux":
1022
 
1023
     DEFINES["USE_NSS_CERTS"] = "1"
1024
@@ -77,6 +91,20 @@ if CONFIG["OS_TARGET"] == "Linux":
1025
     DEFINES["WEBRTC_POSIX"] = True
1026
     DEFINES["_FILE_OFFSET_BITS"] = "64"
1027
 
1028
+if CONFIG["OS_TARGET"] == "NetBSD":
1029
+
1030
+    DEFINES["USE_X11"] = "1"
1031
+    DEFINES["WEBRTC_BSD"] = True
1032
+    DEFINES["WEBRTC_POSIX"] = True
1033
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1034
+
1035
+if CONFIG["OS_TARGET"] == "OpenBSD":
1036
+
1037
+    DEFINES["USE_X11"] = "1"
1038
+    DEFINES["WEBRTC_BSD"] = True
1039
+    DEFINES["WEBRTC_POSIX"] = True
1040
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1041
+
1042
 if CONFIG["OS_TARGET"] == "WINNT":
1043
 
1044
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1045
@@ -110,6 +138,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1046
 
1047
     DEFINES["_FORTIFY_SOURCE"] = "2"
1048
 
1049
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1050
+
1051
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1052
+
1053
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1054
+
1055
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1056
+
1057
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1058
+
1059
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1060
+
1061
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1062
+
1063
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1064
+
1065
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1066
 
1067
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1068
@@ -135,6 +179,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1069
         "-msse2"
1070
     ]
1071
 
1072
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1073
+
1074
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1075
+    DEFINES["WEBRTC_HAS_NEON"] = True
1076
+
1077
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1078
+
1079
+    CXXFLAGS += [
1080
+        "-msse2"
1081
+    ]
1082
+
1083
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1084
+
1085
+    CXXFLAGS += [
1086
+        "-msse2"
1087
+    ]
1088
+
1089
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1090
+
1091
+    CXXFLAGS += [
1092
+        "-msse2"
1093
+    ]
1094
+
1095
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1096
 
1097
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1098
@@ -156,4 +223,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1099
         "-msse2"
1100
     ]
1101
 
1102
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1103
+
1104
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1105
+    DEFINES["WEBRTC_HAS_NEON"] = True
1106
+
1107
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1108
+
1109
+    CXXFLAGS += [
1110
+        "-msse2"
1111
+    ]
1112
+
1113
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1114
+
1115
+    CXXFLAGS += [
1116
+        "-msse2"
1117
+    ]
1118
+
1119
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1120
+
1121
+    CXXFLAGS += [
1122
+        "-msse2"
1123
+    ]
1124
+
1125
 Library("rtc_numerics_gn")
1126
diff --git media/webrtc/trunk/webrtc/base/rtc_task_queue_gn/moz.build media/webrtc/trunk/webrtc/base/rtc_task_queue_gn/moz.build
1127
index 3d0babc48c28..11cd49ed3301 100644
1128
--- media/webrtc/trunk/webrtc/base/rtc_task_queue_gn/moz.build
1129
+++ media/webrtc/trunk/webrtc/base/rtc_task_queue_gn/moz.build
1130
@@ -86,6 +86,42 @@ if CONFIG["OS_TARGET"] == "Darwin":
1131
         "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1132
     ]
1133
 
1134
+if CONFIG["OS_TARGET"] == "DragonFly":
1135
+
1136
+    DEFINES["USE_X11"] = "1"
1137
+    DEFINES["WEBRTC_BSD"] = True
1138
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1139
+    DEFINES["WEBRTC_POSIX"] = True
1140
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1141
+
1142
+    LOCAL_INCLUDES += [
1143
+        "/ipc/chromium/src/third_party/libevent/include/",
1144
+        "/ipc/chromium/src/third_party/libevent/linux/"
1145
+    ]
1146
+
1147
+    UNIFIED_SOURCES += [
1148
+        "/media/webrtc/trunk/webrtc/base/task_queue_libevent.cc",
1149
+        "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1150
+    ]
1151
+
1152
+if CONFIG["OS_TARGET"] == "FreeBSD":
1153
+
1154
+    DEFINES["USE_X11"] = "1"
1155
+    DEFINES["WEBRTC_BSD"] = True
1156
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1157
+    DEFINES["WEBRTC_POSIX"] = True
1158
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1159
+
1160
+    LOCAL_INCLUDES += [
1161
+        "/ipc/chromium/src/third_party/libevent/include/",
1162
+        "/ipc/chromium/src/third_party/libevent/linux/"
1163
+    ]
1164
+
1165
+    UNIFIED_SOURCES += [
1166
+        "/media/webrtc/trunk/webrtc/base/task_queue_libevent.cc",
1167
+        "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1168
+    ]
1169
+
1170
 if CONFIG["OS_TARGET"] == "Linux":
1171
 
1172
     DEFINES["USE_NSS_CERTS"] = "1"
1173
@@ -105,6 +141,42 @@ if CONFIG["OS_TARGET"] == "Linux":
1174
         "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1175
     ]
1176
 
1177
+if CONFIG["OS_TARGET"] == "NetBSD":
1178
+
1179
+    DEFINES["USE_X11"] = "1"
1180
+    DEFINES["WEBRTC_BSD"] = True
1181
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1182
+    DEFINES["WEBRTC_POSIX"] = True
1183
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1184
+
1185
+    LOCAL_INCLUDES += [
1186
+        "/ipc/chromium/src/third_party/libevent/include/",
1187
+        "/ipc/chromium/src/third_party/libevent/linux/"
1188
+    ]
1189
+
1190
+    UNIFIED_SOURCES += [
1191
+        "/media/webrtc/trunk/webrtc/base/task_queue_libevent.cc",
1192
+        "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1193
+    ]
1194
+
1195
+if CONFIG["OS_TARGET"] == "OpenBSD":
1196
+
1197
+    DEFINES["USE_X11"] = "1"
1198
+    DEFINES["WEBRTC_BSD"] = True
1199
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1200
+    DEFINES["WEBRTC_POSIX"] = True
1201
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1202
+
1203
+    LOCAL_INCLUDES += [
1204
+        "/ipc/chromium/src/third_party/libevent/include/",
1205
+        "/ipc/chromium/src/third_party/libevent/linux/"
1206
+    ]
1207
+
1208
+    UNIFIED_SOURCES += [
1209
+        "/media/webrtc/trunk/webrtc/base/task_queue_libevent.cc",
1210
+        "/media/webrtc/trunk/webrtc/base/task_queue_posix.cc"
1211
+    ]
1212
+
1213
 if CONFIG["OS_TARGET"] == "WINNT":
1214
 
1215
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1216
@@ -142,6 +214,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1217
 
1218
     DEFINES["_FORTIFY_SOURCE"] = "2"
1219
 
1220
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1221
+
1222
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1223
+
1224
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1225
+
1226
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1227
+
1228
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1229
+
1230
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1231
+
1232
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1233
+
1234
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1235
+
1236
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1237
 
1238
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1239
@@ -167,6 +255,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1240
         "-msse2"
1241
     ]
1242
 
1243
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1244
+
1245
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1246
+    DEFINES["WEBRTC_HAS_NEON"] = True
1247
+
1248
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1249
+
1250
+    CXXFLAGS += [
1251
+        "-msse2"
1252
+    ]
1253
+
1254
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1255
+
1256
+    CXXFLAGS += [
1257
+        "-msse2"
1258
+    ]
1259
+
1260
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1261
+
1262
+    CXXFLAGS += [
1263
+        "-msse2"
1264
+    ]
1265
+
1266
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1267
 
1268
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1269
@@ -188,4 +299,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1270
         "-msse2"
1271
     ]
1272
 
1273
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1274
+
1275
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1276
+    DEFINES["WEBRTC_HAS_NEON"] = True
1277
+
1278
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1279
+
1280
+    CXXFLAGS += [
1281
+        "-msse2"
1282
+    ]
1283
+
1284
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1285
+
1286
+    CXXFLAGS += [
1287
+        "-msse2"
1288
+    ]
1289
+
1290
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1291
+
1292
+    CXXFLAGS += [
1293
+        "-msse2"
1294
+    ]
1295
+
1296
 Library("rtc_task_queue_gn")
1297
diff --git media/webrtc/trunk/webrtc/call/call_gn/moz.build media/webrtc/trunk/webrtc/call/call_gn/moz.build
1298
index 3f987c322ffd..303d67aa3930 100644
1299
--- media/webrtc/trunk/webrtc/call/call_gn/moz.build
1300
+++ media/webrtc/trunk/webrtc/call/call_gn/moz.build
1301
@@ -81,6 +81,22 @@ if CONFIG["OS_TARGET"] == "Darwin":
1302
         "-framework CoreVideo"
1303
     ]
1304
 
1305
+if CONFIG["OS_TARGET"] == "DragonFly":
1306
+
1307
+    DEFINES["USE_X11"] = "1"
1308
+    DEFINES["WEBRTC_BSD"] = True
1309
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1310
+    DEFINES["WEBRTC_POSIX"] = True
1311
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1312
+
1313
+if CONFIG["OS_TARGET"] == "FreeBSD":
1314
+
1315
+    DEFINES["USE_X11"] = "1"
1316
+    DEFINES["WEBRTC_BSD"] = True
1317
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1318
+    DEFINES["WEBRTC_POSIX"] = True
1319
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1320
+
1321
 if CONFIG["OS_TARGET"] == "Linux":
1322
 
1323
     DEFINES["USE_NSS_CERTS"] = "1"
1324
@@ -96,6 +112,22 @@ if CONFIG["OS_TARGET"] == "Linux":
1325
         "rt"
1326
     ]
1327
 
1328
+if CONFIG["OS_TARGET"] == "NetBSD":
1329
+
1330
+    DEFINES["USE_X11"] = "1"
1331
+    DEFINES["WEBRTC_BSD"] = True
1332
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1333
+    DEFINES["WEBRTC_POSIX"] = True
1334
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1335
+
1336
+if CONFIG["OS_TARGET"] == "OpenBSD":
1337
+
1338
+    DEFINES["USE_X11"] = "1"
1339
+    DEFINES["WEBRTC_BSD"] = True
1340
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
1341
+    DEFINES["WEBRTC_POSIX"] = True
1342
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1343
+
1344
 if CONFIG["OS_TARGET"] == "WINNT":
1345
 
1346
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1347
@@ -137,6 +169,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1348
 
1349
     DEFINES["_FORTIFY_SOURCE"] = "2"
1350
 
1351
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1352
+
1353
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1354
+
1355
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1356
+
1357
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1358
+
1359
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1360
+
1361
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1362
+
1363
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1364
+
1365
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1366
+
1367
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1368
 
1369
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1370
@@ -162,6 +210,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1371
         "-msse2"
1372
     ]
1373
 
1374
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1375
+
1376
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1377
+    DEFINES["WEBRTC_HAS_NEON"] = True
1378
+
1379
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1380
+
1381
+    CXXFLAGS += [
1382
+        "-msse2"
1383
+    ]
1384
+
1385
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1386
+
1387
+    CXXFLAGS += [
1388
+        "-msse2"
1389
+    ]
1390
+
1391
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1392
+
1393
+    CXXFLAGS += [
1394
+        "-msse2"
1395
+    ]
1396
+
1397
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1398
 
1399
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1400
@@ -183,4 +254,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1401
         "-msse2"
1402
     ]
1403
 
1404
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1405
+
1406
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1407
+    DEFINES["WEBRTC_HAS_NEON"] = True
1408
+
1409
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1410
+
1411
+    CXXFLAGS += [
1412
+        "-msse2"
1413
+    ]
1414
+
1415
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1416
+
1417
+    CXXFLAGS += [
1418
+        "-msse2"
1419
+    ]
1420
+
1421
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1422
+
1423
+    CXXFLAGS += [
1424
+        "-msse2"
1425
+    ]
1426
+
1427
 Library("call_gn")
1428
diff --git media/webrtc/trunk/webrtc/call/call_interfaces_gn/moz.build media/webrtc/trunk/webrtc/call/call_interfaces_gn/moz.build
1429
index 9d353c04625b..7f28e1cd0dee 100644
1430
--- media/webrtc/trunk/webrtc/call/call_interfaces_gn/moz.build
1431
+++ media/webrtc/trunk/webrtc/call/call_interfaces_gn/moz.build
1432
@@ -65,6 +65,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
1433
     DEFINES["WEBRTC_POSIX"] = True
1434
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
1435
 
1436
+if CONFIG["OS_TARGET"] == "DragonFly":
1437
+
1438
+    DEFINES["USE_X11"] = "1"
1439
+    DEFINES["WEBRTC_BSD"] = True
1440
+    DEFINES["WEBRTC_POSIX"] = True
1441
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1442
+
1443
+if CONFIG["OS_TARGET"] == "FreeBSD":
1444
+
1445
+    DEFINES["USE_X11"] = "1"
1446
+    DEFINES["WEBRTC_BSD"] = True
1447
+    DEFINES["WEBRTC_POSIX"] = True
1448
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1449
+
1450
 if CONFIG["OS_TARGET"] == "Linux":
1451
 
1452
     DEFINES["USE_NSS_CERTS"] = "1"
1453
@@ -73,6 +87,20 @@ if CONFIG["OS_TARGET"] == "Linux":
1454
     DEFINES["WEBRTC_POSIX"] = True
1455
     DEFINES["_FILE_OFFSET_BITS"] = "64"
1456
 
1457
+if CONFIG["OS_TARGET"] == "NetBSD":
1458
+
1459
+    DEFINES["USE_X11"] = "1"
1460
+    DEFINES["WEBRTC_BSD"] = True
1461
+    DEFINES["WEBRTC_POSIX"] = True
1462
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1463
+
1464
+if CONFIG["OS_TARGET"] == "OpenBSD":
1465
+
1466
+    DEFINES["USE_X11"] = "1"
1467
+    DEFINES["WEBRTC_BSD"] = True
1468
+    DEFINES["WEBRTC_POSIX"] = True
1469
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1470
+
1471
 if CONFIG["OS_TARGET"] == "WINNT":
1472
 
1473
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1474
@@ -106,6 +134,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1475
 
1476
     DEFINES["_FORTIFY_SOURCE"] = "2"
1477
 
1478
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1479
+
1480
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1481
+
1482
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1483
+
1484
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1485
+
1486
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1487
+
1488
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1489
+
1490
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1491
+
1492
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1493
+
1494
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1495
 
1496
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1497
@@ -131,6 +175,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1498
         "-msse2"
1499
     ]
1500
 
1501
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1502
+
1503
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1504
+    DEFINES["WEBRTC_HAS_NEON"] = True
1505
+
1506
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1507
+
1508
+    CXXFLAGS += [
1509
+        "-msse2"
1510
+    ]
1511
+
1512
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1513
+
1514
+    CXXFLAGS += [
1515
+        "-msse2"
1516
+    ]
1517
+
1518
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1519
+
1520
+    CXXFLAGS += [
1521
+        "-msse2"
1522
+    ]
1523
+
1524
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1525
 
1526
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1527
@@ -152,4 +219,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1528
         "-msse2"
1529
     ]
1530
 
1531
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1532
+
1533
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1534
+    DEFINES["WEBRTC_HAS_NEON"] = True
1535
+
1536
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1537
+
1538
+    CXXFLAGS += [
1539
+        "-msse2"
1540
+    ]
1541
+
1542
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1543
+
1544
+    CXXFLAGS += [
1545
+        "-msse2"
1546
+    ]
1547
+
1548
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1549
+
1550
+    CXXFLAGS += [
1551
+        "-msse2"
1552
+    ]
1553
+
1554
 Library("call_interfaces_gn")
1555
diff --git media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build
1556
index fb9ac6ffa332..5d4f59b94099 100644
1557
--- media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build
1558
+++ media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build
1559
@@ -114,6 +114,32 @@ if CONFIG["OS_TARGET"] == "Darwin":
1560
         "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1561
     ]
1562
 
1563
+if CONFIG["OS_TARGET"] == "DragonFly":
1564
+
1565
+    DEFINES["USE_X11"] = "1"
1566
+    DEFINES["WEBRTC_BSD"] = True
1567
+    DEFINES["WEBRTC_POSIX"] = True
1568
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1569
+
1570
+    UNIFIED_SOURCES += [
1571
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
1572
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
1573
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1574
+    ]
1575
+
1576
+if CONFIG["OS_TARGET"] == "FreeBSD":
1577
+
1578
+    DEFINES["USE_X11"] = "1"
1579
+    DEFINES["WEBRTC_BSD"] = True
1580
+    DEFINES["WEBRTC_POSIX"] = True
1581
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1582
+
1583
+    UNIFIED_SOURCES += [
1584
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
1585
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
1586
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1587
+    ]
1588
+
1589
 if CONFIG["OS_TARGET"] == "Linux":
1590
 
1591
     DEFINES["USE_NSS_CERTS"] = "1"
1592
@@ -128,6 +154,32 @@ if CONFIG["OS_TARGET"] == "Linux":
1593
         "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1594
     ]
1595
 
1596
+if CONFIG["OS_TARGET"] == "NetBSD":
1597
+
1598
+    DEFINES["USE_X11"] = "1"
1599
+    DEFINES["WEBRTC_BSD"] = True
1600
+    DEFINES["WEBRTC_POSIX"] = True
1601
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1602
+
1603
+    UNIFIED_SOURCES += [
1604
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
1605
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
1606
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1607
+    ]
1608
+
1609
+if CONFIG["OS_TARGET"] == "OpenBSD":
1610
+
1611
+    DEFINES["USE_X11"] = "1"
1612
+    DEFINES["WEBRTC_BSD"] = True
1613
+    DEFINES["WEBRTC_POSIX"] = True
1614
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1615
+
1616
+    UNIFIED_SOURCES += [
1617
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
1618
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
1619
+        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1620
+    ]
1621
+
1622
 if CONFIG["OS_TARGET"] == "WINNT":
1623
 
1624
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1625
@@ -167,6 +219,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1626
 
1627
     DEFINES["_FORTIFY_SOURCE"] = "2"
1628
 
1629
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1630
+
1631
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1632
+
1633
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1634
+
1635
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1636
+
1637
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1638
+
1639
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1640
+
1641
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1642
+
1643
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1644
+
1645
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1646
 
1647
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1648
@@ -210,6 +278,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1649
         "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1650
     ]
1651
 
1652
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1653
+
1654
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1655
+    DEFINES["WEBRTC_HAS_NEON"] = True
1656
+
1657
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1658
+
1659
+    CFLAGS += [
1660
+        "-msse2"
1661
+    ]
1662
+
1663
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1664
+
1665
+    CFLAGS += [
1666
+        "-msse2"
1667
+    ]
1668
+
1669
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1670
+
1671
+    CFLAGS += [
1672
+        "-msse2"
1673
+    ]
1674
+
1675
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1676
 
1677
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1678
@@ -249,4 +340,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1679
         "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
1680
     ]
1681
 
1682
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1683
+
1684
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1685
+    DEFINES["WEBRTC_HAS_NEON"] = True
1686
+
1687
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1688
+
1689
+    CFLAGS += [
1690
+        "-msse2"
1691
+    ]
1692
+
1693
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1694
+
1695
+    CFLAGS += [
1696
+        "-msse2"
1697
+    ]
1698
+
1699
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1700
+
1701
+    CFLAGS += [
1702
+        "-msse2"
1703
+    ]
1704
+
1705
 Library("common_audio_c_gn")
1706
diff --git media/webrtc/trunk/webrtc/common_audio/common_audio_gn/moz.build media/webrtc/trunk/webrtc/common_audio/common_audio_gn/moz.build
1707
index 706886b0238a..f5eea840f093 100644
1708
--- media/webrtc/trunk/webrtc/common_audio/common_audio_gn/moz.build
1709
+++ media/webrtc/trunk/webrtc/common_audio/common_audio_gn/moz.build
1710
@@ -90,6 +90,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
1711
     DEFINES["WEBRTC_POSIX"] = True
1712
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
1713
 
1714
+if CONFIG["OS_TARGET"] == "DragonFly":
1715
+
1716
+    DEFINES["USE_X11"] = "1"
1717
+    DEFINES["WEBRTC_BSD"] = True
1718
+    DEFINES["WEBRTC_POSIX"] = True
1719
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1720
+
1721
+if CONFIG["OS_TARGET"] == "FreeBSD":
1722
+
1723
+    DEFINES["USE_X11"] = "1"
1724
+    DEFINES["WEBRTC_BSD"] = True
1725
+    DEFINES["WEBRTC_POSIX"] = True
1726
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1727
+
1728
 if CONFIG["OS_TARGET"] == "Linux":
1729
 
1730
     DEFINES["USE_NSS_CERTS"] = "1"
1731
@@ -102,6 +116,20 @@ if CONFIG["OS_TARGET"] == "Linux":
1732
         "rt"
1733
     ]
1734
 
1735
+if CONFIG["OS_TARGET"] == "NetBSD":
1736
+
1737
+    DEFINES["USE_X11"] = "1"
1738
+    DEFINES["WEBRTC_BSD"] = True
1739
+    DEFINES["WEBRTC_POSIX"] = True
1740
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1741
+
1742
+if CONFIG["OS_TARGET"] == "OpenBSD":
1743
+
1744
+    DEFINES["USE_X11"] = "1"
1745
+    DEFINES["WEBRTC_BSD"] = True
1746
+    DEFINES["WEBRTC_POSIX"] = True
1747
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1748
+
1749
 if CONFIG["OS_TARGET"] == "WINNT":
1750
 
1751
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
1752
@@ -139,6 +167,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
1753
 
1754
     DEFINES["_FORTIFY_SOURCE"] = "2"
1755
 
1756
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
1757
+
1758
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1759
+
1760
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1761
+
1762
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1763
+
1764
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1765
+
1766
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1767
+
1768
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1769
+
1770
+    DEFINES["_FORTIFY_SOURCE"] = "2"
1771
+
1772
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
1773
 
1774
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
1775
@@ -164,6 +208,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
1776
         "-msse2"
1777
     ]
1778
 
1779
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1780
+
1781
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1782
+    DEFINES["WEBRTC_HAS_NEON"] = True
1783
+
1784
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
1785
+
1786
+    CXXFLAGS += [
1787
+        "-msse2"
1788
+    ]
1789
+
1790
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
1791
+
1792
+    CXXFLAGS += [
1793
+        "-msse2"
1794
+    ]
1795
+
1796
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
1797
+
1798
+    CXXFLAGS += [
1799
+        "-msse2"
1800
+    ]
1801
+
1802
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
1803
 
1804
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1805
@@ -185,4 +252,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
1806
         "-msse2"
1807
     ]
1808
 
1809
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1810
+
1811
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1812
+    DEFINES["WEBRTC_HAS_NEON"] = True
1813
+
1814
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
1815
+
1816
+    CXXFLAGS += [
1817
+        "-msse2"
1818
+    ]
1819
+
1820
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
1821
+
1822
+    CXXFLAGS += [
1823
+        "-msse2"
1824
+    ]
1825
+
1826
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
1827
+
1828
+    CXXFLAGS += [
1829
+        "-msse2"
1830
+    ]
1831
+
1832
 Library("common_audio_gn")
1833
diff --git media/webrtc/trunk/webrtc/common_audio/common_audio_neon_c_gn/moz.build media/webrtc/trunk/webrtc/common_audio/common_audio_neon_c_gn/moz.build
1834
index 468e0f4b6779..fea41c9ad880 100644
1835
--- media/webrtc/trunk/webrtc/common_audio/common_audio_neon_c_gn/moz.build
1836
+++ media/webrtc/trunk/webrtc/common_audio/common_audio_neon_c_gn/moz.build
1837
@@ -10,25 +10,15 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
1838
 COMPILE_FLAGS["STL"] = []
1839
 AllowCompilerWarnings()
1840
 
1841
-DEFINES["ANDROID"] = True
1842
-DEFINES["ANDROID_NDK_VERSION"] = "r12b"
1843
 DEFINES["CHROMIUM_BUILD"] = True
1844
-DEFINES["DISABLE_NACL"] = True
1845
 DEFINES["EXPAT_RELATIVE_PATH"] = True
1846
-DEFINES["HAVE_SYS_UIO_H"] = True
1847
-DEFINES["NO_TCMALLOC"] = True
1848
-DEFINES["USE_OPENSSL_CERTS"] = "1"
1849
 DEFINES["V8_DEPRECATION_WARNINGS"] = True
1850
-DEFINES["WEBRTC_ANDROID"] = True
1851
-DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
1852
 DEFINES["WEBRTC_HAS_NEON"] = True
1853
 DEFINES["WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE"] = True
1854
-DEFINES["WEBRTC_LINUX"] = True
1855
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
1856
 DEFINES["WEBRTC_POSIX"] = True
1857
 DEFINES["WEBRTC_RESTRICT_LOGGING"] = True
1858
 DEFINES["_FILE_OFFSET_BITS"] = "64"
1859
-DEFINES["__GNU_SOURCE"] = "1"
1860
 
1861
 FINAL_LIBRARY = "webrtc"
1862
 
1863
@@ -58,6 +48,25 @@ if CONFIG["MOZ_DEBUG"] == "1":
1864
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
1865
     DEFINES["WTF_USE_DYNAMIC_ANNOTATIONS"] = "1"
1866
 
1867
+if CONFIG["OS_TARGET"] == "Android":
1868
+
1869
+    DEFINES["ANDROID"] = True
1870
+    DEFINES["ANDROID_NDK_VERSION"] = "r12b"
1871
+    DEFINES["DISABLE_NACL"] = True
1872
+    DEFINES["HAVE_SYS_UIO_H"] = True
1873
+    DEFINES["NO_TCMALLOC"] = True
1874
+    DEFINES["USE_OPENSSL_CERTS"] = "1"
1875
+    DEFINES["WEBRTC_ANDROID"] = True
1876
+    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
1877
+    DEFINES["WEBRTC_LINUX"] = True
1878
+    DEFINES["__GNU_SOURCE"] = "1"
1879
+
1880
+if CONFIG["OS_TARGET"] == "FreeBSD":
1881
+
1882
+    DEFINES["USE_X11"] = "1"
1883
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1884
+    DEFINES["WEBRTC_BSD"] = True
1885
+
1886
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android":
1887
 
1888
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1889
diff --git media/webrtc/trunk/webrtc/common_audio/common_audio_neon_gn/moz.build media/webrtc/trunk/webrtc/common_audio/common_audio_neon_gn/moz.build
1890
index c35a5100983e..dcdd404efe35 100644
1891
--- media/webrtc/trunk/webrtc/common_audio/common_audio_neon_gn/moz.build
1892
+++ media/webrtc/trunk/webrtc/common_audio/common_audio_neon_gn/moz.build
1893
@@ -10,25 +10,15 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
1894
 COMPILE_FLAGS["STL"] = []
1895
 AllowCompilerWarnings()
1896
 
1897
-DEFINES["ANDROID"] = True
1898
-DEFINES["ANDROID_NDK_VERSION"] = "r12b"
1899
 DEFINES["CHROMIUM_BUILD"] = True
1900
-DEFINES["DISABLE_NACL"] = True
1901
 DEFINES["EXPAT_RELATIVE_PATH"] = True
1902
-DEFINES["HAVE_SYS_UIO_H"] = True
1903
-DEFINES["NO_TCMALLOC"] = True
1904
-DEFINES["USE_OPENSSL_CERTS"] = "1"
1905
 DEFINES["V8_DEPRECATION_WARNINGS"] = True
1906
-DEFINES["WEBRTC_ANDROID"] = True
1907
-DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
1908
 DEFINES["WEBRTC_HAS_NEON"] = True
1909
 DEFINES["WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE"] = True
1910
-DEFINES["WEBRTC_LINUX"] = True
1911
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
1912
 DEFINES["WEBRTC_POSIX"] = True
1913
 DEFINES["WEBRTC_RESTRICT_LOGGING"] = True
1914
 DEFINES["_FILE_OFFSET_BITS"] = "64"
1915
-DEFINES["__GNU_SOURCE"] = "1"
1916
 
1917
 FINAL_LIBRARY = "webrtc"
1918
 
1919
@@ -57,6 +47,25 @@ if CONFIG["MOZ_DEBUG"] == "1":
1920
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
1921
     DEFINES["WTF_USE_DYNAMIC_ANNOTATIONS"] = "1"
1922
 
1923
+if CONFIG["OS_TARGET"] == "Android":
1924
+
1925
+    DEFINES["ANDROID"] = True
1926
+    DEFINES["ANDROID_NDK_VERSION"] = "r12b"
1927
+    DEFINES["DISABLE_NACL"] = True
1928
+    DEFINES["HAVE_SYS_UIO_H"] = True
1929
+    DEFINES["NO_TCMALLOC"] = True
1930
+    DEFINES["USE_OPENSSL_CERTS"] = "1"
1931
+    DEFINES["WEBRTC_ANDROID"] = True
1932
+    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
1933
+    DEFINES["WEBRTC_LINUX"] = True
1934
+    DEFINES["__GNU_SOURCE"] = "1"
1935
+
1936
+if CONFIG["OS_TARGET"] == "FreeBSD":
1937
+
1938
+    DEFINES["USE_X11"] = "1"
1939
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
1940
+    DEFINES["WEBRTC_BSD"] = True
1941
+
1942
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android":
1943
 
1944
     DEFINES["WEBRTC_ARCH_ARM64"] = True
1945
diff --git media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn/moz.build media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn/moz.build
1946
index b82e8740a0ab..5fa3c15bc163 100644
1947
--- media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn/moz.build
1948
+++ media/webrtc/trunk/webrtc/common_audio/common_audio_sse2_gn/moz.build
1949
@@ -75,6 +75,28 @@ if CONFIG["OS_TARGET"] == "Darwin":
1950
     DEFINES["WEBRTC_POSIX"] = True
1951
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
1952
 
1953
+if CONFIG["OS_TARGET"] == "DragonFly":
1954
+
1955
+    CXXFLAGS += [
1956
+        "-msse2"
1957
+    ]
1958
+
1959
+    DEFINES["USE_X11"] = "1"
1960
+    DEFINES["WEBRTC_BSD"] = True
1961
+    DEFINES["WEBRTC_POSIX"] = True
1962
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1963
+
1964
+if CONFIG["OS_TARGET"] == "FreeBSD":
1965
+
1966
+    CXXFLAGS += [
1967
+        "-msse2"
1968
+    ]
1969
+
1970
+    DEFINES["USE_X11"] = "1"
1971
+    DEFINES["WEBRTC_BSD"] = True
1972
+    DEFINES["WEBRTC_POSIX"] = True
1973
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1974
+
1975
 if CONFIG["OS_TARGET"] == "Linux":
1976
 
1977
     CXXFLAGS += [
1978
@@ -87,6 +109,29 @@ if CONFIG["OS_TARGET"] == "Linux":
1979
     DEFINES["WEBRTC_POSIX"] = True
1980
     DEFINES["_FILE_OFFSET_BITS"] = "64"
1981
 
1982
+if CONFIG["OS_TARGET"] == "NetBSD":
1983
+
1984
+    CXXFLAGS += [
1985
+        "-msse2"
1986
+    ]
1987
+
1988
+    DEFINES["USE_X11"] = "1"
1989
+    DEFINES["WEBRTC_BSD"] = True
1990
+    DEFINES["WEBRTC_POSIX"] = True
1991
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
1992
+
1993
+if CONFIG["OS_TARGET"] == "OpenBSD":
1994
+
1995
+    CXXFLAGS += [
1996
+        "-msse2",
1997
+        "-msse2"
1998
+    ]
1999
+
2000
+    DEFINES["USE_X11"] = "1"
2001
+    DEFINES["WEBRTC_BSD"] = True
2002
+    DEFINES["WEBRTC_POSIX"] = True
2003
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2004
+
2005
 if CONFIG["OS_TARGET"] == "WINNT":
2006
 
2007
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2008
@@ -120,6 +165,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2009
 
2010
     DEFINES["_FORTIFY_SOURCE"] = "2"
2011
 
2012
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2013
+
2014
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2015
+
2016
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2017
+
2018
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2019
+
2020
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2021
+
2022
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2023
+
2024
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2025
+
2026
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2027
+
2028
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2029
 
2030
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2031
diff --git media/webrtc/trunk/webrtc/common_video/common_video_gn/moz.build media/webrtc/trunk/webrtc/common_video/common_video_gn/moz.build
2032
index 237df9942375..3a7cf3ddabc7 100644
2033
--- media/webrtc/trunk/webrtc/common_video/common_video_gn/moz.build
2034
+++ media/webrtc/trunk/webrtc/common_video/common_video_gn/moz.build
2035
@@ -93,6 +93,22 @@ if CONFIG["OS_TARGET"] == "Darwin":
2036
         "/media/webrtc/trunk/webrtc/common_video/corevideo_frame_buffer.cc"
2037
     ]
2038
 
2039
+if CONFIG["OS_TARGET"] == "DragonFly":
2040
+
2041
+    DEFINES["USE_X11"] = "1"
2042
+    DEFINES["WEBRTC_BSD"] = True
2043
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2044
+    DEFINES["WEBRTC_POSIX"] = True
2045
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2046
+
2047
+if CONFIG["OS_TARGET"] == "FreeBSD":
2048
+
2049
+    DEFINES["USE_X11"] = "1"
2050
+    DEFINES["WEBRTC_BSD"] = True
2051
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2052
+    DEFINES["WEBRTC_POSIX"] = True
2053
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2054
+
2055
 if CONFIG["OS_TARGET"] == "Linux":
2056
 
2057
     DEFINES["USE_NSS_CERTS"] = "1"
2058
@@ -106,6 +122,22 @@ if CONFIG["OS_TARGET"] == "Linux":
2059
         "rt"
2060
     ]
2061
 
2062
+if CONFIG["OS_TARGET"] == "NetBSD":
2063
+
2064
+    DEFINES["USE_X11"] = "1"
2065
+    DEFINES["WEBRTC_BSD"] = True
2066
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2067
+    DEFINES["WEBRTC_POSIX"] = True
2068
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2069
+
2070
+if CONFIG["OS_TARGET"] == "OpenBSD":
2071
+
2072
+    DEFINES["USE_X11"] = "1"
2073
+    DEFINES["WEBRTC_BSD"] = True
2074
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2075
+    DEFINES["WEBRTC_POSIX"] = True
2076
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2077
+
2078
 if CONFIG["OS_TARGET"] == "WINNT":
2079
 
2080
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2081
@@ -143,6 +175,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2082
 
2083
     DEFINES["_FORTIFY_SOURCE"] = "2"
2084
 
2085
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2086
+
2087
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2088
+
2089
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2090
+
2091
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2092
+
2093
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2094
+
2095
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2096
+
2097
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2098
+
2099
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2100
+
2101
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2102
 
2103
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2104
@@ -168,6 +216,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2105
         "-msse2"
2106
     ]
2107
 
2108
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2109
+
2110
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2111
+    DEFINES["WEBRTC_HAS_NEON"] = True
2112
+
2113
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2114
+
2115
+    CXXFLAGS += [
2116
+        "-msse2"
2117
+    ]
2118
+
2119
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2120
+
2121
+    CXXFLAGS += [
2122
+        "-msse2"
2123
+    ]
2124
+
2125
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2126
+
2127
+    CXXFLAGS += [
2128
+        "-msse2"
2129
+    ]
2130
+
2131
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2132
 
2133
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2134
@@ -189,4 +260,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2135
         "-msse2"
2136
     ]
2137
 
2138
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2139
+
2140
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2141
+    DEFINES["WEBRTC_HAS_NEON"] = True
2142
+
2143
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2144
+
2145
+    CXXFLAGS += [
2146
+        "-msse2"
2147
+    ]
2148
+
2149
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2150
+
2151
+    CXXFLAGS += [
2152
+        "-msse2"
2153
+    ]
2154
+
2155
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2156
+
2157
+    CXXFLAGS += [
2158
+        "-msse2"
2159
+    ]
2160
+
2161
 Library("common_video_gn")
2162
diff --git media/webrtc/trunk/webrtc/logging/rtc_event_log_api_gn/moz.build media/webrtc/trunk/webrtc/logging/rtc_event_log_api_gn/moz.build
2163
index 477ff0ddc459..5ffb1744904b 100644
2164
--- media/webrtc/trunk/webrtc/logging/rtc_event_log_api_gn/moz.build
2165
+++ media/webrtc/trunk/webrtc/logging/rtc_event_log_api_gn/moz.build
2166
@@ -61,6 +61,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
2167
     DEFINES["WEBRTC_POSIX"] = True
2168
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
2169
 
2170
+if CONFIG["OS_TARGET"] == "DragonFly":
2171
+
2172
+    DEFINES["USE_X11"] = "1"
2173
+    DEFINES["WEBRTC_BSD"] = True
2174
+    DEFINES["WEBRTC_POSIX"] = True
2175
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2176
+
2177
+if CONFIG["OS_TARGET"] == "FreeBSD":
2178
+
2179
+    DEFINES["USE_X11"] = "1"
2180
+    DEFINES["WEBRTC_BSD"] = True
2181
+    DEFINES["WEBRTC_POSIX"] = True
2182
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2183
+
2184
 if CONFIG["OS_TARGET"] == "Linux":
2185
 
2186
     DEFINES["USE_NSS_CERTS"] = "1"
2187
@@ -69,6 +83,20 @@ if CONFIG["OS_TARGET"] == "Linux":
2188
     DEFINES["WEBRTC_POSIX"] = True
2189
     DEFINES["_FILE_OFFSET_BITS"] = "64"
2190
 
2191
+if CONFIG["OS_TARGET"] == "NetBSD":
2192
+
2193
+    DEFINES["USE_X11"] = "1"
2194
+    DEFINES["WEBRTC_BSD"] = True
2195
+    DEFINES["WEBRTC_POSIX"] = True
2196
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2197
+
2198
+if CONFIG["OS_TARGET"] == "OpenBSD":
2199
+
2200
+    DEFINES["USE_X11"] = "1"
2201
+    DEFINES["WEBRTC_BSD"] = True
2202
+    DEFINES["WEBRTC_POSIX"] = True
2203
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2204
+
2205
 if CONFIG["OS_TARGET"] == "WINNT":
2206
 
2207
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2208
@@ -102,6 +130,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2209
 
2210
     DEFINES["_FORTIFY_SOURCE"] = "2"
2211
 
2212
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2213
+
2214
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2215
+
2216
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2217
+
2218
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2219
+
2220
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2221
+
2222
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2223
+
2224
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2225
+
2226
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2227
+
2228
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2229
 
2230
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2231
@@ -117,6 +161,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2232
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
2233
     DEFINES["WEBRTC_HAS_NEON"] = True
2234
 
2235
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2236
+
2237
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2238
+    DEFINES["WEBRTC_HAS_NEON"] = True
2239
+
2240
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2241
 
2242
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2243
@@ -128,4 +177,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2244
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
2245
     DEFINES["WEBRTC_HAS_NEON"] = True
2246
 
2247
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2248
+
2249
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2250
+    DEFINES["WEBRTC_HAS_NEON"] = True
2251
+
2252
 Library("rtc_event_log_api_gn")
2253
diff --git media/webrtc/trunk/webrtc/logging/rtc_event_log_impl_gn/moz.build media/webrtc/trunk/webrtc/logging/rtc_event_log_impl_gn/moz.build
2254
index 16d2861a0f2c..c87c2f914046 100644
2255
--- media/webrtc/trunk/webrtc/logging/rtc_event_log_impl_gn/moz.build
2256
+++ media/webrtc/trunk/webrtc/logging/rtc_event_log_impl_gn/moz.build
2257
@@ -75,6 +75,22 @@ if CONFIG["OS_TARGET"] == "Darwin":
2258
         "-framework CoreVideo"
2259
     ]
2260
 
2261
+if CONFIG["OS_TARGET"] == "DragonFly":
2262
+
2263
+    DEFINES["USE_X11"] = "1"
2264
+    DEFINES["WEBRTC_BSD"] = True
2265
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2266
+    DEFINES["WEBRTC_POSIX"] = True
2267
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2268
+
2269
+if CONFIG["OS_TARGET"] == "FreeBSD":
2270
+
2271
+    DEFINES["USE_X11"] = "1"
2272
+    DEFINES["WEBRTC_BSD"] = True
2273
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2274
+    DEFINES["WEBRTC_POSIX"] = True
2275
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2276
+
2277
 if CONFIG["OS_TARGET"] == "Linux":
2278
 
2279
     DEFINES["USE_NSS_CERTS"] = "1"
2280
@@ -88,6 +104,22 @@ if CONFIG["OS_TARGET"] == "Linux":
2281
         "rt"
2282
     ]
2283
 
2284
+if CONFIG["OS_TARGET"] == "NetBSD":
2285
+
2286
+    DEFINES["USE_X11"] = "1"
2287
+    DEFINES["WEBRTC_BSD"] = True
2288
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2289
+    DEFINES["WEBRTC_POSIX"] = True
2290
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2291
+
2292
+if CONFIG["OS_TARGET"] == "OpenBSD":
2293
+
2294
+    DEFINES["USE_X11"] = "1"
2295
+    DEFINES["WEBRTC_BSD"] = True
2296
+    DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
2297
+    DEFINES["WEBRTC_POSIX"] = True
2298
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2299
+
2300
 if CONFIG["OS_TARGET"] == "WINNT":
2301
 
2302
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2303
@@ -125,6 +157,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2304
 
2305
     DEFINES["_FORTIFY_SOURCE"] = "2"
2306
 
2307
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2308
+
2309
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2310
+
2311
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2312
+
2313
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2314
+
2315
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2316
+
2317
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2318
+
2319
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2320
+
2321
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2322
+
2323
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2324
 
2325
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2326
@@ -150,6 +198,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2327
         "-msse2"
2328
     ]
2329
 
2330
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2331
+
2332
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2333
+    DEFINES["WEBRTC_HAS_NEON"] = True
2334
+
2335
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2336
+
2337
+    CXXFLAGS += [
2338
+        "-msse2"
2339
+    ]
2340
+
2341
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2342
+
2343
+    CXXFLAGS += [
2344
+        "-msse2"
2345
+    ]
2346
+
2347
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2348
+
2349
+    CXXFLAGS += [
2350
+        "-msse2"
2351
+    ]
2352
+
2353
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2354
 
2355
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2356
@@ -171,4 +242,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2357
         "-msse2"
2358
     ]
2359
 
2360
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2361
+
2362
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2363
+    DEFINES["WEBRTC_HAS_NEON"] = True
2364
+
2365
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2366
+
2367
+    CXXFLAGS += [
2368
+        "-msse2"
2369
+    ]
2370
+
2371
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2372
+
2373
+    CXXFLAGS += [
2374
+        "-msse2"
2375
+    ]
2376
+
2377
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2378
+
2379
+    CXXFLAGS += [
2380
+        "-msse2"
2381
+    ]
2382
+
2383
 Library("rtc_event_log_impl_gn")
2384
diff --git media/webrtc/trunk/webrtc/media/mozilla_rtc_media_gn/moz.build media/webrtc/trunk/webrtc/media/mozilla_rtc_media_gn/moz.build
2385
index 46bdea513d72..e92a58f61921 100644
2386
--- media/webrtc/trunk/webrtc/media/mozilla_rtc_media_gn/moz.build
2387
+++ media/webrtc/trunk/webrtc/media/mozilla_rtc_media_gn/moz.build
2388
@@ -67,6 +67,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
2389
     DEFINES["WEBRTC_POSIX"] = True
2390
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
2391
 
2392
+if CONFIG["OS_TARGET"] == "DragonFly":
2393
+
2394
+    DEFINES["USE_X11"] = "1"
2395
+    DEFINES["WEBRTC_BSD"] = True
2396
+    DEFINES["WEBRTC_POSIX"] = True
2397
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2398
+
2399
+if CONFIG["OS_TARGET"] == "FreeBSD":
2400
+
2401
+    DEFINES["USE_X11"] = "1"
2402
+    DEFINES["WEBRTC_BSD"] = True
2403
+    DEFINES["WEBRTC_POSIX"] = True
2404
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2405
+
2406
 if CONFIG["OS_TARGET"] == "Linux":
2407
 
2408
     DEFINES["USE_NSS_CERTS"] = "1"
2409
@@ -75,6 +89,20 @@ if CONFIG["OS_TARGET"] == "Linux":
2410
     DEFINES["WEBRTC_POSIX"] = True
2411
     DEFINES["_FILE_OFFSET_BITS"] = "64"
2412
 
2413
+if CONFIG["OS_TARGET"] == "NetBSD":
2414
+
2415
+    DEFINES["USE_X11"] = "1"
2416
+    DEFINES["WEBRTC_BSD"] = True
2417
+    DEFINES["WEBRTC_POSIX"] = True
2418
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2419
+
2420
+if CONFIG["OS_TARGET"] == "OpenBSD":
2421
+
2422
+    DEFINES["USE_X11"] = "1"
2423
+    DEFINES["WEBRTC_BSD"] = True
2424
+    DEFINES["WEBRTC_POSIX"] = True
2425
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2426
+
2427
 if CONFIG["OS_TARGET"] == "WINNT":
2428
 
2429
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2430
@@ -108,6 +136,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2431
 
2432
     DEFINES["_FORTIFY_SOURCE"] = "2"
2433
 
2434
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2435
+
2436
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2437
+
2438
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2439
+
2440
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2441
+
2442
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2443
+
2444
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2445
+
2446
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2447
+
2448
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2449
+
2450
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2451
 
2452
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2453
@@ -133,6 +177,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2454
         "-msse2"
2455
     ]
2456
 
2457
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2458
+
2459
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2460
+    DEFINES["WEBRTC_HAS_NEON"] = True
2461
+
2462
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2463
+
2464
+    CXXFLAGS += [
2465
+        "-msse2"
2466
+    ]
2467
+
2468
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2469
+
2470
+    CXXFLAGS += [
2471
+        "-msse2"
2472
+    ]
2473
+
2474
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2475
+
2476
+    CXXFLAGS += [
2477
+        "-msse2"
2478
+    ]
2479
+
2480
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2481
 
2482
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2483
@@ -154,4 +221,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2484
         "-msse2"
2485
     ]
2486
 
2487
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2488
+
2489
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2490
+    DEFINES["WEBRTC_HAS_NEON"] = True
2491
+
2492
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2493
+
2494
+    CXXFLAGS += [
2495
+        "-msse2"
2496
+    ]
2497
+
2498
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2499
+
2500
+    CXXFLAGS += [
2501
+        "-msse2"
2502
+    ]
2503
+
2504
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2505
+
2506
+    CXXFLAGS += [
2507
+        "-msse2"
2508
+    ]
2509
+
2510
 Library("mozilla_rtc_media_gn")
2511
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_coding_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_coding_gn/moz.build
2512
index 7b8b52a50144..848e05c7f8d9 100644
2513
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_coding_gn/moz.build
2514
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_coding_gn/moz.build
2515
@@ -92,6 +92,28 @@ if CONFIG["OS_TARGET"] == "Darwin":
2516
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2517
     ]
2518
 
2519
+if CONFIG["OS_TARGET"] == "DragonFly":
2520
+
2521
+    DEFINES["USE_X11"] = "1"
2522
+    DEFINES["WEBRTC_BSD"] = True
2523
+    DEFINES["WEBRTC_POSIX"] = True
2524
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2525
+
2526
+    LOCAL_INCLUDES += [
2527
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2528
+    ]
2529
+
2530
+if CONFIG["OS_TARGET"] == "FreeBSD":
2531
+
2532
+    DEFINES["USE_X11"] = "1"
2533
+    DEFINES["WEBRTC_BSD"] = True
2534
+    DEFINES["WEBRTC_POSIX"] = True
2535
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2536
+
2537
+    LOCAL_INCLUDES += [
2538
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2539
+    ]
2540
+
2541
 if CONFIG["OS_TARGET"] == "Linux":
2542
 
2543
     DEFINES["USE_NSS_CERTS"] = "1"
2544
@@ -109,6 +131,28 @@ if CONFIG["OS_TARGET"] == "Linux":
2545
         "rt"
2546
     ]
2547
 
2548
+if CONFIG["OS_TARGET"] == "NetBSD":
2549
+
2550
+    DEFINES["USE_X11"] = "1"
2551
+    DEFINES["WEBRTC_BSD"] = True
2552
+    DEFINES["WEBRTC_POSIX"] = True
2553
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2554
+
2555
+    LOCAL_INCLUDES += [
2556
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2557
+    ]
2558
+
2559
+if CONFIG["OS_TARGET"] == "OpenBSD":
2560
+
2561
+    DEFINES["USE_X11"] = "1"
2562
+    DEFINES["WEBRTC_BSD"] = True
2563
+    DEFINES["WEBRTC_POSIX"] = True
2564
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2565
+
2566
+    LOCAL_INCLUDES += [
2567
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2568
+    ]
2569
+
2570
 if CONFIG["OS_TARGET"] == "WINNT":
2571
 
2572
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2573
@@ -150,6 +194,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2574
 
2575
     DEFINES["_FORTIFY_SOURCE"] = "2"
2576
 
2577
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2578
+
2579
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2580
+
2581
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2582
+
2583
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2584
+
2585
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2586
+
2587
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2588
+
2589
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2590
+
2591
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2592
+
2593
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2594
 
2595
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2596
@@ -187,6 +247,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2597
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2598
     ]
2599
 
2600
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2601
+
2602
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2603
+    DEFINES["WEBRTC_HAS_NEON"] = True
2604
+
2605
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2606
+
2607
+    CXXFLAGS += [
2608
+        "-msse2"
2609
+    ]
2610
+
2611
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2612
+
2613
+    CXXFLAGS += [
2614
+        "-msse2"
2615
+    ]
2616
+
2617
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2618
+
2619
+    CXXFLAGS += [
2620
+        "-msse2"
2621
+    ]
2622
+
2623
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2624
 
2625
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2626
@@ -220,4 +303,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2627
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
2628
     ]
2629
 
2630
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2631
+
2632
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2633
+    DEFINES["WEBRTC_HAS_NEON"] = True
2634
+
2635
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2636
+
2637
+    CXXFLAGS += [
2638
+        "-msse2"
2639
+    ]
2640
+
2641
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2642
+
2643
+    CXXFLAGS += [
2644
+        "-msse2"
2645
+    ]
2646
+
2647
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2648
+
2649
+    CXXFLAGS += [
2650
+        "-msse2"
2651
+    ]
2652
+
2653
 Library("audio_coding_gn")
2654
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_factory_interface_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_factory_interface_gn/moz.build
2655
index b0a1acb1952e..c14a19fc2474 100644
2656
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_factory_interface_gn/moz.build
2657
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_factory_interface_gn/moz.build
2658
@@ -65,6 +65,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
2659
     DEFINES["WEBRTC_POSIX"] = True
2660
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
2661
 
2662
+if CONFIG["OS_TARGET"] == "DragonFly":
2663
+
2664
+    DEFINES["USE_X11"] = "1"
2665
+    DEFINES["WEBRTC_BSD"] = True
2666
+    DEFINES["WEBRTC_POSIX"] = True
2667
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2668
+
2669
+if CONFIG["OS_TARGET"] == "FreeBSD":
2670
+
2671
+    DEFINES["USE_X11"] = "1"
2672
+    DEFINES["WEBRTC_BSD"] = True
2673
+    DEFINES["WEBRTC_POSIX"] = True
2674
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2675
+
2676
 if CONFIG["OS_TARGET"] == "Linux":
2677
 
2678
     DEFINES["USE_NSS_CERTS"] = "1"
2679
@@ -73,6 +87,20 @@ if CONFIG["OS_TARGET"] == "Linux":
2680
     DEFINES["WEBRTC_POSIX"] = True
2681
     DEFINES["_FILE_OFFSET_BITS"] = "64"
2682
 
2683
+if CONFIG["OS_TARGET"] == "NetBSD":
2684
+
2685
+    DEFINES["USE_X11"] = "1"
2686
+    DEFINES["WEBRTC_BSD"] = True
2687
+    DEFINES["WEBRTC_POSIX"] = True
2688
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2689
+
2690
+if CONFIG["OS_TARGET"] == "OpenBSD":
2691
+
2692
+    DEFINES["USE_X11"] = "1"
2693
+    DEFINES["WEBRTC_BSD"] = True
2694
+    DEFINES["WEBRTC_POSIX"] = True
2695
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2696
+
2697
 if CONFIG["OS_TARGET"] == "WINNT":
2698
 
2699
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2700
@@ -106,6 +134,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2701
 
2702
     DEFINES["_FORTIFY_SOURCE"] = "2"
2703
 
2704
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2705
+
2706
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2707
+
2708
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2709
+
2710
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2711
+
2712
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2713
+
2714
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2715
+
2716
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2717
+
2718
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2719
+
2720
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2721
 
2722
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2723
@@ -121,6 +165,11 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2724
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
2725
     DEFINES["WEBRTC_HAS_NEON"] = True
2726
 
2727
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2728
+
2729
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2730
+    DEFINES["WEBRTC_HAS_NEON"] = True
2731
+
2732
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2733
 
2734
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2735
@@ -132,4 +181,9 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2736
     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
2737
     DEFINES["WEBRTC_HAS_NEON"] = True
2738
 
2739
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2740
+
2741
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2742
+    DEFINES["WEBRTC_HAS_NEON"] = True
2743
+
2744
 Library("audio_decoder_factory_interface_gn")
2745
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_interface_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_interface_gn/moz.build
2746
index 458c3695687a..9d7d81d2bc22 100644
2747
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_interface_gn/moz.build
2748
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_decoder_interface_gn/moz.build
2749
@@ -70,6 +70,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
2750
     DEFINES["WEBRTC_POSIX"] = True
2751
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
2752
 
2753
+if CONFIG["OS_TARGET"] == "DragonFly":
2754
+
2755
+    DEFINES["USE_X11"] = "1"
2756
+    DEFINES["WEBRTC_BSD"] = True
2757
+    DEFINES["WEBRTC_POSIX"] = True
2758
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2759
+
2760
+if CONFIG["OS_TARGET"] == "FreeBSD":
2761
+
2762
+    DEFINES["USE_X11"] = "1"
2763
+    DEFINES["WEBRTC_BSD"] = True
2764
+    DEFINES["WEBRTC_POSIX"] = True
2765
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2766
+
2767
 if CONFIG["OS_TARGET"] == "Linux":
2768
 
2769
     DEFINES["USE_NSS_CERTS"] = "1"
2770
@@ -78,6 +92,20 @@ if CONFIG["OS_TARGET"] == "Linux":
2771
     DEFINES["WEBRTC_POSIX"] = True
2772
     DEFINES["_FILE_OFFSET_BITS"] = "64"
2773
 
2774
+if CONFIG["OS_TARGET"] == "NetBSD":
2775
+
2776
+    DEFINES["USE_X11"] = "1"
2777
+    DEFINES["WEBRTC_BSD"] = True
2778
+    DEFINES["WEBRTC_POSIX"] = True
2779
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2780
+
2781
+if CONFIG["OS_TARGET"] == "OpenBSD":
2782
+
2783
+    DEFINES["USE_X11"] = "1"
2784
+    DEFINES["WEBRTC_BSD"] = True
2785
+    DEFINES["WEBRTC_POSIX"] = True
2786
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2787
+
2788
 if CONFIG["OS_TARGET"] == "WINNT":
2789
 
2790
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2791
@@ -111,6 +139,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2792
 
2793
     DEFINES["_FORTIFY_SOURCE"] = "2"
2794
 
2795
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2796
+
2797
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2798
+
2799
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2800
+
2801
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2802
+
2803
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2804
+
2805
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2806
+
2807
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2808
+
2809
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2810
+
2811
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2812
 
2813
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2814
@@ -136,6 +180,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2815
         "-msse2"
2816
     ]
2817
 
2818
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2819
+
2820
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2821
+    DEFINES["WEBRTC_HAS_NEON"] = True
2822
+
2823
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2824
+
2825
+    CXXFLAGS += [
2826
+        "-msse2"
2827
+    ]
2828
+
2829
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2830
+
2831
+    CXXFLAGS += [
2832
+        "-msse2"
2833
+    ]
2834
+
2835
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2836
+
2837
+    CXXFLAGS += [
2838
+        "-msse2"
2839
+    ]
2840
+
2841
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2842
 
2843
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2844
@@ -157,4 +224,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2845
         "-msse2"
2846
     ]
2847
 
2848
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2849
+
2850
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2851
+    DEFINES["WEBRTC_HAS_NEON"] = True
2852
+
2853
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2854
+
2855
+    CXXFLAGS += [
2856
+        "-msse2"
2857
+    ]
2858
+
2859
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2860
+
2861
+    CXXFLAGS += [
2862
+        "-msse2"
2863
+    ]
2864
+
2865
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2866
+
2867
+    CXXFLAGS += [
2868
+        "-msse2"
2869
+    ]
2870
+
2871
 Library("audio_decoder_interface_gn")
2872
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_encoder_interface_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_encoder_interface_gn/moz.build
2873
index 5e26fb762d85..2e9d4bf8cc8a 100644
2874
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_encoder_interface_gn/moz.build
2875
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_encoder_interface_gn/moz.build
2876
@@ -69,6 +69,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
2877
     DEFINES["WEBRTC_POSIX"] = True
2878
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
2879
 
2880
+if CONFIG["OS_TARGET"] == "DragonFly":
2881
+
2882
+    DEFINES["USE_X11"] = "1"
2883
+    DEFINES["WEBRTC_BSD"] = True
2884
+    DEFINES["WEBRTC_POSIX"] = True
2885
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2886
+
2887
+if CONFIG["OS_TARGET"] == "FreeBSD":
2888
+
2889
+    DEFINES["USE_X11"] = "1"
2890
+    DEFINES["WEBRTC_BSD"] = True
2891
+    DEFINES["WEBRTC_POSIX"] = True
2892
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2893
+
2894
 if CONFIG["OS_TARGET"] == "Linux":
2895
 
2896
     DEFINES["USE_NSS_CERTS"] = "1"
2897
@@ -77,6 +91,20 @@ if CONFIG["OS_TARGET"] == "Linux":
2898
     DEFINES["WEBRTC_POSIX"] = True
2899
     DEFINES["_FILE_OFFSET_BITS"] = "64"
2900
 
2901
+if CONFIG["OS_TARGET"] == "NetBSD":
2902
+
2903
+    DEFINES["USE_X11"] = "1"
2904
+    DEFINES["WEBRTC_BSD"] = True
2905
+    DEFINES["WEBRTC_POSIX"] = True
2906
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2907
+
2908
+if CONFIG["OS_TARGET"] == "OpenBSD":
2909
+
2910
+    DEFINES["USE_X11"] = "1"
2911
+    DEFINES["WEBRTC_BSD"] = True
2912
+    DEFINES["WEBRTC_POSIX"] = True
2913
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
2914
+
2915
 if CONFIG["OS_TARGET"] == "WINNT":
2916
 
2917
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
2918
@@ -110,6 +138,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
2919
 
2920
     DEFINES["_FORTIFY_SOURCE"] = "2"
2921
 
2922
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
2923
+
2924
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2925
+
2926
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2927
+
2928
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2929
+
2930
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2931
+
2932
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2933
+
2934
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2935
+
2936
+    DEFINES["_FORTIFY_SOURCE"] = "2"
2937
+
2938
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
2939
 
2940
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
2941
@@ -135,6 +179,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
2942
         "-msse2"
2943
     ]
2944
 
2945
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2946
+
2947
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2948
+    DEFINES["WEBRTC_HAS_NEON"] = True
2949
+
2950
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
2951
+
2952
+    CXXFLAGS += [
2953
+        "-msse2"
2954
+    ]
2955
+
2956
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
2957
+
2958
+    CXXFLAGS += [
2959
+        "-msse2"
2960
+    ]
2961
+
2962
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
2963
+
2964
+    CXXFLAGS += [
2965
+        "-msse2"
2966
+    ]
2967
+
2968
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
2969
 
2970
     DEFINES["WEBRTC_ARCH_ARM64"] = True
2971
@@ -156,4 +223,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
2972
         "-msse2"
2973
     ]
2974
 
2975
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2976
+
2977
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
2978
+    DEFINES["WEBRTC_HAS_NEON"] = True
2979
+
2980
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
2981
+
2982
+    CXXFLAGS += [
2983
+        "-msse2"
2984
+    ]
2985
+
2986
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
2987
+
2988
+    CXXFLAGS += [
2989
+        "-msse2"
2990
+    ]
2991
+
2992
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
2993
+
2994
+    CXXFLAGS += [
2995
+        "-msse2"
2996
+    ]
2997
+
2998
 Library("audio_encoder_interface_gn")
2999
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_conversion_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_conversion_gn/moz.build
3000
index 76e7d08f977f..7d2060a43eb7 100644
3001
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_conversion_gn/moz.build
3002
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_conversion_gn/moz.build
3003
@@ -69,6 +69,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3004
     DEFINES["WEBRTC_POSIX"] = True
3005
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3006
 
3007
+if CONFIG["OS_TARGET"] == "DragonFly":
3008
+
3009
+    DEFINES["USE_X11"] = "1"
3010
+    DEFINES["WEBRTC_BSD"] = True
3011
+    DEFINES["WEBRTC_POSIX"] = True
3012
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3013
+
3014
+if CONFIG["OS_TARGET"] == "FreeBSD":
3015
+
3016
+    DEFINES["USE_X11"] = "1"
3017
+    DEFINES["WEBRTC_BSD"] = True
3018
+    DEFINES["WEBRTC_POSIX"] = True
3019
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3020
+
3021
 if CONFIG["OS_TARGET"] == "Linux":
3022
 
3023
     DEFINES["USE_NSS_CERTS"] = "1"
3024
@@ -77,6 +91,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3025
     DEFINES["WEBRTC_POSIX"] = True
3026
     DEFINES["_FILE_OFFSET_BITS"] = "64"
3027
 
3028
+if CONFIG["OS_TARGET"] == "NetBSD":
3029
+
3030
+    DEFINES["USE_X11"] = "1"
3031
+    DEFINES["WEBRTC_BSD"] = True
3032
+    DEFINES["WEBRTC_POSIX"] = True
3033
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3034
+
3035
+if CONFIG["OS_TARGET"] == "OpenBSD":
3036
+
3037
+    DEFINES["USE_X11"] = "1"
3038
+    DEFINES["WEBRTC_BSD"] = True
3039
+    DEFINES["WEBRTC_POSIX"] = True
3040
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3041
+
3042
 if CONFIG["OS_TARGET"] == "WINNT":
3043
 
3044
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3045
@@ -110,6 +138,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3046
 
3047
     DEFINES["_FORTIFY_SOURCE"] = "2"
3048
 
3049
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3050
+
3051
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3052
+
3053
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3054
+
3055
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3056
+
3057
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3058
+
3059
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3060
+
3061
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3062
+
3063
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3064
+
3065
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3066
 
3067
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3068
@@ -135,6 +179,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3069
         "-msse2"
3070
     ]
3071
 
3072
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3073
+
3074
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3075
+    DEFINES["WEBRTC_HAS_NEON"] = True
3076
+
3077
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3078
+
3079
+    CXXFLAGS += [
3080
+        "-msse2"
3081
+    ]
3082
+
3083
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3084
+
3085
+    CXXFLAGS += [
3086
+        "-msse2"
3087
+    ]
3088
+
3089
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3090
+
3091
+    CXXFLAGS += [
3092
+        "-msse2"
3093
+    ]
3094
+
3095
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3096
 
3097
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3098
@@ -156,4 +223,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3099
         "-msse2"
3100
     ]
3101
 
3102
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3103
+
3104
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3105
+    DEFINES["WEBRTC_HAS_NEON"] = True
3106
+
3107
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3108
+
3109
+    CXXFLAGS += [
3110
+        "-msse2"
3111
+    ]
3112
+
3113
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3114
+
3115
+    CXXFLAGS += [
3116
+        "-msse2"
3117
+    ]
3118
+
3119
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3120
+
3121
+    CXXFLAGS += [
3122
+        "-msse2"
3123
+    ]
3124
+
3125
 Library("audio_format_conversion_gn")
3126
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_gn/moz.build
3127
index e1e96c810fb8..0b5693d1ddac 100644
3128
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_gn/moz.build
3129
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_format_gn/moz.build
3130
@@ -65,6 +65,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3131
     DEFINES["WEBRTC_POSIX"] = True
3132
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3133
 
3134
+if CONFIG["OS_TARGET"] == "DragonFly":
3135
+
3136
+    DEFINES["USE_X11"] = "1"
3137
+    DEFINES["WEBRTC_BSD"] = True
3138
+    DEFINES["WEBRTC_POSIX"] = True
3139
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3140
+
3141
+if CONFIG["OS_TARGET"] == "FreeBSD":
3142
+
3143
+    DEFINES["USE_X11"] = "1"
3144
+    DEFINES["WEBRTC_BSD"] = True
3145
+    DEFINES["WEBRTC_POSIX"] = True
3146
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3147
+
3148
 if CONFIG["OS_TARGET"] == "Linux":
3149
 
3150
     DEFINES["USE_NSS_CERTS"] = "1"
3151
@@ -73,6 +87,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3152
     DEFINES["WEBRTC_POSIX"] = True
3153
     DEFINES["_FILE_OFFSET_BITS"] = "64"
3154
 
3155
+if CONFIG["OS_TARGET"] == "NetBSD":
3156
+
3157
+    DEFINES["USE_X11"] = "1"
3158
+    DEFINES["WEBRTC_BSD"] = True
3159
+    DEFINES["WEBRTC_POSIX"] = True
3160
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3161
+
3162
+if CONFIG["OS_TARGET"] == "OpenBSD":
3163
+
3164
+    DEFINES["USE_X11"] = "1"
3165
+    DEFINES["WEBRTC_BSD"] = True
3166
+    DEFINES["WEBRTC_POSIX"] = True
3167
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3168
+
3169
 if CONFIG["OS_TARGET"] == "WINNT":
3170
 
3171
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3172
@@ -106,6 +134,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3173
 
3174
     DEFINES["_FORTIFY_SOURCE"] = "2"
3175
 
3176
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3177
+
3178
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3179
+
3180
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3181
+
3182
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3183
+
3184
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3185
+
3186
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3187
+
3188
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3189
+
3190
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3191
+
3192
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3193
 
3194
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3195
@@ -131,6 +175,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3196
         "-msse2"
3197
     ]
3198
 
3199
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3200
+
3201
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3202
+    DEFINES["WEBRTC_HAS_NEON"] = True
3203
+
3204
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3205
+
3206
+    CXXFLAGS += [
3207
+        "-msse2"
3208
+    ]
3209
+
3210
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3211
+
3212
+    CXXFLAGS += [
3213
+        "-msse2"
3214
+    ]
3215
+
3216
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3217
+
3218
+    CXXFLAGS += [
3219
+        "-msse2"
3220
+    ]
3221
+
3222
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3223
 
3224
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3225
@@ -152,4 +219,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3226
         "-msse2"
3227
     ]
3228
 
3229
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3230
+
3231
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3232
+    DEFINES["WEBRTC_HAS_NEON"] = True
3233
+
3234
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3235
+
3236
+    CXXFLAGS += [
3237
+        "-msse2"
3238
+    ]
3239
+
3240
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3241
+
3242
+    CXXFLAGS += [
3243
+        "-msse2"
3244
+    ]
3245
+
3246
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3247
+
3248
+    CXXFLAGS += [
3249
+        "-msse2"
3250
+    ]
3251
+
3252
 Library("audio_format_gn")
3253
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
3254
index e32ac3d3f71e..f6bfffaa278c 100644
3255
--- media/webrtc/trunk/webrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
3256
+++ media/webrtc/trunk/webrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
3257
@@ -81,6 +81,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3258
     DEFINES["WEBRTC_POSIX"] = True
3259
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3260
 
3261
+if CONFIG["OS_TARGET"] == "DragonFly":
3262
+
3263
+    DEFINES["USE_X11"] = "1"
3264
+    DEFINES["WEBRTC_BSD"] = True
3265
+    DEFINES["WEBRTC_POSIX"] = True
3266
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3267
+
3268
+if CONFIG["OS_TARGET"] == "FreeBSD":
3269
+
3270
+    DEFINES["USE_X11"] = "1"
3271
+    DEFINES["WEBRTC_BSD"] = True
3272
+    DEFINES["WEBRTC_POSIX"] = True
3273
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3274
+
3275
 if CONFIG["OS_TARGET"] == "Linux":
3276
 
3277
     DEFINES["USE_NSS_CERTS"] = "1"
3278
@@ -93,6 +107,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3279
         "rt"
3280
     ]
3281
 
3282
+if CONFIG["OS_TARGET"] == "NetBSD":
3283
+
3284
+    DEFINES["USE_X11"] = "1"
3285
+    DEFINES["WEBRTC_BSD"] = True
3286
+    DEFINES["WEBRTC_POSIX"] = True
3287
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3288
+
3289
+if CONFIG["OS_TARGET"] == "OpenBSD":
3290
+
3291
+    DEFINES["USE_X11"] = "1"
3292
+    DEFINES["WEBRTC_BSD"] = True
3293
+    DEFINES["WEBRTC_POSIX"] = True
3294
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3295
+
3296
 if CONFIG["OS_TARGET"] == "WINNT":
3297
 
3298
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3299
@@ -130,6 +158,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3300
 
3301
     DEFINES["_FORTIFY_SOURCE"] = "2"
3302
 
3303
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3304
+
3305
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3306
+
3307
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3308
+
3309
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3310
+
3311
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3312
+
3313
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3314
+
3315
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3316
+
3317
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3318
+
3319
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3320
 
3321
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3322
@@ -155,6 +199,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3323
         "-msse2"
3324
     ]
3325
 
3326
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3327
+
3328
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3329
+    DEFINES["WEBRTC_HAS_NEON"] = True
3330
+
3331
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3332
+
3333
+    CXXFLAGS += [
3334
+        "-msse2"
3335
+    ]
3336
+
3337
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3338
+
3339
+    CXXFLAGS += [
3340
+        "-msse2"
3341
+    ]
3342
+
3343
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3344
+
3345
+    CXXFLAGS += [
3346
+        "-msse2"
3347
+    ]
3348
+
3349
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3350
 
3351
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3352
@@ -176,4 +243,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3353
         "-msse2"
3354
     ]
3355
 
3356
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3357
+
3358
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3359
+    DEFINES["WEBRTC_HAS_NEON"] = True
3360
+
3361
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3362
+
3363
+    CXXFLAGS += [
3364
+        "-msse2"
3365
+    ]
3366
+
3367
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3368
+
3369
+    CXXFLAGS += [
3370
+        "-msse2"
3371
+    ]
3372
+
3373
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3374
+
3375
+    CXXFLAGS += [
3376
+        "-msse2"
3377
+    ]
3378
+
3379
 Library("audio_network_adaptor_gn")
3380
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/builtin_audio_decoder_factory_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/builtin_audio_decoder_factory_gn/moz.build
3381
index b3587a35a860..d6b5fe9e72fc 100644
3382
--- media/webrtc/trunk/webrtc/modules/audio_coding/builtin_audio_decoder_factory_gn/moz.build
3383
+++ media/webrtc/trunk/webrtc/modules/audio_coding/builtin_audio_decoder_factory_gn/moz.build
3384
@@ -80,6 +80,28 @@ if CONFIG["OS_TARGET"] == "Darwin":
3385
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3386
     ]
3387
 
3388
+if CONFIG["OS_TARGET"] == "DragonFly":
3389
+
3390
+    DEFINES["USE_X11"] = "1"
3391
+    DEFINES["WEBRTC_BSD"] = True
3392
+    DEFINES["WEBRTC_POSIX"] = True
3393
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3394
+
3395
+    LOCAL_INCLUDES += [
3396
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3397
+    ]
3398
+
3399
+if CONFIG["OS_TARGET"] == "FreeBSD":
3400
+
3401
+    DEFINES["USE_X11"] = "1"
3402
+    DEFINES["WEBRTC_BSD"] = True
3403
+    DEFINES["WEBRTC_POSIX"] = True
3404
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3405
+
3406
+    LOCAL_INCLUDES += [
3407
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3408
+    ]
3409
+
3410
 if CONFIG["OS_TARGET"] == "Linux":
3411
 
3412
     DEFINES["USE_NSS_CERTS"] = "1"
3413
@@ -97,6 +119,28 @@ if CONFIG["OS_TARGET"] == "Linux":
3414
         "rt"
3415
     ]
3416
 
3417
+if CONFIG["OS_TARGET"] == "NetBSD":
3418
+
3419
+    DEFINES["USE_X11"] = "1"
3420
+    DEFINES["WEBRTC_BSD"] = True
3421
+    DEFINES["WEBRTC_POSIX"] = True
3422
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3423
+
3424
+    LOCAL_INCLUDES += [
3425
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3426
+    ]
3427
+
3428
+if CONFIG["OS_TARGET"] == "OpenBSD":
3429
+
3430
+    DEFINES["USE_X11"] = "1"
3431
+    DEFINES["WEBRTC_BSD"] = True
3432
+    DEFINES["WEBRTC_POSIX"] = True
3433
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3434
+
3435
+    LOCAL_INCLUDES += [
3436
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3437
+    ]
3438
+
3439
 if CONFIG["OS_TARGET"] == "WINNT":
3440
 
3441
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3442
@@ -138,6 +182,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3443
 
3444
     DEFINES["_FORTIFY_SOURCE"] = "2"
3445
 
3446
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3447
+
3448
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3449
+
3450
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3451
+
3452
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3453
+
3454
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3455
+
3456
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3457
+
3458
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3459
+
3460
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3461
+
3462
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3463
 
3464
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3465
@@ -175,6 +235,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3466
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3467
     ]
3468
 
3469
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3470
+
3471
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3472
+    DEFINES["WEBRTC_HAS_NEON"] = True
3473
+
3474
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3475
+
3476
+    CXXFLAGS += [
3477
+        "-msse2"
3478
+    ]
3479
+
3480
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3481
+
3482
+    CXXFLAGS += [
3483
+        "-msse2"
3484
+    ]
3485
+
3486
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3487
+
3488
+    CXXFLAGS += [
3489
+        "-msse2"
3490
+    ]
3491
+
3492
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3493
 
3494
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3495
@@ -208,4 +291,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3496
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
3497
     ]
3498
 
3499
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3500
+
3501
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3502
+    DEFINES["WEBRTC_HAS_NEON"] = True
3503
+
3504
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3505
+
3506
+    CXXFLAGS += [
3507
+        "-msse2"
3508
+    ]
3509
+
3510
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3511
+
3512
+    CXXFLAGS += [
3513
+        "-msse2"
3514
+    ]
3515
+
3516
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3517
+
3518
+    CXXFLAGS += [
3519
+        "-msse2"
3520
+    ]
3521
+
3522
 Library("builtin_audio_decoder_factory_gn")
3523
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/cng_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/cng_gn/moz.build
3524
index ef17a4e46c28..b1f25580ddf6 100644
3525
--- media/webrtc/trunk/webrtc/modules/audio_coding/cng_gn/moz.build
3526
+++ media/webrtc/trunk/webrtc/modules/audio_coding/cng_gn/moz.build
3527
@@ -74,6 +74,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3528
     DEFINES["WEBRTC_POSIX"] = True
3529
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3530
 
3531
+if CONFIG["OS_TARGET"] == "DragonFly":
3532
+
3533
+    DEFINES["USE_X11"] = "1"
3534
+    DEFINES["WEBRTC_BSD"] = True
3535
+    DEFINES["WEBRTC_POSIX"] = True
3536
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3537
+
3538
+if CONFIG["OS_TARGET"] == "FreeBSD":
3539
+
3540
+    DEFINES["USE_X11"] = "1"
3541
+    DEFINES["WEBRTC_BSD"] = True
3542
+    DEFINES["WEBRTC_POSIX"] = True
3543
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3544
+
3545
 if CONFIG["OS_TARGET"] == "Linux":
3546
 
3547
     DEFINES["USE_NSS_CERTS"] = "1"
3548
@@ -86,6 +100,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3549
         "rt"
3550
     ]
3551
 
3552
+if CONFIG["OS_TARGET"] == "NetBSD":
3553
+
3554
+    DEFINES["USE_X11"] = "1"
3555
+    DEFINES["WEBRTC_BSD"] = True
3556
+    DEFINES["WEBRTC_POSIX"] = True
3557
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3558
+
3559
+if CONFIG["OS_TARGET"] == "OpenBSD":
3560
+
3561
+    DEFINES["USE_X11"] = "1"
3562
+    DEFINES["WEBRTC_BSD"] = True
3563
+    DEFINES["WEBRTC_POSIX"] = True
3564
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3565
+
3566
 if CONFIG["OS_TARGET"] == "WINNT":
3567
 
3568
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3569
@@ -123,6 +151,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3570
 
3571
     DEFINES["_FORTIFY_SOURCE"] = "2"
3572
 
3573
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3574
+
3575
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3576
+
3577
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3578
+
3579
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3580
+
3581
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3582
+
3583
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3584
+
3585
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3586
+
3587
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3588
+
3589
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3590
 
3591
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3592
@@ -148,6 +192,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3593
         "-msse2"
3594
     ]
3595
 
3596
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3597
+
3598
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3599
+    DEFINES["WEBRTC_HAS_NEON"] = True
3600
+
3601
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3602
+
3603
+    CXXFLAGS += [
3604
+        "-msse2"
3605
+    ]
3606
+
3607
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3608
+
3609
+    CXXFLAGS += [
3610
+        "-msse2"
3611
+    ]
3612
+
3613
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3614
+
3615
+    CXXFLAGS += [
3616
+        "-msse2"
3617
+    ]
3618
+
3619
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3620
 
3621
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3622
@@ -169,4 +236,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3623
         "-msse2"
3624
     ]
3625
 
3626
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3627
+
3628
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3629
+    DEFINES["WEBRTC_HAS_NEON"] = True
3630
+
3631
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3632
+
3633
+    CXXFLAGS += [
3634
+        "-msse2"
3635
+    ]
3636
+
3637
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3638
+
3639
+    CXXFLAGS += [
3640
+        "-msse2"
3641
+    ]
3642
+
3643
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3644
+
3645
+    CXXFLAGS += [
3646
+        "-msse2"
3647
+    ]
3648
+
3649
 Library("cng_gn")
3650
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/g711_c_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/g711_c_gn/moz.build
3651
index 8dcfed9b6292..39c49b423af0 100644
3652
--- media/webrtc/trunk/webrtc/modules/audio_coding/g711_c_gn/moz.build
3653
+++ media/webrtc/trunk/webrtc/modules/audio_coding/g711_c_gn/moz.build
3654
@@ -66,6 +66,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3655
     DEFINES["WEBRTC_POSIX"] = True
3656
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3657
 
3658
+if CONFIG["OS_TARGET"] == "DragonFly":
3659
+
3660
+    DEFINES["USE_X11"] = "1"
3661
+    DEFINES["WEBRTC_BSD"] = True
3662
+    DEFINES["WEBRTC_POSIX"] = True
3663
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3664
+
3665
+if CONFIG["OS_TARGET"] == "FreeBSD":
3666
+
3667
+    DEFINES["USE_X11"] = "1"
3668
+    DEFINES["WEBRTC_BSD"] = True
3669
+    DEFINES["WEBRTC_POSIX"] = True
3670
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3671
+
3672
 if CONFIG["OS_TARGET"] == "Linux":
3673
 
3674
     DEFINES["USE_NSS_CERTS"] = "1"
3675
@@ -74,6 +88,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3676
     DEFINES["WEBRTC_POSIX"] = True
3677
     DEFINES["_FILE_OFFSET_BITS"] = "64"
3678
 
3679
+if CONFIG["OS_TARGET"] == "NetBSD":
3680
+
3681
+    DEFINES["USE_X11"] = "1"
3682
+    DEFINES["WEBRTC_BSD"] = True
3683
+    DEFINES["WEBRTC_POSIX"] = True
3684
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3685
+
3686
+if CONFIG["OS_TARGET"] == "OpenBSD":
3687
+
3688
+    DEFINES["USE_X11"] = "1"
3689
+    DEFINES["WEBRTC_BSD"] = True
3690
+    DEFINES["WEBRTC_POSIX"] = True
3691
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3692
+
3693
 if CONFIG["OS_TARGET"] == "WINNT":
3694
 
3695
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3696
@@ -107,6 +135,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3697
 
3698
     DEFINES["_FORTIFY_SOURCE"] = "2"
3699
 
3700
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3701
+
3702
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3703
+
3704
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3705
+
3706
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3707
+
3708
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3709
+
3710
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3711
+
3712
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3713
+
3714
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3715
+
3716
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3717
 
3718
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3719
@@ -132,6 +176,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3720
         "-msse2"
3721
     ]
3722
 
3723
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3724
+
3725
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3726
+    DEFINES["WEBRTC_HAS_NEON"] = True
3727
+
3728
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3729
+
3730
+    CFLAGS += [
3731
+        "-msse2"
3732
+    ]
3733
+
3734
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3735
+
3736
+    CFLAGS += [
3737
+        "-msse2"
3738
+    ]
3739
+
3740
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3741
+
3742
+    CFLAGS += [
3743
+        "-msse2"
3744
+    ]
3745
+
3746
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3747
 
3748
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3749
@@ -153,4 +220,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3750
         "-msse2"
3751
     ]
3752
 
3753
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3754
+
3755
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3756
+    DEFINES["WEBRTC_HAS_NEON"] = True
3757
+
3758
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3759
+
3760
+    CFLAGS += [
3761
+        "-msse2"
3762
+    ]
3763
+
3764
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3765
+
3766
+    CFLAGS += [
3767
+        "-msse2"
3768
+    ]
3769
+
3770
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3771
+
3772
+    CFLAGS += [
3773
+        "-msse2"
3774
+    ]
3775
+
3776
 Library("g711_c_gn")
3777
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/g711_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/g711_gn/moz.build
3778
index cd01d13ff660..823f3c7750a7 100644
3779
--- media/webrtc/trunk/webrtc/modules/audio_coding/g711_gn/moz.build
3780
+++ media/webrtc/trunk/webrtc/modules/audio_coding/g711_gn/moz.build
3781
@@ -71,6 +71,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3782
     DEFINES["WEBRTC_POSIX"] = True
3783
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3784
 
3785
+if CONFIG["OS_TARGET"] == "DragonFly":
3786
+
3787
+    DEFINES["USE_X11"] = "1"
3788
+    DEFINES["WEBRTC_BSD"] = True
3789
+    DEFINES["WEBRTC_POSIX"] = True
3790
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3791
+
3792
+if CONFIG["OS_TARGET"] == "FreeBSD":
3793
+
3794
+    DEFINES["USE_X11"] = "1"
3795
+    DEFINES["WEBRTC_BSD"] = True
3796
+    DEFINES["WEBRTC_POSIX"] = True
3797
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3798
+
3799
 if CONFIG["OS_TARGET"] == "Linux":
3800
 
3801
     DEFINES["USE_NSS_CERTS"] = "1"
3802
@@ -79,6 +93,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3803
     DEFINES["WEBRTC_POSIX"] = True
3804
     DEFINES["_FILE_OFFSET_BITS"] = "64"
3805
 
3806
+if CONFIG["OS_TARGET"] == "NetBSD":
3807
+
3808
+    DEFINES["USE_X11"] = "1"
3809
+    DEFINES["WEBRTC_BSD"] = True
3810
+    DEFINES["WEBRTC_POSIX"] = True
3811
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3812
+
3813
+if CONFIG["OS_TARGET"] == "OpenBSD":
3814
+
3815
+    DEFINES["USE_X11"] = "1"
3816
+    DEFINES["WEBRTC_BSD"] = True
3817
+    DEFINES["WEBRTC_POSIX"] = True
3818
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3819
+
3820
 if CONFIG["OS_TARGET"] == "WINNT":
3821
 
3822
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3823
@@ -112,6 +140,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3824
 
3825
     DEFINES["_FORTIFY_SOURCE"] = "2"
3826
 
3827
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3828
+
3829
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3830
+
3831
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3832
+
3833
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3834
+
3835
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3836
+
3837
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3838
+
3839
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3840
+
3841
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3842
+
3843
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3844
 
3845
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3846
@@ -137,6 +181,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3847
         "-msse2"
3848
     ]
3849
 
3850
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3851
+
3852
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3853
+    DEFINES["WEBRTC_HAS_NEON"] = True
3854
+
3855
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3856
+
3857
+    CXXFLAGS += [
3858
+        "-msse2"
3859
+    ]
3860
+
3861
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3862
+
3863
+    CXXFLAGS += [
3864
+        "-msse2"
3865
+    ]
3866
+
3867
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3868
+
3869
+    CXXFLAGS += [
3870
+        "-msse2"
3871
+    ]
3872
+
3873
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
3874
 
3875
     DEFINES["WEBRTC_ARCH_ARM64"] = True
3876
@@ -158,4 +225,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
3877
         "-msse2"
3878
     ]
3879
 
3880
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3881
+
3882
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3883
+    DEFINES["WEBRTC_HAS_NEON"] = True
3884
+
3885
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
3886
+
3887
+    CXXFLAGS += [
3888
+        "-msse2"
3889
+    ]
3890
+
3891
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
3892
+
3893
+    CXXFLAGS += [
3894
+        "-msse2"
3895
+    ]
3896
+
3897
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
3898
+
3899
+    CXXFLAGS += [
3900
+        "-msse2"
3901
+    ]
3902
+
3903
 Library("g711_gn")
3904
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/g722_c_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/g722_c_gn/moz.build
3905
index 86cb12c5d4f8..3a97192504b2 100644
3906
--- media/webrtc/trunk/webrtc/modules/audio_coding/g722_c_gn/moz.build
3907
+++ media/webrtc/trunk/webrtc/modules/audio_coding/g722_c_gn/moz.build
3908
@@ -70,6 +70,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
3909
     DEFINES["WEBRTC_POSIX"] = True
3910
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
3911
 
3912
+if CONFIG["OS_TARGET"] == "DragonFly":
3913
+
3914
+    DEFINES["USE_X11"] = "1"
3915
+    DEFINES["WEBRTC_BSD"] = True
3916
+    DEFINES["WEBRTC_POSIX"] = True
3917
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3918
+
3919
+if CONFIG["OS_TARGET"] == "FreeBSD":
3920
+
3921
+    DEFINES["USE_X11"] = "1"
3922
+    DEFINES["WEBRTC_BSD"] = True
3923
+    DEFINES["WEBRTC_POSIX"] = True
3924
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3925
+
3926
 if CONFIG["OS_TARGET"] == "Linux":
3927
 
3928
     DEFINES["USE_NSS_CERTS"] = "1"
3929
@@ -78,6 +92,20 @@ if CONFIG["OS_TARGET"] == "Linux":
3930
     DEFINES["WEBRTC_POSIX"] = True
3931
     DEFINES["_FILE_OFFSET_BITS"] = "64"
3932
 
3933
+if CONFIG["OS_TARGET"] == "NetBSD":
3934
+
3935
+    DEFINES["USE_X11"] = "1"
3936
+    DEFINES["WEBRTC_BSD"] = True
3937
+    DEFINES["WEBRTC_POSIX"] = True
3938
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3939
+
3940
+if CONFIG["OS_TARGET"] == "OpenBSD":
3941
+
3942
+    DEFINES["USE_X11"] = "1"
3943
+    DEFINES["WEBRTC_BSD"] = True
3944
+    DEFINES["WEBRTC_POSIX"] = True
3945
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
3946
+
3947
 if CONFIG["OS_TARGET"] == "WINNT":
3948
 
3949
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
3950
@@ -111,6 +139,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
3951
 
3952
     DEFINES["_FORTIFY_SOURCE"] = "2"
3953
 
3954
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
3955
+
3956
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3957
+
3958
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3959
+
3960
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3961
+
3962
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3963
+
3964
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3965
+
3966
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3967
+
3968
+    DEFINES["_FORTIFY_SOURCE"] = "2"
3969
+
3970
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
3971
 
3972
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
3973
@@ -136,6 +180,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
3974
         "-msse2"
3975
     ]
3976
 
3977
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3978
+
3979
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
3980
+    DEFINES["WEBRTC_HAS_NEON"] = True
3981
+
3982
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
3983
+
3984
+    CFLAGS += [
3985
+        "-msse2"
3986
+    ]
3987
+
3988
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
3989
+
3990
+    CFLAGS += [
3991
+        "-msse2"
3992
+    ]
3993
+
3994
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
3995
+
3996
+    CFLAGS += [
3997
+        "-msse2"
3998
+    ]
3999
+
4000
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4001
 
4002
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4003
@@ -157,4 +224,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4004
         "-msse2"
4005
     ]
4006
 
4007
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4008
+
4009
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4010
+    DEFINES["WEBRTC_HAS_NEON"] = True
4011
+
4012
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4013
+
4014
+    CFLAGS += [
4015
+        "-msse2"
4016
+    ]
4017
+
4018
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4019
+
4020
+    CFLAGS += [
4021
+        "-msse2"
4022
+    ]
4023
+
4024
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4025
+
4026
+    CFLAGS += [
4027
+        "-msse2"
4028
+    ]
4029
+
4030
 Library("g722_c_gn")
4031
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/g722_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/g722_gn/moz.build
4032
index 4f65ac0062e4..e53fc64410e5 100644
4033
--- media/webrtc/trunk/webrtc/modules/audio_coding/g722_gn/moz.build
4034
+++ media/webrtc/trunk/webrtc/modules/audio_coding/g722_gn/moz.build
4035
@@ -71,6 +71,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
4036
     DEFINES["WEBRTC_POSIX"] = True
4037
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
4038
 
4039
+if CONFIG["OS_TARGET"] == "DragonFly":
4040
+
4041
+    DEFINES["USE_X11"] = "1"
4042
+    DEFINES["WEBRTC_BSD"] = True
4043
+    DEFINES["WEBRTC_POSIX"] = True
4044
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4045
+
4046
+if CONFIG["OS_TARGET"] == "FreeBSD":
4047
+
4048
+    DEFINES["USE_X11"] = "1"
4049
+    DEFINES["WEBRTC_BSD"] = True
4050
+    DEFINES["WEBRTC_POSIX"] = True
4051
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4052
+
4053
 if CONFIG["OS_TARGET"] == "Linux":
4054
 
4055
     DEFINES["USE_NSS_CERTS"] = "1"
4056
@@ -79,6 +93,20 @@ if CONFIG["OS_TARGET"] == "Linux":
4057
     DEFINES["WEBRTC_POSIX"] = True
4058
     DEFINES["_FILE_OFFSET_BITS"] = "64"
4059
 
4060
+if CONFIG["OS_TARGET"] == "NetBSD":
4061
+
4062
+    DEFINES["USE_X11"] = "1"
4063
+    DEFINES["WEBRTC_BSD"] = True
4064
+    DEFINES["WEBRTC_POSIX"] = True
4065
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4066
+
4067
+if CONFIG["OS_TARGET"] == "OpenBSD":
4068
+
4069
+    DEFINES["USE_X11"] = "1"
4070
+    DEFINES["WEBRTC_BSD"] = True
4071
+    DEFINES["WEBRTC_POSIX"] = True
4072
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4073
+
4074
 if CONFIG["OS_TARGET"] == "WINNT":
4075
 
4076
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4077
@@ -112,6 +140,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4078
 
4079
     DEFINES["_FORTIFY_SOURCE"] = "2"
4080
 
4081
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4082
+
4083
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4084
+
4085
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4086
+
4087
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4088
+
4089
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4090
+
4091
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4092
+
4093
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4094
+
4095
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4096
+
4097
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4098
 
4099
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4100
@@ -137,6 +181,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4101
         "-msse2"
4102
     ]
4103
 
4104
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4105
+
4106
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4107
+    DEFINES["WEBRTC_HAS_NEON"] = True
4108
+
4109
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4110
+
4111
+    CXXFLAGS += [
4112
+        "-msse2"
4113
+    ]
4114
+
4115
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4116
+
4117
+    CXXFLAGS += [
4118
+        "-msse2"
4119
+    ]
4120
+
4121
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4122
+
4123
+    CXXFLAGS += [
4124
+        "-msse2"
4125
+    ]
4126
+
4127
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4128
 
4129
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4130
@@ -158,4 +225,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4131
         "-msse2"
4132
     ]
4133
 
4134
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4135
+
4136
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4137
+    DEFINES["WEBRTC_HAS_NEON"] = True
4138
+
4139
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4140
+
4141
+    CXXFLAGS += [
4142
+        "-msse2"
4143
+    ]
4144
+
4145
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4146
+
4147
+    CXXFLAGS += [
4148
+        "-msse2"
4149
+    ]
4150
+
4151
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4152
+
4153
+    CXXFLAGS += [
4154
+        "-msse2"
4155
+    ]
4156
+
4157
 Library("g722_gn")
4158
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_c_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_c_gn/moz.build
4159
index 2b80215e7978..53632d94843b 100644
4160
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_c_gn/moz.build
4161
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_c_gn/moz.build
4162
@@ -101,6 +101,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
4163
     DEFINES["WEBRTC_POSIX"] = True
4164
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
4165
 
4166
+if CONFIG["OS_TARGET"] == "DragonFly":
4167
+
4168
+    DEFINES["USE_X11"] = "1"
4169
+    DEFINES["WEBRTC_BSD"] = True
4170
+    DEFINES["WEBRTC_POSIX"] = True
4171
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4172
+
4173
+if CONFIG["OS_TARGET"] == "FreeBSD":
4174
+
4175
+    DEFINES["USE_X11"] = "1"
4176
+    DEFINES["WEBRTC_BSD"] = True
4177
+    DEFINES["WEBRTC_POSIX"] = True
4178
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4179
+
4180
 if CONFIG["OS_TARGET"] == "Linux":
4181
 
4182
     DEFINES["USE_NSS_CERTS"] = "1"
4183
@@ -114,6 +128,20 @@ if CONFIG["OS_TARGET"] == "Linux":
4184
         "rt"
4185
     ]
4186
 
4187
+if CONFIG["OS_TARGET"] == "NetBSD":
4188
+
4189
+    DEFINES["USE_X11"] = "1"
4190
+    DEFINES["WEBRTC_BSD"] = True
4191
+    DEFINES["WEBRTC_POSIX"] = True
4192
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4193
+
4194
+if CONFIG["OS_TARGET"] == "OpenBSD":
4195
+
4196
+    DEFINES["USE_X11"] = "1"
4197
+    DEFINES["WEBRTC_BSD"] = True
4198
+    DEFINES["WEBRTC_POSIX"] = True
4199
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4200
+
4201
 if CONFIG["OS_TARGET"] == "WINNT":
4202
 
4203
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4204
@@ -151,6 +179,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4205
 
4206
     DEFINES["_FORTIFY_SOURCE"] = "2"
4207
 
4208
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4209
+
4210
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4211
+
4212
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4213
+
4214
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4215
+
4216
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4217
+
4218
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4219
+
4220
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4221
+
4222
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4223
+
4224
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4225
 
4226
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4227
@@ -176,6 +220,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4228
         "-msse2"
4229
     ]
4230
 
4231
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4232
+
4233
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4234
+    DEFINES["WEBRTC_HAS_NEON"] = True
4235
+
4236
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4237
+
4238
+    CFLAGS += [
4239
+        "-msse2"
4240
+    ]
4241
+
4242
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4243
+
4244
+    CFLAGS += [
4245
+        "-msse2"
4246
+    ]
4247
+
4248
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4249
+
4250
+    CFLAGS += [
4251
+        "-msse2"
4252
+    ]
4253
+
4254
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4255
 
4256
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4257
@@ -197,4 +264,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4258
         "-msse2"
4259
     ]
4260
 
4261
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4262
+
4263
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4264
+    DEFINES["WEBRTC_HAS_NEON"] = True
4265
+
4266
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4267
+
4268
+    CFLAGS += [
4269
+        "-msse2"
4270
+    ]
4271
+
4272
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4273
+
4274
+    CFLAGS += [
4275
+        "-msse2"
4276
+    ]
4277
+
4278
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4279
+
4280
+    CFLAGS += [
4281
+        "-msse2"
4282
+    ]
4283
+
4284
 Library("isac_c_gn")
4285
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_common_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_common_gn/moz.build
4286
index be5aa83372c0..f7117f4358f3 100644
4287
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_common_gn/moz.build
4288
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_common_gn/moz.build
4289
@@ -69,6 +69,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
4290
     DEFINES["WEBRTC_POSIX"] = True
4291
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
4292
 
4293
+if CONFIG["OS_TARGET"] == "DragonFly":
4294
+
4295
+    DEFINES["USE_X11"] = "1"
4296
+    DEFINES["WEBRTC_BSD"] = True
4297
+    DEFINES["WEBRTC_POSIX"] = True
4298
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4299
+
4300
+if CONFIG["OS_TARGET"] == "FreeBSD":
4301
+
4302
+    DEFINES["USE_X11"] = "1"
4303
+    DEFINES["WEBRTC_BSD"] = True
4304
+    DEFINES["WEBRTC_POSIX"] = True
4305
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4306
+
4307
 if CONFIG["OS_TARGET"] == "Linux":
4308
 
4309
     DEFINES["USE_NSS_CERTS"] = "1"
4310
@@ -77,6 +91,20 @@ if CONFIG["OS_TARGET"] == "Linux":
4311
     DEFINES["WEBRTC_POSIX"] = True
4312
     DEFINES["_FILE_OFFSET_BITS"] = "64"
4313
 
4314
+if CONFIG["OS_TARGET"] == "NetBSD":
4315
+
4316
+    DEFINES["USE_X11"] = "1"
4317
+    DEFINES["WEBRTC_BSD"] = True
4318
+    DEFINES["WEBRTC_POSIX"] = True
4319
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4320
+
4321
+if CONFIG["OS_TARGET"] == "OpenBSD":
4322
+
4323
+    DEFINES["USE_X11"] = "1"
4324
+    DEFINES["WEBRTC_BSD"] = True
4325
+    DEFINES["WEBRTC_POSIX"] = True
4326
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4327
+
4328
 if CONFIG["OS_TARGET"] == "WINNT":
4329
 
4330
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4331
@@ -110,6 +138,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4332
 
4333
     DEFINES["_FORTIFY_SOURCE"] = "2"
4334
 
4335
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4336
+
4337
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4338
+
4339
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4340
+
4341
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4342
+
4343
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4344
+
4345
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4346
+
4347
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4348
+
4349
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4350
+
4351
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4352
 
4353
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4354
@@ -135,6 +179,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4355
         "-msse2"
4356
     ]
4357
 
4358
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4359
+
4360
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4361
+    DEFINES["WEBRTC_HAS_NEON"] = True
4362
+
4363
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4364
+
4365
+    CXXFLAGS += [
4366
+        "-msse2"
4367
+    ]
4368
+
4369
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4370
+
4371
+    CXXFLAGS += [
4372
+        "-msse2"
4373
+    ]
4374
+
4375
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4376
+
4377
+    CXXFLAGS += [
4378
+        "-msse2"
4379
+    ]
4380
+
4381
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4382
 
4383
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4384
@@ -156,4 +223,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4385
         "-msse2"
4386
     ]
4387
 
4388
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4389
+
4390
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4391
+    DEFINES["WEBRTC_HAS_NEON"] = True
4392
+
4393
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4394
+
4395
+    CXXFLAGS += [
4396
+        "-msse2"
4397
+    ]
4398
+
4399
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4400
+
4401
+    CXXFLAGS += [
4402
+        "-msse2"
4403
+    ]
4404
+
4405
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4406
+
4407
+    CXXFLAGS += [
4408
+        "-msse2"
4409
+    ]
4410
+
4411
 Library("isac_common_gn")
4412
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_c_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_c_gn/moz.build
4413
index dd94b2d6b546..f20b32841934 100644
4414
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_c_gn/moz.build
4415
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_c_gn/moz.build
4416
@@ -110,6 +110,36 @@ if CONFIG["OS_TARGET"] == "Darwin":
4417
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4418
     ]
4419
 
4420
+if CONFIG["OS_TARGET"] == "DragonFly":
4421
+
4422
+    DEFINES["USE_X11"] = "1"
4423
+    DEFINES["WEBRTC_BSD"] = True
4424
+    DEFINES["WEBRTC_POSIX"] = True
4425
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4426
+
4427
+    SOURCES += [
4428
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_c.c"
4429
+    ]
4430
+
4431
+    UNIFIED_SOURCES += [
4432
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4433
+    ]
4434
+
4435
+if CONFIG["OS_TARGET"] == "FreeBSD":
4436
+
4437
+    DEFINES["USE_X11"] = "1"
4438
+    DEFINES["WEBRTC_BSD"] = True
4439
+    DEFINES["WEBRTC_POSIX"] = True
4440
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4441
+
4442
+    SOURCES += [
4443
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_c.c"
4444
+    ]
4445
+
4446
+    UNIFIED_SOURCES += [
4447
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4448
+    ]
4449
+
4450
 if CONFIG["OS_TARGET"] == "Linux":
4451
 
4452
     DEFINES["USE_NSS_CERTS"] = "1"
4453
@@ -130,6 +160,36 @@ if CONFIG["OS_TARGET"] == "Linux":
4454
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4455
     ]
4456
 
4457
+if CONFIG["OS_TARGET"] == "NetBSD":
4458
+
4459
+    DEFINES["USE_X11"] = "1"
4460
+    DEFINES["WEBRTC_BSD"] = True
4461
+    DEFINES["WEBRTC_POSIX"] = True
4462
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4463
+
4464
+    SOURCES += [
4465
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_c.c"
4466
+    ]
4467
+
4468
+    UNIFIED_SOURCES += [
4469
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4470
+    ]
4471
+
4472
+if CONFIG["OS_TARGET"] == "OpenBSD":
4473
+
4474
+    DEFINES["USE_X11"] = "1"
4475
+    DEFINES["WEBRTC_BSD"] = True
4476
+    DEFINES["WEBRTC_POSIX"] = True
4477
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4478
+
4479
+    SOURCES += [
4480
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_c.c"
4481
+    ]
4482
+
4483
+    UNIFIED_SOURCES += [
4484
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4485
+    ]
4486
+
4487
 if CONFIG["OS_TARGET"] == "WINNT":
4488
 
4489
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4490
@@ -175,6 +235,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4491
 
4492
     DEFINES["_FORTIFY_SOURCE"] = "2"
4493
 
4494
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4495
+
4496
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4497
+
4498
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4499
+
4500
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4501
+
4502
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4503
+
4504
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4505
+
4506
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4507
+
4508
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4509
+
4510
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4511
 
4512
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4513
@@ -221,6 +297,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4514
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4515
     ]
4516
 
4517
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4518
+
4519
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4520
+    DEFINES["WEBRTC_HAS_NEON"] = True
4521
+
4522
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4523
+
4524
+    CFLAGS += [
4525
+        "-msse2"
4526
+    ]
4527
+
4528
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4529
+
4530
+    CFLAGS += [
4531
+        "-msse2"
4532
+    ]
4533
+
4534
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4535
+
4536
+    CFLAGS += [
4537
+        "-msse2"
4538
+    ]
4539
+
4540
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4541
 
4542
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4543
@@ -263,4 +362,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4544
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c"
4545
     ]
4546
 
4547
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4548
+
4549
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4550
+    DEFINES["WEBRTC_HAS_NEON"] = True
4551
+
4552
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4553
+
4554
+    CFLAGS += [
4555
+        "-msse2"
4556
+    ]
4557
+
4558
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4559
+
4560
+    CFLAGS += [
4561
+        "-msse2"
4562
+    ]
4563
+
4564
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4565
+
4566
+    CFLAGS += [
4567
+        "-msse2"
4568
+    ]
4569
+
4570
 Library("isac_fix_c_gn")
4571
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_gn/moz.build
4572
index f6ad5df072aa..e60e24ed4c69 100644
4573
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_gn/moz.build
4574
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_fix_gn/moz.build
4575
@@ -75,6 +75,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
4576
     DEFINES["WEBRTC_POSIX"] = True
4577
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
4578
 
4579
+if CONFIG["OS_TARGET"] == "DragonFly":
4580
+
4581
+    DEFINES["USE_X11"] = "1"
4582
+    DEFINES["WEBRTC_BSD"] = True
4583
+    DEFINES["WEBRTC_POSIX"] = True
4584
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4585
+
4586
+if CONFIG["OS_TARGET"] == "FreeBSD":
4587
+
4588
+    DEFINES["USE_X11"] = "1"
4589
+    DEFINES["WEBRTC_BSD"] = True
4590
+    DEFINES["WEBRTC_POSIX"] = True
4591
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4592
+
4593
 if CONFIG["OS_TARGET"] == "Linux":
4594
 
4595
     DEFINES["USE_NSS_CERTS"] = "1"
4596
@@ -87,6 +101,20 @@ if CONFIG["OS_TARGET"] == "Linux":
4597
         "rt"
4598
     ]
4599
 
4600
+if CONFIG["OS_TARGET"] == "NetBSD":
4601
+
4602
+    DEFINES["USE_X11"] = "1"
4603
+    DEFINES["WEBRTC_BSD"] = True
4604
+    DEFINES["WEBRTC_POSIX"] = True
4605
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4606
+
4607
+if CONFIG["OS_TARGET"] == "OpenBSD":
4608
+
4609
+    DEFINES["USE_X11"] = "1"
4610
+    DEFINES["WEBRTC_BSD"] = True
4611
+    DEFINES["WEBRTC_POSIX"] = True
4612
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4613
+
4614
 if CONFIG["OS_TARGET"] == "WINNT":
4615
 
4616
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4617
@@ -124,6 +152,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4618
 
4619
     DEFINES["_FORTIFY_SOURCE"] = "2"
4620
 
4621
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4622
+
4623
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4624
+
4625
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4626
+
4627
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4628
+
4629
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4630
+
4631
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4632
+
4633
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4634
+
4635
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4636
+
4637
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4638
 
4639
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4640
@@ -149,6 +193,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4641
         "-msse2"
4642
     ]
4643
 
4644
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4645
+
4646
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4647
+    DEFINES["WEBRTC_HAS_NEON"] = True
4648
+
4649
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4650
+
4651
+    CXXFLAGS += [
4652
+        "-msse2"
4653
+    ]
4654
+
4655
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4656
+
4657
+    CXXFLAGS += [
4658
+        "-msse2"
4659
+    ]
4660
+
4661
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4662
+
4663
+    CXXFLAGS += [
4664
+        "-msse2"
4665
+    ]
4666
+
4667
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4668
 
4669
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4670
@@ -170,4 +237,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4671
         "-msse2"
4672
     ]
4673
 
4674
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4675
+
4676
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4677
+    DEFINES["WEBRTC_HAS_NEON"] = True
4678
+
4679
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4680
+
4681
+    CXXFLAGS += [
4682
+        "-msse2"
4683
+    ]
4684
+
4685
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4686
+
4687
+    CXXFLAGS += [
4688
+        "-msse2"
4689
+    ]
4690
+
4691
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4692
+
4693
+    CXXFLAGS += [
4694
+        "-msse2"
4695
+    ]
4696
+
4697
 Library("isac_fix_gn")
4698
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_gn/moz.build
4699
index 9af02ae6b976..83fa14ce6c6b 100644
4700
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_gn/moz.build
4701
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_gn/moz.build
4702
@@ -72,6 +72,20 @@ if CONFIG["OS_TARGET"] == "Darwin":
4703
     DEFINES["WEBRTC_POSIX"] = True
4704
     DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"
4705
 
4706
+if CONFIG["OS_TARGET"] == "DragonFly":
4707
+
4708
+    DEFINES["USE_X11"] = "1"
4709
+    DEFINES["WEBRTC_BSD"] = True
4710
+    DEFINES["WEBRTC_POSIX"] = True
4711
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4712
+
4713
+if CONFIG["OS_TARGET"] == "FreeBSD":
4714
+
4715
+    DEFINES["USE_X11"] = "1"
4716
+    DEFINES["WEBRTC_BSD"] = True
4717
+    DEFINES["WEBRTC_POSIX"] = True
4718
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4719
+
4720
 if CONFIG["OS_TARGET"] == "Linux":
4721
 
4722
     DEFINES["USE_NSS_CERTS"] = "1"
4723
@@ -85,6 +99,20 @@ if CONFIG["OS_TARGET"] == "Linux":
4724
         "rt"
4725
     ]
4726
 
4727
+if CONFIG["OS_TARGET"] == "NetBSD":
4728
+
4729
+    DEFINES["USE_X11"] = "1"
4730
+    DEFINES["WEBRTC_BSD"] = True
4731
+    DEFINES["WEBRTC_POSIX"] = True
4732
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4733
+
4734
+if CONFIG["OS_TARGET"] == "OpenBSD":
4735
+
4736
+    DEFINES["USE_X11"] = "1"
4737
+    DEFINES["WEBRTC_BSD"] = True
4738
+    DEFINES["WEBRTC_POSIX"] = True
4739
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4740
+
4741
 if CONFIG["OS_TARGET"] == "WINNT":
4742
 
4743
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4744
@@ -122,6 +150,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4745
 
4746
     DEFINES["_FORTIFY_SOURCE"] = "2"
4747
 
4748
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4749
+
4750
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4751
+
4752
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4753
+
4754
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4755
+
4756
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4757
+
4758
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4759
+
4760
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4761
+
4762
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4763
+
4764
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4765
 
4766
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4767
@@ -147,6 +191,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not C
4768
         "-msse2"
4769
     ]
4770
 
4771
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4772
+
4773
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4774
+    DEFINES["WEBRTC_HAS_NEON"] = True
4775
+
4776
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4777
+
4778
+    CXXFLAGS += [
4779
+        "-msse2"
4780
+    ]
4781
+
4782
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4783
+
4784
+    CXXFLAGS += [
4785
+        "-msse2"
4786
+    ]
4787
+
4788
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4789
+
4790
+    CXXFLAGS += [
4791
+        "-msse2"
4792
+    ]
4793
+
4794
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
4795
 
4796
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4797
@@ -168,4 +235,27 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and CONFI
4798
         "-msse2"
4799
     ]
4800
 
4801
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "aarch64" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4802
+
4803
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4804
+    DEFINES["WEBRTC_HAS_NEON"] = True
4805
+
4806
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
4807
+
4808
+    CXXFLAGS += [
4809
+        "-msse2"
4810
+    ]
4811
+
4812
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "NetBSD":
4813
+
4814
+    CXXFLAGS += [
4815
+        "-msse2"
4816
+    ]
4817
+
4818
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == "x86" and CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
4819
+
4820
+    CXXFLAGS += [
4821
+        "-msse2"
4822
+    ]
4823
+
4824
 Library("isac_gn")
4825
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn/moz.build
4826
index 0d32b4ac0ecf..86360db061ad 100644
4827
--- media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn/moz.build
4828
+++ media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn/moz.build
4829
@@ -10,25 +10,15 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
4830
 COMPILE_FLAGS["STL"] = []
4831
 AllowCompilerWarnings()
4832
 
4833
-DEFINES["ANDROID"] = True
4834
-DEFINES["ANDROID_NDK_VERSION"] = "r12b"
4835
 DEFINES["CHROMIUM_BUILD"] = True
4836
-DEFINES["DISABLE_NACL"] = True
4837
 DEFINES["EXPAT_RELATIVE_PATH"] = True
4838
-DEFINES["HAVE_SYS_UIO_H"] = True
4839
-DEFINES["NO_TCMALLOC"] = True
4840
-DEFINES["USE_OPENSSL_CERTS"] = "1"
4841
 DEFINES["V8_DEPRECATION_WARNINGS"] = True
4842
-DEFINES["WEBRTC_ANDROID"] = True
4843
-DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
4844
 DEFINES["WEBRTC_HAS_NEON"] = True
4845
 DEFINES["WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE"] = True
4846
-DEFINES["WEBRTC_LINUX"] = True
4847
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
4848
 DEFINES["WEBRTC_POSIX"] = True
4849
 DEFINES["WEBRTC_RESTRICT_LOGGING"] = True
4850
 DEFINES["_FILE_OFFSET_BITS"] = "64"
4851
-DEFINES["__GNU_SOURCE"] = "1"
4852
 
4853
 FINAL_LIBRARY = "webrtc"
4854
 
4855
@@ -45,10 +35,6 @@ LOCAL_INCLUDES += [
4856
     "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/include/"
4857
 ]
4858
 
4859
-OS_LIBS += [
4860
-    "log"
4861
-]
4862
-
4863
 UNIFIED_SOURCES += [
4864
     "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c",
4865
     "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c",
4866
@@ -69,6 +55,29 @@ if CONFIG["MOZ_DEBUG"] == "1":
4867
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
4868
     DEFINES["WTF_USE_DYNAMIC_ANNOTATIONS"] = "1"
4869
 
4870
+if CONFIG["OS_TARGET"] == "Android":
4871
+
4872
+    DEFINES["ANDROID"] = True
4873
+    DEFINES["ANDROID_NDK_VERSION"] = "r12b"
4874
+    DEFINES["DISABLE_NACL"] = True
4875
+    DEFINES["HAVE_SYS_UIO_H"] = True
4876
+    DEFINES["NO_TCMALLOC"] = True
4877
+    DEFINES["USE_OPENSSL_CERTS"] = "1"
4878
+    DEFINES["WEBRTC_ANDROID"] = True
4879
+    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
4880
+    DEFINES["WEBRTC_LINUX"] = True
4881
+    DEFINES["__GNU_SOURCE"] = "1"
4882
+
4883
+    OS_LIBS += [
4884
+        "log"
4885
+    ]
4886
+
4887
+if CONFIG["OS_TARGET"] == "FreeBSD":
4888
+
4889
+    DEFINES["USE_X11"] = "1"
4890
+    DEFINES["WEBRTC_ARCH_ARM64"] = True
4891
+    DEFINES["WEBRTC_BSD"] = True
4892
+
4893
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["HOST_CPU_ARCH"] == "x86_64" and not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android":
4894
 
4895
     DEFINES["WEBRTC_ARCH_ARM64"] = True
4896
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/neteq_gn/moz.build media/webrtc/trunk/webrtc/modules/audio_coding/neteq_gn/moz.build
4897
index 2a2f7ed76fd3..3423d92fd759 100644
4898
--- media/webrtc/trunk/webrtc/modules/audio_coding/neteq_gn/moz.build
4899
+++ media/webrtc/trunk/webrtc/modules/audio_coding/neteq_gn/moz.build
4900
@@ -123,6 +123,30 @@ if CONFIG["OS_TARGET"] == "Darwin":
4901
         "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
4902
     ]
4903
 
4904
+if CONFIG["OS_TARGET"] == "DragonFly":
4905
+
4906
+    DEFINES["USE_X11"] = "1"
4907
+    DEFINES["WEBRTC_BSD"] = True
4908
+    DEFINES["WEBRTC_CODEC_ISAC"] = True
4909
+    DEFINES["WEBRTC_POSIX"] = True
4910
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4911
+
4912
+    LOCAL_INCLUDES += [
4913
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
4914
+    ]
4915
+
4916
+if CONFIG["OS_TARGET"] == "FreeBSD":
4917
+
4918
+    DEFINES["USE_X11"] = "1"
4919
+    DEFINES["WEBRTC_BSD"] = True
4920
+    DEFINES["WEBRTC_CODEC_ISAC"] = True
4921
+    DEFINES["WEBRTC_POSIX"] = True
4922
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4923
+
4924
+    LOCAL_INCLUDES += [
4925
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
4926
+    ]
4927
+
4928
 if CONFIG["OS_TARGET"] == "Linux":
4929
 
4930
     DEFINES["USE_NSS_CERTS"] = "1"
4931
@@ -141,6 +165,30 @@ if CONFIG["OS_TARGET"] == "Linux":
4932
         "rt"
4933
     ]
4934
 
4935
+if CONFIG["OS_TARGET"] == "NetBSD":
4936
+
4937
+    DEFINES["USE_X11"] = "1"
4938
+    DEFINES["WEBRTC_BSD"] = True
4939
+    DEFINES["WEBRTC_CODEC_ISAC"] = True
4940
+    DEFINES["WEBRTC_POSIX"] = True
4941
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4942
+
4943
+    LOCAL_INCLUDES += [
4944
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
4945
+    ]
4946
+
4947
+if CONFIG["OS_TARGET"] == "OpenBSD":
4948
+
4949
+    DEFINES["USE_X11"] = "1"
4950
+    DEFINES["WEBRTC_BSD"] = True
4951
+    DEFINES["WEBRTC_CODEC_ISAC"] = True
4952
+    DEFINES["WEBRTC_POSIX"] = True
4953
+    DEFINES["_FILE_OFFSET_BITS"] = "64"
4954
+
4955
+    LOCAL_INCLUDES += [
4956
+        "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/main/include/"
4957
+    ]
4958
+
4959
 if CONFIG["OS_TARGET"] == "WINNT":
4960
 
4961
     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
4962
@@ -183,6 +231,22 @@ if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":
4963
 
4964
     DEFINES["_FORTIFY_SOURCE"] = "2"
4965
 
4966
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":
4967
+
4968
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4969
+
4970
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":
4971
+
4972
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4973
+
4974
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":
4975
+
4976
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4977
+
4978
+if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":
4979
+
4980
+    DEFINES["_FORTIFY_SOURCE"] = "2"
4981
+
4982
 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
4983
 
4984
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
4985