Skip to content

Commit 9b1dba7

Browse files
author
livecodeali
committed
Merge remote-tracking branch 'upstream/develop' into lcb-composed_widgets
Conflicts: engine/src/module-engine.cpp engine/src/widget.cpp
2 parents b313fbc + d57a433 commit 9b1dba7

File tree

133 files changed

+3399
-1656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+3399
-1656
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ branches:
88
only:
99
- /^develop.*$/
1010
- /^release.*$/
11+
- coverity_scan
1112

1213
# Environment variables
1314
env:

buildbot.mk

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ BUILDTOOL_STACK = builder/builder_tool.livecodescript
8585

8686
WKHTMLTOPDF ?= $(shell which wkhtmltopdf 2>/dev/null)
8787

88-
bin_dir = $(BUILD_PLATFORM)-bin
88+
# Those directories are given to the tool builder, and they might get passed
89+
# (like private-dir) to engine functions, to which a path relative to this file
90+
# becomes invalid).
91+
top_src_dir=${PWD}
92+
engine_dir=${top_src_dir}
93+
output_dir=${top_src_dir}
94+
work_dir=${top_src_dir}/_cache/builder_tool
95+
private_dir=${top_src_dir}/..
96+
bin_dir = ${top_src_dir}/$(BUILD_PLATFORM)-bin
8997

9098
ifeq ($(BUILD_PLATFORM),mac)
9199
LIVECODE = $(bin_dir)/LiveCode-Community.app/Contents/MacOS/LiveCode-Community
@@ -101,8 +109,8 @@ endif
101109
# FIXME add --warn-as-error
102110
buildtool_command = $(LIVECODE) -ui $(BUILDTOOL_STACK) \
103111
--build $(BUILD_STABILITY) \
104-
--engine-dir . --output-dir . --work-dir ./_cache/builder_tool \
105-
--private-dir ..
112+
--engine-dir ${engine_dir} --output-dir ${output_dir} --work-dir ${work_dir} \
113+
--private-dir ${private_dir}
106114

107115
# Settings for upload
108116
RSYNC ?= rsync
@@ -149,6 +157,10 @@ dist-upload-files.txt:
149157
find . -maxdepth 1 -name 'LiveCode*Installer-*-Mac.dmg' \
150158
-o -name 'LiveCode*Installer-*-Windows.exe' \
151159
-o -name 'LiveCode*Installer-*-Linux.*' \
160+
-o -name 'LiveCode*Server-*-Linux*.zip' \
161+
-o -name 'LiveCode*Server-*-Mac.zip' \
162+
-o -name 'LiveCode*Server-*-Windows.zip' \
163+
-o -name '*-bin.tar.xz' \
152164
> $@
153165

154166
# Perform the upload. This is in two steps:

builder/builder_utilities.livecodescript

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ function builderCommercialResourceFolder
263263
return builderCommercialFolder() & "/engine/rsrc"
264264
end builderCommercialResourceFolder
265265

266+
function builderCommunityFolder
267+
set the itemDel to slash
268+
return item 1 to -3 of the filename of me
269+
end builderCommunityFolder
270+
271+
function builderCommunityResourceFolder
272+
return builderCommunityFolder() & "/engine/rsrc"
273+
end builderCommunityResourceFolder
274+
266275
function builderBuildsFolder
267276
set the itemDelimiter to slash
268277
return item 1 to -4 of the filename of me
@@ -298,7 +307,7 @@ end builderArchiveBuilderStack
298307

299308
function builderModuleInterfaceFolder
300309
builderFetchEngine "", "macosx"
301-
return the result & slash & "modules"
310+
return the result & slash & "modules" & slash & "lci"
302311
end builderModuleInterfaceFolder
303312

304313
-- Returns the engine that should be used to build the installer

builder/docs_builder.livecodescript

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ end errorShow
2424

