After the installation of Windows XP on VMWare, it is time to roll up the sleeves to make some progress on Dojo 2D. Hold on, before we make our hands dirty, let us try to make the test environment as comfortable as possible:
- Using SVN to keep the dojo source tree updated
- Using SVK to maintain the gfx branch
- MSIE, Firefox can show the by refresh the page
# cp the dojo 2d implementation in $dojosvg, and check into the local svk repository.
svk co //dojosvg .
# link the src/gfx, tests/gfx to the dojo HEAD
cd $dojo/trunk/src; ln -sf ../../dojogfx/trunk/src/gfx/ gfx
cd $dojo/trunk/tests; ln -sf ../../dojogfx/trunk/tests/gfx/ gfx
#install mini_httpd (42K src)
sudo emerge mini_httpd
# modify the /etc/conf.d/mini_httpd
$dojo/trunk/src/gfx is linked to $dojo/dojogfx/src/gfx, so we can work in $dojo/dojogfx/src/gfx, and commit the change to our local svk repository.
We have to use the relative symbol link since mini_httpd will chroot before the execution, the absolute path is not accessable by the web server.
For my case, Gentoo is the host, Windows XP is the slave, they are connected by NAT VMWare network. In linux, you can access the localhost:8080/path/to/test_gfx.html, in Windows, gateway:8080/path/to/test_gfx.html.