8077847: Better handling of Windows executable manifest version
Reviewed-by: erikj, tbell
This commit is contained in:
parent
3bef36626e
commit
41b53b0d3c
@ -45,7 +45,7 @@ DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
|
||||
DEMO_CLOSED_SHARE_SRC := $(JDK_TOPDIR)/src/closed/demo/share
|
||||
DEMO_SOLARIS_SRC := $(JDK_TOPDIR)/src/demo/solaris
|
||||
DEMO_OS_TYPE_SRC := $(JDK_TOPDIR)/src/demo/$(OPENJDK_TARGET_OS_TYPE)
|
||||
VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
|
||||
GLOBAL_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
|
||||
|
||||
##################################################################################################
|
||||
|
||||
@ -267,7 +267,7 @@ define SetupJVMTIDemo
|
||||
LDFLAGS_SUFFIX_windows := $6, \
|
||||
LDFLAGS_SUFFIX_solaris := $7 -lc, \
|
||||
LDFLAGS_SUFFIX_linux := $8, \
|
||||
VERSIONINFO_RESOURCE := $(VERSION_INFO_RESOURCE), \
|
||||
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
|
||||
RC_FLAGS := $$(RC_FLAGS) \
|
||||
-D "JDK_FNAME=$1.dll" \
|
||||
-D "JDK_INTERNAL_NAME=$1" \
|
||||
|
@ -52,7 +52,9 @@ ifeq ($(OPENJDK_TARGET_OS), windows)
|
||||
-D "JDK_FNAME=jabswitch.exe" \
|
||||
-D "JDK_INTERNAL_NAME=jabswitch" \
|
||||
-D "JDK_FTYPE=0x01L", \
|
||||
MANIFEST := $(JABSWITCH_SRC)/jabswitch.manifest))
|
||||
MANIFEST := $(JABSWITCH_SRC)/jabswitch.manifest, \
|
||||
MANIFEST_VERSION := $(JDK_VERSION_FOR_MANIFEST), \
|
||||
))
|
||||
|
||||
TARGETS += $(BUILD_JABSWITCH)
|
||||
endif
|
||||
|
@ -102,7 +102,9 @@ $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
|
||||
-D "JDK_INTERNAL_NAME=unpack200" \
|
||||
-D "JDK_FTYPE=0x1L", \
|
||||
DEBUG_SYMBOLS := true, \
|
||||
MANIFEST := $(JDK_TOPDIR)/src/jdk.pack200/windows/native/unpack200/unpack200_proto.exe.manifest))
|
||||
MANIFEST := $(JDK_TOPDIR)/src/jdk.pack200/windows/native/unpack200/unpack200_proto.exe.manifest, \
|
||||
MANIFEST_VERSION := $(JDK_VERSION_FOR_MANIFEST), \
|
||||
))
|
||||
|
||||
ifneq ($(USE_EXTERNAL_LIBZ), true)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@ -199,7 +199,9 @@ define SetupLauncher
|
||||
-D "JDK_FTYPE=0x1L" \
|
||||
$7, \
|
||||
MANIFEST := $(JAVA_MANIFEST), \
|
||||
CODESIGN := $$($1_CODESIGN))
|
||||
MANIFEST_VERSION := $(JDK_VERSION_FOR_MANIFEST), \
|
||||
CODESIGN := $$($1_CODESIGN), \
|
||||
)
|
||||
|
||||
TARGETS += $$(BUILD_LAUNCHER_$1)
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
|
||||
>
|
||||
<assemblyIdentity
|
||||
version="IMVERSION"
|
||||
name=""
|
||||
version=""
|
||||
processorArchitecture="X86"
|
||||
name="Oracle Corporation, Java(tm) 2 Standard Edition"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Java(TM) SE PROGRAM process</description>
|
||||
<description>Java(TM) SE process</description>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
|
@ -7,9 +7,3 @@
|
||||
// Icon
|
||||
//
|
||||
IDI_ICON ICON DISCARDABLE "awt.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// RT_MANIFEST
|
||||
//
|
||||
1 RT_MANIFEST "java.manifest"
|
||||
|
@ -1,4 +0,0 @@
|
||||
#define XSTR(x) STR(x)
|
||||
#define STR(x) #x
|
||||
|
||||
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ XSTR(JAB_MANIFEST_EMBED)
|
@ -1,11 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="IMVERSION"
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
name=""
|
||||
version=""
|
||||
processorArchitecture="X86"
|
||||
name="unpack200.exe"
|
||||
type="win32"/>
|
||||
type="win32"/>
|
||||
|
||||
<description>Java(TM) SE Runtime Environment unpack200 Process.</description>
|
||||
<description>Java(TM) SE Runtime Environment unpack200 Process.</description>
|
||||
<!-- Identify the application security requirements. -->
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
|
Loading…
x
Reference in New Issue
Block a user