Commit 635ceccc authored by Bailey Forrest's avatar Bailey Forrest Committed by Commit Bot

[chromecast] Introduce cast_source_set

The main changes are in chromecast/chromecast.gni

The rest of the files were modified with these commands:

- Change source_set -> cast_source_set
git ls-files "chromecast/*.gn" | xargs sed -i 's/source_set(/cast_source_set(/g'

- Include chromecast.gni for any GN files missing it
git ls-files "chromecast/*.gn" | xargs grep -L '//chromecast/chromecast.gni' | xargs grep -l 'source_set' | xargs -L1 ~/src/scratch/add_line_after_first_comment.py 'import(' '"//chromecast/chromecast.gni")'

add_line_after_first_comment.py can be found under
chromecast/internal/tools

BUG=b/68723969
TEST=Build and run

Change-Id: I38a06ac4d8a45ebc7963b58e5a2db81fde84e635
Reviewed-on: https://chromium-review.googlesource.com/747894Reviewed-by: default avatarStephen Lanham <slan@chromium.org>
Commit-Queue: Bailey Forrest <bcf@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513035}
parent 5b922d8a
...@@ -44,6 +44,11 @@ group("all") { ...@@ -44,6 +44,11 @@ group("all") {
testonly = true testonly = true
} }
# This is a config which is applied on all cast_* targets (which should be all
# code under chromecast/).
config("cast_config") {
}
# A list of all public test() binaries. This is an organizational target that # A list of all public test() binaries. This is an organizational target that
# cannot be depended upon or built directly. Build cast_test_lists instead. # cannot be depended upon or built directly. Build cast_test_lists instead.
cast_test_group("cast_tests") { cast_test_group("cast_tests") {
......
...@@ -6,7 +6,7 @@ import("//chromecast/chromecast.gni") ...@@ -6,7 +6,7 @@ import("//chromecast/chromecast.gni")
import("//testing/test.gni") import("//testing/test.gni")
import("//tools/grit/grit_rule.gni") import("//tools/grit/grit_rule.gni")
source_set("app") { cast_source_set("app") {
sources = [ sources = [
"cast_main_delegate.cc", "cast_main_delegate.cc",
"cast_main_delegate.h", "cast_main_delegate.h",
...@@ -32,7 +32,7 @@ source_set("app") { ...@@ -32,7 +32,7 @@ source_set("app") {
} }
} }
source_set("cast_crash_client") { cast_source_set("cast_crash_client") {
sources = [ sources = [
"android/cast_crash_reporter_client_android.cc", "android/cast_crash_reporter_client_android.cc",
"android/cast_crash_reporter_client_android.h", "android/cast_crash_reporter_client_android.h",
...@@ -67,7 +67,7 @@ source_set("cast_crash_client") { ...@@ -67,7 +67,7 @@ source_set("cast_crash_client") {
} }
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
"cast_test_launcher.cc", "cast_test_launcher.cc",
...@@ -84,7 +84,7 @@ source_set("test_support") { ...@@ -84,7 +84,7 @@ source_set("test_support") {
] ]
} }
source_set("unittests") { cast_source_set("unittests") {
testonly = true testonly = true
sources = [ sources = [
"linux/cast_crash_reporter_client_unittest.cc", "linux/cast_crash_reporter_client_unittest.cc",
......
...@@ -36,7 +36,7 @@ if (is_android_arc) { ...@@ -36,7 +36,7 @@ if (is_android_arc) {
cast_product_type != 7) cast_product_type != 7)
} }
source_set("base") { cast_source_set("base") {
sources = [ sources = [
"alarm_manager.cc", "alarm_manager.cc",
"alarm_manager.h", "alarm_manager.h",
...@@ -95,7 +95,7 @@ source_set("base") { ...@@ -95,7 +95,7 @@ source_set("base") {
# b/30398176 components that depend on switch values should depend on # b/30398176 components that depend on switch values should depend on
# this target directly instead of depend on //chromecast/base to avoid # this target directly instead of depend on //chromecast/base to avoid
# unnecessary size increase. # unnecessary size increase.
source_set("chromecast_switches") { cast_source_set("chromecast_switches") {
sources = [ sources = [
"chromecast_switches.cc", "chromecast_switches.cc",
"chromecast_switches.h", "chromecast_switches.h",
...@@ -109,7 +109,7 @@ source_set("chromecast_switches") { ...@@ -109,7 +109,7 @@ source_set("chromecast_switches") {
# command line initialization code for shared libs # command line initialization code for shared libs
# b/30398176 shared libs that depend on InitCommandLineShlib() only should # b/30398176 shared libs that depend on InitCommandLineShlib() only should
# use this target instead of //chromecast/base # use this target instead of //chromecast/base
source_set("init_shlib") { cast_source_set("init_shlib") {
sources = [ sources = [
"init_command_line_shlib.cc", "init_command_line_shlib.cc",
"init_command_line_shlib.h", "init_command_line_shlib.h",
...@@ -120,7 +120,7 @@ source_set("init_shlib") { ...@@ -120,7 +120,7 @@ source_set("init_shlib") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
sources = [ sources = [
"scoped_temp_file.cc", "scoped_temp_file.cc",
"scoped_temp_file.h", "scoped_temp_file.h",
...@@ -157,7 +157,7 @@ test("cast_base_unittests") { ...@@ -157,7 +157,7 @@ test("cast_base_unittests") {
] ]
} }
source_set("cast_sys_info") { cast_source_set("cast_sys_info") {
sources = [ sources = [
"cast_sys_info_android.cc", "cast_sys_info_android.cc",
"cast_sys_info_android.h", "cast_sys_info_android.h",
...@@ -196,7 +196,7 @@ cast_shared_library("libcast_sys_info_1.0") { ...@@ -196,7 +196,7 @@ cast_shared_library("libcast_sys_info_1.0") {
} }
# Note: Android links //chromecast/base:cast_sys_info statically. # Note: Android links //chromecast/base:cast_sys_info statically.
source_set("cast_sys_info_shlib") { cast_source_set("cast_sys_info_shlib") {
if (!is_android) { if (!is_android) {
sources = [ sources = [
"cast_sys_info_util_shlib.cc", "cast_sys_info_util_shlib.cc",
...@@ -211,7 +211,7 @@ source_set("cast_sys_info_shlib") { ...@@ -211,7 +211,7 @@ source_set("cast_sys_info_shlib") {
} }
} }
source_set("thread_health_checker") { cast_source_set("thread_health_checker") {
sources = [ sources = [
"thread_health_checker.cc", "thread_health_checker.cc",
"thread_health_checker.h", "thread_health_checker.h",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("component") { cast_source_set("component") {
sources = [ sources = [
"component.cc", "component.cc",
"component.h", "component.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("metrics") { import("//chromecast/chromecast.gni")
cast_source_set("metrics") {
sources = [ sources = [
"cast_histograms.h", "cast_histograms.h",
"cast_metrics_helper.cc", "cast_metrics_helper.cc",
...@@ -16,7 +18,7 @@ source_set("metrics") { ...@@ -16,7 +18,7 @@ source_set("metrics") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -13,7 +13,7 @@ if (is_android) { ...@@ -13,7 +13,7 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
source_set("browser") { cast_source_set("browser") {
sources = [ sources = [
"cast_browser_context.cc", "cast_browser_context.cc",
"cast_browser_context.h", "cast_browser_context.h",
...@@ -253,7 +253,7 @@ grit("resources") { ...@@ -253,7 +253,7 @@ grit("resources") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/cast_browser_test.cc", "test/cast_browser_test.cc",
...@@ -274,7 +274,7 @@ source_set("test_support") { ...@@ -274,7 +274,7 @@ source_set("test_support") {
] ]
} }
source_set("browsertests") { cast_source_set("browsertests") {
testonly = true testonly = true
sources = [ sources = [
"cast_media_blocker_browsertest.cc", "cast_media_blocker_browsertest.cc",
...@@ -296,7 +296,7 @@ source_set("browsertests") { ...@@ -296,7 +296,7 @@ source_set("browsertests") {
] ]
} }
source_set("unittests") { cast_source_set("unittests") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("metrics") { import("//chromecast/chromecast.gni")
cast_source_set("metrics") {
sources = [ sources = [
"cast_metrics_prefs.cc", "cast_metrics_prefs.cc",
"cast_metrics_prefs.h", "cast_metrics_prefs.h",
......
...@@ -84,14 +84,21 @@ foreach(target_type, ...@@ -84,14 +84,21 @@ foreach(target_type,
"executable", "executable",
"shared_library", "shared_library",
"loadable_module", "loadable_module",
"source_set",
]) { ]) {
template("cast_${target_type}") { template("cast_${target_type}") {
target(target_type, target_name) { target(target_type, target_name) {
forward_variables_from(invoker, "*") forward_variables_from(invoker, "*")
configs += [ "//chromecast:cast_config" ]
if (!defined(deps)) { if (!defined(deps)) {
deps = [] deps = []
} }
deps += [ "//build/config:exe_and_shlib_deps" ]
if (target_type != "source_set") {
deps += [ "//build/config:exe_and_shlib_deps" ]
}
} }
} }
} }
...@@ -116,3 +123,7 @@ set_defaults("cast_loadable_module") { ...@@ -116,3 +123,7 @@ set_defaults("cast_loadable_module") {
configs -= [ "//build/config/android:hide_all_but_jni_onload" ] configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
} }
} }
set_defaults("cast_source_set") {
configs = default_compiler_configs
}
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
source_set("common") { cast_source_set("common") {
sources = [ sources = [
"cast_content_client.cc", "cast_content_client.cc",
"cast_content_client.h", "cast_content_client.h",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
source_set("media") { cast_source_set("media") {
if (is_android) { if (is_android) {
sources = [ sources = [
"cast_media_drm_bridge_client.cc", "cast_media_drm_bridge_client.cc",
......
...@@ -9,7 +9,7 @@ import("//testing/test.gni") ...@@ -9,7 +9,7 @@ import("//testing/test.gni")
# TODO(crbug.com/753619): Enable crash reporting on Fuchsia. # TODO(crbug.com/753619): Enable crash reporting on Fuchsia.
assert(!is_fuchsia) assert(!is_fuchsia)
source_set("crash") { cast_source_set("crash") {
sources = [ sources = [
"app_state_tracker.cc", "app_state_tracker.cc",
"app_state_tracker.h", "app_state_tracker.h",
...@@ -71,7 +71,7 @@ cast_executable("crash_uploader") { ...@@ -71,7 +71,7 @@ cast_executable("crash_uploader") {
} }
} }
source_set("test_support") { cast_source_set("test_support") {
sources = [ sources = [
"linux/crash_testing_utils.cc", "linux/crash_testing_utils.cc",
"linux/crash_testing_utils.h", "linux/crash_testing_utils.h",
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("crypto") { cast_source_set("crypto") {
sources = [ sources = [
"signature_cache.cc", "signature_cache.cc",
"signature_cache.h", "signature_cache.h",
......
...@@ -6,7 +6,7 @@ import("//chromecast/chromecast.gni") ...@@ -6,7 +6,7 @@ import("//chromecast/chromecast.gni")
import("//build/config/ui.gni") import("//build/config/ui.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("graphics") { cast_source_set("graphics") {
sources = [ sources = [
"cast_window_manager.h", "cast_window_manager.h",
] ]
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//media/media_options.gni") import("//media/media_options.gni")
source_set("audio") { cast_source_set("audio") {
sources = [ sources = [
"cast_audio_manager.cc", "cast_audio_manager.cc",
"cast_audio_manager.h", "cast_audio_manager.h",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
source_set("key_systems") { cast_source_set("key_systems") {
sources = [ sources = [
"key_systems_common.cc", "key_systems_common.cc",
"key_systems_common.h", "key_systems_common.h",
...@@ -22,7 +22,7 @@ source_set("key_systems") { ...@@ -22,7 +22,7 @@ source_set("key_systems") {
] ]
} }
source_set("base") { cast_source_set("base") {
sources = [ sources = [
"audio_device_ids.cc", "audio_device_ids.cc",
"audio_device_ids.h", "audio_device_ids.h",
...@@ -64,7 +64,7 @@ source_set("base") { ...@@ -64,7 +64,7 @@ source_set("base") {
] ]
} }
source_set("media_resource_tracker") { cast_source_set("media_resource_tracker") {
sources = [ sources = [
"media_resource_tracker.cc", "media_resource_tracker.cc",
"media_resource_tracker.h", "media_resource_tracker.h",
...@@ -77,7 +77,7 @@ source_set("media_resource_tracker") { ...@@ -77,7 +77,7 @@ source_set("media_resource_tracker") {
] ]
} }
source_set("media_codec_support") { cast_source_set("media_codec_support") {
sources = [ sources = [
"media_codec_support.cc", "media_codec_support.cc",
"media_codec_support.h", "media_codec_support.h",
...@@ -93,7 +93,7 @@ source_set("media_codec_support") { ...@@ -93,7 +93,7 @@ source_set("media_codec_support") {
] ]
} }
source_set("video_plane_controller") { cast_source_set("video_plane_controller") {
sources = [ sources = [
"video_plane_controller.cc", "video_plane_controller.cc",
"video_plane_controller.h", "video_plane_controller.h",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
import("//media/media_options.gni") import("//media/media_options.gni")
source_set("cdm") { cast_source_set("cdm") {
sources = [ sources = [
"chromecast_init_data.cc", "chromecast_init_data.cc",
"chromecast_init_data.h", "chromecast_init_data.h",
......
...@@ -14,7 +14,7 @@ group("cma") { ...@@ -14,7 +14,7 @@ group("cma") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/frame_generator_for_test.cc", "test/frame_generator_for_test.cc",
...@@ -42,7 +42,7 @@ source_set("test_support") { ...@@ -42,7 +42,7 @@ source_set("test_support") {
] ]
} }
source_set("unittests") { cast_source_set("unittests") {
testonly = true testonly = true
sources = [ sources = [
"backend/audio_video_pipeline_device_unittest.cc", "backend/audio_video_pipeline_device_unittest.cc",
......
...@@ -16,7 +16,7 @@ declare_args() { ...@@ -16,7 +16,7 @@ declare_args() {
use_alsa && !enable_assistant && chromecast_branding != "google" use_alsa && !enable_assistant && chromecast_branding != "google"
} }
source_set("backend") { cast_source_set("backend") {
sources = [ sources = [
"audio_decoder_wrapper.cc", "audio_decoder_wrapper.cc",
"audio_decoder_wrapper.h", "audio_decoder_wrapper.h",
...@@ -42,7 +42,7 @@ source_set("backend") { ...@@ -42,7 +42,7 @@ source_set("backend") {
] ]
} }
source_set("cast_media_android_dummy") { cast_source_set("cast_media_android_dummy") {
sources = [ sources = [
"cast_media_android_dummy.cc", "cast_media_android_dummy.cc",
] ]
...@@ -71,7 +71,7 @@ cast_shared_library("libcast_media_1.0") { ...@@ -71,7 +71,7 @@ cast_shared_library("libcast_media_1.0") {
# Dummy implementation of media backend used on chromecast devices. # Dummy implementation of media backend used on chromecast devices.
# Must not depend on anything outside //chromecast/public. # Must not depend on anything outside //chromecast/public.
source_set("dummy") { cast_source_set("dummy") {
sources = [ sources = [
"cast_media_dummy.cc", "cast_media_dummy.cc",
] ]
...@@ -92,7 +92,7 @@ buildflag_header("audio_features") { ...@@ -92,7 +92,7 @@ buildflag_header("audio_features") {
# Implementation of video decoder that discards decoder buffers. # Implementation of video decoder that discards decoder buffers.
# Used on audio platforms for media streams containing video. # Used on audio platforms for media streams containing video.
source_set("null") { cast_source_set("null") {
sources = [ sources = [
"video_decoder_null.cc", "video_decoder_null.cc",
"video_decoder_null.h", "video_decoder_null.h",
...@@ -104,7 +104,7 @@ source_set("null") { ...@@ -104,7 +104,7 @@ source_set("null") {
] ]
} }
source_set("audio") { cast_source_set("audio") {
sources = [ sources = [
"audio_decoder_for_mixer.cc", "audio_decoder_for_mixer.cc",
"audio_decoder_for_mixer.h", "audio_decoder_for_mixer.h",
...@@ -191,7 +191,7 @@ cast_shared_library("libcast_governor_1.0") { ...@@ -191,7 +191,7 @@ cast_shared_library("libcast_governor_1.0") {
] ]
} }
source_set("governor") { cast_source_set("governor") {
sources = [ sources = [
"post_processors/governor.cc", "post_processors/governor.cc",
"post_processors/governor.h", "post_processors/governor.h",
...@@ -215,7 +215,7 @@ cast_shared_library("libcast_saturated_gain_1.0") { ...@@ -215,7 +215,7 @@ cast_shared_library("libcast_saturated_gain_1.0") {
] ]
} }
source_set("saturated_gain") { cast_source_set("saturated_gain") {
sources = [ sources = [
"post_processors/saturated_gain.cc", "post_processors/saturated_gain.cc",
"post_processors/saturated_gain.h", "post_processors/saturated_gain.h",
......
...@@ -26,7 +26,7 @@ cast_shared_library("libcast_media_1.0_audio") { ...@@ -26,7 +26,7 @@ cast_shared_library("libcast_media_1.0_audio") {
] ]
} }
source_set("alsa_cma_backend") { cast_source_set("alsa_cma_backend") {
sources = [ sources = [
"alsa_volume_control.cc", "alsa_volume_control.cc",
"alsa_volume_control.h", "alsa_volume_control.h",
...@@ -51,7 +51,7 @@ source_set("alsa_cma_backend") { ...@@ -51,7 +51,7 @@ source_set("alsa_cma_backend") {
] ]
} }
source_set("unit_tests") { cast_source_set("unit_tests") {
testonly = true testonly = true
sources = [ sources = [
# TODO(sergeyu): Remove ALSA dependency from these tests and move them # TODO(sergeyu): Remove ALSA dependency from these tests and move them
...@@ -71,7 +71,7 @@ source_set("unit_tests") { ...@@ -71,7 +71,7 @@ source_set("unit_tests") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -6,7 +6,7 @@ import("//build/config/android/config.gni") ...@@ -6,7 +6,7 @@ import("//build/config/android/config.gni")
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
source_set("cast_media_android") { cast_source_set("cast_media_android") {
sources = [ sources = [
"audio_decoder_android.cc", "audio_decoder_android.cc",
"audio_decoder_android.h", "audio_decoder_android.h",
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
# Default implementation of media backend used on desktop builds for tests. # Default implementation of media backend used on desktop builds for tests.
source_set("desktop") { cast_source_set("desktop") {
sources = [ sources = [
"audio_decoder_desktop.cc", "audio_decoder_desktop.cc",
"audio_decoder_desktop.h", "audio_decoder_desktop.h",
......
...@@ -8,7 +8,7 @@ import("//testing/test.gni") ...@@ -8,7 +8,7 @@ import("//testing/test.gni")
assert(is_fuchsia) assert(is_fuchsia)
source_set("fuchsia") { cast_source_set("fuchsia") {
sources = [ sources = [
"cast_media_shlib_fuchsia.cc", "cast_media_shlib_fuchsia.cc",
"fuchsia_volume_control.cc", "fuchsia_volume_control.cc",
...@@ -28,7 +28,7 @@ source_set("fuchsia") { ...@@ -28,7 +28,7 @@ source_set("fuchsia") {
libs = [ "media_client" ] libs = [ "media_client" ]
} }
source_set("unit_tests") { cast_source_set("unit_tests") {
testonly = true testonly = true
sources = [ sources = [
"mixer_output_stream_fuchsia_unittest.cc", "mixer_output_stream_fuchsia_unittest.cc",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("test_support") { import("//chromecast/chromecast.gni")
cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
"post_processor_unittest.cc", "post_processor_unittest.cc",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("base") { import("//chromecast/chromecast.gni")
cast_source_set("base") {
sources = [ sources = [
"balanced_media_task_runner_factory.cc", "balanced_media_task_runner_factory.cc",
"balanced_media_task_runner_factory.h", "balanced_media_task_runner_factory.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("decoder") { import("//chromecast/chromecast.gni")
cast_source_set("decoder") {
sources = [ sources = [
"cast_audio_decoder.cc", "cast_audio_decoder.cc",
"cast_audio_decoder.h", "cast_audio_decoder.h",
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//build/buildflag_header.gni") import("//build/buildflag_header.gni")
import("//build/config/chromecast_build.gni") import("//build/config/chromecast_build.gni")
...@@ -10,7 +11,7 @@ declare_args() { ...@@ -10,7 +11,7 @@ declare_args() {
cma_use_accurate_media_time = is_cast_audio_only cma_use_accurate_media_time = is_cast_audio_only
} }
source_set("pipeline") { cast_source_set("pipeline") {
sources = [ sources = [
"audio_decoder_software_wrapper.cc", "audio_decoder_software_wrapper.cc",
"audio_decoder_software_wrapper.h", "audio_decoder_software_wrapper.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("service") { import("//chromecast/chromecast.gni")
cast_source_set("service") {
sources = [ sources = [
"cast_mojo_media_client.cc", "cast_mojo_media_client.cc",
"cast_mojo_media_client.h", "cast_mojo_media_client.h",
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("net") { cast_source_set("net") {
sources = [ sources = [
"connectivity_checker.cc", "connectivity_checker.cc",
"connectivity_checker.h", "connectivity_checker.h",
...@@ -36,7 +37,7 @@ source_set("net") { ...@@ -36,7 +37,7 @@ source_set("net") {
] ]
} }
source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//chromecast/chromecast.gni")
config("public_config") { config("public_config") {
include_dirs = [ "//chromecast/public" ] include_dirs = [ "//chromecast/public" ]
} }
source_set("public") { cast_source_set("public") {
sources = [ sources = [
"avsettings.h", "avsettings.h",
"cast_egl_platform.h", "cast_egl_platform.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("media") { import("//chromecast/chromecast.gni")
cast_source_set("media") {
sources = [ sources = [
"audio_post_processor_shlib.h", "audio_post_processor_shlib.h",
"cast_decoder_buffer.h", "cast_decoder_buffer.h",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
source_set("renderer") { cast_source_set("renderer") {
sources = [ sources = [
"cast_content_renderer_client.cc", "cast_content_renderer_client.cc",
"cast_content_renderer_client.h", "cast_content_renderer_client.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("media") { import("//chromecast/chromecast.gni")
cast_source_set("media") {
sources = [ sources = [
"key_systems_cast.cc", "key_systems_cast.cc",
"key_systems_cast.h", "key_systems_cast.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("service") { import("//chromecast/chromecast.gni")
cast_source_set("service") {
sources = [ sources = [
"cast_service.cc", "cast_service.cc",
"cast_service.h", "cast_service.h",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("reboot_util") { cast_source_set("reboot_util") {
sources = [ sources = [
"reboot_util.h", "reboot_util.h",
"reboot_util_core.cc", "reboot_util_core.cc",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//chromecast/chromecast.gni") import("//chromecast/chromecast.gni")
source_set("utility") { cast_source_set("utility") {
sources = [ sources = [
"cast_content_utility_client.h", "cast_content_utility_client.h",
] ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment