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 375-381 post-patch-SNDIO-on: Link Here
375
.endif
375
.endif
376
376
377
.if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54
377
.if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54
378
BUILD_DEPENDS+=	${RUST_PORT:T}>=1.22.1:${RUST_PORT}
378
BUILD_DEPENDS+=	${RUST_PORT:T}>=1.24:${RUST_PORT}
379
RUST_PORT?=		lang/rust
379
RUST_PORT?=		lang/rust
380
. if ${MOZILLA_VER:R:R} < 54
380
. if ${MOZILLA_VER:R:R} < 54
381
MOZ_OPTIONS+=	--enable-rust
381
MOZ_OPTIONS+=	--enable-rust
(-)b/www/firefox-i18n/Makefile (-2 / +2 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	firefox-i18n
4
PORTNAME=	firefox-i18n
5
PORTVERSION=	59.0.1
5
PORTVERSION=	60.0b4
6
CATEGORIES=	www
6
CATEGORIES=	www
7
MASTER_SITES=	MOZILLA/${PORTNAME:S|-i18n||}/releases/${DISTVERSION}/linux-i686/xpi \
7
MASTER_SITES=	MOZILLA/${PORTNAME:S|-i18n||}/releases/${DISTVERSION}/linux-i686/xpi \
8
		MOZILLA/${PORTNAME:S|-i18n||}/candidates/${DISTVERSION}-candidates/build1/linux-i686/xpi
8
		MOZILLA/${PORTNAME:S|-i18n||}/candidates/${DISTVERSION}-candidates/build1/linux-i686/xpi
Lines 15-21 COMMENT= Localized interface for Firefox Link Here
15
15
16
EXTRACT_DEPENDS=	zip:archivers/zip
16
EXTRACT_DEPENDS=	zip:archivers/zip
17
17
18
USES=		zip:infozip gecko:firefox,59,build
18
USES=		zip:infozip gecko:firefox,60,build
19
USE_XPI=	firefox
19
USE_XPI=	firefox
20
20
21
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 (-194 / +196 lines)
Lines 1-195 Link Here
1
TIMESTAMP = 1521151925
1
TIMESTAMP = 1521151925
2
SHA256 (xpi/firefox-i18n-59.0.1/ach.xpi) = ecd1ba29435dd19943d2bdd38af4d65de1499e2a237e6d3a79288b9d141bb56a
2
SHA256 (xpi/firefox-i18n-60.0b4/ach.xpi) = a376d8807d77695771c32a8f64c4b87b487f33705178221499a768160ee3d0c9
3
SIZE (xpi/firefox-i18n-59.0.1/ach.xpi) = 439227
3
SIZE (xpi/firefox-i18n-60.0b4/ach.xpi) = 447332
4
SHA256 (xpi/firefox-i18n-59.0.1/af.xpi) = 917d879386cf361976fc0ee7bd1c0e0595066b4d4ce69aeb5f22f4ab3ababf6d
4
SHA256 (xpi/firefox-i18n-60.0b4/af.xpi) = c9b3906996d8d9a696b7a4efdce96193733deeaae74f3e63cdf5d5c4fbcdfcae
5
SIZE (xpi/firefox-i18n-59.0.1/af.xpi) = 436731
5
SIZE (xpi/firefox-i18n-60.0b4/af.xpi) = 444620
6
SHA256 (xpi/firefox-i18n-59.0.1/an.xpi) = 7b0201eb9da4606f27381d684a15b5684a2db3251e7e97c27e3bc1ee2f109fbe
6
SHA256 (xpi/firefox-i18n-60.0b4/an.xpi) = 518a9a328266da102bb2866cbfdee73e950b37ba1869d2a5b5bc7c3e695584f5
7
SIZE (xpi/firefox-i18n-59.0.1/an.xpi) = 463405
7
SIZE (xpi/firefox-i18n-60.0b4/an.xpi) = 470870
8
SHA256 (xpi/firefox-i18n-59.0.1/ar.xpi) = 0674aa88c32b67c70d089bcf2798f9b5e407cb660da2cd3ddd8809da25be1692
8
SHA256 (xpi/firefox-i18n-60.0b4/ar.xpi) = a429238efb544df40ce07effea9efccd6a5c4f95cc41041d5de0b891fea7d90b
9
SIZE (xpi/firefox-i18n-59.0.1/ar.xpi) = 486633
9
SIZE (xpi/firefox-i18n-60.0b4/ar.xpi) = 495469
10
SHA256 (xpi/firefox-i18n-59.0.1/as.xpi) = d413a03fb978ee2eabaf120522fd673d1ce428b8ee6cfc0fc07a31bef26609f5
10
SHA256 (xpi/firefox-i18n-60.0b4/as.xpi) = a0e37fa706606d07b0378c78eec35e6f2a850988ea31c21e5d1561052f44a730
11
SIZE (xpi/firefox-i18n-59.0.1/as.xpi) = 483301
11
SIZE (xpi/firefox-i18n-60.0b4/as.xpi) = 488392
12
SHA256 (xpi/firefox-i18n-59.0.1/ast.xpi) = 956449e1fded28144ab8e318bc1a5f3567cef659d02a7a962cf61aa0b64d54a0
12
SHA256 (xpi/firefox-i18n-60.0b4/ast.xpi) = a12bfc5268616f4acc94a600bc49163097031a41d8c6f3d682cb3ebc7e6940d2
13
SIZE (xpi/firefox-i18n-59.0.1/ast.xpi) = 454342
13
SIZE (xpi/firefox-i18n-60.0b4/ast.xpi) = 462803
14
SHA256 (xpi/firefox-i18n-59.0.1/az.xpi) = 257266c1a8a8498722eacb20dc37ccdea9da50a3069762f756f0539c235e6a1d
14
SHA256 (xpi/firefox-i18n-60.0b4/az.xpi) = b8b4eab83098f705d288b78313742e4695e3a6439763a30b38a4d783622ed49b
15
SIZE (xpi/firefox-i18n-59.0.1/az.xpi) = 464270
15
SIZE (xpi/firefox-i18n-60.0b4/az.xpi) = 473956
16
SHA256 (xpi/firefox-i18n-59.0.1/be.xpi) = a83112c8d36c659ef733a47fc40e64d9015ed70e213814954d5761633c2cf30b
16
SHA256 (xpi/firefox-i18n-60.0b4/be.xpi) = e69e40ead5c5a96709f6a51ebe27e1b4e0babf7ee724c65c251be7f4a96b63af
17
SIZE (xpi/firefox-i18n-59.0.1/be.xpi) = 517059
17
SIZE (xpi/firefox-i18n-60.0b4/be.xpi) = 525502
18
SHA256 (xpi/firefox-i18n-59.0.1/bg.xpi) = 303749c1af03c5eb5304135849513f066d4ed2b276667edafe63405a85fa4a84
18
SHA256 (xpi/firefox-i18n-60.0b4/bg.xpi) = eaa54f16feae7d15a2ec92401b675a4426dc2c23c66cdd764798a4915df218a3
19
SIZE (xpi/firefox-i18n-59.0.1/bg.xpi) = 508613
19
SIZE (xpi/firefox-i18n-60.0b4/bg.xpi) = 518267
20
SHA256 (xpi/firefox-i18n-59.0.1/bn-BD.xpi) = 13cc00f1bcb4feb573f2d2e68e556af4e01e3240c038b2e3b4b03ee6befc8f85
20
SHA256 (xpi/firefox-i18n-60.0b4/bn-BD.xpi) = 7bf59ddc04dc9943ed03d77d36ba09e38d639264167dc51d727e31a7b93eeeab
21
SIZE (xpi/firefox-i18n-59.0.1/bn-BD.xpi) = 526352
21
SIZE (xpi/firefox-i18n-60.0b4/bn-BD.xpi) = 534542
22
SHA256 (xpi/firefox-i18n-59.0.1/bn-IN.xpi) = 9075e2b278805451b4b52456ee954cea22740ceb63b82304b22cefd0b82b6848
22
SHA256 (xpi/firefox-i18n-60.0b4/bn-IN.xpi) = dc70559be2467b6183fd34aa1c3bc6deb3fe306764d937294cd6c7557cade2e4
23
SIZE (xpi/firefox-i18n-59.0.1/bn-IN.xpi) = 510797
23
SIZE (xpi/firefox-i18n-60.0b4/bn-IN.xpi) = 520824
24
SHA256 (xpi/firefox-i18n-59.0.1/br.xpi) = 74a20a0dbff85f72af70fa988990c7deadf38ba034c0706500538debf3545e84
24
SHA256 (xpi/firefox-i18n-60.0b4/br.xpi) = f88a8ab62810daacab065824cfc338532751657c123f9f76c92a0f813cfba8f4
25
SIZE (xpi/firefox-i18n-59.0.1/br.xpi) = 451719
25
SIZE (xpi/firefox-i18n-60.0b4/br.xpi) = 460012
26
SHA256 (xpi/firefox-i18n-59.0.1/bs.xpi) = 28f0a46f87dfebda97dafdc299164d6b24379019a82c458e68dfa3e8363faf03
26
SHA256 (xpi/firefox-i18n-60.0b4/bs.xpi) = 3e06f0263896ca0ea605937c243fc527ed8f387e1520571bd466187067b961fa
27
SIZE (xpi/firefox-i18n-59.0.1/bs.xpi) = 457859
27
SIZE (xpi/firefox-i18n-60.0b4/bs.xpi) = 466806
28
SHA256 (xpi/firefox-i18n-59.0.1/ca.xpi) = 97953e7ef3bdbadb386ef306d8be8f5ec28f9c012e48f9875855c25c044dc270
28
SHA256 (xpi/firefox-i18n-60.0b4/ca.xpi) = e4cbdfd7026612972966ce94535dd78de28b9e4279014f17ab7c06b09c3022b1
29
SIZE (xpi/firefox-i18n-59.0.1/ca.xpi) = 464912
29
SIZE (xpi/firefox-i18n-60.0b4/ca.xpi) = 474166
30
SHA256 (xpi/firefox-i18n-59.0.1/cak.xpi) = fc12b006bf3f2f4d476c89f227b03ff59b51c81e4c3c0726e3cdb3016d0997bd
30
SHA256 (xpi/firefox-i18n-60.0b4/cak.xpi) = 9cb42fa9d249072e8286f71895e2b40cec704057909d242d471d0d0283add5e5
31
SIZE (xpi/firefox-i18n-59.0.1/cak.xpi) = 475234
31
SIZE (xpi/firefox-i18n-60.0b4/cak.xpi) = 482991
32
SHA256 (xpi/firefox-i18n-59.0.1/cs.xpi) = 63e37c027b27207ea3d3651d7b712ba4e2d661d4e5286e1a6ec8bb4469c3c30b
32
SHA256 (xpi/firefox-i18n-60.0b4/cs.xpi) = 82548bad2bed3bff521dffdde727c4c1a68a0d657bb6e1062c691e6fb9683217
33
SIZE (xpi/firefox-i18n-59.0.1/cs.xpi) = 471575
33
SIZE (xpi/firefox-i18n-60.0b4/cs.xpi) = 478162
34
SHA256 (xpi/firefox-i18n-59.0.1/cy.xpi) = 357962244e13fea93e88bf486099b5c4cc117bf324ba8933d11a4f5fff61f852
34
SHA256 (xpi/firefox-i18n-60.0b4/cy.xpi) = 5292129bfa45eede558d25f23dd23b78b506bdb423f2d8695fe39cffa16534ee
35
SIZE (xpi/firefox-i18n-59.0.1/cy.xpi) = 454433
35
SIZE (xpi/firefox-i18n-60.0b4/cy.xpi) = 463807
36
SHA256 (xpi/firefox-i18n-59.0.1/da.xpi) = a15f383e39f4b11e0fe014063224145f45429ae8b51d731db872e1b52b4ad749
36
SHA256 (xpi/firefox-i18n-60.0b4/da.xpi) = 2a2ba08f178747755190e5f842a4aa9a46adaf0f7e5c0f108a9c6c3b54dd902e
37
SIZE (xpi/firefox-i18n-59.0.1/da.xpi) = 446949
37
SIZE (xpi/firefox-i18n-60.0b4/da.xpi) = 455921
38
SHA256 (xpi/firefox-i18n-59.0.1/de.xpi) = aa1d03f9aada0f5d575a021ea0944fce026a34a8ecf03a5b18077e2dcd7797a1
38
SHA256 (xpi/firefox-i18n-60.0b4/de.xpi) = 2e6467c6fe6cc82a1184fad55a676094877c3027af222dcb77fe6a8df421609e
39
SIZE (xpi/firefox-i18n-59.0.1/de.xpi) = 466273
39
SIZE (xpi/firefox-i18n-60.0b4/de.xpi) = 476407
40
SHA256 (xpi/firefox-i18n-59.0.1/dsb.xpi) = 572b856c971bf7d99867fb462039f698dc5f068a49f3b564d7dd732d6b1d758d
40
SHA256 (xpi/firefox-i18n-60.0b4/dsb.xpi) = 8ff286d03b71112f03bd3634b676ffa07d8fb2cce8669f4464168b9afe932364
41
SIZE (xpi/firefox-i18n-59.0.1/dsb.xpi) = 478975
41
SIZE (xpi/firefox-i18n-60.0b4/dsb.xpi) = 485591
42
SHA256 (xpi/firefox-i18n-59.0.1/el.xpi) = 7378eed475cccfe541c65f8634ff24e8dc3bc62553b396e9f68da5821b417bed
42
SHA256 (xpi/firefox-i18n-60.0b4/el.xpi) = 8ab2990720e9aa776ad3c89648c1e5874e4d11ba859d2f4d2702768c04410648
43
SIZE (xpi/firefox-i18n-59.0.1/el.xpi) = 531408
43
SIZE (xpi/firefox-i18n-60.0b4/el.xpi) = 541174
44
SHA256 (xpi/firefox-i18n-59.0.1/en-GB.xpi) = 92d00ee7eed2c099d3588227ba1ca172371f07b388fc866d20e4a3c22e7d3cc2
44
SHA256 (xpi/firefox-i18n-60.0b4/en-GB.xpi) = c61f9726eda91920c34bdb9acf3adda0ba6c713ea568b9a5d42b9326c3b0f8be
45
SIZE (xpi/firefox-i18n-59.0.1/en-GB.xpi) = 434300
45
SIZE (xpi/firefox-i18n-60.0b4/en-GB.xpi) = 443384
46
SHA256 (xpi/firefox-i18n-59.0.1/en-US.xpi) = 6b78a5ba462f877fe1d64c9bf2e8db3e4426e66aaa5ad3151f8a429d46e988e0
46
SHA256 (xpi/firefox-i18n-60.0b4/en-US.xpi) = 685e2500d398733e26e3577c9b7f3641cfb317cad516e48533811dbc3c433808
47
SIZE (xpi/firefox-i18n-59.0.1/en-US.xpi) = 432749
47
SIZE (xpi/firefox-i18n-60.0b4/en-US.xpi) = 439188
48
SHA256 (xpi/firefox-i18n-59.0.1/en-ZA.xpi) = d084a136f8358f2c0709b983ceebded40cedb2249ef438a8ec1e1fb5e358e7ff
48
SHA256 (xpi/firefox-i18n-60.0b4/en-ZA.xpi) = 6ba899d8d0849eea1a6ad34dddb4ea64cf5a2beedcdc8a4317f9f99655499c9c
49
SIZE (xpi/firefox-i18n-59.0.1/en-ZA.xpi) = 427365
49
SIZE (xpi/firefox-i18n-60.0b4/en-ZA.xpi) = 433608
50
SHA256 (xpi/firefox-i18n-59.0.1/eo.xpi) = 7bee8c904213fbfc33b2a8ddcace8d63b85fee996b753a49d7d77cc85152086a
50
SHA256 (xpi/firefox-i18n-60.0b4/eo.xpi) = 8d4f377aedf5b1351e5281b90a1ba92cdb4d65f799b4ab82d339a0352e4f6605
51
SIZE (xpi/firefox-i18n-59.0.1/eo.xpi) = 453367
51
SIZE (xpi/firefox-i18n-60.0b4/eo.xpi) = 461267
52
SHA256 (xpi/firefox-i18n-59.0.1/es-AR.xpi) = 1835efdc6145a47e0d4fe94bcd5eb5904c0435d2d09c8673eaa981521a529ce6
52
SHA256 (xpi/firefox-i18n-60.0b4/es-AR.xpi) = a4e264a2022d5ae6041b89db6e3d3a34d7dea087f8219ce1ab8c558c948474f5
53
SIZE (xpi/firefox-i18n-59.0.1/es-AR.xpi) = 461797
53
SIZE (xpi/firefox-i18n-60.0b4/es-AR.xpi) = 471383
54
SHA256 (xpi/firefox-i18n-59.0.1/es-CL.xpi) = e8a31cb6715335f811565ba00dff5580e04139981344fd3ec91f92c028cdafa4
54
SHA256 (xpi/firefox-i18n-60.0b4/es-CL.xpi) = 40a63eebe2aa1ab94c039a36a28d6a1e0f52bae4054a51440c5b8d628660d7c3
55
SIZE (xpi/firefox-i18n-59.0.1/es-CL.xpi) = 464654
55
SIZE (xpi/firefox-i18n-60.0b4/es-CL.xpi) = 473943
56
SHA256 (xpi/firefox-i18n-59.0.1/es-ES.xpi) = bfb6038c30d18faa11490750ae19ecccbf61dfd25f8172792e99321e619230ad
56
SHA256 (xpi/firefox-i18n-60.0b4/es-ES.xpi) = 0a9f01d1a7494dfa7a42419398802233c5848f4638d1ddc0f53ba760180c6bcc
57
SIZE (xpi/firefox-i18n-59.0.1/es-ES.xpi) = 348463
57
SIZE (xpi/firefox-i18n-60.0b4/es-ES.xpi) = 396256
58
SHA256 (xpi/firefox-i18n-59.0.1/es-MX.xpi) = f92ea0e49ed3e052228a84685cde361f7ddb222bca6c7d50ecbee013994df910
58
SHA256 (xpi/firefox-i18n-60.0b4/es-MX.xpi) = b1b4f74b30ec04d50d30cbfe18f2009cae5e65003e83fdd2b44912cf22511043
59
SIZE (xpi/firefox-i18n-59.0.1/es-MX.xpi) = 466313
59
SIZE (xpi/firefox-i18n-60.0b4/es-MX.xpi) = 475167
60
SHA256 (xpi/firefox-i18n-59.0.1/et.xpi) = 0abf3c5686c301775ad9ffa6411c219d2d4d620589ff930ec1714123f48f6881
60
SHA256 (xpi/firefox-i18n-60.0b4/et.xpi) = 9916c028fa48d3e233b38c55c31b896a68a778d37136c4fc1c09db1c56f94218
61
SIZE (xpi/firefox-i18n-59.0.1/et.xpi) = 445394
61
SIZE (xpi/firefox-i18n-60.0b4/et.xpi) = 455974
62
SHA256 (xpi/firefox-i18n-59.0.1/eu.xpi) = 1df512fac2219dd3decd48ea5aa7c5af6ba1eb65348d122020afaf237a04b238
62
SHA256 (xpi/firefox-i18n-60.0b4/eu.xpi) = 7155b203ba73c581a9b862023b914a87031763bb73e8846931163179af673e5d
63
SIZE (xpi/firefox-i18n-59.0.1/eu.xpi) = 455236
63
SIZE (xpi/firefox-i18n-60.0b4/eu.xpi) = 462858
64
SHA256 (xpi/firefox-i18n-59.0.1/fa.xpi) = 83cf18e8fc6599b0f4fd3a4991ab01b99da4ecb65708c92848749cf2a7ef0867
64
SHA256 (xpi/firefox-i18n-60.0b4/fa.xpi) = 22b35ab1e643253653ea1ced5d424738249472e5fffa8fa770cc0ce9b05b8899
65
SIZE (xpi/firefox-i18n-59.0.1/fa.xpi) = 508098
65
SIZE (xpi/firefox-i18n-60.0b4/fa.xpi) = 517840
66
SHA256 (xpi/firefox-i18n-59.0.1/ff.xpi) = 1f90aa31ca2b9b93fe80a25a03d5a304c30cdcba9c77cf10bd1a4eff43bd0a91
66
SHA256 (xpi/firefox-i18n-60.0b4/ff.xpi) = 072997344969a1272f6f3738f9421c003b3752b3976e9b99137905fccc82ffba
67
SIZE (xpi/firefox-i18n-59.0.1/ff.xpi) = 455026
67
SIZE (xpi/firefox-i18n-60.0b4/ff.xpi) = 463545
68
SHA256 (xpi/firefox-i18n-59.0.1/fi.xpi) = af9fb470144b4d524d27f683116bf40388b37e8a88266a53fc17d22978f88dd1
68
SHA256 (xpi/firefox-i18n-60.0b4/fi.xpi) = 50467d9412d28dd000ddf9467976d77d75589060529d1dbb432fbd15d214a411
69
SIZE (xpi/firefox-i18n-59.0.1/fi.xpi) = 445182
69
SIZE (xpi/firefox-i18n-60.0b4/fi.xpi) = 454783
70
SHA256 (xpi/firefox-i18n-59.0.1/fr.xpi) = 0df0b098a41723f4e950dc0e88d041ee89efdc984cb317c250f63cf0bb9d12a7
70
SHA256 (xpi/firefox-i18n-60.0b4/fr.xpi) = a236cad8d771e1bcbc0fbd2c74705fb3349ea828e5b1cdccb1b3a580c31566b6
71
SIZE (xpi/firefox-i18n-59.0.1/fr.xpi) = 473593
71
SIZE (xpi/firefox-i18n-60.0b4/fr.xpi) = 482536
72
SHA256 (xpi/firefox-i18n-59.0.1/fy-NL.xpi) = dbe46d9218b4b2ad83e678d2ab70422e779bde1b6254b10006d621a59a5af30b
72
SHA256 (xpi/firefox-i18n-60.0b4/fy-NL.xpi) = 075917997ad67eefc36fd1b634037f5da68317565ea274666170e6a9234998ae
73
SIZE (xpi/firefox-i18n-59.0.1/fy-NL.xpi) = 462918
73
SIZE (xpi/firefox-i18n-60.0b4/fy-NL.xpi) = 471877
74
SHA256 (xpi/firefox-i18n-59.0.1/ga-IE.xpi) = 7efe47e0b58eb6acab98a7846a8100ead9e12666524cc90c63dc2a87ab1dd34c
74
SHA256 (xpi/firefox-i18n-60.0b4/ga-IE.xpi) = a581433fe39d478ec76921e54cd79a9957553d255d08313ab7948dc1abca1cc9
75
SIZE (xpi/firefox-i18n-59.0.1/ga-IE.xpi) = 471909
75
SIZE (xpi/firefox-i18n-60.0b4/ga-IE.xpi) = 481339
76
SHA256 (xpi/firefox-i18n-59.0.1/gd.xpi) = e72f3c50f114e2a697baafbf427e2a0372d74e73186925051f9a2a3647e80c91
76
SHA256 (xpi/firefox-i18n-60.0b4/gd.xpi) = 5bfb56e414ff361a7af6791db3c3b00e42e585ae05e01d707c6a9607b02cce8f
77
SIZE (xpi/firefox-i18n-59.0.1/gd.xpi) = 461297
77
SIZE (xpi/firefox-i18n-60.0b4/gd.xpi) = 471969
78
SHA256 (xpi/firefox-i18n-59.0.1/gl.xpi) = d6f18916ce2ac2cc9f15c9a05fc0f83bbbe2d092fbd06d1b46b7101cf0aae03b
78
SHA256 (xpi/firefox-i18n-60.0b4/gl.xpi) = 1598bf09061f1fab4440831eac12a621c128d3ce961a918cf2b0d55a21410484
79
SIZE (xpi/firefox-i18n-59.0.1/gl.xpi) = 441615
79
SIZE (xpi/firefox-i18n-60.0b4/gl.xpi) = 447872
80
SHA256 (xpi/firefox-i18n-59.0.1/gn.xpi) = 861f7023de8630e2d0daf69b333cf212d84c3389044eea500655729197a5457b
80
SHA256 (xpi/firefox-i18n-60.0b4/gn.xpi) = 531c46fcb921a1a0f50df18dab94cf74c44027dabd81013c8c05e684a5838c39
81
SIZE (xpi/firefox-i18n-59.0.1/gn.xpi) = 469397
81
SIZE (xpi/firefox-i18n-60.0b4/gn.xpi) = 479564
82
SHA256 (xpi/firefox-i18n-59.0.1/gu-IN.xpi) = fbbf3b4eb0527a01e6182128e1153d9ecafda1ecf0b6c48456c087a532281127
82
SHA256 (xpi/firefox-i18n-60.0b4/gu-IN.xpi) = c496829b05d820742560753affe88ce31b0baee3de47504562034f7eda90e6b0
83
SIZE (xpi/firefox-i18n-59.0.1/gu-IN.xpi) = 521804
83
SIZE (xpi/firefox-i18n-60.0b4/gu-IN.xpi) = 531828
84
SHA256 (xpi/firefox-i18n-59.0.1/he.xpi) = ab2d7b59c2a6d09438efa7f712dc1a636e15f3e6da52fc00e9de3ce4fb2baa28
84
SHA256 (xpi/firefox-i18n-60.0b4/he.xpi) = a8d6e9a5b9b4f99a16b5413333ed736187c25fb6029c8994e64f1df61f1553bf
85
SIZE (xpi/firefox-i18n-59.0.1/he.xpi) = 472771
85
SIZE (xpi/firefox-i18n-60.0b4/he.xpi) = 482074
86
SHA256 (xpi/firefox-i18n-59.0.1/hi-IN.xpi) = b3fb9886a427a4b1849326ed94528bb157489fa778cb82eae724e7d91df59732
86
SHA256 (xpi/firefox-i18n-60.0b4/hi-IN.xpi) = cd4b4892fec3fcaf483f1fb1d4efa1134d667b593d412a37141ace57ba0aee7a
87
SIZE (xpi/firefox-i18n-59.0.1/hi-IN.xpi) = 524280
87
SIZE (xpi/firefox-i18n-60.0b4/hi-IN.xpi) = 533958
88
SHA256 (xpi/firefox-i18n-59.0.1/hr.xpi) = 3ad1dc76bc9afcc5ad7cf4e2f53c005d4861b79d00fb080c6487585e72a5380f
88
SHA256 (xpi/firefox-i18n-60.0b4/hr.xpi) = cc85e9f06c765725b70aae207aa31cd2cc94296129bf5be89b494fe1c88deb7e
89
SIZE (xpi/firefox-i18n-59.0.1/hr.xpi) = 459978
89
SIZE (xpi/firefox-i18n-60.0b4/hr.xpi) = 469483
90
SHA256 (xpi/firefox-i18n-59.0.1/hsb.xpi) = 9cded87c1ee19a762f545efee71894db30ca66c35cacf8fc5cbe38207700be90
90
SHA256 (xpi/firefox-i18n-60.0b4/hsb.xpi) = 7cf4f174b4f26cda5540a4bb8454f0d5a4aa4ad93e8db46f4bcda5307f9e7c2d
91
SIZE (xpi/firefox-i18n-59.0.1/hsb.xpi) = 475941
91
SIZE (xpi/firefox-i18n-60.0b4/hsb.xpi) = 484215
92
SHA256 (xpi/firefox-i18n-59.0.1/hu.xpi) = 072c5d90e274deb3d0398445561b78bbf4dee1ee03f0c0ecbdeaf4e2968727dd
92
SHA256 (xpi/firefox-i18n-60.0b4/hu.xpi) = 4f457dd972263c6df7b0ef7e68234e33e7dd50988af363716a65a9ce32164086
93
SIZE (xpi/firefox-i18n-59.0.1/hu.xpi) = 476896
93
SIZE (xpi/firefox-i18n-60.0b4/hu.xpi) = 485352
94
SHA256 (xpi/firefox-i18n-59.0.1/hy-AM.xpi) = aa34c99ecc61ed34ff627d3fe77c4f1b8b0ff7eebf0cdec0d0ae28960547379e
94
SHA256 (xpi/firefox-i18n-60.0b4/hy-AM.xpi) = 3cd3b0470bd9380afb3ab0b7f1a2faff56d431325905bce6efac3cf1db3d55bb
95
SIZE (xpi/firefox-i18n-59.0.1/hy-AM.xpi) = 508168
95
SIZE (xpi/firefox-i18n-60.0b4/hy-AM.xpi) = 517929
96
SHA256 (xpi/firefox-i18n-59.0.1/ia.xpi) = 1d52d87927398bb31f7f454aa9dc9114520b81145620b80b672132c5b67b31f6
96
SHA256 (xpi/firefox-i18n-60.0b4/ia.xpi) = 81ad5fce9bf34c18c1b33c4947d19292e3fa4613edbaa5740c72cc1a8b663c35
97
SIZE (xpi/firefox-i18n-59.0.1/ia.xpi) = 448829
97
SIZE (xpi/firefox-i18n-60.0b4/ia.xpi) = 459100
98
SHA256 (xpi/firefox-i18n-59.0.1/id.xpi) = c74e45cabffb0bce1e2c0b4a79d552f4b74d5307a1fb40e62ae9e213b1bbde1e
98
SHA256 (xpi/firefox-i18n-60.0b4/id.xpi) = 4d503ee96ee18187cf42b1ab56183e8fd78870d4cb6cdddb16af6b09e7b1087c
99
SIZE (xpi/firefox-i18n-59.0.1/id.xpi) = 441952
99
SIZE (xpi/firefox-i18n-60.0b4/id.xpi) = 450666
100
SHA256 (xpi/firefox-i18n-59.0.1/is.xpi) = 305edff9a994bf7bc3be53223db00e5a893caeb8d9e9175eea60c5bd41a923ab
100
SHA256 (xpi/firefox-i18n-60.0b4/is.xpi) = 0ac2860556cb58c2e860f579a2a73c80a7619ffa18e57bcb3edb6af1557c3777
101
SIZE (xpi/firefox-i18n-59.0.1/is.xpi) = 451373
101
SIZE (xpi/firefox-i18n-60.0b4/is.xpi) = 460840
102
SHA256 (xpi/firefox-i18n-59.0.1/it.xpi) = e282a584bc092d31839c277a471858715b616288c28255420bf41663af806dac
102
SHA256 (xpi/firefox-i18n-60.0b4/it.xpi) = 35f8c25dba4bafa498f94b7b7ef23244b4a071fdac8540c3bdc8bc2c93fcb717
103
SIZE (xpi/firefox-i18n-59.0.1/it.xpi) = 342524
103
SIZE (xpi/firefox-i18n-60.0b4/it.xpi) = 348857
104
SHA256 (xpi/firefox-i18n-59.0.1/ja.xpi) = a69ec46ff61841ef415e252be752ca9ec343d1cf30a73ac9c0e63598bf1d8fe7
104
SHA256 (xpi/firefox-i18n-60.0b4/ja.xpi) = 8aa233390f777cbd49809348c6b963778a532602b349fb4a87d0e4da23be06c8
105
SIZE (xpi/firefox-i18n-59.0.1/ja.xpi) = 508147
105
SIZE (xpi/firefox-i18n-60.0b4/ja.xpi) = 517964
106
SHA256 (xpi/firefox-i18n-59.0.1/ka.xpi) = c06ba278e86d214a55cc582da20c2f277986d4e52e99fedee5cd19f4a7f5b3f1
106
SHA256 (xpi/firefox-i18n-60.0b4/ka.xpi) = cb936f5804055557e7513d971aa5ae1e94261d87503cbb4c8876efa26c2648a8
107
SIZE (xpi/firefox-i18n-59.0.1/ka.xpi) = 492569
107
SIZE (xpi/firefox-i18n-60.0b4/ka.xpi) = 500328
108
SHA256 (xpi/firefox-i18n-59.0.1/kab.xpi) = 5bba366b527907301a54817fd3c95d4d6617c9169cf20cf94b5292825dd8ca23
108
SHA256 (xpi/firefox-i18n-60.0b4/kab.xpi) = fb8943f384ebd9af0ea878fa9cf7385b65416b220ba241f3717371d0fb93412e
109
SIZE (xpi/firefox-i18n-59.0.1/kab.xpi) = 461841
109
SIZE (xpi/firefox-i18n-60.0b4/kab.xpi) = 469418
110
SHA256 (xpi/firefox-i18n-59.0.1/kk.xpi) = 06c927cb3919d60bcb595b8e7690148613215ab92eb345a3775b856e5590b2cf
110
SHA256 (xpi/firefox-i18n-60.0b4/kk.xpi) = 0edb6c74bb93ef6d957758a14782ab6ceeda808f15d4962a9a4a3759c0c928d1
111
SIZE (xpi/firefox-i18n-59.0.1/kk.xpi) = 517584
111
SIZE (xpi/firefox-i18n-60.0b4/kk.xpi) = 526824
112
SHA256 (xpi/firefox-i18n-59.0.1/km.xpi) = 10a185cf715bccb9cf2c00a15384e6feb7df2adfadcf144751bee4d03496c9c5
112
SHA256 (xpi/firefox-i18n-60.0b4/km.xpi) = 4a5816ad9feb15dacdbaf03629f84edd13220dfab050c65f1c840279cb131ae3
113
SIZE (xpi/firefox-i18n-59.0.1/km.xpi) = 526359
113
SIZE (xpi/firefox-i18n-60.0b4/km.xpi) = 534966
114
SHA256 (xpi/firefox-i18n-59.0.1/kn.xpi) = 36a5d63ccbce763756d1aa145339794315e9ddd653420fe2fb1256b017da7b98
114
SHA256 (xpi/firefox-i18n-60.0b4/kn.xpi) = 9d2cb6af341c57acd3c9f1de7dc66360eeab07f16fc635d609645cd07cc6c582
115
SIZE (xpi/firefox-i18n-59.0.1/kn.xpi) = 527879
115
SIZE (xpi/firefox-i18n-60.0b4/kn.xpi) = 535042
116
SHA256 (xpi/firefox-i18n-59.0.1/ko.xpi) = f3b83409bd4d742ef6c6c5cfd0d8d463bf1cdd21608f8439f2f86901e95b5b4d
116
SHA256 (xpi/firefox-i18n-60.0b4/ko.xpi) = 91fd36f0bffa3d4237b3e75a7ed1c07a90246162e0e308bcec10f8e3386cbc17
117
SIZE (xpi/firefox-i18n-59.0.1/ko.xpi) = 487661
117
SIZE (xpi/firefox-i18n-60.0b4/ko.xpi) = 493734
118
SHA256 (xpi/firefox-i18n-59.0.1/lij.xpi) = 62f4d6631b60b420954f1a7c42b5cc383801548c5780bf7badb67f1f0b4c7fb2
118
SHA256 (xpi/firefox-i18n-60.0b4/lij.xpi) = 69739bbd218156550cd053f98eb66de65caca1bbac8e7fcefa25f35b1c7369ee
119
SIZE (xpi/firefox-i18n-59.0.1/lij.xpi) = 446606
119
SIZE (xpi/firefox-i18n-60.0b4/lij.xpi) = 456650
120
SHA256 (xpi/firefox-i18n-59.0.1/lt.xpi) = 3c28029fb78c90726cf6dca3a22f80e45d855ad16aee431c008e0bf08fb77ce4
120
SHA256 (xpi/firefox-i18n-60.0b4/lt.xpi) = 00ba603b5cdaeecc367740bc32da6cf9744d8e50f73e232dca950538ae2cb3c0
121
SIZE (xpi/firefox-i18n-59.0.1/lt.xpi) = 475142
121
SIZE (xpi/firefox-i18n-60.0b4/lt.xpi) = 482895
122
SHA256 (xpi/firefox-i18n-59.0.1/lv.xpi) = b618edf282a60d6a64dac68f796d45cd8fe79dc497176b5c821907eb50720e47
122
SHA256 (xpi/firefox-i18n-60.0b4/lv.xpi) = 5e35ccf640e3a7e0315e78a01e76ba7cd992b687b3f84b487d23e16384bc8480
123
SIZE (xpi/firefox-i18n-59.0.1/lv.xpi) = 463655
123
SIZE (xpi/firefox-i18n-60.0b4/lv.xpi) = 473186
124
SHA256 (xpi/firefox-i18n-59.0.1/mai.xpi) = b622a93edf7341d11a23df83d155b86f45a4af769f2ff45996701431c36707e2
124
SHA256 (xpi/firefox-i18n-60.0b4/mai.xpi) = 00d5a13fe9f8f890e162c981d7589c01fe11c00df71db2482ec75e7046cb89bf
125
SIZE (xpi/firefox-i18n-59.0.1/mai.xpi) = 499910
125
SIZE (xpi/firefox-i18n-60.0b4/mai.xpi) = 505844
126
SHA256 (xpi/firefox-i18n-59.0.1/mk.xpi) = 996df991c2945d7591c9b90633e83eef72be4533ab55e3ba48745232b0e83430
126
SHA256 (xpi/firefox-i18n-60.0b4/mk.xpi) = affeeb40aef9d77af1f534284b6e0235a25d25d182f0777ad08390b25bda9304
127
SIZE (xpi/firefox-i18n-59.0.1/mk.xpi) = 484075
127
SIZE (xpi/firefox-i18n-60.0b4/mk.xpi) = 471169
128
SHA256 (xpi/firefox-i18n-59.0.1/ml.xpi) = fe75a2f4885b7c4538a7447a650de9f338169549e5451d1e5fe2a70d6c26cfa1
128
SHA256 (xpi/firefox-i18n-60.0b4/ml.xpi) = 3f82b28bcaabab1f4c9c4727d4f397fcd6be0e41c5df6a1b5b1c94c45d9222d2
129
SIZE (xpi/firefox-i18n-59.0.1/ml.xpi) = 539735
129
SIZE (xpi/firefox-i18n-60.0b4/ml.xpi) = 548072
130
SHA256 (xpi/firefox-i18n-59.0.1/mr.xpi) = 9f9a053dda0e1a7f15dd2bb5564582d6c10f465b20d9165210c487f1816e52a8
130
SHA256 (xpi/firefox-i18n-60.0b4/mr.xpi) = 3cdef004ba9d5afcc6e46a1bf174046c4f9ed5626a46bcf403ed4ee5d80cda2f
131
SIZE (xpi/firefox-i18n-59.0.1/mr.xpi) = 517962
131
SIZE (xpi/firefox-i18n-60.0b4/mr.xpi) = 527928
132
SHA256 (xpi/firefox-i18n-59.0.1/ms.xpi) = 1a40eb19a6f607434d5180474925ab903bd0d8e12c5861713b3de574fda2673d
132
SHA256 (xpi/firefox-i18n-60.0b4/ms.xpi) = e4b3313b9ec9c5ab7243121649259e34d8751f6063b4fb1171c76431cc306db3
133
SIZE (xpi/firefox-i18n-59.0.1/ms.xpi) = 450075
133
SIZE (xpi/firefox-i18n-60.0b4/ms.xpi) = 458218
134
SHA256 (xpi/firefox-i18n-59.0.1/my.xpi) = 7b0a1e894808bb4f17d6012ba978b180dd0f4825733e357d63708f2298fdb278
134
SHA256 (xpi/firefox-i18n-60.0b4/my.xpi) = 2460c613d61ab1b7975dd7fa2d0f49ec66673ec59468b6660e16126e5907ac05
135
SIZE (xpi/firefox-i18n-59.0.1/my.xpi) = 511894
135
SIZE (xpi/firefox-i18n-60.0b4/my.xpi) = 520525
136
SHA256 (xpi/firefox-i18n-59.0.1/nb-NO.xpi) = 390904624102a0c5c1be82712954a57ee628a170361a57fda0e5e6dd5e4b9f56
136
SHA256 (xpi/firefox-i18n-60.0b4/nb-NO.xpi) = a51c5126750093d5171dc7180d23d1d5231b165420e05f8e12a2702ff269787a
137
SIZE (xpi/firefox-i18n-59.0.1/nb-NO.xpi) = 450277
137
SIZE (xpi/firefox-i18n-60.0b4/nb-NO.xpi) = 457576
138
SHA256 (xpi/firefox-i18n-59.0.1/ne-NP.xpi) = 4acaaa5ee3746176dd1349ea51d47b99cbd965d8aff21b44169235b5798e6d04
138
SHA256 (xpi/firefox-i18n-60.0b4/ne-NP.xpi) = c107af2b970d24b48420af69a8e2c985335981ceae9ac2b2304d1f4d6b5161a9
139
SIZE (xpi/firefox-i18n-59.0.1/ne-NP.xpi) = 509177
139
SIZE (xpi/firefox-i18n-60.0b4/ne-NP.xpi) = 505244
140
SHA256 (xpi/firefox-i18n-59.0.1/nl.xpi) = 938f70cd0452f87ca4da3f1ed17802aad48e581b8fe7cb214f9c579bb647b795
140
SHA256 (xpi/firefox-i18n-60.0b4/nl.xpi) = 6d960440744d3e2cb1eee9f339507aa9806b923e74a2409a0593ef4641cb1599
141
SIZE (xpi/firefox-i18n-59.0.1/nl.xpi) = 458128
141
SIZE (xpi/firefox-i18n-60.0b4/nl.xpi) = 464347
142
SHA256 (xpi/firefox-i18n-59.0.1/nn-NO.xpi) = eeeea6999c44df8e6657e65e07c96f741bef6530b8198f79547c36867ad3e694
142
SHA256 (xpi/firefox-i18n-60.0b4/nn-NO.xpi) = fb05ca9255b56d0e4c18b7e5561c49e4dd2e954ae70a8d68f79fb7fc82b9d0f5
143
SIZE (xpi/firefox-i18n-59.0.1/nn-NO.xpi) = 451471
143
SIZE (xpi/firefox-i18n-60.0b4/nn-NO.xpi) = 458915
144
SHA256 (xpi/firefox-i18n-59.0.1/or.xpi) = de8adc3a0a20bc650739a1a39c55140c0b5f5f5a078a6a2414a7602561bfd798
144
SHA256 (xpi/firefox-i18n-60.0b4/oc.xpi) = 8c0114b7635076bc528a093915b3b634e41e30a15cd18d38a877f34642ecb81e
145
SIZE (xpi/firefox-i18n-59.0.1/or.xpi) = 493181
145
SIZE (xpi/firefox-i18n-60.0b4/oc.xpi) = 475412
146
SHA256 (xpi/firefox-i18n-59.0.1/pa-IN.xpi) = 682e548375a925583d723ffb9889a5ffbaa049ed2d2fe33cbb17dbd50ad263f4
146
SHA256 (xpi/firefox-i18n-60.0b4/or.xpi) = 44a5336595c2bee733a3f2cb5f91f793dfb23c2589c8d8f3cbc48f3666fa259b
147
SIZE (xpi/firefox-i18n-59.0.1/pa-IN.xpi) = 492420
147
SIZE (xpi/firefox-i18n-60.0b4/or.xpi) = 498996
148
SHA256 (xpi/firefox-i18n-59.0.1/pl.xpi) = 694b181873f7667a6720e3f6023bae756e8a0ed55fb4fd395b5be80db786f6b4
148
SHA256 (xpi/firefox-i18n-60.0b4/pa-IN.xpi) = 29a40265737d2f2ccda6f1c3a28c3f1240db06b6a43ba6b3f8385b41c7256554
149
SIZE (xpi/firefox-i18n-59.0.1/pl.xpi) = 358511
149
SIZE (xpi/firefox-i18n-60.0b4/pa-IN.xpi) = 501555
150
SHA256 (xpi/firefox-i18n-59.0.1/pt-BR.xpi) = 1f1177c60948d15d7d86a374dbfb44bfdce462dbb5496bcd01499cf8b17f9130
150
SHA256 (xpi/firefox-i18n-60.0b4/pl.xpi) = f1069a20629e235516393954baab20f1949fc8868b5ca0e7babc76e06c1fcddf
151
SIZE (xpi/firefox-i18n-59.0.1/pt-BR.xpi) = 455916
151
SIZE (xpi/firefox-i18n-60.0b4/pl.xpi) = 368881
152
SHA256 (xpi/firefox-i18n-59.0.1/pt-PT.xpi) = f85995c2b7f847dd9cd6325daf7436882e659a4e984b342e081058517f388908
152
SHA256 (xpi/firefox-i18n-60.0b4/pt-BR.xpi) = 550ef8f4a765ca2d6c4c4a9ae6bc08793b0e69879c1c8867457c82f8e762503b
153
SIZE (xpi/firefox-i18n-59.0.1/pt-PT.xpi) = 459331
153
SIZE (xpi/firefox-i18n-60.0b4/pt-BR.xpi) = 463596
154
SHA256 (xpi/firefox-i18n-59.0.1/rm.xpi) = e0a9c8c617d804eab0bc8530f15d1d8ae5e47147a23cb010a9c1f5eb5cd8d892
154
SHA256 (xpi/firefox-i18n-60.0b4/pt-PT.xpi) = e5b9f2a3817d3b29f281f7232289e88d46bda0a24915fe1812384369fb6bee67
155
SIZE (xpi/firefox-i18n-59.0.1/rm.xpi) = 449757
155
SIZE (xpi/firefox-i18n-60.0b4/pt-PT.xpi) = 467507
156
SHA256 (xpi/firefox-i18n-59.0.1/ro.xpi) = 479b2ebbda57bafda0a34f29cc3e65a9a73db76967579d59c228bb03f0aca4f6
156
SHA256 (xpi/firefox-i18n-60.0b4/rm.xpi) = 4107c181db6a8deb42aaa18f52e86b935b5154051015c80786f0349febed3e9c
157
SIZE (xpi/firefox-i18n-59.0.1/ro.xpi) = 453403
157
SIZE (xpi/firefox-i18n-60.0b4/rm.xpi) = 459505
158
SHA256 (xpi/firefox-i18n-59.0.1/ru.xpi) = 1be7524ab110feaa15dcbcc4ecdcf3399604b2fe79f41c82b1a68bea9e7b77bb
158
SHA256 (xpi/firefox-i18n-60.0b4/ro.xpi) = be4078c5bf892bc2d94d4dfbb958b5d2f38f82698ca43120aa599af60c6891e2
159
SIZE (xpi/firefox-i18n-59.0.1/ru.xpi) = 526523
159
SIZE (xpi/firefox-i18n-60.0b4/ro.xpi) = 463564
160
SHA256 (xpi/firefox-i18n-59.0.1/si.xpi) = 2d32228ebf6a6b79a20a18eed4091d8131b923fd127eeae01f677c157766840b
160
SHA256 (xpi/firefox-i18n-60.0b4/ru.xpi) = 10cfc7a22c7d222ab78110c12e5387908649c46a275f76e5d375d4db010a394d
161
SIZE (xpi/firefox-i18n-59.0.1/si.xpi) = 492588
161
SIZE (xpi/firefox-i18n-60.0b4/ru.xpi) = 535527
162
SHA256 (xpi/firefox-i18n-59.0.1/sk.xpi) = 0b99e28c1b337008ac3d4a3c7b629cf71aaaad9c3f30e48f50603becb3064a06
162
SHA256 (xpi/firefox-i18n-60.0b4/si.xpi) = a527289ff975ca32473619b4e040a071f5aea7f237ba4f623a33fe871bd9b104
163
SIZE (xpi/firefox-i18n-59.0.1/sk.xpi) = 480814
163
SIZE (xpi/firefox-i18n-60.0b4/si.xpi) = 500219
164
SHA256 (xpi/firefox-i18n-59.0.1/sl.xpi) = 18aa40a2cf30fe967c034ee2e084be6309ad848379c8eceb137381b308d6e297
164
SHA256 (xpi/firefox-i18n-60.0b4/sk.xpi) = 9faf38b4150a953109efc0a3909e0e4a0d2b8cb2b0eb4a8bf1cc4120ec49c52c
165
SIZE (xpi/firefox-i18n-59.0.1/sl.xpi) = 458825
165
SIZE (xpi/firefox-i18n-60.0b4/sk.xpi) = 488555
166
SHA256 (xpi/firefox-i18n-59.0.1/son.xpi) = 8162c10692ed8723f2c47ba322770335ec821550ec3031ea4b67b99b560466e7
166
SHA256 (xpi/firefox-i18n-60.0b4/sl.xpi) = 76c1ae570fc64870b3c59345a3958ba9c2ffd906cb931c84655e8f1a5116019a
167
SIZE (xpi/firefox-i18n-59.0.1/son.xpi) = 446399
167
SIZE (xpi/firefox-i18n-60.0b4/sl.xpi) = 467000
168
SHA256 (xpi/firefox-i18n-59.0.1/sq.xpi) = 5882a6234a746ef9bb23b405ec15d8e74083598924eabeba3f18a6bc681cdce4
168
SHA256 (xpi/firefox-i18n-60.0b4/son.xpi) = ce6fc02a98ef993acb03df5ab0de7d51e05229a8f02cc18e347a7465c587273c
169
SIZE (xpi/firefox-i18n-59.0.1/sq.xpi) = 464463
169
SIZE (xpi/firefox-i18n-60.0b4/son.xpi) = 454316
170
SHA256 (xpi/firefox-i18n-59.0.1/sr.xpi) = 2ec1aa0c85ebd456a560f1e34a65183eef4f7d3105c69c779e83c9ca91e0a442
170
SHA256 (xpi/firefox-i18n-60.0b4/sq.xpi) = d55b9bd7ea6d329116c75b4b503f4d0cf0f7010530045b1346b79df747b02bfa
171
SIZE (xpi/firefox-i18n-59.0.1/sr.xpi) = 486178
171
SIZE (xpi/firefox-i18n-60.0b4/sq.xpi) = 472664
172
SHA256 (xpi/firefox-i18n-59.0.1/sv-SE.xpi) = 0913865b4c5edd6cb0006b1c2149463b6a0ff22870cf6c1c2b6cf55f7b7f76d4
172
SHA256 (xpi/firefox-i18n-60.0b4/sr.xpi) = 2dd580628cb9827ec3f88bfcb9a376076fca3880733f144fd5915b7b7fff4c15
173
SIZE (xpi/firefox-i18n-59.0.1/sv-SE.xpi) = 458660
173
SIZE (xpi/firefox-i18n-60.0b4/sr.xpi) = 494649
174
SHA256 (xpi/firefox-i18n-59.0.1/ta.xpi) = 92300249eac9468ab15a5a81a2bb5ca7b96ed4d0ede1aa52659ceb50bfcb041b
174
SHA256 (xpi/firefox-i18n-60.0b4/sv-SE.xpi) = ef76b704af09cc247bc5508ece085e331082158fe7603838d7da5f8a2f8c137b
175
SIZE (xpi/firefox-i18n-59.0.1/ta.xpi) = 512843
175
SIZE (xpi/firefox-i18n-60.0b4/sv-SE.xpi) = 466415
176
SHA256 (xpi/firefox-i18n-59.0.1/te.xpi) = a3d972a645fefa7e1860f043a85c5c5e00e9b6c46712cd3f98b7db006d98258e
176
SHA256 (xpi/firefox-i18n-60.0b4/ta.xpi) = 9f5f95e3d679a5f6002fb68ddc0157d80a4acda4c22a9a6e7db03b7449ad8b94
177
SIZE (xpi/firefox-i18n-59.0.1/te.xpi) = 527083
177
SIZE (xpi/firefox-i18n-60.0b4/ta.xpi) = 522943
178
SHA256 (xpi/firefox-i18n-59.0.1/th.xpi) = 8e0f5c8eeb12f185aaeddf244363034fe0b8e14f875be5892b68f0fd6530d135
178
SHA256 (xpi/firefox-i18n-60.0b4/te.xpi) = abd998ab3246b9f17cd23754a6516c44c3f0d5b754c1c99245e4beb33402e366
179
SIZE (xpi/firefox-i18n-59.0.1/th.xpi) = 498544
179
SIZE (xpi/firefox-i18n-60.0b4/te.xpi) = 536322
180
SHA256 (xpi/firefox-i18n-59.0.1/tr.xpi) = 3cbb4cdea0c2001f94cff5078e730e02ce03370eaef1645be60c892ba284be5f
180
SHA256 (xpi/firefox-i18n-60.0b4/th.xpi) = 3162e83cbbb21fbbf77d275c265d071bede78c89ef49f1a275e62dbced33fb7a
181
SIZE (xpi/firefox-i18n-59.0.1/tr.xpi) = 463594
181
SIZE (xpi/firefox-i18n-60.0b4/th.xpi) = 507476
182
SHA256 (xpi/firefox-i18n-59.0.1/uk.xpi) = d7c86d1f09df639dfc2f3c487cb9d8eabca02efa848371a5e1e7ca1406561de3
182
SHA256 (xpi/firefox-i18n-60.0b4/tr.xpi) = f5f29de70caecae412f7499b96f8ebc9521f2f9b4e16811e8864b51602b86418
183
SIZE (xpi/firefox-i18n-59.0.1/uk.xpi) = 516926
183
SIZE (xpi/firefox-i18n-60.0b4/tr.xpi) = 472994
184
SHA256 (xpi/firefox-i18n-59.0.1/ur.xpi) = c893dd6cd191a2fded4d0c372c9a089528dffaaeeead193ad4080a3f5f21fe90
184
SHA256 (xpi/firefox-i18n-60.0b4/uk.xpi) = 2a3a1feb0e23272efca2fbe83abb64060db8f3bcbdfebd4626c0e24f789eb0e8
185
SIZE (xpi/firefox-i18n-59.0.1/ur.xpi) = 507380
185
SIZE (xpi/firefox-i18n-60.0b4/uk.xpi) = 525680
186
SHA256 (xpi/firefox-i18n-59.0.1/uz.xpi) = d1b3e43d2850f9da05d92e1f3b933c54e716db163d462c62adac4395e78c6c7b
186
SHA256 (xpi/firefox-i18n-60.0b4/ur.xpi) = e5f6da46a6174a2d7338b7a0227920ed37926d88f744df72d2d2489e32bfa204
187
SIZE (xpi/firefox-i18n-59.0.1/uz.xpi) = 456923
187
SIZE (xpi/firefox-i18n-60.0b4/ur.xpi) = 516262
188
SHA256 (xpi/firefox-i18n-59.0.1/vi.xpi) = bfa5f3a23b29349cee54a85538c0eadb7f838cb50788c1927b7aa5d39d061bc2
188
SHA256 (xpi/firefox-i18n-60.0b4/uz.xpi) = 364823b09773d55ca7b685f4bdecc38b8556faa2cdaf02bda6567fe5adbf66b5
189
SIZE (xpi/firefox-i18n-59.0.1/vi.xpi) = 470069
189
SIZE (xpi/firefox-i18n-60.0b4/uz.xpi) = 465257
190
SHA256 (xpi/firefox-i18n-59.0.1/xh.xpi) = 6d8bfed15e2b48a7969de06f43fac314e3d0af99c4d24b8b86eacd26a03b3fca
190
SHA256 (xpi/firefox-i18n-60.0b4/vi.xpi) = 245f345242eeee43734f1d390694e27c4edcdb3b49888319e7c1771f140eabb8
191
SIZE (xpi/firefox-i18n-59.0.1/xh.xpi) = 460771
191
SIZE (xpi/firefox-i18n-60.0b4/vi.xpi) = 479544
192
SHA256 (xpi/firefox-i18n-59.0.1/zh-CN.xpi) = 95d5129eb1211c25516a8ac3f3a5463ec087583c12acf6546aa2915bdf86b463
192
SHA256 (xpi/firefox-i18n-60.0b4/xh.xpi) = da7079e82d170281ad3828e90ce2c7a0742050c053d03ba3776d025604ab2496
193
SIZE (xpi/firefox-i18n-59.0.1/zh-CN.xpi) = 483449
193
SIZE (xpi/firefox-i18n-60.0b4/xh.xpi) = 467861
194
SHA256 (xpi/firefox-i18n-59.0.1/zh-TW.xpi) = e95d71b32bb94f8c75a8ec9cd042b5a2f4ba61be4f31195aba8eccea0443d6ec
194
SHA256 (xpi/firefox-i18n-60.0b4/zh-CN.xpi) = 39dd1bf587086c5749fbce1204909374e80d9e00c4a797ee3c49878b7b857b94
195
SIZE (xpi/firefox-i18n-59.0.1/zh-TW.xpi) = 477089
195
SIZE (xpi/firefox-i18n-60.0b4/zh-CN.xpi) = 490672
196
SHA256 (xpi/firefox-i18n-60.0b4/zh-TW.xpi) = 107bac9b406e7f4504e40d5171a58776e949941f95004c84b21a21563cf16449
197
SIZE (xpi/firefox-i18n-60.0b4/zh-TW.xpi) = 488661
(-)b/www/firefox/Makefile (-10 / +8 lines)
Lines 2-28 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	firefox
4
PORTNAME=	firefox
5
DISTVERSION=	59.0.1
5
DISTVERSION=	60.0b4
6
PORTEPOCH=	1
6
PORTEPOCH=	1
7
CATEGORIES=	www ipv6
7
CATEGORIES=	www ipv6
8
MASTER_SITES=	https://hg.mozilla.org/releases/mozilla-release/archive/
8
MASTER_SITES=	https://hg.mozilla.org/releases/mozilla-beta/archive/
9
DISTNAME=	${MASTER_SITES:M*hg*:S,/archive/,,:T}-3db9e3d52b17563efca181ccbb50deb8660c59ae
9
DISTNAME=	${MASTER_SITES:M*hg*:S,/archive/,,:T}-1dfbedb54c39abae38da9329f4a79571fee74661
10
DISTFILES=	${DISTNAME:C/.*-//}${EXTRACT_SUFX}
10
DISTFILES=	${DISTNAME:C/.*-//}${EXTRACT_SUFX}
11
DIST_SUBDIR=	firefox
11
DIST_SUBDIR=	firefox
12
12
13
MAINTAINER=	gecko@FreeBSD.org
13
MAINTAINER=	gecko@FreeBSD.org
14
COMMENT=	Web browser based on the browser portion of Mozilla
14
COMMENT=	Web browser based on the browser portion of Mozilla
15
15
16
BUILD_DEPENDS=	nspr>=4.18:devel/nspr \
16
BUILD_DEPENDS=	nspr>=4.19:devel/nspr \
17
		nss>=3.35:security/nss \
17
		nss>=3.36:security/nss \
18
		icu>=59.1,1:devel/icu \
18
		icu>=59.1,1:devel/icu \
19
		libevent>=2.1.8:devel/libevent \
19
		libevent>=2.1.8:devel/libevent \
20
		harfbuzz>=1.7.4:print/harfbuzz \
20
		harfbuzz>=1.7.6:print/harfbuzz \
21
		graphite2>=1.3.10:graphics/graphite2 \
21
		graphite2>=1.3.11:graphics/graphite2 \
22
		png>=1.6.34:graphics/png \
22
		png>=1.6.34:graphics/png \
23
		libvorbis>=1.3.5,3:audio/libvorbis \
23
		libvorbis>=1.3.5,3:audio/libvorbis \
24
		libvpx>=1.5.0:multimedia/libvpx \
24
		libvpx>=1.5.0:multimedia/libvpx \
25
		sqlite3>=3.21.0:databases/sqlite3 \
25
		sqlite3>=3.22.0:databases/sqlite3 \
26
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
27
		v4l_compat>0:multimedia/v4l_compat \
27
		v4l_compat>0:multimedia/v4l_compat \
28
		autoconf-2.13:devel/autoconf213 \
28
		autoconf-2.13:devel/autoconf213 \
Lines 30-37 BUILD_DEPENDS= nspr>=4.18:devel/nspr \ Link Here
30
		zip:archivers/zip
30
		zip:archivers/zip
31
#		soundtouch>=1.9.0:audio/soundtouch \
31
#		soundtouch>=1.9.0:audio/soundtouch \
32
32
33
LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
34
35
USE_GECKO=	gecko
33
USE_GECKO=	gecko
36
CONFLICTS_INSTALL=	firefox-esr
34
CONFLICTS_INSTALL=	firefox-esr
37
MOZ_PKGCONFIG_FILES=	# empty
35
MOZ_PKGCONFIG_FILES=	# empty
(-)b/www/firefox/distinfo (-2 / +2 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1521151925
1
TIMESTAMP = 1521151925
2
SHA256 (firefox/3db9e3d52b17563efca181ccbb50deb8660c59ae.tar.bz2) = e8bc6d63c045dfad28116165dbf1f40e5f579542c020bbfb232b801cffd778e4
2
SHA256 (firefox/1dfbedb54c39abae38da9329f4a79571fee74661.tar.bz2) = 5909d57e71aba7b5da86140d02f1216690f0d37e51c7dd0b4252472d5c7cbd36
3
SIZE (firefox/3db9e3d52b17563efca181ccbb50deb8660c59ae.tar.bz2) = 304956890
3
SIZE (firefox/1dfbedb54c39abae38da9329f4a79571fee74661.tar.bz2) = 329441001
(-)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
@@ -220,6 +284,29 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["HOST_CPU_ARCH"] == &qu