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

Commit 0188eec

Browse files
Merge branch 'develop-6.7-gyp' of https://github.com/runrev/livecode into develop-7.0-gyp
2 parents 57cf62e + dfba83e commit 0188eec

File tree

3 files changed

+58
-6
lines changed

3 files changed

+58
-6
lines changed

buildbot.mk

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
# This file contains rules used by the LiveCode Buildbot installation at
1818
# <https://vulcan.livecode.com/>
1919

20+
# Load version information
21+
include version
22+
23+
# Get git commit information
24+
ifeq ($(BUILD_EDITION),commercial)
25+
GIT_VERSION=g$(shell git --git-dir=../.git rev-parse --short HEAD)
26+
else
27+
GIT_VERSION=g$(shell git rev-parse --short HEAD)
28+
endif
29+
2030
################################################################
2131
# Configure with gyp
2232
################################################################
@@ -91,6 +101,12 @@ buildtool_command = $(LIVECODE) -ui $(BUILDTOOL_STACK) \
91101
--engine-dir . --output-dir . --work-dir ./_cache/builder_tool \
92102
--private-dir ..
93103

104+
# Settings for upload
105+
RSYNC ?= rsync
106+
UPLOAD_SERVER ?= meg.on-rev.com
107+
UPLOAD_PATH = staging/$(BUILD_LONG_VERSION)/$(GIT_VERSION)
108+
UPLOAD_MAX_RETRIES = 50
109+
94110
dist-docs:
95111
$(buildtool_command) --platform $(buildtool_platform) --stage docs
96112

@@ -121,12 +137,39 @@ dist-tools: dist-tools-community
121137
distmac-disk: distmac-disk-community
122138

123139
dist-tools-community:
124-
$(buildtool_command) --platform linux --platform mac --stage tools --edition community
140+
$(buildtool_command) --platform linux --platform mac --platform win --stage tools --edition community
125141
dist-tools-commercial:
126-
$(buildtool_command) --platform linux --platform mac --stage tools --edition commercial
127-
128-
# FIXME upload installers to distribution server
129-
dist-upload:
142+
$(buildtool_command) --platform linux --platform mac --platform win --stage tools --edition commercial
143+
144+
# Make a list of installers to be uploaded to the distribution server
145+
dist-upload-files.txt:
146+
find . -maxdepth 1 -name 'LiveCode*Installer-*-Mac.dmg' \
147+
-o -name 'LiveCode*Installer-*-Windows.exe' \
148+
-o -name 'LiveCode*Installer-*-Linux.*' \
149+
> $@
150+
151+
# Perform the upload. This is in two steps:
152+
# (1) Create the target directory
153+
# (2) Transfer the files using rsync
154+
#
155+
# We need to do the actual transfer in a loop to deal with possible
156+
# connection drops
157+
dist-upload-mkdir:
158+
ssh $(UPLOAD_SERVER) "mkdir -p $(UPLOAD_PATH)"
159+
dist-upload: dist-upload-files.txt dist-upload-mkdir
160+
trap "echo Interrupted; exit;" SIGINT SIGTERM; \
161+
i=0; \
162+
false; \
163+
while [ $$? -ne 0 -a $$i -lt $(UPLOAD_MAX_RETRIES) ] ; do \
164+
i=$$(($$i+1)); \
165+
rsync -v --progress --partial --chmod=ugo=rwX --executability \
166+
--files-from=dist-upload-files.txt . $(UPLOAD_SERVER):$(UPLOAD_PATH); \
167+
done; \
168+
rc=$$?; \
169+
if [ $$i -eq $(UPLOAD_MAX_RETRIES) ]; then \
170+
echo "Maximum retries reached, giving up"; \
171+
fi; \
172+
exit $$rc
130173

131174
# This rule is used for packing the Mac installer contents; the
132175
# resulting archive gets transferred to a Mac for signing and

engine/kernel.gypi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@
6060
'src/mblactivityindicator.cpp',
6161
'src/mblcamera.cpp',
6262
],
63+
64+
# Force the entry point to be included in the output
65+
'link_settings':
66+
{
67+
'ldflags':
68+
[
69+
'-Wl,--undefined,Java_com_runrev_android_Engine_doCreate'
70+
],
71+
},
6372
},
6473
],
6574
[

libexternal/src/external.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifdef _WINDOWS
1212
#define LIBRARY_EXPORT __declspec(dllexport)
1313
#else
14-
#define LIBRARY_EXPORT
14+
#define LIBRARY_EXPORT __attribute__((__visibility__("default")))
1515
#endif
1616

1717
enum

0 commit comments

Comments
 (0)