# Chromium web browser build instructions for Tiny Core Linux
#
# Sercan Arslan (arslanserc@gmail.com)
# 2009/12/30

1) install the dependencies

	Extensions to load:

		-compiletc
		-gtk2
		-gtk2-dev
		-nss-nspr-dev
		-alsa-dev
		-libasound
		-GConf
		-gettext
		-bzip2-dev
		-bzip2-lib
		-dbus
		-dbus-glib
		-openssl-0.9.8m-dev
		-openssl-0.9.8m
		-python
		-python-dev
		-perl5
		-svn

	To be build and installed:

		-gperf >= 3.0.4

2) get depot tools
	-download http://src.chromium.org/svn/trunk/tools/depot_tools.tar.gz
	-extract and add to PATH variable
	export PATH=`pwd`/depot_tools:"$PATH"

3) downloading and bootstrapping the source
	-download a tarball from http://build.chromium.org/buildbot/archives/chromium_tarball.html
	-extract tarball
	-cd to chromium/src
	-update the source to the latest:

		# 
		export GYP_DEFINES="use_system_ffmpeg=0 use_system_zlib=0 use_system_libjpeg=1 use_system_libpng=1 use_system_sqlite=0 use_system_libxml=0 use_system_libxslt=0"
		gclient sync --force

4) building chrome

		cd chromium/src
		export GYP_GENERATORS=make
		gclient sync
		# at this point you can modify compiler flags they are located in build/common.gypi
		# if you are a packager: search for "march"
		# generates makefiles
		gclient runhooks --force
		# create a symlink to gcc (a workaround for an error)
		sudo ln -s /usr/local/bin/gcc /usr/bin/gcc
		# build command for chrome: for a quad core cpu take X=5, for a dual core cpu X=3
		# V=1 to see whole command messages
		make -j3 BUILDTYPE=Release chrome
		# it takes about 30 mins on a core2M 2.5GHz

5) the output directory is out/Release 
			

