~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Main/glue/tests/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-17 23:23:09 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20111017232309-kzm6841lzk61ranj
Tags: 4.1.4-dfsg-1
* New upstream release.
  - Fixes missing icons when using pt_BR locale. (Closes: #507188)
  - Fixes guest additions download url. (Closes: #637349; LP: #840668)
* Refresh patches.
* Drop the vboxmouse x11 driver. The mouse integration is now completely
  handled by the kernel module.
* Restrict dh_pycentral to the virtualbox binary package.
* Merge changes from the Ubuntu package but use them only when built
  on Ubuntu:
  - Add an Apport hook.
  - Add vboxguest modalias to the package control field.
* Pass KBUILD_VERBOSE=2 to kmk.
* Add 36-fix-text-mode.patch to fix text mode when using the vboxvideo driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## @file
 
2
# Makefile for a sample/testcase using the 'glue' Java API bindings
 
3
 
 
4
#
 
5
# Copyright (C) 2010-2011 Oracle Corporation
 
6
#
 
7
# This file is part of VirtualBox Open Source Edition (OSE), as
 
8
# available from http://www.virtualbox.org. This file is free software;
 
9
# you can redistribute it and/or modify it under the terms of the GNU
 
10
# General Public License (GPL) as published by the Free Software
 
11
# Foundation, in version 2 as it comes in the "COPYING" file of the
 
12
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
 
13
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
 
14
#
 
15
 
 
16
#
 
17
# User serviceable parts: adjust the following lines appropriately
 
18
#
 
19
 
 
20
# The host OS: linux, solaris, win, darwin, freebsd
 
21
HOSTOS=linux
 
22
# Absolute (!) path to the VirtualBox install directory
 
23
VBOX_BIN = /opt/VirtualBox
 
24
# Path to the sdk directory of the unpacked VirtualBox SDK
 
25
VBOX_SDK = ../../..
 
26
# On Windows, if you want to use the COM API: install directory of Jacob lib
 
27
JACOB_DIR =
 
28
# Extra classpath entries needed for compiling/running the sample
 
29
CLASSPATH =
 
30
# Java compiler to use
 
31
JAVAC = javac
 
32
# Java VM to use
 
33
JAVA = java
 
34
 
 
35
 
 
36
 
37
# No changes should be necessary after this point.
 
38
#
 
39
 
 
40
ifeq ($(HOSTOS),win)
 
41
 JACOB_JAR=$(JACOB_DIR)/jacob.jar
 
42
 VBOX_JAR=$(VBOX_SDK)/bindings/mscom/java/vboxjmscom.jar
 
43
 SEP=\;
 
44
 JAVA_COM_ARGS += -Djava.library.path=$(JACOB_DIR)
 
45
 CLASSPATH += $(JACOB_JAR)$(SEP)
 
46
else
 
47
 VBOX_JAR=$(VBOX_SDK)/bindings/xpcom/java/vboxjxpcom.jar
 
48
 SEP=:
 
49
 JAVA_COM_ARGS += -Dvbox.home=$(VBOX_BIN)
 
50
endif
 
51
 
 
52
VBOX_JAR_WS=$(VBOX_SDK)/bindings/webservice/java/jax-ws/vboxjws.jar
 
53
 
 
54
 
 
55
all: ws/TestVBox.class com/TestVBox.class
 
56
 
 
57
test: ws/test-TestVBox com/test-TestVBox
 
58
 
 
59
com/TestVBox.class:
 
60
        @mkdir com 2>/dev/null || true
 
61
        $(JAVAC) -d com -cp $(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox.java
 
62
 
 
63
com/test-TestVBox: com/TestVBox.class
 
64
        $(JAVA) $(JAVA_COM_ARGS) -cp com$(SEP)$(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox
 
65
 
 
66
ws/TestVBox.class:
 
67
        @mkdir ws 2>/dev/null || true
 
68
        $(JAVAC) -d ws -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox.java
 
69
 
 
70
ws/test-TestVBox: ws/TestVBox.class
 
71
        $(JAVA) $(JAVA_WS_ARGS) -cp ws$(SEP)$(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox -w -url http://localhost:18083/