debuggers.hg

view tools/python/setup.py @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents ea0e302362bb
children 330c4d9010da
line source
2 from distutils.core import setup, Extension
3 import os
5 XEN_ROOT = "../.."
7 extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
9 include_dirs = [ XEN_ROOT + "/tools/libxc",
10 XEN_ROOT + "/tools/xenstore",
11 XEN_ROOT + "/tools/include",
12 ]
14 library_dirs = [ XEN_ROOT + "/tools/libxc",
15 XEN_ROOT + "/tools/xenstore",
16 ]
18 libraries = [ "xenctrl", "xenguest", "xenstore" ]
20 xc = Extension("xc",
21 extra_compile_args = extra_compile_args,
22 include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
23 library_dirs = library_dirs,
24 libraries = libraries,
25 sources = [ "xen/lowlevel/xc/xc.c" ])
27 xs = Extension("xs",
28 extra_compile_args = extra_compile_args,
29 include_dirs = include_dirs + [ "xen/lowlevel/xs" ],
30 library_dirs = library_dirs,
31 libraries = libraries,
32 sources = [ "xen/lowlevel/xs/xs.c" ])
34 scf = Extension("scf",
35 extra_compile_args = extra_compile_args,
36 include_dirs = include_dirs + [ "xen/lowlevel/scf" ],
37 library_dirs = library_dirs,
38 libraries = libraries,
39 sources = [ "xen/lowlevel/scf/scf.c" ])
41 process = Extension("process",
42 extra_compile_args = extra_compile_args,
43 include_dirs = include_dirs + [ "xen/lowlevel/process" ],
44 library_dirs = library_dirs,
45 libraries = libraries + [ "contract" ],
46 sources = [ "xen/lowlevel/process/process.c" ])
48 acm = Extension("acm",
49 extra_compile_args = extra_compile_args,
50 include_dirs = include_dirs + [ "xen/lowlevel/acm" ],
51 library_dirs = library_dirs,
52 libraries = libraries,
53 sources = [ "xen/lowlevel/acm/acm.c" ])
55 flask = Extension("flask",
56 extra_compile_args = extra_compile_args,
57 include_dirs = include_dirs + [ "xen/lowlevel/flask" ] +
58 [ "../flask/libflask/include" ],
59 library_dirs = library_dirs + [ "../flask/libflask" ],
60 libraries = libraries + [ "flask" ],
61 sources = [ "xen/lowlevel/flask/flask.c" ])
63 ptsname = Extension("ptsname",
64 extra_compile_args = extra_compile_args,
65 include_dirs = include_dirs + [ "ptsname" ],
66 library_dirs = library_dirs,
67 libraries = libraries,
68 sources = [ "ptsname/ptsname.c" ])
70 checkpoint = Extension("checkpoint",
71 extra_compile_args = extra_compile_args,
72 include_dirs = include_dirs,
73 library_dirs = library_dirs,
74 libraries = libraries + [ "rt" ],
75 sources = [ "xen/lowlevel/checkpoint/checkpoint.c",
76 "xen/lowlevel/checkpoint/libcheckpoint.c"])
78 netlink = Extension("netlink",
79 extra_compile_args = extra_compile_args,
80 include_dirs = include_dirs,
81 library_dirs = library_dirs,
82 libraries = libraries,
83 sources = [ "xen/lowlevel/netlink/netlink.c",
84 "xen/lowlevel/netlink/libnetlink.c"])
86 modules = [ xc, xs, ptsname, acm, flask ]
87 plat = os.uname()[0]
88 if plat == 'SunOS':
89 modules.extend([ scf, process ])
90 if plat == 'Linux':
91 modules.extend([ checkpoint, netlink ])
93 setup(name = 'xen',
94 version = '3.0',
95 description = 'Xen',
96 packages = ['xen',
97 'xen.lowlevel',
98 'xen.util',
99 'xen.util.xsm',
100 'xen.util.xsm.dummy',
101 'xen.util.xsm.flask',
102 'xen.util.xsm.acm',
103 'xen.xend',
104 'xen.xend.server',
105 'xen.xend.xenstore',
106 'xen.xm',
107 'xen.web',
108 'xen.sv',
109 'xen.xsview',
110 'xen.remus',
112 'xen.xend.tests',
113 'xen.xend.server.tests',
114 'xen.xend.xenstore.tests',
115 'xen.xm.tests'
116 ],
117 ext_package = "xen.lowlevel",
118 ext_modules = modules
119 )
121 os.chdir('logging')
122 execfile('setup.py')