mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
bc735bbe22
- unified makefile project for the whole repos - new separate project for tests
34 lines
630 B
Ruby
34 lines
630 B
Ruby
require 'rubygems'
|
|
require 'rake'
|
|
require 'makefile' # our replacement for rake's make-style dependency loader
|
|
|
|
include Rake::DSL if defined?(Rake::DSL)
|
|
|
|
class Rake::Task
|
|
attr_reader :already_invoked
|
|
end
|
|
|
|
class RakeWrapper
|
|
|
|
def initialize
|
|
@makefile_loader = Rake::MakefileLoader.new # use our custom replacement noted above
|
|
end
|
|
|
|
def [](task)
|
|
return Rake::Task[task]
|
|
end
|
|
|
|
def task_list
|
|
return Rake::Task.tasks
|
|
end
|
|
|
|
def create_file_task(file_task, dependencies)
|
|
file(file_task => dependencies)
|
|
end
|
|
|
|
def load_dependencies(dependencies_path)
|
|
@makefile_loader.load(dependencies_path)
|
|
end
|
|
|
|
end
|