|
1 To upgrade to a new revision of libjpeg-turbo, do the following: |
|
2 |
|
3 * Check out libjpeg-turbo from SVN: |
|
4 |
|
5 $ svn co https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/trunk libjpeg-turbo |
|
6 |
|
7 * In a clean clone of mozilla-central, run the following commands |
|
8 |
|
9 $ rm -rf media/libjpeg |
|
10 $ svn export --ignore-externals /path/to/libjpeg-turbo media/libjpeg |
|
11 $ cd media/libjpeg |
|
12 |
|
13 * Copy win/jsimdcfg.inc to simd/. |
|
14 |
|
15 * Since libjpeg-turbo normally creates config.h and jconfig.h at build time and |
|
16 we use pre-generated versions, changes to jconfig.h.in and win/config.h.in |
|
17 should be looked for and noted for later inclusion. |
|
18 |
|
19 * Now look through the new files and rm any which are npotb. When I upgraded |
|
20 to libjpeg-turbo 1.1.0, the only files I kept which didn't match |
|
21 |
|
22 *.c *.h *.asm *.inc |
|
23 |
|
24 were README and README-turbo. |
|
25 |
|
26 You can easily look for all non *.c, *.h, *.asm, and *.inc files by running |
|
27 |
|
28 $ hg status -nu | grep -v '\(c\|h\|asm\|inc\)$' |
|
29 |
|
30 Once you're comfortable that you're only deleting files you want to delete |
|
31 (and you've hg add'ed the files you want to keep), you can nuke the remaining |
|
32 files with |
|
33 |
|
34 $ hg status -nu | grep -v '\(c\|h\|asm\|inc\)$' | xargs rm |
|
35 |
|
36 A helpful command for finding the *.c files which aren't *currently* part of |
|
37 the build is |
|
38 |
|
39 diff <(ls *.c | sort) <(grep -o '\w*\.c' Makefile.in | sort) |
|
40 |
|
41 Of course, libjpeg-turbo might have added some new source files, so you'll |
|
42 have to look though and figure out which of these files to keep. |
|
43 |
|
44 * Restore files modified in the Mozilla repository. |
|
45 |
|
46 $ hg revert --no-backup config.h jconfig.h Makefile.in MOZCHANGES \ |
|
47 mozilla.diff simd/Makefile.in genTables.py |
|
48 |
|
49 * Update config.h and jconfig.h as noted previously. |
|
50 |
|
51 * Apply Mozilla-specific changes to upstream files. |
|
52 |
|
53 $ patch -p0 -i mozilla.diff |
|
54 |
|
55 * Update Makefile.in to build any new files. |
|
56 |
|
57 * Finally, tell hg that we've added or removed some files: |
|
58 |
|
59 $ hg addremove |
|
60 |
|
61 == March 24, 2014 (libjpeg-turbo v1.3.1 r1205 2014-03-22) == |
|
62 |
|
63 * Updated to v1.3.1 release. |
|
64 |
|
65 == November 25, 2013 == |
|
66 |
|
67 * Fix bug 891693. |
|
68 |
|
69 == June 4, 2013 (libjpeg-turbo v1.3.0 r988 2013-05-25) == |
|
70 |
|
71 * Updated to v1.3.0 release. |
|
72 |
|
73 == December 12, 2012 == |
|
74 |
|
75 * Replace the runtime computed jpeg_nbits_table with constants in |
|
76 jpeg_nbits_table.h to make it shareable among processes. (bug 815473) |
|
77 |
|
78 == October 13, 2012 == |
|
79 |
|
80 * Modified config.h to use MOZ_ALWAYS_INLINE (bug 800106). |
|
81 |
|
82 == July 4, 2012 (libjpeg-turbo v1.2.1 r853 2012-06-30) == |
|
83 |
|
84 * Updated to v1.2.1 stable release. |
|
85 |
|
86 == June 5, 2012 (libjpeg-turbo v1.2.x branch, r831 2012-05-30) == |
|
87 |
|
88 * Updated to latest version on v1.2.x branch (bug 759891). |
|
89 |
|
90 == February 10, 2012 (libjpeg-turbo v1.2.0 r807 2012-02-10) == |
|
91 |
|
92 * Imported jchuff.c, jdhuff.c, jdhuff.h under new licensing. |
|
93 |
|
94 * Created mozilla.diff for the required jmorecfg.h changes and to allow for any |
|
95 future changes made by Mozilla to upstream files. |
|
96 |
|
97 * Removed the following files which are unused by the Mozilla build: |
|
98 |
|
99 cderror.h, cdjpeg.h, jconfig.h.in, transupp.h, simd/jsimdcfg.inc.h |
|
100 |
|
101 |
|
102 == March 28, 2011 (initial commit, libjpeg-turbo v1.1.0 r469 2011-02-27) == |
|
103 |
|
104 * Modified jmorecfg.h to define UINT8, UINT16, INT16, and INT32 in terms of |
|
105 prtypes to fix a build error on Windows. |
|
106 |
|
107 * Defined INLINE as NS_ALWAYS_INLINE in jconfig.h. |
|
108 |
|
109 * Removed the following files which are licensed under the wxWindows license: |
|
110 |
|
111 bmp.c, bmp.h, jpegut.c, jpgtest.cxx, rrtimer.h, rrutil.h, turbojpeg.h, |
|
112 turbojpegl.c |
|
113 |
|
114 * Reverted the following files to what was previously in Mozilla's tree |
|
115 (nominally libjpeg 6.2): |
|
116 |
|
117 jchuff.c, jdhuff.c, jdhuff.h |
|
118 |
|
119 since the versions of these files in libjpeg-turbo are also under the |
|
120 wxWindows license. (It would have been nicer to revert them to the new |
|
121 libjpeg-8b code, but that doesn't easily integrate with libjpeg-turbo.) |