1 | # $Id: Makefile.kmk 16676 2009-02-11 16:16:56Z 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 |
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 |
|
---|
26 | if "$(KBUILD_TARGET)" == "linux" || defined(VBOX_ONLY_SDK)
|
---|
27 | #
|
---|
28 | # The samples
|
---|
29 | #
|
---|
30 | INSTALLS += XpComCSamples
|
---|
31 | XpComCSamples_MODE = a+r,u+rw
|
---|
32 | XpComCSamples_INST = \
|
---|
33 | $(INST_SDK)bindings/xpcom/cbinding/samples/
|
---|
34 | XpComCSamples_SOURCES = \
|
---|
35 | tstLinuxC.c \
|
---|
36 | makefile.tstLinuxC=>Makefile
|
---|
37 |
|
---|
38 | INSTALLS += XpComCHeaders
|
---|
39 | XpComCHeaders_MODE = a+r,u+rw
|
---|
40 | XpComCHeaders_INST = $(INST_SDK)bindings/xpcom/include/
|
---|
41 | XpComCHeaders_SOURCES = \
|
---|
42 | cbinding.h \
|
---|
43 | $(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h
|
---|
44 |
|
---|
45 | $$(XpComCHeaders_0_OUTDIR)/VirtualBox_CXPCOM.h: \
|
---|
46 | $(PATH_SUB_CURRENT)/xpcidl.xsl \
|
---|
47 | $(VBOX_XIDL_FILE) \
|
---|
48 | | $$(dir $$@)
|
---|
49 | $(VBOX_XSLTPROC) -o $@ $^
|
---|
50 |
|
---|
51 | endif # linux || SDK
|
---|
52 | ifndef 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 | VBoxXPCOMC.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 |
|
---|
81 | endif # ! VBOX_ONLY_SDK
|
---|
82 |
|
---|
83 | # generate rules.
|
---|
84 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
85 |
|
---|