Re: [android-building] Re: Some questions on Android.bp files

2019-08-26 Thread Amit Agrawal
Hi wang,

I have also faced such issues. This comes when you are building a Module 
which is written in Android.bp and you want to include some dependency(a 
module like shared library) which is written in Android.mk. The soong build 
system can not resolve such dependencies. I haven't got any solution for 
this. Only way I have got is you need to convert all the dependencies to 
Android.bp. 

Let me know if you find any solution other than this conversion to bp file.

Thanks,
Amit

On Wednesday, August 21, 2019 at 10:26:14 PM UTC+5:30, jw wang wrote:
>
>
> Hi google
>
> is there anything missing so I got this ?
>
> ninja: error: 
> 'out/soong/.intermediates/FOO/android_common/proguard_dictionary', needed 
> by 'out/target/common/obj/APPS/FOO_intermediates/proguard_dictionary', 
> missing and no known rule to make it
> 11:43:21 ninja failed with: exit status 1
>
>
>
>
>
> On Tuesday, August 6, 2019 at 2:03:33 AM UTC+8, Dan Willemsen wrote:
>>
>> proguard_flag_files was a typo -- it should be proguard_flag*s*_files. 
>> It was fixed here: 
>> https://android-review.googlesource.com/c/platform/build/soong/+/691330
>>
>> - Dan
>>
>> On Wed, Jul 31, 2019 at 11:32 PM jw wang  wrote:
>>
>>> Hi Google
>>>
>>> I'm coming across two similar build break after converting the mk to bp :
>>>
>>> 1. 1. service/Android.bp:7:28: unrecognized property "
>>> optimize.proguard_flag_files“
>>>
>>>  2. /android_common/proguard_dictionary', needed by 
>>> 'out/target/common/obj/APPS/AudioEFXService_intermediates/
>>> proguard_dictionary’
>>>
>>>
>>> I think the error comes from the optimize item which generated by 
>>> androidtomk tool
>>>  optimize: {
>>>  proguard_flag_files: ["proguard.flags"],
>>>  
>>> },
>>>
>>>
>>>
>>> On Tuesday, 30 July 2019 22:10:07 UTC+8, jyoti kulkarni wrote:

 Hello Sir/madam,

 Im trying to convert some of the .mk files to .bp 
 I am using androidmk tool for initial conversion.

 But later I m trying to change the converted files to add some more 
 properties and some conditional statement.

 I have below questions:
 1. Any new property added is giving an error "unrecognized property" 
 for eg: unrecognized property "host_required"

 2. If I'am trying to include other .mk file in .bp its giving "Path 
 Outside directory"
 Iam trying to do something like this:
 srcs: ["../Android.mk"]

 Please help in addressing these questions.

 Thanks

>>> -- 
>>> -- 
>>> You received this message because you are subscribed to the "Android 
>>> Building" mailing list.
>>> To post to this group, send email to android-...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-building?hl=en
>>>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Android Building" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to android-...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/android-building/63281eff-1da3-40f8-83fd-9b19243d2e8f%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/547747f0-3b5c-4183-89cd-7fce88d11d08%40googlegroups.com.


Re: [android-building] Building Android.bp

2019-07-18 Thread Amit Agrawal
So In Android P, It supports both .bp as well as .mk. What if I want to 
compile a module which is in .bp format but it depends on some other module 
which is written in .mk format? Is there anyway that we ignore the 
dependencies?

On Saturday, March 2, 2019 at 3:28:41 AM UTC+5:30, Dan Willemsen wrote:
>
> No, Nougat does not support building with Android.bp files. Oreo and later 
> support both Android.mk and Android.bp files (though Android.bp files 
> largely cannot reference Android.mk files, so all your dependencies need to 
> be converted to Android.bp first).
>
> - Dan
>
> On Fri, Mar 1, 2019 at 8:34 AM Amit Agrawal  > wrote:
>
>> Hello,
>> I am new to AOSP. As far as I know we were using 'Make build system' in 
>> nougat which were building Android.mk files. And from Oreo onwards Soong is 
>> used for Android.bp.
>> Is there any way by which I can build the Android.bp files in nougat 
>> using the 'Make build system'?
>>
>> Thanks and Regards,
>> Amit Agrawal
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to android-...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/96c8d988-c0bb-47a0-8d5a-9b2a0edf4872%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] linking shared files written in Android.mk with in Android.bp

2019-07-02 Thread Amit Agrawal
I want to build SKIA (Android.bp) using some dependency which is written in 
Android.mk. Is it possible or not?
Also I want to replace the existing libjpeg with my custom library, I've 
seen that SKIA has BUILD.gn files from which Android.bp is generated using 
a python script gn_to_bp.py
I want to know how can I replace libjpeg which is a third party dependency 
in SKIA. 
Does this python script runs everytime we do 'make' from root location or 
not (I can't see my Android.bp changing while doing make, so I guess the 
script doesn't run).

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/3682f18a-29df-48c5-8e91-cb0193755e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] Building Android.bp

2019-03-01 Thread Amit Agrawal
Hello,
I am new to AOSP. As far as I know we were using 'Make build system' in
nougat which were building Android.mk files. And from Oreo onwards Soong is
used for Android.bp.
Is there any way by which I can build the Android.bp files in nougat using
the 'Make build system'?

Thanks and Regards,
Amit Agrawal

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.