< prev index next >

make/lib/Awt2dLibraries.gmk

Print this page




 387     $(BUILD_LIBAWT_XAWT): $(call FindLib, java.base, java)
 388 
 389     $(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT)
 390 
 391     TARGETS += $(BUILD_LIBAWT_XAWT)
 392 
 393   endif
 394 endif
 395 
 396 ################################################################################
 397 
 398 LIBLCMS_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/liblcms
 399 LIBLCMS_CPPFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
 400     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \
 401     -I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \
 402     $(LIBJAVA_HEADER_FLAGS) \
 403     #
 404 # The fast floor code loses precision.
 405 LCMS_CFLAGS=-DCMS_DONT_USE_FAST_FLOOR
 406 





 407 ifeq ($(USE_EXTERNAL_LCMS), true)
 408   # If we're using an external library, we'll just need the wrapper part.
 409   # By including it explicitely, all other files will be excluded.
 410   BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c
 411 else
 412   BUILD_LIBLCMS_INCLUDE_FILES :=
 413   # If we're using the bundled library, we'll need to include it in the
 414   # include path explicitly. Otherwise the system headers will be used.
 415   LIBLCMS_CPPFLAGS += $(addprefix -I, $(LIBLCMS_SRC))
 416 endif
 417 
 418 $(eval $(call SetupNativeCompilation,BUILD_LIBLCMS, \
 419     LIBRARY := lcms, \
 420     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 421     SRC := $(LIBLCMS_SRC), \
 422     INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \
 423     OPTIMIZATION := HIGHEST, \
 424     CFLAGS := $(filter-out -xc99=%none, $(CFLAGS_JDKLIB)) \
 425         $(LIBLCMS_CPPFLAGS) \
 426         $(LCMS_CFLAGS), \




 387     $(BUILD_LIBAWT_XAWT): $(call FindLib, java.base, java)
 388 
 389     $(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT)
 390 
 391     TARGETS += $(BUILD_LIBAWT_XAWT)
 392 
 393   endif
 394 endif
 395 
 396 ################################################################################
 397 
 398 LIBLCMS_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/liblcms
 399 LIBLCMS_CPPFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
 400     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \
 401     -I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \
 402     $(LIBJAVA_HEADER_FLAGS) \
 403     #
 404 # The fast floor code loses precision.
 405 LCMS_CFLAGS=-DCMS_DONT_USE_FAST_FLOOR
 406 
 407 # Avoid warning for GCC 6
 408 ifeq ($(TOOLCHAIN_TYPE), gcc)
 409   LCMS_CFLAGS += -Wno-misleading-indentation
 410 endif
 411 
 412 ifeq ($(USE_EXTERNAL_LCMS), true)
 413   # If we're using an external library, we'll just need the wrapper part.
 414   # By including it explicitely, all other files will be excluded.
 415   BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c
 416 else
 417   BUILD_LIBLCMS_INCLUDE_FILES :=
 418   # If we're using the bundled library, we'll need to include it in the
 419   # include path explicitly. Otherwise the system headers will be used.
 420   LIBLCMS_CPPFLAGS += $(addprefix -I, $(LIBLCMS_SRC))
 421 endif
 422 
 423 $(eval $(call SetupNativeCompilation,BUILD_LIBLCMS, \
 424     LIBRARY := lcms, \
 425     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 426     SRC := $(LIBLCMS_SRC), \
 427     INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \
 428     OPTIMIZATION := HIGHEST, \
 429     CFLAGS := $(filter-out -xc99=%none, $(CFLAGS_JDKLIB)) \
 430         $(LIBLCMS_CPPFLAGS) \
 431         $(LCMS_CFLAGS), \


< prev index next >