@agoric/xsnap 0.14.3-dev-b047af2.0 → 0.14.3-dev-3eb4230.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.
Files changed (126) hide show
  1. package/api.js +1 -1
  2. package/package.json +16 -23
  3. package/src/build.js +4 -61
  4. package/moddable/modules/data/base64/base64.js +0 -28
  5. package/moddable/modules/data/base64/manifest.json +0 -11
  6. package/moddable/modules/data/base64/modBase64.c +0 -188
  7. package/moddable/modules/data/binaryMessage/BinaryMessage.js +0 -106
  8. package/moddable/modules/data/crc/crc.c +0 -205
  9. package/moddable/modules/data/crc/crc.js +0 -36
  10. package/moddable/modules/data/crc/manifest.json +0 -8
  11. package/moddable/modules/data/hex/hex.js +0 -28
  12. package/moddable/modules/data/hex/manifest.json +0 -11
  13. package/moddable/modules/data/hex/modHex.c +0 -139
  14. package/moddable/modules/data/logical/logical.js +0 -32
  15. package/moddable/modules/data/logical/modLogical.c +0 -98
  16. package/moddable/modules/data/qrcode/manifest.json +0 -9
  17. package/moddable/modules/data/qrcode/qrcode.c +0 -93
  18. package/moddable/modules/data/qrcode/qrcode.js +0 -23
  19. package/moddable/modules/data/qrcode/qrcodegen.c +0 -1025
  20. package/moddable/modules/data/qrcode/qrcodegen.h +0 -267
  21. package/moddable/modules/data/text/decoder/manifest.json +0 -8
  22. package/moddable/modules/data/text/decoder/textdecoder.c +0 -480
  23. package/moddable/modules/data/text/decoder/textdecoder.js +0 -27
  24. package/moddable/modules/data/text/encoder/manifest.json +0 -8
  25. package/moddable/modules/data/text/encoder/textencoder.c +0 -232
  26. package/moddable/modules/data/text/encoder/textencoder.js +0 -24
  27. package/moddable/modules/data/tinyint/tinyint.c +0 -150
  28. package/moddable/modules/data/tinyint/tinyint.js +0 -53
  29. package/moddable/modules/data/url/manifest.json +0 -17
  30. package/moddable/modules/data/url/url.c +0 -1959
  31. package/moddable/modules/data/url/url.js +0 -210
  32. package/moddable/modules/data/wavreader/manifest.json +0 -8
  33. package/moddable/modules/data/wavreader/wavreader.js +0 -128
  34. package/moddable/modules/data/zlib/deflate.c +0 -161
  35. package/moddable/modules/data/zlib/deflate.js +0 -63
  36. package/moddable/modules/data/zlib/inflate.c +0 -145
  37. package/moddable/modules/data/zlib/inflate.js +0 -66
  38. package/moddable/modules/data/zlib/manifest_deflate.json +0 -9
  39. package/moddable/modules/data/zlib/manifest_inflate.json +0 -9
  40. package/moddable/modules/data/zlib/miniz.c +0 -4924
  41. package/moddable/xs/includes/xs.d.ts +0 -73
  42. package/moddable/xs/includes/xs.h +0 -1533
  43. package/moddable/xs/includes/xsmc.h +0 -206
  44. package/moddable/xs/makefiles/lin/makefile +0 -33
  45. package/moddable/xs/makefiles/lin/xsc.mk +0 -118
  46. package/moddable/xs/makefiles/lin/xsid.mk +0 -90
  47. package/moddable/xs/makefiles/lin/xsl.mk +0 -168
  48. package/moddable/xs/makefiles/lin/xst.mk +0 -201
  49. package/moddable/xs/makefiles/mac/makefile +0 -33
  50. package/moddable/xs/makefiles/mac/xsc.mk +0 -130
  51. package/moddable/xs/makefiles/mac/xsid.mk +0 -102
  52. package/moddable/xs/makefiles/mac/xsl.mk +0 -177
  53. package/moddable/xs/makefiles/mac/xst.mk +0 -203
  54. package/moddable/xs/makefiles/mac/xst_no_asan.txt +0 -52
  55. package/moddable/xs/makefiles/win/build.bat +0 -26
  56. package/moddable/xs/makefiles/win/xsc.mak +0 -142
  57. package/moddable/xs/makefiles/win/xsid.mak +0 -113
  58. package/moddable/xs/makefiles/win/xsl.mak +0 -186
  59. package/moddable/xs/makefiles/win/xst.mak +0 -195
  60. package/moddable/xs/platforms/lin_xs.h +0 -99
  61. package/moddable/xs/platforms/mac_xs.h +0 -97
  62. package/moddable/xs/platforms/wasm_xs.h +0 -79
  63. package/moddable/xs/platforms/win_xs.h +0 -104
  64. package/moddable/xs/platforms/xsHost.h +0 -63
  65. package/moddable/xs/platforms/xsPlatform.h +0 -618
  66. package/moddable/xs/sources/xsAPI.c +0 -2555
  67. package/moddable/xs/sources/xsAll.c +0 -294
  68. package/moddable/xs/sources/xsAll.h +0 -2741
  69. package/moddable/xs/sources/xsArguments.c +0 -222
  70. package/moddable/xs/sources/xsArray.c +0 -2657
  71. package/moddable/xs/sources/xsAtomics.c +0 -844
  72. package/moddable/xs/sources/xsBigInt.c +0 -1859
  73. package/moddable/xs/sources/xsBoolean.c +0 -109
  74. package/moddable/xs/sources/xsCode.c +0 -4493
  75. package/moddable/xs/sources/xsCommon.c +0 -1710
  76. package/moddable/xs/sources/xsCommon.h +0 -1142
  77. package/moddable/xs/sources/xsDataView.c +0 -2890
  78. package/moddable/xs/sources/xsDate.c +0 -1541
  79. package/moddable/xs/sources/xsDebug.c +0 -2710
  80. package/moddable/xs/sources/xsDefaults.c +0 -134
  81. package/moddable/xs/sources/xsError.c +0 -353
  82. package/moddable/xs/sources/xsFunction.c +0 -776
  83. package/moddable/xs/sources/xsGenerator.c +0 -865
  84. package/moddable/xs/sources/xsGlobal.c +0 -839
  85. package/moddable/xs/sources/xsJSON.c +0 -1091
  86. package/moddable/xs/sources/xsLexical.c +0 -1969
  87. package/moddable/xs/sources/xsLockdown.c +0 -933
  88. package/moddable/xs/sources/xsMapSet.c +0 -1649
  89. package/moddable/xs/sources/xsMarshall.c +0 -1020
  90. package/moddable/xs/sources/xsMath.c +0 -624
  91. package/moddable/xs/sources/xsMemory.c +0 -1941
  92. package/moddable/xs/sources/xsModule.c +0 -3101
  93. package/moddable/xs/sources/xsNumber.c +0 -560
  94. package/moddable/xs/sources/xsObject.c +0 -1102
  95. package/moddable/xs/sources/xsPlatforms.c +0 -480
  96. package/moddable/xs/sources/xsProfile.c +0 -577
  97. package/moddable/xs/sources/xsPromise.c +0 -1199
  98. package/moddable/xs/sources/xsProperty.c +0 -636
  99. package/moddable/xs/sources/xsProxy.c +0 -1014
  100. package/moddable/xs/sources/xsRegExp.c +0 -1168
  101. package/moddable/xs/sources/xsRun.c +0 -4889
  102. package/moddable/xs/sources/xsScope.c +0 -1293
  103. package/moddable/xs/sources/xsScript.c +0 -288
  104. package/moddable/xs/sources/xsScript.h +0 -1186
  105. package/moddable/xs/sources/xsSnapshot.c +0 -2161
  106. package/moddable/xs/sources/xsSnapshot.h +0 -51
  107. package/moddable/xs/sources/xsSourceMap.c +0 -218
  108. package/moddable/xs/sources/xsString.c +0 -3332
  109. package/moddable/xs/sources/xsSymbol.c +0 -503
  110. package/moddable/xs/sources/xsSyntaxical.c +0 -4193
  111. package/moddable/xs/sources/xsTree.c +0 -1893
  112. package/moddable/xs/sources/xsType.c +0 -1488
  113. package/moddable/xs/sources/xsdtoa.c +0 -6672
  114. package/moddable/xs/sources/xsmc.c +0 -340
  115. package/moddable/xs/sources/xsre.c +0 -7578
  116. package/xsnap-native/xsnap/makefiles/lin/makefile +0 -10
  117. package/xsnap-native/xsnap/makefiles/lin/xsnap-worker.mk +0 -153
  118. package/xsnap-native/xsnap/makefiles/lin/xsnap.mk +0 -144
  119. package/xsnap-native/xsnap/makefiles/mac/makefile +0 -10
  120. package/xsnap-native/xsnap/makefiles/mac/xsnap-worker.mk +0 -162
  121. package/xsnap-native/xsnap/makefiles/mac/xsnap.mk +0 -153
  122. package/xsnap-native/xsnap/sources/xsnap-worker.c +0 -996
  123. package/xsnap-native/xsnap/sources/xsnap.c +0 -716
  124. package/xsnap-native/xsnap/sources/xsnap.h +0 -142
  125. package/xsnap-native/xsnap/sources/xsnapPlatform.c +0 -1496
  126. package/xsnap-native/xsnap/sources/xsnapPlatform.h +0 -105
@@ -1,201 +0,0 @@
1
- #
2
- # Copyright (c) 2016-2022 Moddable Tech, Inc.
3
- #
4
- # This file is part of the Moddable SDK Tools.
5
- #
6
- # The Moddable SDK Tools is free software: you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation, either version 3 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # The Moddable SDK Tools is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18
- #
19
-
20
- % : %.c
21
- %.o : %.c
22
-
23
- GOAL ?= debug
24
- NAME = xst
25
- ifneq ($(VERBOSE),1)
26
- MAKEFLAGS += --silent
27
- endif
28
-
29
- XS_DIR ?= $(realpath ../..)
30
- BUILD_DIR ?= $(realpath ../../../build)
31
-
32
- FUZZILLI ?= 0
33
- OSSFUZZ ?= 0
34
- OSSFUZZ_JSONPARSE ?= 0
35
- FUZZING ?= 0
36
-
37
- BIN_DIR = $(BUILD_DIR)/bin/lin/$(GOAL)
38
- INC_DIR = $(XS_DIR)/includes
39
- PLT_DIR = $(XS_DIR)/platforms
40
- SRC_DIR = $(XS_DIR)/sources
41
- TLS_DIR = $(XS_DIR)/tools
42
- TMP_DIR = $(BUILD_DIR)/tmp/lin/$(GOAL)/$(NAME)
43
-
44
- MACOS_ARCH ?= -arch i386
45
- MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
46
- LINK_OPTIONS = -rdynamic
47
-
48
- C_OPTIONS = \
49
- -fno-common \
50
- -DINCLUDE_XSPLATFORM \
51
- -DXSPLATFORM=\"xst.h\" \
52
- -DmxDebug=1 \
53
- -DmxLockdown=1 \
54
- -DmxNoConsole=1 \
55
- -DmxParse=1 \
56
- -DmxProfile=1 \
57
- -DmxRun=1 \
58
- -DmxSloppy=1 \
59
- -DmxSnapshot=1 \
60
- -DmxRegExpUnicodePropertyEscapes=1 \
61
- -DmxStringNormalize=1 \
62
- -DmxMinusZero=1 \
63
- -I$(INC_DIR) \
64
- -I$(PLT_DIR) \
65
- -I$(SRC_DIR) \
66
- -I$(TLS_DIR) \
67
- -I$(TLS_DIR)/yaml \
68
- -I$(TMP_DIR)
69
- C_OPTIONS += \
70
- -Wno-misleading-indentation \
71
- -Wno-implicit-fallthrough
72
- ifeq ($(GOAL),debug)
73
- C_OPTIONS += -DmxASANStackMargin=131072
74
- ifneq ($(FUZZING),0)
75
- C_OPTIONS += -DmxStress=1
76
- C_OPTIONS += -DFUZZING=1
77
- endif
78
- ifneq ($(OSSFUZZ),0)
79
- C_OPTIONS += -DOSSFUZZ=1 -DmxMetering=1
80
- ifneq ($(FUZZ_METER),0)
81
- C_OPTIONS += -DmxFuzzMeter=$(FUZZ_METER)
82
- endif
83
- C_OPTIONS += $(CFLAGS)
84
- LINK_OPTIONS += $(CXXFLAGS)
85
- ifneq ($(OSSFUZZ_JSONPARSE),0)
86
- C_OPTIONS += -DOSSFUZZ_JSONPARSE=1
87
- endif
88
- else
89
- C_OPTIONS += -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
90
- LINK_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
91
- C_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
92
- endif
93
-
94
- ifneq ($(FUZZILLI),0)
95
- C_OPTIONS += -DFUZZILLI=1 -fsanitize-coverage=trace-pc-guard
96
- endif
97
- else
98
- C_OPTIONS += -DmxMultipleThreads=1 -O3
99
- endif
100
-
101
- LIBRARIES = -ldl -lm -lpthread -latomic
102
- ifneq ($(FUZZING),0)
103
- LIBRARIES += -lrt
104
- endif
105
-
106
- OBJECTS = \
107
- $(TMP_DIR)/xsAll.o \
108
- $(TMP_DIR)/xsAPI.o \
109
- $(TMP_DIR)/xsArguments.o \
110
- $(TMP_DIR)/xsArray.o \
111
- $(TMP_DIR)/xsAtomics.o \
112
- $(TMP_DIR)/xsBigInt.o \
113
- $(TMP_DIR)/xsBoolean.o \
114
- $(TMP_DIR)/xsCode.o \
115
- $(TMP_DIR)/xsCommon.o \
116
- $(TMP_DIR)/xsDataView.o \
117
- $(TMP_DIR)/xsDate.o \
118
- $(TMP_DIR)/xsDebug.o \
119
- $(TMP_DIR)/xsDefaults.o \
120
- $(TMP_DIR)/xsError.o \
121
- $(TMP_DIR)/xsFunction.o \
122
- $(TMP_DIR)/xsGenerator.o \
123
- $(TMP_DIR)/xsGlobal.o \
124
- $(TMP_DIR)/xsJSON.o \
125
- $(TMP_DIR)/xsLexical.o \
126
- $(TMP_DIR)/xsLockdown.o \
127
- $(TMP_DIR)/xsMapSet.o \
128
- $(TMP_DIR)/xsMarshall.o \
129
- $(TMP_DIR)/xsMath.o \
130
- $(TMP_DIR)/xsMemory.o \
131
- $(TMP_DIR)/xsModule.o \
132
- $(TMP_DIR)/xsNumber.o \
133
- $(TMP_DIR)/xsObject.o \
134
- $(TMP_DIR)/xsPlatforms.o \
135
- $(TMP_DIR)/xsProfile.o \
136
- $(TMP_DIR)/xsPromise.o \
137
- $(TMP_DIR)/xsProperty.o \
138
- $(TMP_DIR)/xsProxy.o \
139
- $(TMP_DIR)/xsRegExp.o \
140
- $(TMP_DIR)/xsRun.o \
141
- $(TMP_DIR)/xsScope.o \
142
- $(TMP_DIR)/xsScript.o \
143
- $(TMP_DIR)/xsSourceMap.o \
144
- $(TMP_DIR)/xsString.o \
145
- $(TMP_DIR)/xsSymbol.o \
146
- $(TMP_DIR)/xsSyntaxical.o \
147
- $(TMP_DIR)/xsTree.o \
148
- $(TMP_DIR)/xsType.o \
149
- $(TMP_DIR)/xsdtoa.o \
150
- $(TMP_DIR)/xsre.o \
151
- $(TMP_DIR)/api.o \
152
- $(TMP_DIR)/dumper.o \
153
- $(TMP_DIR)/emitter.o \
154
- $(TMP_DIR)/loader.o \
155
- $(TMP_DIR)/parser.o \
156
- $(TMP_DIR)/reader.o \
157
- $(TMP_DIR)/scanner.o \
158
- $(TMP_DIR)/writer.o \
159
- $(TMP_DIR)/xsmc.o \
160
- $(TMP_DIR)/textdecoder.o \
161
- $(TMP_DIR)/textencoder.o \
162
- $(TMP_DIR)/modBase64.o \
163
- $(TMP_DIR)/xst.o
164
-
165
- VPATH += $(SRC_DIR) $(TLS_DIR) $(TLS_DIR)/yaml
166
- VPATH += $(MODDABLE)/modules/data/text/decoder
167
- VPATH += $(MODDABLE)/modules/data/text/encoder
168
- VPATH += $(MODDABLE)/modules/data/base64
169
-
170
- build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
171
-
172
- $(TMP_DIR):
173
- mkdir -p $(TMP_DIR)
174
-
175
- $(BIN_DIR):
176
- mkdir -p $(BIN_DIR)
177
-
178
- $(BIN_DIR)/$(NAME): $(OBJECTS)
179
- @echo "#" $(NAME) $(GOAL) ": cc" $(@F)
180
- ifneq ($(OSSFUZZ),0)
181
- @echo $(CXX) $(LIB_FUZZING_ENGINE) $(LINK_OPTIONS) $(OBJECTS) $(LIBRARIES) -o $@
182
- $(CXX) $(LIB_FUZZING_ENGINE) $(LINK_OPTIONS) $(OBJECTS) $(LIBRARIES) -o $@
183
- else
184
- $(CC) $(LINK_OPTIONS) $(OBJECTS) $(LIBRARIES) -o $@
185
- endif
186
-
187
- $(OBJECTS): $(TLS_DIR)/xst.h
188
- $(OBJECTS): $(PLT_DIR)/xsPlatform.h
189
- $(OBJECTS): $(SRC_DIR)/xsCommon.h
190
- $(OBJECTS): $(SRC_DIR)/xsAll.h
191
- $(OBJECTS): $(SRC_DIR)/xsScript.h
192
- $(TMP_DIR)/%.o: %.c
193
- @echo "#" $(NAME) $(GOAL) ": cc" $(<F)
194
- @echo $(CC) $< $(C_OPTIONS) -c -o $@
195
- $(CC) $< $(C_OPTIONS) -c -o $@
196
-
197
- clean:
198
- rm -rf $(BUILD_DIR)/bin/lin/debug/$(NAME)
199
- rm -rf $(BUILD_DIR)/bin/lin/release/$(NAME)
200
- rm -rf $(BUILD_DIR)/tmp/lin/debug/$(NAME)
201
- rm -rf $(BUILD_DIR)/tmp/lin/release/$(NAME)
@@ -1,33 +0,0 @@
1
- #
2
- # Copyright (c) 2016-2017 Moddable Tech, Inc.
3
- #
4
- # This file is part of the Moddable SDK Tools.
5
- #
6
- # The Moddable SDK Tools is free software: you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation, either version 3 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # The Moddable SDK Tools is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18
- #
19
- .NOTPARALLEL:
20
-
21
- XS_DIR ?= $(MODDABLE)/xs
22
- export XS_DIR
23
- BUILD_DIR ?= $(MODDABLE)/build
24
- export BUILD_DIR
25
-
26
- all: debug release
27
-
28
- debug:
29
- make -f xst.mk
30
-
31
- release:
32
- make GOAL=release -f xst.mk
33
-
@@ -1,130 +0,0 @@
1
- #
2
- # Copyright (c) 2016-2017 Moddable Tech, Inc.
3
- #
4
- # This file is part of the Moddable SDK Tools.
5
- #
6
- # The Moddable SDK Tools is free software: you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation, either version 3 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # The Moddable SDK Tools is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18
- #
19
- # This file incorporates work covered by the following copyright and
20
- # permission notice:
21
- #
22
- # Copyright (C) 2010-2016 Marvell International Ltd.
23
- # Copyright (C) 2002-2010 Kinoma, Inc.
24
- #
25
- # Licensed under the Apache License, Version 2.0 (the "License");
26
- # you may not use this file except in compliance with the License.
27
- # You may obtain a copy of the License at
28
- #
29
- # http://www.apache.org/licenses/LICENSE-2.0
30
- #
31
- # Unless required by applicable law or agreed to in writing, software
32
- # distributed under the License is distributed on an "AS IS" BASIS,
33
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
- # See the License for the specific language governing permissions and
35
- # limitations under the License.
36
- #
37
-
38
- % : %.c
39
- %.o : %.c
40
-
41
- GOAL ?= debug
42
- NAME = xsc
43
- MAKEFLAGS += --jobs
44
- ifneq ($(VERBOSE),1)
45
- MAKEFLAGS += --silent
46
- endif
47
-
48
- XS_DIR ?= $(realpath ../..)
49
- BUILD_DIR ?= $(realpath ../../../build)
50
-
51
- BIN_DIR = $(BUILD_DIR)/bin/mac/$(GOAL)
52
- INC_DIR = $(XS_DIR)/includes
53
- PLT_DIR = $(XS_DIR)/platforms
54
- SRC_DIR = $(XS_DIR)/sources
55
- TLS_DIR = $(XS_DIR)/tools
56
- TMP_DIR = $(BUILD_DIR)/tmp/mac/$(GOAL)/$(NAME)
57
-
58
- # MACOS_ARCH ?= -arch i386
59
- MACOS_ARCH ?=
60
- MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
61
-
62
- C_OPTIONS =\
63
- -fno-common\
64
- $(MACOS_ARCH)\
65
- $(MACOS_VERSION_MIN)\
66
- -I$(INC_DIR)\
67
- -I$(PLT_DIR) \
68
- -I$(SRC_DIR)\
69
- -I$(TLS_DIR)\
70
- -I$(TMP_DIR)\
71
- -DmxCompile=1\
72
- -DmxParse=1
73
- ifneq ("x$(SDKROOT)", "x")
74
- C_OPTIONS += -isysroot $(SDKROOT)
75
- endif
76
- ifeq ($(GOAL),debug)
77
- C_OPTIONS += -DmxDebug=1 -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
78
- else
79
- C_OPTIONS += -O3
80
- endif
81
-
82
- LIBRARIES = -framework CoreServices
83
-
84
- LINK_OPTIONS = $(MACOS_VERSION_MIN) $(MACOS_ARCH)
85
- ifneq ("x$(SDKROOT)", "x")
86
- LINK_OPTIONS += -isysroot $(SDKROOT)
87
- endif
88
-
89
- OBJECTS = \
90
- $(TMP_DIR)/xsBigInt.o \
91
- $(TMP_DIR)/xsCode.o \
92
- $(TMP_DIR)/xsCommon.o \
93
- $(TMP_DIR)/xsdtoa.o \
94
- $(TMP_DIR)/xsLexical.o \
95
- $(TMP_DIR)/xsre.o \
96
- $(TMP_DIR)/xsScope.o \
97
- $(TMP_DIR)/xsScript.o \
98
- $(TMP_DIR)/xsSourceMap.o \
99
- $(TMP_DIR)/xsSyntaxical.o \
100
- $(TMP_DIR)/xsTree.o \
101
- $(TMP_DIR)/xsc.o
102
-
103
- VPATH += $(SRC_DIR) $(TLS_DIR)
104
-
105
- build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
106
-
107
- $(TMP_DIR):
108
- mkdir -p $(TMP_DIR)
109
-
110
- $(BIN_DIR):
111
- mkdir -p $(BIN_DIR)
112
-
113
- $(BIN_DIR)/$(NAME): $(OBJECTS)
114
- @echo "#" $(NAME) $(GOAL) ": cc" $(@F)
115
- $(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) -o $@
116
-
117
- $(OBJECTS): $(PLT_DIR)/xsPlatform.h
118
- $(OBJECTS): $(SRC_DIR)/xsCommon.h
119
- $(OBJECTS): $(SRC_DIR)/xsScript.h
120
-
121
- $(TMP_DIR)/%.o: %.c
122
- @echo "#" $(NAME) $(GOAL) ": cc" $(<F)
123
- $(CC) $< $(C_OPTIONS) -c -o $@
124
-
125
- clean:
126
- rm -rf $(BUILD_DIR)/bin/mac/debug/$(NAME)
127
- rm -rf $(BUILD_DIR)/bin/mac/release/$(NAME)
128
- rm -rf $(BUILD_DIR)/tmp/mac/debug/$(NAME)
129
- rm -rf $(BUILD_DIR)/tmp/mac/release/$(NAME)
130
-
@@ -1,102 +0,0 @@
1
- #
2
- # Copyright (c) 2016-2023 Moddable Tech, Inc.
3
- #
4
- # This file is part of the Moddable SDK Tools.
5
- #
6
- # The Moddable SDK Tools is free software: you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation, either version 3 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # The Moddable SDK Tools is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18
- #
19
-
20
- % : %.c
21
- %.o : %.c
22
-
23
- GOAL ?= debug
24
- NAME = xsid
25
- MAKEFLAGS += --jobs
26
- ifneq ($(VERBOSE),1)
27
- MAKEFLAGS += --silent
28
- endif
29
-
30
- XS_DIR ?= $(realpath ../..)
31
- BUILD_DIR ?= $(realpath ../../../build)
32
-
33
- BIN_DIR = $(BUILD_DIR)/bin/mac/$(GOAL)
34
- INC_DIR = $(XS_DIR)/includes
35
- PLT_DIR = $(XS_DIR)/platforms
36
- SRC_DIR = $(XS_DIR)/sources
37
- TLS_DIR = $(XS_DIR)/tools
38
- TMP_DIR = $(BUILD_DIR)/tmp/mac/$(GOAL)/$(NAME)
39
-
40
- # MACOS_ARCH ?= -arch i386
41
- MACOS_ARCH ?=
42
- MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
43
-
44
- C_OPTIONS =\
45
- -fno-common\
46
- $(MACOS_ARCH)\
47
- $(MACOS_VERSION_MIN)\
48
- -I$(INC_DIR)\
49
- -I$(PLT_DIR) \
50
- -I$(SRC_DIR)\
51
- -I$(TLS_DIR)\
52
- -I$(TMP_DIR)\
53
- -DmxCompile=1
54
- ifneq ("x$(SDKROOT)", "x")
55
- C_OPTIONS += -isysroot $(SDKROOT)
56
- endif
57
- ifeq ($(GOAL),debug)
58
- C_OPTIONS += -DmxDebug=1 -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
59
- else
60
- C_OPTIONS += -O3
61
- endif
62
-
63
- LIBRARIES = -framework CoreServices
64
-
65
- LINK_OPTIONS = $(MACOS_VERSION_MIN) $(MACOS_ARCH)
66
- ifneq ("x$(SDKROOT)", "x")
67
- LINK_OPTIONS += -isysroot $(SDKROOT)
68
- endif
69
-
70
- OBJECTS = \
71
- $(TMP_DIR)/xsdtoa.o \
72
- $(TMP_DIR)/xsre.o \
73
- $(TMP_DIR)/xsCommon.o \
74
- $(TMP_DIR)/xsid.o
75
-
76
- VPATH += $(SRC_DIR) $(TLS_DIR)
77
-
78
- build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
79
-
80
- $(TMP_DIR):
81
- mkdir -p $(TMP_DIR)
82
-
83
- $(BIN_DIR):
84
- mkdir -p $(BIN_DIR)
85
-
86
- $(BIN_DIR)/$(NAME): $(OBJECTS)
87
- @echo "#" $(NAME) $(GOAL) ": cc" $(@F)
88
- $(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) -o $@
89
-
90
- $(OBJECTS): $(PLT_DIR)/xsPlatform.h
91
- $(OBJECTS): $(SRC_DIR)/xsCommon.h
92
-
93
- $(TMP_DIR)/%.o: %.c
94
- @echo "#" $(NAME) $(GOAL) ": cc" $(<F)
95
- $(CC) $< $(C_OPTIONS) -c -o $@
96
-
97
- clean:
98
- rm -rf $(BUILD_DIR)/bin/mac/debug/$(NAME)
99
- rm -rf $(BUILD_DIR)/bin/mac/release/$(NAME)
100
- rm -rf $(BUILD_DIR)/tmp/mac/debug/$(NAME)
101
- rm -rf $(BUILD_DIR)/tmp/mac/release/$(NAME)
102
-
@@ -1,177 +0,0 @@
1
- #
2
- # Copyright (c) 2016-2017 Moddable Tech, Inc.
3
- #
4
- # This file is part of the Moddable SDK Tools.
5
- #
6
- # The Moddable SDK Tools is free software: you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation, either version 3 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # The Moddable SDK Tools is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18
- #
19
- # This file incorporates work covered by the following copyright and
20
- # permission notice:
21
- #
22
- # Copyright (C) 2010-2016 Marvell International Ltd.
23
- # Copyright (C) 2002-2010 Kinoma, Inc.
24
- #
25
- # Licensed under the Apache License, Version 2.0 (the "License");
26
- # you may not use this file except in compliance with the License.
27
- # You may obtain a copy of the License at
28
- #
29
- # http://www.apache.org/licenses/LICENSE-2.0
30
- #
31
- # Unless required by applicable law or agreed to in writing, software
32
- # distributed under the License is distributed on an "AS IS" BASIS,
33
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
- # See the License for the specific language governing permissions and
35
- # limitations under the License.
36
- #
37
-
38
- % : %.c
39
- %.o : %.c
40
-
41
- GOAL ?= debug
42
- NAME = xsl
43
- MAKEFLAGS += --jobs
44
- ifneq ($(VERBOSE),1)
45
- MAKEFLAGS += --silent
46
- endif
47
-
48
- XS_DIR ?= $(realpath ../..)
49
- BUILD_DIR ?= $(realpath ../../../build)
50
-
51
- XSC = $(BUILD_DIR)/bin/mac/$(GOAL)/xsc
52
-
53
- BIN_DIR = $(BUILD_DIR)/bin/mac/$(GOAL)
54
- INC_DIR = $(XS_DIR)/includes
55
- PLT_DIR = $(XS_DIR)/platforms
56
- SRC_DIR = $(XS_DIR)/sources
57
- TLS_DIR = $(XS_DIR)/tools
58
- TMP_DIR = $(BUILD_DIR)/tmp/mac/$(GOAL)/$(NAME)
59
-
60
- # MACOS_ARCH ?= -arch i386
61
- MACOS_ARCH ?=
62
- MACOS_VERSION_MIN ?= -mmacosx-version-min=10.7
63
-
64
- C_OPTIONS =\
65
- -fno-common\
66
- $(MACOS_ARCH)\
67
- $(MACOS_VERSION_MIN)\
68
- -DINCLUDE_XSPLATFORM \
69
- -DXSPLATFORM=\"xslOpt.h\" \
70
- -I$(INC_DIR)\
71
- -I$(PLT_DIR) \
72
- -I$(SRC_DIR)\
73
- -I$(TLS_DIR)\
74
- -I$(TMP_DIR)\
75
- -DmxLink=1\
76
- -DmxRun=1
77
- C_OPTIONS +=\
78
- -DmxNoFunctionLength=1\
79
- -DmxNoFunctionName=1\
80
- -DmxHostFunctionPrimitive=1\
81
- -DmxFewGlobalsTable=1
82
- ifneq ("x$(SDKROOT)", "x")
83
- C_OPTIONS += -isysroot $(SDKROOT)
84
- endif
85
- ifeq ($(GOAL),debug)
86
- C_OPTIONS += -DmxDebug=1 -g -O0 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
87
- else
88
- C_OPTIONS += -O3
89
- endif
90
-
91
- LIBRARIES = -framework CoreServices
92
-
93
- LINK_OPTIONS = $(MACOS_VERSION_MIN) $(MACOS_ARCH)
94
- ifneq ("x$(SDKROOT)", "x")
95
- LINK_OPTIONS += -isysroot $(SDKROOT)
96
- endif
97
-
98
- OBJECTS = \
99
- $(TMP_DIR)/xsAll.o \
100
- $(TMP_DIR)/xsAPI.o \
101
- $(TMP_DIR)/xsArguments.o \
102
- $(TMP_DIR)/xsArray.o \
103
- $(TMP_DIR)/xsAtomics.o \
104
- $(TMP_DIR)/xsBigInt.o \
105
- $(TMP_DIR)/xsBoolean.o \
106
- $(TMP_DIR)/xsCode.o \
107
- $(TMP_DIR)/xsCommon.o \
108
- $(TMP_DIR)/xsDataView.o \
109
- $(TMP_DIR)/xsDate.o \
110
- $(TMP_DIR)/xsDebug.o \
111
- $(TMP_DIR)/xsDefaults.o \
112
- $(TMP_DIR)/xsError.o \
113
- $(TMP_DIR)/xsFunction.o \
114
- $(TMP_DIR)/xsGenerator.o \
115
- $(TMP_DIR)/xsGlobal.o \
116
- $(TMP_DIR)/xsJSON.o \
117
- $(TMP_DIR)/xsLexical.o \
118
- $(TMP_DIR)/xsMapSet.o \
119
- $(TMP_DIR)/xsMarshall.o \
120
- $(TMP_DIR)/xsMath.o \
121
- $(TMP_DIR)/xsMemory.o \
122
- $(TMP_DIR)/xsModule.o \
123
- $(TMP_DIR)/xsNumber.o \
124
- $(TMP_DIR)/xsObject.o \
125
- $(TMP_DIR)/xsPlatforms.o \
126
- $(TMP_DIR)/xsPromise.o \
127
- $(TMP_DIR)/xsProperty.o \
128
- $(TMP_DIR)/xsProxy.o \
129
- $(TMP_DIR)/xsRegExp.o \
130
- $(TMP_DIR)/xsRun.o \
131
- $(TMP_DIR)/xsScope.o \
132
- $(TMP_DIR)/xsScript.o \
133
- $(TMP_DIR)/xsSourceMap.o \
134
- $(TMP_DIR)/xsString.o \
135
- $(TMP_DIR)/xsSymbol.o \
136
- $(TMP_DIR)/xsSyntaxical.o \
137
- $(TMP_DIR)/xsTree.o \
138
- $(TMP_DIR)/xsType.o \
139
- $(TMP_DIR)/xsdtoa.o \
140
- $(TMP_DIR)/xsre.o \
141
- $(TMP_DIR)/xslBase.o \
142
- $(TMP_DIR)/xslOpt.o \
143
- $(TMP_DIR)/xslSlot.o \
144
- $(TMP_DIR)/xslStrip.o \
145
- $(TMP_DIR)/xsl.o
146
-
147
- VPATH += $(SRC_DIR) $(TLS_DIR)
148
-
149
- build: $(TMP_DIR) $(BIN_DIR) $(BIN_DIR)/$(NAME)
150
-
151
- $(TMP_DIR):
152
- mkdir -p $(TMP_DIR)
153
-
154
- $(BIN_DIR):
155
- mkdir -p $(BIN_DIR)
156
-
157
- $(BIN_DIR)/$(NAME): $(OBJECTS)
158
- @echo "#" $(NAME) $(GOAL) ": cc" $(@F)
159
- $(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) -o $@
160
-
161
- $(OBJECTS): $(PLT_DIR)/xsPlatform.h
162
- $(OBJECTS): $(SRC_DIR)/xsCommon.h
163
- $(OBJECTS): $(SRC_DIR)/xsAll.h
164
- $(OBJECTS): $(TLS_DIR)/xsl.h
165
- $(OBJECTS): $(TLS_DIR)/xslOpt.h
166
-
167
- $(TMP_DIR)/%.o: %.c
168
- @echo "#" $(NAME) $(GOAL) ": cc" $(<F)
169
- $(CC) $< $(C_OPTIONS) -c -o $@
170
-
171
- clean:
172
- rm -rf $(BUILD_DIR)/bin/mac/debug/$(NAME)
173
- rm -rf $(BUILD_DIR)/bin/mac/release/$(NAME)
174
- rm -rf $(BUILD_DIR)/tmp/mac/debug/$(NAME)
175
- rm -rf $(BUILD_DIR)/tmp/mac/release/$(NAME)
176
-
177
-