VirtualBox

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

Last change on this file since 17871 was 17793, checked in by vboxsync, 16 years ago

Cbinding: changed the header filename to be consistent throughout.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 17793 2009-03-13 09:29:32Z vboxsync $
2## @file
3# Sub-Makefile for the VBox C Binding.
4#
5
6#
7# Copyright (C) 2009 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25
26if defined(VBOX_WITH_XPCOM) || defined(VBOX_ONLY_SDK)
27#
28# The samples
29#
30INSTALLS += XpComCSamples
31XpComCSamples_MODE = a+r,u+rw
32XpComCSamples_INST = \
33 $(INST_SDK)bindings/xpcom/cbinding/samples/
34XpComCSamples_SOURCES = \
35 tstLinuxC.c \
36 tstXPCOMCGlue.c \
37 makefile.tstLinuxC=>Makefile
38
39INSTALLS += XpComCGlue
40XpComCGlue_MODE = a+r,u+rw
41XpComCGlue_INST = \
42 $(INST_SDK)bindings/xpcom/cbinding/
43XpComCGlue_SOURCES = \
44 VBoxXPCOMCGlue.c \
45 VBoxXPCOMCGlue.h
46
47INSTALLS += XpComCHeaders
48XpComCHeaders_MODE = a+r,u+rw
49XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
50XpComCHeaders_SOURCES = \
51 $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v2_2.h
52
53$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v2_2.h: \
54 $(PATH_SUB_CURRENT)/xpcidl.xsl \
55 $(VBOX_XIDL_FILE) \
56 | $$(dir $$@)
57 $(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_v2_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_v2_2.h
85
86 if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin"
87 #
88 # The testcase (also in samples).
89 #
90 PROGRAMS += tstXPCOMC
91 tstXPCOMC_TEMPLATE = VBOXR3EXE
92 tstXPCOMC_INCS = \
93 $(VBOX_PATH_SDK)/bindings/xpcom/include
94 tstXPCOMC_INTERMEDIATES = \
95 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v2_2.h
96 tstXPCOMC_SOURCES = \
97 tstLinuxC.c
98 tstXPCOMC_LIBS = \
99 $(VBoxXPCOMC_1_TARGET)
100
101 #
102 # C testcase using the dynamic glue.
103 #
104 PROGRAMS += tstXPCOMCGlue
105 tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
106 tstXPCOMCGlue_INCS = \
107 $(VBOX_PATH_SDK)/bindings/xpcom/include
108 tstXPCOMCGlue_INTERMEDIATES = \
109 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v2_2.h
110 tstXPCOMCGlue_SOURCES = \
111 tstXPCOMCGlue.c
112 tstXPCOMCGlue_LIBS = \
113 $(VBoxXPCOMCGlue_1_TARGET)
114
115 endif
116
117endif # ! VBOX_ONLY_SDK
118
119# generate rules.
120include $(KBUILD_PATH)/subfooter.kmk
121
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