blob: f979aec15477100eba058daeb3e4074d052b358b [file] [log] [blame]
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -07001// 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
Tomasz Wasilczyk2b43ce52024-06-11 14:14:18 -070015cc_defaults {
16 name: "cmake_defaults",
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -070017
Tomasz Wasilczyk2b43ce52024-06-11 14:14:18 -070018 host_supported: true,
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -070019 compile_multilib: "64",
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -070020 enabled: false,
21 check_elf_files: false,
Tomasz Wasilczyk2b43ce52024-06-11 14:14:18 -070022}
23
24cc_prebuilt_binary {
25 name: "cmake",
26 defaults: ["cmake_defaults"],
27
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -070028 target: {
29 linux: {
30 enabled: true,
31 srcs: ["bin/cmake"],
32 },
33 },
34}
35
Tomasz Wasilczyk2b43ce52024-06-11 14:14:18 -070036cc_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
Tomasz Wasilczyk7f498792024-06-05 12:36:52 -070048filegroup {
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}