Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit 2bfd49e

Browse files
farcallerbgamari
authored andcommitted
Zinc now depends on shiny
1 parent cf1544f commit 2bfd49e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Rakefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Context.create(__FILE__, ENV['PLATFORM'])
77

88
provide_stdlibs
99

10+
# shiny
11+
compile_rust :shiny_crate, {
12+
source: 'thirdparty/shiny/src/lib.rs'.in_root,
13+
produce: 'thirdparty/shiny/src/lib.rs'.in_root.as_rlib.in_build,
14+
out_dir: true,
15+
build_for: :host,
16+
}
17+
1018
# tests
1119
desc "Run tests"
1220
task :test
@@ -90,9 +98,10 @@ rust_tests :platformtree_test, {
9098
produce: 'platformtree_test'.in_build,
9199
}
92100

101+
# zinc test
93102
rust_tests :zinc_test, {
94103
source: 'main.rs'.in_source,
95-
deps: [:core_crate, :macro_ioreg],
104+
deps: [:core_crate, :macro_ioreg, :hamcrest_crate, :shiny_crate],
96105
produce: 'zinc_test'.in_build,
97106
recompile_on: [:platform],
98107
build_for: :host,

support/rake.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,8 @@ def provide_stdlibs
162162
Rake::FileTask.define_task 'thirdparty/hamcrest-rust'.in_root do |t|
163163
sh "git clone --single-branch --depth 1 https://github.com/carllerche/hamcrest-rust #{t.name}"
164164
end.invoke
165+
166+
Rake::FileTask.define_task 'thirdparty/shiny'.in_root do |t|
167+
sh "git clone --single-branch --depth 1 https://github.com/farcaller/shiny #{t.name}"
168+
end.invoke
165169
end

0 commit comments

Comments
 (0)