Sha256: 3592414a8526a66ce0769d9a67fad50f298112623daa47705961b7beecc671b4

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

require 'tools/freebasic'

# mongrel_service (native)
namespace :native do
  exe_options = {
    :debug => false,
    :profile => false,
    :errorchecking => :ex,
    :mt => true,
    :pedantic => true
  }

  exe_options[:debug] = true          if ENV['DEBUG']
  exe_options[:profile] = true        if ENV['PROFILE']
  exe_options[:errorchecking] = :exx  if ENV['EXX']
  exe_options[:pedantic] = false      if ENV['NOPEDANTIC']

  project_task  'mongrel_service' do
    executable  'mongrel_service'
    build_to    'resources'

    define      'DEBUG_LOG' if ENV['LOG']
    define      "GEM_VERSION=\"#{HOE.spec.version}\""

    main        'src/mongrel_service/mongrel_service.bas'
    source      'src/mongrel_service/console_process.bas'

    search_path 'src/ServiceFB'

    lib_path    'builds'
    library     'ServiceFB', 'ServiceFB_Utils'
    library     'user32', 'advapi32', 'psapi'

    option      exe_options
  end
end

task :clean => ['native:clobber']
task :native_service => [:native_lib, 'native:build']

desc "Compile native code"
task :compile => [:native_service]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongrel_service-0.4.0 tasks/native_service.rake
mongrel_service-0.4.beta3 tasks/native_service.rake
mongrel_service-0.4.beta2 tasks/native_service.rake
mongrel_service-0.4.beta1 tasks/native_service.rake