make/lib/Awt2dLibraries.gmk

Print this page




1180         LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \
1181         REORDER := $(LIBAWT_HEADLESS_REORDER), \
1182         LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \
1183         LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\
1184         LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \
1185         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_headless, \
1186         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1187 
1188     $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
1189 
1190     BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS)
1191 
1192   endif
1193 endif
1194 
1195 ##########################################################################################
1196 
1197 ifndef BUILD_HEADLESS_ONLY
1198   LIBSPLASHSCREEN_DIRS := \
1199     $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
1200     $(JDK_TOPDIR)/src/share/native/sun/awt/libpng \
1201     $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
1202 
1203   ifeq ($(USE_EXTERNAL_LIBGIF), true)
1204     GIFLIB_LDFLAGS := -lgif
1205   else
1206     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1207     GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1208   endif
1209 







1210   ifneq ($(OPENJDK_TARGET_OS), macosx)
1211     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
1212   else
1213     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen
1214   endif
1215 
1216   LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
1217       $(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir))
1218 
1219   ifeq ($(OPENJDK_TARGET_OS), macosx)
1220     LIBSPLASHSCREEN_CFLAGS := -I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \
1221         $(LIBSPLASHSCREEN_CFLAGS) \
1222         -F/System/Library/Frameworks/JavaVM.framework/Frameworks
1223     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
1224     LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp
1225 
1226     LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0
1227     LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0
1228     LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0
1229     LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0


1252         -framework Foundation \
1253         -framework Cocoa \
1254         -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
1255         -framework JavaNativeFoundation
1256   else ifeq ($(OPENJDK_TARGET_OS), windows)
1257     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll
1258   else ifeq ($(OPENJDK_TARGET_OS), solaris)
1259     # Solaris still uses OPENWIN_LIB ..
1260     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread
1261   else  # .. all other Unixes can use X_LIBS
1262     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread
1263   endif
1264 
1265   $(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN, \
1266       LIBRARY := splashscreen, \
1267       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
1268       SRC := $(LIBSPLASHSCREEN_DIRS), \
1269       EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
1270       LANG := C, \
1271       OPTIMIZATION := LOW, \
1272       CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) $(GIFLIB_CFLAGS), \

1273       MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsplashscreen/mapfile-vers, \
1274       LDFLAGS := $(LDFLAGS_JDKLIB) \
1275           $(call SET_SHARED_LIBRARY_ORIGIN), \
1276       LDFLAGS_SUFFIX := $(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ) $(GIFLIB_LDFLAGS), \

1277       LDFLAGS_SUFFIX_solaris := -lc, \
1278       VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
1279       RC_FLAGS := $(RC_FLAGS) \
1280           -D "JDK_FNAME=splashscreen.dll" \
1281           -D "JDK_INTERNAL_NAME=splashscreen" \
1282           -D "JDK_FTYPE=0x2L", \
1283       OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsplashscreen, \
1284       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1285 
1286   BUILD_LIBRARIES += $(LIBSPLASHSCREEN)
1287 
1288   ifeq ($(OPENJDK_TARGET_OS), macosx)
1289     $(LIBSPLASHSCREEN): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX)
1290   endif
1291 
1292 endif
1293 
1294 ##########################################################################################
1295 
1296 ifndef OPENJDK




1180         LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \
1181         REORDER := $(LIBAWT_HEADLESS_REORDER), \
1182         LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \
1183         LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\
1184         LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \
1185         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_headless, \
1186         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1187 
1188     $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
1189 
1190     BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS)
1191 
1192   endif
1193 endif
1194 
1195 ##########################################################################################
1196 
1197 ifndef BUILD_HEADLESS_ONLY
1198   LIBSPLASHSCREEN_DIRS := \
1199     $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \

1200     $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
1201 
1202   ifeq ($(USE_EXTERNAL_LIBGIF), true)
1203     GIFLIB_LDFLAGS := -lgif
1204   else
1205     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1206     GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1207   endif
1208 
1209   ifeq ($(USE_EXTERNAL_LIBPNG), true)
1210     LIBPNG_LDFLAGS := -lpng
1211   else
1212     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/libpng
1213     LIBPNG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/libpng
1214   endif
1215 
1216   ifneq ($(OPENJDK_TARGET_OS), macosx)
1217     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
1218   else
1219     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen
1220   endif
1221 
1222   LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
1223       $(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir))
1224 
1225   ifeq ($(OPENJDK_TARGET_OS), macosx)
1226     LIBSPLASHSCREEN_CFLAGS := -I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \
1227         $(LIBSPLASHSCREEN_CFLAGS) \
1228         -F/System/Library/Frameworks/JavaVM.framework/Frameworks
1229     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
1230     LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp
1231 
1232     LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0
1233     LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0
1234     LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0
1235     LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0


1258         -framework Foundation \
1259         -framework Cocoa \
1260         -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
1261         -framework JavaNativeFoundation
1262   else ifeq ($(OPENJDK_TARGET_OS), windows)
1263     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll
1264   else ifeq ($(OPENJDK_TARGET_OS), solaris)
1265     # Solaris still uses OPENWIN_LIB ..
1266     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread
1267   else  # .. all other Unixes can use X_LIBS
1268     LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread
1269   endif
1270 
1271   $(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN, \
1272       LIBRARY := splashscreen, \
1273       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
1274       SRC := $(LIBSPLASHSCREEN_DIRS), \
1275       EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
1276       LANG := C, \
1277       OPTIMIZATION := LOW, \
1278       CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \
1279                 $(GIFLIB_CFLAGS) $(LIBPNG_CFLAGS), \
1280       MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsplashscreen/mapfile-vers, \
1281       LDFLAGS := $(LDFLAGS_JDKLIB) \
1282           $(call SET_SHARED_LIBRARY_ORIGIN), \
1283       LDFLAGS_SUFFIX := $(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ) \
1284                         $(GIFLIB_LDFLAGS) $(LIBPNG_LDFLAGS), \
1285       LDFLAGS_SUFFIX_solaris := -lc, \
1286       VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
1287       RC_FLAGS := $(RC_FLAGS) \
1288           -D "JDK_FNAME=splashscreen.dll" \
1289           -D "JDK_INTERNAL_NAME=splashscreen" \
1290           -D "JDK_FTYPE=0x2L", \
1291       OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsplashscreen, \
1292       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1293 
1294   BUILD_LIBRARIES += $(LIBSPLASHSCREEN)
1295 
1296   ifeq ($(OPENJDK_TARGET_OS), macosx)
1297     $(LIBSPLASHSCREEN): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX)
1298   endif
1299 
1300 endif
1301 
1302 ##########################################################################################
1303 
1304 ifndef OPENJDK