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