Tool to generate an Android.mk

前端 未结 2 1712
醉梦人生
醉梦人生 2021-01-06 01:33

I have a big C++ project that has about hundred source files that are located in a bunch of sub folders. They were initially developed using Xcode IDE, so there are no makef

相关标签:
2条回答
  • 2021-01-06 01:45

    Well you actually can use cmake. I do so in several projects using android ndk toolchain and a modified script that I took from this project that comes from the initial port to android of OpenCV library.

    If you don't want to use those scripts as a CMAKE_TOOLCHAIN_FILE (I did not want too) you can do something like:

    # Setting android build
    SET(CMAKE_TOOLCHAIN_FILE ${CMAKE_MODULE}/android.toolchain.cmake)
    # Project name 
    PROJECT (YOUR_PROJECT CXX C)
    
    .. configure your project here
    
    0 讨论(0)
  • 2021-01-06 02:01

    I have created a simple to script to generate Android.mk, you can see more information from here.

    You can use the option -s|--scan to add all your sources in your sub folders to your LOCAL_SRC_FILES in Android.mk.

    0 讨论(0)
提交回复
热议问题