build-shared-library.mk revision 8700ca93c26e2908670a9982c68f4b8a2bf7dce4
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# this file is included from Android.mk files to build a target-specific
17# shared library
18#
19
20LOCAL_BUILD_SCRIPT := BUILD_SHARED_LIBRARY
21LOCAL_MAKEFILE     := $(local-makefile)
22
23$(call check-defined-LOCAL_MODULE,$(LOCAL_BUILD_SCRIPT))
24$(call check-LOCAL_MODULE,$(LOCAL_MAKEFILE))
25
26# we are building target objects
27my := TARGET_
28
29LOCAL_BUILT_MODULE := $(call shared-library-path,$(LOCAL_MODULE))
30LOCAL_OBJS_DIR     := $(TARGET_OBJS)/$(LOCAL_MODULE)
31
32$(call module-add-shared-library,$(LOCAL_MODULE))
33