jdk/make/lib/SoundLibraries.gmk

Print this page




   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
  23 # questions.
  24 #
  25 
  26 LIBJSOUND_SRC_DIRS := \
  27     $(JDK_TOPDIR)/src/java.desktop/share/native/libjsound \
  28     $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_API_DIR)/native/libjsound \
  29     #
  30 LIBJSOUND_CFLAGS := \
  31     -I$(JDK_OUTPUTDIR)/gensrc_headers/java.desktop \
  32     $(LIBJAVA_HEADER_FLAGS) \
  33     $(foreach dir, $(LIBJSOUND_SRC_DIRS), -I$(dir)) \
  34     #
  35 
  36 LIBJSOUND_SRC_FILES := Utilities.c Platform.c
  37 
  38 LIBJSOUND_LANG := C
  39 
  40 EXTRA_SOUND_JNI_LIBS :=
  41 
  42 LIBJSOUND_MIDIFILES := \
  43     MidiInDevice.c \
  44     MidiInDeviceProvider.c \
  45     MidiOutDevice.c \
  46     MidiOutDeviceProvider.c \
  47     PlatformMidi.c
  48 


 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, \
 168     LDFLAGS_SUFFIX_posix := -ljava -ljvm, \
 169     LDFLAGS_SUFFIX_solaris := -lc, \
 170     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 171     RC_FLAGS := $(RC_FLAGS) \
 172         -D "JDK_FNAME=jsound.dll" \
 173         -D "JDK_INTERNAL_NAME=jsound" \
 174         -D "JDK_FTYPE=0x2L", \
 175     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsound, \
 176     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 177 
 178 $(BUILD_LIBJSOUND): $(BUILD_LIBJAVA)
 179 
 180 DESKTOP_LIBRARIES += $(BUILD_LIBJSOUND)
 181 
 182 ##########################################################################################
 183 
 184 ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)), )
 185 
 186   $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA, \
 187       LIBRARY := jsoundalsa, \
 188       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \




   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
  23 # questions.
  24 #
  25 
  26 LIBJSOUND_SRC_DIRS := \
  27     $(JDK_TOPDIR)/src/java.desktop/share/native/libjsound \
  28     $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libjsound \
  29     #
  30 LIBJSOUND_CFLAGS := \
  31     -I$(JDK_OUTPUTDIR)/gensrc_headers/java.desktop \
  32     $(LIBJAVA_HEADER_FLAGS) \
  33     $(foreach dir, $(LIBJSOUND_SRC_DIRS), -I$(dir)) \
  34     #
  35 
  36 LIBJSOUND_SRC_FILES := Utilities.c Platform.c
  37 
  38 LIBJSOUND_LANG := C
  39 
  40 EXTRA_SOUND_JNI_LIBS :=
  41 
  42 LIBJSOUND_MIDIFILES := \
  43     MidiInDevice.c \
  44     MidiInDeviceProvider.c \
  45     MidiOutDevice.c \
  46     MidiOutDeviceProvider.c \
  47     PlatformMidi.c
  48 


 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, \
 168     LDFLAGS_SUFFIX_unix := -ljava -ljvm, \
 169     LDFLAGS_SUFFIX_solaris := -lc, \
 170     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 171     RC_FLAGS := $(RC_FLAGS) \
 172         -D "JDK_FNAME=jsound.dll" \
 173         -D "JDK_INTERNAL_NAME=jsound" \
 174         -D "JDK_FTYPE=0x2L", \
 175     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsound, \
 176     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 177 
 178 $(BUILD_LIBJSOUND): $(BUILD_LIBJAVA)
 179 
 180 DESKTOP_LIBRARIES += $(BUILD_LIBJSOUND)
 181 
 182 ##########################################################################################
 183 
 184 ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)), )
 185 
 186   $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA, \
 187       LIBRARY := jsoundalsa, \
 188       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \