An android. mk file is used to describe your source code to the compilation system. Specifically, this file is a small part of GNU makefile and will be parsed once or multiple times by the compilation system. You can define one or more modules in each android. mk file. You can also use the same source code file in several modules. The compilation system handles many details for you. For example, you do not
Local_path: =$ (call my-DIR)
1 local_path must be located at the beginning of the android. mk file. It is used to locate the source file,$ (Call my-DIR) is used to return the path of the current directory.
Include $ (clear_vars) is used to clear the values of some variables, except for local_path.
Local_module is used to specify the name of the module to be compiled. In this example, the module name is hello-JNI.
Local_src_files is us
Android. MK is a MAKEFILE file provided by Android. It is used to specify the so library name, the referenced header file directory, and the files to be compiled. c /. CPP file and. A static library files. To master JNI, you must be familiar with the syntax of Android. mk.
I. Android. mk File UsageOne or more Android. mk
MK-table-sync is a powerful tool in maatkit for synchronizing master-slave databases. During synchronization, the delete, replace, insert, and update statements are synchronized, MK-table-sync executes all the preceding statements. For example, the master and slave databases contain Table A. The data in the master database is as follows:
ID name
1 aa
2 bb
3 cc
4 dd
5 ee
6 ff
The data on the slave database i
The android. mk file is a required file for compiling C code using ndk. The Android. mk file describes which c files will be compiled and how to compile them. To understand how to compile Android. mk files, you can master the keywords that will be used in them. Let's take a look at a simple example. This example uses the android ndk
Example of helljni.
LOCAL_PATH
Cocos2d-x Android. mk File Auto ModifierDo cocos2d-x projects, usually with computer development, and then transplanted to the mobile phone platform. You need to re-compile and package it into an apk file using eclipse or other tools to transplant it to your Android phone. If you use eclipse to package, you need to add the project's cpp file to Android one by one. in mk configuration, it doesn't matter if t
Android NDK programming-Android. mk
Android. mk
Android. mk is a GUN Makefile clip that describes the NDK project to the Android NDK build system. It is a required component of every NDK project. The build system wants it to appear in the jni subdirectory. The following is the content of the Android. mk file in the hel
Android. mk adds common templates for local programs and libraries
Android. mk adds common templates for local programs and libraries
Add local programs or libraries in Android. These programs and libraries have nothing to do with their paths, but are only related to their configuration file Android. mk. The Android. mk
Finally, C ++ code porting was introduced to bootloader. The only achievement was familiarity with makefile. Some factory companies could not afford to be hurt. Every time they had to do something to meet the needs of factory-side testing, in order to be able to meet the requirements of the factory for testing in Boot, after discussion with the chip company, only C ++ can be obtained to boot, it is really a second decision that boot will eventually achieve 2 m larger than some kernel. However, i
Android development practice: Android. mk Template
There have been many articles on Android NDK development. My blog also shares many experiences and skills related to NDK development. Today I wrote a simple Android program. mk sample template for beginners.
This template provides examples of the following issues in Android NDK development:
1. How to automatically add the list of source files to be compiled
Work needs to be transplantedCodeTo android. Therefore, we investigated makefile in Android.
Address: http://blog.sina.com.cn/s/blog_7a8d6d980100sux6.html
Create an android. mk File
~ /Android-ndk/apps/project_test/project/JNI $ gvim Android. mk
#### Android. mk ###### Enter the current directory and obtain the path of the current directory# The result
Do you remember the writing of the previous Android Mk file? Portal ,We need to manually add CPP files, if more than one CPP, it is not to be exhausted?Local_path: = $ (call My-dir) include $ (clear_vars) Local_module: = Cocos2dcpp_sharedlocal_module_filename: = Libcocos2dcpplocal_src_files: = Hellocpp/main.cpp. /.. /classes/appdelegate.cpp. /.. /classes/clipingnodelayer.cpp. /.. /classes/mainscene.cpp. /.. /classes/menutab.cpplocal_c_includes: = $ (L
------------------------------------------Main configuration file projectconfig. mk in mtk6573-----------------------------------------
============================== Start ========================== ============================Main configuration file projectconfig. mk in mtk6573The main variables are:Auto_add_global_define_by_nameAuto_add_global_define_by_valueAuto_add_global_define_by_name_value
The three
0: 029>! Help mksosex-Copyright 2007-2012 by Steve Johnson-http://www.stevestechspot.com/To report bugs or offer feedback about sosex, please email sjjohnson@pobox.commkUsage :! Sosex. MK [-L] [-p] [-A] [-C] [-CC] produces and displays a merged stack trace of managed and unmanaged frames. local variables and parameters can be listed by passing-L,-P, or-a-l = locals-P = parameters-A = locals and parameters-c = clean (similar to the 'kc 'command ). does
Introduction:-----------------------------To compile C \ C ++ code into a SO file, you still need an Application. mk file.This document describes how to use the Application. mk syntax of the local module required by your Android Application.
Application. mk is used to describe the modules required in your Application (static or dynamic library ).
The Application.
Modify Android. mk in Android to make it compile rgb2565 and rgb2888 at the same time (Add a new tool command to out/host/linux-x86/bin)
Modify the corresponding android. MK files allow them to compile the source code files rgb2565, rgb2888, and rgb2888 at the same time. In fact, the implementation is very simple, here, I will just list the compilation methods used by the modules with different module labe
In the past few days, when writing Android. mk, sometimes I always want to print some variables or something. If ECHO is not available, I can find a way to access the Internet.
Finally, I found such an article quite well.
Address: http://blog.csdn.net/michaelpp/article/details/6249989
There are many examples in the android compilation script, such as in the build/CORE/Main. mk file:
Ifeq ($ (build_ OS),
The following is only an example of using Android. mk to compile the APK program. For more information about Android. mk, see 《
About Android. mk1. Compile a simple APK local_path :=$ (call my-DIR) include $ (clear_vars) # build all java files in the Java subdirectory local_src_files: = $ (call all-subdir-Java-files) # name of the apk to build local_package_name: = localpackage # Tell it to build an APK inc
Http://hi.baidu.com/ivychunmiao/blog/item/13832c0b31a03d366159f32e.html
Sometimes a third-party jar package needs to be referenced in an application. How can this jar package be introduced during app compilation?
Add the following statement to the Android. mk file of the APP:
------------------------------ Start -----------------------------------------------
Local_path: = $ (call my-DIR)Include $ (clear_vars)Local_module_tags: = user Eng###########
When writing an android. mk file, call all-subdir-makefiles and call all-makefiles-under, $ (local_path) are different.
The former indicates that "there is no file to be compiled in the current directory, please go deep into the subdirectory", which is a required way to tell the compiler to continue recursion in the directory. The latter can be understood literally in the same way. However, consider the following situation:
If there are files in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.