VirtualBox

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

Last change on this file since 16483 was 16483, checked in by vboxsync, 16 years ago
  • Renamed tstLinuxC.h to cbinding.h
  • added doxygen @file tags and description
  • added copyright notice boilerplate
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 16483 2009-02-03 10:52:11Z 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 cbinding.h \
37 makefile.tstLinuxC=>Makefile
38
39INSTALLS += XpComCHeaders
40XpComCHeaders_MODE = a+r,u+rw
41XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
42XpComCHeaders_SOURCES = \
43 $(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h
44
45$$(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h: \
46 $(PATH_SUB_CURRENT)/xpcidl.xsl \
47 $(PATH_SUB_CURRENT)/../idl/VirtualBox.xidl \
48 | $$(dir $$@)
49 $(VBOX_XSLTPROC) -o $@ $^
50
51endif # linux || SDK
52ifndef VBOX_ONLY_SDK
53
54 #
55 # The C utility DLL
56 #
57 DLLS.linux += VBoxXPCOMC
58 VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
59 VBoxXPCOMC_DEFS = MOZ_UNICODE IN_VBOXXPCOMC
60 VBoxXPCOMC_SOURCES = \
61 libXPCOMtoC.cpp
62
63 ifdef VBOX_WITH_TESTCASES
64 #
65 # The testcase (also in samples).
66 #
67 PROGRAMS.linux += tstXPCOMC
68 tstXPCOMC_TEMPLATE = VBOXR3
69 tstXPCOMC_DEFS = MOZ_UNICODE
70 tstXPCOMC_INCS = \
71 $(VBOX_PATH_SDK)/bindings/xpcom/include \
72 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub
73 tstXPCOMC_INTERMEDIATES = \
74 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_CXPCOM.h
75 tstXPCOMC_SOURCES = \
76 tstLinuxC.c
77 tstXPCOMC_LIBS = \
78 $(VBoxXPCOMC_1_TARGET)
79 endif
80
81endif # ! VBOX_ONLY_SDK
82
83# generate rules.
84include $(KBUILD_PATH)/subfooter.kmk
85
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