Changeset 99706 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 9, 2023 8:15:42 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r99701 r99706 63 63 VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT) 64 64 65 if def VBOX_ONLY_SDK65 if defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_ON_WINDOWS) 66 66 # HACK ALERT! VBoxCOM is skipped, but its output dir is referenced a lot. So, define it. 67 67 VBoxCOM_0_OUTDIR := $(call TARGET_PATH,VBoxCOM) … … 1362 1362 1363 1363 endif # !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) (the ifndef is far above) 1364 1365 1366 # 1367 # VBoxCOM - COM Abstraction Layer library 1368 # 1364 1369 ifndef VBOX_ONLY_SDK 1365 1366 1367 #1368 # VBoxCOM - COM Abstraction Layer library1369 #1370 1370 LIBRARIES += VBoxCOM 1371 VBoxCOM_TEMPLATE = VBoxMainLib 1372 VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \ 1373 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS) 1374 VBoxCOM_SOURCES = \ 1375 glue/com.cpp \ 1376 glue/VBoxLogRelCreate.cpp \ 1377 glue/GetVBoxUserHomeDirectory.cpp \ 1378 glue/initterm.cpp \ 1379 glue/string.cpp \ 1380 glue/string-base64.cpp \ 1381 glue/AutoLock.cpp \ 1382 glue/EventQueue.cpp \ 1383 glue/NativeEventQueue.cpp \ 1384 glue/ErrorInfo.cpp \ 1385 glue/errorprint.cpp 1386 VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \ 1387 include 1388 ifeq ($(KBUILD_TARGET),win) 1389 ifdef VBOX_WITH_MIDL_PROXY_STUB 1390 VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE 1391 endif 1392 ifdef VBOX_WITH_SDS 1393 VBoxCOM_DEFS.win += VBOX_WITH_SDS 1394 endif 1395 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500 1396 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510 1397 VBoxCOM_SOURCES += \ 1398 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c 1399 VBoxCOM_CLEAN = \ 1400 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \ 1401 $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \ 1402 $(VBoxCOM_0_OUTDIR)/dlldata.c \ 1403 $(VBoxCOM_0_OUTDIR)/VirtualBox.h \ 1404 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb 1405 VBoxCOM_CLEAN += \ 1406 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \ 1407 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \ 1408 $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \ 1409 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \ 1410 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb 1411 VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/ 1412 else # !win 1413 VBoxCOM_SOURCES += \ 1414 $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \ 1415 glue/xpcom/helpers.cpp 1416 endif # !win 1417 1418 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 1419 glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)" 1420 else 1421 glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\" 1422 endif 1371 endif 1372 VBoxCOM_TEMPLATE = VBoxMainLib 1373 VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \ 1374 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS) 1375 VBoxCOM_SOURCES = \ 1376 glue/com.cpp \ 1377 glue/VBoxLogRelCreate.cpp \ 1378 glue/GetVBoxUserHomeDirectory.cpp \ 1379 glue/initterm.cpp \ 1380 glue/string.cpp \ 1381 glue/string-base64.cpp \ 1382 glue/AutoLock.cpp \ 1383 glue/EventQueue.cpp \ 1384 glue/NativeEventQueue.cpp \ 1385 glue/ErrorInfo.cpp \ 1386 glue/errorprint.cpp 1387 VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \ 1388 include 1389 ifeq ($(KBUILD_TARGET),win) 1390 ifdef VBOX_WITH_MIDL_PROXY_STUB 1391 VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE 1392 endif 1393 ifdef VBOX_WITH_SDS 1394 VBoxCOM_DEFS.win += VBOX_WITH_SDS 1395 endif 1396 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500 1397 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510 1398 VBoxCOM_SOURCES += \ 1399 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c 1400 VBoxCOM_CLEAN = \ 1401 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \ 1402 $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \ 1403 $(VBoxCOM_0_OUTDIR)/dlldata.c \ 1404 $(VBoxCOM_0_OUTDIR)/VirtualBox.h \ 1405 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb 1406 VBoxCOM_CLEAN += \ 1407 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \ 1408 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \ 1409 $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \ 1410 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \ 1411 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb 1412 VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/ 1413 else # !win 1414 VBoxCOM_SOURCES += \ 1415 $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \ 1416 glue/xpcom/helpers.cpp 1417 endif # !win 1418 1419 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 1420 glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)" 1421 else 1422 glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\" 1423 endif 1424 1425 # A couple of tricks to define VBoxCOM_0_OUTDIR for SDK builds and mkdir rule. 1426 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxCOM) 1427 BLDDIRS += $(VBoxCOM_0_OUTDIR) 1428 1429 1430 ifndef VBOX_ONLY_SDK 1423 1431 1424 1432 # 32-bit version of VBoxCOM. … … 1451 1459 USES += qt5 1452 1460 endif 1453 1454 1461 1455 1462 endif # !VBOX_ONLY_SDK
Note:
See TracChangeset
for help on using the changeset viewer.