Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 532008e

Browse files
committed
[[ ExtensionPackages ]] Move utilities to a script library
Also plumb in script library to build scripts, and replace a bunch of shell script with LiveCode.
1 parent f44bddf commit 532008e

File tree

7 files changed

+637
-602
lines changed

7 files changed

+637
-602
lines changed

extensions/extensions.gyp

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
[
8888
# Requires a working LiveCode engine
8989
'../engine/engine.gyp:server',
90+
'../revzip/revzip.gyp:external-revzip-server',
9091
],
9192

9293
'rules':
@@ -104,11 +105,11 @@
104105
'action':
105106
[
106107
'<(engine)',
107-
'../util/package_extension.livecodescript',
108+
'../util/extensions-utils.lc',
109+
'buildextension',
108110
'dummy1',
109111
'dummy2',
110112
'dummy3',
111-
'../util/extract-docs.livecodescript',
112113
'../ide-support/revdocsparser.livecodescript',
113114
'<(RULE_INPUT_DIRNAME)',
114115
'<(RULE_INPUT_ROOT).livecodescript',
@@ -128,6 +129,7 @@
128129
'../toolchain/lc-compile/lc-compile.gyp:lc-compile',
129130
'../engine/lcb-modules.gyp:engine_lcb_modules',
130131
'../engine/engine.gyp:server',
132+
'../revzip/revzip.gyp:external-revzip-server',
131133
],
132134

133135
'sources':
@@ -183,7 +185,7 @@
183185

184186
'inputs':
185187
[
186-
'../util/build-extensions.sh',
188+
'../util/extensions-utils.lc',
187189
'<@(_sources)',
188190
],
189191

@@ -195,34 +197,14 @@
195197

196198
'message': 'Building extensions',
197199

198-
'conditions':
199-
[
200-
[
201-
'OS == "win"',
202-
{
203-
'variables':
204-
{
205-
'build_command': [ '$(ProjectDir)../../../util/invoke-unix.bat', '$(ProjectDir)../../../util/build-extensions.sh' ],
206-
},
207-
},
208-
{
209-
'variables':
210-
{
211-
'build_command': [ '../util/build-extensions.sh' ],
212-
},
213-
},
214-
],
215-
],
216-
217200
'action':
218201
[
219-
'<@(build_command)',
220202
'<(engine)',
221-
'../util/package_extension.livecodescript',
222-
'../util/extract-docs.livecodescript',
223-
'../ide-support/revdocsparser.livecodescript',
203+
'../util/extensions-utils.lc',
204+
'buildlcbextensions',
205+
'../ide-support/revdocsparser.livecodescript',
224206
'<(PRODUCT_DIR)/packaged_extensions',
225-
'false',
207+
'true',
226208
'>(lc-compile_host)',
227209
'<(PRODUCT_DIR)/modules/lci',
228210
'<@(_sources)',

0 commit comments

Comments
 (0)