-
Notifications
You must be signed in to change notification settings - Fork 115
/
build.sh
executable file
·34 lines (29 loc) · 1.11 KB
/
build.sh
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
29
30
31
32
33
34
#!/bin/bash
set -e
OUT="system/bin"
if [ ! -d $OUT ]; then
mkdir $OUT
fi
export PATH=${PATH}:${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin
CXX=${CXX:-aarch64-linux-android31-clang++}
${CXX} \
-Iaosp/bionic/libc \
-Iaosp/bionic/libc/async_safe/include \
-Iaosp/bionic/libc/include \
-Iaosp/bionic/libc/system_properties/include \
-Iaosp/system/core/base/include \
-Iaosp/system/core/property_service/libpropertyinfoparser/include \
aosp/bionic/libc/bionic/system_property_api.cpp \
aosp/bionic/libc/bionic/system_property_set.cpp \
aosp/bionic/libc/system_properties/context_node.cpp \
aosp/bionic/libc/system_properties/contexts_serialized.cpp \
aosp/bionic/libc/system_properties/contexts_split.cpp \
aosp/bionic/libc/system_properties/prop_area.cpp \
aosp/bionic/libc/system_properties/prop_info.cpp \
aosp/bionic/libc/system_properties/system_properties.cpp \
aosp/system/core/base/strings.cpp \
aosp/system/core/property_service/libpropertyinfoparser/property_info_parser.cpp \
main.cpp \
-static \
-std=c++17 \
-o $OUT/ih8sn