aboutsummaryrefslogtreecommitdiff
path: root/scudo/wrappers_cpp_copy.cpp
blob: 3ec418d298eaf2ffee416b6bd5af6a80e1de2d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Because the Trusty rules.mk build system associates .o files with their
 * corresponding sources, this file serves to provide an app-specific source
 * file which we build independently from the original wrappers_c.cpp and
 * wrappers_cpp.cpp files to provide custom defines/includes, namely
 * `USE_CUSTOM_SCUDO_CONFIG` and the custom_scudo_config.h file for each app.
 * This lets us have a separate copy of scudo.a linked together for each app,
 * using the contents of these two .cpp files built with that app's custom
 * scudo config header.
 */

#include "wrappers_cpp.cpp"