Synopsis - Cross-Reference

File: /src/synopsis.py.in
 1#! /usr/bin/env python
 2
 3from Synopsis import config
 4from Synopsis.process import process
 5from Synopsis.Processor import *
 6from Synopsis.Processors import *
 7from Synopsis.Parsers import Cxx
 8
 9from distutils import sysconfig
10import sys, os, os.path
11
12srcdir = '@srcdir@'
13topdir = os.path.dirname(srcdir)
14
15cppflags = ['-I.',
16            '-I%s'%(srcdir + '/Synopsis/gc/include'),
17            '-I%s'%(srcdir),
18            '-I%s'%(sysconfig.get_python_inc())]
19
20cxx = Cxx.Parser(base_path = srcdir + os.sep,
21                 cppflags = cppflags,
22                 sxr_prefix = 'sxr')
23
24cxx_sxr = Cxx.Parser(base_path = topdir + os.sep,
25                     cppflags = cppflags,
26                     sxr_prefix = 'sxr')
27
28link = Linker(MacroFilter(pattern=r'^Synopsis_(.*)_hh_$'),
29              Comments.Translator(markup='rst',
30                                  filter = Comments.SSDFilter()),
31              sxr_prefix = 'sxr')
32
33process(cxx = cxx,
34        cxx_sxr = cxx_sxr,
35        link = link)