There is an interesting phenomenon in the high-tech world: the simpler something is to use on the outside, the more horribly complex it is on the inside! A user does not need to know about that complexity, but a developer does. That is what I am looking for.
Sense and simplicity
December 26, 2009android build system
December 29, 2009android’s build system is complex but very well designed, it is very convenient once you know where to start, here is some tips:
- the first step, enter to android root directory, and run
. build/envsetup.sh
then run
help
to get some summary information - run
lunch 1
to set build environment
the default item 1 is generic-eng, you can add customized item via add_lunch_combo, eg.
add_lunch_combo mojo-eng
to add item for mojo product with variant as engineer, and run
lunch
to choose the lunch items - run
make
to build the system - if you do not want to build the whole system, given the make a target name, such as, systemimage-nodeps, userdataimage-nodeps, etc. all the target name is defined in build/core/Makefile. you can also use mm or mmm function to achieve this, example, run
mmm packages/apps/Launcher
to build Launcher application, enter packages/apps/Launcher and run
mm
do the same thing. - some useful function, croot, godir, cd $OUT, cgrep, gettop,
get_build_var - run emulator
emulator&
run ddms
ddms& - see detail in build/core/build-system.html
the journey to Lua
December 26, 2009I am on the journey to Lua.
- go to http://www.lua.org/, and take a quick look at it
- read the reference manual carefully
- download the source code, and build Lua with the help of faq
- setup Lua SDK, I think the KeplerProject is a good choice, you need to setup LuaRocks first though. There is also an all-in-one solution LuaForWindows.
- setup Lua IDE, the LuaEdit is a good choice, but I like SciTE.
- enjoy yourself to write and debug your own Lua code.
Hello world!
December 25, 2009Welcome to my site
to be continue…