| # Copyright (C) 2010 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. | |
| # | |
| $(call check-defined-LOCAL_MODULE,$(LOCAL_BUILD_SCRIPT)) | |
| $(call check-LOCAL_MODULE,$(LOCAL_MAKEFILE)) | |
| # This file is used to record the LOCAL_XXX definitions of a given | |
| # module. It is included by BUILD_STATIC_LIBRARY, BUILD_SHARED_LIBRARY | |
| # and others. | |
| # | |
| LOCAL_MODULE_CLASS := $(strip $(LOCAL_MODULE_CLASS)) | |
| ifndef LOCAL_MODULE_CLASS | |
| $(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): LOCAL_MODULE_CLASS definition is missing !) | |
| $(call __ndk_error,Aborting) | |
| endif | |
| $(if $(call module-class-check,$(LOCAL_MODULE_CLASS)),,\ | |
| $(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): Unknown LOCAL_MODULE_CLASS value: $(LOCAL_MODULE_CLASS))\ | |
| $(call __ndk_error,Aborting)\ | |
| ) | |
| $(call module-add,$(LOCAL_MODULE)) | |
| # Eval sucks. It's not possible to preserve even properly escaped # characters | |
| # as far as I can tell, and we need that for -Werror=#warnings. Manually stash | |
| # all the flags variations so we can preserve these. | |
| __ndk_modules.$(LOCAL_MODULE).ASFLAGS := $(LOCAL_ASFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).ASMFLAGS := $(LOCAL_ASMFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).CFLAGS := $(LOCAL_CFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).CLANG_TIDY_FLAGS := $(LOCAL_CLANG_TIDY_FLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).CONLYFLAGS := $(LOCAL_CONLYFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).CPPFLAGS := $(LOCAL_CPPFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).CXXFLAGS := $(LOCAL_CXXFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).LDFLAGS := $(LOCAL_LDFLAGS) | |
| __ndk_modules.$(LOCAL_MODULE).RENDERSCRIPT_FLAGS := $(LOCAL_RENDERSCRIPT_FLAGS) |