1 #
2 # Copyright (c) 2011, 2015, 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
576 SRC := $(LIBAWT_HEADLESS_DIRS), \
577 EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \
578 OPTIMIZATION := LOW, \
579 CFLAGS := $(CFLAGS_JDKLIB) \
580 -DHEADLESS=true \
581 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
582 $(CUPS_CFLAGS) \
583 $(X_CFLAGS) \
584 $(LIBAWT_HEADLESS_CFLAGS), \
585 DISABLED_WARNINGS_gcc := maybe-uninitialized int-to-pointer-cast, \
586 DISABLED_WARNINGS_solstudio := E_DECLARATION_IN_CODE \
587 E_EMPTY_TRANSLATION_UNIT, \
588 MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \
589 LDFLAGS := $(LDFLAGS_JDKLIB) \
590 $(call SET_SHARED_LIBRARY_ORIGIN), \
591 LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
592 LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
593 LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
594 REORDER := $(LIBAWT_HEADLESS_REORDER), \
595 LIBS_unix := -lawt -ljvm -ljava, \
596 LIBS_linux := -lm $(LIBDL), \
597 LIBS_solaris := -lm $(LIBDL) $(LIBCXX) -lc, \
598 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_headless, \
599 ))
600
601 $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
602
603 TARGETS += $(BUILD_LIBAWT_HEADLESS)
604
605 endif
606 endif
607
608 ################################################################################
609
610 LIBFONTMANAGER_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libfontmanager \
611 $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libfontmanager
612 LIBFONTMANAGER_CFLAGS := \
613 $(addprefix -I, $(shell $(FIND) \
614 $(LIBFONTMANAGER_SRC) \
615 $(JDK_TOPDIR)/src/java.desktop/share/native/libawt \
616 $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt \
617 $(JDK_TOPDIR)/src/java.desktop/share/native/common \
|
1 #
2 # Copyright (c) 2011, 2016, 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
576 SRC := $(LIBAWT_HEADLESS_DIRS), \
577 EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \
578 OPTIMIZATION := LOW, \
579 CFLAGS := $(CFLAGS_JDKLIB) \
580 -DHEADLESS=true \
581 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
582 $(CUPS_CFLAGS) \
583 $(X_CFLAGS) \
584 $(LIBAWT_HEADLESS_CFLAGS), \
585 DISABLED_WARNINGS_gcc := maybe-uninitialized int-to-pointer-cast, \
586 DISABLED_WARNINGS_solstudio := E_DECLARATION_IN_CODE \
587 E_EMPTY_TRANSLATION_UNIT, \
588 MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \
589 LDFLAGS := $(LDFLAGS_JDKLIB) \
590 $(call SET_SHARED_LIBRARY_ORIGIN), \
591 LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
592 LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
593 LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
594 REORDER := $(LIBAWT_HEADLESS_REORDER), \
595 LIBS_unix := -lawt -ljvm -ljava, \
596 LIBS_linux := $(LIBM) $(LIBDL), \
597 LIBS_solaris := $(LIBM) $(LIBDL) $(LIBCXX) -lc, \
598 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_headless, \
599 ))
600
601 $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
602
603 TARGETS += $(BUILD_LIBAWT_HEADLESS)
604
605 endif
606 endif
607
608 ################################################################################
609
610 LIBFONTMANAGER_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libfontmanager \
611 $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libfontmanager
612 LIBFONTMANAGER_CFLAGS := \
613 $(addprefix -I, $(shell $(FIND) \
614 $(LIBFONTMANAGER_SRC) \
615 $(JDK_TOPDIR)/src/java.desktop/share/native/libawt \
616 $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt \
617 $(JDK_TOPDIR)/src/java.desktop/share/native/common \
|