JavaScript:ActionMonkey: Difference between revisions

→‎How to build: reorder - you really kidna need the prerequisites ''first''
(→‎How to build: reorder - you really kidna need the prerequisites ''first'')
Line 25: Line 25:
You should be able to build a working JS shell or Firefox using these steps.  If it doesn't work for you, please [https://bugzilla.mozilla.org/enter_bug.cgi?assigned_to=jorendorff%40mozilla.com&bug_severity=normal&bug_status=NEW&component=Build%20Config&form_name=enter_bug&product=Core&short_desc=ActionMonkey%3A%20build%20is%20broken&version=Other%20Branch file a bug using this link] (you might need to log into Bugzilla first).
You should be able to build a working JS shell or Firefox using these steps.  If it doesn't work for you, please [https://bugzilla.mozilla.org/enter_bug.cgi?assigned_to=jorendorff%40mozilla.com&bug_severity=normal&bug_status=NEW&component=Build%20Config&form_name=enter_bug&product=Core&short_desc=ActionMonkey%3A%20build%20is%20broken&version=Other%20Branch file a bug using this link] (you might need to log into Bugzilla first).


* First, make sure you can [http://developer.mozilla.org/en/docs/SpiderMonkey_Build_Documentation build SpiderMonkey] on the machine you're going to use.  If you can't build SpiderMonkey, you won't be able to build ActionMonkey.
* Install Python 2.4 or later.
* Install Python 2.4 or later.
* Install [http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages Mercurial].
* Install [http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages Mercurial].
Line 32: Line 33:
* <tt>python client.py checkout</tt>  ''(The <tt>actionmonkey</tt> repository doesn't contain all the source files you need.  This Python script grabs all the other source files (from other repositories, both CVS and hg) and puts them into your tree in the right places.)''
* <tt>python client.py checkout</tt>  ''(The <tt>actionmonkey</tt> repository doesn't contain all the source files you need.  This Python script grabs all the other source files (from other repositories, both CVS and hg) and puts them into your tree in the right places.)''
* Then build as you normally would. Note: you '''must''' build with an objdir. (See [http://developer.mozilla.org/en/docs/Configuring_Build_Options#Building_with_an_Objdir].) (Hint:  For a quick debug build of <tt>[http://developer.mozilla.org/en/docs/Introduction_to_the_JavaScript_shell js]</tt>, try <tt>cd js/src; make -f Makefile.ref</tt>.)
* Then build as you normally would. Note: you '''must''' build with an objdir. (See [http://developer.mozilla.org/en/docs/Configuring_Build_Options#Building_with_an_Objdir].) (Hint:  For a quick debug build of <tt>[http://developer.mozilla.org/en/docs/Introduction_to_the_JavaScript_shell js]</tt>, try <tt>cd js/src; make -f Makefile.ref</tt>.)
* To build on Windows, use [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites mozillabuild].


''Note:  If you plan on using Mercurial for active development, you should consider installing a 3-way merge program, as described [http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram here].''
''Note:  If you plan on using Mercurial for active development, you should consider installing a 3-way merge program, as described [http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram here].''
638

edits