rhodes 3.2.1 → 3.2.2.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/Manifest.txt +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +24 -3
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivity.java +11 -280
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraManager.java +11 -4
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +2 -1
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Barcode.xcodeproj/project.pbxproj +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.h +25 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +195 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.h +59 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +346 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewManager.h +16 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +9 -2
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +7 -1
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +21 -4
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +32 -2
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +1 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +26 -5
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +1 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +2 -3
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/libzbar.a +0 -0
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +3 -2
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +7 -4
- data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +2 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +7 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraOldService.java +5 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +8 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraService.java +4 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +11 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +21 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +33 -11
- data/platform/android/build/android.rake +63 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/icon.png +0 -0
- data/platform/iphone/rbuild/iphone.rake +6 -4
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +4 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Dynamic.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Scripting.Core.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Scripting.dll +0 -0
- data/res/generators/rhogen.rb +191 -0
- data/res/generators/templates/extension/app/MontanaTest/controller.rb +20 -0
- data/res/generators/templates/extension/app/MontanaTest/index.erb +17 -0
- data/res/generators/templates/extension/extensions/montana/ext.yml +4 -0
- data/res/generators/templates/extension/extensions/montana/ext/build +17 -0
- data/res/generators/templates/extension/extensions/montana/ext/build.bat +36 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/Rakefile +77 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/ext_build.files +1 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/jni/src/montana.cpp +28 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/src/com/montana/Montana.java +10 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/Montana.files +1 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/Rakefile +97 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/montana.jdp +48 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/src/com/montana/Montana.java +118 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Classes/Montana.h +4 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Classes/Montana.m +24 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Montana.xcodeproj/project.pbxproj +300 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Montana_Prefix.pch +7 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Rakefile +74 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/Montana.vcproj +331 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/Rakefile +62 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/src/montana_wm.cpp +40 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/src/montana_wm.h +2 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/ruby/montana.i +15 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/ruby/montana_wrap.c +2287 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/src/montana.c +20 -0
- data/res/generators/templates/extension/extensions/montana/montana.rb +13 -0
- data/spec/framework_spec/build.yml +1 -1
- data/spec/phone_spec/build.yml +1 -1
- data/version +1 -1
- metadata +42 -5
data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Rakefile
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
USE_STLPORT = true
|
4
|
+
|
5
|
+
puts "<%= name.camel_case %> extension !"
|
6
|
+
|
7
|
+
namespace "build" do
|
8
|
+
|
9
|
+
task :config do
|
10
|
+
|
11
|
+
$targetdir = ENV['TARGET_TEMP_DIR']
|
12
|
+
raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
|
13
|
+
|
14
|
+
$tempdir = ENV['TEMP_FILES_DIR']
|
15
|
+
raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
|
16
|
+
|
17
|
+
$rootdir = ENV['RHO_ROOT']
|
18
|
+
raise "RHO_ROOT is not set" if $rootdir.nil?
|
19
|
+
|
20
|
+
$xcodebuild = ENV['XCODEBUILD']
|
21
|
+
raise "XCODEBUILD is not set" if $xcodebuild.nil?
|
22
|
+
|
23
|
+
$configuration = ENV['CONFIGURATION']
|
24
|
+
raise "CONFIGURATION is not set" if $configuration.nil?
|
25
|
+
|
26
|
+
$sdk = ENV['SDK_NAME']
|
27
|
+
raise "SDK_NAME is not set" if $sdk.nil?
|
28
|
+
|
29
|
+
$bindir = ENV['PLATFORM_DEVELOPER_BIN_DIR']
|
30
|
+
raise "PLATFORM_DEVELOPER_BIN_DIR is not set" if $bindir.nil?
|
31
|
+
|
32
|
+
$sdkroot = ENV['SDKROOT']
|
33
|
+
raise "SDKROOT is not set" if $sdkroot.nil?
|
34
|
+
|
35
|
+
$arch = ENV['ARCHS']
|
36
|
+
raise "ARCHS is not set" if $arch.nil?
|
37
|
+
|
38
|
+
$gccbin = $bindir + '/gcc-4.2'
|
39
|
+
$arbin = $bindir + '/ar'
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
task :all => :config do
|
44
|
+
|
45
|
+
iphone_path = '.'
|
46
|
+
|
47
|
+
simulator = $sdk =~ /iphonesimulator/
|
48
|
+
|
49
|
+
if $configuration == 'Distribution'
|
50
|
+
$configuration = 'Release'
|
51
|
+
end
|
52
|
+
|
53
|
+
result_lib = iphone_path + '/build/' + $configuration + '-' + ( simulator ? "iphonesimulator" : "iphoneos") + '/lib<%= name.camel_case %>.a'
|
54
|
+
target_lib = $targetdir + '/lib<%= name.camel_case %>.a'
|
55
|
+
|
56
|
+
rm_rf 'build'
|
57
|
+
rm_rf target_lib
|
58
|
+
|
59
|
+
args = ['build', '-target', '<%= name.camel_case %>', '-configuration', $configuration, '-sdk', $sdk]
|
60
|
+
|
61
|
+
require $rootdir + '/lib/build/jake.rb'
|
62
|
+
|
63
|
+
puts Jake.run($xcodebuild,args)
|
64
|
+
ret = $?
|
65
|
+
|
66
|
+
# copy result to $targetdir
|
67
|
+
cp result_lib,target_lib
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
task :default => "build:all"
|
data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/Montana.vcproj
ADDED
@@ -0,0 +1,331 @@
|
|
1
|
+
<?xml version="1.0" encoding="windows-1251"?>
|
2
|
+
<VisualStudioProject
|
3
|
+
ProjectType="Visual C++"
|
4
|
+
Version="8.00"
|
5
|
+
Name="<%= name.camel_case() %>"
|
6
|
+
ProjectGUID="{93453E28-E84A-40C4-BD6A-51A8373D7044}"
|
7
|
+
Keyword="Win32Proj"
|
8
|
+
>
|
9
|
+
<Platforms>
|
10
|
+
<Platform
|
11
|
+
Name="Windows Mobile 6 Professional SDK (ARMV4I)"
|
12
|
+
/>
|
13
|
+
<Platform
|
14
|
+
Name="Win32"
|
15
|
+
/>
|
16
|
+
</Platforms>
|
17
|
+
<ToolFiles>
|
18
|
+
</ToolFiles>
|
19
|
+
<Configurations>
|
20
|
+
<Configuration
|
21
|
+
Name="Debug|Windows Mobile 6 Professional SDK (ARMV4I)"
|
22
|
+
OutputDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
23
|
+
IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
24
|
+
ConfigurationType="4"
|
25
|
+
CharacterSet="1"
|
26
|
+
>
|
27
|
+
<Tool
|
28
|
+
Name="VCPreBuildEventTool"
|
29
|
+
/>
|
30
|
+
<Tool
|
31
|
+
Name="VCCustomBuildTool"
|
32
|
+
/>
|
33
|
+
<Tool
|
34
|
+
Name="VCXMLDataGeneratorTool"
|
35
|
+
/>
|
36
|
+
<Tool
|
37
|
+
Name="VCWebServiceProxyGeneratorTool"
|
38
|
+
/>
|
39
|
+
<Tool
|
40
|
+
Name="VCMIDLTool"
|
41
|
+
/>
|
42
|
+
<Tool
|
43
|
+
Name="VCCLCompilerTool"
|
44
|
+
ExecutionBucket="7"
|
45
|
+
Optimization="0"
|
46
|
+
AdditionalIncludeDirectories="$(RHO_ROOT)\platform\shared\ruby\wince;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common"
|
47
|
+
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
48
|
+
MinimalRebuild="true"
|
49
|
+
RuntimeLibrary="1"
|
50
|
+
UsePrecompiledHeader="0"
|
51
|
+
WarningLevel="3"
|
52
|
+
DebugInformationFormat="3"
|
53
|
+
/>
|
54
|
+
<Tool
|
55
|
+
Name="VCManagedResourceCompilerTool"
|
56
|
+
/>
|
57
|
+
<Tool
|
58
|
+
Name="VCResourceCompilerTool"
|
59
|
+
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES)"
|
60
|
+
Culture="1033"
|
61
|
+
AdditionalIncludeDirectories="$(IntDir)"
|
62
|
+
/>
|
63
|
+
<Tool
|
64
|
+
Name="VCPreLinkEventTool"
|
65
|
+
/>
|
66
|
+
<Tool
|
67
|
+
Name="VCLibrarianTool"
|
68
|
+
AdditionalOptions=" /subsystem:windowsce,5.02"
|
69
|
+
OutputFile="$(OutDir)/<%= name.camel_case() %>.lib"
|
70
|
+
/>
|
71
|
+
<Tool
|
72
|
+
Name="VCALinkTool"
|
73
|
+
/>
|
74
|
+
<Tool
|
75
|
+
Name="VCXDCMakeTool"
|
76
|
+
/>
|
77
|
+
<Tool
|
78
|
+
Name="VCBscMakeTool"
|
79
|
+
/>
|
80
|
+
<Tool
|
81
|
+
Name="VCCodeSignTool"
|
82
|
+
/>
|
83
|
+
<Tool
|
84
|
+
Name="VCPostBuildEventTool"
|
85
|
+
/>
|
86
|
+
<DeploymentTool
|
87
|
+
ForceDirty="-1"
|
88
|
+
RemoteDirectory=""
|
89
|
+
RegisterOutput="0"
|
90
|
+
AdditionalFiles=""
|
91
|
+
/>
|
92
|
+
<DebuggerTool
|
93
|
+
/>
|
94
|
+
</Configuration>
|
95
|
+
<Configuration
|
96
|
+
Name="Debug|Win32"
|
97
|
+
OutputDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
98
|
+
IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
99
|
+
ConfigurationType="4"
|
100
|
+
CharacterSet="1"
|
101
|
+
>
|
102
|
+
<Tool
|
103
|
+
Name="VCPreBuildEventTool"
|
104
|
+
/>
|
105
|
+
<Tool
|
106
|
+
Name="VCCustomBuildTool"
|
107
|
+
/>
|
108
|
+
<Tool
|
109
|
+
Name="VCXMLDataGeneratorTool"
|
110
|
+
/>
|
111
|
+
<Tool
|
112
|
+
Name="VCWebServiceProxyGeneratorTool"
|
113
|
+
/>
|
114
|
+
<Tool
|
115
|
+
Name="VCMIDLTool"
|
116
|
+
/>
|
117
|
+
<Tool
|
118
|
+
Name="VCCLCompilerTool"
|
119
|
+
Optimization="0"
|
120
|
+
AdditionalIncludeDirectories="$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common"
|
121
|
+
PreprocessorDefinitions="_DEBUG;WIN32;WINDOWS;DEBUG;_LIB;_UNICODE;UNICODE"
|
122
|
+
MinimalRebuild="true"
|
123
|
+
RuntimeLibrary="1"
|
124
|
+
UsePrecompiledHeader="0"
|
125
|
+
WarningLevel="3"
|
126
|
+
DebugInformationFormat="3"
|
127
|
+
/>
|
128
|
+
<Tool
|
129
|
+
Name="VCManagedResourceCompilerTool"
|
130
|
+
/>
|
131
|
+
<Tool
|
132
|
+
Name="VCResourceCompilerTool"
|
133
|
+
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES)"
|
134
|
+
Culture="1033"
|
135
|
+
AdditionalIncludeDirectories="$(IntDir)"
|
136
|
+
/>
|
137
|
+
<Tool
|
138
|
+
Name="VCPreLinkEventTool"
|
139
|
+
/>
|
140
|
+
<Tool
|
141
|
+
Name="VCLibrarianTool"
|
142
|
+
OutputFile="$(OutDir)/<%= name.camel_case() %>.lib"
|
143
|
+
/>
|
144
|
+
<Tool
|
145
|
+
Name="VCALinkTool"
|
146
|
+
/>
|
147
|
+
<Tool
|
148
|
+
Name="VCXDCMakeTool"
|
149
|
+
/>
|
150
|
+
<Tool
|
151
|
+
Name="VCBscMakeTool"
|
152
|
+
/>
|
153
|
+
<Tool
|
154
|
+
Name="VCFxCopTool"
|
155
|
+
/>
|
156
|
+
<Tool
|
157
|
+
Name="VCPostBuildEventTool"
|
158
|
+
/>
|
159
|
+
</Configuration>
|
160
|
+
<Configuration
|
161
|
+
Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
|
162
|
+
OutputDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
163
|
+
IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
164
|
+
ConfigurationType="4"
|
165
|
+
CharacterSet="1"
|
166
|
+
>
|
167
|
+
<Tool
|
168
|
+
Name="VCPreBuildEventTool"
|
169
|
+
/>
|
170
|
+
<Tool
|
171
|
+
Name="VCCustomBuildTool"
|
172
|
+
/>
|
173
|
+
<Tool
|
174
|
+
Name="VCXMLDataGeneratorTool"
|
175
|
+
/>
|
176
|
+
<Tool
|
177
|
+
Name="VCWebServiceProxyGeneratorTool"
|
178
|
+
/>
|
179
|
+
<Tool
|
180
|
+
Name="VCMIDLTool"
|
181
|
+
/>
|
182
|
+
<Tool
|
183
|
+
Name="VCCLCompilerTool"
|
184
|
+
ExecutionBucket="7"
|
185
|
+
Optimization="2"
|
186
|
+
AdditionalIncludeDirectories="$(RHO_ROOT)\platform\shared\ruby\wince;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common"
|
187
|
+
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
188
|
+
RuntimeLibrary="0"
|
189
|
+
UsePrecompiledHeader="0"
|
190
|
+
WarningLevel="3"
|
191
|
+
DebugInformationFormat="3"
|
192
|
+
/>
|
193
|
+
<Tool
|
194
|
+
Name="VCManagedResourceCompilerTool"
|
195
|
+
/>
|
196
|
+
<Tool
|
197
|
+
Name="VCResourceCompilerTool"
|
198
|
+
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES)"
|
199
|
+
Culture="1033"
|
200
|
+
AdditionalIncludeDirectories="$(IntDir)"
|
201
|
+
/>
|
202
|
+
<Tool
|
203
|
+
Name="VCPreLinkEventTool"
|
204
|
+
/>
|
205
|
+
<Tool
|
206
|
+
Name="VCLibrarianTool"
|
207
|
+
AdditionalOptions=" /subsystem:windowsce,5.02"
|
208
|
+
OutputFile="$(OutDir)/<%= name.camel_case() %>.lib"
|
209
|
+
/>
|
210
|
+
<Tool
|
211
|
+
Name="VCALinkTool"
|
212
|
+
/>
|
213
|
+
<Tool
|
214
|
+
Name="VCXDCMakeTool"
|
215
|
+
/>
|
216
|
+
<Tool
|
217
|
+
Name="VCBscMakeTool"
|
218
|
+
/>
|
219
|
+
<Tool
|
220
|
+
Name="VCCodeSignTool"
|
221
|
+
/>
|
222
|
+
<Tool
|
223
|
+
Name="VCPostBuildEventTool"
|
224
|
+
/>
|
225
|
+
<DeploymentTool
|
226
|
+
ForceDirty="-1"
|
227
|
+
RemoteDirectory=""
|
228
|
+
RegisterOutput="0"
|
229
|
+
AdditionalFiles=""
|
230
|
+
/>
|
231
|
+
<DebuggerTool
|
232
|
+
/>
|
233
|
+
</Configuration>
|
234
|
+
<Configuration
|
235
|
+
Name="Release|Win32"
|
236
|
+
OutputDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
237
|
+
IntermediateDirectory="$(TEMP_FILES_DIR)\$(ConfigurationName)"
|
238
|
+
ConfigurationType="4"
|
239
|
+
CharacterSet="1"
|
240
|
+
>
|
241
|
+
<Tool
|
242
|
+
Name="VCPreBuildEventTool"
|
243
|
+
/>
|
244
|
+
<Tool
|
245
|
+
Name="VCCustomBuildTool"
|
246
|
+
/>
|
247
|
+
<Tool
|
248
|
+
Name="VCXMLDataGeneratorTool"
|
249
|
+
/>
|
250
|
+
<Tool
|
251
|
+
Name="VCWebServiceProxyGeneratorTool"
|
252
|
+
/>
|
253
|
+
<Tool
|
254
|
+
Name="VCMIDLTool"
|
255
|
+
/>
|
256
|
+
<Tool
|
257
|
+
Name="VCCLCompilerTool"
|
258
|
+
Optimization="2"
|
259
|
+
AdditionalIncludeDirectories="$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common"
|
260
|
+
PreprocessorDefinitions="NDEBUG;WIN32;WINDOWS;_LIB;_UNICODE;UNICODE"
|
261
|
+
RuntimeLibrary="0"
|
262
|
+
UsePrecompiledHeader="0"
|
263
|
+
WarningLevel="3"
|
264
|
+
DebugInformationFormat="3"
|
265
|
+
/>
|
266
|
+
<Tool
|
267
|
+
Name="VCManagedResourceCompilerTool"
|
268
|
+
/>
|
269
|
+
<Tool
|
270
|
+
Name="VCResourceCompilerTool"
|
271
|
+
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES)"
|
272
|
+
Culture="1033"
|
273
|
+
AdditionalIncludeDirectories="$(IntDir)"
|
274
|
+
/>
|
275
|
+
<Tool
|
276
|
+
Name="VCPreLinkEventTool"
|
277
|
+
/>
|
278
|
+
<Tool
|
279
|
+
Name="VCLibrarianTool"
|
280
|
+
OutputFile="$(OutDir)/<%= name.camel_case() %>.lib"
|
281
|
+
/>
|
282
|
+
<Tool
|
283
|
+
Name="VCALinkTool"
|
284
|
+
/>
|
285
|
+
<Tool
|
286
|
+
Name="VCXDCMakeTool"
|
287
|
+
/>
|
288
|
+
<Tool
|
289
|
+
Name="VCBscMakeTool"
|
290
|
+
/>
|
291
|
+
<Tool
|
292
|
+
Name="VCFxCopTool"
|
293
|
+
/>
|
294
|
+
<Tool
|
295
|
+
Name="VCPostBuildEventTool"
|
296
|
+
/>
|
297
|
+
</Configuration>
|
298
|
+
</Configurations>
|
299
|
+
<References>
|
300
|
+
</References>
|
301
|
+
<Files>
|
302
|
+
<Filter
|
303
|
+
Name="Source Files"
|
304
|
+
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
305
|
+
UniqueIdentifier="{9FC737FA-C7A5-4376-A066-2A32D752A2FF}"
|
306
|
+
>
|
307
|
+
<File
|
308
|
+
RelativePath="..\..\shared\src\<%= name.camel_case() %>.c"
|
309
|
+
>
|
310
|
+
</File>
|
311
|
+
<File
|
312
|
+
RelativePath=".\src\<%= name.camel_case() %>_wm.cpp"
|
313
|
+
>
|
314
|
+
</File>
|
315
|
+
<File
|
316
|
+
RelativePath="..\..\shared\ruby\<%= name.camel_case() %>_wrap.c"
|
317
|
+
>
|
318
|
+
</File>
|
319
|
+
</Filter>
|
320
|
+
<Filter
|
321
|
+
Name="Headers"
|
322
|
+
>
|
323
|
+
<File
|
324
|
+
RelativePath=".\src\<%= name.camel_case() %>.h"
|
325
|
+
>
|
326
|
+
</File>
|
327
|
+
</Filter>
|
328
|
+
</Files>
|
329
|
+
<Globals>
|
330
|
+
</Globals>
|
331
|
+
</VisualStudioProject>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
USE_STLPORT = true
|
4
|
+
|
5
|
+
|
6
|
+
def build_extension(name, arch)
|
7
|
+
objects = []
|
8
|
+
mkdir_p $tempdir unless File.exists? $tempdir
|
9
|
+
|
10
|
+
mkdir_p $targetdir unless File.exist? $targetdir
|
11
|
+
|
12
|
+
if ENV['RHO_PLATFORM'] == 'wm'
|
13
|
+
args = []
|
14
|
+
args << "/M4"
|
15
|
+
args << name + ".vcproj"
|
16
|
+
args << "\"Release|#{$sdk}\""
|
17
|
+
cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
|
18
|
+
puts cmdline
|
19
|
+
puts `#{cmdline}`
|
20
|
+
exit unless $? == 0
|
21
|
+
|
22
|
+
cp_r File.join($tempdir, "Release", name + ".lib"), $targetdir
|
23
|
+
|
24
|
+
elsif ENV['RHO_PLATFORM'] == 'win32'
|
25
|
+
args = []
|
26
|
+
args << "/M4"
|
27
|
+
args << name + ".vcproj"
|
28
|
+
args << "\"Debug|Win32\""
|
29
|
+
cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
|
30
|
+
puts cmdline
|
31
|
+
puts `#{cmdline}`
|
32
|
+
exit unless $? == 0
|
33
|
+
|
34
|
+
cp_r File.join($tempdir, "Debug", name + ".lib"), $targetdir
|
35
|
+
end
|
36
|
+
|
37
|
+
cp_r File.join($tempdir, "Release", name + ".lib"), $targetdir
|
38
|
+
end
|
39
|
+
|
40
|
+
namespace "build" do
|
41
|
+
task :config do
|
42
|
+
$targetdir = ENV['TARGET_TEMP_DIR']
|
43
|
+
raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
|
44
|
+
$tempdir = ENV['TEMP_FILES_DIR']
|
45
|
+
raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
|
46
|
+
$rootdir = ENV['RHO_ROOT']
|
47
|
+
raise "RHO_ROOT is not set" if $rootdir.nil?
|
48
|
+
|
49
|
+
$vcbuild = ENV['VCBUILD']
|
50
|
+
raise "VCBUILD is not set" if $vcbuild.nil?
|
51
|
+
$sdk = ENV['SDK']
|
52
|
+
raise "SDK is not set" if $sdk.nil?
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
task :all => :config do
|
57
|
+
|
58
|
+
build_extension('<%= name.camel_case %>', $arch)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
task :default => "build:all"
|