mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Enable etg code to be used to build extensions other than Phoenix itself.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,17 +13,20 @@ them from the Doxygen XML, and producing wrapper code from them.
|
||||
"""
|
||||
|
||||
import sys, os
|
||||
# Mac Python actually has a buildtools module, so we need
|
||||
# to make sure ours is picked up when we're not run from the
|
||||
# Phoenix root dir.
|
||||
sys.path.insert(0, os.path.abspath(os.path.split(__file__)[0]+'/..'))
|
||||
|
||||
from buildtools.config import Config
|
||||
from .extractors import *
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
cfg = Config(noWxConfig=True)
|
||||
|
||||
from buildtools.config import phoenixDir, wxDir
|
||||
|
||||
xmlsrcbase = 'docs/doxygen/out/xml'
|
||||
WXWIN = wxDir()
|
||||
if WXWIN:
|
||||
XMLSRC = os.path.join(WXWIN, xmlsrcbase)
|
||||
assert WXWIN and os.path.exists(XMLSRC), "Unable to locate Doxygen XML files"
|
||||
phoenixRoot = cfg.ROOT_DIR
|
||||
XMLSRC = cfg.DOXY_XML_DIR
|
||||
assert os.path.exists(XMLSRC), "Unable to locate Doxygen XML files at " + XMLSRC
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -18,8 +18,11 @@ import etgtools.generators as generators
|
||||
from etgtools.generators import nci, Utf8EncodingStream, textfile_open, wrapText
|
||||
|
||||
|
||||
from buildtools.config import Config
|
||||
cfg = Config(noWxConfig=True)
|
||||
|
||||
divider = '//' + '-'*75 + '\n'
|
||||
phoenixRoot = os.path.abspath(os.path.split(__file__)[0]+'/..')
|
||||
phoenixRoot = cfg.ROOT_DIR
|
||||
|
||||
class SipGeneratorError(RuntimeError):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user