esruby 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/esruby/build.rb +1 -0
- data/resources/build_config.eruby +13 -13
- data/resources/project_template/config.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4c55d90ccb68db124d7f7d785dc979ea9a601ca
|
|
4
|
+
data.tar.gz: 0c8f4c049237b56a7090add1f04ee2fbc48cb079
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e3d2c1c4c26e97661495de239abb3caa9ce9f6c2e1e0cf39465e54c207f15e69154d98e779c312042e19e0fb1a449cb3f92c49f2a6c00ad1d23bdab449fc3d4
|
|
7
|
+
data.tar.gz: bbc0f4293006472cddb079cb92db933aab1dcbd6c9c809ceed107d0f10512b29de5147ea9b64639ab868863b73885d3597a3efdc82e3f24551e6722b1470bd44
|
data/lib/esruby/build.rb
CHANGED
|
@@ -76,6 +76,7 @@ module ESRuby
|
|
|
76
76
|
config[:closure_argument] = closure_argument
|
|
77
77
|
config[:debug_argument] = debug_argument
|
|
78
78
|
config[:build_directory] = build_directory
|
|
79
|
+
config[:project_directory] = project_directory
|
|
79
80
|
config[:gems] = gems
|
|
80
81
|
config[:gem_paths_file] = gem_paths_file
|
|
81
82
|
new_output = eruby.result(config)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MRuby::Build.new do |conf|
|
|
2
2
|
|
|
3
|
-
conf.build_dir =
|
|
3
|
+
conf.build_dir = '<%= build_directory %>/host'
|
|
4
4
|
|
|
5
5
|
toolchain :gcc
|
|
6
6
|
|
|
@@ -15,31 +15,31 @@ MRuby::Toolchain.new('emscripten') do |conf|
|
|
|
15
15
|
|
|
16
16
|
toolchain :clang
|
|
17
17
|
|
|
18
|
-
conf.cc.command =
|
|
19
|
-
conf.cxx.command =
|
|
20
|
-
conf.linker.command =
|
|
21
|
-
conf.archiver.command =
|
|
18
|
+
conf.cc.command = 'emcc'
|
|
19
|
+
conf.cxx.command = 'emcc'
|
|
20
|
+
conf.linker.command = 'emcc'
|
|
21
|
+
conf.archiver.command = 'emar'
|
|
22
22
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
MRuby::CrossBuild.new('app') do |conf|
|
|
27
27
|
|
|
28
|
-
conf.build_dir =
|
|
28
|
+
conf.build_dir = '<%= build_directory %>/emscripten'
|
|
29
29
|
|
|
30
30
|
toolchain :emscripten
|
|
31
31
|
|
|
32
32
|
conf.compilers.each do |c|
|
|
33
33
|
#c.defines += %w(MRB_GC_FIXED_ARENA)
|
|
34
|
-
c.flags <<
|
|
35
|
-
c.flags <<
|
|
36
|
-
c.flags <<
|
|
37
|
-
c.flags <<
|
|
38
|
-
c.flags <<
|
|
39
|
-
c.flags <<
|
|
34
|
+
c.flags << '-Wall'
|
|
35
|
+
c.flags << '-Wno-warn-absolute-paths'
|
|
36
|
+
c.flags << '--bind'
|
|
37
|
+
c.flags << '<%= optimization_argument %>'
|
|
38
|
+
c.flags << '<%= closure_argument %>'
|
|
39
|
+
c.flags << '<%= debug_argument %>'
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
conf.
|
|
42
|
+
conf.gem_clone_dir = '<%= project_directory %>/gems'
|
|
43
43
|
conf.gem :github => 'robfors/esruby-esruby'
|
|
44
44
|
<% for gem in gems %>
|
|
45
45
|
conf.gem(<%= gem.inspect %>)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: esruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Fors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: erubis
|
|
@@ -439,7 +439,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
439
439
|
version: '0'
|
|
440
440
|
requirements: []
|
|
441
441
|
rubyforge_project:
|
|
442
|
-
rubygems_version: 2.
|
|
442
|
+
rubygems_version: 2.6.11
|
|
443
443
|
signing_key:
|
|
444
444
|
specification_version: 4
|
|
445
445
|
summary: Ruby running in the browser
|