各们大侠,为什么我把include $(BUILD_SHARED_LIBRARY)改成include $(BUILD_STATIC_LIBRARY)编译静态库,运行NDK-BUILD却一点反应都没有,一闪而过。。
# Copyright (C) 2009 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.
#
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE    := libTestPluginInterface_jni_staticLOCAL_SRC_FILES := com_android_oray_testplugininterface_TestPluginInterface.cpp \
../../../../PhRemote/src/common/blowfish/blowfish.cpp \LOCAL_C_INCLUDES := $(NDK)/sources/cxx-stl/stlport/stlport \
/cygdrive/e/android-sdk-windows/src/platform/frameworks/base/include \
/cygdrive/e/android-sdk-windows/src/platform/system/core/include \
$(LOCAL_PATH)/../../../../PhRemote/src/common/win32 \
$(LOCAL_PATH)/../../../../PhRemote/src/include \
$(LOCAL_PATH)/../../../../PhRemote/src/UDPLib/include \
$(LOCAL_PATH)/../../../../PhRemote/src/client/plugin/include2 \
$(JNI_H_INCLUDE)LOCAL_LDLIBS    := -lm -llog -L$(NDK)/sources/cxx-stl/stlport/libs/armeabi/libstlport_static.aLOCAL_CPPFLAGS := -D__arm__  -D_DISABLE_OBJECT_MONITORING -DUSE_TCPinclude $(BUILD_STATIC_LIBRARY)