howardpang / androidNativeBundle

a gradle plugin that support publish c/c++ headers to 'aar' and depend those 'aar'
Apache License 2.0
71 stars 14 forks source link

per module export/import #9

Open mgood7123 opened 3 years ago

mgood7123 commented 3 years ago

is there a way to export and import per-module

for example

Module Type Dependancies Dependancies Imported By Other Dependancies
RingBuffer Export None None
Midi Export Ringbuffer None
Ports Export Ringbuffer None
Plugin Export Ports, Midi Ringbuffer
Module Type Dependancies Dependancies Imported By Other Dependancies
Midi Import Ringbuffer None
Ports Import Ringbuffer None
Plugin Import Ports, Midi Ringbuffer
howardpang commented 3 years ago

Sorry i didn't get what you mean, can you give me an example

mgood7123 commented 3 years ago

To avoid header conflicts

For example, if

AB contains a.hpp

AD contains a.hpp

AC can contain AB or AD but not both otherwise a conflict will occur

On Mon, 22 Mar 2021, 5:04 pm howard, @.***> wrote:

Sorry i didn't get what you mean, can you give me an example

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/howardpang/androidNativeBundle/issues/9#issuecomment-803816618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLITHZNG7OJGGCJYLTKSEDTE3TY7ANCNFSM4ZSGG5FQ .

mgood7123 commented 3 years ago

https://github.com/howardpang/androidNativeBundle/issues/10#issuecomment-804414617

my approach enables per module import and export