Re: [android-building] Re: How to install prebuilt_apps?

2019-10-23 Thread REGURI AKANKSHA
I tried above think, but I am getting Androidmk translation errors like
unsupported include etc..


On Tue, Oct 22, 2019 at 9:38 PM shankar kumar yellapu <
shankarkumaryel...@gmail.com> wrote:

>
> androidmk Android.mk > Android.bp
>
> Run the above command from your android build tree after doing source 
> build/envsetup.sh
>
> https://android.googlesource.com/platform/build/soong/
>
> Regards,
> Shankar
>
>
> On Sunday, October 20, 2019 at 10:09:55 PM UTC+5:30, seeker wrote:
>>
>> Hello, Im trying to convert .mk to .bp files. I am struck how to convert
>> below module class!!
>>
>> include $(CLEAR_VARS)
>> LOCAL_MODULE:= x
>> LOCAL_MODULE_CLASS  := APPS
>> LOCAL_SRC_FILES := --
>> LOCAL_MODULE_PATH   := -
>> include $(BUILD_PREBUILT)
>>
>> How to install prebuilt_apps for Android.bp?
>> Thanks in advance
>>
> --
> --
> 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/368b0077-b371-464e-97ac-d10c2f100033%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/CA%2BVoWj5o%3DuBtfA6YaOda_RcUeiHUb2uOgZas_Y7JWnMqf%3DeDyA%40mail.gmail.com.


Re: [android-building] How to add relative path for srcs:[] in Android.bp

2019-10-18 Thread Akanksha
This works well, Thanks

On Friday, October 18, 2019 at 4:22:22 AM UTC+5:30, Dan Willemsen wrote:
>
> Here's an example of using a filegroup for this -- 
> cts/hostsidetests/media/common/**/*.java is used by two modules under 
> cts/hostsidetests/media/app/...
>
> So we've got the filegroup that defines all the files in the common 
> directory:
> cts/hostsidetests/media/Android.bp 
> <https://android.googlesource.com/platform/cts/+/5e4cf896152ad4ef4218f180800dc864ba16e84c/hostsidetests/media/Android.bp#38>
> filegroup {
> name: "CtsMediaSessionTestCommon",
> srcs: ["common/**/*.java"],
> }
>
> And then used in the srcs list with ":CtsMediaSessionTestCommon":
> cts/hostsidetests/media/app/MediaSessionTest/Android.bp 
> <https://android.googlesource.com/platform/cts/+/5e4cf896152ad4ef4218f180800dc864ba16e84c/hostsidetests/media/app/MediaSessionTest/Android.bp>
> android_test_helper_app {
> name: "CtsMediaSessionHostTestApp",
> defaults: ["cts_defaults"],
> test_suites: [
> "cts",
> "vts",
> "general-tests",
> ],
> srcs: [
> "src/**/*.java",
>
> *":CtsMediaSessionTestCommon",*],
> static_libs: [
> "androidx.test.rules",
> "compatibility-device-util-axt",
> ],
> sdk_version: "test_current",
> min_sdk_version: "26",
> }
>
> In this case, it may have been possible to instead refactor the common 
> file into a library that would be used instead (and then only compiling the 
> files once instead of 2 times), but both would function.
>
> - Dan
>
> On Thu, Oct 17, 2019 at 3:08 PM REGURI AKANKSHA  > wrote:
>
>> Thanks,Dan I was able to tackle the above error. I am new to these 
>> things. Can u explain this  filegroup with an example, like by defining 
>> some module, that would be really helpful 
>> Thanks in advance
>>
>> On Thu, Oct 17, 2019 at 10:19 PM 'Dan Willemsen' via Android Building <
>> android-...@googlegroups.com > wrote:
>>
>>> We don't allow references outside of the current directory and its 
>>> subdirectories in Soong. We require the directory with the sources to 
>>> opt-into being used by others, either by directly defining the modules, or 
>>> by defining filegroup modules that can be used in the src[s] fields via 
>>> ":myfilegroup" (colon-prefixed module name). This way we can actually let 
>>> you control who uses files within your directory (via visibility), and 
>>> tools like `mma` and `atest` are more likely to be able to handle 
>>> "build/test everything in this directory" properly.
>>>
>>> So in this case, either move the Android.bp up to the parent path (which 
>>> usually makes sense for parents, or for apps that have "src" / "jni" / 
>>> "res" dirs, as we do automatically look for files in the same directory for 
>>> some things), or define a filegroup in the parent and use it below (this 
>>> can be more useful if the same file is used by multiple children, though it 
>>> may make more sense to use a static library or something more specific).
>>>
>>> That error is that you have multiple definitions of the same module, and 
>>> is unlikely to be related to just moving an Android.bp upwards (unless it 
>>> was below a `soong_namespace {}` definition, but that means you weren't 
>>> using that Android.bp in the first place).
>>>
>>> - Dan
>>>
>>>
>>> On Tue, Oct 15, 2019 at 8:27 AM  > 
>>> wrote:
>>>
>>>> hello,
>>>> say in a Android.bp file srcs:["../../../a.cpp"]
>>>> I am getting the error Path is outside directory "../../../a.cpp"? How 
>>>> to overcome this?
>>>>
>>>> Later I tried declaring Android.bp in to a parent folder so that 
>>>> srcs:["a.cpp"] but then ,
>>>> FAILED:
>>>> build/make/core/base_rules.mk:325: error: /gps-noship/cacert_location: 
>>>> MODULE.TARGET.ETC.cacert_location.pem already defined by /prebuilt_HY11.
>>>> 02:01:45 ckati failed with: exit status 1
>>>>
>>>>  failed to build some targets (02:16 (mm:ss)) 
>>>>
>>>> How to overcome these?
>>>> Thanks in advance
>>>>
>>>> -- 
>>>> -- 
>>>> You received this message 

