Skip to content

Commit

Permalink
Merge pull request #7 from llamerada-jp/m108
Browse files Browse the repository at this point in the history
update for m108
  • Loading branch information
llamerada-jp committed Jan 8, 2023
2 parents 44bbdfc + 11a62f0 commit 1d59515
Show file tree
Hide file tree
Showing 11 changed files with 435 additions and 235 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This program automatically uses the latest stable version of WebRTC's source cod

## Requirements

- golang 1.16 or later
- golang 1.19 or later
- Other requirement environments are depend on [`Chromium project`](https://chromium.googlesource.com/chromium/src/+/master/docs/linux/build_instructions.md)

## How to use
Expand All @@ -19,6 +19,7 @@ This program automatically uses the latest stable version of WebRTC's source cod
At amd64 linux environment.

```sh
sudo dpkg --add-architecture i386
go run . build
go run . test
```
Expand Down
8 changes: 3 additions & 5 deletions configs/linux_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BuildDepsOpts:
- '--no-chromeos-fonts'
- '--no-nacl'
GnOpts:
- 'enable_libaom=false'
- 'libyuv_disable_jpeg=true'
- 'rtc_build_opus=false'
- 'rtc_enable_protobuf=false'
Expand All @@ -15,7 +16,6 @@ GnOpts:
- 'rtc_include_opus=false'
- 'rtc_include_pulse_audio=false'
- 'rtc_use_dummy_audio_file_devices=true'
- 'rtc_use_gtk=false'
- 'rtc_use_x11=false'
- 'target_cpu="x64"'
- 'target_os="linux"'
Expand All @@ -38,10 +38,8 @@ Headers:
- 'modules/audio_coding/include'
- 'modules/audio_device/include'
- 'modules/audio_processing/include'
# - 'modules/bitrate_controller/include'
- 'modules/congestion_controller/include'
- 'modules/include'
- 'modules/remote_bitrate_estimator/include'
- 'modules/rtp_rtcp/include'
- 'modules/rtp_rtcp/source'
- 'modules/utility/include'
Expand All @@ -50,21 +48,21 @@ Headers:
- 'modules/video_coding/codecs/vp9/include'
- 'modules/video_coding/include'
- 'pc'
# - 'rtc_base'
- 'system_wrappers/include'
# add by myself
- '.'
- 'call'
- 'common_video'
- 'common_video/include'
- 'common_video/generic_frame_descriptor'
- 'logging/rtc_event_log'
- 'logging/rtc_event_log/events'
- 'logging/rtc_event_log/encoder'
- 'modules/async_audio_processing'
- 'modules/rtp_rtcp/source/rtcp_packet'
- 'modules/video_coding'
- 'modules/video_coding/codecs/interface'
- 'p2p/base'
- 'video/config'
HeadersWithSubdir:
- 'api'
# add by myself
Expand Down
11 changes: 6 additions & 5 deletions configs/linux_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ BuildDepsOpts:
- '--no-nacl'
SysrootArch: arm64
GnOpts:
- 'enable_libaom=false'
- 'libyuv_disable_jpeg=true'
- 'rtc_build_opus=false'
- 'rtc_enable_protobuf=false'
Expand All @@ -16,12 +17,14 @@ GnOpts:
- 'rtc_include_opus=false'
- 'rtc_include_pulse_audio=false'
- 'rtc_use_dummy_audio_file_devices=true'
- 'rtc_use_gtk=false'
- 'rtc_use_x11=false'
- 'target_cpu="arm64"'
- 'target_os="linux"'
# avoid build error caused by using std::is_pod
- 'treat_warnings_as_errors=false'
- 'use_custom_libcxx=false'
- 'use_libjpeg_turbo=false'
- 'use_gtk=false'
- 'use_rtti=true'
- 'use_system_libjpeg=true'
BuildTargets:
Expand All @@ -39,10 +42,8 @@ Headers:
- 'modules/audio_coding/include'
- 'modules/audio_device/include'
- 'modules/audio_processing/include'
# - 'modules/bitrate_controller/include'
- 'modules/congestion_controller/include'
- 'modules/include'
- 'modules/remote_bitrate_estimator/include'
- 'modules/rtp_rtcp/include'
- 'modules/rtp_rtcp/source'
- 'modules/utility/include'
Expand All @@ -51,21 +52,21 @@ Headers:
- 'modules/video_coding/codecs/vp9/include'
- 'modules/video_coding/include'
- 'pc'
# - 'rtc_base'
- 'system_wrappers/include'
# add by myself
- '.'
- 'call'
- 'common_video'
- 'common_video/include'
- 'common_video/generic_frame_descriptor'
- 'logging/rtc_event_log'
- 'logging/rtc_event_log/events'
- 'logging/rtc_event_log/encoder'
- 'modules/async_audio_processing'
- 'modules/rtp_rtcp/source/rtcp_packet'
- 'modules/video_coding'
- 'modules/video_coding/codecs/interface'
- 'p2p/base'
- 'video/config'
HeadersWithSubdir:
- 'api'
# add by myself
Expand Down
11 changes: 6 additions & 5 deletions configs/linux_armhf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BuildDepsOpts:
SysrootArch: arm
GnOpts:
- 'arm_float_abi="hard"'
- 'enable_libaom=false'
- 'libyuv_disable_jpeg=true'
- 'rtc_build_opus=false'
- 'rtc_enable_protobuf=false'
Expand All @@ -17,12 +18,14 @@ GnOpts:
- 'rtc_include_opus=false'
- 'rtc_include_pulse_audio=false'
- 'rtc_use_dummy_audio_file_devices=true'
- 'rtc_use_gtk=false'
- 'rtc_use_x11=false'
- 'target_cpu="arm"'
- 'target_os="linux"'
# avoid build error caused by using std::is_pod
- 'treat_warnings_as_errors=false'
- 'use_custom_libcxx=false'
- 'use_libjpeg_turbo=false'
- 'use_gtk=false'
- 'use_rtti=true'
- 'use_system_libjpeg=true'
BuildTargets:
Expand All @@ -40,10 +43,8 @@ Headers:
- 'modules/audio_coding/include'
- 'modules/audio_device/include'
- 'modules/audio_processing/include'
# - 'modules/bitrate_controller/include'
- 'modules/congestion_controller/include'
- 'modules/include'
- 'modules/remote_bitrate_estimator/include'
- 'modules/rtp_rtcp/include'
- 'modules/rtp_rtcp/source'
- 'modules/utility/include'
Expand All @@ -52,21 +53,21 @@ Headers:
- 'modules/video_coding/codecs/vp9/include'
- 'modules/video_coding/include'
- 'pc'
# - 'rtc_base'
- 'system_wrappers/include'
# add by myself
- '.'
- 'call'
- 'common_video'
- 'common_video/include'
- 'common_video/generic_frame_descriptor'
- 'logging/rtc_event_log'
- 'logging/rtc_event_log/events'
- 'logging/rtc_event_log/encoder'
- 'modules/async_audio_processing'
- 'modules/rtp_rtcp/source/rtcp_packet'
- 'modules/video_coding'
- 'modules/video_coding/codecs/interface'
- 'p2p/base'
- 'video/config'
HeadersWithSubdir:
- 'api'
# add by myself
Expand Down
11 changes: 6 additions & 5 deletions configs/linux_i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ BuildDepsOpts:
- '--no-nacl'
SysrootArch: x86
GnOpts:
- 'enable_libaom=false'
- 'libyuv_disable_jpeg=true'
- 'rtc_build_opus=false'
- 'rtc_enable_protobuf=false'
Expand All @@ -16,12 +17,14 @@ GnOpts:
- 'rtc_include_opus=false'
- 'rtc_include_pulse_audio=false'
- 'rtc_use_dummy_audio_file_devices=true'
- 'rtc_use_gtk=false'
- 'rtc_use_x11=false'
- 'target_cpu="x86"'
- 'target_os="linux"'
# avoid build error caused by using std::is_pod
- 'treat_warnings_as_errors=false'
- 'use_custom_libcxx=false'
- 'use_libjpeg_turbo=false'
- 'use_gtk=false'
- 'use_rtti=true'
- 'use_system_libjpeg=true'
BuildTargets:
Expand All @@ -39,10 +42,8 @@ Headers:
- 'modules/audio_coding/include'
- 'modules/audio_device/include'
- 'modules/audio_processing/include'
# - 'modules/bitrate_controller/include'
- 'modules/congestion_controller/include'
- 'modules/include'
- 'modules/remote_bitrate_estimator/include'
- 'modules/rtp_rtcp/include'
- 'modules/rtp_rtcp/source'
- 'modules/utility/include'
Expand All @@ -51,21 +52,21 @@ Headers:
- 'modules/video_coding/codecs/vp9/include'
- 'modules/video_coding/include'
- 'pc'
# - 'rtc_base'
- 'system_wrappers/include'
# add by myself
- '.'
- 'call'
- 'common_video'
- 'common_video/include'
- 'common_video/generic_frame_descriptor'
- 'logging/rtc_event_log'
- 'logging/rtc_event_log/events'
- 'logging/rtc_event_log/encoder'
- 'modules/async_audio_processing'
- 'modules/rtp_rtcp/source/rtcp_packet'
- 'modules/video_coding'
- 'modules/video_coding/codecs/interface'
- 'p2p/base'
- 'video/config'
HeadersWithSubdir:
- 'api'
# add by myself
Expand Down
6 changes: 2 additions & 4 deletions configs/macos_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ Headers:
- 'modules/audio_coding/include'
- 'modules/audio_device/include'
- 'modules/audio_processing/include'
# - 'modules/bitrate_controller/include'
- 'modules/congestion_controller/include'
- 'modules/include'
- 'modules/remote_bitrate_estimator/include'
- 'modules/rtp_rtcp/include'
- 'modules/rtp_rtcp/source'
- 'modules/utility/include'
Expand All @@ -44,21 +42,21 @@ Headers:
- 'modules/video_coding/codecs/vp9/include'
- 'modules/video_coding/include'
- 'pc'
# - 'rtc_base'
- 'system_wrappers/include'
# add by myself
- '.'
- 'call'
- 'common_video'
- 'common_video/include'
- 'common_video/generic_frame_descriptor'
- 'logging/rtc_event_log'
- 'logging/rtc_event_log/events'
- 'logging/rtc_event_log/encoder'
- 'modules/async_audio_processing'
- 'modules/rtp_rtcp/source/rtcp_packet'
- 'modules/video_coding'
- 'modules/video_coding/codecs/interface'
- 'p2p/base'
- 'video/config'
HeadersWithSubdir:
- 'api'
# add by myself
Expand Down
26 changes: 23 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
module github.com/llamerada-jp/libwebrtc

go 1.16
go 1.19

require (
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.7.1
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.14.0
)

require (
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
golang.org/x/sys v0.0.0-20220908164124-27713097b956 // indirect
golang.org/x/text v0.4.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit 1d59515

Please sign in to comment.