blob: 3b29ae8cf62bedef3e5eebc7f3fcaa24835347ef [file] [log] [blame]
Bob Badour02040de2021-02-03 18:08:28 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Jaewoong Jung4b79e982020-06-01 10:45:49 -07005bootstrap_go_package {
6 name: "soong-cc",
7 pkgPath: "android/soong/cc",
8 deps: [
9 "blueprint",
Colin Crossa14fb6a2024-10-23 16:57:06 -070010 "blueprint-depset",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070011 "blueprint-pathtools",
12 "soong",
Yu Liueae7b362023-11-16 17:05:47 -080013 "soong-aconfig",
Vinh Tran367d89d2023-04-28 11:21:25 -040014 "soong-aidl-library",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070015 "soong-android",
16 "soong-cc-config",
17 "soong-etc",
hamzehc0a671f2021-07-22 12:05:08 -070018 "soong-fuzz",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070019 "soong-genrule",
20 "soong-tradefed",
21 ],
22 srcs: [
Yi Kongeb8efc92021-12-09 18:06:29 +080023 "afdo.go",
Vinh Tran44cb78c2023-03-09 22:07:19 -050024 "fdo_profile.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070025 "androidmk.go",
Dan Albert1a246272020-07-06 14:49:35 -070026 "api_level.go",
Yi Kongeb8efc92021-12-09 18:06:29 +080027 "builder.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070028 "cc.go",
29 "ccdeps.go",
Cole Faustc9885682024-10-16 17:56:23 -070030 "cc_preprocess_no_configuration.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070031 "check.go",
32 "coverage.go",
33 "gen.go",
Joe Onorato37f900c2023-07-18 16:58:16 -070034 "generated_cc_library.go",
Inseob Kime498dd92020-08-04 09:24:04 +090035 "image.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070036 "linkable.go",
37 "lto.go",
38 "makevars.go",
Sharjeel Khanc6a93d82023-07-18 21:01:11 +000039 "orderfile.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070040 "prebuilt.go",
41 "proto.go",
42 "rs.go",
43 "sanitize.go",
44 "sabi.go",
45 "sdk.go",
Inseob Kimde5744a2020-12-02 13:14:28 +090046 "snapshot_prebuilt.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070047 "stl.go",
48 "strip.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070049 "tidy.go",
50 "util.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070051 "vndk.go",
52 "vndk_prebuilt.go",
53
Hao Chen1c8ea5b2023-10-20 23:03:45 +000054 "cmake_snapshot.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070055 "cmakelists.go",
56 "compdb.go",
57 "compiler.go",
58 "installer.go",
59 "linker.go",
60
61 "binary.go",
62 "binary_sdk_member.go",
63 "fuzz.go",
Paul Duffin63696222021-09-06 10:28:34 +010064 "image_sdk_traits.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070065 "library.go",
66 "library_headers.go",
67 "library_sdk_member.go",
Paul Duffin93b750e2019-11-19 19:44:10 +000068 "native_bridge_sdk_trait.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070069 "object.go",
70 "test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070071
Dan Albertf1d14c72020-07-30 14:32:55 -070072 "ndk_abi.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070073 "ndk_headers.go",
74 "ndk_library.go",
75 "ndk_sysroot.go",
76
77 "llndk_library.go",
78
79 "kernel_headers.go",
80
81 "genrule.go",
82
83 "vendor_public_library.go",
84
85 "testing.go",
Kiyoung Kim24dfc1f2020-11-16 10:48:44 +090086
87 "stub_library.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070088 ],
89 testSrcs: [
Yi Kongd5954a22022-01-26 17:36:26 +080090 "afdo_test.go",
David Brazdil979ef5b2022-05-09 23:11:19 +010091 "binary_test.go",
Cole Faustc9885682024-10-16 17:56:23 -070092 "cc_preprocess_no_configuration_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070093 "cc_test.go",
Ronald Braunsteina115e262024-04-09 18:07:38 -070094 "cc_test_only_property_test.go",
Hao Chen1c8ea5b2023-10-20 23:03:45 +000095 "cmake_snapshot_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -070096 "compiler_test.go",
97 "gen_test.go",
98 "genrule_test.go",
99 "library_headers_test.go",
100 "library_test.go",
Liz Kammer3b0f36c2022-09-16 12:39:27 -0400101 "lto_test.go",
Spandan Das73bcafc2022-08-18 23:26:00 +0000102 "ndk_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700103 "object_test.go",
Sharjeel Khanc6a93d82023-07-18 21:01:11 +0000104 "orderfile_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700105 "prebuilt_test.go",
106 "proto_test.go",
Colin Crosscceefc82024-09-30 14:05:50 -0700107 "sabi_test.go",
Colin Crossaf98f582021-05-12 17:27:32 -0700108 "sanitize_test.go",
Spandan Das73bcafc2022-08-18 23:26:00 +0000109 "sdk_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700110 "test_data_test.go",
Chih-Hung Hsieh104f51f2022-04-20 15:48:41 -0700111 "tidy_test.go",
Colin Crossf12db532021-04-23 14:04:33 -0700112 "vendor_public_library_test.go",
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700113 ],
Hao Chen1c8ea5b2023-10-20 23:03:45 +0000114 embedSrcs: [
115 "cmake_ext_add_aidl_library.txt",
116 "cmake_ext_append_flags.txt",
117 "cmake_main.txt",
118 "cmake_module_aidl.txt",
119 "cmake_module_cc.txt",
120 ],
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700121 pluginFor: ["soong_build"],
Cole Faust16d227a2024-09-18 16:42:01 -0700122 // Used by plugins
123 visibility: ["//visibility:public"],
Jaewoong Jung4b79e982020-06-01 10:45:49 -0700124}
mrziwange5b1bb32024-11-05 15:51:40 -0800125
126phony {
127 name: "llndk_libs",
128 required: [
129 "libEGL",
130 "libGLESv1_CM",
131 "libGLESv2",
132 "libGLESv3",
133 "libRS",
134 "libandroid_net",
135 "libapexsupport",
136 "libbinder_ndk",
137 "libc",
138 "libcgrouprc",
139 "libclang_rt.asan",
140 "libdl",
141 "libft2",
142 "liblog",
143 "libm",
144 "libmediandk",
145 "libnativewindow",
146 "libselinux",
147 "libsync",
148 "libvendorsupport",
149 "libvndksupport",
150 "libvulkan",
151 ],
152}