pombreda / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Add more ndk-build debug support #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Debugging my builds with the maven plugin seems to leave a bit to be desired 
for me, so I wanted to suggest two enhancements.

Two features:
- Add an option, outside of maven -X debugging, to simply see the output of 
ndk-build as part of a regular build. I like this level of output, and it's 
sometimes helpful for me to know what's going on, what's being rebuilt on the 
native build, without going super verbose into maven, which I find painful to 
watch as part of a regular process. For example, this is particularly helpful 
to sanity check my ndk sometimes that it isn't rebuilding more of my project 
than it should, or other random errors I've faced in the past.
- Add an option to use the V=1 option on ndk-build, which is will give you the 
full compile command printed out. Again helpful for debugging build flags that 
you may have messed up. In the event something isn't compiling, this is almost 
always a flag worth flipping and then checking it out.

In the end, maybe a level of debugging to print out to encompass these two 
points, would be helpful.

Example output with V=1
Compile thumb  : ssl_static <= s2_srvr.c
/Users/luke/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuil
t/darwin-x86/bin/arm-linux-androideabi-gcc -MMD -MP -MF 
/Users/luke/projects/webrtc-jingle-client/trunk/android/voice-client-core/obj/de
fault_debug/local/armeabi/objs-debug/ssl_static/openssl/ssl/s2_srvr.o.d -fpic 
-ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ 
-D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__  -march=armv5te 
-mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer 
-fno-strict-aliasing -finline-limit=64 
-Ijni/../../../third_party/openssl/openssl 
-Ijni/../../../third_party/openssl/openssl/crypto 
-Ijni/../../../third_party/openssl/openssl/crypto/asn1 
-Ijni/../../../third_party/openssl/openssl/crypto/evp 
-Ijni/../../../third_party/openssl/openssl/crypto/modes 
-Ijni/../../../third_party/openssl/config/android 
-Ijni/../../../third_party/openssl/openssl/include 
-Ijni/../../../third_party/openssl -DANDROID -DNO_WINDOWS_BRAINDEATH -DL_ENDIAN 
-DOPENSSL_THREADS -DPURIFY -DTERMIO -D_REENTRANT -DOPENSSL_NO_HW 
-DOPENSSL_NO_GOST -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_CAST -DOPENSSL_NO_GMP 
-DOPENSSL_NO_IDEA -DOPENSSL_NO_JPAKE -DOPENSSL_NO_KRB5 -DOPENSSL_NO_MD2 
-DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED -DOPENSSL_NO_SHA0 
-DOPENSSL_NO_STORE -DOPENSSL_NO_WHRLPOOL -DOPENSSL_NO_DYNAMIC_ENGINE -DPURIFY 
-Wa,--noexecstack -O0 -g -D_DEBUG=1 -DENABLE_DEBUG=1 -DLOGGING=1 
-DWEBRTC_ANDROID_DEBUG=1 
-I/Users/luke/android/android-ndk-r8c/platforms/android-9/arch-arm/usr/include 
-c  jni/../../../third_party/openssl/openssl/ssl/s2_srvr.c -o 
/Users/luke/projects/webrtc-jingle-client/trunk/android/voice-client-core/obj/de
fault_debug/local/armeabi/objs-debug/ssl_static/openssl/ssl/s2_srvr.o 

Original issue reported on code.google.com by luke.we...@gmail.com on 19 Dec 2012 at 9:55

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:19