~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to tools/perf/util/setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python2
 
2
 
 
3
from distutils.core import setup, Extension
 
4
from os import getenv
 
5
 
 
6
cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
 
7
cflags += getenv('CFLAGS', '').split()
 
8
 
 
9
perf = Extension('perf',
 
10
                  sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
 
11
                             'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
 
12
                             'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
 
13
                  include_dirs = ['util/include'],
 
14
                  extra_compile_args = cflags,
 
15
                 )
 
16
 
 
17
setup(name='perf',
 
18
      version='0.1',
 
19
      description='Interface with the Linux profiling infrastructure',
 
20
      author='Arnaldo Carvalho de Melo',
 
21
      author_email='acme@redhat.com',
 
22
      license='GPLv2',
 
23
      url='http://perf.wiki.kernel.org',
 
24
      ext_modules=[perf])