To run itįrom the command line, invoke it while in or under your application project directory. The ndk-build script lives in the top level NDK installation directory. This information to invoke ndk-build from other shell scripts, or even your own points to your NDK installation directory. $GNUMAKE points to GNU Make 3.81 or later, and Running the ndk-build script is equivalent to running the following command: There is more specific documentation for the If you need to re-run just the packaging step without going through a build, packaging is handled by build/tools/package.py.The ndk-build script builds projects that use the NDK's Make-based build Note that running the tests does require the packaging step. To skip the packaging step, use the -no-package flag. Packagingīy default, checkbuild.py will also package the NDK and run basic tests. py - system windows # Or windows64.Ĭheckbuild.py also accepts a variety of other options to speed up local builds, namely -arch and -module. pyįor Windows, from Linux: $ python checkbuild. This is provided as part of the Android SDK.īuilding the NDK For Linux or Darwin: $ python checkbuild. Running tests requires that adb is in your PATH. python-lxml (used for Vulkan validation layer generation).python3 (used for Vulkan validation layer generation).pbzip2 (optional, improves packaging times).com / platform / manifest \Īdditional Linux Dependencies (available from apt): sources/android and sources/third_party contain modules that can be used in apps (cpufeatures, native_app_glue, etc) via $(call import-module, $MODULE)Ĭheck out the branch master-ndk repo init - u https :// android.build/ contains the ndk-build system and scripts to rebuild NDK.prebuilt/android-$ARCH/gdbserver contains gdbserver.sources/cxx-stl/$STL contains the headers and libraries for the various C STLs.The build system sets -sysroot to one of these directories based on user-specified APP_ABI and APP_PLATFORM.platforms/android-$VERSION/arch-$ARCH_NAME/ contains headers and libraries for each API level.ndk-depends, ndk-stack and ndk-gdb can also be found here.make, awk, python, yasm, and for Windows: cmp.exe and echo.exe.prebuilt/$HOST_TAG contains build dependencies and additional tools.$TOOLCHAIN/setup.mk contains toolchain-specific default CFLAGS/LDFLAGS when this toolchain is used.$TOOLCHAIN/config.mk contains ARCH and ABIS this toolchain can handle.toolchains/ contains GCC and Clang toolchains.The NDK consists of three parts: host binaries, target prebuilts, and others (build system, docs, samples, tests). Target headers and binaries are built on Linux. Systems without a working MinGW compiler can use build/tools/build-mingw64-toolchain.sh to generate their own and be added to the PATH for build scripts to discover.īuilding binaries for Mac OS X requires at least 10.8. Windows host binaries are built via MinGW cross compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |