gecko-dev/extensions/python/xpcom/src
mhammond%skippinet.com.au 705e1b5fbd Make use if the new PyGILState_ API if available.
Not part of the build.
2003-04-20 02:47:31 +00:00
..
loader Make use if the new PyGILState_ API if available. 2003-04-20 02:47:31 +00:00
ErrorUtils.cpp Initialize a static to be nice, and printf() errors if the console 2003-04-16 01:26:51 +00:00
Makefile.in Moving towards making an optional part of the build. Not part of the 2003-04-01 14:17:28 +00:00
PyGBase.cpp If repr() of a component failed we would crash. Not part of the build. 2003-04-02 03:59:18 +00:00
PyGInputStream.cpp b=99165 Freeze nsIInputStream nsIOutputStream (not yet frozen... but close) 2002-03-12 00:59:06 +00:00
PyGModule.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyGStub.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyGWeakReference.cpp Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 20:32:55 +00:00
PyIClassInfo.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyIComponentManager.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyIEnumerator.cpp
PyIID.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyIInputStream.cpp Prevent allocating zero bytes. 2003-04-16 01:23:40 +00:00
PyIInterfaceInfo.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyIInterfaceInfoManager.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyISimpleEnumerator.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyISupports.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyIVariant.cpp Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
PyXPCOM.h Make use if the new PyGILState_ API if available. 2003-04-20 02:47:31 +00:00
PyXPCOM_std.h Merging 1.0 branch onto the trunk (I know this is not the usual 2002-05-03 01:16:47 +00:00
Pyxpt_info.cpp Fix up bogus casts of nsXPTType pointers - fixes segment faults on some 2001-09-12 01:45:57 +00:00
TypeObject.cpp Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426 2002-09-03 23:36:13 +00:00
VariantUtils.cpp Prevent allocating zero bytes. 2003-04-16 01:23:40 +00:00
dllmain.cpp Make use if the new PyGILState_ API if available. 2003-04-20 02:47:31 +00:00
readme.html
xpcom.cpp Make use if the new PyGILState_ API if available. 2003-04-20 02:47:31 +00:00

readme.html

<!-- Copyright (c) 2000-2001 ActiveState Tool Corporation. -->
<!-- See the file LICENSE.txt for licensing information. -->

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Building the Python XPCOM package</title>
</head>

<body>

<h1>Building the Python XPCOM package.</h1>

<p>This file describes how to build the Python XPCOM C++ sources.</p>
<p>There are the following steps</p>
<ul>
  <li><a href="#ConfiguringTheEnvironment">Configure environment variables</a></li>
  <li><a href="#BuildingTheSources">Building the sources</a></li>
</ul>
<p>Testing etc is described in the <a href="../readme.html">main readme</a>.</p>
<h2><a name="ConfiguringTheEnvironment">Configuring environment variables</a></h2>
<h3> MOZ_SRC&nbsp;</h3>
<p><b>Windows: </b>Run the standard MOZENV.BAT used to build Mozilla.&nbsp; This
sets MOZ_SRC</p>
<p><b>Unix:</b> Set MOZ_SRC to point to the base source directory -  assumes
&quot;mozilla&quot; sub-directory with mozilla directory  tree under that. eg: assuming
<i>/home/user/src/mozilla/dist/...</i>&quot;</p>
<pre>export MOZ_SRC=/home/user/src</pre>
<h3>PYTHON_SRC</h3>
<p><b>Windows:</b> Set <i> PYTHON_SRC</i> to point to the base Python source  directory.&nbsp;
eg: assuming <i>c:\src\python\PCBuild\...</i><pre>set PYTHON_SRC=c:\src\python</pre>
<p>Unix: Set PYTHON_SRC to point to the base of an &quot;installed&quot; Python
tree. eg:<pre>export PYTHON_SRC=/usr/local/ActivePython-1.6</pre>
<h2><a name="BuildingTheSources">Building the sources</a></h2>
<p>You must ensure some environment variables are setup.&nbsp; The section on <a href="#ConfiguringTheEnvironment">configuring
environment variables explains how.</a></p>
<p>There are 2 build processes to run All C++ sources are in the <i>xpcom\src</i>
 directory.:</p>
<h3>Windows</h3>
<ul>
  <li> Execute &quot;compile.py&quot; in this directory.  This will take <i>Setup.in</i>, create an MSDev project, and build
    <i>..\_xpcom.pyd</i> and <i>..\_xpcom_d.pyd</i>&quot;</li>
  <li> Change to the <i>loader</i> directory.</li>
  <li> Run <i>nmake -f makefile.win</i>.  This will create <i>pyloader.dll</i>,  and
    automatically copy it to the Mozilla build directory.</li>
 <a href="#ConfiguringTheEnvironment">
  </ul>
  <p>Finally, </a><a href="../readme.html#RunningTheTests">run the tests</a>,
  where we also test everything imports correctly.</p>
<h3>Linux</h3>
<p><b> NOTE:</b>  Do not attempt to use &quot;Setup.in&quot; to create a Makefile&nbsp;</p>
<ul>
  <li>Run &quot;make&quot; in this directory.&nbsp; This will create <i>../_xpcommodule.so</i></li>
  <li> Run "make" in the loader directory.  This will create <i>libpyloader.so</i>,
    and copy it to the Mozilla directory.</li>
 <a href="#ConfiguringTheEnvironment">
  </ul>
  <p>Finally, </a><a href="../readme.html#RunningTheTests">running the tests</a>,
  where we also test everything imports correctly.</p>

</body>

</html>