Skip to content

Commit

Permalink
Bundle libqmlbind
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchas116 committed Jun 11, 2015
1 parent f7f6034 commit 7720532
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qml.gemspec
Expand Up @@ -13,7 +13,14 @@ Gem::Specification.new do |spec|
spec.homepage = "http://seanchas116.github.io/ruby-qml/"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0")
qmlbind_dir = "ext/qml/lib/libqmlbind"
qmlbind_files = Dir.chdir(qmlbind_dir) do
`git ls-files -z`
.split("\x0")
.map { |file| "#{qmlbind_dir}/#{file}" }
end

spec.files = `git ls-files -z`.split("\x0") + qmlbind_files
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
Expand Down

0 comments on commit 7720532

Please sign in to comment.