No Description

CMakeLists.txt 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # For more information about using CMake with Android Studio, read the
  2. # documentation: https://d.android.com/studio/projects/add-native-code.html
  3. # Sets the minimum version of CMake required to build the native library.
  4. cmake_minimum_required(VERSION 3.4.1)
  5. # Creates and names a library, sets it as either STATIC
  6. # or SHARED, and provides the relative paths to its source code.
  7. # You can define multiple libraries, and CMake builds them for you.
  8. # Gradle automatically packages shared libraries with your APK.
  9. add_library( # Sets the name of the library.
  10. apm-plugin-raw-data-api-java
  11. # Sets the library as a shared library.
  12. SHARED
  13. # Provides a relative path to your source file(s).
  14. src/main/cpp/src/agora_media_pre_processing.cpp )
  15. # Searches for a specified prebuilt library and stores the path as a
  16. # variable. Because CMake includes system libraries in the search path by
  17. # default, you only need to specify the name of the public NDK library
  18. # you want to add. CMake verifies that the library exists before
  19. # completing its build.
  20. find_library( # Sets the name of the path variable.
  21. log-lib
  22. # Specifies the name of the NDK library that
  23. # you want CMake to locate.
  24. log )
  25. # Specifies libraries CMake should link to your target library. You
  26. # can link multiple libraries, such as libraries you define in this
  27. # build script, prebuilt third-party libraries, or system libraries.
  28. target_link_libraries( # Specifies the target library.
  29. apm-plugin-raw-data-api-java
  30. # Links the target library to the log library
  31. # included in the NDK.
  32. ${log-lib} )