File tree Expand file tree Collapse file tree 5 files changed +45
-4
lines changed Expand file tree Collapse file tree 5 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ if(NOT ${get_webrtc_source_result} EQUAL 0)
31
31
message (FATAL_ERROR "cannot update WebRTC source code" )
32
32
endif ()
33
33
34
+ message (STATUS "Fetching latest GN build tool from Google" )
35
+ execute_process (
36
+ COMMAND "build/get_gn"
37
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} "
38
+ RESULT_VARIABLE get_gn_result
39
+ )
40
+ if (NOT ${get_gn_result} EQUAL 0 )
41
+ message (FATAL_ERROR "cannot update GN build tool" )
42
+ endif ()
43
+
34
44
message (STATUS "Configuring WebRTC build system" )
35
45
execute_process (
36
46
COMMAND "build/prepare_webrtc_build" "${CMAKE_CURRENT_BINARY_DIR} /ninja"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+ rootdir=" $( cd " $( dirname " $0 " ) " ; pwd) "
4
+ cd " $rootdir "
5
+
6
+ if ! webrtc/src/buildtools/linux64/gn --help & > /dev/null
7
+ then
8
+ # cd "$rootdir/webrtc"
9
+ # download_from_google_storage --no_resume --platform='linux*' --no_auth --bucket chromium-gn -s src/buildtools/linux64/gn.sha1
10
+ if [ ! -d gn ]
11
+ then
12
+ git clone https://gn.googlesource.com/gn
13
+ fi
14
+ cd gn
15
+ CC=gcc CXX=g++ LDFLAGS=-fuse-ld=gold python build/gen.py
16
+ ninja -C out
17
+ cp out/gn ../webrtc/src/buildtools/linux64
18
+ fi
19
+
Original file line number Diff line number Diff line change 10
10
cd " $rootdir /webrtc"
11
11
fetch --nohooks webrtc
12
12
gclient sync --nohooks --revision " $revision "
13
- download_from_google_storage --no_resume --platform=' linux*' --no_auth --bucket chromium-gn -s src/buildtools/linux64/gn.sha1
14
13
elif [ " $run_updates " -eq 1 ]
15
14
then
16
15
cd " $rootdir /webrtc"
17
16
gclient sync --nohooks --revision " $revision "
18
- download_from_google_storage --no_resume --platform=' linux*' --no_auth --bucket chromium-gn -s src/buildtools/linux64/gn.sha1
19
17
fi
20
-
Original file line number Diff line number Diff line change 3
3
rootdir=" $( cd " $( dirname " $0 " ) " ; pwd) "
4
4
export PATH=" $rootdir /depot_tools:$PATH "
5
5
6
+ THIS_ARCH=" $( dpkg-architecture -qDEB_TARGET_ARCH || uname -m) "
7
+ case " $THIS_ARCH " in
8
+ i? 86)
9
+ THIS_ARCH=x86
10
+ ;;
11
+ x86_64|amd64)
12
+ THIS_ARCH=x64
13
+ ;;
14
+ * )
15
+ echo>&2 " Unknown target platform: $THIS_ARCH "
16
+ exit 1
17
+ ;;
18
+ esac
19
+
6
20
cd " $rootdir /webrtc/src"
7
- gn gen " $1 " --args=' is_debug=false is_clang=false is_desktop_linux=false treat_warnings_as_errors=false fatal_linker_warnings=false use_gconf=false use_gio=false use_rtti=true linux_use_bundled_binutils=false use_sysroot=false'
21
+ gn gen " $1 " --args=' is_debug=false is_clang=false is_desktop_linux=false is_android=false treat_warnings_as_errors=false fatal_linker_warnings=false use_gconf=false use_gio=false use_rtti=true linux_use_bundled_binutils=false rtc_enable_protobuf=false rtc_include_tests=false use_sysroot=false current_cpu=" ' $THIS_ARCH ' " target_cpu=" ' $THIS_ARCH ' " '
8
22
Original file line number Diff line number Diff line change 16
16
<buildtool_depend >git</buildtool_depend >
17
17
<buildtool_depend >ninja-build</buildtool_depend >
18
18
<buildtool_depend >cmake</buildtool_depend >
19
+ <depend >gtk2</depend >
19
20
<depend >gtk3</depend >
20
21
<depend >libasound2-dev</depend >
21
22
<depend >libglib-dev</depend >
You can’t perform that action at this time.
0 commit comments