2007-12-01 00:00:00 +00:00
|
|
|
#
|
2022-03-21 21:34:09 +00:00
|
|
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
2010-05-25 22:58:33 +00:00
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
2007-12-01 00:00:00 +00:00
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
2010-05-25 22:58:33 +00:00
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
2010-05-25 22:58:33 +00:00
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
|
2022-04-08 20:33:24 +00:00
|
|
|
include GensrcCommon.gmk
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2014-09-19 07:59:36 +00:00
|
|
|
################################################################################
|
2022-03-21 21:34:09 +00:00
|
|
|
# Translate the Java debugger wire protocol (jdwp.spec) file into a front-end
|
|
|
|
# Java implementation (JDWP.java), a back-end C header file (JDWPCommands.h) and
|
|
|
|
# an HTML documentation file (jdwp-protocol.html).
|
2014-09-19 07:59:36 +00:00
|
|
|
|
2022-03-21 21:34:09 +00:00
|
|
|
JDWP_SPEC_FILE := $(TOPDIR)/src/java.se/share/data/jdwp/jdwp.spec
|
2014-12-03 14:22:58 +00:00
|
|
|
HEADER_FILE := $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h
|
|
|
|
JAVA_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/com/sun/tools/jdi/JDWP.java
|
2020-05-19 13:59:51 +00:00
|
|
|
HTML_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
2014-09-19 07:59:36 +00:00
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
# Both the header and java file are created using the same recipe. By declaring
|
2015-11-10 14:00:25 +00:00
|
|
|
# this rule and adding header file to dependencies for java file, both are
|
2014-12-03 14:22:58 +00:00
|
|
|
# rebuilt if either is missing
|
|
|
|
$(HEADER_FILE): $(JDWP_SPEC_FILE) $(BUILD_TOOLS_JDK)
|
2014-09-19 07:59:36 +00:00
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
# Touch the target of this rule at the end to avoid triggering false rebuilds
|
|
|
|
$(JAVA_FILE): $(JDWP_SPEC_FILE) $(BUILD_TOOLS_JDK) $(HEADER_FILE)
|
2016-01-16 12:01:44 +00:00
|
|
|
$(call LogInfo, Creating JDWP.java and JDWPCommands.h from jdwp.spec)
|
|
|
|
$(call MakeDir, $(@D) $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent)
|
2014-12-03 14:22:58 +00:00
|
|
|
$(RM) $@ $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h
|
|
|
|
$(TOOL_JDWPGEN) $< -jdi $@ -include \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h
|
|
|
|
$(TOUCH) $@
|
2014-09-19 07:59:36 +00:00
|
|
|
|
2020-05-19 13:59:51 +00:00
|
|
|
$(HTML_FILE): $(JDWP_SPEC_FILE) \
|
2014-09-19 07:59:36 +00:00
|
|
|
$(BUILD_TOOLS_JDK)
|
2016-01-16 12:01:44 +00:00
|
|
|
$(call LogInfo, Creating $(@F) from jdwp.spec)
|
|
|
|
$(call MakeDir, $(@D))
|
2014-09-19 07:59:36 +00:00
|
|
|
$(RM) $@
|
|
|
|
$(TOOL_JDWPGEN) $< -doc $@
|
|
|
|
|
2020-05-19 13:59:51 +00:00
|
|
|
TARGETS += $(JAVA_FILE) $(HEADER_FILE) $(HTML_FILE)
|
2014-09-19 07:59:36 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-16 08:37:57 +00:00
|
|
|
include GensrcProperties.gmk
|
|
|
|
|
2015-11-10 14:00:25 +00:00
|
|
|
$(eval $(call SetupCompileProperties, COMPILE_PROPERTIES, \
|
2017-09-12 17:03:56 +00:00
|
|
|
SRC_DIRS := $(TOPDIR)/src/jdk.jdi/share/classes/com/sun/tools/jdi/resources, \
|
2015-11-10 14:00:25 +00:00
|
|
|
CLASS := ListResourceBundle, \
|
|
|
|
))
|
2014-10-16 08:37:57 +00:00
|
|
|
|
2020-05-19 13:59:51 +00:00
|
|
|
TARGETS += $(COMPILE_PROPERTIES)
|