VirtualBox

Changeset 31021 in vbox


Ignore:
Timestamp:
Jul 22, 2010 7:25:17 PM (15 years ago)
Author:
vboxsync
Message:

Config.kmk: Detect VBOX_JAVA_HOME for gentoo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r30991 r31021  
    472472endif
    473473# Use XPIDL instead of XSLT stylesheet
    474 VBOX_WITH_JAVA_SUPPORT_IN_XPIDL ?= 
     474VBOX_WITH_JAVA_SUPPORT_IN_XPIDL ?=
    475475# Build against multiple Python versions present in the system
    476476VBOX_WITH_MULTIVERSION_PYTHON ?= 1
     
    43274327VBOX_XIDL_FILE         = $(PATH_OUT)/obj/VirtualBox_stripped.xidl
    43284328
    4329 # Java stuff, move to tools eventually
     4329# Java stuff.
    43304330ifeq ($(KBUILD_TARGET), darwin)
    43314331 VBOX_JAVA_HOME = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
     
    43384338else
    43394339
    4340  ifeq ($(KBUILD_TARGET), linux)
    4341   ifeq ($(origin VBOX_JAVA_HOME), undefined)
    4342    VBOX_JAVA_HOME := $(firstword $(wildcard $(PATH_DEVTOOLS)/linux.x86/jdk1.6.0_21) /usr/lib/jvm/java-6-sun)
     4340 ifeq ($(KBUILD_TARGET),linux)
     4341  ifeq ($(origin VBOX_JAVA_HOME),undefined)
     4342   # Add correct detection for you distro after the /usr/../java-6-sun line.
     4343   VBOX_JAVA_HOME := $(firstword $(wildcard \
     4344        $(PATH_DEVTOOLS)/linux.x86/jdk1.6.0_21 \
     4345        /usr/lib/jvm/java-6-sun  \
     4346        \
     4347        /usr/lib/jvm/sun-jdk-1.6 \
     4348        ) /usr/lib/jvm/java-6-sun)
    43434349  endif
    43444350 endif
    43454351
    4346  ifeq ($(KBUILD_TARGET), solaris)
     4352 ifeq ($(KBUILD_TARGET),solaris)
    43474353  # VBOX_JAVA_HOME ?= /usr/jdk/jdk1.6.0
    43484354  VBOX_JAVA_HOME ?= /usr/java
    43494355 endif
    43504356
    4351  ifeq ($(KBUILD_TARGET), win)
     4357 ifeq ($(KBUILD_TARGET),win)
    43524358  VBOX_JAVA_HOME ?= c:/jdk
    43534359 endif
     
    43594365 # correct for targets we care about
    43604366 VBOX_MD_OS = $(KBUILD_TARGET)
    4361  VBOX_JAVA_INC  = $(VBOX_JAVA_HOME)/include               \
    4362                   $(VBOX_JAVA_HOME)/include/$(VBOX_MD_OS)
     4367 VBOX_JAVA_INC  = \
     4368        $(VBOX_JAVA_HOME)/include \
     4369        $(VBOX_JAVA_HOME)/include/$(VBOX_MD_OS)
    43634370endif
    43644371
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette