597 endif 598 MOZILLA_HEADERS_PATH:=$(call AltCheckSpaces,MOZILLA_HEADERS_PATH) 599 MOZILLA_HEADERS_PATH:=$(call AltCheckValue,MOZILLA_HEADERS_PATH) 600 601 # CUPS_HEADERS_PATH: path to Cups headers files for Unix printing 602 ifneq ($(PLATFORM), windows) 603 JDK_CUPS_HEADERS_PATH=$(JDK_DEVTOOLS_DIR)/share/cups/include 604 ifdef ALT_CUPS_HEADERS_PATH 605 CUPS_HEADERS_PATH:=$(call FullPath,$(ALT_CUPS_HEADERS_PATH)) 606 CUPS_HEADERS_PATH:=$(call AltCheckValue,CUPS_HEADERS_PATH) 607 else 608 CUPS_HEADERS_PATH:= \ 609 $(shell if [ -d "$(JDK_CUPS_HEADERS_PATH)" ]; then \ 610 echo "$(JDK_CUPS_HEADERS_PATH)"; \ 611 else \ 612 echo "$(_CUPS_HEADERS_PATH)";\ 613 fi) 614 endif 615 endif 616 617 # Utilities ant 618 ifeq ($(PLATFORM), windows) 619 ifeq ($(ANT_HOME),) 620 ANT_HOME := $(call DirExists,$(JDK_DEVTOOLS_DIR)/share/ant/latest,,) 621 endif 622 endif 623 624 # There are few problems with ant we need to workaround: 625 # 1) ant is using temporary directory java.io.tmpdir 626 # However, this directory is not unique enough and two separate ant processes 627 # can easily end up using the exact same temp directory. This may lead to weird build failures 628 # To workaround this we will define tmp dir explicitly 629 # 2) ant attempts to detect JDK location based on java.exe location 630 # This is fragile as developer may have JRE first on the PATH. 631 # To workaround this we will specify JAVA_HOME explicitly 632 633 ANT_TMPDIR = $(ABS_OUTPUTDIR)/tmp 634 ANT_WORKAROUNDS = ANT_OPTS=-Djava.io.tmpdir='$(ANT_TMPDIR)' JAVA_HOME='$(BOOTDIR)' 635 636 ifeq ($(ANT_HOME),) | 597 endif 598 MOZILLA_HEADERS_PATH:=$(call AltCheckSpaces,MOZILLA_HEADERS_PATH) 599 MOZILLA_HEADERS_PATH:=$(call AltCheckValue,MOZILLA_HEADERS_PATH) 600 601 # CUPS_HEADERS_PATH: path to Cups headers files for Unix printing 602 ifneq ($(PLATFORM), windows) 603 JDK_CUPS_HEADERS_PATH=$(JDK_DEVTOOLS_DIR)/share/cups/include 604 ifdef ALT_CUPS_HEADERS_PATH 605 CUPS_HEADERS_PATH:=$(call FullPath,$(ALT_CUPS_HEADERS_PATH)) 606 CUPS_HEADERS_PATH:=$(call AltCheckValue,CUPS_HEADERS_PATH) 607 else 608 CUPS_HEADERS_PATH:= \ 609 $(shell if [ -d "$(JDK_CUPS_HEADERS_PATH)" ]; then \ 610 echo "$(JDK_CUPS_HEADERS_PATH)"; \ 611 else \ 612 echo "$(_CUPS_HEADERS_PATH)";\ 613 fi) 614 endif 615 endif 616 617 # BDB_HEADERS_PATH: path to libdb headers files for PersistentTreeMap 618 ifdef USE_SYSTEM_BDB 619 ifneq ($(PLATFORM), windows) 620 ifdef ALT_BDB_HEADERS_PATH 621 BDB_HEADERS_PATH:=$(call FullPath,$(ALT_BDB_HEADERS_PATH)) 622 BDB_HEADERS_PATH:=$(call AltCheckValue,BDB_HEADERS_PATH) 623 else 624 BDB_HEADERS_PATH="$(_BDB_HEADERS_PATH)" 625 endif 626 endif 627 endif 628 629 # Utilities ant 630 ifeq ($(PLATFORM), windows) 631 ifeq ($(ANT_HOME),) 632 ANT_HOME := $(call DirExists,$(JDK_DEVTOOLS_DIR)/share/ant/latest,,) 633 endif 634 endif 635 636 # There are few problems with ant we need to workaround: 637 # 1) ant is using temporary directory java.io.tmpdir 638 # However, this directory is not unique enough and two separate ant processes 639 # can easily end up using the exact same temp directory. This may lead to weird build failures 640 # To workaround this we will define tmp dir explicitly 641 # 2) ant attempts to detect JDK location based on java.exe location 642 # This is fragile as developer may have JRE first on the PATH. 643 # To workaround this we will specify JAVA_HOME explicitly 644 645 ANT_TMPDIR = $(ABS_OUTPUTDIR)/tmp 646 ANT_WORKAROUNDS = ANT_OPTS=-Djava.io.tmpdir='$(ANT_TMPDIR)' JAVA_HOME='$(BOOTDIR)' 647 648 ifeq ($(ANT_HOME),) |