VirtualBox

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

Last change on this file since 16776 was 16716, checked in by vboxsync, 16 years ago

cbinding: spelled out the dynamic glue code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 16716 2009-02-12 17:43:13Z 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 "$(KBUILD_TARGET)" == "linux" || 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 tstdlOpen.c \
37 makefile.tstLinuxC=>Makefile
38
39INSTALLS += XpComCHeaders
40XpComCHeaders_MODE = a+r,u+rw
41XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
42XpComCHeaders_SOURCES = \
43 cbinding.h \
44 $(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h
45
46$$(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h: \
47 $(PATH_SUB_CURRENT)/xpcidl.xsl \
48 $(VBOX_XIDL_FILE) \
49 | $$(dir $$@)
50 $(VBOX_XSLTPROC) -o $@ $^
51
52endif # linux || SDK
53ifndef VBOX_ONLY_SDK
54
55 #
56 # The C utility DLL
57 #
58 DLLS.linux += VBoxXPCOMC
59 VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
60 VBoxXPCOMC_DEFS = MOZ_UNICODE IN_VBOXXPCOMC
61 VBoxXPCOMC_SOURCES = \
62 VBoxXPCOMC.cpp
63
64 ifdef VBOX_WITH_TESTCASES
65 #
66 # The testcase (also in samples).
67 #
68 PROGRAMS.linux += tstXPCOMC
69 tstXPCOMC_TEMPLATE = VBOXR3
70 tstXPCOMC_DEFS = MOZ_UNICODE
71 tstXPCOMC_INCS = \
72 $(VBOX_PATH_SDK)/bindings/xpcom/include \
73 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub
74 tstXPCOMC_INTERMEDIATES = \
75 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_CXPCOM.h
76 tstXPCOMC_SOURCES = \
77 tstLinuxC.c
78 tstXPCOMC_LIBS = \
79 $(VBoxXPCOMC_1_TARGET)
80
81 #
82 # The testcase (also in samples).
83 #
84 PROGRAMS.linux += tstXPCOMCDynLink
85 tstXPCOMCDynLink_TEMPLATE = VBOXR3
86 tstXPCOMCDynLink_DEFS = MOZ_UNICODE
87 tstXPCOMCDynLink_INCS = \
88 $(VBOX_PATH_SDK)/bindings/xpcom/include \
89 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub
90 tstXPCOMCDynLink_INTERMEDIATES = \
91 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_CXPCOM.h
92 tstXPCOMCDynLink_SOURCES = \
93 tstdlOpen.c
94 endif
95
96endif # ! VBOX_ONLY_SDK
97
98# generate rules.
99include $(KBUILD_PATH)/subfooter.kmk
100
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