NDK Build Tips

来源:互联网 发布:swatch淘宝 编辑:程序博客网 时间:2024/04/20 06:41

1.

Use

#ifndef _MID_CONFIG_H
#define _MID_CONFIG_H

#endif


No Use

#program once


2.

If A link to B,both of them wil compile with rtti option or not.

3.

When compile static library,add "include $(BUILD_STATIC_LIBRARY)" in Android.mk,and add "APP_MODULES := something",not "APP_MODULE".

4

If A.so use gnustl_static,B.so use stlport_static,when A passes some string to B,you will get null.So use one of them at the same time.

原创粉丝点击