Sha256: a0457df0490e0bf6c811d5d9913a0ead765a3ff08e0ba8cf24fce4e4fda6ff26

Contents?: true

Size: 1.63 KB

Versions: 15

Compression:

Stored size: 1.63 KB

Contents

require 'fileutils'

require ENV['RHO_ROOT']+'/lib/build/jake.rb'


USE_STLPORT = true


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?

    $xcodebuild = ENV['XCODEBUILD']	
    raise "XCODEBUILD is not set" if $xcodebuild.nil?
    
    $configuration = ENV['CONFIGURATION']	
    raise "CONFIGURATION is not set" if $configuration.nil?

    $sdk = ENV['SDK_NAME']	
    raise "SDK_NAME is not set" if $sdk.nil?

    $bindir = ENV['PLATFORM_DEVELOPER_BIN_DIR']
    raise "PLATFORM_DEVELOPER_BIN_DIR is not set" if $bindir.nil?
    
    $sdkroot = ENV['SDKROOT']
    raise "SDKROOT is not set" if $sdkroot.nil?


    $arch = ENV['ARCHS']
    raise "ARCHS is not set" if $arch.nil?
    
    $gccbin = $bindir + '/gcc-4.2'
    $arbin = $bindir + '/ar'

  end

  task :all => :config do

    iphone_path = '.'


    simulator = $sdk =~ /iphonesimulator/

    if $configuration == 'Distribution'
       $configuration = 'Release'
    end

    chdir iphone_path
    args = ['build', '-target', 'Barcode', '-configuration', $configuration, '-sdk', $sdk]

    puts Jake.run($xcodebuild,args)
    ret = $?

    # copy result to $targetdir
    result_lib = iphone_path + '/build/' + $configuration + '-' + ( simulator ? "iphonesimulator" : "iphoneos") + '/libBarcode.a'
    target_lib = $targetdir + '/libBarcode.a'

    mkdir_p $targetdir    
    cp result_lib,target_lib

  end
end

task :default => "build:all"

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rho-tau-extensions-7.1.17 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rho-tau-extensions-6.2.0 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rhodes-6.0.11 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rho-tau-extensions-6.0.11 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rho-tau-extensions-6.0.0 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rho-tau-extensions-5.5.18 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rhodes-5.5.18 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rho-tau-extensions-5.5.17 libs/enterprise-barcode/ext/platform/iphone/Rakefile
rhodes-5.5.17 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.15 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.0.22 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.2 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.0.7 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.0.3 lib/commonAPI/barcode/ext/platform/iphone/Rakefile
rhodes-5.5.0 lib/commonAPI/barcode/ext/platform/iphone/Rakefile