make/gensrc/GensrcMisc.gmk
author bpb
Wed, 06 Feb 2019 12:48:01 -0800
branchrsocket-branch
changeset 57156 81e4a12fd1a4
parent 57115 512e7cc6ccce
child 57160 c502c299d41e
permissions -rw-r--r--
rsocket-branch: change recent copyright year to 2019 and new files to 2019 only
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
57156
81e4a12fd1a4 rsocket-branch: change recent copyright year to 2019 and new files to 2019 only
bpb
parents: 57115
diff changeset
     2
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    26
################################################################################
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    27
# Install the launcher name, release version string, full version
36225
6ae0eebc46e9 8150162: Move sun.misc.Version to a truly internal package
chegar
parents: 36110
diff changeset
    28
# string and the runtime name into the VersionProps.java file.
28660
cc1e8dfe21be 8069261: Create make dependencies on make variable values
erikj
parents: 27565
diff changeset
    29
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    30
$(eval $(call SetupTextFileProcessing, BUILD_VERSION_JAVA, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    31
    SOURCE_FILES := $(TOPDIR)/src/java.base/share/classes/java/lang/VersionProps.java.template, \
36225
6ae0eebc46e9 8150162: Move sun.misc.Version to a truly internal package
chegar
parents: 36110
diff changeset
    32
    OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/VersionProps.java, \
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    33
    REPLACEMENTS := \
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    34
        @@LAUNCHER_NAME@@ => $(LAUNCHER_NAME) ; \
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    35
        @@RUNTIME_NAME@@ => $(RUNTIME_NAME) ; \
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    36
        @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
39302
aa8d0bc2a6d2 8160000: Runtime.version() cause startup regressions in 9+119
redestad
parents: 36672
diff changeset
    37
        @@VERSION_STRING@@ => $(VERSION_STRING) ; \
aa8d0bc2a6d2 8160000: Runtime.version() cause startup regressions in 9+119
redestad
parents: 36672
diff changeset
    38
        @@VERSION_NUMBER@@ => $(VERSION_NUMBER) ; \
aa8d0bc2a6d2 8160000: Runtime.version() cause startup regressions in 9+119
redestad
parents: 36672
diff changeset
    39
        @@VERSION_PRE@@ => $(VERSION_PRE) ; \
aa8d0bc2a6d2 8160000: Runtime.version() cause startup regressions in 9+119
redestad
parents: 36672
diff changeset
    40
        @@VERSION_BUILD@@ => $(VERSION_BUILD) ; \
48327
d2a837cf9ff1 8192833: JEP 322: Time-Based Release Versioning
mr
parents: 47428
diff changeset
    41
        @@VERSION_OPT@@ => $(VERSION_OPT) ; \
d2a837cf9ff1 8192833: JEP 322: Time-Based Release Versioning
mr
parents: 47428
diff changeset
    42
        @@VERSION_DATE@@ => $(VERSION_DATE) ; \
52724
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    43
        @@VERSION_CLASSFILE_MAJOR@@ => $(VERSION_CLASSFILE_MAJOR) ; \
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    44
        @@VERSION_CLASSFILE_MINOR@@ => $(VERSION_CLASSFILE_MINOR) ; \
52824
52a692760109 8214794: java.specification.version should be only the major version number
rriggs
parents: 52804
diff changeset
    45
        @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
52724
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    46
        @@VENDOR_VERSION_STRING@@ => $(VENDOR_VERSION_STRING) ; \
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    47
        @@VENDOR@@ => $(COMPANY_NAME) ; \
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    48
        @@VENDOR_URL@@ => $(VENDOR_URL) ; \
0bdbf854472f 4947890: Minimize JNI upcalls in system-properties initialization
rriggs
parents: 48327
diff changeset
    49
        @@VENDOR_URL_BUG@@ => $(VENDOR_URL_BUG), \
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    50
))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    51
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 29931
diff changeset
    52
