Create SQLite for Windows Phone 8

SQLite is available as

The full VSIX package with the SDK extension and all the other components necessary for using SQLite to develop applications with Visual Studio 2012 is designed for Windows Phone 8.0.

But I need to make some changes to the source code. Tim Heyer in his blog talked about how to build sqlite for WinRT.

The main part, I think:

Build the DLL:  
    nmake -f makefile.msc sqlite3.dll FOR_WINRT=1  
    If building for ARM: 
        nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WINAPI_PARTITION_APP

What options should I specify for the build for Windows Phone 8?

Update:

I tried

nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_PARTITION_PHONE

Result:

Console

Also i tried

    nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP

Result: Console

+4
source share
1 answer

Sqlite , , , : mkkeywordhash.exe lemon.exe. cl.exe , .

NCC variable :

nmake -f makefile.msc sqlite3.dll <your options> NCC="c:\Program Files\..path-to-native\cl.exe"

. , NCC Makefile.msc . . :

XCOMPILE=1
USE_NATIVE_LIBPATHS=1
NCRTLIBPATH (where are your native CRT libraries?)
NSDKLIBPATH (where are your native SDK libraries?)
0

All Articles