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

Commit 20bda6c

Browse files
Merge branch 'develop' of https://github.com/runrev/livecode into gyp-android_on_osx_fixes
Conflicts: config/paths.gypi
2 parents 12b2cb5 + 5323aad commit 20bda6c

308 files changed

Lines changed: 14032 additions & 1228 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
# Declare files that will always have LF line endings on checkout.
2929
*.sh text eol=lf
30+
*.inc text eol=lf
3031

3132
# Denote all files that are truly binary and should not be modified.
3233
*.png binary

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ install: (cd prebuilt && ./fetch-libraries.sh linux)
2828
# the default test suite.
2929
script: >
3030
if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then
31-
make all-linux
31+
make all-linux && make -C tests/lcb check
3232
fi
3333
3434
addons:

INSTALL-emscripten.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Compiling LiveCode to JavaScript for HTML5
2+
3+
![LiveCode Community Logo](http://livecode.com/wp-content/uploads/2015/02/livecode-logo.png)
4+
5+
Copyright © 2015 LiveCode Ltd., Edinburgh, UK
6+
7+
**Warning**: Emscripten (HTML5) platform support for LiveCode is experimental and not recommended for production use.
8+
9+
## Dependencies
10+
11+
You will need a 64-bit Linux machine or VM with at least 4 GB of RAM
12+
(8 GB is recommended).
13+
14+
### Emscripten SDK
15+
16+
Unsurprisingly, the Emscripten SDK must be installed in order to build
17+
an Emscripten engine.
18+
19+
1. Download the portable Emscripten SDK from <https://kripken.github.io/emscripten/site>. Put it in `/opt/emsdk_portable`, for example.
20+
21+
2. Check what SDKs are available by running:
22+
23+
/opt/emsdk_portable/emsdk list
24+
25+
3. Install and activate the "incoming" SDK by running:
26+
27+
/opt/emsdk_portable/emsdk install sdk-incoming-64bit
28+
/opt/emsdk_portable/emsdk activate sdk-incoming-64bit
29+
30+
This will take a really long time and use an insane amount of RAM.
31+
32+
## Build environment
33+
34+
Before building for Emscripten, source the Emscripten SDK script that sets up the environment correctly. You need to source it with the `.` or `source` command rather than just running it.
35+
36+
source /opt/emsdk_protable/emsdk_env.sh
37+
38+
## Configuring LiveCode
39+
40+
To configure LiveCode, run:
41+
42+
make config-emscripten
43+
44+
This will generate make control files in the `build-emscripten` directory. You can also run `config.sh` directly.
45+
46+
## Compiling LiveCode
47+
48+
LiveCode currently requires some special setup steps to enable building on Emscripten.
49+
50+
To compile LiveCode, run:
51+
52+
make compile-emscripten
53+
54+
This will generate outputs in the `emscripten-bin` directory.
55+
56+
## Running LiveCode
57+
58+
**Note**: See also the "HTML5 Deployment" guide, available in the in-IDE dictionary.
59+
60+
Use the desktop build of the LiveCode IDE to run the standalone builder and create an "HTML5" standalone.
61+
62+
Once you've created a standalone, you can open the HTML file in a web browser to try out the engine.
63+
64+
Some web browsers (including Google Chrome) have JavaScript security policies that won't allow you to run the engine from a local filesystem. For these browsers, you will need to run a local web server. You can use the following steps to launch a local-only webserver listening on port 8080:
65+
66+
cd /path/to/my/standalone
67+
python -m SimpleHTTPServer 8080
68+
69+
You can then load http://localhost:8080/ in a web browser to view your standalone HTML5 engine.
70+

Installer/application.desktop

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Encoding=UTF-8
4+
Type=Application
5+
Name=[[ProductTitle]]
6+
Comment=IDE for creating and editing LiveCode applications.
7+
Icon=runrev-[[ProductTag]]
8+
Exec="[[TargetFolder]]/[[ProductName]].[[TargetArchitecture]]" %U
9+
Categories=Development;IDE;
10+
StartupWMClass=[[ProductTag]]

Installer/application.png

1.03 KB
Loading

Installer/description.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LiveCode lets you create apps from one code base that run on every major device and platform.
2+
3+
In a recent survey, our customers told us that LiveCode enabled them to get their projects done in less than half the time, compared to the best alternative.
4+
5+
You can achieve your project goals in a fraction of the time with our compile-free workflow. Make iterative, agile changes changes in real time. Plus, use LiveCode to write code that makes sense. LiveCode's natural programming language is far easier to learn and use than Java, Objective-C, and other traditional languages.
6+
7+
LiveCode allows you to write once and deploy everywhere: iOS, Android, Windows, Mac, Linux, Web and Server.

Installer/document.png

2.07 KB
Loading

Installer/package.txt

Lines changed: 966 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# Tools that Make calls
2222
XCODEBUILD ?= xcodebuild
2323
WINE ?= wine
24+
EMMAKE ?= emmake
2425

2526
# Some magic to control which versions of iOS we try to build. N.b. you may
2627
# also need to modify the buildbot configuration
@@ -171,3 +172,17 @@ all-win-%:
171172
$(MAKE) compile-win-$*
172173

173174
$(addsuffix -win,all config compile): %: %-x86
175+
176+
################################################################
177+
# Emscripten rules
178+
################################################################
179+
180+
config-emscripten:
181+
$(EMMAKE) ./config.sh --platform emscripten
182+
183+
compile-emscripten:
184+
$(EMMAKE) $(MAKE) -C build-emscripten/livecode
185+
186+
all-emscripten:
187+
$(MAKE) config-emscripten
188+
$(MAKE) compile-emscripten

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ On Linux or Mac, you can quickly build LiveCode by installing basic development
7070

7171
Please see the following table, which shows which target platforms are supported by which host platforms. The documentation for compiling for each target platform is linked.
7272

73-
| Target platform | Host platforms |
74-
| ----------------------------- | ----------------- |
75-
| [mac, ios](INSTALL-mac.md) | mac |
76-
| [win](INSTALL-win.md) | win, linux (Wine) |
77-
| [linux](INSTALL-linux.md) | linux |
78-
| [android](INSTALL-android.md) | mac, linux |
73+
| Target platform | Host platforms |
74+
| ------------------------------------------- | ----------------- |
75+
| [mac, ios](INSTALL-mac.md) | mac |
76+
| [win](INSTALL-win.md) | win, linux (Wine) |
77+
| [linux](INSTALL-linux.md) | linux |
78+
| [android](INSTALL-android.md) | mac, linux |
79+
| [emscripten (html5)](INSTALL-emscripten.md) | linux |
7980

8081
## Getting help
8182

0 commit comments

Comments
 (0)