GENSRC_JAVA_BASE += $(BUILD_VERSION_JAVA)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    53
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    54
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    55
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    56
ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    57
  # Need to specify language since the template file has a non standard
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    58
  # extension.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    59
  CPP_FLAGS += -x c
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    60
else ifeq ($(TOOLCHAIN_TYPE), microsoft)
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    61
  CPP_FLAGS += -nologo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    62
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    63
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    64
# Generate a java source file from a template through the C preprocessor for the
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    65
# target system. First extract the copyright notice at the start of the file.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    66
# Run the preprocessor. Filter out the default compiler stderr output on
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    67
# Windows. Filter out all the header files output. Remove all "PREFIX_" strings
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    68
# that were added to variable references in the template files to avoid being
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    69
# matched by the preprocessor. Remove any #line directives left by the
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    70
# preprocessor.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    71
define generate-preproc-src
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    72
	$(call MakeDir, $(@D))
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    73
	( $(NAWK) '/@@END_COPYRIGHT@@/{exit}1' $< && \
47428
d72d7d55c765 8164900: Add support for O_DIRECT
bpb
parents: 47217
diff changeset
    74
	  $(CPP) $(CPP_FLAGS) $(SYSROOT_CFLAGS) $(CFLAGS_JDKLIB) $< \
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    75
	      2> >($(GREP) -v '^$(<F)$$' >&2) \
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    76
	      | $(NAWK) '/@@START_HERE@@/,0' \
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    77
	      |  $(SED) -e 's/@@START_HERE@@/\/\/ AUTOMATICALLY GENERATED FILE - DO NOT EDIT/' \
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    78
	      -e 's/PREFIX_//' -e 's/^#.*//' \
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    79
	) > $@
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    80
endef
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    81
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    82
GENSRC_SOR_FILE += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/ch/SocketOptionRegistry.java
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    83
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    84
$(GENSRC_SOR_FILE): \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    85
    $(TOPDIR)/src/java.base/share/classes/sun/nio/ch/SocketOptionRegistry.java.template
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    86
	$(generate-preproc-src)
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    87
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    88
GENSRC_JAVA_BASE += $(GENSRC_SOR_FILE)
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
    89
57115
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    90
ifeq ($(OPENJDK_TARGET_OS), linux)
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    91
  GENSRC_RSOR_FILE += $(SUPPORT_OUTPUTDIR)/gensrc/jdk.net/jdk/internal/net/rdma/RdmaSocketOptionRegistry.java
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    92
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    93
  $(GENSRC_RSOR_FILE): \
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    94
      $(TOPDIR)/src/jdk.net/linux/classes/jdk/internal/net/rdma/RdmaSocketOptionRegistry.java.template
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    95
	$(generate-preproc-src)
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    96
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    97
  GENSRC_JAVA_BASE += $(GENSRC_RSOR_FILE)
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    98
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
    99
endif
512e7cc6ccce Initial load of JEP 337 implementation
alanb
parents: 52824
diff changeset
   100
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   101
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   102
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20171
diff changeset
   103
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   104
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   105
  GENSRC_UC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/UnixConstants.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   106
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   107
  $(GENSRC_UC_FILE): \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   108
      $(TOPDIR)/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   109
	$(generate-preproc-src)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   110
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   111
  GENSRC_JAVA_BASE += $(GENSRC_UC_FILE)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   112
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   113
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   114
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   115
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   116
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20171
diff changeset
   117
ifeq ($(OPENJDK_TARGET_OS), solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   118
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   119
  GENSRC_SC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/SolarisConstants.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   120
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   121
  $(GENSRC_SC_FILE): \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   122
      $(TOPDIR)/src/java.base/solaris/classes/sun/nio/fs/SolarisConstants.java.template
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   123
	$(generate-preproc-src)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   124
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   125
  GENSRC_JAVA_BASE += $(GENSRC_SC_FILE)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   126
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   127
endif
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14343
diff changeset
   128
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents: 36225
diff changeset
   129
################################################################################
42365
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   130
# Create the javax/crypto/JceSecurity.class, using the build default.
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   131
#
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   132
ifeq ($(UNLIMITED_CRYPTO), true)
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   133
    JCE_DEFAULT_POLICY = unlimited
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   134
else
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   135
    JCE_DEFAULT_POLICY = limited
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   136
endif
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   137
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   138
ifneq ($(wildcard $(TOPDIR)/src/java.base/share/classes/javax/crypto/JceSecurity.java.template), )
43820
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   139
  $(eval $(call SetupTextFileProcessing, BUILD_JCESECURITY_JAVA, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   140
      SOURCE_FILES := $(TOPDIR)/src/java.base/share/classes/javax/crypto/JceSecurity.java.template, \
43820
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   141
      OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/javax/crypto/JceSecurity.java, \
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   142
      REPLACEMENTS := \
42365
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   143
        @@JCE_DEFAULT_POLICY@@ => $(JCE_DEFAULT_POLICY), \
43820
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   144
  ))
42365
5e640c2994d6 8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents: 39302
diff changeset
   145
43820
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   146
  GENSRC_JAVA_BASE += $(BUILD_JCESECURITY_JAVA)
c1431f794388 8175165: Don't process JceSecurity.java.template if crypto sources is not present
ihse
parents: 42365
diff changeset
   147
endif