![]() For example, as longĪs header foo.h is located under the include directory associated with the Task is to use exports in the prebuilt module definition. In such a case, you need to provide the header and its include path to theĬompiler when you build the foo-user module. ForĮxample, foo-user.c might have a line like the following: #include In a header file, such as foo.h, distributed with the prebuilt library. The code in foo-user.c depends on specific declarations that normally reside LOCAL_SHARED_LIBRARIES is the name of the prebuilt, itself. Here, LOCAL_MODULE is the name of the module referring to the prebuilt The Android.mk files associated with those other modules.įor example, the description of a module using libfoo.so might be as follows: include $(CLEAR_VARS) Value of the LOCAL_STATIC_LIBRARIES or LOCAL_SHARED_LIBRARIES variable in To reference a prebuilt library from other modules, specify its name as the Reference the prebuilt library from other modules Here, $PROJECT is the root directory of your project. $PROJECT/obj/local, and another copy, stripped of debug information, into The build system places a copy of your prebuilt shared library into In this example, the name of the module is the same as that of the prebuilt In the same directory as the Android.mk file that describes it. Here is a trivial example that assumes the prebuilt library libfoo.so resides Include PREBUILT_SHARED_LIBRARY or PREBUILT_STATIC_LIBRARY, depending on Support for ABIs, see Select ABIs for prebuilt libraries. Note: You must make sure to select the version of your prebuilt libraryĪppropriate to your target ABI. In the module's Android.mk file, assign to LOCAL_SRC_FILES the path to This name does not need to be the same as that of the prebuilt You must declare each prebuilt library you use as an independent module. This page explains how to use prebuilt libraries. Using a prebuilt version of your own libraries to speed up your build.Distributing your own libraries to third-party NDK developers without. ![]() ThereĪre two principal use cases for this functionality: The NDK supports the use of prebuilt libraries, both static and shared.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |