anroid c编译 android.mk 的编写注意事项

来源:互联网 发布:数据可视化方案 编辑:程序博客网 时间:2024/06/05 19:33

  1 #include <stdio.h>
  2 int main(){
  3     printf("hello worldlang \n");
  4     return 0;
  5 }

  1 LOCAL_PATH := $(call my-dir)
  2 include $(CLEAR_VARS)
  3 LOCAL_MODULE_TAGS := optional
  4 LOCAL_MODULE := hello
  5 LOCAL_SRC_FILES := $(call all-subdir-c-files)  //这里不能写具体的文件路径不然编译不过 写个简单的helllo程序即可  (不知为什么有时候这里必须以源文件)
  6 include $(BUILD_EXECUTABLE)
~