equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
112 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
112 LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
113 endif # OPENJDK_TARGET_OS solaris |
113 endif # OPENJDK_TARGET_OS solaris |
114 |
114 |
115 LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
115 LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
116 |
116 |
117 $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND, \ |
117 $(eval $(call SetupNativeCompilation, BUILD_LIBJSOUND, \ |
118 LIBRARY := jsound, \ |
118 NAME := jsound, \ |
119 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
119 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
120 SRC := $(LIBJSOUND_SRC_DIRS), \ |
120 SRC := $(LIBJSOUND_SRC_DIRS), \ |
121 INCLUDE_FILES := $(LIBJSOUND_SRC_FILES), \ |
121 INCLUDE_FILES := $(LIBJSOUND_SRC_FILES), \ |
122 TOOLCHAIN := $(LIBJSOUND_TOOLCHAIN), \ |
122 TOOLCHAIN := $(LIBJSOUND_TOOLCHAIN), \ |
123 OPTIMIZATION := LOW, \ |
123 OPTIMIZATION := LOW, \ |
147 |
147 |
148 ########################################################################################## |
148 ########################################################################################## |
149 |
149 |
150 ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)), ) |
150 ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)), ) |
151 |
151 |
152 $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA, \ |
152 $(eval $(call SetupNativeCompilation, BUILD_LIBJSOUNDALSA, \ |
153 LIBRARY := jsoundalsa, \ |
153 NAME := jsoundalsa, \ |
154 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
154 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
155 SRC := $(LIBJSOUND_SRC_DIRS), \ |
155 SRC := $(LIBJSOUND_SRC_DIRS), \ |
156 INCLUDE_FILES := Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
156 INCLUDE_FILES := Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
157 $(LIBJSOUND_DAUDIOFILES) \ |
157 $(LIBJSOUND_DAUDIOFILES) \ |
158 PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
158 PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
184 |
184 |
185 ########################################################################################## |
185 ########################################################################################## |
186 |
186 |
187 ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)), ) |
187 ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)), ) |
188 |
188 |
189 $(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS, \ |
189 $(eval $(call SetupNativeCompilation, BUILD_LIBJSOUNDDS, \ |
190 LIBRARY := jsoundds, \ |
190 NAME := jsoundds, \ |
191 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
191 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
192 SRC := $(LIBJSOUND_SRC_DIRS), \ |
192 SRC := $(LIBJSOUND_SRC_DIRS), \ |
193 INCLUDE_FILES := Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
193 INCLUDE_FILES := Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
194 PLATFORM_API_WinOS_Charset_Util.cpp \ |
194 PLATFORM_API_WinOS_Charset_Util.cpp \ |
195 PLATFORM_API_WinOS_DirectSound.cpp, \ |
195 PLATFORM_API_WinOS_DirectSound.cpp, \ |