How to configure Android.bp to include other project's whole source directory

67 views
Skip to first unread message

Eunryoung Lim

unread,
Jul 24, 2023, 6:39:37 PMJul 24
to Android Building
Hello,

I have read followings
to see the usecase of filegroup in soong build system.
What if we want to include (copy) whole directory structure rather than a few source and header files?

For instance, in project1 source code will be generated based on the given idl (input_idl) files. Then, generated code will be utilized in other projects, which could be either library or binary.
As far as I understand, filegroup is not available to include whole directory. Is it correct? 
What would be the best solution for this? (I am considering creating a static library).
Any comments will be appreciated.

project1
 - input_idl    
 - src-gen
   - dir1
     - *.cpp
     - *.hpp

project2
  - src
  - src-gen (from project1, also it might need to be in export_include_dirs)

project3 
  - src
  - src-gen (from project1)

Best Regards,
Eunryoung 
Reply all
Reply to author
Forward
0 new messages