1# Copyright (C) 2009 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 16# the purpose of this sample is to demonstrate how one can 17# generate two distinct shared libraries and have them both 18# uploaded in 19# 20 21LOCAL_PATH:= $(call my-dir) 22 23# first lib, which will be built statically 24# 25include $(CLEAR_VARS) 26 27LOCAL_MODULE := libtwolib-first 28LOCAL_SRC_FILES := first.c 29 30include $(BUILD_STATIC_LIBRARY) 31 32# second lib, which will depend on and include the first one 33# 34include $(CLEAR_VARS) 35 36LOCAL_MODULE := libtwolib-second 37LOCAL_SRC_FILES := second.c 38 39LOCAL_STATIC_LIBRARIES := libtwolib-first 40 41include $(BUILD_SHARED_LIBRARY) 42