33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
cd "${workdir}" || exit 1
# Copy out PC/SC headers for later use
mkdir -p "${instdir}/include/PCSC" || exit 1
cp third_party/pcsc-lite/src-*/src/PCSC/*.h "${instdir}/include/PCSC" || exit 1
# Update one of the JavaScript files to provide a better interface
sed '
s@naclModuleMessageChannel.*opt_serverAppId@&, opt_naclElement@
/opt_naclElement/ a \
if (naclModuleMessageChannel == null && opt_naclElement != null) { naclModuleMessageChannel = new GoogleSmartCard.NaclModuleMessageChannel(opt_naclElement, GoogleSmartCard.Logging.getScopedLogger("NaclModule<>")); }
' third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
# Copy out JavaScript files for later use
rm -f "${instdir}/libpcsc.js"
|
|
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
cd "${workdir}" || exit 1
# Copy out PC/SC headers for later use
mkdir -p "${instdir}/include/PCSC" || exit 1
cp third_party/pcsc-lite/src-*/src/PCSC/*.h "${instdir}/include/PCSC" || exit 1
# Update one of the JavaScript files to provide a better interface
sed -i '
s@naclModuleMessageChannel.*opt_serverAppId@&, opt_naclElement@
/opt_naclElement/ a \
if (naclModuleMessageChannel == null && opt_naclElement != null) { naclModuleMessageChannel = new GoogleSmartCard.NaclModuleMessageChannel(opt_naclElement, GoogleSmartCard.Logging.getScopedLogger("NaclModule<>")); }
' third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
# Copy out JavaScript files for later use
rm -f "${instdir}/libpcsc.js"
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-request-handler.js
third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
)
cat "${files[@]}" | sed '
/^ *goog\.require(/ d;
s@^goog\.DEPENDENCIES_ENABLED = .*$@goog.DEPENDENCIES_ENABLED = false;@
' > "${instdir}/libpcsc.js.new" || exit 1
mv "${instdir}/libpcsc.js.new" "${isntdir}/libpcsc.js" || exit 1
# Assemble all the files into a single tree
files=(
common/cpp/src/google_smart_card_common/formatting.h
common/cpp/src/google_smart_card_common/logging/function_call_tracer.cc
common/cpp/src/google_smart_card_common/logging/function_call_tracer.h
common/cpp/src/google_smart_card_common/logging/hex_dumping.cc
|
|
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-request-handler.js
third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
)
cat "${files[@]}" | sed '
/^ *goog\.require(/ d;
s@^goog\.DEPENDENCIES_ENABLED = .*$@goog.DEPENDENCIES_ENABLED = false;@
' > "${instdir}/libpcsc.js.new" || exit 1
mv "${instdir}/libpcsc.js.new" "${instdir}/libpcsc.js" || exit 1
# Assemble all the files into a single tree
files=(
common/cpp/src/google_smart_card_common/formatting.h
common/cpp/src/google_smart_card_common/logging/function_call_tracer.cc
common/cpp/src/google_smart_card_common/logging/function_call_tracer.h
common/cpp/src/google_smart_card_common/logging/hex_dumping.cc
|