summaryrefslogtreecommitdiffstats
path: root/third_party/libxml/README.chromium
blob: 682c6594d6bdb477369e4db1d96e303653ee9593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name: libxml
URL: http://xmlsoft.org
Version: 2.9.2
License: MIT
License File: src/Copyright
Security Critical: yes

Description:

libxml2 from libxml.org.

Modifications:
- Add helper classes in chromium/libxml_utils.cc and
  chromium/include/libxml/libxml_utils.h.
- Import https://git.gnome.org/browse/libxml2/commit/?id=7580ce0a7f53891de520fed2c0e360266c286da6
  from upstream.


To import a new snapshot:

On Linux, get the latest tar, untar, and replace src/ with libxml2-X.Y.Z/.

Remove:
  src/doc/
  src/example/
  src/os400/
  src/python/
  src/result/
  src/test/
  src/vms/
  src/VxWorks/

Generate config.h, include/libxml/xmlversion.h, and xml2-config:

cd linux
../src/configure --without-iconv --with-icu --without-ftp --without-http
cd ..
Patch config.h to not define HAVE_RAND_R since we use this file on Android
and it does not have it.

On a Mac, do the same in the mac/ subdir for config.h and
include/libxml/xmlversion.h and copy those to the Linux box in mac/

On a Windows box:
cd libxml2-2.9.2\win32
cscript //E:jscript configure.js compiler=msvc iconv=no icu=yes ftp=no http=no
Then copy config.h and include/libxml/xmlversion.h to win32/ on Linux.


Update BUILD.gn and libxml.gyp as necessary to add/remove files, etc.