Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Commit 1005220

Browse files
committed
Import custom libandroidfw
2 parents d5b137a + 0b2b0e4 commit 1005220

15 files changed

Lines changed: 13673 additions & 0 deletions

libandroidfw/Android.mk

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright (C) 2010 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+
15+
LOCAL_PATH:= $(call my-dir)
16+
17+
# libandroidfw is partially built for the host (used by obbtool, aapt, and others)
18+
# These files are common to host and target builds.
19+
20+
Sources := \
21+
Asset.cpp \
22+
AssetDir.cpp \
23+
AssetManager.cpp \
24+
LocaleData.cpp \
25+
misc.cpp \
26+
ObbFile.cpp \
27+
ResourceTypes.cpp \
28+
StreamingZipInflater.cpp \
29+
TypeWrappers.cpp \
30+
ZipFileRO.cpp \
31+
ZipUtils.cpp
32+
33+
# To use with aapt for android
34+
# =====================================================
35+
36+
include $(CLEAR_VARS)
37+
38+
LOCAL_MODULE:= libandroidfw_static
39+
LOCAL_SRC_FILES:= $(Sources)
40+
LOCAL_C_INCLUDES := \
41+
system/core/include
42+
LOCAL_STATIC_LIBRARIES := libziparchive libbase
43+
LOCAL_SHARED_LIBRARIES := \
44+
libbinder \
45+
liblog \
46+
libcutils \
47+
libgui \
48+
libutils \
49+
libz
50+
51+
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
52+
53+
include $(BUILD_STATIC_LIBRARY)

0 commit comments

Comments
 (0)