mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Python distutils: Make DLL packaging more flexible
This updates setup.py.in to pack the DLLs according to the options we specified to configure.js or CMake (or, even configure, although autotools builds are not likely to build the libxml2 Python module via distutils). At this point, we can pack only the DLLs that libxml2 really depends on, and pack the libxslt DLLs only if we really built the libxslt Python modules. Also make the DLL filenames more easily configured
This commit is contained in:
committed by
Nick Wellnhofer
parent
1b7d4e2bcc
commit
dbfe6151ff
@@ -408,6 +408,14 @@ function configureLibxmlPy()
|
||||
of.WriteLine(s.replace(/\@prefix\@/, buildPrefix));
|
||||
} else if (s.search(/\@WITH_THREADS\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads == "no"? "0" : "1"));
|
||||
} else if (s.search(/\@WITH_ZLIB\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_LZMA\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_LZMA\@/, withLzma? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_ICONV\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_ICU\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_ICU\@/, withIcu? "1" : "0"));
|
||||
} else
|
||||
of.WriteLine(ln);
|
||||
}
|
||||
|
Reference in New Issue
Block a user