Synopsis - Cross-Reference

File: /Synopsis/Parsers/Cxx/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
12topdir = '@topdir@'
13srcdir = '@srcdir@'
14
15cppflags = ['-I%s/Cxx-API/include'%(topdir),
16            '-I../../../src',
17            '-I%s/src'%(topdir),
18            '-I%s/src/Synopsis/gc/include'%(topdir),
19            '-I%s'%(srcdir),
20            '-I%s'%(srcdir) + '/occ',
21            '-I%s'%(sysconfig.get_python_inc())]
22
23cxx = Cxx.Parser(base_path = topdir + os.sep,
24                 cppflags = cppflags,
25                 syntax_prefix = 'links',
26                 xref_prefix = 'xref')
27
28link = Linker(Comments.Translator(filter = Comments.SSDFilter()))
29
30process(cxx = cxx,
31        link = link)