Android系統開發(4)——Autotools,androidautotools

來源:互聯網
上載者:User

Android系統開發(4)——Autotools,androidautotools
Autotools工具的構成

1、autoscan

autoscan是用來掃描原始碼目錄產生configure.san檔案的,configure.san包含了系統配置的基本選項,裡面都是一些宏定義,我們需要將它的名字改為configure.in

2、aclocal

aclocal是一個perl指令碼程式。aclocal根據configure.in檔案內容自動產生aclocal.m4檔案,產生的aclocal.m4檔案是宏展開檔案。

3、autoconf

autoconf是用來產生configure檔案的,configure.in檔案的內容是一些宏,這些宏經過autoconf處理後會變成檢查系統特性、環境變數、軟體必須的參數的shell指令碼。

4、autohead

自動產生config.h.in

5、automake

使用automake-add-missing來產生Makefile.in.

Document address:https://www.gnu.org/software/autoconf/manual/autoconf.html

Files used in preparing a software package for distribution, when using just Autoconf:

     your source files --> [autoscan*] --> [configure.scan] --> configure.ac          configure.ac --.                    |   .------> autoconf* -----> configure     [aclocal.m4] --+---+                    |   `-----> [autoheader*] --> [config.h.in]     [acsite.m4] ---'          Makefile.in

Additionally, if you use Automake, the following additional productions come into play:

     [acinclude.m4] --.                      |     [local macros] --+--> aclocal* --> aclocal.m4                      |     configure.ac ----'          configure.ac --.                    +--> automake* --> Makefile.in     Makefile.am ---'

Files used in configuring a software package:

                            .-------------> [config.cache]     configure* ------------+-------------> config.log                            |     [config.h.in] -.       v            .-> [config.h] -.                    +--> config.status* -+               +--> make*     Makefile.in ---'                    `-> Makefile ---'
Autotools過程示範1、autoscan
修改configure.san檔案名稱為configure.ac或者configure.in,開啟配置我們產生makefile的資訊。
2、aclocal
執行autoconf命令來產生configure可執行檔,並建立一個Makefile.am來編輯內容
bin_PROGRAMS = hellohello_SOURCES = hello.c
安裝軟體
執行make命令和sudo make install
去/usr/local/bin下面執行我們的可執行檔hello
產生壓縮包


android系統開發要用什知識?

android 技術內幕系統磁碟區
第1章 準備工作 /1 1.1 深入認識android /2 1.1.1 android的系統構架 /2 1.1.2 android的初始化流程 /5 1.1.3 各個層次之間的相互關係 /8 1.1.4 android系統開發(移植)和應用開發 /11 1.2 擷取和編譯android的源碼 /13 1.2.1 環境配置 /13 1.2.2 擷取android源碼 /14 1.2.3 編譯android的源碼及其工具包 /16 1.2.4 運行android系統 /21 1.3 開發環境搭建 /23 1.3.1 應用開發環境搭建 /23 1.3.2 源碼開發環境搭建 /26 1.4 android源碼結構 /32 1.5 小結 /33 第2章 android的核心機制和結構剖析 /34 2.1 linux與android的關係 /35 .2.1.1 為什麼會選擇linux /35 2.1.2 android不是linux /35 2.2 android對linux核心的改動 /37 2.2.1 goldfish /37 2.2.2 yaffs2 /38 2.2.3 藍芽 /39 2.2.4 調度器(scheduler)/39 2.2.5 android新增的驅動 /40 2.2.6 電源管理 /41 2.2.7 雜項 /41 2.3 android對linux核心的增強 /42 2.3.1 alarm(硬體時鐘)/43 2.3.2 ashmem(匿名記憶體共用)/46 2.3.3 low memory killer(低記憶體管理)/52 2.3.4 logger(日誌裝置)/56 2.3.5 android pmem /65 2.3.6 switch /79 2.3.7 timed gpio /88 2.3.8 android ram console /94 2.4 小結 /99 第3章 android的ipc機制--binder /100 3.1 binder概述 /101 3.1.1 為什麼選擇binder /101 3.1.2 初識binder /102 3.2 binder驅動的原理和實現 /102 3.2.1 binder驅動的原理 /102 3.2.2 binder驅動的實現 /103 3.3 binder的構架與實現 /132 3.3.1 binder的系統構架 /132 3.3.2 binder的機制和原理 /133 3.4 小結 /150 第4章 電源管理 /151 4.1 電源管理概述 /152 4.2 電源管理結構 /152 4.3 android的電源管理機制 /153 4.4 android電源管理機制的實現 /154 4.5 小結 /187 第5章 驅動的工作原理及實現機制 /188 5.1 顯示驅動(framebuffer)/189 5.1.1 framebuffer的工作原理 /189 5.1.2 framebuffer的構架 &......餘下全文>>
 
安卓43 Jelly Bean系統的開發人員選項在哪?

開啟設定,點擊更多或者是關於裝置,如果是4.3版本的話就點更多然後,找到關於裝置,會出一個介面,找到androidban版本,狂點。出現一個紅豆子,下面寫著JELLY BEAN狂滑手機螢幕,以及點。如果沒反應多試試,到時又會出現許多豆豆,很好玩。如果我說跑題了,你也可以看看,很好玩。(不是啥開發人員選項)
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.