Multiple executable programs, dynamic libraries, and static libraries can be generated in an android. mk file.
1. Compile the Application Template:
# Test exe
Local_path: = $ (call my-DIR)
# Include $ (clear_vars)
Local_src_files: = Main. c
Local_module: = test_exe
# Local_c_includes: =
# Local_static_libraries: =
# Local_shared_libraries: =
Include $ (build_executable)
(Cainiao-level explanation: = is the meaning of the value assignment, $ is to refe
Using eclipse should be free of pressure on import jar, but many (for example, I) are used to compiling Android APK in Linux, in Linux, how does one compile an app with a third-party jar package?
The key lies in how to modify Android. mk.
Here is a code example:
.................
.................
.................
Local_src_files: = \$ (Call all-Java-files-under, Src)
Local_package_name: = apk_name // your APK name
Local_static_java_libra
How to set parameters in the temporary inspiration record
In boardconfig. mk
# Board_bootimage_partition_size: = 10485760# Board_recoveryimage_partition_size: = 10485760# Board_systemimage_partition_size: = 314572800# Board_userdataimage_partition_size: = 1073741824
Similar configuration, but how do you know how the data comes from? How do you match the data on your mobile phone,
In fact, the default configuration file is described.Fdisk-L/dev
How does android Add a new ProjectConfig. mk file in Codebase?How to add a new ProjectConfig. mk file to Codebase so that it has a higher priorityMediatek/config/$ project/ProjectConfig. mkProjectConfig. mkThe priority is greater than the ProjectConfig. mk file in the $ project directory.[Solution]Step1. add your own folder name under mediatek/config, for example
Address: http://hi.baidu.com/snownight/blog/item/f472d9f9f450f157242df262.html
Main. mkAnalysis
Main. mkIt mainly includes the following parts:
1.ShellSet
2.Compile environment Configuration
3.Compile environment check
4.Include necessary macros
5.AccordingMakeSet the variables during compilation.
6.ContainsAndroid. mk
7.Set the compilation systemTarget: Prerequisites controls the entire compilation process
The following are some ex
MM command to quickly compile a module, the general use of ADB push to the phone to see the effect, if the environment is not allowed to use ADB push or the module does not change often, want to directly put in the image, you can use./MK Snod, This command simply packages the system directory into system.img and then facilitates direct download, but the command is still slow (slow searching for all android.mk), and there is a way to speed up the compi
Multiple executable programs, dynamic libraries, and static libraries can be generated in an android. mk file.
1. Compile the Application Template:
# Test exe
Local_path: = $ (call my-DIR)
# Include $ (clear_vars)
Local_src_files: = Main. c
Local_module: = test_exe
# Local_c_includes: =
# Local_static_libraries: =
# Local_shared_libraries: =
Include $ (build_executable)
(Cainiao-level explanation: = is the meaning of the value assignment, $ is to refe
should contain only one such instance.;; If there is more than one, the They won ' t work right.' (Blink-cursor-mode nil)' (Column-number-mode t)' (Cua-mode T Nil (cua-base))' (Display-time-mode t)' (Inhibit-startup-screen t)' (Show-paren-mode t))(custom-set-faces;; Custom-set-faces was added by custom.;; If you edit it by hand, you could mess it up and so is careful.;; Your init file should contain only one such instance.;; If there is more than one, the They won ' t work right.' (Default ((T
: - "Pseudo-target"Hellomake: gcc -o hellomake hellomake.c func.c-i.create :touch clean#. Phony:cleanclean: rm -F HellomakeAnalyze the above file:Make, do not specify target default is Hellomake.Make create and execute the command ' touch clean '.Make clean, no dependent changes detected, prompting the target file clean is up to date.Obviously, make clean has unintended effect, in order to avoid such conflicts, it is necessary to exclude target from becoming the destina
Error is:
ANDROID.MK file
The call method for C + + is:
Copy Code code as follows:
Local_path: = $ (call My-dir)
Include $ (clear_vars)
Local_module: = Testndk
Local_cpp_extension: =com_ndk_test_jniclient.cpp
Include $ (build_shared_library)
The calling method in C:
Copy Code code as follows:
Local_src_files: = com_ndk_test_jniclient.c
Another method that uses a variable that has been successfully run
C + + correct
Method One, Windows with the hh.exe open
About the CHM is what format file, how to play School without worry in front of the involved, you can go to see this article. The above is to open the CHM file by using the hh.exe program from the Windows
To put it simply, mifconv is an image compression and packaging tool provided by Symbian. It is used to combine multiple source files in SVG/BMP format into one MIF/MBM composite file. For more information about mifconv, see related documents. Here
I,CompileSimple APKLOCAL_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
I was able to open the chm format document the other day, but I suddenly couldn't open it when I wanted to use it today. I found a solution online and hoped it would be helpful to you!
1. Check whether the language settings of your OS are
Look at the Android.mk file for the first time today, with the following #Copyright 2007-2008 The Android Open Source Project2 3 local_path:= $ (call my-dir)4include $ (clear_vars)5#Include res dir from chips6 Chips_dir: =. /.. /..
1.1 makefile helloworld
MakefileThe rules are as follows:
Target...: prerequisites...
Command ......
Target can be a target File, an Object File (such as helloworld. obj), an execution File, and a tag.
Prerequisites is the file or target required to
In actual work, the implementation of MySQL delayed backup bitsCN.com often happens when you accidentally delete the database or table and regret it. is there any regret? The delayed backup described today can be achieved.
Delayed backup causes slave to lag behind the master for a period of time. when a misoperation occurs, you only need to immediately stop slave synchronization, and you can easily retrieve the accidentally deleted data from the delayed backup database.
The following describ
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.