sbsv1/buildsystem/test/binaryvariation/UseStaticDLL.cpp
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) 2000-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
// A simple program which uses the statically linked dll  "eulibd1b.dll"
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
// standard example header
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
#include "CommonFramework.h"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
#include "InvariantStaticDLL.h"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
#include "VariantStaticDLL.h"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
_LIT(KTxt1,"statically linked DLL example \n\n");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
#ifdef FEATURE_VARIANT_DEFAULT
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
	_LIT(KTxt2,"Hello from variant_default!");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
#endif
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
#ifdef FEATURE_VARIANT_A
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
	_LIT(KTxt2,"Hello from variant_a!");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
#endif
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
#ifdef FEATURE_VARIANT_B
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
	_LIT(KTxt2,"Hello from variant_b!");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
#endif
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
_LIT(KTxtNewLine,"\n");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
LOCAL_C void doExampleL()
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
	console->Printf(KTxt1);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
	CInvMessenger* myInvMessage = CInvMessenger::NewLC(*console, KTxt2);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
	myInvMessage->ShowMessage();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
	console->Printf(KTxtNewLine);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
	CVarMessenger* myVarMessage = CVarMessenger::NewLC(*console, KTxt2);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
	myVarMessage->ShowMessage();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
	console->Printf(KTxtNewLine);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
	CleanupStack::PopAndDestroy(); 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
	}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55