Add options to the `install()` and `export()` commands to export the targets we build into Android.mk files that reference them as prebuilt libraries with associated usage requirements (compile definitions, include directories, link libraries). This will allow CMake-built projects to be imported into projects using the Android NDK build system. Closes: #15562
26 lines
639 B
Plaintext
26 lines
639 B
Plaintext
LOCAL_PATH.*call my-dir.*
|
|
_IMPORT_PREFIX.*LOCAL_PATH./../..
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*bar
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*bar.*
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.
|
|
LOCAL_MODULE.*dog
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*dog.*
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*car
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*car.*
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*foo
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX\)/lib.*foo.*
|
|
LOCAL_CPP_FEATURES.*rtti exceptions
|
|
LOCAL_STATIC_LIBRARIES.*car bar dog
|
|
LOCAL_EXPORT_LDLIBS := -lm
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|