Commit 7f3bcda2 authored by atraczyk's avatar atraczyk Committed by Andreas Traczyk

contrib: add sqlite3 dependency

- adds a batch file to obtain the sqlite3 source files

Change-Id: Icd7100ca1c875f58649fc0aef34987bbb744b7de
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent 4113e992
......@@ -6,6 +6,7 @@ DebugLib/
Debug/
ReleaseLib/
Release/
contrib/sqlite-win32/
.config/
# User-specific files
*.suo
......
set SQLITE_NAME=sqlite-amalgamation-3200000
set SQLITE_URL=https://www.sqlite.org/2017/%SQLITE_NAME%.zip
wget %SQLITE_URL%
7z -y x %SQLITE_NAME%.zip
del %SQLITE_NAME%.zip
rename %SQLITE_NAME% sqlite-win32
\ No newline at end of file
......@@ -141,8 +141,8 @@
<ClCompile>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4453;28204;4267;4129;4973;4018;</DisableSpecificWarnings>
<AdditionalIncludeDirectories>contrib\qrencode-win32;..\ring-daemon\MSVC;..\ring-daemon\src\media;..\ring-daemon\src;..\ring-daemon\src\dring;..\ring-daemon\contrib\build\include;..\ring-daemon\contrib\build\include\pjlib;..\ring-daemon\contrib\build\pjproject\third_party\speex\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>STATICLIB;RING_UWP;WIN32_NATIVE;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>contrib\sqlite-win32;contrib\qrencode-win32;..\ring-daemon\MSVC;..\ring-daemon\src\media;..\ring-daemon\src;..\ring-daemon\src\dring;..\ring-daemon\contrib\build\include;..\ring-daemon\contrib\build\include\pjlib;..\ring-daemon\contrib\build\pjproject\third_party\speex\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>SQLITE_OS_WINRT;STATICLIB;RING_UWP;WIN32_NATIVE;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CompileAsWinRT>true</CompileAsWinRT>
<CompileAsManaged>false</CompileAsManaged>
......@@ -181,6 +181,8 @@
<ClInclude Include="ContactRequestItem.h" />
<ClInclude Include="ContactRequestItemsViewModel.h" />
<ClInclude Include="ContactListModel.h" />
<ClInclude Include="contrib\sqlite-win32\sqlite3.h" />
<ClInclude Include="contrib\sqlite-win32\sqlite3ext.h" />
<ClInclude Include="Conversation.h" />
<ClInclude Include="Converters.h" />
<ClInclude Include="HttpUtils.h" />
......@@ -367,6 +369,13 @@
<ClCompile Include="ContactRequestItem.cpp" />
<ClCompile Include="ContactRequestItemsViewModel.cpp" />
<ClCompile Include="ContactListModel.cpp" />
<ClCompile Include="contrib\sqlite-win32\shell.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="contrib\sqlite-win32\sqlite3.c">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsWinRT>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Conversation.cpp" />
<ClCompile Include="Converters.cpp" />
<ClCompile Include="RingDeviceItemsViewModel.cpp" />
......
......@@ -76,9 +76,6 @@
<ClCompile Include="ContactRequestItemsViewModel.cpp">
<Filter>ViewModels</Filter>
</ClCompile>
<ClCompile Include="lodepng.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="ContactListModel.cpp">
<Filter>Models</Filter>
</ClCompile>
......@@ -97,6 +94,15 @@
<ClCompile Include="Converters.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="lodepng.cpp">
<Filter>Common\lodepng</Filter>
</ClCompile>
<ClCompile Include="contrib\sqlite-win32\shell.c">
<Filter>Common\sqlite</Filter>
</ClCompile>
<ClCompile Include="contrib\sqlite-win32\sqlite3.c">
<Filter>Common\sqlite</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="LoadingPage.xaml.h" />
......@@ -177,9 +183,6 @@
<ClInclude Include="ContactRequestItemsViewModel.h">
<Filter>ViewModels</Filter>
</ClInclude>
<ClInclude Include="lodepng.h">
<Filter>Common</Filter>
</ClInclude>
<ClInclude Include="ContactListModel.h">
<Filter>Models</Filter>
</ClInclude>
......@@ -208,6 +211,15 @@
<ClInclude Include="Converters.h">
<Filter>Common</Filter>
</ClInclude>
<ClInclude Include="lodepng.h">
<Filter>Common\lodepng</Filter>
</ClInclude>
<ClInclude Include="contrib\sqlite-win32\sqlite3.h">
<Filter>Common\sqlite</Filter>
</ClInclude>
<ClInclude Include="contrib\sqlite-win32\sqlite3ext.h">
<Filter>Common\sqlite</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Assets\AccountTypeRING.png">
......@@ -544,6 +556,12 @@
<Filter Include="Strings\en-GB">
<UniqueIdentifier>{83248a19-b0d2-4b71-b0be-c5e9cd98fd65}</UniqueIdentifier>
</Filter>
<Filter Include="Common\lodepng">
<UniqueIdentifier>{c62ee4e6-c4f0-43fa-b431-50df3e43f401}</UniqueIdentifier>
</Filter>
<Filter Include="Common\sqlite">
<UniqueIdentifier>{5797d71a-e85a-41ae-b793-1bc38765eb47}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<Media Include="Assets\default.wav">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment