Sha256: f39ed4f8ecfe54cb52af3f3cdd4c104b82348ec27c934c420175da4d0687438b

Contents?: true

Size: 1.48 KB

Versions: 12

Compression:

Stored size: 1.48 KB

Contents

$buildyml = "build.yml"

namespace "config" do
  task :common do
    $config = Jake.config(File.open($buildyml))  
    $basedir = pwd
    $bindir = File.join($basedir,'bin')
    $tmpdir = File.join($bindir,'tmp')
    $targetdir =  File.join($bindir,'target')
    $srcdir = File.join($bindir, '/RhoBundle')
    
    filedir = File.expand_path File.dirname(__FILE__)

    $compileERBbase = File.join(filedir,'..','compileERB')
    $compileRBbase = File.join(filedir,'..','compileRB')

    $appmanifest = File.join(filedir,'..','manifest','createAppManifest.rb')
    $res = File.join(filedir,'..','..','res')
    $prebuilt = File.join($res,'prebuilt')

  end
end

task :makedirs do
    mkdir_p $bindir if not File.exists? $bindir
    mkdir_p $tmpdir if not File.exists? $tmpdir
    mkdir_p $targetdir if not File.exists? $targetdir
end

namespace "bundle" do
  task :common do
  end
end

namespace "check" do
  desc "Check that your system setup is correct for building"
  task :all do
    platforms = RUBY_PLATFORM =~ /(win|w)32$/ ? ["bb","wm","android"] : ["android"]
    platforms.each do |platform|
      Rake::Task["check:#{platform}"].invoke
      puts "-------------------------------"
    end
  end
end

namespace "clean" do
  desc "Clean all build artifacts (removes bin/ directory)"
  task :all do
    rm_rf 'bin'
  end
end

Rake::TaskManager.class_eval do
  def remove_task(task_name)
    @tasks.delete(task_name.to_s)
  end
end
 
def remove_task(task_name)
  Rake.application.remove_task(task_name)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rhodes-1.5.5 lib/build/tasks/common.rake
rhodes-2.0.0.beta2 lib/build/tasks/common.rake
rhodes-2.0.0.beta1 lib/build/tasks/common.rake
rhodes-1.5.4 lib/build/tasks/common.rake
rhodes-1.5.3 lib/build/tasks/common.rake
rhodes-1.5.2 lib/build/tasks/common.rake
rhodes-1.5.1 lib/build/tasks/common.rake
rhodes-1.5.0 lib/build/tasks/common.rake
rhodes-1.4.2 lib/build/tasks/common.rake
rhodes-1.4.1 lib/build/tasks/common.rake
rhodes-1.4.0 lib/build/tasks/common.rake
rhodes-1.2.2 lib/build/tasks/common.rake