Skip to content

Commit ed38b56

Browse files
committed
[[ LCB ]] Updated build scripts to include 'foreign' module on all platforms.
1 parent a9f05f7 commit ed38b56

File tree

7 files changed

+17
-1
lines changed

7 files changed

+17
-1
lines changed

libscript/Android.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ SCRIPT_SRC_FILES = \
3434
src/module-char.cpp \
3535
src/module-date.cpp \
3636
src/module-encoding.cpp \
37+
src/module-foreign.cpp \
3738
src/module-file.cpp \
3839
src/module-list.cpp \
3940
src/module-logic.cpp \
@@ -54,6 +55,7 @@ SCRIPT_SRC_FILES = \
5455
$(DERIVED_SRC)/char.mlc.c \
5556
$(DERIVED_SRC)/date.mlc.c \
5657
$(DERIVED_SRC)/file.mlc.c \
58+
$(DERIVED_SRC)/foreign.mlc.c \
5759
$(DERIVED_SRC)/item.mlc.c \
5860
$(DERIVED_SRC)/line.mlc.c \
5961
$(DERIVED_SRC)/list.mlc.c \

libscript/Makefile.libscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SOURCES += \
1515
module-date.cpp \
1616
module-encoding.cpp \
1717
module-file.cpp \
18+
module-foreign.cpp \
1819
module-list.cpp \
1920
module-logic.cpp \
2021
module-map.cpp \

libscript/libscript-mobile.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
4D7060D81A80D00600415A88 /* module-foreign.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D7060D71A80D00600415A88 /* module-foreign.cpp */; };
1011
720166341A420EE8002B53F9 /* module-arithmetic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 720166161A420EE8002B53F9 /* module-arithmetic.cpp */; };
1112
720166351A420EE8002B53F9 /* module-array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 720166171A420EE8002B53F9 /* module-array.cpp */; };
1213
720166361A420EE8002B53F9 /* module-binary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 720166181A420EE8002B53F9 /* module-binary.cpp */; };
@@ -81,6 +82,8 @@
8182
/* End PBXCopyFilesBuildPhase section */
8283

8384
/* Begin PBXFileReference section */
85+
4D7060D61A80CFFB00415A88 /* foreign.mlc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = foreign.mlc; path = src/foreign.mlc; sourceTree = "<group>"; };
86+
4D7060D71A80D00600415A88 /* module-foreign.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "module-foreign.cpp"; path = "src/module-foreign.cpp"; sourceTree = "<group>"; };
8487
720165E41A420DFE002B53F9 /* Debug Mobile.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Debug Mobile.xcconfig"; path = "../rules/Debug Mobile.xcconfig"; sourceTree = "<group>"; };
8588
720165E51A420DFE002B53F9 /* Release Mobile.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Release Mobile.xcconfig"; path = "../rules/Release Mobile.xcconfig"; sourceTree = "<group>"; };
8689
720165E61A420DFE002B53F9 /* Global Mobile.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Global Mobile.xcconfig"; path = "../rules/Global Mobile.xcconfig"; sourceTree = "<group>"; };
@@ -211,6 +214,7 @@
211214
7201661B1A420EE8002B53F9 /* module-char.cpp */,
212215
7201661C1A420EE8002B53F9 /* module-encoding.cpp */,
213216
7201661D1A420EE8002B53F9 /* module-file.cpp */,
217+
4D7060D71A80D00600415A88 /* module-foreign.cpp */,
214218
7201661E1A420EE8002B53F9 /* module-list.cpp */,
215219
7201661F1A420EE8002B53F9 /* module-logic.cpp */,
216220
720166201A420EE8002B53F9 /* module-map.cpp */,
@@ -228,6 +232,7 @@
228232
728636771A6D72F7001D1FBF /* MLC */ = {
229233
isa = PBXGroup;
230234
children = (
235+
4D7060D61A80CFFB00415A88 /* foreign.mlc */,
231236
720166071A420EE8002B53F9 /* arithmetic.mlc */,
232237
720166081A420EE8002B53F9 /* array.mlc */,
233238
720166091A420EE8002B53F9 /* binary.mlc */,
@@ -327,6 +332,7 @@
327332
7286368E1A6D7359001D1FBF /* stream.mlc in Sources */,
328333
7286368F1A6D7359001D1FBF /* system.mlc in Sources */,
329334
720166361A420EE8002B53F9 /* module-binary.cpp in Sources */,
335+
4D7060D81A80D00600415A88 /* module-foreign.cpp in Sources */,
330336
728636411A6D71E2001D1FBF /* module-stream.cpp in Sources */,
331337
728636401A6D71E2001D1FBF /* module-date.cpp in Sources */,
332338
720166401A420EE8002B53F9 /* module-math.cpp in Sources */,

libscript/libstdscript-modules.list

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file must be in dependency order; no file must depend on files
22
# later in the list.
3+
foreign.mlc
34
arithmetic.mlc
45
array.mlc
56
binary.mlc
@@ -17,4 +18,4 @@ stream.mlc
1718
string.mlc
1819
system.mlc
1920
type.mlc
20-
type-convert.mlc
21+
type-convert.mlc

libscript/src/item.mlc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
module com.livecode.item
1818

19+
use com.livecode.foreign
20+
1921
public foreign handler FetchItemOf(in Index as index, in Target as string, out Value as string) as undefined binds to "<builtin>"
2022
public foreign handler StoreItemOf(in Value as string, in Index as index, inout Target as string) as undefined binds to "<builtin>"
2123
public foreign handler FetchItemRangeOf(in Start as index, in Finish as index, in Target as data, out Value as string) as undefined binds to "<builtin>"

libscript/src/line.mlc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
module com.livecode.line
1818

19+
use com.livecode.foreign
20+
1921
public foreign handler FetchLineOf(in Index as index, in Target as string, out Value as string) as undefined binds to "<builtin>"
2022
public foreign handler StoreLineOf(in Value as string, in Index as index, inout Target as string) as undefined binds to "<builtin>"
2123
public foreign handler FetchLineRangeOf(in Start as index, in Finish as index, in Target as data, out Value as string) as undefined binds to "<builtin>"

libscript/src/segmentchunk.mlc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
module com.livecode.segmentchunk
1818

19+
use com.livecode.foreign
20+
1921
public foreign handler FetchSegmentOf(in Index as index, in Target as string, out Value as string) as undefined binds to "<builtin>"
2022
public foreign handler StoreSegmentOf(in Value as string, in Index as index, inout Target as string) as undefined binds to "<builtin>"
2123
public foreign handler FetchSegmentRangeOf(in Start as index, in Finish as index, in Target as data, out Value as string) as undefined binds to "<builtin>"

0 commit comments

Comments
 (0)