Skip to content

Commit

Permalink
Add building of TV example to gn_build.sh (#6903)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lazarkov authored and pull[bot] committed Jul 16, 2021
1 parent f41abe5 commit 2403790
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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" ]
}
Expand Down

0 comments on commit 2403790

Please sign in to comment.