2

我正在尝试从 NDK 项目中的 SKIA 库配置 CPP 文件。
错误make: ***即使我在 Android.mk 文件中提供了目标规则,也没有规则继续发生。这是我的代码

LOCAL_PATH:=$(call my-dir)
CC=gcc
CC_FLAGS=-I

include $(CLEAR_VARS) # clear out the variables of the previous module

# Name of the module that the app will reference with System.loadLibrary
LOCAL_MODULE := hello_skia_ndk

%.o: %.cpp
        $(CC) -o $@ -c $< $(CC_FLAGS)

# List   source files compiled for this module

PROJECT_FILES:= $(wildcard $(LOCAL_PATH)/*.cpp)
PROJECT_FILES+= helloskia.cpp

LOCAL_SRC_FILES := $(PROJECT_FILES)

# jnigraphics defines the function AndroidBitmap_lockPixels, which we need in order to draw into
# android.graphics.Bitmap

LOCAL_LDLIBS := -ljnigraphics -landroid

include $(BUILD_SHARED_LIBRARY)

任何帮助将不胜感激。

4

0 回答 0