Always have the GNU make manual handy when working on make files. :)

http://www.gnu.org/software/make/manual/

On Tue, Nov 24, 2009 at 9:36 AM, David Turner <di...@android.com> wrote:

> if*n*eq ($(TARGET_BUILD_VARIANT),user)
> ...
> endif
>
>
> On Tue, Nov 24, 2009 at 8:40 AM, vj <vjvdixit.l...@gmail.com> wrote:
>
>> Hi,
>>   is there a way to implement a negative if/else statement within
>> Android.mk. Example: I do not want the build to be of type "user":
>>
>> So I would like something like this:
>>
>> ifeq ( ! ($(TARGET_BUILD_VARIANT), user)
>> LOCAL_SHARED_LIBRARIES += liblog
>> endif
>>
>> basically, I want liblog to be included in only USERDEBUG and ENG
>> builds. Any help would be appreciated.
>>
>> Thanks,
>> Vijay
>>
>> --
>> unsubscribe: 
>> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
>> website: http://groups.google.com/group/android-porting
>>
>
>  --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to