From 2403790f68bd533b930cae3458344820a05b7597 Mon Sep 17 00:00:00 2001 From: Lazar Kovacic Date: Tue, 18 May 2021 03:46:21 +0200 Subject: [PATCH] Add building of TV example to gn_build.sh (#6903) Problem TV example app is not built using gn_build.sh script Summary of Changes - Updated the ./BUILD.gn to support building of tv-example-app Test Used the ./gn_build.sh to verify the building is successful --- BUILD.gn | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 0d5fa95d21e742..d372410bd4e2ee 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -199,6 +199,10 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") { enable_linux_all_clusters_app_build = enable_default_builds && (host_os == "linux" || host_os == "mac") + # Build the Linux tv app example. + enable_linux_tv_app_build = + enable_default_builds && (host_os == "linux" || host_os == "mac") + # Build the Linux bridge app example. enable_linux_bridge_app_build = enable_default_builds && (host_os == "linux" || host_os == "mac") @@ -299,6 +303,12 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") { } } + if (enable_linux_tv_app_build) { + group("linux_tv_app") { + deps = [ "${chip_root}/examples/tv-app/linux(${standalone_toolchain})" ] + } + } + if (enable_linux_bridge_app_build) { group("linux_bridge_app") { deps = @@ -375,6 +385,9 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") { if (enable_linux_all_clusters_app_build) { deps += [ ":linux_all_clusters_app" ] } + if (enable_linux_tv_app_build) { + deps += [ ":linux_tv_app" ] + } if (enable_linux_bridge_app_build) { deps += [ ":linux_bridge_app" ] }