Re: [android-building] How to add relative path for srcs:[] in Android.bp

2019-10-17 Thread REGURI AKANKSHA
Thanks,Dan I was able to tackle the above error. I am new to these things.
Can u explain this  filegroup with an example, like by defining some
module, that would be really helpful
Thanks in advance

On Thu, Oct 17, 2019 at 10:19 PM 'Dan Willemsen' via Android Building <
android-building@googlegroups.com> wrote:

> We don't allow references outside of the current directory and its
> subdirectories in Soong. We require the directory with the sources to
> opt-into being used by others, either by directly defining the modules, or
> by defining filegroup modules that can be used in the src[s] fields via
> ":myfilegroup" (colon-prefixed module name). This way we can actually let
> you control who uses files within your directory (via visibility), and
> tools like `mma` and `atest` are more likely to be able to handle
> "build/test everything in this directory" properly.
>
> So in this case, either move the Android.bp up to the parent path (which
> usually makes sense for parents, or for apps that have "src" / "jni" /
> "res" dirs, as we do automatically look for files in the same directory for
> some things), or define a filegroup in the parent and use it below (this
> can be more useful if the same file is used by multiple children, though it
> may make more sense to use a static library or something more specific).
>
> That error is that you have multiple definitions of the same module, and
> is unlikely to be related to just moving an Android.bp upwards (unless it
> was below a `soong_namespace {}` definition, but that means you weren't
> using that Android.bp in the first place).
>
> - Dan
>
>
> On Tue, Oct 15, 2019 at 8:27 AM   wrote:
>
>> hello,
>> say in a Android.bp file srcs:["../../../a.cpp"]
>> I am getting the error Path is outside directory "../../../a.cpp"? How to
>> overcome this?
>>
>> Later I tried declaring Android.bp in to a parent folder so that
>> srcs:["a.cpp"] but then ,
>> FAILED:
>> build/make/core/base_rules.mk:325: error: /gps-noship/cacert_location:
>> MODULE.TARGET.ETC.cacert_location.pem already defined by /prebuilt_HY11.
>> 02:01:45 ckati failed with: exit status 1
>>
>>  failed to build some targets (02:16 (mm:ss)) 
>>
>> How to overcome these?
>> Thanks in advance
>>
>> --
>> --
>> 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/75ea2ea6-f85b-4577-a98c-1fd42f867150%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/CALQgHd%3DXqqOGRCSHorr1UFV%3Dok%3DLHqEGmRrru9vGP%2BswDiZTxw%40mail.gmail.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/CA%2BVoWj7h3XMDiJY5ukqeMJnt7PPxAfLtrExG0BnLPY_%3DGp9Uyw%40mail.gmail.com.


[android-building] sub_dir unrecognized property

2019-10-17 Thread Akanksha
Hello, I am trying to convert Android.mk to Android.bp files here is a 
sample .mk module

include $(CLEAR_VARS)
LOCAL_MODULE:= location.pem
LOCAL_MODULE_OWNER  := x
LOCAL_MODULE_TAGS   := optional
LOCAL_MODULE_CLASS  := ETC
LOCAL_SRC_FILES := 
../../.././target/product/msmnile/vendor/etc/location.pem
LOCAL_MODULE_PATH   := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)/etc
include $(BUILD_PREBUILT)

when i Convert this to 

prebuilt_etc {
name: "location.pem",
owner: "x",

src: "../../.././target/product/msmnile/vendor/etc/location.pem",
proprietary: true,

}  it works fine but when included sub_dir inplace of LOCAL_MODULE_PATH I 
am getting "sub_dir " unrecognized property

How to change LOCAL_MODULE_PATH module descriptor in Android.bp, 
Thanks in advance:)

-- 
-- 
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/051f8105-57ee-4f3a-aabe-3359dec9142d%40googlegroups.com.


[android-building] Re: Android.bp to support architectural files

2019-10-15 Thread Akanksha
Thank you

On Thursday, October 10, 2019 at 1:39:51 AM UTC+5:30, Akanksha wrote:
>
> Suppose say a module  has name - x and compile_multilib =32 and other 
> module has name - x and compile_multilib = 64. When executed this would 
> result in module duplication? How can this duplication be solved?
> Thanks in advance 
>

