How to force a library inclusion in a Standalone?
Paul Dupuis
paul at researchware.com
Thu Apr 21 11:08:17 EDT 2016
We have a standalone, developed and built under LC6.7.6 that loads
separate stacks from a folder when running. The standalone itself has no
code that uses the rev<file> functions (i.e revDeleteFolder,
revMoveFolder, revCopyFile, etc. However, one of the stacks that the
standalone loads needs to use revDeleteFolder.
Not surprisingly, when we try to run that loaded stack with the
revDeleteFolder command, we get a "Handler: can't find handler:
revDeleteFolder (Line 339, column 1)" error.
The standalone builder is set to auto-detect inclusions. I tried adding
this code to the stack script of the main stack in hopes it would force
a auto-detection, which it did not.
on __DUMMY_HANDLERS__
-- The handlers below exists never to actually be called, but to cause
the Standalone Builder
-- to auto detect the presence of certain commands/functions and or
objects to force inclusion
-- of the applicable LiveCode libraries for those
commands/functions/objects.
end __DUMMY_HANDLERS__
command detectRevFileCommands
revCopyFile tTargetFile,tDestinationFolder
revCopyFolder tTargetFolder,tDestinationFolder
revMoveFolder tTargetFolder,tDestinationFolder
revDeleteFolder tTargetFolder
end detectRevFileCommands
How can I ensure that, when we build the standalone, whatever library
has the file/folder functions are always included in the standalone? Is
there a library stack containing the revCopyFile, revDeleteFolder, etc.
commands that I can explicitly load and "start using"?
More information about the use-livecode
mailing list