|
1 # |
|
2 # Copyright (c) 2011, 2012, 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 GENDATA_FONT_CONFIG_DST := $(JDK_OUTPUTDIR)/lib |
|
27 |
|
28 ifeq ($(PLATFORM), windows) |
|
29 GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows |
|
30 GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
|
31 GENDATA_FONT_CONFIG_SRC_PREFIX := |
|
32 endif |
|
33 |
|
34 ifeq ($(PLATFORM), linux) |
|
35 GENDATA_FONT_CONFIG_SRC_PREFIX := linux. |
|
36 ifdef OPENJDK |
|
37 GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/solaris/classes/sun/awt/fontconfigs |
|
38 GENDATA_FONT_CONFIG_SRC_FILES := \ |
|
39 fontconfig.properties \ |
|
40 fontconfig.SuSE.properties \ |
|
41 fontconfig.Ubuntu.properties \ |
|
42 fontconfig.Fedora.properties |
|
43 else |
|
44 GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/closed/solaris/classes/sun/awt/fontconfigs |
|
45 GENDATA_FONT_CONFIG_SRC_FILES := \ |
|
46 fontconfig.properties \ |
|
47 fontconfig.RedHat.5.properties \ |
|
48 fontconfig.RedHat.6.properties \ |
|
49 fontconfig.Turbo.properties \ |
|
50 fontconfig.SuSE.10.properties \ |
|
51 fontconfig.SuSE.11.properties |
|
52 endif |
|
53 endif |
|
54 |
|
55 ifeq ($(PLATFORM), solaris) |
|
56 GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/solaris/classes/sun/awt/fontconfigs |
|
57 GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
|
58 GENDATA_FONT_CONFIG_SRC_PREFIX := solaris. |
|
59 endif |
|
60 |
|
61 ifeq ($(PLATFORM), macosx) |
|
62 GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/macosx/classes/sun/awt/fontconfigs |
|
63 GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
|
64 GENDATA_FONT_CONFIG_SRC_PREFIX := macosx. |
|
65 endif # PLATFORM |
|
66 |
|
67 ### |
|
68 |
|
69 $(GENDATA_FONT_CONFIG_DST)/%.src : $(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)% |
|
70 $(MKDIR) -p $(@D) |
|
71 $(CP) $< $@ |
|
72 |
|
73 $(GENDATA_FONT_CONFIG_DST)/%.bfc : $(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)%.properties |
|
74 $(MKDIR) -p $(@D) |
|
75 $(TOOL_COMPILEFONTCONFIG) $< $@ |
|
76 |
|
77 ### |
|
78 |
|
79 GENDATA_FONT_CONFIGS := $(GENDATA_FONT_CONFIG_SRC_FILES:%=$(GENDATA_FONT_CONFIG_DST)/%.src) |
|
80 GENDATA_BFONT_CONFIGS := $(GENDATA_FONT_CONFIG_SRC_FILES:%.properties=$(GENDATA_FONT_CONFIG_DST)/%.bfc) |
|
81 |
|
82 GENDATA_FONT_CONFIG := $(GENDATA_FONT_CONFIGS) $(GENDATA_BFONT_CONFIGS) |
|
83 |
|
84 ### |