File: cardlayerEmulation.pro

package info (click to toggle)
beid 3.5.2.dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 147,240 kB
  • ctags: 34,507
  • sloc: cpp: 149,944; ansic: 41,577; java: 8,927; cs: 6,528; sh: 2,426; perl: 1,866; xml: 805; python: 463; makefile: 263; lex: 92
file content (136 lines) | stat: -rw-r--r-- 4,550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136

QMAKE_CXXFLAGS += -g

include(../_Builds/eidcommon.mak)

TEMPLATE = lib
## set target
TARGET = $${CARDLAYEREMULIB}
VERSION = $${CARDLAYEREMULIB_MAJ}.$${CARDLAYEREMULIB_MIN}.$${CARDLAYEREMULIB_REV}

message("Compile $$TARGET")

###
### Installation setup
###
target.path = $${INSTALL_DIR_LIB}
INSTALLS += target


###
### Compiler setup
###

CONFIG -= warn_on qt
CONFIG += debug
DEFINES += CARDLAYEREMULATION_EXPORTS \
           CAL_EMULATION \
           CARDPLUGIN_IN_CAL \
	   CAL_BEID


## destination directory for the compiler
DESTDIR = ../lib

INCLUDEPATH += . ../common ../cardlayer 
INCLUDEPATH += $${PCSC_INCLUDE_DIR}

LIBS += -L../lib \
	-l$${DLGLIB} \	
	-l$${COMMONLIB}	
	
macx: LIBS += -Wl,-framework -Wl,PCSC 	

QMAKE_CXXFLAGS += -O2

SOURCES += ../cardlayer/Cache.cpp \
           ../cardlayer/Card.cpp \
           ../cardlayer/CardFactory.cpp \
           ../cardlayer/CardLayer.cpp \
           ../cardlayer/Context.cpp \
           ../cardlayer/PCSC.cpp \
           ../cardlayer/Pinpad.cpp \
           ../cardlayer/PinpadLib.cpp \
           ../cardlayer/PKCS15.cpp \
           ../cardlayer/PKCS15Parser.cpp \
           ../cardlayer/PkiCard.cpp \
           ../cardlayer/Reader.cpp \
           ../cardlayer/ReadersInfo.cpp \
           ../cardlayer/ThreadPool.cpp \
           ../cardlayer/UnknownCard.cpp \
           ../cardlayer/P15Correction.cpp \
           ../pcscEmulation/EmulationCard.cpp \
           ../pcscEmulation/EmulationCardFactory.cpp \
           ../pcscEmulation/EmulationPCSC.cpp \
           ../pcscEmulation/EmulationPkiCard.cpp \
           ../pcscEmulation/FileSystemCard.cpp \
           ../pcscEmulation/bignum/bn_add.c \
           ../pcscEmulation/bignum/bn_asm.c \
           ../pcscEmulation/bignum/bn_ctx.c \
           ../pcscEmulation/bignum/bn_div.c \
           ../pcscEmulation/bignum/bn_exp.c \
           ../pcscEmulation/bignum/bn_exp2.c \
           ../pcscEmulation/bignum/bn_gcd.c \
           ../pcscEmulation/bignum/bn_lib.c \
           ../pcscEmulation/bignum/bn_mod.c \
           ../pcscEmulation/bignum/bn_mont.c \
           ../pcscEmulation/bignum/bn_mpi.c \
           ../pcscEmulation/bignum/bn_mul.c \
           ../pcscEmulation/bignum/bn_print.c \
           ../pcscEmulation/bignum/bn_recp.c \
           ../pcscEmulation/bignum/bn_shift.c \
           ../pcscEmulation/bignum/bn_sqr.c \
           ../pcscEmulation/bignum/bn_word.c \
           ../pcscEmulation/bignum/mem_clr.c \
           ../pcscEmulation/bignum/rsa.c 

HEADERS +=../cardlayer/Cache.h \
          ../cardlayer/Card.h \
          ../cardlayer/CardFactory.h \
          ../cardlayer/CardLayer.h \
          ../cardlayer/CardLayerConst.h \
          ../cardlayer/Context.h \
          ../cardlayer/InternalConst.h \
          ../cardlayer/P15Correction.h \
          ../cardlayer/P15Objects.h \
          ../cardlayer/PCSC.h \
          ../cardlayer/Pinpad.h \
          ../cardlayer/PinpadLib.h \
          ../cardlayer/PKCS15.h \
          ../cardlayer/PKCS15Parser.h \
          ../cardlayer/PkiCard.h \
          ../cardlayer/Reader.h \
          ../cardlayer/ReadersInfo.h \
          ../cardlayer/ThreadPool.h \
          ../cardlayer/UnknownCard.h \
          ../pcscEmulation/EmulationCard.h \
          ../pcscEmulation/EmulationCardFactory.h \
          ../pcscEmulation/EmulationPCSC.h \
          ../pcscEmulation/EmulationPkiCard.h \
          ../pcscEmulation/FileSystemCard.h


##
## Headers and sources specific to a country
##

## do not define a conditional block with contains(PKG_NAME,beid)
## otherwise the script which prepares the tarball will not
## be able to parse the project file correctly!
contains(PKG_NAME,beid): HEADERS +=  ../pcscEmulation/EmulationBeidCard.h \
         			../cardlayer/cardpluginBeid/BeidCard.h \
          			../cardlayer/cardpluginBeid/BeidP15Correction.h \
          			../cardlayer/cardpluginSIS/SISCard.h \
          			../cardlayer/cardpluginSIS/SISPluginHandler.h \
          			../cardlayer/cardpluginSIS/SISplugin1.h \
          			../pcscEmulation/EmulationSISCard.h 

contains(PKG_NAME,beid): SOURCES +=  ../pcscEmulation/EmulationBeidCard.cpp \
	           		../cardlayer/cardpluginBeid/BeidCard.cpp \
        	   		../cardlayer/cardpluginBeid/BeidP15Correction.cpp \
           			../cardlayer/cardpluginSIS/SISCard.cpp \
			        ../cardlayer/cardpluginSIS/SISPluginHandler.cpp \
			        ../pcscEmulation/EmulationSISCard.cpp 

contains(PKG_NAME,beid): INCLUDEPATH +=../cardlayer/cardpluginBeid \
					../cardlayer/cardpluginSIS