Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added Network access support on WP8 platform

  • Loading branch information...
commit 0dfafa044a8d302b3a59f169f6d189deffea200a 1 parent c7f1f74
rognar authored
16 lib/commonAPI/coreapi/ext/platform/wp8/Coreapi.vcxproj
View
@@ -150,6 +150,9 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccessBase.cpp" />
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccess_js_wrap.cpp" />
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccess_ruby_wrap.cpp" />
<ClCompile Include="..\..\shared\generated\cpp\SQLite3Base.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">false</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT>
@@ -186,6 +189,9 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\shared\generated\networkaccess_api_init.cpp" />
+ <ClCompile Include="..\..\shared\generated\networkaccess_js_api.cpp" />
+ <ClCompile Include="..\..\shared\generated\networkaccess_ruby_api.c" />
<ClCompile Include="..\..\shared\generated\sqlite3_api_init.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">false</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT>
@@ -229,6 +235,7 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\shared\NetworkAccessImpl.cpp" />
<ClCompile Include="..\..\shared\SQLite3Impl.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">false</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT>
@@ -262,8 +269,10 @@
</CustomBuild>
</ItemGroup>
<ItemGroup>
+ <ClInclude Include="..\..\shared\generated\cpp\INetworkAccess.h" />
<ClInclude Include="..\..\shared\generated\cpp\ISQLite3.h" />
<ClInclude Include="..\..\shared\generated\cpp\ISystem.h" />
+ <ClInclude Include="..\..\shared\generated\cpp\NetworkAccessBase.h" />
<ClInclude Include="..\..\shared\generated\cpp\SQLite3Base.h" />
<ClInclude Include="..\..\shared\generated\cpp\SystemBase.h" />
</ItemGroup>
@@ -280,6 +289,13 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
</CustomBuild>
</ItemGroup>
+ <ItemGroup>
+ <CustomBuild Include="..\..\NetworkAccess.xml">
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(RHO_ROOT)\bin\rhogen api %(FullPath)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(InputDir)shared/generated</Outputs>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
+ </CustomBuild>
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsPhone\v$(TargetPlatformVersion)\Microsoft.Cpp.WindowsPhone.$(TargetPlatformVersion).targets" />
<ImportGroup Label="ExtensionTargets">
44 lib/commonAPI/coreapi/ext/platform/wp8/Coreapi.vcxproj.filters
View
@@ -29,6 +29,18 @@
<Filter Include="SQLite3\shared\generated\cpp">
<UniqueIdentifier>{c0ca87c1-cd56-4d2d-add0-eed89529bfac}</UniqueIdentifier>
</Filter>
+ <Filter Include="NetworkAccess">
+ <UniqueIdentifier>{7d519287-4698-4563-9486-2f32724e42ee}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="NetworkAccess\shared">
+ <UniqueIdentifier>{119e3d1e-4f64-48a3-a951-b7f06016aa8a}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="NetworkAccess\shared\generated">
+ <UniqueIdentifier>{e177e9db-7dff-4f04-9cba-86cefeb583b7}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="NetworkAccess\shared\generated\cpp">
+ <UniqueIdentifier>{994eff05-97f8-410f-bdc6-32dde6f45b6b}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\shared\generated\system_api_init.cpp">
@@ -80,6 +92,27 @@
<ClCompile Include="..\..\shared\SQLite3Impl.cpp">
<Filter>SQLite3\shared</Filter>
</ClCompile>
+ <ClCompile Include="..\..\shared\NetworkAccessImpl.cpp">
+ <Filter>NetworkAccess</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\networkaccess_api_init.cpp">
+ <Filter>NetworkAccess\shared\generated</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\networkaccess_js_api.cpp">
+ <Filter>NetworkAccess\shared\generated</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\networkaccess_ruby_api.c">
+ <Filter>NetworkAccess\shared\generated</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccess_js_wrap.cpp">
+ <Filter>NetworkAccess\shared\generated\cpp</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccess_ruby_wrap.cpp">
+ <Filter>NetworkAccess\shared\generated\cpp</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\shared\generated\cpp\NetworkAccessBase.cpp">
+ <Filter>NetworkAccess\shared\generated\cpp</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\shared\generated\cpp\ISystem.h">
@@ -94,6 +127,12 @@
<ClInclude Include="..\..\shared\generated\cpp\SQLite3Base.h">
<Filter>SQLite3\shared\generated\cpp</Filter>
</ClInclude>
+ <ClInclude Include="..\..\shared\generated\cpp\INetworkAccess.h">
+ <Filter>NetworkAccess\shared\generated\cpp</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\shared\generated\cpp\NetworkAccessBase.h">
+ <Filter>NetworkAccess\shared\generated\cpp</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\system.xml">
@@ -103,4 +142,9 @@
<Filter>SQLite3\shared</Filter>
</CustomBuild>
</ItemGroup>
+ <ItemGroup>
+ <Xml Include="..\..\NetworkAccess.xml">
+ <Filter>NetworkAccess\shared</Filter>
+ </Xml>
+ </ItemGroup>
</Project>
2  lib/commonAPI/coreapi/ext/shared/InitExtension.cpp
View
@@ -9,9 +9,7 @@ extern "C" void Init_CoreAPI_Extension()
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_WINCE) || defined(OS_WP8) || defined(OS_MACOSX)
-#ifndef OS_WP8
Init_NetworkAccess();
-#endif
#ifndef OS_MACOSX
Init_SQLite3();
2  lib/framework/rho/rho.rb
View
@@ -1240,7 +1240,7 @@ def generate_id
end
end # RhoConfig
-unless System.get_property('platform') == 'WINDOWS' || System.get_property('platform') == 'WINDOWS_DESKTOP'
+unless System.get_property('platform') == 'WINDOWS' || System.get_property('platform') == 'WINDOWS_DESKTOP' || System.get_property('platform') == 'WP8'
module AsyncHttp
def self.make_auth_header(args)
2  platform/shared/ruby/ext/rho/rhoruby.c
View
@@ -277,7 +277,7 @@ void RhoRubyStart()
//Init_sqlite3_api();
Init_strscan();
Init_GeoLocation();
- Init_AsyncHttp();
+ //Init_AsyncHttp();
//TODO: remove Init_System();
//Init_System();
Init_NativeBar();
1  platform/wp8/rubylib/rubylib.vcxproj
View
@@ -243,7 +243,6 @@
<ClCompile Include="..\..\shared\ruby\enumerator.c" />
<ClCompile Include="..\..\shared\ruby\error.c" />
<ClCompile Include="..\..\shared\ruby\eval.c" />
- <ClCompile Include="..\..\shared\ruby\ext\asynchttp\asynchttp_wrap.c" />
<ClCompile Include="..\..\shared\ruby\ext\geolocation\geolocation_wrap.c" />
<ClCompile Include="..\..\shared\ruby\ext\nativebar\nativebar_wrap.c" />
<ClCompile Include="..\..\shared\ruby\ext\navbar\navbar_wrap.c" />
6 platform/wp8/rubylib/rubylib.vcxproj.filters
View
@@ -53,9 +53,6 @@
<Filter Include="ext\syncengine">
<UniqueIdentifier>{d87dcf91-c9af-4861-a1c2-229fc7817546}</UniqueIdentifier>
</Filter>
- <Filter Include="ext\asynchttp">
- <UniqueIdentifier>{71242694-8de9-4c24-a127-09f34da4e0ad}</UniqueIdentifier>
- </Filter>
<Filter Include="ext\stringio">
<UniqueIdentifier>{5101662d-c68f-48cd-8ef9-f0c4f00038b7}</UniqueIdentifier>
</Filter>
@@ -249,9 +246,6 @@
<ClCompile Include="..\..\shared\ruby\ext\strscan\strscan.c">
<Filter>ext\strscan</Filter>
</ClCompile>
- <ClCompile Include="..\..\shared\ruby\ext\asynchttp\asynchttp_wrap.c">
- <Filter>ext\asynchttp</Filter>
- </ClCompile>
<ClCompile Include="..\..\shared\ruby\ext\socket\socket.c">
<Filter>ext\sockets</Filter>
</ClCompile>
Please sign in to comment.
Something went wrong with that request. Please try again.