[IOT-2259] Windows: Handle Persistent Storage for UWP Apps
authorIbrahim Esmat <iesmat@microsoft.com>
Thu, 27 Apr 2017 16:13:35 +0000 (09:13 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 19 May 2017 22:48:41 +0000 (22:48 +0000)
commit285a09fd00761255ec4955d6a007544474fa1839
tree28407b0365145711f197a3edccab91d30f6c2734
parent68444112017df2003428e67adb6c13bb408d2d65
[IOT-2259] Windows: Handle Persistent Storage for UWP Apps

Changes to allow UWP apps that use IPCA to handle Persistent
Storage:
- Updated the SConscripts to point to store LIBS
- Added a UWP_APP env variable to enable building store DLLs
- Disabled gtest and other tests when building store DLLs
  because gtest is heavily dependent on win32 APIs and DLLs
- Add code to set the sqlite3 temporary directory when building
  for store DLLs (as required by sqlite3). This temporary
  directory will be the appropriate temp directory.
- Add a platform helper function to get the best application
  path to store the Persistent Storage files. IPCA uses this
  helper function to get the path when opening PS files.
- Add capability to run.bat to build UWP DLLs

Change-Id: Iac3a2c9e9e2fd994b06e964254f2d394b15526aa
Signed-off-by: Ibrahim Esmat <iesmat@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19845
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
18 files changed:
build_common/SConscript
build_common/windows/SConscript
extlibs/libcoap/SConscript
extlibs/sqlite3/SConscript
resource/IPCA/SConscript
resource/IPCA/src/SConscript
resource/IPCA/src/ocfframework.cpp
resource/c_common/SConscript
resource/c_common/oic_platform/include/oic_platform.h
resource/c_common/oic_platform/src/others/oic_otherplatforms.c [new file with mode: 0644]
resource/c_common/oic_platform/src/windows/oic_winplatform.cpp [new file with mode: 0644]
resource/csdk/stack/SConscript
resource/csdk/stack/include/internal/ocsqlite3helper.h [new file with mode: 0644]
resource/csdk/stack/src/ocsqlite3helper.c [new file with mode: 0644]
resource/csdk/stack/src/ocstack.c
resource/examples/SConscript
resource/unit_tests.scons
run.bat