VirtualBox

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

Last change on this file since 28823 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • 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 28800 2010-04-27 08:22:32Z 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 $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_1.h
50
51$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v3_1.h: \
52 $(PATH_SUB_CURRENT)/xpcidl.xsl \
53 $(VBOX_XIDL_FILE) \
54 | $$(dir $$@)
55 $(call MSG_TOOL,xsltproc,XpComCHeaders,$<,$@)
56 $(QUIET)$(VBOX_XSLTPROC) -o $@ $^
57
58endif # VBOX_WITH_XPCOM || SDK
59if !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_XPCOM)
60
61 #
62 # The C utility DLL
63 #
64 ifdef VBOX_WITH_XPCOM
65 DLLS += VBoxXPCOMC
66 VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
67 VBoxXPCOMC_DEFS = IN_VBOXXPCOMC
68 VBoxXPCOMC_SOURCES = \
69 VBoxXPCOMC.cpp
70 VBoxXPCOMC_INTERMEDIATES = \
71 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
72 endif
73
74 #
75 # The C glue library.
76 #
77 LIBRARIES += VBoxXPCOMCGlue
78 VBoxXPCOMCGlue_TEMPLATE = VBOXMAINEXE
79 VBoxXPCOMCGlue_DEFS = IN_VBOXXPCOMC
80 VBoxXPCOMCGlue_SOURCES = \
81 VBoxXPCOMCGlue.c
82 VBoxXPCOMCGlue_INTERMEDIATES = \
83 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
84
85 if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin"
86 #
87 # The testcase (also in samples).
88 # C testcase using the dynamic glue.
89 #
90 PROGRAMS += tstXPCOMCGlue
91 tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
92 tstXPCOMCGlue_INCS = \
93 $(VBOX_PATH_SDK)/bindings/xpcom/include
94 tstXPCOMCGlue_INTERMEDIATES = \
95 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
96 tstXPCOMCGlue_SOURCES = \
97 tstXPCOMCGlue.c
98 tstXPCOMCGlue_LIBS = \
99 $(VBoxXPCOMCGlue_1_TARGET)
100
101 ifeq (disabled,1)
102 #
103 # The callback testcase.
104 #
105 PROGRAMS += tstXPCOMCCall
106 tstXPCOMCCall_TEMPLATE = VBOXR3EXE
107 tstXPCOMCCall_INCS = \
108 $(VBOX_PATH_SDK)/bindings/xpcom/include
109 tstXPCOMCCall_INTERMEDIATES = \
110 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v3_1.h
111 tstXPCOMCCall_SOURCES = \
112 tstXPCOMCCall.c
113 tstXPCOMCCall_LIBS = \
114 $(VBoxXPCOMCGlue_1_TARGET)
115 endif
116 endif
117
118endif # ! VBOX_ONLY_SDK
119
120# generate rules.
121include $(KBUILD_PATH)/subfooter.kmk
122
Note: See TracBrowser for help on using the repository browser.

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