VirtualBox

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

Last change on this file since 18891 was 18137, checked in by vboxsync, 16 years ago

CBinding: removed the deprecated tstLinuxC testcase and made the functions static wherever possible in VBoxXPCOMC.cpp

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 18137 2009-03-23 13:22:03Z 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 tstXPCOMCGlue.c \
36 makefile.tstXPCOMCGlue=>Makefile
37
38INSTALLS += XpComCGlue
39XpComCGlue_MODE = a+r,u+rw
40XpComCGlue_INST = \
41 $(INST_SDK)bindings/xpcom/cbinding/
42XpComCGlue_SOURCES = \
43 VBoxXPCOMCGlue.c \
44 VBoxXPCOMCGlue.h
45
46INSTALLS += XpComCHeaders
47XpComCHeaders_MODE = a+r,u+rw
48XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
49XpComCHeaders_SOURCES = \
50 $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v2_2.h
51
52$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v2_2.h: \
53 $(PATH_SUB_CURRENT)/xpcidl.xsl \
54 $(VBOX_XIDL_FILE) \
55 | $$(dir $$@)
56 $(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_v2_2.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_v2_2.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_v2_2.h
96 tstXPCOMCGlue_SOURCES = \
97 tstXPCOMCGlue.c
98 tstXPCOMCGlue_LIBS = \
99 $(VBoxXPCOMCGlue_1_TARGET)
100
101 endif
102
103endif # ! VBOX_ONLY_SDK
104
105# generate rules.
106include $(KBUILD_PATH)/subfooter.kmk
107
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