Android NDK: how to let gcc to use additional include directories

前端 未结 2 495
走了就别回头了
走了就别回头了 2021-01-07 18:23

A simple question (i am using android NDK r6 with cygwin, but this is a question regarding makefiles and gcc). Suppose that i put under jni/ directory a library under the di

2条回答
  •  情书的邮戳
    2021-01-07 19:21

    You can add C include paths in you Android.mk using:

    common_CFLAGS := -Ijni/mylib/include
    

    Any additional paths require another -I option.

提交回复
热议问题