]> git.pld-linux.org Git - packages/xbmc.git/blob - xbmc-python27.patch
- CRLF issue
[packages/xbmc.git] / xbmc-python27.patch
1 diff -urN xbmc-10.0.orig/configure.in xbmc-10.0/configure.in
2 --- xbmc-10.0.orig/configure.in 2010-12-22 20:53:28.933000073 +0100
3 +++ xbmc-10.0/configure.in      2010-12-22 21:09:50.212000081 +0100
4 @@ -919,7 +919,11 @@
5  
6  # External Python
7  if test "$use_external_python" = "yes"; then
8 -  AC_CHECK_LIB([python2.6], [main],
9 +  AC_CHECK_LIB([python2.7], [main],
10 +    [AC_DEFINE([HAVE_LIBPYTHON2_7], [1],
11 +    [Define to 1 if you have the 'python2.7' library.])
12 +    USE_PYTHON2_7=1],
13 +  [AC_CHECK_LIB([python2.6], [main],
14      [AC_DEFINE([HAVE_LIBPYTHON2_6], [1],
15      [Define to 1 if you have the 'python2.6' library.])
16      USE_PYTHON2_6=1],
17 @@ -931,9 +935,10 @@
18      [AC_DEFINE([HAVE_LIBPYTHON2_4], [1],
19      [Define to 1 if you have the 'python2.4' library.])
20      USE_PYTHON2_4=1],
21 -  [AC_MSG_ERROR($missing_library)] )] )] )
22 +  [AC_MSG_ERROR($missing_library)] )] )] )] )
23  
24    AC_MSG_NOTICE($external_python_enabled)
25 +  test "$USE_PYTHON2_7" && AC_MSG_NOTICE([Using Python 2.7])
26    test "$USE_PYTHON2_6" && AC_MSG_NOTICE([Using Python 2.6])
27    test "$USE_PYTHON2_5" && AC_MSG_NOTICE([Using Python 2.5])
28    test "$USE_PYTHON2_4" && AC_MSG_NOTICE([Using Python 2.4])
29 @@ -1491,6 +1496,7 @@
30  AC_SUBST(USE_EXTERNAL_LIBMPEG2)
31  AC_SUBST(USE_EXTERNAL_LIBWAVPACK)
32  AC_SUBST(USE_EXTERNAL_PYTHON)
33 +AC_SUBST(USE_PYTHON2_7)
34  AC_SUBST(USE_PYTHON2_6)
35  AC_SUBST(USE_PYTHON2_5)
36  AC_SUBST(USE_PYTHON2_4)
37 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/linux/Makefile.in xbmc-10.0/xbmc/lib/libPython/linux/Makefile.in
38 --- xbmc-10.0.orig/xbmc/lib/libPython/linux/Makefile.in 2010-12-17 07:17:41.000000000 +0100
39 +++ xbmc-10.0/xbmc/lib/libPython/linux/Makefile.in      2010-12-22 21:09:50.242000077 +0100
40 @@ -5,7 +5,10 @@
41  SHELL=/bin/bash
42  SYSDIR=../../../../system/python
43  
44 -ifeq (@USE_PYTHON2_6@,1)
45 +ifeq (@USE_PYTHON2_7@,1)
46 +    PYVERSION=python2.7
47 +    SO=python27-$(ARCH).so
48 +else ifeq (@USE_PYTHON2_6@,1)
49      PYVERSION=python2.6
50      SO=python26-$(ARCH).so
51  else ifeq (@USE_PYTHON2_5@,1)
52 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/action.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/action.h
53 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/action.h       2010-12-17 07:17:41.000000000 +0100
54 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/action.h    2010-12-22 21:09:50.242000077 +0100
55 @@ -23,7 +23,9 @@
56    #include "config.h"
57  #endif
58  #if (defined USE_EXTERNAL_PYTHON)
59 -  #if (defined HAVE_LIBPYTHON2_6)
60 +  #if (defined HAVE_LIBPYTHON2_7)
61 +    #include <python2.7/Python.h>
62 +  #elif (defined HAVE_LIBPYTHON2_6)
63      #include <python2.6/Python.h>
64    #elif (defined HAVE_LIBPYTHON2_5)
65      #include <python2.5/Python.h>
66 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp
67 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp      2010-12-17 07:17:41.000000000 +0100
68 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp   2010-12-22 21:09:50.243000078 +0100
69 @@ -23,7 +23,9 @@
70    #include "config.h"
71  #endif
72  #if (defined USE_EXTERNAL_PYTHON)
73 -  #if (defined HAVE_LIBPYTHON2_6)
74 +  #if (defined HAVE_LIBPYTHON2_7)
75 +    #include <python2.7/Python.h>
76 +  #elif (defined HAVE_LIBPYTHON2_6)
77      #include <python2.6/Python.h>
78    #elif (defined HAVE_LIBPYTHON2_5)
79      #include <python2.5/Python.h>
80 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp
81 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp   2010-12-17 07:17:41.000000000 +0100
82 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp        2010-12-22 21:09:50.243000078 +0100
83 @@ -23,7 +23,9 @@
84    #include "config.h"
85  #endif
86  #if (defined USE_EXTERNAL_PYTHON)
87 -  #if (defined HAVE_LIBPYTHON2_6)
88 +  #if (defined HAVE_LIBPYTHON2_7)
89 +    #include <python2.7/Python.h>
90 +  #elif (defined HAVE_LIBPYTHON2_6)
91      #include <python2.6/Python.h>
92    #elif (defined HAVE_LIBPYTHON2_5)
93      #include <python2.5/Python.h>
94 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp
95 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp   2010-12-17 07:17:41.000000000 +0100
96 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp        2010-12-22 21:09:50.244000078 +0100
97 @@ -23,7 +23,9 @@
98    #include "config.h"
99  #endif
100  #if (defined USE_EXTERNAL_PYTHON)
101 -  #if (defined HAVE_LIBPYTHON2_6)
102 +  #if (defined HAVE_LIBPYTHON2_7)
103 +    #include <python2.7/Python.h>
104 +  #elif (defined HAVE_LIBPYTHON2_6)
105      #include <python2.6/Python.h>
106    #elif (defined HAVE_LIBPYTHON2_5)
107      #include <python2.5/Python.h>
108 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp
109 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp       2010-12-17 07:17:41.000000000 +0100
110 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp    2010-12-22 21:09:50.244000078 +0100
111 @@ -23,7 +23,9 @@
112    #include "config.h"
113  #endif
114  #if (defined USE_EXTERNAL_PYTHON)
115 -  #if (defined HAVE_LIBPYTHON2_6)
116 +  #if (defined HAVE_LIBPYTHON2_7)
117 +    #include <python2.7/Python.h>
118 +  #elif (defined HAVE_LIBPYTHON2_6)
119      #include <python2.6/Python.h>
120    #elif (defined HAVE_LIBPYTHON2_5)
121      #include <python2.5/Python.h>
122 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/control.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/control.h
123 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/control.h      2010-12-17 07:17:41.000000000 +0100
124 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/control.h   2010-12-22 21:09:50.245000078 +0100
125 @@ -23,7 +23,9 @@
126    #include "config.h"
127  #endif
128  #if (defined USE_EXTERNAL_PYTHON)
129 -  #if (defined HAVE_LIBPYTHON2_6)
130 +  #if (defined HAVE_LIBPYTHON2_7)
131 +    #include <python2.7/Python.h>
132 +  #elif (defined HAVE_LIBPYTHON2_6)
133      #include <python2.6/Python.h>
134    #elif (defined HAVE_LIBPYTHON2_5)
135      #include <python2.5/Python.h>
136 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlimage.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlimage.cpp
137 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlimage.cpp       2010-12-17 07:17:41.000000000 +0100
138 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlimage.cpp    2010-12-22 21:09:50.245000078 +0100
139 @@ -23,7 +23,9 @@
140    #include "config.h"
141  #endif
142  #if (defined USE_EXTERNAL_PYTHON)
143 -  #if (defined HAVE_LIBPYTHON2_6)
144 +  #if (defined HAVE_LIBPYTHON2_7)
145 +    #include <python2.7/Python.h>
146 +  #elif (defined HAVE_LIBPYTHON2_6)
147      #include <python2.6/Python.h>
148    #elif (defined HAVE_LIBPYTHON2_5)
149      #include <python2.5/Python.h>
150 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllabel.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllabel.cpp
151 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllabel.cpp       2010-12-17 07:17:41.000000000 +0100
152 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllabel.cpp    2010-12-22 21:09:50.246000078 +0100
153 @@ -23,7 +23,9 @@
154    #include "config.h"
155  #endif
156  #if (defined USE_EXTERNAL_PYTHON)
157 -  #if (defined HAVE_LIBPYTHON2_6)
158 +  #if (defined HAVE_LIBPYTHON2_7)
159 +    #include <python2.7/Python.h>
160 +  #elif (defined HAVE_LIBPYTHON2_6)
161      #include <python2.6/Python.h>
162    #elif (defined HAVE_LIBPYTHON2_5)
163      #include <python2.5/Python.h>
164 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllist.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllist.cpp
165 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllist.cpp        2010-12-17 07:17:41.000000000 +0100
166 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllist.cpp     2010-12-22 21:09:50.247000078 +0100
167 @@ -23,7 +23,9 @@
168    #include "config.h"
169  #endif
170  #if (defined USE_EXTERNAL_PYTHON)
171 -  #if (defined HAVE_LIBPYTHON2_6)
172 +  #if (defined HAVE_LIBPYTHON2_7)
173 +    #include <python2.7/Python.h>
174 +  #elif (defined HAVE_LIBPYTHON2_6)
175      #include <python2.6/Python.h>
176    #elif (defined HAVE_LIBPYTHON2_5)
177      #include <python2.5/Python.h>
178 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp
179 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp    2010-12-17 07:17:41.000000000 +0100
180 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp 2010-12-22 21:09:50.247000078 +0100
181 @@ -23,7 +23,9 @@
182    #include "config.h"
183  #endif
184  #if (defined USE_EXTERNAL_PYTHON)
185 -  #if (defined HAVE_LIBPYTHON2_6)
186 +  #if (defined HAVE_LIBPYTHON2_7)
187 +    #include <python2.7/Python.h>
188 +  #elif (defined HAVE_LIBPYTHON2_6)
189      #include <python2.6/Python.h>
190    #elif (defined HAVE_LIBPYTHON2_5)
191      #include <python2.5/Python.h>
192 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp
193 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp 2010-12-17 07:17:41.000000000 +0100
194 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp      2010-12-22 21:09:50.248000078 +0100
195 @@ -23,7 +23,9 @@
196    #include "config.h"
197  #endif
198  #if (defined USE_EXTERNAL_PYTHON)
199 -  #if (defined HAVE_LIBPYTHON2_6)
200 +  #if (defined HAVE_LIBPYTHON2_7)
201 +    #include <python2.7/Python.h>
202 +  #elif (defined HAVE_LIBPYTHON2_6)
203      #include <python2.6/Python.h>
204    #elif (defined HAVE_LIBPYTHON2_5)
205      #include <python2.5/Python.h>
206 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlslider.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlslider.cpp
207 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlslider.cpp      2010-12-17 07:17:41.000000000 +0100
208 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlslider.cpp   2010-12-22 21:09:50.248000078 +0100
209 @@ -23,7 +23,9 @@
210    #include "config.h"
211  #endif
212  #if (defined USE_EXTERNAL_PYTHON)
213 -  #if (defined HAVE_LIBPYTHON2_6)
214 +  #if (defined HAVE_LIBPYTHON2_7)
215 +    #include <python2.7/Python.h>
216 +  #elif (defined HAVE_LIBPYTHON2_6)
217      #include <python2.6/Python.h>
218    #elif (defined HAVE_LIBPYTHON2_5)
219      #include <python2.5/Python.h>
220 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlspin.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlspin.cpp
221 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlspin.cpp        2010-12-17 07:17:41.000000000 +0100
222 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlspin.cpp     2010-12-22 21:09:50.249000078 +0100
223 @@ -23,7 +23,9 @@
224    #include "config.h"
225  #endif
226  #if (defined USE_EXTERNAL_PYTHON)
227 -  #if (defined HAVE_LIBPYTHON2_6)
228 +  #if (defined HAVE_LIBPYTHON2_7)
229 +    #include <python2.7/Python.h>
230 +  #elif (defined HAVE_LIBPYTHON2_6)
231      #include <python2.6/Python.h>
232    #elif (defined HAVE_LIBPYTHON2_5)
233      #include <python2.5/Python.h>
234 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp
235 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp     2010-12-17 07:17:41.000000000 +0100
236 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp  2010-12-22 21:09:50.249000078 +0100
237 @@ -23,7 +23,9 @@
238    #include "config.h"
239  #endif
240  #if (defined USE_EXTERNAL_PYTHON)
241 -  #if (defined HAVE_LIBPYTHON2_6)
242 +  #if (defined HAVE_LIBPYTHON2_7)
243 +    #include <python2.7/Python.h>
244 +  #elif (defined HAVE_LIBPYTHON2_6)
245      #include <python2.6/Python.h>
246    #elif (defined HAVE_LIBPYTHON2_5)
247      #include <python2.5/Python.h>
248 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.cpp
249 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.cpp     2010-12-17 07:17:41.000000000 +0100
250 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.cpp  2010-12-22 21:09:50.250000078 +0100
251 @@ -24,7 +24,9 @@
252  #endif
253  #include "dialog.h"
254  #if (defined USE_EXTERNAL_PYTHON)
255 -  #if (defined HAVE_LIBPYTHON2_6)
256 +  #if (defined HAVE_LIBPYTHON2_7)
257 +    #include <python2.7/Python.h>
258 +  #elif (defined HAVE_LIBPYTHON2_6)
259      #include <python2.6/Python.h>
260    #elif (defined HAVE_LIBPYTHON2_5)
261      #include <python2.5/Python.h>
262 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.h
263 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.h       2010-12-17 07:17:41.000000000 +0100
264 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.h    2010-12-22 21:09:50.250000078 +0100
265 @@ -23,7 +23,9 @@
266    #include "config.h"
267  #endif
268  #if (defined USE_EXTERNAL_PYTHON)
269 -  #if (defined HAVE_LIBPYTHON2_6)
270 +  #if (defined HAVE_LIBPYTHON2_7)
271 +    #include <python2.7/Python.h>
272 +  #elif (defined HAVE_LIBPYTHON2_6)
273      #include <python2.6/Python.h>
274    #elif (defined HAVE_LIBPYTHON2_5)
275      #include <python2.5/Python.h>
276 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h
277 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h      2010-12-17 07:17:41.000000000 +0100
278 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h   2010-12-22 21:09:50.251000078 +0100
279 @@ -26,7 +26,9 @@
280    #include "config.h"
281  #endif
282  #if (defined USE_EXTERNAL_PYTHON)
283 -  #if (defined HAVE_LIBPYTHON2_6)
284 +  #if (defined HAVE_LIBPYTHON2_7)
285 +    #include <python2.7/Python.h>
286 +  #elif (defined HAVE_LIBPYTHON2_6)
287      #include <python2.6/Python.h>
288    #elif (defined HAVE_LIBPYTHON2_5)
289      #include <python2.5/Python.h>
290 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagmusic.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagmusic.h
291 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagmusic.h 2010-12-17 07:17:41.000000000 +0100
292 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagmusic.h      2010-12-22 21:09:50.251000078 +0100
293 @@ -23,7 +23,9 @@
294    #include "config.h"
295  #endif
296  #if (defined USE_EXTERNAL_PYTHON)
297 -  #if (defined HAVE_LIBPYTHON2_6)
298 +  #if (defined HAVE_LIBPYTHON2_7)
299 +    #include <python2.7/Python.h>
300 +  #elif (defined HAVE_LIBPYTHON2_6)
301      #include <python2.6/Python.h>
302    #elif (defined HAVE_LIBPYTHON2_5)
303      #include <python2.5/Python.h>
304 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagvideo.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagvideo.h
305 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagvideo.h 2010-12-17 07:17:41.000000000 +0100
306 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagvideo.h      2010-12-22 21:09:50.251000078 +0100
307 @@ -23,7 +23,9 @@
308    #include "config.h"
309  #endif
310  #if (defined USE_EXTERNAL_PYTHON)
311 -  #if (defined HAVE_LIBPYTHON2_6)
312 +  #if (defined HAVE_LIBPYTHON2_7)
313 +    #include <python2.7/Python.h>
314 +  #elif (defined HAVE_LIBPYTHON2_6)
315      #include <python2.6/Python.h>
316    #elif (defined HAVE_LIBPYTHON2_5)
317      #include <python2.5/Python.h>
318 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/keyboard.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/keyboard.h
319 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/keyboard.h     2010-12-17 07:17:41.000000000 +0100
320 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/keyboard.h  2010-12-22 21:09:50.252000078 +0100
321 @@ -23,7 +23,9 @@
322    #include "config.h"
323  #endif
324  #if (defined USE_EXTERNAL_PYTHON)
325 -  #if (defined HAVE_LIBPYTHON2_6)
326 +  #if (defined HAVE_LIBPYTHON2_7)
327 +    #include <python2.7/Python.h>
328 +  #elif (defined HAVE_LIBPYTHON2_6)
329      #include <python2.6/Python.h>
330    #elif (defined HAVE_LIBPYTHON2_5)
331      #include <python2.5/Python.h>
332 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.cpp
333 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.cpp   2010-12-17 07:17:41.000000000 +0100
334 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.cpp        2010-12-22 21:09:50.252000078 +0100
335 @@ -23,7 +23,9 @@
336    #include "config.h"
337  #endif
338  #if (defined USE_EXTERNAL_PYTHON)
339 -  #if (defined HAVE_LIBPYTHON2_6)
340 +  #if (defined HAVE_LIBPYTHON2_7)
341 +    #include <python2.7/Python.h>
342 +  #elif (defined HAVE_LIBPYTHON2_6)
343      #include <python2.6/Python.h>
344    #elif (defined HAVE_LIBPYTHON2_5)
345      #include <python2.5/Python.h>
346 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.h
347 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.h     2010-12-17 07:17:41.000000000 +0100
348 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.h  2010-12-22 21:09:50.252000078 +0100
349 @@ -25,7 +25,9 @@
350    #include "config.h"
351  #endif
352  #if (defined USE_EXTERNAL_PYTHON)
353 -  #if (defined HAVE_LIBPYTHON2_6)
354 +  #if (defined HAVE_LIBPYTHON2_7)
355 +    #include <python2.7/Python.h>
356 +  #elif (defined HAVE_LIBPYTHON2_6)
357      #include <python2.6/Python.h>
358    #elif (defined HAVE_LIBPYTHON2_5)
359      #include <python2.5/Python.h>
360 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/player.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/player.h
361 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/player.h       2010-12-17 07:17:41.000000000 +0100
362 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/player.h    2010-12-22 21:09:50.252000078 +0100
363 @@ -23,7 +23,9 @@
364    #include "config.h"
365  #endif
366  #if (defined USE_EXTERNAL_PYTHON)
367 -  #if (defined HAVE_LIBPYTHON2_6)
368 +  #if (defined HAVE_LIBPYTHON2_7)
369 +    #include <python2.7/Python.h>
370 +  #elif (defined HAVE_LIBPYTHON2_6)
371      #include <python2.6/Python.h>
372    #elif (defined HAVE_LIBPYTHON2_5)
373      #include <python2.5/Python.h>
374 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp
375 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp 2010-12-17 07:17:41.000000000 +0100
376 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp      2010-12-22 21:09:50.252000078 +0100
377 @@ -26,7 +26,9 @@
378  #include "Util.h"
379  #include "pyplaylist.h"
380  #if (defined USE_EXTERNAL_PYTHON)
381 -  #if (defined HAVE_LIBPYTHON2_6)
382 +  #if (defined HAVE_LIBPYTHON2_7)
383 +    #include <python2.7/Python.h>
384 +  #elif (defined HAVE_LIBPYTHON2_6)
385      #include <python2.6/Python.h>
386    #elif (defined HAVE_LIBPYTHON2_5)
387      #include <python2.5/Python.h>
388 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.h
389 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.h   2010-12-17 07:17:41.000000000 +0100
390 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.h        2010-12-22 21:09:50.252000078 +0100
391 @@ -25,7 +25,9 @@
392    #include "config.h"
393  #endif
394  #if (defined USE_EXTERNAL_PYTHON)
395 -  #if (defined HAVE_LIBPYTHON2_6)
396 +  #if (defined HAVE_LIBPYTHON2_7)
397 +    #include <python2.7/Python.h>
398 +  #elif (defined HAVE_LIBPYTHON2_6)
399      #include <python2.6/Python.h>
400    #elif (defined HAVE_LIBPYTHON2_5)
401      #include <python2.5/Python.h>
402 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonAddon.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonAddon.h
403 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonAddon.h  2010-12-17 07:17:41.000000000 +0100
404 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonAddon.h       2010-12-22 21:09:50.253000078 +0100
405 @@ -25,7 +25,9 @@
406    #include "config.h"
407  #endif
408  #if (defined USE_EXTERNAL_PYTHON)
409 -  #if (defined HAVE_LIBPYTHON2_6)
410 +  #if (defined HAVE_LIBPYTHON2_7)
411 +    #include <python2.7/Python.h>
412 +  #elif (defined HAVE_LIBPYTHON2_6)
413      #include <python2.6/Python.h>
414    #elif (defined HAVE_LIBPYTHON2_5)
415      #include <python2.5/Python.h>
416 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h
417 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h 2010-12-17 07:17:41.000000000 +0100
418 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h      2010-12-22 21:09:50.253000078 +0100
419 @@ -25,7 +25,9 @@
420    #include "config.h"
421  #endif
422  #if (defined USE_EXTERNAL_PYTHON)
423 -  #if (defined HAVE_LIBPYTHON2_6)
424 +  #if (defined HAVE_LIBPYTHON2_7)    
425 +    #include <python2.7/Python.h>  
426 +  #elif (defined HAVE_LIBPYTHON2_6)
427      #include <python2.6/Python.h>
428    #elif (defined HAVE_LIBPYTHON2_5)
429      #include <python2.5/Python.h>
430 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyutil.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyutil.h
431 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyutil.h       2010-12-17 07:17:41.000000000 +0100
432 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyutil.h    2010-12-22 21:09:50.253000078 +0100
433 @@ -25,7 +25,9 @@
434    #include "config.h"
435  #endif
436  #if (defined USE_EXTERNAL_PYTHON)
437 -  #if (defined HAVE_LIBPYTHON2_6)
438 +  #if (defined HAVE_LIBPYTHON2_7)
439 +    #include <python2.7/Python.h>
440 +  #elif (defined HAVE_LIBPYTHON2_6)
441      #include <python2.6/Python.h>
442    #elif (defined HAVE_LIBPYTHON2_5)
443      #include <python2.5/Python.h>
444 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/window.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/window.h
445 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/window.h       2010-12-17 07:17:41.000000000 +0100
446 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/window.h    2010-12-22 21:09:50.253000078 +0100
447 @@ -23,7 +23,9 @@
448    #include "config.h"
449  #endif
450  #if (defined USE_EXTERNAL_PYTHON)
451 -  #if (defined HAVE_LIBPYTHON2_6)
452 +  #if (defined HAVE_LIBPYTHON2_7)
453 +    #include <python2.7/Python.h>
454 +  #elif (defined HAVE_LIBPYTHON2_6)
455      #include <python2.6/Python.h>
456    #elif (defined HAVE_LIBPYTHON2_5)
457      #include <python2.5/Python.h>
458 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.cpp
459 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.cpp     2010-12-17 07:17:41.000000000 +0100
460 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.cpp  2010-12-22 21:09:50.253000078 +0100
461 @@ -24,7 +24,9 @@
462  #endif
463  #include "winxml.h"
464  #if (defined USE_EXTERNAL_PYTHON)
465 -  #if (defined HAVE_LIBPYTHON2_6)
466 +  #if (defined HAVE_LIBPYTHON2_7)
467 +    #include <python2.7/Python.h>
468 +  #elif (defined HAVE_LIBPYTHON2_6)
469      #include <python2.6/Python.h>
470    #elif (defined HAVE_LIBPYTHON2_5)
471      #include <python2.5/Python.h>
472 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp
473 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp       2010-12-17 07:17:41.000000000 +0100
474 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp    2010-12-22 21:09:50.253000078 +0100
475 @@ -24,7 +24,9 @@
476  #endif
477  #include "winxml.h"
478  #if (defined USE_EXTERNAL_PYTHON)
479 -  #if (defined HAVE_LIBPYTHON2_6)
480 +  #if (defined HAVE_LIBPYTHON2_7)
481 +    #include <python2.7/Python.h>
482 +  #elif (defined HAVE_LIBPYTHON2_6)
483      #include <python2.6/Python.h>
484    #elif (defined HAVE_LIBPYTHON2_5)
485      #include <python2.5/Python.h>
486 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.h
487 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.h       2010-12-17 07:17:41.000000000 +0100
488 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.h    2010-12-22 21:09:50.253000078 +0100
489 @@ -23,7 +23,9 @@
490    #include "config.h"
491  #endif
492  #if (defined USE_EXTERNAL_PYTHON)
493 -  #if (defined HAVE_LIBPYTHON2_6)
494 +  #if (defined HAVE_LIBPYTHON2_7)
495 +    #include <python2.7/Python.h>
496 +  #elif (defined HAVE_LIBPYTHON2_6)
497      #include <python2.6/Python.h>
498    #elif (defined HAVE_LIBPYTHON2_5)
499      #include <python2.5/Python.h>
500 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp
501 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp    2010-12-17 07:17:41.000000000 +0100
502 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp 2010-12-22 21:16:16.284000079 +0100
503 @@ -1,112 +1,114 @@
504 -/*
505 - *      Copyright (C) 2005-2010 Team XBMC
506 - *      http://www.xbmc.org
507 - *
508 - *  This Program is free software; you can redistribute it and/or modify
509 - *  it under the terms of the GNU General Public License as published by
510 - *  the Free Software Foundation; either version 2, or (at your option)
511 - *  any later version.
512 - *
513 - *  This Program is distributed in the hope that it will be useful,
514 - *  but WITHOUT ANY WARRANTY; without even the implied warranty of
515 - *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
516 - *  GNU General Public License for more details.
517 - *
518 - *  You should have received a copy of the GNU General Public License
519 - *  along with XBMC; see the file COPYING.  If not, write to
520 - *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
521 - *  http://www.gnu.org/copyleft/gpl.html
522 - *
523 - */
524 -
525 -#if (defined HAVE_CONFIG_H) && (!defined WIN32)
526 -  #include "config.h"
527 -#endif
528 -#if (defined USE_EXTERNAL_PYTHON)
529 -  #if (defined HAVE_LIBPYTHON2_6)
530 -    #include <python2.6/Python.h>
531 -  #elif (defined HAVE_LIBPYTHON2_5)
532 -    #include <python2.5/Python.h>
533 -  #elif (defined HAVE_LIBPYTHON2_4)
534 -    #include <python2.4/Python.h>
535 -  #else
536 -    #error "Could not determine version of Python to use."
537 -  #endif
538 -#else
539 -  #include "lib/libPython/Python/Include/Python.h"
540 -#endif
541 -
542 -#include "PythonAddon.h"
543 -#include "pyutil.h"
544 -
545 -#ifndef __GNUC__
546 -#pragma code_seg("PY_TEXT")
547 -#pragma data_seg("PY_DATA")
548 -#pragma bss_seg("PY_BSS")
549 -#pragma const_seg("PY_RDATA")
550 -#endif
551 -
552 -#if defined(__GNUG__) && (__GNUC__>4) || (__GNUC__==4 && __GNUC_MINOR__>=2)
553 -#pragma GCC diagnostic ignored "-Wstrict-aliasing"
554 -#endif
555 -
556 -#ifdef __cplusplus
557 -extern "C" {
558 -#endif
559 -
560 -namespace PYXBMC
561 -{
562 -  /*****************************************************************
563 -   * start of xbmcaddon methods
564 -   *****************************************************************/
565 -  // put module methods here
566 -
567 -
568 -  // define c functions to be used in python here
569 -  PyMethodDef xbmcAddonMethods[] = {
570 -    {NULL, NULL, 0, NULL}
571 -  };
572 -  /*****************************************************************
573 -   * end of methods and python objects
574 -   *****************************************************************/
575 -
576 -  PyMODINIT_FUNC
577 -  InitAddonTypes(void)
578 -  {
579 -    initAddon_Type();
580 -
581 -    if (PyType_Ready(&Addon_Type) < 0)
582 -      return;
583 -  }
584 -
585 -  PyMODINIT_FUNC
586 -  DeinitAddonModule(void)
587 -  {
588 -    // no need to Py_DECREF our objects (see InitAddonModule()) as they were created only
589 -    // so that they could be added to the module, which steals a reference.
590 -  }
591 -
592 -  PyMODINIT_FUNC
593 -  InitAddonModule(void)
594 -  {
595 -    Py_INCREF(&Addon_Type);
596 -
597 -    // init general xbmcaddon modules
598 -    PyObject* pXbmcAddonModule;
599 -    pXbmcAddonModule = Py_InitModule((char*)"xbmcaddon", xbmcAddonMethods);
600 -    if (pXbmcAddonModule == NULL) return;
601 -
602 -    PyModule_AddObject(pXbmcAddonModule, (char*)"Addon", (PyObject*)&Addon_Type);
603 -
604 -    // constants
605 -    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__author__", (char*)PY_XBMC_AUTHOR);
606 -    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__date__", (char*)"1 May 2010");
607 -    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__version__", (char*)"1.0");
608 -    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__credits__", (char*)PY_XBMC_CREDITS);
609 -    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__platform__", (char*)PY_XBMC_PLATFORM);
610 -  }
611 -}
612 -
613 -#ifdef __cplusplus
614 -}
615 -#endif
616 +/*
617 + *      Copyright (C) 2005-2010 Team XBMC
618 + *      http://www.xbmc.org
619 + *
620 + *  This Program is free software; you can redistribute it and/or modify
621 + *  it under the terms of the GNU General Public License as published by
622 + *  the Free Software Foundation; either version 2, or (at your option)
623 + *  any later version.
624 + *
625 + *  This Program is distributed in the hope that it will be useful,
626 + *  but WITHOUT ANY WARRANTY; without even the implied warranty of
627 + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
628 + *  GNU General Public License for more details.
629 + *
630 + *  You should have received a copy of the GNU General Public License
631 + *  along with XBMC; see the file COPYING.  If not, write to
632 + *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
633 + *  http://www.gnu.org/copyleft/gpl.html
634 + *
635 + */
636 +
637 +#if (defined HAVE_CONFIG_H) && (!defined WIN32)
638 +  #include "config.h"
639 +#endif
640 +#if (defined USE_EXTERNAL_PYTHON)
641 +  #if (defined HAVE_LIBPYTHON2_7)
642 +    #include <python2.7/Python.h>
643 +  #elif (defined HAVE_LIBPYTHON2_6)
644 +    #include <python2.6/Python.h>
645 +  #elif (defined HAVE_LIBPYTHON2_5)
646 +    #include <python2.5/Python.h>
647 +  #elif (defined HAVE_LIBPYTHON2_4)
648 +    #include <python2.4/Python.h>
649 +  #else
650 +    #error "Could not determine version of Python to use."
651 +  #endif
652 +#else
653 +  #include "lib/libPython/Python/Include/Python.h"
654 +#endif
655 +
656 +#include "PythonAddon.h"
657 +#include "pyutil.h"
658 +
659 +#ifndef __GNUC__
660 +#pragma code_seg("PY_TEXT")
661 +#pragma data_seg("PY_DATA")
662 +#pragma bss_seg("PY_BSS")
663 +#pragma const_seg("PY_RDATA")
664 +#endif
665 +
666 +#if defined(__GNUG__) && (__GNUC__>4) || (__GNUC__==4 && __GNUC_MINOR__>=2)
667 +#pragma GCC diagnostic ignored "-Wstrict-aliasing"
668 +#endif
669 +
670 +#ifdef __cplusplus
671 +extern "C" {
672 +#endif
673 +
674 +namespace PYXBMC
675 +{
676 +  /*****************************************************************
677 +   * start of xbmcaddon methods
678 +   *****************************************************************/
679 +  // put module methods here
680 +
681 +
682 +  // define c functions to be used in python here
683 +  PyMethodDef xbmcAddonMethods[] = {
684 +    {NULL, NULL, 0, NULL}
685 +  };
686 +  /*****************************************************************
687 +   * end of methods and python objects
688 +   *****************************************************************/
689 +
690 +  PyMODINIT_FUNC
691 +  InitAddonTypes(void)
692 +  {
693 +    initAddon_Type();
694 +
695 +    if (PyType_Ready(&Addon_Type) < 0)
696 +      return;
697 +  }
698 +
699 +  PyMODINIT_FUNC
700 +  DeinitAddonModule(void)
701 +  {
702 +    // no need to Py_DECREF our objects (see InitAddonModule()) as they were created only
703 +    // so that they could be added to the module, which steals a reference.
704 +  }
705 +
706 +  PyMODINIT_FUNC
707 +  InitAddonModule(void)
708 +  {
709 +    Py_INCREF(&Addon_Type);
710 +
711 +    // init general xbmcaddon modules
712 +    PyObject* pXbmcAddonModule;
713 +    pXbmcAddonModule = Py_InitModule((char*)"xbmcaddon", xbmcAddonMethods);
714 +    if (pXbmcAddonModule == NULL) return;
715 +
716 +    PyModule_AddObject(pXbmcAddonModule, (char*)"Addon", (PyObject*)&Addon_Type);
717 +
718 +    // constants
719 +    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__author__", (char*)PY_XBMC_AUTHOR);
720 +    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__date__", (char*)"1 May 2010");
721 +    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__version__", (char*)"1.0");
722 +    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__credits__", (char*)PY_XBMC_CREDITS);
723 +    PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__platform__", (char*)PY_XBMC_PLATFORM);
724 +  }
725 +}
726 +
727 +#ifdef __cplusplus
728 +}
729 +#endif
730 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp
731 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp      2010-12-17 07:17:41.000000000 +0100
732 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp   2010-12-22 21:09:50.254000078 +0100
733 @@ -23,7 +23,10 @@
734    #include "config.h"
735  #endif
736  #if (defined USE_EXTERNAL_PYTHON)
737 -  #if (defined HAVE_LIBPYTHON2_6)
738 +  #if (defined HAVE_LIBPYTHON2_7)
739 +    #include <python2.7/Python.h>
740 +    #include <python2.7/structmember.h>
741 +  #elif (defined HAVE_LIBPYTHON2_6)
742      #include <python2.6/Python.h>
743      #include <python2.6/structmember.h>
744    #elif (defined HAVE_LIBPYTHON2_5)
745 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp
746 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp 2010-12-17 07:17:41.000000000 +0100
747 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp      2010-12-22 21:09:50.254000078 +0100
748 @@ -23,7 +23,9 @@
749    #include "config.h"
750  #endif
751  #if (defined USE_EXTERNAL_PYTHON)
752 -  #if (defined HAVE_LIBPYTHON2_6)
753 +  #if (defined HAVE_LIBPYTHON2_7)
754 +    #include <python2.7/Python.h>
755 +  #elif (defined HAVE_LIBPYTHON2_6)
756      #include <python2.6/Python.h>
757    #elif (defined HAVE_LIBPYTHON2_5)
758      #include <python2.5/Python.h>
759 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPython.cpp xbmc-10.0/xbmc/lib/libPython/XBPython.cpp
760 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPython.cpp      2010-12-17 07:17:41.000000000 +0100
761 +++ xbmc-10.0/xbmc/lib/libPython/XBPython.cpp   2010-12-22 21:09:50.254000078 +0100
762 @@ -24,7 +24,9 @@
763    #include "config.h"
764  #endif
765  #if (defined USE_EXTERNAL_PYTHON)
766 -  #if (defined HAVE_LIBPYTHON2_6)
767 +  #if (defined HAVE_LIBPYTHON2_7)
768 +    #include <python2.7/Python.h>
769 +  #elif (defined HAVE_LIBPYTHON2_6)
770      #include <python2.6/Python.h>
771    #elif (defined HAVE_LIBPYTHON2_5)
772      #include <python2.5/Python.h>
773 @@ -61,7 +63,9 @@
774  #define PYTHON_DLL "special://xbmcbin/system/python/python24-x86-osx.so"
775  #endif
776  #elif defined(__x86_64__)
777 -#if (defined HAVE_LIBPYTHON2_6)
778 +#if (defined HAVE_LIBPYTHON2_7)
779 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-x86_64-linux.so"
780 +#elif (defined HAVE_LIBPYTHON2_6)
781  #define PYTHON_DLL "special://xbmcbin/system/python/python26-x86_64-linux.so"
782  #elif (defined HAVE_LIBPYTHON2_5)
783  #define PYTHON_DLL "special://xbmcbin/system/python/python25-x86_64-linux.so"
784 @@ -69,7 +73,9 @@
785  #define PYTHON_DLL "special://xbmcbin/system/python/python24-x86_64-linux.so"
786  #endif
787  #elif defined(_POWERPC)
788 -#if (defined HAVE_LIBPYTHON2_6)
789 +#if (defined HAVE_LIBPYTHON2_7)
790 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-powerpc-linux.so"
791 +#elif (defined HAVE_LIBPYTHON2_6)
792  #define PYTHON_DLL "special://xbmcbin/system/python/python26-powerpc-linux.so"
793  #elif (defined HAVE_LIBPYTHON2_5)
794  #define PYTHON_DLL "special://xbmcbin/system/python/python25-powerpc-linux.so"
795 @@ -77,7 +83,9 @@
796  #define PYTHON_DLL "special://xbmcbin/system/python/python24-powerpc-linux.so"
797  #endif
798  #elif defined(_POWERPC64)
799 -#if (defined HAVE_LIBPYTHON2_6)
800 +#if (defined HAVE_LIBPYTHON2_7)
801 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-powerpc64-linux.so"
802 +#elif (defined HAVE_LIBPYTHON2_6)
803  #define PYTHON_DLL "special://xbmcbin/system/python/python26-powerpc64-linux.so"
804  #elif (defined HAVE_LIBPYTHON2_5)
805  #define PYTHON_DLL "special://xbmcbin/system/python/python25-powerpc64-linux.so"
806 @@ -85,7 +93,9 @@
807  #define PYTHON_DLL "special://xbmcbin/system/python/python24-powerpc64-linux.so"
808  #endif
809  #elif defined(_ARMEL)
810 -#if (defined HAVE_LIBPYTHON2_6)
811 +#if (defined HAVE_LIBPYTHON2_7)
812 +#define PYTHON_DLL "special://xbmc/system/python/python27-arm.so"
813 +#elif (defined HAVE_LIBPYTHON2_6)
814  #define PYTHON_DLL "special://xbmc/system/python/python26-arm.so"
815  #elif (defined HAVE_LIBPYTHON2_5)
816  #define PYTHON_DLL "special://xbmc/system/python/python25-arm.so"
817 @@ -93,7 +103,9 @@
818  #define PYTHON_DLL "special://xbmc/system/python/python24-arm.so"
819  #endif
820  #else /* !__x86_64__ && !__powerpc__ */
821 -#if (defined HAVE_LIBPYTHON2_6)
822 +#if (defined HAVE_LIBPYTHON2_7)
823 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-i486-linux.so"
824 +#elif (defined HAVE_LIBPYTHON2_6)
825  #define PYTHON_DLL "special://xbmcbin/system/python/python26-i486-linux.so"
826  #elif (defined HAVE_LIBPYTHON2_5)
827  #define PYTHON_DLL "special://xbmcbin/system/python/python25-i486-linux.so"
828 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDll.cpp xbmc-10.0/xbmc/lib/libPython/XBPythonDll.cpp
829 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDll.cpp   2010-12-17 07:17:41.000000000 +0100
830 +++ xbmc-10.0/xbmc/lib/libPython/XBPythonDll.cpp        2010-12-22 21:09:50.254000078 +0100
831 @@ -23,7 +23,9 @@
832    #include "config.h"
833  #endif
834  #if (defined USE_EXTERNAL_PYTHON)
835 -  #if (defined HAVE_LIBPYTHON2_6)
836 +  #if (defined HAVE_LIBPYTHON2_7)
837 +    #include <python2.7/pyconfig.h>
838 +  #elif (defined HAVE_LIBPYTHON2_6)
839      #include <python2.6/pyconfig.h>
840    #elif (defined HAVE_LIBPYTHON2_5)
841      #include <python2.5/pyconfig.h>
842 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDllFuncs.S xbmc-10.0/xbmc/lib/libPython/XBPythonDllFuncs.S
843 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDllFuncs.S        2010-12-17 07:17:41.000000000 +0100
844 +++ xbmc-10.0/xbmc/lib/libPython/XBPythonDllFuncs.S     2010-12-22 21:09:50.254000078 +0100
845 @@ -2,7 +2,9 @@
846    #include "config.h"
847  #endif
848  #if (defined USE_EXTERNAL_PYTHON)
849 -  #if (defined HAVE_LIBPYTHON2_6)
850 +  #if (defined HAVE_LIBPYTHON2_7)
851 +    #include <python2.7/pyconfig.h>
852 +  #elif (defined HAVE_LIBPYTHON2_6)
853      #include <python2.6/pyconfig.h>
854    #elif (defined HAVE_LIBPYTHON2_5)
855      #include <python2.5/pyconfig.h>
856 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.cpp xbmc-10.0/xbmc/lib/libPython/XBPyThread.cpp
857 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.cpp    2010-12-17 07:17:41.000000000 +0100
858 +++ xbmc-10.0/xbmc/lib/libPython/XBPyThread.cpp 2010-12-22 21:09:50.254000078 +0100
859 @@ -24,7 +24,10 @@
860    #include "config.h"
861  #endif
862  #if (defined USE_EXTERNAL_PYTHON)
863 -  #if (defined HAVE_LIBPYTHON2_6)
864 +  #if (defined HAVE_LIBPYTHON2_7)
865 +    #include <python2.7/Python.h>
866 +    #include <python2.7/osdefs.h>
867 +  #elif (defined HAVE_LIBPYTHON2_6)
868      #include <python2.6/Python.h>
869      #include <python2.6/osdefs.h>
870    #elif (defined HAVE_LIBPYTHON2_5)
871 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.h xbmc-10.0/xbmc/lib/libPython/XBPyThread.h
872 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.h      2010-12-17 07:17:41.000000000 +0100
873 +++ xbmc-10.0/xbmc/lib/libPython/XBPyThread.h   2010-12-22 21:09:50.255000078 +0100
874 @@ -26,7 +26,9 @@
875    #include "config.h"
876  #endif
877  #if (defined USE_EXTERNAL_PYTHON)
878 -  #if (defined HAVE_LIBPYTHON2_6)
879 +  #if (defined HAVE_LIBPYTHON2_7)
880 +    #include <python2.7/Python.h>
881 +  #elif (defined HAVE_LIBPYTHON2_6)
882      #include <python2.6/Python.h>
883    #elif (defined HAVE_LIBPYTHON2_5)
884      #include <python2.5/Python.h>
This page took 0.162154 seconds and 5 git commands to generate.