mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Commit7c273ffdd0("tools/python: drop libxenguest from setup.py") was just wrong: there is one function from libxenguest used in the bindings, so readd the library again. While at it remove the unused PATH_LIBXL setting. Fixes:7c273ffdd0("tools/python: drop libxenguest from setup.py") Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Wei Liu <wl@xen.org> Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
51 lines
2.0 KiB
Python
51 lines
2.0 KiB
Python
|
|
from distutils.core import setup, Extension
|
|
import os, sys
|
|
|
|
XEN_ROOT = "../.."
|
|
|
|
extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
|
|
|
|
PATH_XEN = XEN_ROOT + "/tools/include"
|
|
PATH_LIBXENTOOLLOG = XEN_ROOT + "/tools/libs/toollog"
|
|
PATH_LIBXENEVTCHN = XEN_ROOT + "/tools/libs/evtchn"
|
|
PATH_LIBXENCTRL = XEN_ROOT + "/tools/libs/ctrl"
|
|
PATH_LIBXENGUEST = XEN_ROOT + "/tools/libs/guest"
|
|
PATH_XENSTORE = XEN_ROOT + "/tools/libs/store"
|
|
|
|
xc = Extension("xc",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = [ PATH_XEN,
|
|
PATH_LIBXENTOOLLOG + "/include",
|
|
PATH_LIBXENEVTCHN + "/include",
|
|
PATH_LIBXENCTRL + "/include",
|
|
PATH_LIBXENGUEST + "/include",
|
|
"xen/lowlevel/xc" ],
|
|
library_dirs = [ PATH_LIBXENCTRL, PATH_LIBXENGUEST ],
|
|
libraries = [ "xenctrl", "xenguest" ],
|
|
depends = [ PATH_LIBXENCTRL + "/libxenctrl.so", PATH_LIBXENGUEST + "/libxenguest.so" ],
|
|
extra_link_args = [ "-Wl,-rpath-link="+PATH_LIBXENTOOLLOG ],
|
|
sources = [ "xen/lowlevel/xc/xc.c" ])
|
|
|
|
xs = Extension("xs",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = [ PATH_XEN, PATH_XENSTORE + "/include", "xen/lowlevel/xs" ],
|
|
library_dirs = [ PATH_XENSTORE ],
|
|
libraries = [ "xenstore" ],
|
|
depends = [ PATH_XENSTORE + "/libxenstore.so" ],
|
|
sources = [ "xen/lowlevel/xs/xs.c" ])
|
|
|
|
plat = os.uname()[0]
|
|
modules = [ xc, xs ]
|
|
|
|
setup(name = 'xen',
|
|
version = '3.0',
|
|
description = 'Xen',
|
|
packages = ['xen',
|
|
'xen.migration',
|
|
'xen.lowlevel',
|
|
],
|
|
ext_package = "xen.lowlevel",
|
|
ext_modules = modules
|
|
)
|