diff --git a/.github/workflows/examples-linux-standalone.yaml b/.github/workflows/examples-linux-standalone.yaml index 579925e138a236..9748fffa1fd4c9 100644 --- a/.github/workflows/examples-linux-standalone.yaml +++ b/.github/workflows/examples-linux-standalone.yaml @@ -104,6 +104,17 @@ jobs: linux debug tv-app \ out/tv_app_debug/chip-tv-app \ /tmp/bloat_reports/ + - name: Build example Standalone TV Casting App + timeout-minutes: 10 + run: | + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py \ + --target linux-x64-tv-casting-app \ + build" + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ + linux debug tv-casting-app \ + out/linux-x64-tv-casting-app/chip-tv-casting-app \ + /tmp/bloat_reports/ - name: Build example lighting app with RPCs timeout-minutes: 10 run: | diff --git a/examples/tv-casting-app/linux/CastingUtils.cpp b/examples/tv-casting-app/linux/CastingUtils.cpp index 278071d950ec8a..6293ad535c7917 100644 --- a/examples/tv-casting-app/linux/CastingUtils.cpp +++ b/examples/tv-casting-app/linux/CastingUtils.cpp @@ -122,7 +122,8 @@ void HandleUDCSendExpiration(System::Layer * aSystemLayer, void * context) // Send User Directed commissioning request ReturnOnFailure(CastingServer::GetInstance()->SendUserDirectedCommissioningRequest(chip::Transport::PeerAddress::UDP( - selectedCommissioner->ipAddress[0], selectedCommissioner->port, selectedCommissioner->interfaceId))); + selectedCommissioner->resolutionData.ipAddress[0], selectedCommissioner->resolutionData.port, + selectedCommissioner->resolutionData.interfaceId))); } #endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index b6ee9a58d141d9..f94496c1fce0be 100644 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -234,6 +234,8 @@ def HostTargets(): target_native.Extend('rpc-console', app=HostApp.RPC_CONSOLE)) app_targets.append( target_native.Extend('tv-app', app=HostApp.TV_APP)) + app_targets.append( + target_native.Extend('tv-casting-app', app=HostApp.TV_CASTING_APP)) app_targets.append( target_native.Extend('nl-test-runner', app=HostApp.NL_TEST_RUNNER)) diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index db7fbf18c5d64e..1b870f8ad75211 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -28,6 +28,7 @@ class HostApp(Enum): MIN_MDNS = auto() ADDRESS_RESOLVE = auto() TV_APP = auto() + TV_CASTING_APP = auto() LOCK = auto() TESTS = auto() SHELL = auto() @@ -52,6 +53,8 @@ def ExamplePath(self): return 'minimal-mdns' elif self == HostApp.TV_APP: return 'tv-app/linux' + elif self == HostApp.TV_CASTING_APP: + return 'tv-casting-app/linux' elif self == HostApp.LOCK: return 'lock-app/linux' elif self == HostApp.SHELL: @@ -95,6 +98,9 @@ def OutputNames(self): elif self == HostApp.TV_APP: yield 'chip-tv-app' yield 'chip-tv-app.map' + elif self == HostApp.TV_CASTING_APP: + yield 'chip-tv-casting-app' + yield 'chip-tv-casting-app.map' elif self == HostApp.LOCK: yield 'chip-lock-app' yield 'chip-lock-app.map' diff --git a/scripts/build/testdata/build_linux_on_x64.txt b/scripts/build/testdata/build_linux_on_x64.txt index bc3cb4701e2b73..2ff73a9b91d982 100644 --- a/scripts/build/testdata/build_linux_on_x64.txt +++ b/scripts/build/testdata/build_linux_on_x64.txt @@ -159,6 +159,12 @@ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/exa # Generating linux-x64-tv-app-ipv6only gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-tv-app-ipv6only +# Generating linux-x64-tv-casting-app +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux {out}/linux-x64-tv-casting-app + +# Generating linux-x64-tv-casting-app-ipv6only +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-tv-casting-app-ipv6only + # Building linux-arm64-all-clusters ninja -C {out}/linux-arm64-all-clusters @@ -284,3 +290,9 @@ ninja -C {out}/linux-x64-tv-app # Building linux-x64-tv-app-ipv6only ninja -C {out}/linux-x64-tv-app-ipv6only + +# Building linux-x64-tv-casting-app +ninja -C {out}/linux-x64-tv-casting-app + +# Building linux-x64-tv-casting-app-ipv6only +ninja -C {out}/linux-x64-tv-casting-app-ipv6only