-- 
-- 
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/51a5b4cf-a53d-4dd5-b721-7b3f6f14071d%40googlegroups.com.


[android-building] writing header libraries in Android.bp

2019-10-14 Thread REGURI AKANKSHA
How to write headers in Android.bp?

say Android.mk has header of this type 
include $(CLEAR_VARS)
LOCAL_COPY_HEADERS_TO := x
LOCAL_COPY_HEADERS:= y
LOCAL_PROPRIETARY_MODULE := z
include $(BUILD_COPY_HEADERS)

How to write such headers in Android.bp? i know that LOCAL_COPY_HEADERS is 
deprecated in Soong, but have no idea of how to write to Android.bp
Thanks in Advance

-- 
-- 
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/2ac5ecc7-d171-4d9e-9a6c-a92fd9612cfa%40googlegroups.com.


[android-building] Succesful compilation of modules in Android.bp

2019-10-14 Thread REGURI AKANKSHA
when executing a module with make command like make "modulename",
 I am getting errors: failed to build some targets and  hidl-gen 
compilation failed check above errors
 That module is of type prebuilt_etc in Android.bp.
The module I am executing is independent , but some other modules are 
dependent on this module
How to handle successful execution of modules in Android.bp?
Thanks in advance

-- 
-- 
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/d727e2a2-f021-4336-a841-f15429443b63%40googlegroups.com.


[android-building] hidl-gen compilation failed check above errors

2019-10-13 Thread REGURI AKANKSHA
when executing a module with make command like make "modulename",
 I am getting "hidl-gen compilation failed check above errors"
 That module is of type prebuilt_etc in Android.bp.
How to handle successful execution of modules in Android.bp?
Thanks in advance

-- 
-- 
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/03ee0727-8df6-4196-9205-a47563d37a2f%40googlegroups.com.


[android-building] Android.bp to support architectural files

2019-10-09 Thread REGURI AKANKSHA
Suppose say a module  has name - x and compile_multilib =32 and other 
module has name - x and compile_multilib = 64. When executed this would 
result in module duplication? How can this duplication be solved?
Thanks in advance 

-- 
-- 
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/63c8a7f0-b53a-473c-82d6-f623df2fa8cf%40googlegroups.com.


Re: [android-building] Android.bp accessibility

2019-10-06 Thread REGURI AKANKSHA
Can u help me know how to define a variable of type string in Android.bp?
say if in a folder1/Android.bp string x = "hello" is defined. As per above
explaination this variable x can accessed in folder1/folder2/Android.bp ryt?
say a module_name is equated to x, then the module name becomes hello? In
what fashion  folder1/folder2/Android.bp can  access x?
Thanks in advance.

On Fri, Oct 4, 2019 at 10:40 PM 'Colin Cross' via Android Building <
android-building@googlegroups.com> wrote:

> Soong cannot access variables defined in Make.
>
> For variables defined in Android.bp files this is documented at
> https://android.googlesource.com/platform/build/soong/+/master/README.md#variables
> :
> "Variables are scoped to the remainder of the file they are declared in,
> as well as any child blueprint files."
>
>
> On Fri, Oct 4, 2019 at 9:57 AM REGURI AKANKSHA 
> wrote:
>
>> Is there any case that  Android.bp can access variables declared in other
>> files.
>> say a variable "platform" is declared in some .mk file Can Android.bp now
>> use that variable "platform"
>> As per my knowledge it's "no" but I want to make sure about this
>> Thanks in advance
>>
>> --
>> --
>> 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/0b6fc82b-4d66-4ad4-b0d1-3fbb4f192a22%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-building/0b6fc82b-4d66-4ad4-b0d1-3fbb4f192a22%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> --
> 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/CAMbhsRTwNDjBZe-2BxFLBD36k47s%3D41St9KauOxEXNxX6Qvh4g%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-building/CAMbhsRTwNDjBZe-2BxFLBD36k47s%3D41St9KauOxEXNxX6Qvh4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CA%2BVoWj6SO5QszXSHQ7p42_Cp0wC68_x0wmD76RKkSWK3Qarobw%40mail.gmail.com.


[android-building] Android.bp accessibility

2019-10-04 Thread REGURI AKANKSHA
Is there any case that  Android.bp can access variables declared in other 
files.
say a variable "platform" is declared in some .mk file Can Android.bp now 
use that variable "platform"
As per my knowledge it's "no" but I want to make sure about this
Thanks in advance

-- 
-- 
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/0b6fc82b-4d66-4ad4-b0d1-3fbb4f192a22%40googlegroups.com.


[android-building] Android.mk to Android.bp conversion

2019-09-16 Thread REGURI AKANKSHA
I have few queries regarding conversion of Android.mk to Android.bp
1. How to convert unix commands in Android.mk to Android .bp
unix commands ex : $(shell mkdir...)
2. how to convert conditionals in Android.mk to Android.bp

-Thanks in advance

-- 
-- 
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/CA%2BVoWj5%2BjUfokZ%3DjKL0SoOhjDOZcmjivHZCrGpFhRFfDfXq8uA%40mail.gmail.com.