VirtualBox

source: vbox/trunk/src/VBox/Main/glue/tests/Makefile.kmk@ 29873

Last change on this file since 29873 was 29788, checked in by vboxsync, 15 years ago

Java bridge: MSCOM basics

  • Property svn:eol-style set to native
  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/VBox-3.0/src/libs/xpcom18a4/java/tests/Makefile58652
    /trunk/src/VBox/Devices/PC/src/libs/xpcom18a4/java/tests/Makefile58165-58219
    /trunk/src/VBox/src/libs/xpcom18a4/java/tests/Makefile58164
File size: 1.4 KB
Line 
1#
2# Copyright (C) 2010 Oracle Corporation
3#
4# This file is part of VirtualBox Open Source Edition (OSE), as
5# available from http://www.virtualbox.org. This file is free software;
6# you can redistribute it and/or modify it under the terms of the GNU
7# General Public License (GPL) as published by the Free Software
8# Foundation, in version 2 as it comes in the "COPYING" file of the
9# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
10# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
11#
12ifeq ($(KBUILD_HOST),darwin)
13 VBOX_BIN=/Applications/VirtualBox.app/Contents/MacOS
14 VBOX_SDK=$(VBOX_BIN)/sdk
15# JAVA_ARGS += -d32
16endif
17
18ifeq ($(KBUILD_HOST),linux)
19 VBOX_SDK=/home/nike/work/ws/out/linux.amd64/debug/bin/sdk
20 VBOX_BIN=/home/nike/work/ws/out/linux.amd64/debug/bin
21endif
22
23ifeq ($(KBUILD_HOST),win)
24 VBOX_SDK=e:/ws/out/win.amd64/debug/bin/sdk
25 VBOX_BIN=e:/ws/out/win.amd64/debug/bin
26 JACOB_DIR=e:/ws/src/libs/jacob-1.15-M3/
27 JACOB_JAR=$(JACOB_DIR)/jacob.jar
28 CLASSPATH += $(JACOB_JAR)$(SEP)
29 JAVA_ARGS += -Djava.library.path=$(JACOB_DIR)
30endif
31
32ifeq ($(KBUILD_HOST),win)
33 VBOX_JAR=$(VBOX_SDK)/bindings/mscom/java/vboxjmscom.jar
34 SEP=\;
35else
36 VBOX_JAR=$(VBOX_SDK)/bindings/xpcom/java/vboxjxpcom.jar
37 SEP=:
38endif
39
40JAVA_ARGS += -Dvbox.home=$(VBOX_BIN)
41CLASSPATH := $(CLASSPATH)$(VBOX_JAR)$(SEP).
42
43all: testvb
44
45testvb:
46 javac -cp $(VBOX_JAR) TestVBox.java
47 java $(JAVA_ARGS) -cp $(CLASSPATH) TestVBox
48
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