Sha256: eea087d65d3655d9da1e0b9d6079dbc5bf6c431cf416b98438156ecd53a2d47c

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

###
# wxRuby3 rake file
###

require_relative './configure'

namespace :wxruby do

  task :run, [:app] => 'config:bootstrap' do |t, args|
    Rake::Task[:build].invoke
    WXRuby3.config.run args[:app]
  end

  task :debug, [:app] => 'config:bootstrap' do |t, args|
    Rake::Task[:build].invoke
    WXRuby3.config.debug args[:app]
  end

  task :test => 'config:bootstrap' do |t, args|
    Rake::Task[:build].invoke
    tests = args.extras - [':nodep']
    tests << ENV['TEST'] if ENV['TEST']
    WXRuby3.config.test *tests
  end

  task :irb => 'config:bootstrap' do |t, args|
    Rake::Task[:build].invoke
    WXRuby3.config.irb
  end

  task :exec => 'config:bootstrap' do |t, args|
    WXRuby3.config.execute args.extras
  end

end

desc "Run wxRuby tests"
task :test => 'wxruby:test'

task :tests => 'wxruby:test'

desc 'Run wxRuby (sample) app'
task :run, [:app] => 'wxruby:run'

desc 'Debug wxRuby (sample) app'
task :debug, [:app] => 'wxruby:debug'

task :irb => 'wxruby:irb'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wxruby3-0.9.5 rakelib/run.rake
wxruby3-0.9.4 rakelib/run.rake
wxruby3-0.9.3 rakelib/run.rake
wxruby3-0.9.2 rakelib/run.rake
wxruby3-0.9.1 rakelib/run.rake
wxruby3-0.9.0 rakelib/run.rake