1# Copyright 2021 The Hafnium Authors.
2#
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file or at
5# https://opensource.org/licenses/BSD-3-Clause.
6
7config("config") {
8  include_dirs = [
9    "inc",
10    "//test/inc",
11  ]
12}
13
14source_set("common") {
15  testonly = true
16  public_configs = [
17    ":config",
18    "//src/arch/aarch64:arch_config",
19  ]
20  sources = [
21    "common.c",
22  ]
23}
24
25source_set("partition_services") {
26  testonly = true
27  public_configs = [
28    ":config",
29    "//src/arch/aarch64:arch_config",
30  ]
31  sources = [
32    "partition_services.c",
33  ]
34
35  deps = [
36    ":common",
37    "//src/arch/aarch64:arch",
38    "//src/arch/aarch64/hftest:interrupts",
39    "//test/vmapi/common:common",
40  ]
41}
42
43source_set("notifications") {
44  testonly = true
45  public_configs = [
46    ":config",
47    "//src/arch/aarch64:arch_config",
48  ]
49  sources = [
50    "notifications.c",
51  ]
52
53  deps = [
54    ":common",
55  ]
56}
57
58source_set("power_mgt") {
59  testonly = true
60  public_configs = [
61    ":config",
62    "//src/arch/aarch64:arch_config",
63  ]
64  sources = [
65    "power_mgt.c",
66  ]
67}
68
69source_set("message_loop") {
70  testonly = true
71  public_configs = [
72    ":config",
73    "//test/hftest:hftest_config",
74    "//src/arch/aarch64:arch_config",
75  ]
76  sources = [
77    "message_loop.c",
78  ]
79
80  deps = [
81    ":notifications",
82    ":partition_services",
83    ":power_mgt",
84  ]
85}
86