32 LIB_java.desktop_SRC_DIRS += $(TOPDIR)/src/java.desktop/*/native |
32 LIB_java.desktop_SRC_DIRS += $(TOPDIR)/src/java.desktop/*/native |
33 |
33 |
34 $(eval $(call FillCacheFind, $(wildcard $(LIB_java.desktop_SRC_DIRS)))) |
34 $(eval $(call FillCacheFind, $(wildcard $(LIB_java.desktop_SRC_DIRS)))) |
35 |
35 |
36 ################################################################################ |
36 ################################################################################ |
37 # Create the AWT/2D and sound libraries |
37 # Create the AWT/2D libraries |
38 |
38 |
39 include Awt2dLibraries.gmk |
39 include Awt2dLibraries.gmk |
40 include SoundLibraries.gmk |
40 |
|
41 ################################################################################ |
|
42 # Create the libjsound library |
|
43 |
|
44 ifneq ($(OPENJDK_TARGET_OS), aix) |
|
45 |
|
46 LIBJSOUND_SRC_DIRS := $(wildcard \ |
|
47 $(TOPDIR)/src/java.desktop/share/native/libjsound \ |
|
48 $(TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS)/native/libjsound \ |
|
49 ) |
|
50 |
|
51 LIBJSOUND_CFLAGS := \ |
|
52 -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
|
53 $(LIBJAVA_HEADER_FLAGS) \ |
|
54 $(foreach dir, $(LIBJSOUND_SRC_DIRS), -I$(dir)) \ |
|
55 -DX_PLATFORM=X_$(OPENJDK_TARGET_OS_UPPERCASE) \ |
|
56 -DUSE_PORTS=TRUE \ |
|
57 -DUSE_DAUDIO=TRUE \ |
|
58 # |
|
59 |
|
60 ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
61 LIBJSOUND_CFLAGS += \ |
|
62 -DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
63 -DUSE_PLATFORM_MIDI_IN=TRUE \ |
|
64 # |
|
65 endif |
|
66 |
|
67 ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
68 LIBJSOUND_TOOLCHAIN := TOOLCHAIN_LINK_CXX |
|
69 endif |
|
70 |
|
71 $(eval $(call SetupJdkLibrary, BUILD_LIBJSOUND, \ |
|
72 NAME := jsound, \ |
|
73 SRC := $(LIBJSOUND_SRC_DIRS), \ |
|
74 TOOLCHAIN := $(LIBJSOUND_TOOLCHAIN), \ |
|
75 OPTIMIZATION := LOW, \ |
|
76 CFLAGS := $(CFLAGS_JDKLIB) \ |
|
77 $(LIBJSOUND_CFLAGS), \ |
|
78 CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \ |
|
79 MAPFILE := $(TOPDIR)/make/mapfiles/libjsound/mapfile-vers, \ |
|
80 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
81 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
82 LIBS_unix := -ljava -ljvm, \ |
|
83 LIBS_linux := $(ALSA_LIBS), \ |
|
84 LIBS_macosx := -framework CoreAudio -framework CoreFoundation \ |
|
85 -framework CoreServices -framework AudioUnit \ |
|
86 -framework CoreMIDI -framework AudioToolbox $(LIBCXX), \ |
|
87 LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib dsound.lib winmm.lib user32.lib ole32.lib, \ |
|
88 )) |
|
89 |
|
90 $(BUILD_LIBJSOUND): $(call FindLib, java.base, java) |
|
91 |
|
92 TARGETS += $(BUILD_LIBJSOUND) |
|
93 |
|
94 endif |
41 |
95 |
42 ################################################################################ |
96 ################################################################################ |
43 # Create the macosx specific osxapp and osx libraries |
97 # Create the macosx specific osxapp and osx libraries |
44 |
98 |
45 ifeq ($(OPENJDK_TARGET_OS), macosx) |
99 ifeq ($(OPENJDK_TARGET_OS), macosx) |