Debian Codegraph @

external/rx/Rakefile

raw
1 require "rake/clean"
2
3 CLEAN.include "*.xam"
4 CLEAN.include "xpkg"
5
6 COMPONENT = "rx-1.0.xam"
7
8 file "xpkg/xpkg.exe" do
9 puts "* Downloading xpkg..."
10 mkdir "xpkg"
11 sh "curl -L https://components.xamarin.com/submit/xpkg > xpkg.zip"
12 sh "unzip -o xpkg.zip -d xpkg"
13 sh "rm xpkg.zip"
14 end
15
16 task :default => "xpkg/xpkg.exe" do
17 line = <<-END
18 mono xpkg/xpkg.exe create #{COMPONENT} \
19 --name="Reactive Extensions (Rx)" \
20 --publisher="Xamarin, Inc." \
21 --website="http://www.xamarin.com" \
22 --summary="A library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators." \
23 --license="Rx/NET/Source/license.txt" \
24 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Interfaces.dll \
25 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Core.dll \
26 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Linq.dll \
27 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.PlatformServices.dll \
28 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Experimental.dll \
29 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Debugger.dll \
30 --library=android:external/rx/Rx/NET/Source/Rx_Xamarin/android/libs/System.Reactive.Providers.dll \
31 --details=component/Details.md \
32 --getting-started=component/GettingStarted.md \
33 --icon=component/rx_128x128.png \
34 --sample="GitHub API Client. Demonstrates Rx with GitHub":"external/rx/Rx/NET/Source/Rx_Xamarin/android/samples/GithubApiClientSample/GithubApiClientSample.sln"
35 END
36 puts "* Creating #{COMPONENT}..."
37 puts line.strip.gsub "\t\t", "\\\n "
38 sh line, :verbose => false
39 puts "* Created #{COMPONENT}"
40 end