Sha256: 5237e75c1066f674090fe900152bc51db90bd473bea5b48c9823d8d132abc9ca

Contents?: true

Size: 993 Bytes

Versions: 11

Compression:

Stored size: 993 Bytes

Contents

require File.join(pwd, '../../../../../build/jake.rb')

def build_extension(name)
  dir = File.join($rootdir, "lib/commonAPI/#{name}/ext/platform/qt")
  qmake = "#{$qmake} -o Makefile -r -spec #{$qmake_spec} #{name}.pro CONFIG-=debug CONFIG+=release #{$qmakevars}"

  Jake.run3(qmake           , dir)
  #Jake.run3("#{$make} clean", dir)
  Jake.run3("#{$make} all"  , dir)
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('coreapi')
  end
end

task :default => "build:all"

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rhodes-5.5.18 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.17 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.15 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.0.22 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.2 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.0.7 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.0.3 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
rhodes-5.5.0 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
tauplatform-1.0.3 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
tauplatform-1.0.2 lib/commonAPI/coreapi/ext/platform/qt/Rakefile
tauplatform-1.0.1 lib/commonAPI/coreapi/ext/platform/qt/Rakefile