Sha256: 6955731177eced6d33918872abe85396ebe5a517b80c8be1914942d72b637a84

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

def build_extension(name)
  require File.join($rootdir, 'lib/build/jake.rb')
  args = ['-o', 'Makefile', '-r', '-spec', $qmake_spec, "#{name}.pro", 'CONFIG-=debug', 'CONFIG+=release', 'CONFIG+=no_fixpath', "RHODES_ROOT='#{$rootdir}'", $qmakevars]
  puts Jake.run($qmake,args)
  fail "[qmake #{name}.pro]" unless $? == 0
  #puts Jake.run($make, ['clean'])
  fail "[make clean]" unless $? == 0
  puts Jake.run($make, ['all'])
  fail "[make all]" unless $? == 0
end

namespace "build" do
  task :config do
    $platform = ENV['RHO_PLATFORM']
    raise "RHO_PLATFORM is not set" if $platform.nil?
    $rootdir = ENV['RHO_ROOT']
    raise "RHO_ROOT is not set" if $rootdir.nil?
    $qmake = ENV['RHO_QMAKE']
    raise "RHO_QMAKE is not set" if $qmake.nil?
    $qmake_spec = ENV['RHO_QMAKE_SPEC']
    raise "RHO_QMAKE_SPEC is not set" if $qmake_spec.nil?
    $qmakevars = ENV['RHO_QMAKE_VARS']
    if $platform == 'win32'
      $make = 'nmake'
    else
      $make = 'make'
    end
  end

  task :all => :config do
    build_extension('rhoconnect-client')
  end
end

task :default => "build:all"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhoconnect-client-7.6.0 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-7.5.1 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-7.4.1 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-7.1.17 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-6.2.0 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-6.0.11 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.18 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.17 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.15 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.0.22 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.2 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.0.7 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.0.3 ./ext/rhoconnect-client/ext/platform/qt/Rakefile
rhoconnect-client-5.5.0 ./ext/rhoconnect-client/ext/platform/qt/Rakefile