sbsv1/buildsystem/extension/syslibs/test/sql_copysqltestfiles.mk
author lorewang
Wed, 01 Dec 2010 16:05:36 +0800
changeset 715 e0739b8406dd
parent 599 fa7a3cc6effd
permissions -rw-r--r--
Specify extenal tool with path
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     7
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    10
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    12
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    13
# Description:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    14
# Copy SQL test files
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
# 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
TMPROOT:=$(subst \,/,$(EPOCROOT))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
ifeq ($(findstring WINS,$(PLATFORM)),WINS)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
	TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/test
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
	TARGETDIR2=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/10281e17
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
	TARGETDIR3=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/21212124
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
	TARGETDIR=$(EPOCROOT)epoc32/data/z/system/test
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
	TARGETDIR2=$(EPOCROOT)epoc32/data/z/private/10281e17
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
	TARGETDIR3=$(EPOCROOT)epoc32/data/z/private/21212124
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
endif
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
SOURCEDIR = $(EXTENSION_ROOT)/../TEST
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
$(TARGETDIR):
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
	$(call createdir, "$@")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
$(TARGETDIR2):
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
	$(call createdir, "$@")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
$(TARGETDIR3):	
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
	$(call createdir, "$@")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
COPYFILES :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
	$(call forcecopy,$(SOURCEDIR)/TestDb1.db,$(TARGETDIR)/testdb1.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
	$(call forcecopy,$(SOURCEDIR)/CorruptDb.db,$(TARGETDIR)/corruptdb.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
	$(call forcecopy,$(SOURCEDIR)/contacts_schema_to_vendors.sql,$(TARGETDIR)/contacts_schema_to_vendors.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
	$(call forcecopy,$(SOURCEDIR)/add_simple_contacts.sql,$(TARGETDIR)/add_simple_contacts.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
	$(call forcecopy,$(SOURCEDIR)/t_SqlShortNonDb.db,$(TARGETDIR)/t_sqlshortnondb.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
	$(call forcecopy,$(SOURCEDIR)/contacts_startup_time.sql,$(TARGETDIR)/contacts_startup_time.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
	$(call forcecopy,$(SOURCEDIR)/t_inc095412.db,$(TARGETDIR)/t_inc095412.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
	$(call forcecopy,$(SOURCEDIR)/{21212122}AADb2.db,$(TARGETDIR2)/[21212122]aadb2.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
	$(call forcecopy,$(SOURCEDIR)/{21212122}BBDb2.db,$(TARGETDIR2)/[21212122]bbdb2.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
	$(call forcecopy,$(SOURCEDIR)/{21212125}T_AB.db,$(TARGETDIR2)/[21212125]t_ab.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
	$(call forcecopy,$(SOURCEDIR)/{1111CCCC}T_AB.db,$(TARGETDIR2)/[1111CCCC]t_ab.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
	$(call forcecopy,$(SOURCEDIR)/{21212125}T_OneDefPolicy.db,$(TARGETDIR2)/[21212125]t_onedefpolicy.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
#	$(call forcecopy,$(SOURCEDIR)/SqlServer.cfg,$(TARGETDIR2)/sqlserver.cfg)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
	$(call forcecopy,$(SOURCEDIR)/t_sqldb1.db,$(TARGETDIR3)/t_sqldb1.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_2defaultpolicies.db,$(TARGETDIR2)/[98765432]t_2defaultpolicies.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_emptysettings.db,$(TARGETDIR2)/[98765432]t_emptysettings.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_invobject.db,$(TARGETDIR2)/[98765432]t_invobject.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    61
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_invversion.db,$(TARGETDIR2)/[98765432]t_invversion.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    62
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_longcollation.db,$(TARGETDIR2)/[98765432]t_longcollation.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    63
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_nocollation.db,$(TARGETDIR2)/[98765432]t_nocollation.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    64
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_nodefaultpolicy.db,$(TARGETDIR2)/[98765432]t_nodefaultpolicy.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    65
	$(call forcecopy,$(SOURCEDIR)/{98765432}t_nosettings.db,$(TARGETDIR2)/[98765432]t_nosettings.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    66
	$(call forcecopy,$(SOURCEDIR)/default_avacon.dbSQL,$(TARGETDIR)/default_avacon.dbSQL)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    67
	$(call forcecopy,$(SOURCEDIR)/t_sqlbur_backup_ver0.bak,$(TARGETDIR)/t_sqlbur_backup_ver0.bak)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    68
	$(call forcecopy,$(SOURCEDIR)/t_sqlperformance4.sql,$(TARGETDIR)/t_sqlperformance4.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    69
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    70
	
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    71
DO_NOTHING :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    72
	@echo do nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    73
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    74
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    75
# The targets invoked by bld...
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    76
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    77
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    78
MAKMAKE : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    79
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    80
BLD : $(TARGETDIR) $(TARGETDIR2) $(TARGETDIR3) $(SOURCEDIR) COPYFILES
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    81
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    82
CLEAN : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    83
	$(call forceremove,$(TARGETDIR)/testdb1.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    84
	$(call forceremove,$(TARGETDIR)/corruptdb.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    85
	$(call forceremove,$(TARGETDIR)/contacts_schema_to_vendors.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    86
	$(call forceremove,$(TARGETDIR)/add_simple_contacts.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    87
	$(call forceremove,$(TARGETDIR)/t_sqlshortnondb.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    88
	$(call forceremove,$(TARGETDIR)/contacts_startup_time.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    89
	$(call forceremove,$(TARGETDIR)/t_inc095412.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    90
	$(call forceremove,$(TARGETDIR2)/[21212122]aadb2.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    91
	$(call forceremove,$(TARGETDIR2)/[21212122]bbdb2.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    92
	$(call forceremove,$(TARGETDIR2)/[21212125]t_ab.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    93
	$(call forceremove,$(TARGETDIR2)/[1111CCCC]t_ab.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    94
	$(call forceremove,$(TARGETDIR2)/[21212125]t_onedefpolicy.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    95
#	$(call forceremove,$(TARGETDIR2)/sqlserver.cfg)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    96
	$(call forceremove,$(TARGETDIR3)/t_sqldb1.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    97
	$(call forceremove,$(TARGETDIR2)/[98765432]t_2defaultpolicies.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    98
	$(call forceremove,$(TARGETDIR2)/[98765432]t_emptysettings.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    99
	$(call forceremove,$(TARGETDIR2)/[98765432]t_invobject.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   100
	$(call forceremove,$(TARGETDIR2)/[98765432]t_invversion.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   101
	$(call forceremove,$(TARGETDIR2)/[98765432]t_longcollation.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   102
	$(call forceremove,$(TARGETDIR2)/[98765432]t_nocollation.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   103
	$(call forceremove,$(TARGETDIR2)/[98765432]t_nodefaultpolicy.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   104
	$(call forceremove,$(TARGETDIR2)/[98765432]t_nosettings.db)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   105
	$(call forceremove,$(TARGETDIR)/default_avacon.dbSQL)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   106
	$(call forceremove,$(TARGETDIR)/t_sqlbur_backup_ver0.bak)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   107
	$(call forceremove,$(TARGETDIR)/t_sqlperformance4.sql)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   108
	
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   109
SAVESPACE : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   110
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   111
RESOURCE : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   112
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   113
FREEZE : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   114
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   115
LIB : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   116
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   117
CLEANLIB : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   118
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   119
FINAL : DO_NOTHING
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   120
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   121
RELEASABLES : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   122
	@echo $(TARGETDIR)/testdb1.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   123
	@echo $(TARGETDIR)/corruptdb.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   124
	@echo $(TARGETDIR)/contacts_schema_to_vendors.sql
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   125
	@echo $(TARGETDIR)/add_simple_contacts.sql
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   126
	@echo $(TARGETDIR)/t_sqlshortnondb.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   127
	@echo $(TARGETDIR)/contacts_startup_time.sql
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   128
	@echo $(TARGETDIR)/t_inc095412.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   129
	@echo $(TARGETDIR2)/[21212122]aadb2.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   130
	@echo $(TARGETDIR2)/[21212122]bbdb2.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   131
	@echo $(TARGETDIR2)/[21212125]t_ab.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   132
	@echo $(TARGETDIR2)/[1111CCCC]t_ab.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   133
	@echo $(TARGETDIR2)/[21212125]t_onedefpolicy.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   134
#	@echo $(TARGETDIR2)/sqlserver.cfg
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   135
	@echo $(TARGETDIR3)/t_sqldb1.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   136
	@echo $(TARGETDIR2)/[98765432]t_2defaultpolicies.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   137
	@echo $(TARGETDIR2)/[98765432]t_emptysettings.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   138
	@echo $(TARGETDIR2)/[98765432]t_invobject.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   139
	@echo $(TARGETDIR2)/[98765432]t_invversion.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   140
	@echo $(TARGETDIR2)/[98765432]t_longcollation.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   141
	@echo $(TARGETDIR2)/[98765432]t_nocollation.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   142
	@echo $(TARGETDIR2)/[98765432]t_nodefaultpolicy.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   143
	@echo $(TARGETDIR2)/[98765432]t_nosettings.db
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   144
	@echo $(TARGETDIR)/default_avacon.dbSQL
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   145
	@echo $(TARGETDIR)/t_sqlbur_backup_ver0.bak
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   146
	@echo $(TARGETDIR)/t_sqlperformance4.sql