Skip to content

Commit

Permalink
Add some example code for teapot build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 17, 2013
1 parent 229e8c1 commit 4d3772d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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
16 changes: 16 additions & 0 deletions 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

0 comments on commit 4d3772d

Please sign in to comment.