makefiles/CompileJavaClasses.gmk

Print this page




 325         $(TOUCH) $@
 326 
 327 ##########################################################################################
 328 
 329 ifeq ($(OPENJDK_TARGET_OS),macosx)
 330 #
 331 # JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag.
 332 #   so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-(
 333 #
 334 $(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,\
 335      JAVAC:=$(JAVAC),\
 336      FLAGS:=-source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),\
 337      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
 338      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
 339 
 340 $(eval $(call SetupJavaCompilation,BUILD_JOBJC,\
 341                 SETUP:=GENERATE_15BYTECODE,\
 342                 DISABLE_SJAVAC:=true,\
 343                 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
 344                      $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
 345                      $(JDK_OUTPUTDIR)/gensrc, \
 346                 INCLUDES := com/apple/jobjc,\
 347                 EXCLUDES := tests/java/com/apple/jobjc,\
 348                 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes,\
 349                 JAR:=$(JDK_OUTPUTDIR)/lib/JObjC.jar, \
 350                 JARINDEX := true))
 351 
 352 $(BUILD_JOBJC) : $(BUILD_JDK)
 353 
 354 $(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS,\
 355                 SETUP:=GENERATE_JDKBYTECODE,\
 356                 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
 357                      $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
 358                      $(JDK_OUTPUTDIR)/gensrc, \
 359                 INCLUDES := com/apple/jobjc,\
 360                 EXCLUDES := tests/java/com/apple/jobjc,\
 361                 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes_headers,\
 362                 HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers_jobjc))
 363 
 364 $(BUILD_JOBJC_HEADERS) : $(BUILD_JDK)
 365 
 366 endif
 367 
 368 ##########################################################################################
 369 
 370 ifndef OPENJDK
 371 ifeq ($(OPENJDK_TARGET_OS), windows)
 372 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 373     $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32,\
 374                 SETUP:=GENERATE_JDKBYTECODE,\
 375                 JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,\
 376                 SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/32bit,\
 377                 BIN:=$(JDK_OUTPUTDIR)/classes_ab/32bit))
 378 




 325         $(TOUCH) $@
 326 
 327 ##########################################################################################
 328 
 329 ifeq ($(OPENJDK_TARGET_OS),macosx)
 330 #
 331 # JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag.
 332 #   so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-(
 333 #
 334 $(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,\
 335      JAVAC:=$(JAVAC),\
 336      FLAGS:=-source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),\
 337      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
 338      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
 339 
 340 $(eval $(call SetupJavaCompilation,BUILD_JOBJC,\
 341                 SETUP:=GENERATE_15BYTECODE,\
 342                 DISABLE_SJAVAC:=true,\
 343                 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
 344                      $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
 345                      $(JDK_OUTPUTDIR)/gensrc_jobjc/src, \
 346                 INCLUDES := com/apple/jobjc,\
 347                 EXCLUDES := tests/java/com/apple/jobjc,\
 348                 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes,\
 349                 JAR:=$(JDK_OUTPUTDIR)/lib/JObjC.jar, \
 350                 JARINDEX := true))
 351 
 352 $(BUILD_JOBJC) : $(BUILD_JDK)
 353 
 354 $(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS,\
 355                 SETUP:=GENERATE_JDKBYTECODE,\
 356                 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
 357                      $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
 358                      $(JDK_OUTPUTDIR)/gensrc_jobjc/src, \
 359                 INCLUDES := com/apple/jobjc,\
 360                 EXCLUDES := tests/java/com/apple/jobjc,\
 361                 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes_headers,\
 362                 HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers_jobjc))
 363 
 364 $(BUILD_JOBJC_HEADERS) : $(BUILD_JDK)
 365 
 366 endif
 367 
 368 ##########################################################################################
 369 
 370 ifndef OPENJDK
 371 ifeq ($(OPENJDK_TARGET_OS), windows)
 372 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 373     $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32,\
 374                 SETUP:=GENERATE_JDKBYTECODE,\
 375                 JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,\
 376                 SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/32bit,\
 377                 BIN:=$(JDK_OUTPUTDIR)/classes_ab/32bit))
 378