1 # Selects a Java compiler.
4 # CUSTOM_JAVA_COMPILER -- "eclipse", "openjdk". or nothing for the system
8 # COMMON_JAVAC -- Java compiler command with common arguments
10 # Whatever compiler is on this system.
11 ifeq ($(BUILD_OS), windows)
12 COMMON_JAVAC := development/host/windows/prebuilt/javawrap.exe -J-Xmx256m \
13 -target 1.5 -Xmaxerrs 9999999
15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -Xmaxerrs 9999999
19 ifeq ($(CUSTOM_JAVA_COMPILER), eclipse)
20 COMMON_JAVAC := java -Xmx256m -jar prebuilt/common/ecj/ecj.jar -5 \
21 -maxProblems 9999999 -nowarn
22 $(info CUSTOM_JAVA_COMPILER=eclipse)
26 ifeq ($(CUSTOM_JAVA_COMPILER), openjdk)
27 # We set the VM options (like -Xmx) in the javac script.
28 COMMON_JAVAC := prebuilt/common/openjdk/bin/javac -target 1.5 \
30 $(info CUSTOM_JAVA_COMPILER=openjdk)
33 HOST_JAVAC ?= $(COMMON_JAVAC)
34 TARGET_JAVAC ?= $(COMMON_JAVAC)
36 #$(info HOST_JAVAC=$(HOST_JAVAC))
37 #$(info TARGET_JAVAC=$(TARGET_JAVAC))