vbox的更動 59800 路徑 trunk/src/libs
- 時間撮記:
- 2016-2-24 下午02:42:07 (9 年 以前)
- 位置:
- trunk/src/libs/xpcom18a4/python
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/libs/xpcom18a4/python/Makefile.kmk
r59798 r59800 5 5 6 6 # 7 # Copyright (C) 2009-201 6Oracle Corporation7 # Copyright (C) 2009-2015 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 27 27 # 28 28 # List of supported Python versions, defining a number of 29 # VBOX_PYTHON[26|27|31|32|33|34|35|DEF]_[INC|LIB] variables 30 # which get picked up below. 29 # VBOX_PYTHON[25|26|27|DEF]_[INC|LIB] variables which get picked up below. 31 30 # 32 31 ifeq ($(KBUILD_TARGET),darwin) # Relatively predictable, don't script. 32 ifeq ($(KBUILD_TARGET_ARCH),x86) 33 VBOX_PYTHON25_INC = $(VBOX_PATH_MACOSX_SDK)/usr/include/python2.5 34 VBOX_PYTHON25_LIB = $(VBOX_PATH_MACOSX_SDK)/usr/lib/libpython2.5.dylib 35 VBOX_PYTHON25_LIB_X86 = $(VBOX_PYTHON25_LIB) 36 endif 33 37 if !defined(VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_6) \ 34 38 && ( !defined(VBOX_OSE) \ … … 45 49 VBOX_PYTHON27_LIB_X86 = $(VBOX_PYTHON27_LIB) 46 50 endif 47 # No Python 3.x yet as part of OSX versions including El Capitan, 10.11.48 51 49 52 else … … 112 115 113 116 117 ifdef VBOX_PYTHON23_INC 118 # 119 # Python 2.3 version 120 # 121 DLLS += VBoxPython2_3 122 VBoxPython2_3_EXTENDS = VBoxPythonBase 123 VBoxPython2_3_EXTENDS_BY = appending 124 VBoxPython2_3_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin",OSX104,) 125 VBoxPython2_3_INCS = $(VBOX_PYTHON23_INC) 126 VBoxPython2_3_LIBS = $(VBOX_PYTHON23_LIB) 127 128 ifdef VBOX_WITH_32_ON_64_MAIN_API 129 DLLS += VBoxPython2_3_x86 130 VBoxPython2_3_x86_EXTENDS = VBoxPythonBase_x86 131 VBoxPython2_3_x86_EXTENDS_BY = appending 132 VBoxPython2_3_x86_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin",OSX104,-x86) 133 VBoxPython2_3_x86_INCS = $(VBOX_PYTHON23_INC) 134 VBoxPython2_3_x86_LIBS = $(VBOX_PYTHON23_LIB_X86) 135 endif 136 endif 137 138 ifdef VBOX_PYTHON24_INC 139 # 140 # Python 2.4 version 141 # 142 DLLS += VBoxPython2_4 143 VBoxPython2_4_EXTENDS = VBoxPythonBase 144 VBoxPython2_4_EXTENDS_BY = appending 145 VBoxPython2_4_INCS = $(VBOX_PYTHON24_INC) 146 VBoxPython2_4_LIBS = $(VBOX_PYTHON24_LIB) 147 148 ifdef VBOX_WITH_32_ON_64_MAIN_API 149 DLLS += VBoxPython2_4_x86 150 VBoxPython2_4_x86_EXTENDS = VBoxPythonBase_x86 151 VBoxPython2_4_x86_EXTENDS_BY = appending 152 VBoxPython2_4_x86_INCS = $(VBOX_PYTHON24_INC) 153 VBoxPython2_4_x86_LIBS = $(VBOX_PYTHON24_LIB_X86) 154 endif 155 endif 156 157 ifdef VBOX_PYTHON25_INC 158 # 159 # Python 2.5 version 160 # 161 DLLS += VBoxPython2_5 162 VBoxPython2_5_EXTENDS = VBoxPythonBase 163 VBoxPython2_5_EXTENDS_BY = appending 164 VBoxPython2_5_INCS = $(VBOX_PYTHON25_INC) 165 VBoxPython2_5_LIBS = $(VBOX_PYTHON25_LIB) 166 167 ifdef VBOX_WITH_32_ON_64_MAIN_API 168 DLLS += VBoxPython2_5_x86 169 VBoxPython2_5_x86_EXTENDS = VBoxPythonBase_x86 170 VBoxPython2_5_x86_EXTENDS_BY = appending 171 VBoxPython2_5_x86_INCS = $(VBOX_PYTHON25_INC) 172 VBoxPython2_5_x86_LIBS = $(VBOX_PYTHON25_LIB_X86) 173 endif 174 endif 175 114 176 ifdef VBOX_PYTHON26_INC 115 177 # … … 151 213 VBoxPython2_7_x86_INCS = $(VBOX_PYTHON27_INC) 152 214 VBoxPython2_7_x86_LIBS = $(VBOX_PYTHON27_LIB_X86) 153 endif154 endif155 156 ifdef VBOX_PYTHON31_INC157 #158 # Python 3.1 version159 #160 DLLS += VBoxPython3_1161 VBoxPython3_1_EXTENDS = VBoxPythonBase162 VBoxPython3_1_EXTENDS_BY = appending163 VBoxPython3_1_TEMPLATE = XPCOM164 VBoxPython3_1_INCS = $(VBOX_PYTHON31_INC)165 VBoxPython3_1_LIBS = $(VBOX_PYTHON31_LIB)166 167 ifdef VBOX_WITH_32_ON_64_MAIN_API168 DLLS += VBoxPython3_1_x86169 VBoxPython3_1_x86_EXTENDS = VBoxPythonBase_x86170 VBoxPython3_1_x86_EXTENDS_BY = appending171 VBoxPython3_1_x86_TEMPLATE = XPCOM172 VBoxPython3_1_x86_INCS = $(VBOX_PYTHON31_INC)173 VBoxPython3_1_x86_LIBS = $(VBOX_PYTHON31_LIB_X86)174 endif175 endif176 177 ifdef VBOX_PYTHON32_INC178 #179 # Python 3.2 version180 #181 DLLS += VBoxPython3_2182 VBoxPython3_2_EXTENDS = VBoxPythonBase183 VBoxPython3_2_EXTENDS_BY = appending184 VBoxPython3_2_TEMPLATE = XPCOM185 VBoxPython3_2_INCS = $(VBOX_PYTHON32_INC)186 VBoxPython3_2_LIBS = $(VBOX_PYTHON32_LIB)187 188 ifdef VBOX_WITH_32_ON_64_MAIN_API189 DLLS += VBoxPython3_2_x86190 VBoxPython3_2_x86_EXTENDS = VBoxPythonBase_x86191 VBoxPython3_2_x86_EXTENDS_BY = appending192 VBoxPython3_2_x86_TEMPLATE = XPCOM193 VBoxPython3_2_x86_INCS = $(VBOX_PYTHON32_INC)194 VBoxPython3_2_x86_LIBS = $(VBOX_PYTHON32_LIB_X86)195 endif196 endif197 198 ifdef VBOX_PYTHON33_INC199 #200 # Python 3.3 version201 #202 DLLS += VBoxPython3_3203 VBoxPython3_3_EXTENDS = VBoxPythonBase204 VBoxPython3_3_EXTENDS_BY = appending205 VBoxPython3_3_TEMPLATE = XPCOM206 VBoxPython3_3_INCS = $(VBOX_PYTHON33_INC)207 VBoxPython3_3_LIBS = $(VBOX_PYTHON33_LIB)208 209 ifdef VBOX_WITH_32_ON_64_MAIN_API210 DLLS += VBoxPython3_3_x86211 VBoxPython3_3_x86_EXTENDS = VBoxPythonBase_x86212 VBoxPython3_3_x86_EXTENDS_BY = appending213 VBoxPython3_3_x86_TEMPLATE = XPCOM214 VBoxPython3_3_x86_INCS = $(VBOX_PYTHON33_INC)215 VBoxPython3_3_x86_LIBS = $(VBOX_PYTHON33_LIB_X86)216 endif217 endif218 219 ifdef VBOX_PYTHON34_INC220 #221 # Python 3.4 version222 #223 DLLS += VBoxPython3_4224 VBoxPython3_4_EXTENDS = VBoxPythonBase225 VBoxPython3_4_EXTENDS_BY = appending226 VBoxPython3_4_TEMPLATE = XPCOM227 VBoxPython3_4_INCS = $(VBOX_PYTHON34_INC)228 VBoxPython3_4_LIBS = $(VBOX_PYTHON34_LIB)229 230 ifdef VBOX_WITH_32_ON_64_MAIN_API231 DLLS += VBoxPython3_4_x86232 VBoxPython3_4_x86_EXTENDS = VBoxPythonBase_x86233 VBoxPython3_4_x86_EXTENDS_BY = appending234 VBoxPython3_4_x86_TEMPLATE = XPCOM235 VBoxPython3_4_x86_INCS = $(VBOX_PYTHON34_INC)236 VBoxPython3_4_x86_LIBS = $(VBOX_PYTHON34_LIB_X86)237 endif238 endif239 240 ifdef VBOX_PYTHON35_INC241 #242 # Python 3.5 version243 #244 DLLS += VBoxPython3_5245 VBoxPython3_5_EXTENDS = VBoxPythonBase246 VBoxPython3_5_EXTENDS_BY = appending247 VBoxPython3_5_TEMPLATE = XPCOM248 VBoxPython3_5_INCS = $(VBOX_PYTHON35_INC)249 VBoxPython3_5_LIBS = $(VBOX_PYTHON35_LIB)250 251 ifdef VBOX_WITH_32_ON_64_MAIN_API252 DLLS += VBoxPython3_5_x86253 VBoxPython3_5_x86_EXTENDS = VBoxPythonBase_x86254 VBoxPython3_5_x86_EXTENDS_BY = appending255 VBoxPython3_5_x86_TEMPLATE = XPCOM256 VBoxPython3_5_x86_INCS = $(VBOX_PYTHON35_INC)257 VBoxPython3_5_x86_LIBS = $(VBOX_PYTHON35_LIB_X86)258 215 endif 259 216 endif -
trunk/src/libs/xpcom18a4/python/gen_python_deps.py
r59798 r59800 2 2 3 3 """ 4 Copyright (C) 2009-201 6Oracle Corporation4 Copyright (C) 2009-2013 Oracle Corporation 5 5 6 6 This file is part of VirtualBox Open Source Edition (OSE), as … … 14 14 15 15 import os,sys 16 from distutils.version import StrictVersion17 16 18 versions = ["2. 6", "2.7", "3.1", "3.2", "3.3", "3.4", "3.5"]17 versions = ["2.3", "2.4", "2.5", "2.6", "2.7",] 19 18 prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"] 20 19 known = {} … … 42 41 43 42 def print_vars(vers, known, sep, bitness_magic): 44 print ("VBOX_PYTHON%s_INC=%s%s" %(vers, known[0], sep))43 print "VBOX_PYTHON%s_INC=%s%s" %(vers, known[0], sep) 45 44 if bitness_magic > 0: 46 print ("VBOX_PYTHON%s_LIB=%s%s" %(vers, known[2], sep))47 print ("VBOX_PYTHON%s_LIB_X86=%s%s" %(vers, known[1], sep))45 print "VBOX_PYTHON%s_LIB=%s%s" %(vers, known[2], sep) 46 print "VBOX_PYTHON%s_LIB_X86=%s%s" %(vers, known[1], sep) 48 47 else: 49 print ("VBOX_PYTHON%s_LIB=%s%s" %(vers, known[1], sep))48 print "VBOX_PYTHON%s_LIB=%s%s" %(vers, known[1], sep) 50 49 51 50 … … 92 91 93 92 for v in versions: 94 if StrictVersion(v) < StrictVersion('2.6'):95 continue96 93 for p in prefixes: 97 94 c = checkPair(p, v, dllpre, dllsuff, bitness_magic) … … 99 96 known[v] = c 100 97 break 101 keys = list(known.keys())98 keys = known.keys() 102 99 # we want default to be the lowest versioned Python 103 100 keys.sort()
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器