diff --git a/ext/rakefile.rb b/ext/rakefile.rb new file mode 100644 index 0000000..c421b08 --- /dev/null +++ b/ext/rakefile.rb @@ -0,0 +1,12 @@ + +require 'teapot' + +task :default do + controller = Teapot::Controller.new(__dir__) + + controller.fetch + + packages = ["Dependencies/ffi-clang", "variant-release", "platform-darwin-osx"] + + controller.build(packages) +end diff --git a/ext/teapot.rb b/ext/teapot.rb new file mode 100644 index 0000000..aef8762 --- /dev/null +++ b/ext/teapot.rb @@ -0,0 +1,16 @@ +# +# This file is part of the "Teapot" project, and is released under the MIT license. +# + +teapot_version "0.8.0" + +define_target "ffi-clang" do |target| + target.depends "Library/clang" + target.provides "Dependencies/ffi-clang" +end + +define_configuration "ffi-clang" do |configuration| + configuration[:source] = "https://github.com/dream-framework/" + + configuration.require "clang" +end