This repository was archived by the owner on Apr 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : cpp
2
2
sudo : false
3
+ compiler :
4
+ - gcc
3
5
4
6
# Cache .npm folder for faster npm install
5
7
cache :
6
8
directories :
7
9
- $HOME/.npm
8
10
11
+ env :
12
+ global :
13
+ - GCC_VERSION="4.8"
14
+
9
15
addons :
10
16
apt :
11
17
sources :
12
18
- ubuntu-toolchain-r-test
13
19
packages :
14
20
# Build dependencies:
15
- - cmake
21
+ - cmake3
22
+ - g++-4.8 # Required for latest libstdc++6
16
23
17
24
install :
18
25
# Emscripten
@@ -26,7 +33,7 @@ install:
26
33
- npm install -g grunt-cli
27
34
# GDevelop
28
35
- git clone https://github.com/4ian/GDevelop.git
29
- - cd GDevelop && git clone https://github.com/4ian/GDevelop.js.git
36
+ - cd GDevelop && git clone -b refactor/emscripten-build https://github.com/4ian/GDevelop.js.git
30
37
- cd GDevelop.js
31
38
- npm install
32
39
- npm run build
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ module.exports = function(grunt) {
9
9
var isWin = / ^ w i n / . test ( process . platform ) ;
10
10
var cmakeBinary = isWin
11
11
? '"C:\\Program Files (x86)\\CMake\\bin\\cmake"'
12
- : 'cmake' ;
12
+ : 'emconfigure cmake' ;
13
13
var cmakeArgs = isWin ? '-G "MinGW Makefiles"' : '' ;
14
14
15
- var makeBinary = isWin ? 'mingw32-make' : 'make' ;
15
+ var makeBinary = isWin ? 'mingw32-make' : 'emmake make' ;
16
16
17
17
//Sanity checks
18
18
var fs = require ( 'fs' ) ;
You can’t perform that action at this time.
0 commit comments