jdk/make/lib/SoundLibraries.gmk
author katleman
Thu, 17 Apr 2014 10:14:07 -0700
changeset 23965 987510c49ac7
parent 22607 ba232b417248
child 25859 3317bb8137f4
permissions -rw-r--r--
Added tag jdk9-b09 for changeset 16bad6bc066b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
16476
e269be167fae 8001334: Remove use of JVM_* functions from java.io code
dxu
parents: 15676
diff changeset
     2
# Copyright (c) 2011, 2013, 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
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    26
LIBJSOUND_SRC_DIRS := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    27
    $(JDK_TOPDIR)/src/share/native/com/sun/media/sound \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    28
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    29
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    30
LIBJSOUND_SRC_FILES := Utilities.c Platform.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    31
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    32
LIBJSOUND_LANG := C
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    33
LIBJSOUND_CFLAGS := $(foreach dir, $(LIBJSOUND_SRC_DIRS), -I$(dir))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    34
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    35
EXTRA_SOUND_JNI_LIBS :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    36
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    37
LIBJSOUND_MIDIFILES := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    38
    MidiInDevice.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    39
    MidiInDeviceProvider.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    40
    MidiOutDevice.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    41
    MidiOutDeviceProvider.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    42
    PlatformMidi.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    43
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    44
# files needed for ports
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    45
LIBJSOUND_PORTFILES := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    46
    PortMixerProvider.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    47
    PortMixer.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    48
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    49
# files needed for direct audio
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    50
LIBJSOUND_DAUDIOFILES := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    51
    DirectAudioDeviceProvider.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    52
    DirectAudioDevice.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    53
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    54
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    55
  EXTRA_SOUND_JNI_LIBS += jsoundds
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    56
  LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    57
      -DUSE_PLATFORM_MIDI_OUT=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    58
      -DUSE_PLATFORM_MIDI_IN=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    59
      -DUSE_PORTS=TRUE
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    60
  LIBJSOUND_SRC_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    61
      PLATFORM_API_WinOS_MidiIn.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    62
      PLATFORM_API_WinOS_MidiOut.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    63
      PLATFORM_API_WinOS_Util.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    64
      PLATFORM_API_WinOS_Ports.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    65
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    66
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    67
endif # OPENJDK_TARGET_OS windows
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    68
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    69
ifeq ($(OPENJDK_TARGET_OS), linux)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    70
  EXTRA_SOUND_JNI_LIBS += jsoundalsa
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    71
  LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    72
endif # OPENJDK_TARGET_OS linux
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    73
22593
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 22592
diff changeset
    74
ifeq ($(OPENJDK_TARGET_OS), aix)
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
    75
  LIBJSOUND_CFLAGS += -DX_PLATFORM=X_AIX
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
    76
endif # OPENJDK_TARGET_OS aix
22593
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 22592
diff changeset
    77
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    78
ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    79
  LIBJSOUND_LANG := C++
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    80
  LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    81
      -DUSE_PORTS=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    82
      -DUSE_DAUDIO=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    83
      -DUSE_PLATFORM_MIDI_OUT=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    84
      -DUSE_PLATFORM_MIDI_IN=TRUE
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    85
  LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    86
  LIBJSOUND_SRC_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    87
      PLATFORM_API_MacOSX_Utils.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    88
      PLATFORM_API_MacOSX_PCM.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    89
      PLATFORM_API_MacOSX_Ports.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    90
      PLATFORM_API_MacOSX_MidiIn.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    91
      PLATFORM_API_MacOSX_MidiOut.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    92
      PLATFORM_API_MacOSX_MidiUtils.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    93
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    94
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    95
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    96
endif # OPENJDK_TARGET_OS macosx
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    97
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    98
ifeq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    99
  LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   100
      -DUSE_PORTS=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   101
      -DUSE_DAUDIO=TRUE
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   102
  LIBJSOUND_SRC_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   103
      PLATFORM_API_SolarisOS_Utils.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   104
      PLATFORM_API_SolarisOS_Ports.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   105
      PLATFORM_API_SolarisOS_PCM.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   106
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   107
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   108
  LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   109
