author | ohair |
Tue, 28 Dec 2010 15:53:50 -0800 | |
changeset 7668 | d4a77089c587 |
parent 5506 | 202f599c92aa |
child 8583 | 15dea0fdc2ea |
permissions | -rw-r--r-- |
2 | 1 |
# |
7668 | 2 |
# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Makefile for building all of JPS (Java Print Service) API |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = ../.. |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2
diff
changeset
|
31 |
MODULE = print |
2 | 32 |
PACKAGE = javax.print |
33 |
PRODUCT = sun |
|
34 |
include $(BUILDDIR)/common/Defs.gmk |
|
35 |
||
36 |
# |
|
37 |
# Files to compile |
|
38 |
# |
|
39 |
AUTO_FILES_JAVA_DIRS = javax/print sun/print |
|
40 |
||
41 |
# |
|
42 |
# Files that just need cp. |
|
43 |
# |
|
44 |
SERVICEDIR = $(CLASSBINDIR)/META-INF/services |
|
45 |
||
46 |
FILES_copy = \ |
|
47 |
$(SERVICEDIR)/javax.print.StreamPrintServiceFactory \ |
|
48 |
$(SERVICEDIR)/javax.print.PrintServiceLookup |
|
49 |
||
50 |
FILES_mkdirs = \ |
|
51 |
$(CLASSBINDIR)/META-INF \ |
|
52 |
$(CLASSBINDIR)/META-INF/services |
|
53 |
||
54 |
FILES_copydirs = \ |
|
55 |
$(FILES_mkdirs) |
|
56 |
||
57 |
# |
|
58 |
# Resources |
|
59 |
# |
|
60 |
LOCALE_SET_DEFINITION = jre |
|
61 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/print/resources/serviceui.properties |
|
62 |
||
63 |
# |
|
64 |
# Rules |
|
65 |
# |
|
66 |
include $(BUILDDIR)/common/Classes.gmk |
|
67 |
||
68 |
# |
|
69 |
# Rules that copy files. |
|
70 |
# |
|
71 |
||
72 |
build: copy-files properties |
|
73 |
||
74 |
_PSFONTPROPS = \ |
|
75 |
psfontj2d.properties \ |
|
76 |
psfont.properties.ja \ |
|
77 |
||
78 |
PSFONTPROPS_SRC = $(SHARE_SRC)/classes/sun/print |
|
79 |
PSFONTPROPS = $(_PSFONTPROPS:%=$(LIBDIR)/%) |
|
80 |
||
81 |
_RESOURCES_PRINT = \ |
|
82 |
orientLandscape.png \ |
|
83 |
orientPortrait.png \ |
|
84 |
orientRevLandscape.png \ |
|
85 |
orientRevPortrait.png \ |
|
86 |
oneside.png \ |
|
87 |
duplex.png \ |
|
88 |
tumble.png |
|
89 |
||
90 |
||
91 |
RESDIR_PRINT = $(CLASSBINDIR)/sun/print/resources |
|
92 |
RESOURCES_PRINT = $(_RESOURCES_PRINT:%=$(RESDIR_PRINT)/%) |
|
93 |
||
94 |
$(LIBDIR)/%: $(PSFONTPROPS_SRC)/% $(FONTPROPS) |
|
95 |
$(install-file) |
|
96 |
||
97 |
$(RESDIR_PRINT)/%: $(SHARE_SRC)/classes/sun/print/resources/% |
|
98 |
$(install-file) |
|
99 |
||
100 |
properties: $(LIBDIR) $(PSFONTPROPS) $(RESOURCES_PRINT) |
|
101 |
||
102 |
properties.clean: |
|
103 |
$(RM) $(PSFONTPROPS) |
|
104 |
$(RM) -r $(RESDIR_PRINT) |
|
105 |
||
106 |
copy-files: $(FILES_copy) |
|
107 |
||
108 |
$(SERVICEDIR)/%: $(PLATFORM_SRC)/classes/sun/print/services/% |
|
109 |
$(install-file) |
|
110 |
||
111 |
# |
|
112 |
# Clean up internal-use-only package. |
|
113 |
# |
|
114 |
clean:: |
|
115 |
$(RM) -r $(CLASSDESTDIR)/javax/print $(CLASSDESTDIR)/sun/print |
|
116 |
||
117 |
.PHONY: copy-files |