Skip to content

Commit

Permalink
SapMachine #1611: Add dt_filesocket to sapmachine17
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Mar 13, 2024
1 parent 9f7b1fd commit bf71a26
Show file tree
Hide file tree
Showing 7 changed files with 1,125 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make/common/modules/LauncherCommon.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ define SetupBuildLauncherBody
ifeq ($(STATIC_BUILD), true)
$1_LDFLAGS += -exported_symbols_list \
$(SUPPORT_OUTPUTDIR)/build-static/exported.symbols
# SapMachine 2024-02-16: Add dt_filesocket implementation
$1_LIBS += \
$$(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs/java.base -name "*.a") \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libdt_socket.a \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libdt_filesocket.a \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libjdwp.a \
$(SUPPORT_OUTPUTDIR)/native/java.base/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) \
-framework CoreFoundation \
Expand Down
21 changes: 21 additions & 0 deletions make/modules/jdk.jdwp.agent/Lib.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ TARGETS += $(BUILD_LIBDT_SOCKET)

################################################################################

# SapMachine 2024-02-16: Add dt_filesocket implementation
$(eval $(call SetupJdkLibrary, BUILD_LIBDT_FILESOCKET, \
NAME := dt_filesocket, \
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB), \
DISABLED_WARNINGS_clang := format-nonliteral, \
EXTRA_HEADER_DIRS := \
include \
libjdwp/export, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LIBS_windows := $(JKDLIB_LIBS) ws2_32.lib Advapi32.lib, \
))

$(BUILD_LIBDT_FILESOCKET): $(call FindLib, java.base, java)

# Include file socket transport with JDWP agent to allow for safe local debugging
TARGETS += $(BUILD_LIBDT_FILESOCKET)

################################################################################

# JDWP_LOGGING causes log messages to be compiled into the library.
$(eval $(call SetupJdkLibrary, BUILD_LIBJDWP, \
NAME := jdwp, \
Expand Down

0 comments on commit bf71a26

Please sign in to comment.