blob: 01602e17e756d46f49a984f223dd5c48210f152b [file] [log] [blame]
Ying Wang05436632013-04-05 16:01:00 -07001
2The source code of bison 2.7 was downloaded from http://ftp.gnu.org/gnu/bison/.
3
4To build it with the Android build system, we added 2 subdirectories darwin-lib
5and linux-lib, as well as an Android.mk.
6We used the following steps to generate the Android.mk:
71) On a Mac OS X machine, run ./configure and make, you'll get a list of
8generated header files from the log. Copy them to darwin-lib; You can also get
9a list of source files from the log. Add them to LOCAL_SRC_FILES in the
10Android.mk.
112) Do the same thing on a Linux machine.
123) Comment out the PKGINCLUDEDIR line in darwin-lib/configmake.h and
13linux-lib/configmake.h, because we'll pass in the macro from the build system.
144) Define libbison and bison in the Android.mk.