In Application.mk è possibile impostare:In che modo APP_OPTIM si manifesta nel codice?
APP_OPTIM := release
APP_OPTIM := debug
Come posso provare per il rilascio/debug in C++?
Sto presupponendo che ci sono definisce così che ho provato questo, ma solo "NOT" I messaggi sono registrati:
#ifdef RELEASE
LOGV("RELEASE");
#else
LOGV("NOT RELEASE");
#endif
#ifdef DEBUG
LOGV("DEBUG");
#else
LOGV("NOT DEBUG");
#endif
Quindi si ottiene sempre il flag '-g', anche per una build di rilascio? E mi chiedevo perché i breakpoint funzionassero anche per 'APP_OPTIM: = release'. – sashoalm
@sashoalm: puoi cambiarlo, se lo desideri, se imposti 'APP_CFLAGS: = -g0' in ** Application.mk ** –