Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 74bd95b

Browse files
committedJul 28, 2020
Merge
2 parents e2b632e + fcd5d41 commit 74bd95b

File tree

37 files changed

+524
-454
lines changed

37 files changed

+524
-454
lines changed
 

‎README

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Welcome to the JDK!
33
===================
44

5-
For information about building the JDK, including how to retrieve all
6-
of the source code, please see either of these files:
5+
For build instructions, please see either of these files:
76

87
* doc/building.html (html version)
98
* doc/building.md (markdown version)
109

11-
See http://openjdk.java.net/ for more information about the OpenJDK
12-
Community and the JDK.
10+
See https://openjdk.java.net/ for more information about
11+
the OpenJDK Community and the JDK.
12+

‎make/common/modules/LauncherCommon.gmk

+15-3
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,22 @@ define SetupBuildLauncherBody
102102

103103
ifeq ($(call isTargetOs, macosx), true)
104104
ifeq ($$($1_MACOSX_PRIVILEGED), true)
105-
$1_PLIST_FILE := Info-privileged.plist
105+
$1_PLIST_SRC_FILE := Info-privileged.plist
106106
else
107-
$1_PLIST_FILE := Info-cmdline.plist
107+
$1_PLIST_SRC_FILE := Info-cmdline.plist
108108
endif
109109

110-
$1_LDFLAGS += -sectcreate __TEXT __info_plist $(MACOSX_PLIST_DIR)/$$($1_PLIST_FILE)
110+
$1_PLIST_FILE := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/$1/Info.plist
111+
112+
$$(eval $$(call SetupTextFileProcessing, BUILD_PLIST_$1, \
113+
SOURCE_FILES := $$(TOPDIR)/src/java.base/macosx/native/launcher/$$($1_PLIST_SRC_FILE), \
114+
OUTPUT_FILE := $$($1_PLIST_FILE), \
115+
REPLACEMENTS := \
116+
@@ID@@ => $(MACOSX_BUNDLE_ID_BASE).$(VERSION_SHORT).$1 ; \
117+
@@VERSION@@ => $(VERSION_NUMBER) ; \
118+
))
119+
120+
$1_LDFLAGS += -sectcreate __TEXT __info_plist $$($1_PLIST_FILE)
111121

112122
ifeq ($(STATIC_BUILD), true)
113123
$1_LDFLAGS += -exported_symbols_list \
@@ -167,6 +177,8 @@ define SetupBuildLauncherBody
167177
$1 += $$(BUILD_LAUNCHER_$1)
168178
TARGETS += $$($1)
169179

180+
$$(BUILD_LAUNCHER_$1): $$(BUILD_PLIST_$1)
181+
170182
ifeq ($(call isTargetOs, aix), true)
171183
$$(BUILD_LAUNCHER_$1): $(call FindStaticLib, java.base, jli_static)
172184
endif

‎make/data/bundle/JDK-Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
2424
<string>@@VERSION@@</string>
25+
<key>NSMicrophoneUsageDescription</key>
26+
<string>The application is requesting access to the microphone.</string>
2527
<key>JavaVM</key>
2628
<dict>
2729
<key>JVMCapabilities</key>

‎make/data/bundle/JRE-Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
2424
<string>@@VERSION@@</string>
25+
<key>NSMicrophoneUsageDescription</key>
26+
<string>The application is requesting access to the microphone.</string>
2527
<key>JavaVM</key>
2628
<dict>
2729
<key>JVMMinimumFrameworkVersion</key>

‎src/java.base/macosx/native/launcher/Info-cmdline.plist

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleIdentifier</key>
6-
<string>net.java.openjdk.cmd</string>
6+
<string>@@ID@@</string>
77
<key>CFBundleInfoDictionaryVersion</key>
88
<string>6.0</string>
99
<key>CFBundleShortVersionString</key>
1010
<string>1.0</string>
1111
<key>CFBundleVersion</key>
12-
<string>1.0</string>
12+
<string>@@VERSION@@</string>
13+
<key>NSMicrophoneUsageDescription</key>
14+
<string>The application is requesting access to the microphone.</string>
1315
</dict>
1416
</plist>

‎src/java.base/macosx/native/launcher/Info-privileged.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleIdentifier</key>
6-
<string>net.java.openjdk.cmd</string>
6+
<string>@@ID@@</string>
77
<key>CFBundleInfoDictionaryVersion</key>
88
<string>6.0</string>
99
<key>CFBundleName</key>
1010
<string>OpenJDK Command</string>
1111
<key>CFBundleShortVersionString</key>
1212
<string>1.0</string>
1313
<key>CFBundleVersion</key>
14-
<string>1.0</string>
14+
<string>@@VERSION@@</string>
1515
<key>SecTaskAccess</key>
1616
<string>allowed</string>
1717
</dict>

0 commit comments

Comments
 (0)