@agoric/xsnap 0.14.3-u13.0 → 0.14.3-u16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/api.js +4 -2
- package/build.env +1 -1
- package/moddable/modules/data/base64/base64.js +28 -0
- package/moddable/modules/data/base64/manifest.json +11 -0
- package/moddable/modules/data/base64/modBase64.c +188 -0
- package/moddable/modules/data/binaryMessage/BinaryMessage.js +106 -0
- package/moddable/modules/data/crc/crc.c +205 -0
- package/moddable/modules/data/crc/crc.js +36 -0
- package/moddable/modules/data/crc/manifest.json +8 -0
- package/moddable/modules/data/hex/hex.js +28 -0
- package/moddable/modules/data/hex/manifest.json +11 -0
- package/moddable/modules/data/hex/modHex.c +139 -0
- package/moddable/modules/data/logical/logical.js +32 -0
- package/moddable/modules/data/logical/modLogical.c +98 -0
- package/moddable/modules/data/qrcode/manifest.json +9 -0
- package/moddable/modules/data/qrcode/qrcode.c +93 -0
- package/moddable/modules/data/qrcode/qrcode.js +23 -0
- package/moddable/modules/data/qrcode/qrcodegen.c +1025 -0
- package/moddable/modules/data/qrcode/qrcodegen.h +267 -0
- package/moddable/modules/data/text/decoder/manifest.json +8 -0
- package/moddable/modules/data/text/decoder/textdecoder.c +480 -0
- package/moddable/modules/data/text/decoder/textdecoder.js +27 -0
- package/moddable/modules/data/text/encoder/manifest.json +8 -0
- package/moddable/modules/data/text/encoder/textencoder.c +232 -0
- package/moddable/modules/data/text/encoder/textencoder.js +24 -0
- package/moddable/modules/data/tinyint/tinyint.c +150 -0
- package/moddable/modules/data/tinyint/tinyint.js +53 -0
- package/moddable/modules/data/url/manifest.json +17 -0
- package/moddable/modules/data/url/url.c +1959 -0
- package/moddable/modules/data/url/url.js +210 -0
- package/moddable/modules/data/wavreader/manifest.json +8 -0
- package/moddable/modules/data/wavreader/wavreader.js +128 -0
- package/moddable/modules/data/zlib/deflate.c +161 -0
- package/moddable/modules/data/zlib/deflate.js +63 -0
- package/moddable/modules/data/zlib/inflate.c +145 -0
- package/moddable/modules/data/zlib/inflate.js +66 -0
- package/moddable/modules/data/zlib/manifest_deflate.json +9 -0
- package/moddable/modules/data/zlib/manifest_inflate.json +9 -0
- package/moddable/modules/data/zlib/miniz.c +4924 -0
- package/moddable/xs/includes/xs.d.ts +73 -0
- package/moddable/xs/includes/xs.h +1533 -0
- package/moddable/xs/includes/xsmc.h +206 -0
- package/moddable/xs/makefiles/lin/makefile +33 -0
- package/moddable/xs/makefiles/lin/xsc.mk +118 -0
- package/moddable/xs/makefiles/lin/xsid.mk +90 -0
- package/moddable/xs/makefiles/lin/xsl.mk +168 -0
- package/moddable/xs/makefiles/lin/xst.mk +201 -0
- package/moddable/xs/makefiles/mac/makefile +33 -0
- package/moddable/xs/makefiles/mac/xsc.mk +130 -0
- package/moddable/xs/makefiles/mac/xsid.mk +102 -0
- package/moddable/xs/makefiles/mac/xsl.mk +177 -0
- package/moddable/xs/makefiles/mac/xst.mk +203 -0
- package/moddable/xs/makefiles/mac/xst_no_asan.txt +52 -0
- package/moddable/xs/makefiles/win/build.bat +26 -0
- package/moddable/xs/makefiles/win/xsc.mak +142 -0
- package/moddable/xs/makefiles/win/xsid.mak +113 -0
- package/moddable/xs/makefiles/win/xsl.mak +186 -0
- package/moddable/xs/makefiles/win/xst.mak +195 -0
- package/moddable/xs/platforms/lin_xs.h +99 -0
- package/moddable/xs/platforms/mac_xs.h +97 -0
- package/moddable/xs/platforms/wasm_xs.h +79 -0
- package/moddable/xs/platforms/win_xs.h +104 -0
- package/moddable/xs/platforms/xsHost.h +63 -0
- package/moddable/xs/platforms/xsPlatform.h +618 -0
- package/moddable/xs/sources/xsAPI.c +2555 -0
- package/moddable/xs/sources/xsAll.c +294 -0
- package/moddable/xs/sources/xsAll.h +2741 -0
- package/moddable/xs/sources/xsArguments.c +222 -0
- package/moddable/xs/sources/xsArray.c +2657 -0
- package/moddable/xs/sources/xsAtomics.c +844 -0
- package/moddable/xs/sources/xsBigInt.c +1859 -0
- package/moddable/xs/sources/xsBoolean.c +109 -0
- package/moddable/xs/sources/xsCode.c +4493 -0
- package/moddable/xs/sources/xsCommon.c +1710 -0
- package/moddable/xs/sources/xsCommon.h +1142 -0
- package/moddable/xs/sources/xsDataView.c +2890 -0
- package/moddable/xs/sources/xsDate.c +1541 -0
- package/moddable/xs/sources/xsDebug.c +2710 -0
- package/moddable/xs/sources/xsDefaults.c +134 -0
- package/moddable/xs/sources/xsError.c +353 -0
- package/moddable/xs/sources/xsFunction.c +776 -0
- package/moddable/xs/sources/xsGenerator.c +865 -0
- package/moddable/xs/sources/xsGlobal.c +839 -0
- package/moddable/xs/sources/xsJSON.c +1091 -0
- package/moddable/xs/sources/xsLexical.c +1969 -0
- package/moddable/xs/sources/xsLockdown.c +933 -0
- package/moddable/xs/sources/xsMapSet.c +1649 -0
- package/moddable/xs/sources/xsMarshall.c +1020 -0
- package/moddable/xs/sources/xsMath.c +624 -0
- package/moddable/xs/sources/xsMemory.c +1941 -0
- package/moddable/xs/sources/xsModule.c +3101 -0
- package/moddable/xs/sources/xsNumber.c +560 -0
- package/moddable/xs/sources/xsObject.c +1102 -0
- package/moddable/xs/sources/xsPlatforms.c +480 -0
- package/moddable/xs/sources/xsProfile.c +577 -0
- package/moddable/xs/sources/xsPromise.c +1199 -0
- package/moddable/xs/sources/xsProperty.c +636 -0
- package/moddable/xs/sources/xsProxy.c +1014 -0
- package/moddable/xs/sources/xsRegExp.c +1168 -0
- package/moddable/xs/sources/xsRun.c +4889 -0
- package/moddable/xs/sources/xsScope.c +1293 -0
- package/moddable/xs/sources/xsScript.c +288 -0
- package/moddable/xs/sources/xsScript.h +1186 -0
- package/moddable/xs/sources/xsSnapshot.c +2161 -0
- package/moddable/xs/sources/xsSnapshot.h +51 -0
- package/moddable/xs/sources/xsSourceMap.c +218 -0
- package/moddable/xs/sources/xsString.c +3332 -0
- package/moddable/xs/sources/xsSymbol.c +503 -0
- package/moddable/xs/sources/xsSyntaxical.c +4193 -0
- package/moddable/xs/sources/xsTree.c +1893 -0
- package/moddable/xs/sources/xsType.c +1488 -0
- package/moddable/xs/sources/xsdtoa.c +6672 -0
- package/moddable/xs/sources/xsmc.c +340 -0
- package/moddable/xs/sources/xsre.c +7578 -0
- package/package.json +39 -22
- package/scripts/get_xsnap_version.sh +14 -0
- package/scripts/test-package.sh +21 -0
- package/src/avaAssertXS.js +6 -2
- package/src/avaHandler.cjs +2 -5
- package/src/avaXS.js +7 -8
- package/src/build.js +161 -28
- package/src/replay.js +0 -3
- package/src/xsnap.js +105 -91
- package/src/xsrepl.js +2 -3
- package/xsnap-native/xsnap/makefiles/lin/makefile +10 -0
- package/xsnap-native/xsnap/makefiles/lin/xsnap-worker.mk +156 -0
- package/xsnap-native/xsnap/makefiles/lin/xsnap.mk +144 -0
- package/xsnap-native/xsnap/makefiles/mac/makefile +10 -0
- package/xsnap-native/xsnap/makefiles/mac/xsnap-worker.mk +165 -0
- package/xsnap-native/xsnap/makefiles/mac/xsnap.mk +153 -0
- package/xsnap-native/xsnap/sources/xsnap-worker.c +1008 -0
- package/xsnap-native/xsnap/sources/xsnap.c +717 -0
- package/xsnap-native/xsnap/sources/xsnap.h +142 -0
- package/xsnap-native/xsnap/sources/xsnapPlatform.c +1501 -0
- package/xsnap-native/xsnap/sources/xsnapPlatform.h +105 -0
- package/CHANGELOG.md +0 -646
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
% : %.c
|
|
2
|
+
%.o : %.c
|
|
3
|
+
|
|
4
|
+
GOAL ?= debug
|
|
5
|
+
NAME = xsnap-worker
|
|
6
|
+
ifneq ($(VERBOSE),1)
|
|
7
|
+
MAKEFLAGS += --silent
|
|
8
|
+
endif
|
|
9
|
+
|
|
10
|
+
EXTRA_DEPS =
|
|
11
|
+
|
|
12
|
+
# MODDABLE = $(CURDIR)/../../moddable
|
|
13
|
+
BUILD_DIR = $(CURDIR)/../../build
|
|
14
|
+
TLS_DIR = $(CURDIR)/../../sources
|
|
15
|
+
|
|
16
|
+
# BUILD_DIR = $(MODDABLE)/build
|
|
17
|
+
# TLS_DIR = ../../sources
|
|
18
|
+
|
|
19
|
+
XS_DIR = $(MODDABLE)/xs
|
|
20
|
+
|
|
21
|
+
BIN_DIR = $(BUILD_DIR)/bin/mac/$(GOAL)
|
|
22
|
+
INC_DIR = $(XS_DIR)/includes
|
|
23
|
+
PLT_DIR = $(XS_DIR)/platforms
|
|
24
|
+
SRC_DIR = $(XS_DIR)/sources
|
|
25
|
+
TMP_DIR = $(BUILD_DIR)/tmp/mac/$(GOAL)/$(NAME)
|
|
26
|
+
|
|
27
|
+
MACOS_ARCH ?=
|
|
28
|
+
MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
|
|
29
|
+
|
|
30
|
+
C_OPTIONS = \
|
|
31
|
+
-fno-common \
|
|
32
|
+
$(MACOS_ARCH) \
|
|
33
|
+
$(MACOS_VERSION_MIN) \
|
|
34
|
+
-DINCLUDE_XSPLATFORM \
|
|
35
|
+
-DXSPLATFORM=\"xsnapPlatform.h\" \
|
|
36
|
+
-DXSNAP_VERSION=\"$(XSNAP_VERSION)\" \
|
|
37
|
+
-DXSNAP_TEST_RECORD=0 \
|
|
38
|
+
-DmxLockdown=1 \
|
|
39
|
+
-DmxMetering=1 \
|
|
40
|
+
-DmxDebug=1 \
|
|
41
|
+
-UmxInstrument \
|
|
42
|
+
-DmxNoConsole=1 \
|
|
43
|
+
-DmxBoundsCheck=1 \
|
|
44
|
+
-DmxParse=1 \
|
|
45
|
+
-DmxRun=1 \
|
|
46
|
+
-DmxSloppy=1 \
|
|
47
|
+
-DmxSnapshot=1 \
|
|
48
|
+
-DmxRegExpUnicodePropertyEscapes=1 \
|
|
49
|
+
-DmxStringNormalize=1 \
|
|
50
|
+
-DmxMinusZero=1 \
|
|
51
|
+
-I$(INC_DIR) \
|
|
52
|
+
-I$(PLT_DIR) \
|
|
53
|
+
-I$(SRC_DIR) \
|
|
54
|
+
-I$(TLS_DIR) \
|
|
55
|
+
-I$(TMP_DIR)
|
|
56
|
+
ifneq ("x$(SDKROOT)", "x")
|
|
57
|
+
C_OPTIONS += -isysroot $(SDKROOT)
|
|
58
|
+
endif
|
|
59
|
+
ifeq ($(GOAL),debug)
|
|
60
|
+
C_OPTIONS += -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
|
|
61
|
+
else
|
|
62
|
+
C_OPTIONS += -O3
|
|
63
|
+
endif
|
|
64
|
+
ifeq ($(XSNAP_RANDOM_INIT),1)
|
|
65
|
+
C_OPTIONS += -DmxSnapshotRandomInit
|
|
66
|
+
endif
|
|
67
|
+
|
|
68
|
+
LIBRARIES = -framework CoreServices
|
|
69
|
+
|
|
70
|
+
LINK_OPTIONS = $(MACOS_VERSION_MIN) $(MACOS_ARCH)
|
|
71
|
+
ifneq ("x$(SDKROOT)", "x")
|
|
72
|
+
LINK_OPTIONS += -isysroot $(SDKROOT)
|
|
73
|
+
endif
|
|
74
|
+
|
|
75
|
+
# C_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
|
|
76
|
+
# LINK_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
|
|
77
|
+
|
|
78
|
+
OBJECTS = \
|
|
79
|
+
$(TMP_DIR)/xsAll.o \
|
|
80
|
+
$(TMP_DIR)/xsAPI.o \
|
|
81
|
+
$(TMP_DIR)/xsArguments.o \
|
|
82
|
+
$(TMP_DIR)/xsArray.o \
|
|
83
|
+
$(TMP_DIR)/xsAtomics.o \
|
|
84
|
+
$(TMP_DIR)/xsBigInt.o \
|
|
85
|
+
$(TMP_DIR)/xsBoolean.o \
|
|
86
|
+
$(TMP_DIR)/xsCode.o \
|
|
87
|
+
$(TMP_DIR)/xsCommon.o \
|
|
88
|
+
$(TMP_DIR)/xsDataView.o \
|
|
89
|
+
$(TMP_DIR)/xsDate.o \
|
|
90
|
+
$(TMP_DIR)/xsDebug.o \
|
|
91
|
+
$(TMP_DIR)/xsDefaults.o \
|
|
92
|
+
$(TMP_DIR)/xsError.o \
|
|
93
|
+
$(TMP_DIR)/xsFunction.o \
|
|
94
|
+
$(TMP_DIR)/xsGenerator.o \
|
|
95
|
+
$(TMP_DIR)/xsGlobal.o \
|
|
96
|
+
$(TMP_DIR)/xsJSON.o \
|
|
97
|
+
$(TMP_DIR)/xsLexical.o \
|
|
98
|
+
$(TMP_DIR)/xsLockdown.o \
|
|
99
|
+
$(TMP_DIR)/xsMapSet.o \
|
|
100
|
+
$(TMP_DIR)/xsMarshall.o \
|
|
101
|
+
$(TMP_DIR)/xsMath.o \
|
|
102
|
+
$(TMP_DIR)/xsMemory.o \
|
|
103
|
+
$(TMP_DIR)/xsModule.o \
|
|
104
|
+
$(TMP_DIR)/xsNumber.o \
|
|
105
|
+
$(TMP_DIR)/xsObject.o \
|
|
106
|
+
$(TMP_DIR)/xsPlatforms.o \
|
|
107
|
+
$(TMP_DIR)/xsProfile.o \
|
|
108
|
+
$(TMP_DIR)/xsPromise.o \
|
|
109
|
+
$(TMP_DIR)/xsProperty.o \
|
|
110
|
+
$(TMP_DIR)/xsProxy.o \
|
|
111
|
+
$(TMP_DIR)/xsRegExp.o \
|
|
112
|
+
$(TMP_DIR)/xsRun.o \
|
|
113
|
+
$(TMP_DIR)/xsScope.o \
|
|
114
|
+
$(TMP_DIR)/xsScript.o \
|
|
115
|
+
$(TMP_DIR)/xsSnapshot.o \
|
|
116
|
+
$(TMP_DIR)/xsSourceMap.o \
|
|
117
|
+
$(TMP_DIR)/xsString.o \
|
|
118
|
+
$(TMP_DIR)/xsSymbol.o \
|
|
119
|
+
$(TMP_DIR)/xsSyntaxical.o \
|
|
120
|
+
$(TMP_DIR)/xsTree.o \
|
|
121
|
+
$(TMP_DIR)/xsType.o \
|
|
122
|
+
$(TMP_DIR)/xsdtoa.o \
|
|
123
|
+
$(TMP_DIR)/xsre.o \
|
|
124
|
+
$(TMP_DIR)/xsmc.o \
|
|
125
|
+
$(TMP_DIR)/textdecoder.o \
|
|
126
|
+
$(TMP_DIR)/textencoder.o \
|
|
127
|
+
$(TMP_DIR)/modBase64.o \
|
|
128
|
+
$(TMP_DIR)/xsnapPlatform.o \
|
|
129
|
+
$(TMP_DIR)/xsnap-worker.o
|
|
130
|
+
|
|
131
|
+
VPATH += $(SRC_DIR) $(TLS_DIR)
|
|
132
|
+
VPATH += $(MODDABLE)/modules/data/text/decoder
|
|
133
|
+
VPATH += $(MODDABLE)/modules/data/text/encoder
|
|
134
|
+
VPATH += $(MODDABLE)/modules/data/base64
|
|
135
|
+
|
|
136
|
+
build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
|
|
137
|
+
|
|
138
|
+
$(TMP_DIR):
|
|
139
|
+
mkdir -p $(TMP_DIR)
|
|
140
|
+
|
|
141
|
+
$(BIN_DIR):
|
|
142
|
+
mkdir -p $(BIN_DIR)
|
|
143
|
+
|
|
144
|
+
$(BIN_DIR)/$(NAME): $(OBJECTS)
|
|
145
|
+
@echo "#" $(NAME) $(GOAL) ": cc" $(@F)
|
|
146
|
+
$(CC) $(LINK_OPTIONS) $(OBJECTS) $(LIBRARIES) -o $@
|
|
147
|
+
|
|
148
|
+
$(OBJECTS): $(TLS_DIR)/xsnap.h
|
|
149
|
+
$(OBJECTS): $(TLS_DIR)/xsnapPlatform.h
|
|
150
|
+
$(OBJECTS): $(PLT_DIR)/xsPlatform.h
|
|
151
|
+
$(OBJECTS): $(SRC_DIR)/xsCommon.h
|
|
152
|
+
$(OBJECTS): $(SRC_DIR)/xsAll.h
|
|
153
|
+
$(OBJECTS): $(SRC_DIR)/xsScript.h
|
|
154
|
+
$(OBJECTS): $(SRC_DIR)/xsSnapshot.h
|
|
155
|
+
$(OBJECTS): $(INC_DIR)/xs.h
|
|
156
|
+
$(OBJECTS): $(EXTRA_DEPS)
|
|
157
|
+
$(TMP_DIR)/%.o: %.c
|
|
158
|
+
@echo "#" $(NAME) $(GOAL) ": cc" $(<F)
|
|
159
|
+
$(CC) $< $(C_OPTIONS) -c -o $@
|
|
160
|
+
|
|
161
|
+
clean:
|
|
162
|
+
rm -rf $(BUILD_DIR)/bin/mac/debug/$(NAME)
|
|
163
|
+
rm -rf $(BUILD_DIR)/bin/mac/release/$(NAME)
|
|
164
|
+
rm -rf $(BUILD_DIR)/tmp/mac/debug/$(NAME)
|
|
165
|
+
rm -rf $(BUILD_DIR)/tmp/mac/release/$(NAME)
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
% : %.c
|
|
2
|
+
%.o : %.c
|
|
3
|
+
|
|
4
|
+
GOAL ?= debug
|
|
5
|
+
NAME = xsnap
|
|
6
|
+
ifneq ($(VERBOSE),1)
|
|
7
|
+
MAKEFLAGS += --silent
|
|
8
|
+
endif
|
|
9
|
+
|
|
10
|
+
BUILD_DIR = $(MODDABLE)/build
|
|
11
|
+
TLS_DIR = ../../sources
|
|
12
|
+
|
|
13
|
+
XS_DIR = $(MODDABLE)/xs
|
|
14
|
+
|
|
15
|
+
BIN_DIR = $(BUILD_DIR)/bin/mac/$(GOAL)
|
|
16
|
+
INC_DIR = $(XS_DIR)/includes
|
|
17
|
+
PLT_DIR = $(XS_DIR)/platforms
|
|
18
|
+
SRC_DIR = $(XS_DIR)/sources
|
|
19
|
+
TMP_DIR = $(BUILD_DIR)/tmp/mac/$(GOAL)/$(NAME)
|
|
20
|
+
|
|
21
|
+
MACOS_ARCH ?=
|
|
22
|
+
MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
|
|
23
|
+
|
|
24
|
+
C_OPTIONS = \
|
|
25
|
+
-fno-common \
|
|
26
|
+
$(MACOS_ARCH) \
|
|
27
|
+
$(MACOS_VERSION_MIN) \
|
|
28
|
+
-DINCLUDE_XSPLATFORM \
|
|
29
|
+
-DXSPLATFORM=\"xsnapPlatform.h\" \
|
|
30
|
+
-DmxLockdown=1 \
|
|
31
|
+
-DmxMetering=1 \
|
|
32
|
+
-DmxParse=1 \
|
|
33
|
+
-DmxProfile=1 \
|
|
34
|
+
-DmxRun=1 \
|
|
35
|
+
-DmxSloppy=1 \
|
|
36
|
+
-DmxSnapshot=1 \
|
|
37
|
+
-DmxRegExpUnicodePropertyEscapes=1 \
|
|
38
|
+
-DmxStringNormalize=1 \
|
|
39
|
+
-DmxMinusZero=1 \
|
|
40
|
+
-I$(INC_DIR) \
|
|
41
|
+
-I$(PLT_DIR) \
|
|
42
|
+
-I$(SRC_DIR) \
|
|
43
|
+
-I$(TLS_DIR) \
|
|
44
|
+
-I$(TMP_DIR)
|
|
45
|
+
ifneq ("x$(SDKROOT)", "x")
|
|
46
|
+
C_OPTIONS += -isysroot $(SDKROOT)
|
|
47
|
+
endif
|
|
48
|
+
ifeq ($(GOAL),debug)
|
|
49
|
+
C_OPTIONS += -DmxDebug=1 -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
|
|
50
|
+
else
|
|
51
|
+
C_OPTIONS += -DmxBoundsCheck=1 -O3
|
|
52
|
+
endif
|
|
53
|
+
ifeq ($(XSNAP_RANDOM_INIT),1)
|
|
54
|
+
C_OPTIONS += -DmxSnapshotRandomInit
|
|
55
|
+
endif
|
|
56
|
+
|
|
57
|
+
LIBRARIES = -framework CoreServices
|
|
58
|
+
|
|
59
|
+
LINK_OPTIONS = $(MACOS_VERSION_MIN) $(MACOS_ARCH)
|
|
60
|
+
ifneq ("x$(SDKROOT)", "x")
|
|
61
|
+
LINK_OPTIONS += -isysroot $(SDKROOT)
|
|
62
|
+
endif
|
|
63
|
+
|
|
64
|
+
# C_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
|
|
65
|
+
# LINK_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
|
|
66
|
+
|
|
67
|
+
OBJECTS = \
|
|
68
|
+
$(TMP_DIR)/xsAll.o \
|
|
69
|
+
$(TMP_DIR)/xsAPI.o \
|
|
70
|
+
$(TMP_DIR)/xsArguments.o \
|
|
71
|
+
$(TMP_DIR)/xsArray.o \
|
|
72
|
+
$(TMP_DIR)/xsAtomics.o \
|
|
73
|
+
$(TMP_DIR)/xsBigInt.o \
|
|
74
|
+
$(TMP_DIR)/xsBoolean.o \
|
|
75
|
+
$(TMP_DIR)/xsCode.o \
|
|
76
|
+
$(TMP_DIR)/xsCommon.o \
|
|
77
|
+
$(TMP_DIR)/xsDataView.o \
|
|
78
|
+
$(TMP_DIR)/xsDate.o \
|
|
79
|
+
$(TMP_DIR)/xsDebug.o \
|
|
80
|
+
$(TMP_DIR)/xsDefaults.o \
|
|
81
|
+
$(TMP_DIR)/xsError.o \
|
|
82
|
+
$(TMP_DIR)/xsFunction.o \
|
|
83
|
+
$(TMP_DIR)/xsGenerator.o \
|
|
84
|
+
$(TMP_DIR)/xsGlobal.o \
|
|
85
|
+
$(TMP_DIR)/xsJSON.o \
|
|
86
|
+
$(TMP_DIR)/xsLexical.o \
|
|
87
|
+
$(TMP_DIR)/xsLockdown.o \
|
|
88
|
+
$(TMP_DIR)/xsMapSet.o \
|
|
89
|
+
$(TMP_DIR)/xsMarshall.o \
|
|
90
|
+
$(TMP_DIR)/xsMath.o \
|
|
91
|
+
$(TMP_DIR)/xsMemory.o \
|
|
92
|
+
$(TMP_DIR)/xsModule.o \
|
|
93
|
+
$(TMP_DIR)/xsNumber.o \
|
|
94
|
+
$(TMP_DIR)/xsObject.o \
|
|
95
|
+
$(TMP_DIR)/xsPlatforms.o \
|
|
96
|
+
$(TMP_DIR)/xsProfile.o \
|
|
97
|
+
$(TMP_DIR)/xsPromise.o \
|
|
98
|
+
$(TMP_DIR)/xsProperty.o \
|
|
99
|
+
$(TMP_DIR)/xsProxy.o \
|
|
100
|
+
$(TMP_DIR)/xsRegExp.o \
|
|
101
|
+
$(TMP_DIR)/xsRun.o \
|
|
102
|
+
$(TMP_DIR)/xsScope.o \
|
|
103
|
+
$(TMP_DIR)/xsScript.o \
|
|
104
|
+
$(TMP_DIR)/xsSnapshot.o \
|
|
105
|
+
$(TMP_DIR)/xsSourceMap.o \
|
|
106
|
+
$(TMP_DIR)/xsString.o \
|
|
107
|
+
$(TMP_DIR)/xsSymbol.o \
|
|
108
|
+
$(TMP_DIR)/xsSyntaxical.o \
|
|
109
|
+
$(TMP_DIR)/xsTree.o \
|
|
110
|
+
$(TMP_DIR)/xsType.o \
|
|
111
|
+
$(TMP_DIR)/xsdtoa.o \
|
|
112
|
+
$(TMP_DIR)/xsre.o \
|
|
113
|
+
$(TMP_DIR)/xsmc.o \
|
|
114
|
+
$(TMP_DIR)/textdecoder.o \
|
|
115
|
+
$(TMP_DIR)/textencoder.o \
|
|
116
|
+
$(TMP_DIR)/modBase64.o \
|
|
117
|
+
$(TMP_DIR)/xsnapPlatform.o \
|
|
118
|
+
$(TMP_DIR)/xsnap.o
|
|
119
|
+
|
|
120
|
+
VPATH += $(SRC_DIR) $(TLS_DIR)
|
|
121
|
+
VPATH += $(MODDABLE)/modules/data/text/decoder
|
|
122
|
+
VPATH += $(MODDABLE)/modules/data/text/encoder
|
|
123
|
+
VPATH += $(MODDABLE)/modules/data/base64
|
|
124
|
+
|
|
125
|
+
build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
|
|
126
|
+
|
|
127
|
+
$(TMP_DIR):
|
|
128
|
+
mkdir -p $(TMP_DIR)
|
|
129
|
+
|
|
130
|
+
$(BIN_DIR):
|
|
131
|
+
mkdir -p $(BIN_DIR)
|
|
132
|
+
|
|
133
|
+
$(BIN_DIR)/$(NAME): $(OBJECTS)
|
|
134
|
+
@echo "#" $(NAME) $(GOAL) ": cc" $(@F)
|
|
135
|
+
$(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) -o $@
|
|
136
|
+
|
|
137
|
+
$(OBJECTS): $(TLS_DIR)/xsnap.h
|
|
138
|
+
$(OBJECTS): $(TLS_DIR)/xsnapPlatform.h
|
|
139
|
+
$(OBJECTS): $(PLT_DIR)/xsPlatform.h
|
|
140
|
+
$(OBJECTS): $(SRC_DIR)/xsCommon.h
|
|
141
|
+
$(OBJECTS): $(SRC_DIR)/xsAll.h
|
|
142
|
+
$(OBJECTS): $(SRC_DIR)/xsScript.h
|
|
143
|
+
$(OBJECTS): $(SRC_DIR)/xsSnapshot.h
|
|
144
|
+
$(OBJECTS): $(INC_DIR)/xs.h
|
|
145
|
+
$(TMP_DIR)/%.o: %.c
|
|
146
|
+
@echo "#" $(NAME) $(GOAL) ": cc" $(<F)
|
|
147
|
+
$(CC) $< $(C_OPTIONS) -c -o $@
|
|
148
|
+
|
|
149
|
+
clean:
|
|
150
|
+
rm -rf $(BUILD_DIR)/bin/mac/debug/$(NAME)
|
|
151
|
+
rm -rf $(BUILD_DIR)/bin/mac/release/$(NAME)
|
|
152
|
+
rm -rf $(BUILD_DIR)/tmp/mac/debug/$(NAME)
|
|
153
|
+
rm -rf $(BUILD_DIR)/tmp/mac/release/$(NAME)
|