|
1 # |
|
2 # Copyright (c) 2010 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 include $(JAVA_SRC_ROOT)/build/Makefile.defs |
|
18 |
|
19 NONQTSUBSYSTEMS = \ |
|
20 build \ |
|
21 mainapp/build \ |
|
22 rmsbenchmark/build |
|
23 |
|
24 COMPONENTS = \ |
|
25 rmsplugin/build |
|
26 |
|
27 include $(JAVA_SRC_ROOT)/build/Makefile.subsystem |
|
28 |
|
29 TEST_ROOT=$(JAVA_SRC_ROOT)/javaextensions/midprms_db/tsrc/build |
|
30 |
|
31 TEST_JAD=$(TEST_ROOT)/rmstests.jad |
|
32 TEST_JAR=$(TEST_ROOT)/rmstests.jar |
|
33 |
|
34 TEST_JAD2=$(TEST_ROOT)/rmssharedtests.jad |
|
35 TEST_JAR2=$(TEST_ROOT)/rmssharedtests.jar |
|
36 |
|
37 TEST_JAD3=$(TEST_ROOT)/rmsintersuite.jad |
|
38 TEST_JAR3=$(TEST_ROOT)/rmsintersuite.jar |
|
39 |
|
40 ifeq ($(OS),Windows_NT) |
|
41 UPDATE_JAD_CMD=if exist $(TEST_JAD) perl -i.bak -e "$$s=-s'$(TEST_JAR)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/$$s/;}print;}" $(TEST_JAD) |
|
42 UPDATE_JAD_CMD2=if exist $(TEST_JAD2) perl -i.bak -e "$$s=-s'$(TEST_JAR2)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/$$s/;}print;}" $(TEST_JAD2) |
|
43 UPDATE_JAD_CMD3=if exist $(TEST_JAD3) perl -i.bak -e "$$s=-s'$(TEST_JAR3)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/$$s/;}print;}" $(TEST_JAD3) |
|
44 else |
|
45 UPDATE_JAD_CMD=if test -e $(TEST_JAD); then perl -i.bak -e "\$$s=-s'$(TEST_JAR)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/\$$s/;}print;}" $(TEST_JAD); fi |
|
46 UPDATE_JAD_CMD2=if test -e $(TEST_JAD2); then perl -i.bak -e "\$$s=-s'$(TEST_JAR2)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/\$$s/;}print;}" $(TEST_JAD2); fi |
|
47 UPDATE_JAD_CMD3=if test -e $(TEST_JAD3); then perl -i.bak -e "\$$s=-s'$(TEST_JAR3)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/\$$s/;}print;}" $(TEST_JAD3); fi |
|
48 endif |
|
49 |
|
50 run: default_target |
|
51 $(UPDATE_JAD_CMD) |
|
52 $(UPDATE_JAD_CMD2) |
|
53 $(UPDATE_JAD_CMD3) |
|
54 ifeq ($(OS),Windows_NT) |
|
55 echo Copying JAD/JAR files to emulator install dir.. |
|
56 copy $(JAVA_SRC_ROOT)\javaextensions\midprms_db\tsrc\build\*.jar \epoc32\winscw\c\data\Installs |
|
57 copy $(JAVA_SRC_ROOT)\javaextensions\midprms_db\tsrc\build\*.jad \epoc32\winscw\c\data\Installs |
|
58 copy $(JAVA_SRC_ROOT)\javaextensions\midprms_db\tsrc\rmsbenchmark\build\*.jar \epoc32\winscw\c\data\Installs |
|
59 else |
|
60 $(JAVA_BIN_ROOT)/bin/javarms_tester -v |
|
61 sleep 3 |
|
62 $(JAVA_BIN_ROOT)/bin/javainstaller install -jad=$(TEST_JAD) -silent |
|
63 $(JAVA_BIN_ROOT)/bin/javainstaller install -jad=$(TEST_JAD2) -silent |
|
64 $(JAVA_BIN_ROOT)/bin/javainstaller install -jad=$(TEST_JAD3) -silent |
|
65 $(JAVA_BIN_ROOT)/bin/javainstaller test -mainclass=com.nokia.mj.test.rms.RmsMain |
|
66 endif |