1 #
2 # Copyright (c) 2011, 2014, 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
95 PLATFORM_API_MacOSX_MidiIn.c \
96 PLATFORM_API_MacOSX_MidiOut.c \
97 PLATFORM_API_MacOSX_MidiUtils.c
98 LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
99 LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
100 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
101 endif # OPENJDK_TARGET_OS macosx
102
103 ifeq ($(OPENJDK_TARGET_OS), solaris)
104 LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \
105 -DUSE_PORTS=TRUE \
106 -DUSE_DAUDIO=TRUE
107 LIBJSOUND_SRC_FILES += \
108 PLATFORM_API_SolarisOS_Utils.c \
109 PLATFORM_API_SolarisOS_Ports.c \
110 PLATFORM_API_SolarisOS_PCM.c
111 LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
112 LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
113 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
114 endif # OPENJDK_TARGET_OS solaris
115
116
117 ifeq ($(JVM_VARIANT_ZERO), true)
118 LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO
119 else
120 ifeq ($(OPENJDK_TARGET_CPU), x86)
121 LIBJSOUND_CFLAGS += -DX_ARCH=X_I586
122 endif
123
124 ifeq ($(OPENJDK_TARGET_CPU), sparc)
125 LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC
126 endif
127
128 ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
129 LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9
130 endif
131
132 ifeq ($(OPENJDK_TARGET_CPU), x86_64)
133 LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64
134 endif
135
136 ifeq ($(OPENJDK_TARGET_CPU), arm)
137 LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM
138 endif
139
140 ifeq ($(OPENJDK_TARGET_CPU), ppc)
141 LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC
142 endif
143
144 ifeq ($(OPENJDK_TARGET_CPU), ppc64)
145 LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC64
146 endif
147 endif
148
149 LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"'
150
151 $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND, \
152 LIBRARY := jsound, \
153 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
154 SRC := $(LIBJSOUND_SRC_DIRS), \
155 INCLUDE_FILES := $(LIBJSOUND_SRC_FILES), \
156 LANG := $(LIBJSOUND_LANG), \
157 OPTIMIZATION := LOW, \
158 CFLAGS := $(CFLAGS_JDKLIB) \
159 $(LIBJSOUND_CFLAGS), \
160 CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \
161 MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsound/mapfile-vers, \
162 LDFLAGS := $(LDFLAGS_JDKLIB) \
163 $(call SET_SHARED_LIBRARY_ORIGIN), \
164 LDFLAGS_macosx := -framework CoreAudio -framework CoreFoundation \
165 -framework CoreServices -framework AudioUnit $(LIBCXX) \
166 -framework CoreMIDI -framework AudioToolbox, \
167 LDFLAGS_windows := $(WIN_JAVA_LIB) advapi32.lib winmm.lib, \
|
1 #
2 # Copyright (c) 2011, 2015, 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
95 PLATFORM_API_MacOSX_MidiIn.c \
96 PLATFORM_API_MacOSX_MidiOut.c \
97 PLATFORM_API_MacOSX_MidiUtils.c
98 LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
99 LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
100 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
101 endif # OPENJDK_TARGET_OS macosx
102
103 ifeq ($(OPENJDK_TARGET_OS), solaris)
104 LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \
105 -DUSE_PORTS=TRUE \
106 -DUSE_DAUDIO=TRUE
107 LIBJSOUND_SRC_FILES += \
108 PLATFORM_API_SolarisOS_Utils.c \
109 PLATFORM_API_SolarisOS_Ports.c \
110 PLATFORM_API_SolarisOS_PCM.c
111 LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
112 LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
113 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
114 endif # OPENJDK_TARGET_OS solaris
115
116 LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"'
117
118 $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND, \
119 LIBRARY := jsound, \
120 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
121 SRC := $(LIBJSOUND_SRC_DIRS), \
122 INCLUDE_FILES := $(LIBJSOUND_SRC_FILES), \
123 LANG := $(LIBJSOUND_LANG), \
124 OPTIMIZATION := LOW, \
125 CFLAGS := $(CFLAGS_JDKLIB) \
126 $(LIBJSOUND_CFLAGS), \
127 CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \
128 MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsound/mapfile-vers, \
129 LDFLAGS := $(LDFLAGS_JDKLIB) \
130 $(call SET_SHARED_LIBRARY_ORIGIN), \
131 LDFLAGS_macosx := -framework CoreAudio -framework CoreFoundation \
132 -framework CoreServices -framework AudioUnit $(LIBCXX) \
133 -framework CoreMIDI -framework AudioToolbox, \
134 LDFLAGS_windows := $(WIN_JAVA_LIB) advapi32.lib winmm.lib, \
|