xref: /aosp_15_r20/system/chre/variant/include/chre/variant/config.h (revision 84e339476a462649f82315436d70fd732297a399)
1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 // TODO: b/376532038 - Refactor the platform layer to provide static nanoapps
20 // instead of having it conditionally come out of core/static_nanoapps.cc to
21 // ensure the build graph can properly represent chre.core.
22 #if defined(CHRE_INCLUDE_DEFAULT_STATIC_NANOAPPS)
23 // This cannot be supported due to how the build rules are set up. Ideally this
24 // would be part of a shared platform layer, but it's in fact part of core.
25 #error "CMake does not permit the built in default static nanoapps"
26 #endif  // defined(CHRE_INCLUDE_DEFAULT_STATIC_NANOAPPS)
27 
28 // This should provide all CHRE_* configuration defines.
29 #include "chre/target_variant/config.h"
30