Sha256: d4d72b12338454d66efa31a9f393bf57dbafce214ececc41aa9efd3e8a765e97

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 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

  namespace :config do

    task :configure  do |task, args|
      WXRuby3::Config.define(task, args)
      WXRuby3::Config.check
      WXRuby3::Config.save
      exit(0) # do not allow other tasks to be run after wxruby:configure
    end

    task :show do
      WXRuby3::CFG_KEYS.each do |ck|
        puts "%20s => %s" % [ck, WXRuby3.config.get_config(ck)]
      end
    end

    # Bootstrap the wxRuby3 build environment
    task :bootstrap => [WXRuby3.build_cfg, WXRuby3.config.wx_xml_path]

    directory WXRuby3.config.wx_xml_path do
      WXRuby3.config.do_bootstrap
    end

    WXRuby3.config.build_paths.each do |p|
      directory p do
        mkdir_p(p, verbose: !WXRuby3.config.run_silent?)
      end
    end
  end

end

desc 'Configure wxRuby build settings (calling with "-- --help" provides usage information).'
task :configure => 'wxruby:config:configure'

desc 'Show current wxRuby build settings'
task :show => 'wxruby:config:show'

file WXRuby3.build_cfg do
  STDERR.puts "ERROR: Build configuration missing! First run 'rake wxruby::configure'."
  exit(1)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wxruby3-1.4.2 rakelib/config.rake
wxruby3-1.4.1 rakelib/config.rake
wxruby3-1.4.0 rakelib/config.rake
wxruby3-1.3.1 rakelib/config.rake
wxruby3-1.3.0 rakelib/config.rake
wxruby3-1.2.1 rakelib/config.rake
wxruby3-1.2.0 rakelib/config.rake
wxruby3-1.1.2 rakelib/config.rake
wxruby3-1.1.1 rakelib/config.rake
wxruby3-1.1.0 rakelib/config.rake
wxruby3-1.0.1 rakelib/config.rake
wxruby3-0.9.8 rakelib/config.rake
wxruby3-0.9.7 rakelib/config.rake