mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Rename Xen public interfaces.
1. hypervisor-if.h is now xen.h
2. hypervisor-ifs/ directory is now:
<include/public/...> in Xen
<asm/xen-public/...> in Linux
<xen/...> in user space
53 lines
1.6 KiB
Python
53 lines
1.6 KiB
Python
|
|
from distutils.core import setup, Extension
|
|
import os
|
|
|
|
XEN_ROOT = "../.."
|
|
|
|
extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
|
|
|
|
|
|
include_dirs = [ XEN_ROOT + "/linux-xen-sparse/include",
|
|
XEN_ROOT + "/tools/python/xen/lowlevel/xu",
|
|
XEN_ROOT + "/tools/libxc",
|
|
XEN_ROOT + "/tools/libxutil",
|
|
]
|
|
|
|
library_dirs = [ XEN_ROOT + "/tools/libxc",
|
|
XEN_ROOT + "/tools/libxutil",
|
|
]
|
|
|
|
libraries = [ "xc", "xutil" ]
|
|
|
|
xc = Extension("xc",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
|
|
library_dirs = library_dirs,
|
|
libraries = libraries,
|
|
sources = [ "xen/lowlevel/xc/xc.c" ])
|
|
|
|
xu = Extension("xu",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = include_dirs + [ "xen/lowlevel/xu" ],
|
|
library_dirs = library_dirs,
|
|
libraries = libraries,
|
|
sources = [ "xen/lowlevel/xu/xu.c" ])
|
|
|
|
setup(name = 'xen',
|
|
version = '2.0',
|
|
description = 'Xen',
|
|
packages = ['xen',
|
|
'xen.lowlevel',
|
|
'xen.util',
|
|
'xen.xend',
|
|
'xen.xend.server',
|
|
'xen.sv',
|
|
'xen.xm',
|
|
],
|
|
ext_package = "xen.lowlevel",
|
|
ext_modules = [ xc, xu ]
|
|
)
|
|
|
|
os.chdir('logging')
|
|
execfile('setup.py')
|