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

2019-10-17 Thread 'Dan Willemsen' via Android Building
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

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 <

Re: [android-building] Adding dependencies for Header Libraries

2019-10-17 Thread 'Dan Willemsen' via Android Building
Why does a header library need another module to be compiled first? It's not actually compiling anything. I'm assuming you actually want to export the dependencies that generated some header files? Depending on the full compilation of a dependency will cause your builds to be more linear (and thus

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

2019-10-17 Thread 'Dan Willemsen' via Android Building
COPY_HEADERS is deprecated in Make, and unsupported in Soong. Use a header library instead. That may require re-arranging your source tree, or creating a directory full of symlinks, as we don't support rewriting the directory structures the same was as COPY_HEADERS, you just export everything

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

2019-10-17 Thread 'Dan Willemsen' via Android Building
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"

Re: [android-building] sub_dir unrecognized property

2019-10-17 Thread 'Dan Willemsen' via Android Building
LOCAL_MODULE_PATH wasn't strictly necessary in make either -- if you had set `LOCAL_PROPRIETARY_MODULE := true` like the `proprietary: true` in the Android.bp, it would get installed into the correct location. The `androidmk` tool tries to auto-fix some cases of LOCAL_MODULE_PATH, but it can't

[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 :=