Makefile.kmk revision e64031e20c39650a7bc902a3e1aba613b9415dee
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# Sub-Makefile for the VBox C Binding.
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# Copyright (C) 2009 Oracle Corporation
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# available from http://www.virtualbox.org. This file is free software;
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# you can redistribute it and/or modify it under the terms of the GNU
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# General Public License (GPL) as published by the Free Software
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncSUB_DEPTH = ../../../..
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
033efef0382cea80df31360b44deb8ecf0a32797vboxsyncif defined(VBOX_WITH_XPCOM) || defined(VBOX_ONLY_SDK)
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# The samples
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncINSTALLS += XpComCSamples
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCSamples_MODE = a+r,u+rw
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCSamples_INST = \
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCSamples_SOURCES = \
1c7fb1d12c92bbfa073ed7dfd79b983850e15912vboxsyncINSTALLS += XpComCGlue
1c7fb1d12c92bbfa073ed7dfd79b983850e15912vboxsyncXpComCGlue_MODE = a+r,u+rw
1c7fb1d12c92bbfa073ed7dfd79b983850e15912vboxsyncXpComCGlue_INST = \
1c7fb1d12c92bbfa073ed7dfd79b983850e15912vboxsyncXpComCGlue_SOURCES = \
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncINSTALLS += XpComCHeaders
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCHeaders_MODE = a+r,u+rw
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncXpComCHeaders_SOURCES = \
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_1.h
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_1.h: \
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync $(PATH_SUB_CURRENT)/xpcidl.xsl \
33b5e655c06292a07370c8cf4207da691806a7e4vboxsync $(VBOX_XIDL_FILE) \
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync | $$(dir $$@)
b14adf99ecd1c5a015bf38d3f84116b489db21d7vboxsync $(call MSG_TOOL,xsltproc,XpComCHeaders,$<,$@)
b14adf99ecd1c5a015bf38d3f84116b489db21d7vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $@ $^
033efef0382cea80df31360b44deb8ecf0a32797vboxsyncendif # VBOX_WITH_XPCOM || SDK
033efef0382cea80df31360b44deb8ecf0a32797vboxsyncif !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_XPCOM)
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync # The C utility DLL
3e8a029da170ccd46db1dedcba7034b38078a82avboxsync ifdef VBOX_WITH_XPCOM
3e8a029da170ccd46db1dedcba7034b38078a82avboxsync DLLS += VBoxXPCOMC
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
9446711dd04e377f0de8160e1a191ad33d2032f1vboxsync VBoxXPCOMC_DEFS = IN_VBOXXPCOMC
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync VBoxXPCOMC_SOURCES = \
033efef0382cea80df31360b44deb8ecf0a32797vboxsync VBoxXPCOMC_INTERMEDIATES = \
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
a251e09c45654264f660f69396b08b38e813efb9vboxsync # The C glue library.
033efef0382cea80df31360b44deb8ecf0a32797vboxsync LIBRARIES += VBoxXPCOMCGlue
a251e09c45654264f660f69396b08b38e813efb9vboxsync VBoxXPCOMCGlue_TEMPLATE = VBOXMAINEXE
9446711dd04e377f0de8160e1a191ad33d2032f1vboxsync VBoxXPCOMCGlue_DEFS = IN_VBOXXPCOMC
a251e09c45654264f660f69396b08b38e813efb9vboxsync VBoxXPCOMCGlue_SOURCES = \
69651be3de19a25c92bceeb0d7d947f46cdd7bbcvboxsync VBoxXPCOMCGlue_INTERMEDIATES = \
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
033efef0382cea80df31360b44deb8ecf0a32797vboxsync if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin"
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync # The testcase (also in samples).
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync # C testcase using the dynamic glue.
033efef0382cea80df31360b44deb8ecf0a32797vboxsync PROGRAMS += tstXPCOMCGlue
033efef0382cea80df31360b44deb8ecf0a32797vboxsync tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync tstXPCOMCGlue_INCS = \
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync tstXPCOMCGlue_INTERMEDIATES = \
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync tstXPCOMCGlue_SOURCES = \
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync tstXPCOMCGlue_LIBS = \
4c6a62982e10f932ad80cd99f45f244e1b349273vboxsync $(VBoxXPCOMCGlue_1_TARGET)
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync ifeq (disabled,1)
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync # The callback testcase.
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync PROGRAMS += tstXPCOMCCall
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync tstXPCOMCCall_TEMPLATE = VBOXR3EXE
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync tstXPCOMCCall_INCS = \
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync tstXPCOMCCall_INTERMEDIATES = \
d5394fe0f23c68000abf1ad12fe03e0a7b119685vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync tstXPCOMCCall_SOURCES = \
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync tstXPCOMCCall_LIBS = \
9b9b7f751bf12c7b6469a455f7fc9207238e7dd8vboxsync $(VBoxXPCOMCGlue_1_TARGET)
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncendif # ! VBOX_ONLY_SDK
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsync# generate rules.
659ccabad889fa6a1851dd1e34a5acce0daff787vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk