jochen | 83c639f0 | 2015-04-22 17:07:37 | [diff] [blame] | 1 | # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//components/scheduler/scheduler.gni") |
| 6 | |
| 7 | # GYP version: components/scheduler.gypi:scheduler |
| 8 | component("scheduler") { |
| 9 | sources = rebase_path(scheduler_gypi_values.scheduler_sources, |
| 10 | ".", |
| 11 | "//components/scheduler") |
| 12 | |
| 13 | defines = [ "SCHEDULER_IMPLEMENTATION" ] |
| 14 | |
| 15 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 16 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 17 | |
| 18 | deps = [ |
| 19 | ":common", |
| 20 | "//base", |
| 21 | "//cc:cc", |
| 22 | "//third_party/WebKit/public:blink", |
| 23 | "//ui/gfx:gfx", |
| 24 | ] |
skyostil | 61b01b0 | 2015-05-06 12:28:31 | [diff] [blame] | 25 | |
| 26 | public_deps = [ |
| 27 | "//third_party/WebKit/public:blink", |
| 28 | ] |
jochen | 83c639f0 | 2015-04-22 17:07:37 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | # GYP version: components/scheduler.gypi:scheduler_common |
| 32 | source_set("common") { |
| 33 | sources = rebase_path(scheduler_gypi_values.scheduler_common_sources, |
| 34 | ".", |
| 35 | "//components/scheduler") |
| 36 | } |
| 37 | |
| 38 | source_set("unit_tests") { |
| 39 | testonly = true |
| 40 | |
| 41 | sources = [ |
| 42 | "child/nestable_task_runner_for_test.cc", |
| 43 | "child/nestable_task_runner_for_test.h", |
| 44 | "child/prioritizing_task_queue_selector_unittest.cc", |
| 45 | "child/scheduler_helper_unittest.cc", |
skyostil | ffca98f | 2015-07-16 16:44:37 | [diff] [blame^] | 46 | "child/scheduler_task_runner_delegate_for_test.cc", |
| 47 | "child/scheduler_task_runner_delegate_for_test.h", |
| 48 | "child/scheduler_task_runner_delegate_impl_unittest.cc", |
jochen | 83c639f0 | 2015-04-22 17:07:37 | [diff] [blame] | 49 | "child/task_queue_manager_unittest.cc", |
| 50 | "child/test_time_source.cc", |
| 51 | "child/test_time_source.h", |
skyostil | 475c89a4 | 2015-04-28 12:39:05 | [diff] [blame] | 52 | "child/webthread_impl_for_worker_scheduler_unittest.cc", |
jochen | 83c639f0 | 2015-04-22 17:07:37 | [diff] [blame] | 53 | "child/worker_scheduler_impl_unittest.cc", |
| 54 | "renderer/deadline_task_runner_unittest.cc", |
| 55 | "renderer/renderer_scheduler_impl_unittest.cc", |
skyostil | 475c89a4 | 2015-04-28 12:39:05 | [diff] [blame] | 56 | "renderer/webthread_impl_for_renderer_scheduler_unittest.cc", |
ankur1.verma | 2e4c4e1 | 2015-06-13 13:38:28 | [diff] [blame] | 57 | "test/test_always_fail_time_source.cc", |
| 58 | "test/test_always_fail_time_source.h", |
jochen | 83c639f0 | 2015-04-22 17:07:37 | [diff] [blame] | 59 | ] |
| 60 | |
| 61 | deps = [ |
| 62 | ":scheduler", |
| 63 | "//cc:test_support", |
| 64 | "//testing/gmock", |
| 65 | "//testing/gtest", |
| 66 | ] |
| 67 | } |
skyostil | ae456cc | 2015-06-04 11:42:05 | [diff] [blame] | 68 | |
| 69 | # GYP version: components/scheduler.gypi:scheduler_test_support |
| 70 | static_library("test_support") { |
| 71 | sources = rebase_path(scheduler_gypi_values.scheduler_test_support_sources, |
| 72 | ".", |
| 73 | "//components/scheduler") |
| 74 | |
| 75 | deps = [ |
| 76 | "//base", |
| 77 | ] |
| 78 | } |