Android NDK build with ANT script

后端 未结 2 2057
栀梦
栀梦 2020-12-13 15:12

Can we use the ANT script for Android NDK builds ? If Yes how? And if no, then why Not ?

I don\'t have any idea about it

2条回答
  •  佛祖请我去吃肉
    2020-12-13 15:38

    here is what to add to your build.xml as others stated:

    
        
    
    
    
        
            
        
    
    

    define the ndk.dir in local.properties file: ndk.dir=C:\EclipseWorkspace\android-ndk-r8d

    The situation i wanted to mention after doing this you get an error "%1 is not a valid Win32 application" while running ANT against this target override. For me i had to upgrade to NDK R8d and also update the following line so that it fetches ndk-build.cmd (this version of ndk can run on windows and via cygwin:

    exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true"

提交回复
热议问题