/ Check-in [a9c81815]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Further MSVC makefile changes to support Windows Phone 8.1.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | vsixWinPhone81
Files: files | file ages | folders
SHA1: a9c81815e1b7a9c05da61f75edac45cb1a954135
User & Date: mistachkin 2014-05-09 23:31:55
Context
2014-05-10
17:33
Merge updates from trunk. Emit the AppliesTo and DependsOn SDK manifest attributes when building the VSIX for Windows Phone 8.1. Closed-Leaf check-in: f6237a5f user: mistachkin tags: vsixWinPhone81
2014-05-09
23:31
Further MSVC makefile changes to support Windows Phone 8.1. check-in: a9c81815 user: mistachkin tags: vsixWinPhone81
20:54
Merge updates from trunk. check-in: f4fea7bb user: mistachkin tags: vsixWinPhone81
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.msc.

    11     11   TOP = .
    12     12   
    13     13   # Set this non-0 to create and use the SQLite amalgamation file.
    14     14   #
    15     15   !IFNDEF USE_AMALGAMATION
    16     16   USE_AMALGAMATION = 1
    17     17   !ENDIF
           18  +
           19  +# Set this non-0 to use the libraries necessary for Windows Phone 8.1.
           20  +#
           21  +!IFNDEF USE_WP81_OPTS
           22  +USE_WP81_OPTS = 0
           23  +!ENDIF
    18     24   
    19     25   # Set this non-0 to split the SQLite amalgamation file into chunks to
    20     26   # be used for debugging with Visual Studio.
    21     27   #
    22     28   !IFNDEF SPLIT_AMALGAMATION
    23     29   SPLIT_AMALGAMATION = 0
    24     30   !ENDIF
................................................................................
   127    133   OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_RTREE=1
   128    134   OPT_FEATURE_FLAGS = $(OPT_FEATURE_FLAGS) -DSQLITE_ENABLE_COLUMN_METADATA=1
   129    135   !ENDIF
   130    136   
   131    137   ###############################################################################
   132    138   ############################### END OF OPTIONS ################################
   133    139   ###############################################################################
          140  +
          141  +# This assumes that MSVC is always installed in 32-bit Program Files directory
          142  +# and sets the variable for use in locating other 32-bit installs accordingly.
          143  +#
          144  +PROGRAMFILES_X86 = $(VCINSTALLDIR)\..\..
          145  +PROGRAMFILES_X86 = $(PROGRAMFILES_X86:\\=\)
   134    146   
   135    147   # Check for the predefined command macro CC.  This should point to the compiler
   136    148   # binary for the target platform.  If it is not defined, simply define it to
   137    149   # the legacy default value 'cl.exe'.
   138    150   #
   139    151   !IFNDEF CC
   140    152   CC = cl.exe
................................................................................
   545    557   STORELIBPATH = $(CRTLIBPATH)\store
   546    558   !ENDIF
   547    559   !ENDIF
   548    560   STORELIBPATH = $(STORELIBPATH:\\=\)
   549    561   LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(STORELIBPATH)"
   550    562   !ENDIF
   551    563   !ENDIF
          564  +
          565  +# When compiling for Windows Phone 8.1, an extra library path is
          566  +# required.
          567  +#
          568  +!IF $(USE_WP81_OPTS)!=0
          569  +!IFNDEF WP81LIBPATH
          570  +!IF "$(PLATFORM)"=="x86"
          571  +WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
          572  +!ELSEIF "$(PLATFORM)"=="ARM"
          573  +WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\ARM
          574  +!ELSE
          575  +WP81LIBPATH = $(PROGRAMFILES_X86)\Windows Phone Kits\8.1\lib\x86
          576  +!ENDIF
          577  +!ENDIF
          578  +!ENDIF
          579  +
          580  +# When compiling for Windows Phone 8.1, some extra linker options
          581  +# are also required.
          582  +#
          583  +!IF $(USE_WP81_OPTS)!=0
          584  +!IFDEF WP81LIBPATH
          585  +LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)"
          586  +!ENDIF
          587  +LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE
          588  +LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib
          589  +LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib
          590  +!ENDIF
   552    591   
   553    592   # If either debugging or symbols are enabled, enable PDBs.
   554    593   #
   555    594   !IF $(DEBUG)>0 || $(SYMBOLS)!=0
   556    595   LDFLAGS = /DEBUG
   557    596   !ENDIF
   558    597