Thanks a lot! vijay
On Nov 18, 10:27 pm, RaviY <[email protected]> wrote: > Here is something crude that you can try: > > In the Android.mk of your library, you can add something like > ifeq ($(user_variant),userdebug) > LOCAL_CFLAGS += -DUSERDEBUG > else > ifeq ($(user_variant),user) > LOCAL_CFLAGS += -DUSER > else > ifeq ($(user_variant),eng) > LOCAL_CFLAGS += -DENG > endif > endif > endif > > And, then use the macros USERDEBUG, USER, ENG in your code. > > On Nov 18, 7:13 pm, vj <[email protected]> wrote: > > > Hi, > > Is it possible to determine the type of (USERDEBUG, ENG, USER) > > build within the code at compile time? I wanted to use something like > > #ifdef USERDEBUG within my code. Is something similar possible? > > > Thanks, > > VIjay -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
