Sha256: 30011172f12ef9876c2d155b8e61c63844c67a81be9ef42b17ea5da459243c5c

Contents?: true

Size: 1.4 KB

Versions: 6

Compression:

Stored size: 1.4 KB

Contents

require 'fileutils'

USE_STLPORT = true


def build_extension(name, arch)
  objects = []
  mkdir_p $tempdir unless File.exists? $tempdir

  mkdir_p $targetdir unless File.exist? $targetdir

  if ENV['RHO_PLATFORM'] == 'wm'
    args = []
    args << "/M4"
    args << name + ".vcproj"
    args << "\"Release|#{$sdk}\""
    cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
    puts cmdline
    puts `#{cmdline}`
    exit unless $? == 0

    cp_r File.join($tempdir, "Release", name + ".lib"), $targetdir

  elsif ENV['RHO_PLATFORM'] == 'win32'
    args = []
    args << "/M4"
    args << name + ".vcxproj"
    args << "\"Debug|Win32\""
    cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
    puts cmdline
    puts `#{cmdline}`
    exit unless $? == 0

    cp_r File.join($tempdir, "Debug", name + ".lib"), $targetdir
  end
 
end

namespace "build" do
  task :config do
    $targetdir = ENV['TARGET_TEMP_DIR']
    raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
    $tempdir = ENV['TEMP_FILES_DIR']
    raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
    $rootdir = ENV['RHO_ROOT']
    raise "RHO_ROOT is not set" if $rootdir.nil?

      $vcbuild = ENV['VCBUILD']
      raise "VCBUILD is not set" if $vcbuild.nil?
      $sdk = "MC3000c50b (ARMV4I)"
#ENV['SDK']
      raise "SDK is not set" if $sdk.nil?

  end

  task :all => :config do

    build_extension('webkit', $arch)
  end
end

task :default => "build:all"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rho-tau-extensions-7.6.0 libs/webkit/ext/wm/Rakefile
rho-tau-extensions-7.4.1 libs/webkit/ext/wm/Rakefile
rho-tau-extensions-7.1.17 libs/webkit/ext/wm/Rakefile
rho-tau-extensions-6.2.0 libs/webkit/ext/wm/Rakefile
rho-tau-extensions-6.0.11 libs/webkit/ext/wm/Rakefile
rho-tau-extensions-6.0.0 libs/webkit/ext/wm/Rakefile