forked from paddybyers/node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.jsnatives.mk
55 lines (52 loc) · 1.32 KB
/
Android.jsnatives.mk
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
NODE_LOCAL_JS_LIBRARY_FILES := \
src/node.js \
lib/_debugger.js \
lib/_linklist.js \
lib/assert.js \
lib/buffer.js \
lib/buffer_ieee754.js \
lib/child_process.js \
lib/cluster.js \
lib/console.js \
lib/constants.js \
lib/crypto.js \
lib/dgram.js \
lib/dns.js \
lib/events.js \
lib/freelist.js \
lib/fs.js \
lib/http.js \
lib/https.js \
lib/module.js \
lib/net.js \
lib/os.js \
lib/path.js \
lib/punycode.js \
lib/querystring.js \
lib/readline.js \
lib/repl.js \
lib/stream.js \
lib/string_decoder.js \
lib/sys.js \
lib/timers.js \
lib/tls.js \
lib/tty.js \
lib/url.js \
lib/util.js \
lib/vm.js \
lib/zlib.js \
src/macros.py
PATH_LOCAL_JS_LIBRARY_FILES := $(addprefix $(LOCAL_PATH)/, $(NODE_LOCAL_JS_LIBRARY_FILES))
# FIXME: Copy js2c.py to intermediates directory and invoke there to avoid generating
# jsmin.pyc in the source directory
#JS2C_PY := $(intermediates)/js2c.py $(intermediates)/jsmin.py
#$(JS2C_PY): $(intermediates)/%.py : $(LOCAL_PATH)/tools/%.py | $(ACP)
# @echo "Copying $@"
# $(copy-file-to-target)
# Generate node_natives.h
jsnatives := $(intermediates)/src/node_natives.h
$(jsnatives): SCRIPT := $(LOCAL_PATH)/tools/js2c.py
$(jsnatives): $(PATH_LOCAL_JS_LIBRARY_FILES) $(JS2C_PY)
@echo "Building node_natives.h"
@mkdir -p $(dir $@)
python $(SCRIPT) $(jsnatives) $(PATH_LOCAL_JS_LIBRARY_FILES)