diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-02-22 23:08:43 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-02-22 23:08:43 +0000 |
commit | 8fc6264f581b84d5be3dc12055bbdc6e778593a0 (patch) | |
tree | a502aae4b79b3f8f93fa30dcd65a5d260ab1fe7a /src/VBox/Main/cbinding/Makefile.kmk | |
parent | 4b82aa82c29881531273a086ef28a7656756b470 (diff) | |
download | VirtualBox-svn-8fc6264f581b84d5be3dc12055bbdc6e778593a0.tar.gz |
Main/cbindings,/Config.kmk: Added VBoxCAPI-x86.dll/so/dylib for 32-bit apps. bugref:7675
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@98694 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Main/cbinding/Makefile.kmk')
-rw-r--r-- | src/VBox/Main/cbinding/Makefile.kmk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/VBox/Main/cbinding/Makefile.kmk b/src/VBox/Main/cbinding/Makefile.kmk index eda3f10eb60..228e09381eb 100644 --- a/src/VBox/Main/cbinding/Makefile.kmk +++ b/src/VBox/Main/cbinding/Makefile.kmk @@ -103,6 +103,18 @@ if !defined(VBOX_ONLY_SDK) $(CAPIHeaders_0_OUTDIR)/VBoxCAPI.h # + # The C API binding utility DLL, 32-bit variant for 64-bit hosts. + # + ifdef VBOX_WITH_32_ON_64_MAIN_API + DLLS += VBoxCAPI-x86 + VBoxCAPI-x86_EXTENDS := VBoxCAPI + VBoxCAPI-x86_TEMPLATE := VBoxMainClientDll-x86 + ifdef VBOX_WITH_XPCOM + VBoxCAPI-x86_INST := $(INST_BIN)VBoxCAPI-x86$(VBOX_SUFF_DLL) + endif + endif + + # # The C glue library. # LIBRARIES += VBoxCAPIGlue @@ -124,6 +136,15 @@ if !defined(VBOX_ONLY_SDK) $(VBOX_PATH_SDK)/bindings/c/glue/VBoxCAPIGlue.h \ $(VBOX_PATH_SDK)/bindings/c/include/VBoxCAPI_v$(VBOX_API_VERSION).h + + ifdef VBOX_WITH_32_ON_64_MAIN_API + # Same as above, but 32-bit version. + LIBRARIES += VBoxCAPIGlue-x86 + VBoxCAPIGlue-x86_EXTENDS := VBoxCAPIGlue + VBoxCAPIGlue-x86_BLD_TRG_ARCH := x86 + endif + + if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin" # # The testcase (also in samples). @@ -149,6 +170,15 @@ if !defined(VBOX_ONLY_SDK) tstCAPIGlue.c tstCAPIGlue_LIBS = \ $(VBoxCAPIGlue_1_TARGET) + + ifdef VBOX_WITH_32_ON_64_MAIN_API + # Same as above, but 32-bit version. + PROGRAMS += tstCAPIGlue-x86 + tstCAPIGlue-x86_EXTENDS := tstCAPIGlue + tstCAPIGlue-x86_TEMPLATE := VBoxR3TstExe-x86 + tstCAPIGlue-x86_BLD_TRG_ARCH := x86 + tstCAPIGlue-x86_LIBS = $(VBoxCAPIGlue-x86_1_TARGET) + endif endif endif # ! VBOX_ONLY_SDK |