1 #
   2 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   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 WIN_AWT_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt/awt.lib
  27 
  28 LIBAWT_DEFAULT_HEADER_DIRS := \
  29     libawt/awt/image \
  30     libawt/awt/image/cvutils \
  31     libawt/java2d \
  32     libawt/java2d/loops \
  33     libawt/java2d/pipe \
  34     #
  35 
  36 ################################################################################
  37 
  38 BUILD_LIBMLIB_CFLAGS := -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES -DMLIB_NO_LIBSUNMATH
  39 
  40 ifeq ($(call isTargetCpuBits, 64), true)
  41   BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT
  42 endif
  43 
  44 $(eval $(call SetupJdkLibrary, BUILD_LIBMLIB_IMAGE, \
  45     NAME := mlib_image, \
  46     EXTRA_SRC := common/awt/medialib, \
  47     EXCLUDE_FILES := mlib_c_ImageBlendTable.c, \
  48     EXCLUDE_SRC_PATTERNS := $(BUILD_LIBMLIB_EXCLUDE_SRC_PATTERNS), \
  49     OPTIMIZATION := HIGHEST, \
  50     CFLAGS := $(CFLAGS_JDKLIB) \
  51         $(BUILD_LIBMLIB_CFLAGS), \
  52     DISABLED_WARNINGS_gcc := unused-function, \
  53     LDFLAGS := $(LDFLAGS_JDKLIB) \
  54         $(call SET_SHARED_LIBRARY_ORIGIN), \
  55     LIBS := $(JDKLIB_LIBS), \
  56     LIBS_unix := $(LIBM) $(LIBDL), \
  57 ))
  58 
  59 $(BUILD_LIBMLIB_IMAGE): $(call FindLib, java.base, java)
  60 
  61 TARGETS += $(BUILD_LIBMLIB_IMAGE)
  62 
  63 ################################################################################
  64 
  65 LIBAWT_EXTRA_SRC := \
  66     common/awt/debug \
  67     $(TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \
  68     #
  69 
  70 ifeq ($(call isTargetOs, windows), true)
  71   LIBAWT_EXTRA_SRC += \
  72       $(TOPDIR)/src/$(MODULE)/share/native/common/awt/utility \
  73       $(TOPDIR)/src/$(MODULE)/share/native/common/font \
  74       $(TOPDIR)/src/$(MODULE)/share/native/common/java2d/opengl \
  75       $(TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt/systemscale \
  76       #
  77 endif
  78 
  79 ifeq ($(call isTargetOs, linux macosx aix), true)
  80   LIBAWT_EXFILES += awt_Font.c CUPSfuncs.c fontpath.c X11Color.c
  81 endif
  82 
  83 ifeq ($(call isTargetOs, macosx), true)
  84   LIBAWT_EXFILES += initIDs.c awt/image/cvutils/img_colors.c
  85 endif
  86 
  87 ifeq ($(call isTargetOs, windows), true)
  88   LIBAWT_EXFILES += \
  89       java2d/d3d/D3DShaderGen.c \
  90       awt/image/cvutils/img_colors.c \
  91       #
  92 endif
  93 
  94 LIBAWT_EXTRA_HEADER_DIRS := \
  95     $(LIBAWT_DEFAULT_HEADER_DIRS) \
  96     $(call GetJavaHeaderDir, java.base) \
  97     libawt/awt/medialib \
  98     libawt/java2d/d3d \
  99     libawt/java2d/opengl \
 100     libawt/java2d/windows \
 101     libawt/windows \
 102     common/awt/medialib \
 103     libmlib_image \
 104     include \
 105     java.base:libjava \
 106     java.base:include \
 107     #
 108 
 109 LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES $(X_CFLAGS)
 110 
 111 LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH
 112 
 113 ifeq ($(call isTargetOs, windows), true)
 114   LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE
 115   ifeq ($(call isTargetCpuBits, 64), true)
 116     LIBAWT_CFLAGS += -DMLIB_OS64BIT
 117   endif
 118 
 119   LIBAWT_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
 120   LIBAWT_VERSIONINFO_RESOURCE := $(TOPDIR)/src/$(MODULE)/windows/native/libawt/windows/awt.rc
 121 endif
 122 
 123 ifeq ($(call isTargetOs, linux), true)
 124   # FIXME: This is probably not what we want to do, but keep it now for compatibility.
 125   LIBAWT_CFLAGS += $(EXPORT_ALL_SYMBOLS)
 126 endif
 127 
 128 # Turn off all warnings for debug_mem.c This is needed because the specific warning
 129 # about initializing a declared 'extern' cannot be turned off individually. Only
 130 # applies to debug builds.
 131 ifeq ($(TOOLCHAIN_TYPE), gcc)
 132   BUILD_LIBAWT_debug_mem.c_CFLAGS := -w
 133   # This option improves performance of MaskFill in Java2D by 20% for some gcc
 134   LIBAWT_CFLAGS += -fgcse-after-reload
 135 endif
 136 
 137 $(eval $(call SetupJdkLibrary, BUILD_LIBAWT, \
 138     NAME := awt, \
 139     EXTRA_SRC := $(LIBAWT_EXTRA_SRC), \
 140     EXCLUDES := $(LIBAWT_EXCLUDES), \
 141     EXCLUDE_FILES := $(LIBAWT_EXFILES), \
 142     OPTIMIZATION := LOW, \
 143     CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \
 144     EXTRA_HEADER_DIRS := $(LIBAWT_EXTRA_HEADER_DIRS), \
 145     DISABLED_WARNINGS_gcc := sign-compare unused-result maybe-uninitialized \
 146         format-nonliteral parentheses unused-value unused-function, \
 147     DISABLED_WARNINGS_clang := logical-op-parentheses extern-initializer \
 148         sign-compare format-nonliteral, \
 149     DISABLED_WARNINGS_microsoft := 4244 4267 4996, \
 150     LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN), \
 151     LDFLAGS_macosx := -L$(INSTALL_LIBRARIES_HERE), \
 152     LDFLAGS_windows := -delayload:user32.dll -delayload:gdi32.dll \
 153         -delayload:shell32.dll -delayload:winmm.dll \
 154         -delayload:winspool.drv -delayload:imm32.dll \
 155         -delayload:ole32.dll -delayload:comdlg32.dll \
 156         -delayload:comctl32.dll -delayload:shlwapi.dll, \
 157     LIBS_unix := -ljvm -ljava $(LIBM), \
 158     LIBS_linux :=  $(LIBDL), \
 159     LIBS_aix := $(LIBDL),\
 160     LIBS_macosx := -lmlib_image \
 161         -framework Cocoa \
 162         -framework OpenGL \
 163         -framework JavaNativeFoundation \
 164         -framework JavaRuntimeSupport \
 165         -framework ApplicationServices \
 166         -framework AudioToolbox, \
 167     LIBS_windows := kernel32.lib user32.lib gdi32.lib winspool.lib \
 168         imm32.lib ole32.lib uuid.lib shell32.lib \
 169         comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \
 170         delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib, \
 171     VERSIONINFO_RESOURCE := $(LIBAWT_VERSIONINFO_RESOURCE), \
 172     EXTRA_RCFLAGS := $(LIBAWT_RCFLAGS), \
 173 ))
 174 
 175 $(BUILD_LIBAWT): $(call FindLib, java.base, java)
 176 
 177 ifeq ($(call isTargetOs, macosx), true)
 178   $(BUILD_LIBAWT): $(BUILD_LIBMLIB_IMAGE)
 179 endif
 180 
 181 TARGETS += $(BUILD_LIBAWT)
 182 
 183 ################################################################################
 184 
 185 ifeq ($(call isTargetOs, windows macosx), false)
 186   ifeq ($(ENABLE_HEADLESS_ONLY), false)
 187 
 188     LIBAWT_XAWT_EXTRA_SRC := \
 189         common/awt \
 190         common/java2d \
 191         common/font \
 192         #
 193 
 194     LIBAWT_XAWT_EXCLUDES := medialib debug
 195 
 196     LIBAWT_XAWT_EXTRA_HEADER_DIRS := \
 197         $(LIBAWT_DEFAULT_HEADER_DIRS) \
 198         libawt_xawt/awt \
 199         include \
 200         common/awt/debug \
 201         common/awt/systemscale \
 202         common/font \
 203         common/java2d/opengl \
 204         common/java2d/x11 \
 205         #
 206 
 207     LIBAWT_XAWT_CFLAGS += -DXAWT -DXAWT_HACK \
 208         $(FONTCONFIG_CFLAGS) \
 209         $(CUPS_CFLAGS)
 210 
 211     ifeq ($(call isTargetOs, linux), true)
 212       ifeq ($(DISABLE_XRENDER), true)
 213         LIBAWT_XAWT_CFLAGS += -DDISABLE_XRENDER_BY_DEFAULT=true
 214       endif
 215     endif
 216 
 217     LIBAWT_XAWT_LIBS := $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm
 218 
 219     ifeq ($(call isTargetOs, linux), true)
 220       LIBAWT_XAWT_LIBS += -lpthread
 221     endif
 222 
 223     ifeq ($(TOOLCHAIN_TYPE), gcc)
 224       # Turn off all warnings for the following files since they contain warnings
 225       # that cannot be turned of individually.
 226       # redefining a macro
 227       BUILD_LIBAWT_XAWT_gtk2_interface.c_CFLAGS := -w
 228       # comparison between pointer and integer
 229       BUILD_LIBAWT_XAWT_awt_Font.c_CFLAGS := -w
 230       # initializing a declared 'extern'
 231       BUILD_LIBAWT_XAWT_debug_mem.c_CFLAGS := -w
 232     endif
 233 
 234     $(eval $(call SetupJdkLibrary, BUILD_LIBAWT_XAWT, \
 235         NAME := awt_xawt, \
 236         EXTRA_SRC := $(LIBAWT_XAWT_EXTRA_SRC), \
 237         EXTRA_HEADER_DIRS := $(LIBAWT_XAWT_EXTRA_HEADER_DIRS), \
 238         EXCLUDES := $(LIBAWT_XAWT_EXCLUDES), \
 239         OPTIMIZATION := LOW, \
 240         CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \
 241             $(X_CFLAGS), \
 242         WARNINGS_AS_ERRORS_xlc := false, \
 243         DISABLED_WARNINGS_gcc := type-limits pointer-to-int-cast \
 244             unused-result maybe-uninitialized format \
 245             format-security int-to-pointer-cast parentheses \
 246             implicit-fallthrough undef unused-function, \
 247         DISABLED_WARNINGS_clang := parentheses format undef \
 248             logical-op-parentheses format-nonliteral int-conversion, \
 249         LDFLAGS := $(LDFLAGS_JDKLIB) \
 250             $(call SET_SHARED_LIBRARY_ORIGIN) \
 251             -L$(INSTALL_LIBRARIES_HERE), \
 252         LIBS :=  $(X_LIBS) $(LIBAWT_XAWT_LIBS), \
 253     ))
 254 
 255     $(BUILD_LIBAWT_XAWT): $(call FindLib, java.base, java)
 256 
 257     $(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT)
 258 
 259     TARGETS += $(BUILD_LIBAWT_XAWT)
 260 
 261   endif
 262 endif
 263 
 264 ################################################################################
 265 
 266 # The fast floor code loses precision.
 267 LCMS_CFLAGS=-DCMS_DONT_USE_FAST_FLOOR
 268 
 269 ifeq ($(USE_EXTERNAL_LCMS), true)
 270   # If we're using an external library, we'll just need the wrapper part.
 271   # By including it explicitly, all other files will be excluded.
 272   BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c
 273   # If we're using an external library, we can't include our own SRC path
 274   # as includes, instead the system headers should be used.
 275   LIBLCMS_HEADERS_FROM_SRC := false
 276 else
 277   BUILD_LIBLCMS_INCLUDE_FILES :=
 278 endif
 279 
 280 ifeq ($(TOOLCHAIN_TYPE), clang)
 281  ifeq ($(TOOLCHAIN_VERSION), 10.1)
 282    # Work around an optimizer bug seen with Xcode 10.1, but fixed by 10.3
 283    BUILD_LIBLCMS_cmsopt.c_CFLAGS := -O0
 284  endif
 285 endif
 286 
 287 $(eval $(call SetupJdkLibrary, BUILD_LIBLCMS, \
 288     NAME := lcms, \
 289     INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \
 290     OPTIMIZATION := HIGHEST, \
 291     CFLAGS := $(CFLAGS_JDKLIB) \
 292         $(LCMS_CFLAGS), \
 293     CFLAGS_windows := -DCMS_IS_WINDOWS_, \
 294     EXTRA_HEADER_DIRS := \
 295         common/awt/debug \
 296         libawt/java2d, \
 297     HEADERS_FROM_SRC := $(LIBLCMS_HEADERS_FROM_SRC), \
 298     DISABLED_WARNINGS_gcc := format-nonliteral type-limits \
 299         misleading-indentation undef unused-function stringop-truncation, \
 300     DISABLED_WARNINGS_clang := tautological-compare format-nonliteral undef, \
 301     DISABLED_WARNINGS_microsoft := 4819, \
 302     LDFLAGS := $(LDFLAGS_JDKLIB) \
 303         $(call SET_SHARED_LIBRARY_ORIGIN), \
 304     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 305     LIBS_unix := -lawt -ljvm -ljava $(LCMS_LIBS) $(LIBM), \
 306     LIBS_windows := $(WIN_AWT_LIB) $(WIN_JAVA_LIB), \
 307 ))
 308 
 309 TARGETS += $(BUILD_LIBLCMS)
 310 
 311 $(BUILD_LIBLCMS): $(BUILD_LIBAWT)
 312 
 313 ################################################################################
 314 
 315 # "DISABLED_WARNINGS_gcc := clobbered" rationale:
 316 # Suppress gcc warnings like "variable might be clobbered by 'longjmp'
 317 # or 'vfork'": this warning indicates that some variable is placed to
 318 # a register by optimized compiler and it's value might be lost on longjmp().
 319 # Recommended way to avoid such warning is to declare the variable as
 320 # volatile to prevent the optimization. However, this approach does not
 321 # work because we have to declare all variables as volatile in result.
 322 
 323 ifeq ($(USE_EXTERNAL_LIBJPEG), true)
 324   LIBJPEG_LIBS := -ljpeg
 325   BUILD_LIBJAVAJPEG_INCLUDE_FILES := \
 326       imageioJPEG.c \
 327       jpegdecoder.c
 328   # If we're using an external library, we can't include our own SRC path
 329   # as includes, instead the system headers should be used.
 330   LIBJPEG_HEADERS_FROM_SRC := false
 331 else
 332   LIBJPEG_LIBS :=
 333   BUILD_LIBJAVAJPEG_INCLUDE_FILES :=
 334 endif
 335 
 336 $(eval $(call SetupJdkLibrary, BUILD_LIBJAVAJPEG, \
 337     NAME := javajpeg, \
 338     INCLUDE_FILES := $(BUILD_LIBJAVAJPEG_INCLUDE_FILES), \
 339     OPTIMIZATION := HIGHEST, \
 340     CFLAGS := $(CFLAGS_JDKLIB), \
 341     HEADERS_FROM_SRC := $(LIBJPEG_HEADERS_FROM_SRC), \
 342     DISABLED_WARNINGS_gcc := clobbered implicit-fallthrough shift-negative-value, \
 343     LDFLAGS := $(LDFLAGS_JDKLIB) \
 344         $(call SET_SHARED_LIBRARY_ORIGIN), \
 345     LIBS := $(LIBJPEG_LIBS) $(JDKLIB_LIBS), \
 346     LIBS_windows := $(WIN_JAVA_LIB) jvm.lib, \
 347 ))
 348 
 349 $(BUILD_LIBJAVAJPEG): $(call FindLib, java.base, java)
 350 
 351 TARGETS += $(BUILD_LIBJAVAJPEG)
 352 
 353 ################################################################################
 354 
 355 # Mac and Windows only use the native AWT lib, do not build libawt_headless
 356 ifeq ($(call isTargetOs, windows macosx), false)
 357 
 358   LIBAWT_HEADLESS_EXTRA_SRC := \
 359       common/font \
 360       common/java2d \
 361       $(TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \
 362       #
 363 
 364   LIBAWT_HEADLESS_EXCLUDES := medialib
 365 
 366   LIBAWT_HEADLESS_EXTRA_HEADER_DIRS := \
 367       $(LIBAWT_DEFAULT_HEADER_DIRS) \
 368       common/awt/debug \
 369       common/font \
 370       common/java2d/opengl \
 371       #
 372 
 373   LIBAWT_HEADLESS_CFLAGS := $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) $(X_CFLAGS) \
 374       -DHEADLESS=true
 375 
 376   $(eval $(call SetupJdkLibrary, BUILD_LIBAWT_HEADLESS, \
 377       NAME := awt_headless, \
 378       EXTRA_SRC := $(LIBAWT_HEADLESS_EXTRA_SRC), \
 379       EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \
 380       OPTIMIZATION := LOW, \
 381       CFLAGS := $(CFLAGS_JDKLIB) \
 382           $(LIBAWT_HEADLESS_CFLAGS), \
 383       EXTRA_HEADER_DIRS := $(LIBAWT_HEADLESS_EXTRA_HEADER_DIRS), \
 384       DISABLED_WARNINGS_gcc := unused-function, \
 385       LDFLAGS := $(LDFLAGS_JDKLIB) \
 386           $(call SET_SHARED_LIBRARY_ORIGIN), \
 387       LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 388       LIBS_unix := -lawt -ljvm -ljava, \
 389       LIBS_linux := $(LIBM) $(LIBDL), \
 390   ))
 391 
 392   $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
 393 
 394   TARGETS += $(BUILD_LIBAWT_HEADLESS)
 395 
 396 endif
 397 
 398 ################################################################################
 399 
 400 ifeq ($(FREETYPE_TO_USE), system)
 401   # For use by libfontmanager:
 402   LIBFREETYPE_CFLAGS := $(FREETYPE_CFLAGS)
 403   LIBFREETYPE_LIBS := $(FREETYPE_LIBS)
 404 else
 405   BUILD_LIBFREETYPE_HEADER_DIRS := $(TOPDIR)/src/$(MODULE)/share/native/libfreetype/include
 406   BUILD_LIBFREETYPE_CFLAGS := -DFT2_BUILD_LIBRARY $(EXPORT_ALL_SYMBOLS)
 407 
 408   # For use by libfontmanager:
 409   LIBFREETYPE_CFLAGS := -I$(BUILD_LIBFREETYPE_HEADER_DIRS)
 410   ifeq ($(call isTargetOs, windows), true)
 411     LIBFREETYPE_LIBS := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfreetype/freetype.lib
 412     # freetype now requires you to manually define this (see ftconfig.h)
 413     BUILD_LIBFREETYPE_CFLAGS += -DDLL_EXPORT
 414   else
 415     LIBFREETYPE_LIBS := -lfreetype
 416   endif
 417 
 418   $(eval $(call SetupJdkLibrary, BUILD_LIBFREETYPE, \
 419       NAME := freetype, \
 420       OPTIMIZATION := HIGHEST, \
 421       CFLAGS := $(CFLAGS_JDKLIB) \
 422           $(BUILD_LIBFREETYPE_CFLAGS), \
 423       EXTRA_HEADER_DIRS := $(BUILD_LIBFREETYPE_HEADER_DIRS), \
 424       DISABLED_WARNINGS_microsoft := 4018 4267 4244 4312 4819, \
 425       DISABLED_WARNINGS_gcc := implicit-fallthrough cast-function-type bad-function-cast, \
 426       LDFLAGS := $(LDFLAGS_JDKLIB) \
 427           $(call SET_SHARED_LIBRARY_ORIGIN), \
 428   ))
 429 
 430   TARGETS += $(BUILD_LIBFREETYPE)
 431 endif
 432 
 433 ###########################################################################
 434 
 435 ifeq ($(USE_EXTERNAL_HARFBUZZ), true)
 436   LIBHARFBUZZ_LIBS := $(HARFBUZZ_LIBS)
 437 else
 438 HARFBUZZ_CFLAGS := -DHAVE_OT -DHAVE_FALLBACK -DHAVE_UCDN -DHAVE_ROUND
 439 
 440 # This is better than adding EXPORT_ALL_SYMBOLS
 441 ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
 442   HARFBUZZ_CFLAGS += -DHB_EXTERN=__attribute__\(\(visibility\(\"default\"\)\)\)
 443 else ifeq ($(TOOLCHAIN_TYPE), microsoft)
 444   HARFBUZZ_CFLAGS += -DHB_EXTERN=__declspec\(dllexport\)
 445 endif
 446 
 447 ifeq ($(call isTargetOs, windows), false)
 448   HARFBUZZ_CFLAGS += -DGETPAGESIZE -DHAVE_MPROTECT -DHAVE_PTHREAD \
 449                       -DHAVE_SYSCONF -DHAVE_SYS_MMAN_H -DHAVE_UNISTD_H \
 450                       -DHB_NO_PRAGMA_GCC_DIAGNOSTIC
 451 endif
 452 ifeq ($(call isTargetOs, linux macosx), true)
 453   HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES
 454 endif
 455 ifeq ($(call isTargetOs, macosx), true)
 456   HARFBUZZ_CFLAGS += -DHAVE_CORETEXT
 457 endif
 458 ifeq ($(call isTargetOs, macosx), false)
 459   LIBHARFBUZZ_EXCLUDE_FILES += harfbuzz/hb-coretext.cc
 460 endif
 461 # hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
 462 LIBHARFBUZZ_EXCLUDE_FILES += harfbuzz/hb-ft.cc
 463 
 464 LIBHARFBUZZ_CFLAGS += $(HARFBUZZ_CFLAGS)
 465 
 466 # For use by libfontmanager:
 467 ifeq ($(call isTargetOs, windows), true)
 468   LIBHARFBUZZ_LIBS := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libharfbuzz/harfbuzz.lib
 469 else
 470   LIBHARFBUZZ_LIBS := -lharfbuzz
 471 endif
 472 
 473 LIBHARFBUZZ_EXTRA_HEADER_DIRS := \
 474     libharfbuzz/hb-ucdn \
 475     #
 476 
 477 LIBHARFBUZZ_OPTIMIZATION := HIGH
 478 
 479 LIBHARFBUZZ_CFLAGS += $(X_CFLAGS) -DLE_STANDALONE -DHEADLESS
 480 
 481 $(eval $(call SetupJdkLibrary, BUILD_LIBHARFBUZZ, \
 482     NAME := harfbuzz, \
 483     EXCLUDE_FILES := $(LIBHARFBUZZ_EXCLUDE_FILES), \
 484     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 485     CFLAGS := $(CFLAGS_JDKLIB) $(LIBHARFBUZZ_CFLAGS), \
 486     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBHARFBUZZ_CFLAGS), \
 487     OPTIMIZATION := $(LIBHARFBUZZ_OPTIMIZATION), \
 488     CFLAGS_windows = -DCC_NOEX, \
 489     EXTRA_HEADER_DIRS := $(LIBHARFBUZZ_EXTRA_HEADER_DIRS), \
 490     WARNINGS_AS_ERRORS_xlc := false, \
 491     DISABLED_WARNINGS_gcc := type-limits missing-field-initializers strict-aliasing, \
 492     DISABLED_WARNINGS_CXX_gcc := reorder delete-non-virtual-dtor strict-overflow \
 493         maybe-uninitialized class-memaccess, \
 494     DISABLED_WARNINGS_clang := unused-value incompatible-pointer-types \
 495         tautological-constant-out-of-range-compare int-to-pointer-cast \
 496         undef missing-field-initializers, \
 497     DISABLED_WARNINGS_microsoft := 4267 4244 4090 4146 4334 4819 4101 4068 4805 4138, \
 498     LDFLAGS := $(LDFLAGS_JDKLIB) \
 499         $(call SET_SHARED_LIBRARY_ORIGIN), \
 500     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 501     LDFLAGS_aix := -Wl$(COMMA)-berok, \
 502     LIBS := $(BUILD_LIBHARFBUZZ), \
 503     LIBS_unix := $(LIBM) $(LIBCXX), \
 504     LIBS_macosx := -framework CoreText -framework CoreFoundation -framework CoreGraphics, \
 505     LIBS_windows := user32.lib, \
 506 ))
 507 
 508 ifeq ($(FREETYPE_TO_USE), bundled)
 509   $(BUILD_LIBHARFBUZZ): $(BUILD_LIBFREETYPE)
 510 endif
 511 
 512 TARGETS += $(BUILD_LIBHARFBUZZ)
 513 
 514 endif
 515 
 516 ###########################################################################
 517 
 518 LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
 519     libharfbuzz \
 520     common/awt \
 521     common/font \
 522     libawt/java2d \
 523     libawt/java2d/pipe \
 524     libawt/java2d/loops \
 525     #
 526 
 527 LIBFONTMANAGER_CFLAGS += $(LIBFREETYPE_CFLAGS) $(HARFBUZZ_FLAGS)
 528 BUILD_LIBFONTMANAGER_FONTLIB += $(LIBHARFBUZZ_LIBS) $(LIBFREETYPE_LIBS)
 529 
 530 LIBFONTMANAGER_OPTIMIZATION := HIGH
 531 
 532 ifeq ($(call isTargetOs, windows), true)
 533   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 534       X11TextRenderer.c
 535   LIBFONTMANAGER_OPTIMIZATION := HIGHEST
 536 else ifeq ($(call isTargetOs, macosx), true)
 537   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 538       X11TextRenderer.c \
 539       fontpath.c \
 540       lcdglyph.c
 541 else
 542   LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \
 543       lcdglyph.c
 544 endif
 545 
 546 LIBFONTMANAGER_CFLAGS += $(X_CFLAGS) -DLE_STANDALONE -DHEADLESS
 547 
 548 ifeq ($(TOOLCHAIN_TYPE), gcc)
 549   # Turn off all warnings for sunFont.c. This is needed because the specific warning
 550   # about discarding 'const' qualifier cannot be turned off individually.
 551   BUILD_LIBFONTMANAGER_sunFont.c_CFLAGS := -w
 552 endif
 553 
 554 # LDFLAGS clarification:
 555 #   Filter relevant linker flags disallowing unresolved symbols as we cannot
 556 #   build-time decide to which library to link against (libawt_headless or
 557 #   libawt_xawt). See JDK-8196516 for details.
 558 $(eval $(call SetupJdkLibrary, BUILD_LIBFONTMANAGER, \
 559     NAME := fontmanager, \
 560     EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \
 561         AccelGlyphCache.c, \
 562     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 563     CFLAGS := $(CFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 564     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 565     OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \
 566     CFLAGS_windows = -DCC_NOEX, \
 567     EXTRA_HEADER_DIRS := $(LIBFONTMANAGER_EXTRA_HEADER_DIRS), \
 568     WARNINGS_AS_ERRORS_xlc := false, \
 569     DISABLED_WARNINGS_gcc := sign-compare unused-function, \
 570     DISABLED_WARNINGS_clang := sign-compare, \
 571     DISABLED_WARNINGS_microsoft := 4018 4146 4244 4996, \
 572     LDFLAGS := $(subst -Xlinker -z -Xlinker defs,, \
 573         $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB))) $(LDFLAGS_CXX_JDK) \
 574         $(call SET_SHARED_LIBRARY_ORIGIN), \
 575     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 576     LDFLAGS_aix := -Wl$(COMMA)-berok, \
 577     LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \
 578     LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \
 579     LIBS_macosx := -lawt_lwawt, \
 580     LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
 581         $(WIN_AWT_LIB), \
 582 ))
 583 
 584 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
 585 
 586 ifeq ($(USE_EXTERNAL_HARFBUZZ), false)
 587   $(BUILD_LIBFONTMANAGER): $(BUILD_LIBHARFBUZZ)
 588 endif
 589 
 590 ifeq ($(call isTargetOs, macosx), true)
 591   $(BUILD_LIBFONTMANAGER): $(call FindLib, $(MODULE), awt_lwawt)
 592 endif
 593 
 594 ifeq ($(FREETYPE_TO_USE), bundled)
 595   $(BUILD_LIBFONTMANAGER): $(BUILD_LIBFREETYPE)
 596 endif
 597 
 598 TARGETS += $(BUILD_LIBFONTMANAGER)
 599 
 600 ################################################################################
 601 
 602 ifeq ($(call isTargetOs, windows), true)
 603 
 604   LIBJAWT_CFLAGS := -EHsc -DUNICODE -D_UNICODE
 605 
 606   LIBJAWT_EXTRA_HEADER_DIRS := \
 607       include \
 608       common/awt/debug \
 609       libawt/awt/image/cvutils \
 610       libawt/java2d \
 611       libawt/java2d/windows \
 612       libawt/windows \
 613       java.base:include \
 614       java.base:libjava \
 615       #
 616 
 617   ifeq ($(call isTargetCpu, x86), true)
 618     KERNEL32_LIB := kernel32.lib
 619   endif
 620 
 621   $(eval $(call SetupJdkLibrary, BUILD_LIBJAWT, \
 622       NAME := jawt, \
 623       OPTIMIZATION := LOW, \
 624       CFLAGS := $(CXXFLAGS_JDKLIB) \
 625           $(LIBJAWT_CFLAGS), \
 626       EXTRA_HEADER_DIRS := $(LIBJAWT_EXTRA_HEADER_DIRS), \
 627       LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
 628       LIBS := $(JDKLIB_LIBS) $(KERNEL32_LIB) advapi32.lib $(WIN_AWT_LIB), \
 629   ))
 630 
 631   $(BUILD_LIBJAWT): $(BUILD_LIBAWT)
 632 
 633   $(eval $(call SetupCopyFiles, COPY_JAWT_LIB, \
 634       FILES := $(BUILD_LIBJAWT_IMPORT_LIBRARY), \
 635       DEST := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
 636   ))
 637 
 638   $(COPY_JAWT_LIB): $(BUILD_LIBJAWT)
 639 
 640   TARGETS += $(COPY_JAWT_LIB)
 641 
 642 else # not windows
 643 
 644   ifeq ($(call isTargetOs, macosx), true)
 645     # libjawt on macosx do not use the unix code
 646     LIBJAWT_EXCLUDE_SRC_PATTERNS := /unix/
 647   endif
 648 
 649   ifeq ($(call isTargetOs, macosx), true)
 650     JAWT_LIBS := -lawt_lwawt
 651   else
 652     JAWT_LIBS := -lawt
 653     ifeq ($(ENABLE_HEADLESS_ONLY), false)
 654       JAWT_LIBS += -lawt_xawt
 655     else
 656       JAWT_LIBS += -lawt_headless
 657       ifeq ($(call isTargetOs, linux), true)
 658         JAWT_CFLAGS += -DHEADLESS
 659       endif
 660     endif
 661   endif
 662 
 663   $(eval $(call SetupJdkLibrary, BUILD_LIBJAWT, \
 664       NAME := jawt, \
 665       EXCLUDE_SRC_PATTERNS := $(LIBJAWT_EXCLUDE_SRC_PATTERNS), \
 666       INCLUDE_FILES := $(JAWT_FILES), \
 667       OPTIMIZATION := LOW, \
 668       CFLAGS := $(CFLAGS_JDKLIB) \
 669           $(JAWT_CFLAGS), \
 670       DISABLED_WARNINGS_clang := sign-compare, \
 671       EXTRA_HEADER_DIRS := \
 672           include \
 673           common/awt, \
 674       LDFLAGS := $(LDFLAGS_JDKLIB) \
 675           $(call SET_SHARED_LIBRARY_ORIGIN), \
 676       LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 677       LDFLAGS_macosx := -Wl$(COMMA)-rpath$(COMMA)@loader_path, \
 678       LIBS_unix := $(JAWT_LIBS) $(JDKLIB_LIBS), \
 679       LIBS_macosx := -framework Cocoa, \
 680   ))
 681 
 682   ifeq ($(ENABLE_HEADLESS_ONLY), false)
 683     $(BUILD_LIBJAWT): $(BUILD_LIBAWT_XAWT)
 684   else
 685     $(BUILD_LIBJAWT): $(call FindLib, $(MODULE), awt_headless)
 686   endif
 687 
 688   ifeq ($(call isTargetOs, macosx), true)
 689    $(BUILD_LIBJAWT): $(call FindLib, $(MODULE), awt_lwawt)
 690   endif
 691 
 692 endif
 693 
 694 TARGETS += $(BUILD_LIBJAWT)
 695 
 696 ################################################################################
 697 
 698 ifeq ($(ENABLE_HEADLESS_ONLY), false)
 699 
 700   LIBSPLASHSCREEN_EXTRA_SRC := \
 701       common/awt/systemscale \
 702       #
 703 
 704   ifeq ($(USE_EXTERNAL_LIBGIF), false)
 705     LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/giflib
 706   else
 707     LIBSPLASHSCREEN_EXCLUDES := giflib
 708     GIFLIB_LIBS := -lgif
 709   endif
 710 
 711   ifeq ($(USE_EXTERNAL_LIBJPEG), false)
 712     # While the following ought to work, it will currently pull in the closed
 713     # additions to this library, and this was not done previously in the build.
 714     # LIBSPLASHSCREEN_EXTRA_SRC += libjavajpeg
 715     LIBSPLASHSCREEN_EXTRA_SRC += $(TOPDIR)/src/java.desktop/share/native/libjavajpeg
 716   else
 717     LIBJPEG_LIBS := -ljpeg
 718   endif
 719 
 720   ifeq ($(USE_EXTERNAL_LIBPNG), false)
 721     LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/libpng
 722   else
 723     LIBSPLASHSCREEN_EXCLUDES += libpng
 724   endif
 725 
 726   ifeq ($(USE_EXTERNAL_LIBZ), false)
 727     LIBSPLASHSCREEN_EXTRA_SRC += java.base:libzip/zlib
 728   endif
 729 
 730   ifeq ($(call isTargetOs, macosx), true)
 731     # libsplashscreen on macosx do not use the unix code
 732     LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS := /unix/
 733   endif
 734 
 735   LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
 736                             -DPNG_ARM_NEON_OPT=0 -DPNG_ARM_NEON_IMPLEMENTATION=0
 737 
 738   ifeq ($(call isTargetOs, linux), true)
 739     ifeq ($(call isTargetCpuArch, ppc), true)
 740       LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
 741     endif
 742   endif
 743 
 744   ifeq ($(call isTargetOs, macosx), true)
 745     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
 746 
 747     BUILD_LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0
 748     BUILD_LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0
 749     BUILD_LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0
 750     BUILD_LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0
 751     BUILD_LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0
 752     BUILD_LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0
 753     BUILD_LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0
 754 
 755   else ifeq ($(call isTargetOs, windows), true)
 756     LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32
 757   else
 758     LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
 759   endif
 760 
 761   LIBSPLASHSCREEN_LIBS :=
 762 
 763   ifeq ($(call isTargetOs, macosx), true)
 764     LIBSPLASHSCREEN_LIBS += \
 765         $(LIBM) -lpthread -liconv -losxapp \
 766         -framework ApplicationServices \
 767         -framework Foundation \
 768         -framework Security \
 769         -framework Cocoa \
 770         -framework JavaNativeFoundation
 771   else ifeq ($(call isTargetOs, windows), true)
 772     LIBSPLASHSCREEN_LIBS += kernel32.lib user32.lib gdi32.lib delayimp.lib $(WIN_JAVA_LIB) jvm.lib
 773   else
 774     LIBSPLASHSCREEN_LIBS += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread -ldl
 775   endif
 776 
 777   LIBSPLASHSCREEN_HEADER_DIRS += \
 778       libosxapp \
 779       java.base:include \
 780       java.base:libjava \
 781       #
 782 
 783   $(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
 784       NAME := splashscreen, \
 785       EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
 786       EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
 787       EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
 788       EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \
 789       OPTIMIZATION := LOW, \
 790       CFLAGS := $(CFLAGS_JDKLIB) $(LIBSPLASHSCREEN_CFLAGS) \
 791           $(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
 792       EXTRA_HEADER_DIRS := $(LIBSPLASHSCREEN_HEADER_DIRS), \
 793       DISABLED_WARNINGS_gcc := sign-compare type-limits unused-result \
 794           maybe-uninitialized shift-negative-value implicit-fallthrough \
 795           unused-function, \
 796       DISABLED_WARNINGS_clang := incompatible-pointer-types sign-compare, \
 797       DISABLED_WARNINGS_microsoft := 4018 4244 4267, \
 798       LDFLAGS := $(LDFLAGS_JDKLIB) \
 799           $(call SET_SHARED_LIBRARY_ORIGIN), \
 800       LDFLAGS_macosx := -L$(INSTALL_LIBRARIES_HERE), \
 801       LDFLAGS_windows := -delayload:user32.dll, \
 802       LIBS := $(JDKLIB_LIBS) $(LIBSPLASHSCREEN_LIBS) $(LIBZ_LIBS) \
 803           $(GIFLIB_LIBS) $(LIBJPEG_LIBS) $(PNG_LIBS), \
 804       LIBS_aix := -liconv, \
 805   ))
 806 
 807   TARGETS += $(BUILD_LIBSPLASHSCREEN)
 808 
 809   ifeq ($(call isTargetOs, macosx), true)
 810     $(BUILD_LIBSPLASHSCREEN): $(call FindLib, $(MODULE), osxapp)
 811   endif
 812 
 813 endif
 814 
 815 ################################################################################
 816 
 817 ifeq ($(call isTargetOs, macosx), true)
 818 
 819   LIBAWT_LWAWT_EXTRA_SRC := \
 820       $(TOPDIR)/src/$(MODULE)/unix/native/common/awt \
 821       $(TOPDIR)/src/$(MODULE)/share/native/common/font \
 822       $(TOPDIR)/src/$(MODULE)/share/native/common/java2d \
 823       #
 824 
 825   LIBAWT_LWAWT_EXTRA_HEADER_DIRS := \
 826       $(LIBAWT_DEFAULT_HEADER_DIRS) \
 827       libawt_lwawt/awt \
 828       libawt_lwawt/font \
 829       libawt_lwawt/java2d/opengl \
 830       include \
 831       common/awt/debug \
 832       common/java2d/opengl \
 833       libosxapp \
 834       #
 835 
 836   LIBAWT_LWAWT_CFLAGS := $(X_CFLAGS) $(X_LIBS)
 837 
 838   LIBAWT_LWAWT_EXFILES := fontpath.c awt_Font.c X11Color.c
 839   LIBAWT_LWAWT_EXCLUDES := $(TOPDIR)/src/$(MODULE)/unix/native/common/awt/medialib
 840 
 841   $(eval $(call SetupJdkLibrary, BUILD_LIBAWT_LWAWT, \
 842       NAME := awt_lwawt, \
 843       EXTRA_SRC := $(LIBAWT_LWAWT_EXTRA_SRC), \
 844       INCLUDE_FILES := $(LIBAWT_LWAWT_FILES), \
 845       EXCLUDE_FILES := $(LIBAWT_LWAWT_EXFILES), \
 846       EXCLUDES := $(LIBAWT_LWAWT_EXCLUDES), \
 847       OPTIMIZATION := LOW, \
 848       CFLAGS := $(CFLAGS_JDKLIB) \
 849           $(LIBAWT_LWAWT_CFLAGS), \
 850       EXTRA_HEADER_DIRS := $(LIBAWT_LWAWT_EXTRA_HEADER_DIRS), \
 851       DISABLED_WARNINGS_clang := incomplete-implementation enum-conversion \
 852           deprecated-declarations objc-method-access bitwise-op-parentheses \
 853           incompatible-pointer-types parentheses-equality extra-tokens \
 854           sign-compare semicolon-before-method-body format-nonliteral undef \
 855           pointer-arith, \
 856       LDFLAGS := $(LDFLAGS_JDKLIB) \
 857           $(call SET_SHARED_LIBRARY_ORIGIN) \
 858           -L$(INSTALL_LIBRARIES_HERE), \
 859       LIBS := -lawt -lmlib_image -losxapp -ljvm $(LIBM) \
 860           -framework Accelerate \
 861           -framework ApplicationServices \
 862           -framework AudioToolbox \
 863           -framework Carbon \
 864           -framework Cocoa \
 865           -framework Security \
 866           -framework ExceptionHandling \
 867           -framework JavaNativeFoundation \
 868           -framework JavaRuntimeSupport \
 869           -framework OpenGL \
 870           -framework QuartzCore -ljava, \
 871   ))
 872 
 873   TARGETS += $(BUILD_LIBAWT_LWAWT)
 874 
 875   $(BUILD_LIBAWT_LWAWT): $(BUILD_LIBAWT)
 876 
 877   $(BUILD_LIBAWT_LWAWT): $(BUILD_LIBMLIB_IMAGE)
 878 
 879   $(BUILD_LIBAWT_LWAWT): $(call FindLib, $(MODULE), osxapp)
 880 
 881   $(BUILD_LIBAWT_LWAWT): $(call FindLib, java.base, java)
 882 
 883 endif
 884 
 885 ################################################################################
 886 
 887 ifeq ($(call isTargetOs, macosx), true)
 888 
 889   $(eval $(call SetupJdkLibrary, BUILD_LIBOSXUI, \
 890       NAME := osxui, \
 891       OPTIMIZATION := LOW, \
 892       CFLAGS := $(CFLAGS_JDKLIB), \
 893       EXTRA_HEADER_DIRS := \
 894           libawt_lwawt/awt \
 895           libosxapp, \
 896       DISABLED_WARNINGS_clang := deprecated-declarations sign-compare, \
 897       LDFLAGS := $(LDFLAGS_JDKLIB) \
 898           $(call SET_SHARED_LIBRARY_ORIGIN) \
 899           -Wl$(COMMA)-rpath$(COMMA)@loader_path \
 900           -L$(INSTALL_LIBRARIES_HERE), \
 901       LIBS := -lawt -losxapp -lawt_lwawt \
 902           -framework Cocoa \
 903           -framework Carbon \
 904           -framework ApplicationServices \
 905           -framework JavaNativeFoundation \
 906           -framework JavaRuntimeSupport \
 907           -ljava -ljvm, \
 908   ))
 909 
 910   TARGETS += $(BUILD_LIBOSXUI)
 911 
 912   $(BUILD_LIBOSXUI): $(BUILD_LIBAWT)
 913 
 914   $(BUILD_LIBOSXUI): $(call FindLib, $(MODULE), osxapp)
 915 
 916   $(BUILD_LIBOSXUI): $(BUILD_LIBAWT_LWAWT)
 917 
 918 endif