2525
command docsBuilderRun pEdition, pVersion
2626
set the itemdelimiter to "."
27-
if item 1 of pVersion > 7 then
27+
if item 1 of pVersion > 7 then
28+
start using stack (builderRepoFolder() & slash & "ide-support/revdocsparser.livecodescript")
2829
docsBuilderGenerateDocsNew
2930
exit docsBuilderRun
3031
end if
@@ -1937,7 +1938,10 @@ command docsBuilderGenerateDistributedGuide
19371938
if it is not empty then
19381939
get textDecode(it, "utf-8")
19391940
replace "[toc]" with empty in it
1940-
put tab & "{" & CR & tab & escape("guide") & ":" & escape(tGuideName) & comma & CR & tab & escape("data") & ":" & escape(it, true) & CR & tab & "}," after tGuideData
1941+
put tab & "{" & CR after tGuideData
1942+
put tab & escape("name") & ":" & escape(revDocsModifyForURL(tGuideName)) & comma & CR after tGuideData
1943+
put tab & escape("display name") & ":" & escape(tGuideName) & comma & CR after tGuideData
1944+
put tab & escape("data") & ":" & escape(it, true) & CR & tab & "}," after tGuideData
19411945
end if
19421946
end repeat
19431947
delete the last char of tGuideData

builder/server_builder.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ command serverBuilderRun pPlatform, pEdition
2727

2828
-- Make sure that the output directory exists
2929
local tOutputDir
30-
put builderWorkspaceFolder() & slash & "deploy" into tOutputDir
30+
put builderOutputFolder() into tOutputDir
3131
builderEnsureFolder tOutputDir
3232

3333
local tOutputFile

builder/tools_builder.livecodescript

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol
315315
put pPackageFile into tParams["payload"]
316316
put tOutputFileStub & ".unsigned.exe" into tParams["output"]
317317

318+
// libURL is needed in the timestamp processing
319+
start using stack (builderRepoFolder() & slash & "ide-support" & slash & "revliburl.livecodescript")
320+
318321
if pEdition is "Commercial" then
319322
put builderCommercialResourceFolder() & "/installer.ico" into tParams["appicon"]
320323
end if
@@ -327,12 +330,13 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol
327330
end if
328331

329332
-- Next we sign the installer using the certificate (if available)
330-
if there is a folder (builderSystemFolder() & slash & "certificates") then
333+
put builderPrivateRepoFolder() & slash & "certificates" into tCertificatesFolder
334+
if there is a folder (tCertificatesFolder) then
331335
put tParams["output"] into tSignParams["input"]
332336
put tOutputFileStub & ".exe" into tSignParams["output"]
333-
put builderSystemFolder() & slash & "certificates/runrev_bin.spc" into tSignParams["certificate"]
334-
put builderSystemFolder() & slash & "certificates/runrev.pvk" into tSignParams["privatekey"]
335-
put word 1 of url ("file:" & builderSystemFolder() & slash & "certificates/runrev_password.txt") into tSignParams["passphrase"]
337+
put tCertificatesFolder & "/runrev_bin.spc" into tSignParams["certificate"]
338+
put tCertificatesFolder & "/runrev.pvk" into tSignParams["privatekey"]
339+
put word 1 of url ("file:" & tCertificatesFolder & "/runrev_password.txt") into tSignParams["passphrase"]
336340
put "http://timestamp.verisign.com/scripts/timstamp.dll" into tSignParams["timestamper"]
337341
put "http://www.runrev.com" into tSignParams["url"]
338342
if pEdition is "Community" then
@@ -390,7 +394,7 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol
390394
create folder tOutputFileStub & ".app" & slash & "Contents/Resources"
391395
put tPlistFile into url ("file:" & tOutputFileStub & ".app" & slash & "Contents/Info.plist")
392396
if pEdition is "Community" then
393-
put url ("binfile:" & builderInstallerEngine("macosx") & slash & "Contents/Resources/Installer.icns") into url ("binfile:" & tOutputFileStub & ".app" & slash & "Contents/Resources/Installer.icns")
397+
put url ("binfile:" & builderCommunityResourceFolder() & "/Installer.icns") into url ("binfile:" & tOutputFileStub & ".app" & slash & "Contents/Resources/Installer.icns")
394398
else
395399
put url ("binfile:" & builderCommercialResourceFolder() & "/Installer.icns") into url ("binfile:" & tOutputFileStub & ".app" & slash & "Contents/Resources/Installer.icns")
396400
end if

