NaCl libpcsc

Check-in [7ce79d6ede]
Login
Overview
SHA1:7ce79d6ede3de3488da838965c9d407ba3113eea
Date: 2016-04-14 07:21:36
User: rkeene
Comment:Try to assemble a working JavaScript library
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-04-14
17:38
[b209244e1b] Removed unused parameters in NaCl PCSC initialization (user: rkeene, tags: trunk)
07:21
[7ce79d6ede] Try to assemble a working JavaScript library (user: rkeene, tags: trunk)
02:45
[179983e00b] Added an install target and an empty javascript file for now (user: rkeene, tags: trunk)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified build/assemble-source-from-google.sh from [482768fcd7] to [bea0137abe].

    33     33   		cd "${workdir}" || exit 1
    34     34   
    35     35   		# Copy out PC/SC headers for later use
    36     36   		mkdir -p "${instdir}/include/PCSC" || exit 1
    37     37   		cp third_party/pcsc-lite/src-*/src/PCSC/*.h "${instdir}/include/PCSC" || exit 1
    38     38   
    39     39   		# Copy out JavaScript files for later use
    40         -#		cp common-utils/*.js "${instdir}/js" || exit 1
    41         -#		cp third_party/pcsc-lite/client-side/*.js "${instdir}/js" || exit 1
    42         -		touch "${instdir}/libpcsc.js"
           40  +		rm -f "${instdir}/libpcsc.js"
           41  +		files=(
           42  +			third_party/closure-library/src-20160208/closure/goog/base.js
           43  +			third_party/closure-library/src-20160208/closure/goog/math/integer.js
           44  +			common/js/src/fixed-size-integer.js
           45  +			third_party/closure-library/src-20160208/closure/goog/debug/error.js
           46  +			third_party/closure-library/src-20160208/closure/goog/dom/nodetype.js
           47  +			third_party/closure-library/src-20160208/closure/goog/string/string.js
           48  +			third_party/closure-library/src-20160208/closure/goog/asserts/asserts.js
           49  +			third_party/closure-library/src-20160208/closure/goog/array/array.js
           50  +			third_party/closure-library/src-20160208/closure/goog/functions/functions.js
           51  +			third_party/closure-library/src-20160208/closure/goog/math/math.js
           52  +			third_party/closure-library/src-20160208/closure/goog/iter/iter.js
           53  +			third_party/closure-library/src-20160208/closure/goog/json/json.js
           54  +			third_party/closure-library/src-20160208/closure/goog/object/object.js
           55  +			third_party/closure-library/src-20160208/closure/goog/structs/structs.js
           56  +			third_party/closure-library/src-20160208/closure/goog/structs/map.js
           57  +			common/js/src/logging/debug-dump.js
           58  +			third_party/closure-library/src-20160208/closure/goog/dom/tagname.js
           59  +			third_party/closure-library/src-20160208/closure/goog/dom/tags.js
           60  +			third_party/closure-library/src-20160208/closure/goog/string/typedstring.js
           61  +			third_party/closure-library/src-20160208/closure/goog/string/const.js
           62  +			third_party/closure-library/src-20160208/closure/goog/html/safestyle.js
           63  +			third_party/closure-library/src-20160208/closure/goog/html/safestylesheet.js
           64  +			third_party/closure-library/src-20160208/closure/goog/fs/url.js
           65  +			third_party/closure-library/src-20160208/closure/goog/i18n/bidi.js
           66  +			third_party/closure-library/src-20160208/closure/goog/html/safeurl.js
           67  +			third_party/closure-library/src-20160208/closure/goog/html/trustedresourceurl.js
           68  +			third_party/closure-library/src-20160208/closure/goog/labs/useragent/util.js
           69  +			third_party/closure-library/src-20160208/closure/goog/labs/useragent/browser.js
           70  +			third_party/closure-library/src-20160208/closure/goog/html/safehtml.js
           71  +			third_party/closure-library/src-20160208/closure/goog/html/safescript.js
           72  +			third_party/closure-library/src-20160208/closure/goog/html/uncheckedconversions.js
           73  +			third_party/closure-library/src-20160208/closure/goog/structs/collection.js
           74  +			third_party/closure-library/src-20160208/closure/goog/structs/set.js
           75  +			third_party/closure-library/src-20160208/closure/goog/labs/useragent/engine.js
           76  +			third_party/closure-library/src-20160208/closure/goog/labs/useragent/platform.js
           77  +			third_party/closure-library/src-20160208/closure/goog/useragent/useragent.js
           78  +			third_party/closure-library/src-20160208/closure/goog/debug/debug.js
           79  +			third_party/closure-library/src-20160208/closure/goog/debug/logrecord.js
           80  +			third_party/closure-library/src-20160208/closure/goog/debug/logbuffer.js
           81  +			third_party/closure-library/src-20160208/closure/goog/debug/logger.js
           82  +			third_party/closure-library/src-20160208/closure/goog/debug/relativetimeprovider.js
           83  +			third_party/closure-library/src-20160208/closure/goog/debug/formatter.js
           84  +			third_party/closure-library/src-20160208/closure/goog/log/log.js
           85  +			third_party/closure-library/src-20160208/closure/goog/structs/circularbuffer.js
           86  +			common/js/src/logging/log-buffer.js
           87  +			third_party/closure-library/src-20160208/closure/goog/debug/console.js
           88  +			common/js/src/logging/logging.js
           89  +			common/js/src/random.js
           90  +			third_party/closure-library/src-20160208/closure/goog/disposable/idisposable.js
           91  +			third_party/closure-library/src-20160208/closure/goog/disposable/disposable.js
           92  +			third_party/closure-library/src-20160208/closure/goog/promise/thenable.js
           93  +			third_party/closure-library/src-20160208/closure/goog/async/freelist.js
           94  +			third_party/closure-library/src-20160208/closure/goog/async/workqueue.js
           95  +			third_party/closure-library/src-20160208/closure/goog/debug/entrypointregistry.js
           96  +			third_party/closure-library/src-20160208/closure/goog/async/nexttick.js
           97  +			third_party/closure-library/src-20160208/closure/goog/async/run.js
           98  +			third_party/closure-library/src-20160208/closure/goog/promise/resolver.js
           99  +			third_party/closure-library/src-20160208/closure/goog/promise/promise.js
          100  +			third_party/closure-library/src-20160208/closure/goog/events/browserfeature.js
          101  +			third_party/closure-library/src-20160208/closure/goog/events/eventid.js
          102  +			third_party/closure-library/src-20160208/closure/goog/events/event.js
          103  +			third_party/closure-library/src-20160208/closure/goog/events/eventtype.js
          104  +			third_party/closure-library/src-20160208/closure/goog/reflect/reflect.js
          105  +			third_party/closure-library/src-20160208/closure/goog/events/browserevent.js
          106  +			third_party/closure-library/src-20160208/closure/goog/events/listenable.js
          107  +			third_party/closure-library/src-20160208/closure/goog/events/listener.js
          108  +			third_party/closure-library/src-20160208/closure/goog/events/listenermap.js
          109  +			third_party/closure-library/src-20160208/closure/goog/events/events.js
          110  +			third_party/closure-library/src-20160208/closure/goog/events/eventtarget.js
          111  +			third_party/closure-library/src-20160208/closure/goog/timer/timer.js
          112  +			third_party/closure-library/src-20160208/closure/goog/messaging/messagechannel.js
          113  +			third_party/closure-library/src-20160208/closure/goog/messaging/abstractchannel.js
          114  +			common/js/src/messaging/message-channel-pinging.js
          115  +			common/js/src/messaging/typed-message.js
          116  +			common/js/src/messaging/port-message-channel.js
          117  +			common/js/src/nacl-module/nacl-module-log-messages-receiver.js
          118  +			common/js/src/nacl-module/nacl-module-messaging-channel.js
          119  +			third_party/closure-library/src-20160208/closure/goog/dom/browserfeature.js
          120  +			third_party/closure-library/src-20160208/closure/goog/dom/safe.js
          121  +			third_party/closure-library/src-20160208/closure/goog/math/coordinate.js
          122  +			third_party/closure-library/src-20160208/closure/goog/math/size.js
          123  +			third_party/closure-library/src-20160208/closure/goog/dom/dom.js
          124  +			common/js/src/nacl-module/nacl-module.js
          125  +			common/js/src/requesting/remote-call-message.js
          126  +			common/js/src/requesting/request-handler.js
          127  +			common/js/src/requesting/requester-message.js
          128  +			common/js/src/requesting/request-receiver.js
          129  +			common/js/src/requesting/requester.js
          130  +			third_party/closure-library/src-20160208/closure/goog/structs/queue.js
          131  +			third_party/pcsc-lite/naclport/common/src/constants.js
          132  +			third_party/pcsc-lite/naclport/js_client/src/api.js
          133  +			third_party/pcsc-lite/naclport/js_client/src/context.js
          134  +			third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-request-handler.js
          135  +			third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
          136  +		)
          137  +		cat "${files[@]}" | sed '
          138  +			/^ *goog\.require(/ d;
          139  +			s@^goog\.DEPENDENCIES_ENABLED = .*$@goog.DEPENDENCIES_ENABLED = false;@
          140  +		' > "${instdir}/libpcsc.js.new" || exit 1
          141  +		mv "${instdir}/libpcsc.js.new" "${isntdir}/libpcsc.js" || exit 1
    43    142   
    44    143   		# Assemble all the files into a single tree
    45    144   		files=(
    46    145   			common/cpp/src/google_smart_card_common/formatting.h
    47    146   			common/cpp/src/google_smart_card_common/logging/function_call_tracer.cc
    48    147   			common/cpp/src/google_smart_card_common/logging/function_call_tracer.h
    49    148   			common/cpp/src/google_smart_card_common/logging/hex_dumping.cc