Sha256: d73013670fdc23a5cfb9c97e1ff2dcffecef248bc4918972159ce79f9dbe1c0f

Contents?: true

Size: 1.03 KB

Versions: 50

Compression:

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

    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
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 = ENV['SDK']
      raise "SDK is not set" if $sdk.nil?

  end

  task :all => :config do

    build_extension('Barcode', $arch)
  end
end

task :default => "build:all"

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
rhodes-3.3.2.beta.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.3.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.3.0 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.3.0.beta.3 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.3.0.beta.2 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.3.0.beta.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.3 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.2 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.2.beta lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.9 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.8 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.7 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.6 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.5 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.4 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.2 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.2.0.beta.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile
rhodes-3.1.1 lib/extensions/barcode/ext/barcode/platform/wm/Rakefile