1// Copyright (C) 2024 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16    name: "cmake_defaults",
17
18    host_supported: true,
19    compile_multilib: "64",
20    enabled: false,
21    check_elf_files: false,
22}
23
24cc_prebuilt_binary {
25    name: "cmake",
26    defaults: ["cmake_defaults"],
27
28    target: {
29        linux: {
30            enabled: true,
31            srcs: ["bin/cmake"],
32        },
33    },
34}
35
36cc_prebuilt_binary {
37    name: "ctest",
38    defaults: ["cmake_defaults"],
39
40    target: {
41        linux: {
42            enabled: true,
43            srcs: ["bin/ctest"],
44        },
45    },
46}
47
48filegroup {
49    name: "cmake_root",
50    srcs: [
51        // not adding share/cmake-3.22/Help due to build system mishandling of files with spaces
52        "share/cmake-3.22/Modules/**/*",
53        "share/cmake-3.22/Templates/**/*",
54        "share/cmake-3.22/include/**/*",
55    ],
56}
57