VirtualBox

source: vbox/trunk/src/VBox/Main/cbinding/Makefile.kmk@ 31733

Last change on this file since 31733 was 29167, checked in by vboxsync, 15 years ago

Main/cbinding: add the bindings for 3.1 and generate the bindings for 3.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 29167 2010-05-06 15:58:14Z vboxsync $
2## @file
3# Sub-Makefile for the VBox C Binding.
4#
5
6#
7# Copyright (C) 2009 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22if defined(VBOX_WITH_XPCOM) || defined(VBOX_ONLY_SDK)
23#
24# The samples
25#
26INSTALLS += XpComCSamples
27XpComCSamples_MODE = a+r,u+rw
28XpComCSamples_INST = \
29 $(INST_SDK)bindings/xpcom/cbinding/samples/
30XpComCSamples_SOURCES = \
31 tstXPCOMCGlue.c \
32 tstXPCOMCCall.c \
33 makefile.tstXPCOMCGlue=>Makefile
34
35INSTALLS += XpComCGlue
36XpComCGlue_MODE = a+r,u+rw
37XpComCGlue_INST = \
38 $(INST_SDK)bindings/xpcom/cbinding/
39XpComCGlue_SOURCES = \
40 VBoxXPCOMCGlue.c \
41 VBoxXPCOMCGlue.h
42
43INSTALLS += XpComCHeaders
44XpComCHeaders_MODE = a+r,u+rw
45XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
46XpComCHeaders_SOURCES = \
47 VBoxCAPI_v2_2.h \
48 VBoxCAPI_v3_0.h \
49 VBoxCAPI_v3_1.h \
50 $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_2.h
51
52$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_2.h: \
53 $(PATH_SUB_CURRENT)/xpcidl.xsl \
54 $(VBOX_XIDL_FILE) \
55 | $$(dir $$@)
56 $(call MSG_TOOL,xsltproc,XpComCHeaders,$<,$@)
57 $(QUIET)$(VBOX_XSLTPROC) -o $@ $^
58
59endif # VBOX_WITH_XPCOM || SDK
60if !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_XPCOM)
61
62 #
63 # The C utility DLL
64 #
65 ifdef VBOX_WITH_XPCOM
66 DLLS += VBoxXPCOMC
67 VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
68 VBoxXPCOMC_DEFS = IN_VBOXXPCOMC
69 VBoxXPCOMC_SOURCES = \
70 VBoxXPCOMC.cpp
71 VBoxXPCOMC_INTERMEDIATES = \
72 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_2.h
73 endif
74
75 #
76 # The C glue library.
77 #
78 LIBRARIES += VBoxXPCOMCGlue
79 VBoxXPCOMCGlue_TEMPLATE = VBOXMAINEXE
80 VBoxXPCOMCGlue_DEFS = IN_VBOXXPCOMC
81 VBoxXPCOMCGlue_SOURCES = \
82 VBoxXPCOMCGlue.c
83 VBoxXPCOMCGlue_INTERMEDIATES = \
84 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_2.h
85
86 if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin"
87 #
88 # The testcase (also in samples).
89 # C testcase using the dynamic glue.
90 #
91 PROGRAMS += tstXPCOMCGlue
92 tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
93 tstXPCOMCGlue_INCS = \
94 $(VBOX_PATH_SDK)/bindings/xpcom/include
95 tstXPCOMCGlue_INTERMEDIATES = \
96 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_2.h
97 tstXPCOMCGlue_SOURCES = \
98 tstXPCOMCGlue.c
99 tstXPCOMCGlue_LIBS = \
100 $(VBoxXPCOMCGlue_1_TARGET)
101
102 ifeq (disabled,1)
103 #
104 # The callback testcase.
105 #
106 PROGRAMS += tstXPCOMCCall
107 tstXPCOMCCall_TEMPLATE = VBOXR3EXE
108 tstXPCOMCCall_INCS = \
109 $(VBOX_PATH_SDK)/bindings/xpcom/include
110 tstXPCOMCCall_INTERMEDIATES = \
111 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_2.h
112 tstXPCOMCCall_SOURCES = \
113 tstXPCOMCCall.c
114 tstXPCOMCCall_LIBS = \
115 $(VBoxXPCOMCGlue_1_TARGET)
116 endif
117 endif
118
119endif # ! VBOX_ONLY_SDK
120
121# generate rules.
122include $(KBUILD_PATH)/subfooter.kmk
123
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette