Skip to content

Commit 79267f9

Browse files
authored
Merge pull request #14 from RyeMutt/rye/linux64
Condensed changes to enable linux64 builds on roxie/m137-universal-mac branch
2 parents 6d26957 + d0f4932 commit 79267f9

File tree

6 files changed

+60
-12
lines changed

6 files changed

+60
-12
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
# - ubuntu-18.04_armv8
8585
# - ubuntu-20.04_armv8
8686
# - ubuntu-18.04_x86_64
87-
- ubuntu-20.04_x86_64
88-
# - ubuntu-22.04_x86_64
87+
# - ubuntu-20.04_x86_64
88+
- ubuntu-22.04_x86_64
8989
# - android
9090
# - android_prefixed
9191
runs-on: linux-large

build-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ case "$AUTOBUILD_PLATFORM" in
3737
autobuild="$AUTOBUILD"
3838
;;
3939
linux*)
40-
build_type="ubuntu-20.04_x86_64"
40+
build_type="ubuntu-22.04_x86_64"
4141
autobuild="$AUTOBUILD"
4242
;;
4343
*)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/BUILD.gn b/BUILD.gn
2+
index e4a82bc8d6..54fde4ce9a 100644
3+
--- a/BUILD.gn
4+
+++ b/BUILD.gn
5+
@@ -384,6 +384,10 @@ config("common_config") {
6+
# warning.
7+
"-Wctad-maybe-unsupported",
8+
]
9+
+ } else {
10+
+ if(is_linux) {
11+
+ cflags += [ "-fpermissive" ]
12+
+ }
13+
}
14+
15+
if (build_with_chromium) {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -durN webrtc-m137/p2p/base/port_interface.h webrtc-m137-patched/p2p/base/port_interface.h
2+
--- webrtc-m137/p2p/base/port_interface.h 2025-09-01 14:30:40.000000000 +0200
3+
+++ webrtc-m137-patched/p2p/base/port_interface.h 2025-09-05 15:07:36.904283022 +0200
4+
@@ -55,7 +55,7 @@
5+
virtual ~PortInterface();
6+
7+
virtual IceCandidateType Type() const = 0;
8+
- virtual const Network* Network() const = 0;
9+
+ virtual const webrtc::Network* Network() const = 0;
10+
11+
// Methods to set/get ICE role and tiebreaker values.
12+
virtual void SetIceRole(IceRole role) = 0;

build/run.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ def get_depot_tools(source_dir, fetch=False):
268268
'bug_8759_workaround.patch',
269269
'disable_mute_of_audio_processing.patch',
270270
'crash_on_fatal_error.patch',
271+
'gcc_fpermissive_error.patch',
272+
'enable_gcc_permissive.patch',
271273
],
272274
'raspberry-pi-os_armv7': [
273275
'add_license_dav1d.patch',
@@ -276,6 +278,8 @@ def get_depot_tools(source_dir, fetch=False):
276278
'bug_8759_workaround.patch',
277279
'disable_mute_of_audio_processing.patch',
278280
'crash_on_fatal_error.patch',
281+
'gcc_fpermissive_error.patch',
282+
'enable_gcc_permissive.patch',
279283
],
280284
'raspberry-pi-os_armv8': [
281285
'add_license_dav1d.patch',
@@ -284,6 +288,8 @@ def get_depot_tools(source_dir, fetch=False):
284288
'bug_8759_workaround.patch',
285289
'disable_mute_of_audio_processing.patch',
286290
'crash_on_fatal_error.patch',
291+
'gcc_fpermissive_error.patch',
292+
'enable_gcc_permissive.patch',
287293
],
288294
'ubuntu-18.04_armv8': [
289295
'add_license_dav1d.patch',
@@ -292,6 +298,8 @@ def get_depot_tools(source_dir, fetch=False):
292298
'bug_8759_workaround.patch',
293299
'disable_mute_of_audio_processing.patch',
294300
'crash_on_fatal_error.patch',
301+
'gcc_fpermissive_error.patch',
302+
'enable_gcc_permissive.patch',
295303
],
296304
'ubuntu-20.04_armv8': [
297305
'add_license_dav1d.patch',
@@ -300,6 +308,8 @@ def get_depot_tools(source_dir, fetch=False):
300308
'bug_8759_workaround.patch',
301309
'disable_mute_of_audio_processing.patch',
302310
'crash_on_fatal_error.patch',
311+
'gcc_fpermissive_error.patch',
312+
'enable_gcc_permissive.patch',
303313
],
304314
'ubuntu-18.04_x86_64': [
305315
'add_license_dav1d.patch',
@@ -308,6 +318,8 @@ def get_depot_tools(source_dir, fetch=False):
308318
'bug_8759_workaround.patch',
309319
'disable_mute_of_audio_processing.patch',
310320
'crash_on_fatal_error.patch',
321+
'gcc_fpermissive_error.patch',
322+
'enable_gcc_permissive.patch',
311323
],
312324
'ubuntu-20.04_x86_64': [
313325
'add_license_dav1d.patch',
@@ -316,6 +328,8 @@ def get_depot_tools(source_dir, fetch=False):
316328
'bug_8759_workaround.patch',
317329
'disable_mute_of_audio_processing.patch',
318330
'crash_on_fatal_error.patch',
331+
'gcc_fpermissive_error.patch',
332+
'enable_gcc_permissive.patch',
319333
],
320334
'ubuntu-22.04_x86_64': [
321335
'add_license_dav1d.patch',
@@ -324,6 +338,8 @@ def get_depot_tools(source_dir, fetch=False):
324338
'bug_8759_workaround.patch',
325339
'disable_mute_of_audio_processing.patch',
326340
'crash_on_fatal_error.patch',
341+
'gcc_fpermissive_error.patch',
342+
'enable_gcc_permissive.patch',
327343
],
328344
}
329345

@@ -374,7 +390,7 @@ def get_webrtc(source_dir, patch_dir, version, target,
374390
cmd(['git', 'branch'])
375391
cmd(['git', 'checkout', '-f', version])
376392
cmd(['git', 'clean', '-df'])
377-
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--with_branch_heads', '--jobs=8'])
393+
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--revision', version, '--no-history', '--jobs=8'])
378394
for patch in PATCHES[target]:
379395
depth, dirs = PATCH_INFO.get(patch, (1, ['.']))
380396
dir = os.path.join(src_dir, *dirs)
@@ -752,7 +768,8 @@ def build_webrtc(
752768
f'target_cpu="{target_cpus[target]}"',
753769
"use_custom_libcxx=false",
754770
"use_custom_libcxx_for_host=false",
755-
"is_clang=true"
771+
"is_clang=true",
772+
'use_lld=false',
756773
]
757774
elif target in ('macos_x86_64', 'macos_arm64'):
758775
gn_args += [
@@ -797,9 +814,14 @@ def build_webrtc(
797814
gn_args += [
798815
'target_os="linux"',
799816
'rtc_use_pipewire=false',
817+
'rtc_use_x11=false',
800818
"use_custom_libcxx=false",
801819
"use_custom_libcxx_for_host=false",
802-
'rtc_include_pulse_audio=false',
820+
'is_clang=false',
821+
'clang_use_chrome_plugins=false',
822+
'use_lld=false',
823+
'use_thin_lto=false',
824+
'rtc_include_pulse_audio=true',
803825
'rtc_include_internal_audio_device=true',
804826
]
805827
else:
@@ -824,10 +846,8 @@ def build_webrtc(
824846

825847
if target in ['windows_x86_64', 'windows_x86', 'windows_arm64']:
826848
pass
827-
elif target in ('macos_x86_64', 'macos_arm64'):
828-
ar = '/usr/bin/ar'
829849
else:
830-
ar = os.path.join(webrtc_src_dir, 'third_party/llvm-build/Release+Asserts/bin/llvm-ar')
850+
ar = '/usr/bin/ar'
831851

832852
# ar で libwebrtc.a を生成する
833853
# Create libwebrtc.a with ar
@@ -1218,7 +1238,7 @@ def main():
12181238
commit = version_info.webrtc_commit
12191239
if args.commit:
12201240
commit = args.commit
1221-
1241+
12221242
print("Building for commit: ", commit)
12231243

12241244
# ソース取得

build/scripts/apt_install_x86_64.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ apt-get -y upgrade
88
# tzdata を noninteractive にしないと実行が止まってしまう
99
# need to set tzdata to noninteractive or else it'll stop
1010
apt-get -y install tzdata
11-
echo 'Asia/Tokyo' > /etc/timezone
11+
echo 'America/New_York' > /etc/timezone
1212
dpkg-reconfigure -f noninteractive tzdata
1313

1414
export DEBIAN_FRONTEND=noninteractive
@@ -27,4 +27,5 @@ apt-get -y install \
2727
unzip \
2828
vim \
2929
wget \
30-
xz-utils
30+
xz-utils \
31+
build-essential

0 commit comments

Comments
 (0)