makefiles/BuildJaxws.gmk

Print this page




  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include JavaCompilation.gmk
  32 
  33 JAVAC_JARS ?= -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
  34                 -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
  35 DISABLE_JAXWS_WARNINGS:=-Xlint:all,-varargs,-rawtypes,-deprecation,-unchecked,-serial,-dep-ann,-cast,-fallthrough,-static
  36 
  37 # The generate new bytecode uses the new compiler for to generate bytecode
  38 # for the new jdk that is being built. The code compiled by this setup
  39 # cannot necessarily be run with the boot jdk.
  40 $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG,\
  41      JVM:=$(JAVA),\
  42      JAVAC:=$(JAVAC_JARS),\
  43      FLAGS:=-XDignore.symbol.file=true $(DISABLE_JAXWS_WARNINGS) -g,\
  44      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  45      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  46 
  47 # Dummy here is needed to trigger copying of META-INF
  48 $(eval $(call SetupJavaCompilation,BUILD_JAF,\
  49                 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
  50                 SRC:=$(JAXWS_TOPDIR)/src/share/jaf_classes,\
  51                 COPY:="dummy",\
  52                 BIN:=$(JAXWS_OUTPUTDIR)/jaf_classes))
  53 
  54 $(eval $(call SetupJavaCompilation,BUILD_JAXWS,\
  55                 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
  56                 SRC:=$(JAXWS_TOPDIR)/src/share/jaxws_classes,\
  57                 BIN:=$(JAXWS_OUTPUTDIR)/jaxws_classes,\
  58                 COPY:=.xsd,\
  59                 COPY_FILES:=$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \
  60                             $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java,\
  61                 ADD_JAVAC_FLAGS=-cp $(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar))
  62 




  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include JavaCompilation.gmk
  32 


  33 DISABLE_JAXWS_WARNINGS:=-Xlint:all,-varargs,-rawtypes,-deprecation,-unchecked,-serial,-dep-ann,-cast,-fallthrough,-static
  34 
  35 # The generate new bytecode uses the new compiler for to generate bytecode
  36 # for the new jdk that is being built. The code compiled by this setup
  37 # cannot necessarily be run with the boot jdk.
  38 $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG,\
  39      JVM:=$(JAVA),\
  40      JAVAC:=$(NEW_JAVAC),\
  41      FLAGS:=-XDignore.symbol.file=true $(DISABLE_JAXWS_WARNINGS) -g,\
  42      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  43      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  44 
  45 # Dummy here is needed to trigger copying of META-INF
  46 $(eval $(call SetupJavaCompilation,BUILD_JAF,\
  47                 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
  48                 SRC:=$(JAXWS_TOPDIR)/src/share/jaf_classes,\
  49                 COPY:="dummy",\
  50                 BIN:=$(JAXWS_OUTPUTDIR)/jaf_classes))
  51 
  52 $(eval $(call SetupJavaCompilation,BUILD_JAXWS,\
  53                 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
  54                 SRC:=$(JAXWS_TOPDIR)/src/share/jaxws_classes,\
  55                 BIN:=$(JAXWS_OUTPUTDIR)/jaxws_classes,\
  56                 COPY:=.xsd,\
  57                 COPY_FILES:=$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \
  58                             $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java,\
  59                 ADD_JAVAC_FLAGS=-cp $(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar))
  60