# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'use_system_sqlite%': 0, 'required_sqlite_version': '3.6.1', }, 'target_defaults': { 'defines': [ 'SQLITE_CORE', 'SQLITE_ENABLE_BROKEN_FTS2', 'SQLITE_ENABLE_FTS2', 'SQLITE_ENABLE_FTS3', 'SQLITE_ENABLE_ICU', 'SQLITE_ENABLE_MEMORY_MANAGEMENT', 'SQLITE_SECURE_DELETE', 'THREADSAFE', '_HAS_EXCEPTIONS=0', ], }, 'targets': [ { 'target_name': 'sqlite', 'conditions': [ ['OS=="linux" and not use_system_sqlite', { 'link_settings': { 'libraries': [ '-ldl', ], }, }], ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite', { 'type': 'settings', 'direct_dependent_settings': { 'cflags': [ # This next command produces no output but it it will fail (and # cause GYP to fail) if we don't have a recent enough version of # sqlite. '