endif # OPENJDK_TARGET_OS solaris
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   110
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   111
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   112
ifeq ($(JVM_VARIANT_ZERO), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   113
  LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   114
else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   115
  ifeq ($(OPENJDK_TARGET_CPU), x86)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   116
    LIBJSOUND_CFLAGS += -DX_ARCH=X_I586
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   117
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   118
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   119
  ifeq ($(OPENJDK_TARGET_CPU), sparc)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   120
    LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   121
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   122
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   123
  ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   124
    LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   125
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   126
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   127
  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   128
    LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   129
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   130
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   131
  ifeq ($(OPENJDK_TARGET_CPU), arm)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   132
    LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   133
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   134
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   135
  ifeq ($(OPENJDK_TARGET_CPU), ppc)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   136
    LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   137
  endif
22587
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 18033
diff changeset
   138
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 18033
diff changeset
   139
  ifeq ($(OPENJDK_TARGET_CPU), ppc64)
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 18033
diff changeset
   140
       LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC64
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 18033
diff changeset
   141
  endif
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   142
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   143
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   144
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"'
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   145
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   146
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   147
    LIBRARY := jsound, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   148
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   149
    SRC := $(LIBJSOUND_SRC_DIRS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   150
    INCLUDE_FILES := $(LIBJSOUND_SRC_FILES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   151
    LANG := $(LIBJSOUND_LANG), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   152
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   153
    CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   154
        $(LIBJSOUND_CFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   155
    CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20896
diff changeset
   156
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsound/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   157
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   158
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   159
    LDFLAGS_macosx := -framework CoreAudio -framework CoreFoundation \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   160
        -framework CoreServices -framework AudioUnit $(LIBCXX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   161
        -framework CoreMIDI -framework AudioToolbox, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   162
    LDFLAGS_windows := $(WIN_JAVA_LIB) advapi32.lib winmm.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   163
    LDFLAGS_SUFFIX_posix := -ljava -ljvm, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   164
    LDFLAGS_SUFFIX_solaris := -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   165
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   166
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   167
        -D "JDK_FNAME=jsound.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   168
        -D "JDK_INTERNAL_NAME=jsound" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   169
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   170
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsound, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   171
    DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   172
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   173
$(BUILD_LIBJSOUND): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   174
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   175
BUILD_LIBRARIES += $(BUILD_LIBJSOUND)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   176
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   177
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   178
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   179
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   180
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   181
  $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   182
      LIBRARY := jsoundalsa, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   183
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   184
      SRC := $(LIBJSOUND_SRC_DIRS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   185
      INCLUDE_FILES := Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   186
          $(LIBJSOUND_DAUDIOFILES) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   187
          PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   188
          PLATFORM_API_LinuxOS_ALSA_PCM.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   189
          PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   190
          PLATFORM_API_LinuxOS_ALSA_MidiIn.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   191
          PLATFORM_API_LinuxOS_ALSA_MidiOut.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   192
          PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   193
          PLATFORM_API_LinuxOS_ALSA_Ports.c, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   194
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   195
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   196
      CFLAGS := $(CFLAGS_JDKLIB) $(ALSA_CFLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   197
          $(LIBJSOUND_CFLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   198
          -DUSE_DAUDIO=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   199
          -DUSE_PORTS=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   200
          -DUSE_PLATFORM_MIDI_OUT=TRUE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   201
          -DUSE_PLATFORM_MIDI_IN=TRUE, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20896
diff changeset
   202
      MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsoundalsa/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   203
      LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   204
          $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   205
      LDFLAGS_SUFFIX := $(ALSA_LIBS) -ljava -ljvm, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   206
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsoundalsa, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   207
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   208
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   209
  $(BUILD_LIBJSOUNDALSA): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   210
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   211
  BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   212
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   213
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   214
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   215
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   216
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   217
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   218
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   219
  $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   220
      LIBRARY := jsoundds, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   221
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   222
      SRC := $(LIBJSOUND_SRC_DIRS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   223
      INCLUDE_FILES := Utilities.c $(LIBJSOUND_DAUDIOFILES) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   224
          PLATFORM_API_WinOS_DirectSound.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   225
      LANG := C++, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   226
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   227
      CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   228
          $(LIBJSOUND_CFLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   229
          -DUSE_DAUDIO=TRUE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   230
      LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   231
          $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   232
      LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   233
      VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   234
      RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   235
          -D "JDK_FNAME=jsoundds.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   236
          -D "JDK_INTERNAL_NAME=jsoundds" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   237
          -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   238
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsoundds, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   239
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   240
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   241
  $(BUILD_LIBJSOUNDDS): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   242
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   243
  BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   244
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   245
endif