# Download
if target_os in targets_need_sqlite:
- print '*** Checking for installation of SQLite 3.8.11.1 ***'
- if not os.path.exists(sqlite_dir + 'sqlite3.c') or not os.path.exists(sqlite_dir + 'sqlite3.h'):
-
- # If the zip file is not already present, download it
- if not os.path.exists(sqlite_zip_file):
- sqlite_zip = sqlite_env.Download(sqlite_zip_file, sqlite_url)
- else:
- sqlite_zip = sqlite_zip_file
-
- # Unzip the lib
- print 'Unzipping SQLite amalgamation src...'
- sqlite_env.UnpackAll(sqlite_build_dir, sqlite_zip)
- print 'Unzipping SQLite amalgamation src complete'
-
- # Move requried src and header
- os.rename(sqlite_build_dir + 'sqlite3.c', sqlite_dir + 'sqlite3.c')
- os.rename(sqlite_build_dir + 'sqlite3.h', sqlite_dir + 'sqlite3.h')
- os.remove(sqlite_zip_file)
- shutil.rmtree(sqlite_build_dir)
+ if sqlite_env.get('SECURED') == '1':
+ print '*** Checking for installation of SQLite 3.8.11.1 (extlib/sqlite3) ***'
+ if not os.path.exists(sqlite_dir + 'sqlite3.c') or not os.path.exists(sqlite_dir + 'sqlite3.h'):
+
+ # If the zip file is not already present, download it
+ if not os.path.exists(sqlite_zip_file):
+ sqlite_zip = sqlite_env.Download(sqlite_zip_file, sqlite_url)
+ else:
+ sqlite_zip = sqlite_zip_file
+
+ # Unzip the lib
+ print 'Unzipping SQLite amalgamation src...'
+ sqlite_env.UnpackAll(sqlite_build_dir, sqlite_zip)
+ print 'Unzipping SQLite amalgamation src complete'
+
+ # Move requried src and header
+ os.rename(sqlite_build_dir + 'sqlite3.c', sqlite_dir + 'sqlite3.c')
+ os.rename(sqlite_build_dir + 'sqlite3.h', sqlite_dir + 'sqlite3.h')
+ os.remove(sqlite_zip_file)
+ shutil.rmtree(sqlite_build_dir)
# Build will be done with provisioning manager module.