1 #
2 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
71
72 ifeq ($(call check-jvm-feature, static-build), true)
73 JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
74 endif
75
76 ifneq ($(call check-jvm-feature, jvmti), true)
77 JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
78 JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
79 jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
80 jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
81 jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
82 jvmtiClassFileReconstituter.cpp
83 endif
84
85 ifneq ($(call check-jvm-feature, jvmci), true)
86 JVM_CFLAGS_FEATURES += -DINCLUDE_JVMCI=0
87 JVM_EXCLUDES += jvmci
88 JVM_EXCLUDE_FILES += jvmciCodeInstaller_$(HOTSPOT_TARGET_CPU_ARCH).cpp
89 endif
90
91 ifneq ($(call check-jvm-feature, fprof), true)
92 JVM_CFLAGS_FEATURES += -DINCLUDE_FPROF=0
93 JVM_EXCLUDE_FILES += fprofiler.cpp
94 endif
95
96 ifneq ($(call check-jvm-feature, vm-structs), true)
97 JVM_CFLAGS_FEATURES += -DINCLUDE_VM_STRUCTS=0
98 JVM_EXCLUDE_FILES += vmStructs.cpp
99 endif
100
101 ifneq ($(call check-jvm-feature, jni-check), true)
102 JVM_CFLAGS_FEATURES += -DINCLUDE_JNI_CHECK=0
103 JVM_EXCLUDE_FILES += jniCheck.cpp
104 endif
105
106 ifneq ($(call check-jvm-feature, services), true)
107 JVM_CFLAGS_FEATURES += -DINCLUDE_SERVICES=0
108 JVM_EXCLUDE_FILES += heapDumper.cpp heapInspection.cpp \
109 attachListener_$(HOTSPOT_TARGET_OS).cpp attachListener.cpp
110 endif
111
112 ifneq ($(call check-jvm-feature, management), true)
113 JVM_CFLAGS_FEATURES += -DINCLUDE_MANAGEMENT=0
114 endif
115
|
1 #
2 # Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
71
72 ifeq ($(call check-jvm-feature, static-build), true)
73 JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
74 endif
75
76 ifneq ($(call check-jvm-feature, jvmti), true)
77 JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
78 JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
79 jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
80 jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
81 jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
82 jvmtiClassFileReconstituter.cpp
83 endif
84
85 ifneq ($(call check-jvm-feature, jvmci), true)
86 JVM_CFLAGS_FEATURES += -DINCLUDE_JVMCI=0
87 JVM_EXCLUDES += jvmci
88 JVM_EXCLUDE_FILES += jvmciCodeInstaller_$(HOTSPOT_TARGET_CPU_ARCH).cpp
89 endif
90
91 ifneq ($(call check-jvm-feature, vm-structs), true)
92 JVM_CFLAGS_FEATURES += -DINCLUDE_VM_STRUCTS=0
93 JVM_EXCLUDE_FILES += vmStructs.cpp
94 endif
95
96 ifneq ($(call check-jvm-feature, jni-check), true)
97 JVM_CFLAGS_FEATURES += -DINCLUDE_JNI_CHECK=0
98 JVM_EXCLUDE_FILES += jniCheck.cpp
99 endif
100
101 ifneq ($(call check-jvm-feature, services), true)
102 JVM_CFLAGS_FEATURES += -DINCLUDE_SERVICES=0
103 JVM_EXCLUDE_FILES += heapDumper.cpp heapInspection.cpp \
104 attachListener_$(HOTSPOT_TARGET_OS).cpp attachListener.cpp
105 endif
106
107 ifneq ($(call check-jvm-feature, management), true)
108 JVM_CFLAGS_FEATURES += -DINCLUDE_MANAGEMENT=0
109 endif
110
|