Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 10b80b6

Browse files
author
Robert Helmer
committed
bug 1485946 - skip building libprio on MSVC r=froydnj
libprio does not currently build with MSVC (since it only supports C90 as a compiler), this is being worked on upstream at mozilla/libprio#17 As we are almost certainly not going to ship Firefox build with MSVC anymore, let's disable this to get it working on this Tier-2 platform. Differential Revision: https://phabricator.services.mozilla.com/D4292 --HG-- extra : moz-landing-system : lando
1 parent 591bdec commit 10b80b6

7 files changed

Lines changed: 33 additions & 6 deletions

File tree

config/external/moz.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ external_dirs = []
88

99
DIRS += [
1010
'lgpllibs',
11-
'prio',
1211
'sqlite',
1312
]
1413
if not CONFIG['MOZ_SYSTEM_JPEG']:
1514
external_dirs += ['media/libjpeg']
1615

16+
if CONFIG['MOZ_LIBPRIO']:
17+
DIRS += [
18+
'prio',
19+
]
20+
1721
# There's no "native" brotli or woff2 yet, but probably in the future...
1822
external_dirs += ['modules/brotli']
1923
external_dirs += ['modules/woff2']

config/external/msgpack/moz.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# License, v. 2.0. If a copy of the MPL was not distributed with this
55
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
66

7-
DIRS += ['/third_party/msgpack']
7+
if CONFIG['MOZ_LIBPRIO']:
8+
DIRS += ['/third_party/msgpack']
89

config/external/prio/moz.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# License, v. 2.0. If a copy of the MPL was not distributed with this
55
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
66

7-
DIRS += ['../../../third_party/prio']
7+
DIRS += ['/third_party/prio']
88

dom/bindings/moz.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ LOCAL_INCLUDES += [
9595
'/media/webrtc/signaling/src/common/time_profiling',
9696
'/media/webrtc/signaling/src/peerconnection',
9797
'/media/webrtc/trunk/',
98-
'/third_party/msgpack/include',
9998
]
10099

100+
if CONFIG['MOZ_LIBPRIO']:
101+
LOCAL_INCLUDES += ['/third_party/msgpack/include']
102+
101103
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
102104
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
103105

dom/chrome-webidl/moz.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ WEBIDL_FILES = [
4444
'MozStorageStatementParams.webidl',
4545
'MozStorageStatementRow.webidl',
4646
'PrecompiledScript.webidl',
47-
'PrioEncoder.webidl',
4847
'PromiseDebugging.webidl',
4948
'StructuredCloneHolder.webidl',
5049
'WebExtensionContentScript.webidl',
@@ -58,3 +57,9 @@ if CONFIG['MOZ_PLACES']:
5857
'PlacesEvent.webidl',
5958
'PlacesObservers.webidl',
6059
]
60+
61+
if CONFIG['MOZ_LIBPRIO']:
62+
WEBIDL_FILES += [
63+
'PrioEncoder.webidl',
64+
]
65+

dom/moz.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ DIRS += [
6363
'notification',
6464
'offline',
6565
'power',
66-
'prio',
6766
'push',
6867
'quota',
6968
'security',
@@ -105,6 +104,9 @@ DIRS += [
105104
'simpledb',
106105
]
107106

107+
if CONFIG['MOZ_LIBPRIO']:
108+
DIRS += ['prio']
109+
108110
if CONFIG['OS_ARCH'] == 'WINNT':
109111
DIRS += ['plugins/ipc/hangui']
110112

toolkit/moz.configure

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,3 +1064,16 @@ def launcher(value, target):
10641064

10651065
set_config('MOZ_LAUNCHER_PROCESS', launcher)
10661066
set_define('MOZ_LAUNCHER_PROCESS', launcher)
1067+
1068+
# Prio
1069+
# ==============================================================
1070+
@depends(c_compiler)
1071+
def libprio(info):
1072+
if info:
1073+
if info.type in ('msvc'):
1074+
return None
1075+
else:
1076+
return True
1077+
1078+
set_config('MOZ_LIBPRIO', libprio)
1079+

0 commit comments

Comments
 (0)