Tomasz Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 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 | |
Tomasz Wasilczyk | 2b43ce5 | 2024-06-11 14:14:18 -0700 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "cmake_defaults", |
Tomasz Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 17 | |
Tomasz Wasilczyk | 2b43ce5 | 2024-06-11 14:14:18 -0700 | [diff] [blame] | 18 | host_supported: true, |
Tomasz Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 19 | compile_multilib: "64", |
Tomasz Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 20 | enabled: false, |
| 21 | check_elf_files: false, |
Tomasz Wasilczyk | 2b43ce5 | 2024-06-11 14:14:18 -0700 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | cc_prebuilt_binary { |
| 25 | name: "cmake", |
| 26 | defaults: ["cmake_defaults"], |
| 27 | |
Tomasz Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 28 | target: { |
| 29 | linux: { |
| 30 | enabled: true, |
| 31 | srcs: ["bin/cmake"], |
| 32 | }, |
| 33 | }, |
| 34 | } |
| 35 | |
Tomasz Wasilczyk | 2b43ce5 | 2024-06-11 14:14:18 -0700 | [diff] [blame] | 36 | cc_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 Wasilczyk | 7f49879 | 2024-06-05 12:36:52 -0700 | [diff] [blame] | 48 | filegroup { |
| 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 | } |