polymonster / premake-android-studio

premake5 module for android-studio and gradle build.
MIT License
34 stars 15 forks source link

Referencing other make files (Android.mk etc) #12

Open SoapyMan opened 2 years ago

SoapyMan commented 2 years ago

Hello! It would be nice to support importing NDK and other foreign modules like cpufeatures, android_native_app_glue, etc Is it possible to achieve such thing?

With options like

-- workspace level
androidimportmodules {
    "android_native_app_glue",
    "android/cpufeatures",
    "path_to_your_makefile/Android.mk"
}

-- project level (or LOCAL_STATIC_LIBRARIES), possibly "links" but i'm not sure
androidmodules {
   "android_native_app_glue",
   "cpufeatures",
   "your_android_mk_project_name"
}
polymonster commented 2 years ago

I’ll take a look into it when I get a chance, seems like it should be possible.

If you want to help out in the mean time and can figure out how to edit the generated gradle or cmake files to pass .mk files to be compiled then let me know anything you come up with. If you can find a solution make a fork and send a pr :)