|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 COMPONENT_NAME = jrt |
|
18 |
|
19 include $(JAVA_SRC_ROOT)/build/Makefile.defs |
|
20 |
|
21 # Using from component |
|
22 # make -f %JAVA_SRC_ROOT%/build/Makefile.comp |
|
23 # |
|
24 # Overridable definitions |
|
25 # Symbian: |
|
26 # NO_DEPENDENCIES=-nd # ignore symbian dependencies on makmake |
|
27 # REALABLD=1 # use real abld (does not stop on errors) |
|
28 # |
|
29 # General: |
|
30 # SKIPTARGETS # list of targets not to be built e.g. |
|
31 # # "SKIPTARGETS=javaextensions javamanager" |
|
32 |
|
33 |
|
34 # ------------------------------------------------------- |
|
35 # Define which kind of rules are used |
|
36 |
|
37 # Platform APIs and stub sis files are needed only in Symbian builds |
|
38 ifeq ($(BUILDENV),symbian) |
|
39 |
|
40 ifdef RD_JAVA_UI_QT |
|
41 # Java compilation is added as a pro-file component on Qt builds, so that |
|
42 # Java is first in created top level bld.inf. This is required so that |
|
43 # abld executes the sub-generation for Java on makmake phase, before trying |
|
44 # to do makmake for actual components using those (stub) source files. |
|
45 COMPONENTS += build/nativejava |
|
46 else |
|
47 # Java compilation is added as bld.inf, as non-Qt builds rewrite the generated |
|
48 # bld.inf files with their own, and the build/bld.inf is automatically first. |
|
49 NONQTSUBSYSTEMS += build |
|
50 endif |
|
51 |
|
52 NONQTSUBSYSTEMS += \ |
|
53 jrt_plat/group |
|
54 endif |
|
55 |
|
56 SUBSYSTEMS += \ |
|
57 javacommons \ |
|
58 javaruntimes \ |
|
59 javauis \ |
|
60 javamanager \ |
|
61 javatools \ |
|
62 javaextensions |
|
63 |
|
64 # ------------------------------------------------------- |
|
65 |
|
66 include ${JAVA_SRC_ROOT}/build/Makefile.subsystem |
|
67 |
|
68 # Prepare delivery for S60/SF |
|
69 prep: sysdefsetup generatereleasefile |
|
70 ifdef RD_JAVA_S60_RELEASE_9_2 |
|
71 prep: configure qmake |
|
72 endif |
|
73 |
|
74 SYSDEF_TEMPLATE = $(JAVA_SRC_ROOT)/build/templates/$(RD_JAVA_S60_RELEASE).layers.sysdef.xml |
|
75 sysdefsetup: |
|
76 $(call CATCOMMAND,$(wildcard $(SYSDEF_TEMPLATE)))>$(JAVA_SRC_ROOT)/layers.sysdef.xml |
|
77 |
|
78 # Cleaning java from top level cleans also the API jars |
|
79 clean_java: cleanapijars |
|
80 cleanapijars: |
|
81 $(ANT) -f $(JAVA_SRC_ROOT)/build/utilities.xml -q -Dtarget.platform=$(PLATFORM) -Dtarget.cfg=$(VARIANT) clean.api.jars |
|
82 |
|
83 # Release build for build automation (sbs case is optimized to build on one go) |
|
84 releasebuild: build_all |
|
85 ifeq ($(BUILDENV),symbian) |
|
86 $(MAKE) -C $(JAVA_SRC_ROOT)/build/sis all deploy |
|
87 endif |
|
88 |
|
89 # Generate jar for signature testings. |
|
90 finalactions:signature |
|
91 |
|
92 signature: |
|
93 $(ANT) -f $(JAVA_SRC_ROOT)/build/utilities.xml -q -Dtarget.platform=$(PLATFORM) -Dtarget.cfg=$(VARIANT) $(ANT_PROJECT_DEFINES) generate.signature.jars |
|
94 |
|
95 javareleasables: commonjavareleasables |
|
96 |
|
97 commonjavareleasables: |
|
98 $(ANT) -f $(JAVA_SRC_ROOT)/build/utilities.xml -q -Dtarget.platform=$(PLATFORM) -Dtarget.cfg=$(VARIANT) $(ANT_PROJECT_DEFINES) common.releasables > $(DEVNULL) |
|
99 $(call CATCOMMAND,$(JAVA_SRC_ROOT)/build/java_releasables_$(PLATFORM)_$(VARIANT).tmp) |
|
100 $(call RMFILE,$(JAVA_SRC_ROOT)/build/java_releasables_$(PLATFORM)_$(VARIANT).tmp) |
|
101 |
|
102 |
|
103 |
|
104 ifdef RD_JAVA_S60_RELEASE_5_0 |
|
105 # Clean old middleware exports, as Java now uses application layer. |
|
106 # This is needed when ever building on top of fresh S60 5.0 environment |
|
107 |
|
108 configure: clean_s60_middleware |
|
109 clean_s60_middleware: |
|
110 -@if exist \epoc32\include\domain\middleware\midp2permissiondb.h del /Q \epoc32\include\domain\middleware\midp2permissiondb.h |
|
111 -@if exist \epoc32\include\domain\middleware\javaattribute.h del /Q \epoc32\include\domain\middleware\javaattribute.h |
|
112 -@if exist \epoc32\include\domain\middleware\javadomainpskeys.h del /Q \epoc32\include\domain\middleware\javadomainpskeys.h |
|
113 -@if exist \epoc32\include\domain\middleware\javaenvinfo.h del /Q \epoc32\include\domain\middleware\javaenvinfo.h |
|
114 -@if exist \epoc32\include\domain\middleware\javaregistry.h del /Q \epoc32\include\domain\middleware\javaregistry.h |
|
115 -@if exist \epoc32\include\domain\middleware\javaregistryapplicationentry.h del /Q \epoc32\include\domain\middleware\javaregistryapplicationentry.h |
|
116 -@if exist \epoc32\include\domain\middleware\javaregistryentry.h del /Q \epoc32\include\domain\middleware\javaregistryentry.h |
|
117 -@if exist \epoc32\include\domain\middleware\javaregistryentrytype.h del /Q \epoc32\include\domain\middleware\javaregistryentrytype.h |
|
118 -@if exist \epoc32\include\domain\middleware\javaregistryincludes.h del /Q \epoc32\include\domain\middleware\javaregistryincludes.h |
|
119 -@if exist \epoc32\include\domain\middleware\javaregistrypackageentry.h del /Q \epoc32\include\domain\middleware\javaregistrypackageentry.h |
|
120 -@if exist \epoc32\include\domain\middleware\mjavaattribute.h del /Q \epoc32\include\domain\middleware\mjavaattribute.h |
|
121 endif |