|
| 1 | +# =========================================================================== |
| 2 | +# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved |
| 3 | +# =========================================================================== |
| 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. |
| 8 | +# |
| 9 | +# IBM designates this particular file as subject to the "Classpath" exception |
| 10 | +# as provided by IBM in the LICENSE file that accompanied this code. |
| 11 | +# |
| 12 | +# This code is distributed in the hope that it will be useful, but WITHOUT |
| 13 | +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 14 | +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 15 | +# version 2 for more details (a copy is included in the LICENSE file that |
| 16 | +# accompanied this code). |
| 17 | +# |
| 18 | +# You should have received a copy of the GNU General Public License version |
| 19 | +# 2 along with this work; if not, see <http://www.gnu.org/licenses/>. |
| 20 | +# |
| 21 | +# =========================================================================== |
| 22 | + |
| 23 | +################################################################################ |
| 24 | +# Enable the headless mode to avoid compiling X11 related headers |
| 25 | +# in generating the native awt library during the cross-compilation |
| 26 | +# as these headers are not offered in the cross-toolchain. |
| 27 | + |
| 28 | +ifeq ($(OPENJDK_TARGET_CPU)_$(COMPILE_TYPE), riscv64_cross) |
| 29 | + LIBAWT_CFLAGS += -DHEADLESS=true -DRISCV64_CROSS=true |
| 30 | + |
| 31 | + LIBAWT_HEADLESS_EXFILES += \ |
| 32 | + CUPSfuncs.c \ |
| 33 | + fontpath.c \ |
| 34 | + # |
| 35 | + |
| 36 | + LIBAWT_HEADLESS_EXCLUDES += \ |
| 37 | + $(TOPDIR)/src/java.desktop/unix/native/common/java2d \ |
| 38 | + # |
| 39 | +endif |
0 commit comments