Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an Android.mk file

Tags:

android

A project that I am trying to build has one of these, and I want to know exactly which tools are needed to build the project. I see some reference to NDK when I search but is that the only tool? It appears that this file is making a jar file, I see no reference to native code ( c++ )

like image 345
Brian G Avatar asked Jan 31 '12 20:01

Brian G


2 Answers

The Android.mk files in the SDK samples are required to properly include the samples in the SDK build (if you are actually venturing into that territory). These have no bearing on what you are doing when you use the sample. To the OP, I'm not sure if you are using a sample project, but if you are, you can ignore this file.

like image 127
robertly Avatar answered Oct 22 '22 06:10

robertly


the best answer to your question is reading this article:

Android.mk file syntax specification

https://android.googlesource.com/platform/ndk/+/4e159d95ebf23b5f72bb707b0cb1518ef96b3d03/docs/ANDROID-MK.TXT

after reading it you can figure out the idea behind the android.mk file.

cheers

like image 26
Mostafa Avatar answered Oct 22 '22 07:10

Mostafa