config/ios.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'SDKROOT': '<(target_sdk)',
1818
'SUPPORTED_PLATFORMS': 'iphoneos iphonesimulator',
1919

20-
'SOLUTION_DIR': '<(DEPTH)',
20+
'SOLUTION_DIR': '$(SOURCE_ROOT)/<(DEPTH)',
2121
'SYMROOT': '$(SOLUTION_DIR)/_build/ios/$(SDK_NAME)',
2222
'OBJROOT': '$(SOLUTION_DIR)/_cache/ios/$(SDK_NAME)',
2323
'CONFIGURATION_BUILD_DIR': '$(SYMROOT)/$(CONFIGURATION)',
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>mobileGetLaunchData</name>
4+
<type>function</type>
5+
6+
<syntax>
7+
<example>get mobileGetLaunchData()</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary>Returns an array containing information set by the launcher of the application.</summary>
14+
15+
<examples>
16+
<example>put mobileGetLaunchData() into tLaunchData</example>
17+
<example>
18+
<p>constant kActionView = "android.intent.action.VIEW"</p>
19+
<p></p>
20+
<p>put mobileGetLaunchData() into tLaunchData</p>
21+
<p>if tLaunchData is an array and tLaunchData["action"] is kActionView then</p>
22+
<p> -- view content specified in tLaunchData["data"]</p>
23+
<p>else</p>
24+
<p> -- launched as main application</p>
25+
<p>end if</p></example>
26+
</examples>
27+
28+
<history>
29+
<introduced version="7.0">Added.</introduced>
30+
<deprecated version=""></deprecated>
31+
<removed version=""></removed>
32+
33+
</history>
34+
35+
<objects>
36+
</objects>
37+
38+
<platforms>
39+
<android/>
40+
</platforms>
41+
42+
<classes>
43+
<mobile/>
44+
</classes>
45+
46+
<security>
47+
</security>
48+
49+
50+
<classification>
51+
</classification>
52+
53+
<references>
54+
</references>
55+
56+
<description>
57+
<overview>>Returns an array containing information set by the launcher of the application.</overview>
58+
59+
<parameters>
60+
<parameter>
61+
<name/>
62+
<description/>
63+
<options title="Launch Data - The application launch data is stored as an array and has the following keys:">
64+
<option>
65+
<item>action</item>
66+
<description>The general action the app was launched to perform.</description>
67+
</option>
68+
<option>
69+
<item>data</item>
70+
<description>The data to operate on.</description>
71+
</option>
72+
<option>
73+
<item>type</item>
74+
<description>The MIME type of the data provided.</description>
75+
</option>
76+
<option>
77+
<item>categories</item>
78+
<description>Additional information about the action to perform.</description>
79+
</option>
80+
</options>
81+
</parameter>
82+
</parameters>
83+
84+
<value>Use the <b>mobileGetLaunchData</b> function to get the application launch parameters.<p></p><p>The returned array will contain the information that is set by the launching application</p></value>
85+
<comments>The <b>mobileGetLaunchData</b> function returns the information that was set by the launching application. This can be used to perform specific actions supported by an application on the provided data. <p></p>
86+
<p></p>
87+
<note> On Android, custom Intent filters can be specified in the manifest to allow an application to perform actions for other applications</note><p></p>When the application is launched to handle one of these actions, its launch Intent can be queried to determine what action was requested, and the data to use to fulfil that request.</comments>
88+
</description>
89+
</doc>

docs/notes/bugfix-11866.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# iphoneHeadingCalibrationTimeout returns empty

docs/notes/bugfix-14056.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Cannot hide cursor on Mac from LiveCode 6.7

0 commit comments

Comments
 (0)