Changeset 11587 in vbox for trunk/src/libs
- Timestamp:
- Aug 22, 2008 9:42:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r11584 r11587 37 37 # should be a check whether VBoxXPCOM.so contains global C symbols (at least 38 38 # where the whitelisting of symbols via the map file is not used). 39 40 41 # Temporary disable everywhere, as there's no decent Python headers42 # installed on build servers43 #if1of ($(KBUILD_TARGET), linux)44 ifeq ($(VBOX_WITH_PYTHON),1)45 # Find most appropriate Python headers46 PYTHON_INCS=$(lastword $(sort $(wildcard /usr/include/python2.*/)))47 ifeq ($(wildcard $(PYTHON_INCS)/Python.h),)48 PYTHON_INCS=49 endif50 endif51 52 # build Python<->XPCOM bridge only if Python headers found53 ifneq ($(PYTHON_INCS),)54 # bridge for Python to invoke XPCOM55 XPCOM_PYMOD = VBox-xpcom-pymod56 endif57 39 58 40 # … … 280 262 VBox-xpcom-ipcdlock \ 281 263 VBox-xpcom-ipctransmgr \ 282 VBox-xpcom-ipctmgrcom 283 284 DLLS += \ 285 VBoxXPCOM \ 286 VBoxXPCOMIPCC \ 287 $(XPCOM_PYMOD) 288 289 # we put it here, as template it uses depends on VBoxRT, 264 VBox-xpcom-ipctmgrcom 265 266 DLLS += \ 267 VBoxXPCOM \ 268 VBoxXPCOMIPCC 269 270 # we put it here, as template it uses depends on VBoxRT, 290 271 # which may not be built yet 291 OTHERS += 272 OTHERS += \ 292 273 $(TARGET_VBox-xpcom-helper) 293 274 … … 1260 1241 1261 1242 1243 # 1262 1244 # DCONNECT client shared object 1245 # 1263 1246 VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC 1264 1247 VBoxXPCOMIPCC_NAME.os2 = VBoxIPCC … … 1290 1273 1291 1274 1275 # 1276 # DCONNECT daemon executable 1277 # 1278 VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE 1279 VBoxXPCOMIPCD_SOURCES = \ 1280 ipc/ipcd/daemon/src/ipcd.cpp \ 1281 ipc/ipcd/daemon/src/ipcClient.cpp \ 1282 ipc/ipcd/daemon/src/ipcModuleReg.cpp \ 1283 ipc/ipcd/daemon/src/ipcCommandModule.cpp 1284 ifeq ($(KBUILD_TARGET),win) 1285 VBoxXPCOMIPCD_SOURCES += \ 1286 ipc/ipcd/daemon/src/ipcdWin.cpp 1287 else 1288 VBoxXPCOMIPCD_SOURCES += \ 1289 ipc/ipcd/daemon/src/ipcdUnix.cpp 1290 endif 1291 1292 1293 # 1292 1294 # Helper for initialization of XPCOM 1295 # 1293 1296 VBox-xpcom-helper_TEMPLATE = VBOXMAINCLIENTDLL 1297 ## @todo why isn't this targetd called VBoxHlp and what is it good for anyway? it's not in any of the lists so it won't be processed or anything... 1294 1298 VBox-xpcom-helper_NAME = VBoxHlp 1295 1299 VBox-xpcom-helper_DEFS = … … 1297 1301 xpcom/helper/helper.cpp 1298 1302 1299 # Python Client Module 1303 1304 # 1305 # Python<->XPCOM bridge. 1306 # 1307 1308 # Find the Python headers for the Python<->XPCOM bridge if enabled. 1309 ifdef VBOX_WITH_PYTHON 1310 ifndef VBOX_PATH_PYTHON_INC 1311 VBOX_PATH_PYTHON_INC := $(patsubst %/Python.h,%, $(lastword $(sort $(wildcard \ 1312 /usr/include/python2.*/Python.h \ 1313 /usr/local/include/python2.*/Python.h \ 1314 )))) 1315 ifeq ($(VBOX_PATH_PYTHON_INC),) 1316 $(warning Unable to determin the python include directory (VBOX_PATH_PYTHON_INC).) 1317 endif 1318 endif 1319 DLLS +=VBox-xpcom-pymod 1320 endif 1321 1322 # Python Client Module. 1300 1323 PY_PATH = sdk/bindings/com/python/xpcom 1301 1324 PY_DEST = $(PATH_BIN)/$(PY_PATH) … … 1303 1326 1304 1327 VBox-xpcom-pymod_TEMPLATE = XPCOM 1328 ## @todo why isn't this target called VBoxPython? 1305 1329 VBox-xpcom-pymod_NAME = VBoxPython 1306 1330 VBox-xpcom-pymod_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM 1307 VBox-xpcom-pymod_INCS += $( PYTHON_INCS) python/src1331 VBox-xpcom-pymod_INCS += $(VBOX_PATH_PYTHON_INC) python/src 1308 1332 VBox-xpcom-pymod_SOURCES = \ 1309 1333 python/src/module/_xpcom.cpp \ … … 1329 1353 python/src/TypeObject.cpp \ 1330 1354 python/src/VariantUtils.cpp 1331 VBox-xpcom-pymod_LIBS = $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 1355 VBox-xpcom-pymod_LIBS = $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 1356 ## @todo rewrite this to an INSTALLS target, it's just copying. 1332 1357 VBox-xpcom-pymod_DEPS = \ 1333 1358 $(PY_DEST)/components.py \ … … 1361 1386 $(QUIET)$(CP) -f -- $< $@ 1362 1387 1363 1364 # DCONNECT daemon executable1365 VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE1366 VBoxXPCOMIPCD_SOURCES = \1367 ipc/ipcd/daemon/src/ipcd.cpp \1368 ipc/ipcd/daemon/src/ipcClient.cpp \1369 ipc/ipcd/daemon/src/ipcModuleReg.cpp \1370 ipc/ipcd/daemon/src/ipcCommandModule.cpp1371 ifeq ($(KBUILD_TARGET),win)1372 VBoxXPCOMIPCD_SOURCES += \1373 ipc/ipcd/daemon/src/ipcdWin.cpp1374 else1375 VBoxXPCOMIPCD_SOURCES += \1376 ipc/ipcd/daemon/src/ipcdUnix.cpp1377 endif1378 1388 1379 1389 #
Note:
See TracChangeset
for help on using the changeset viewer.