1# This Source Code Form is subject to the terms of the Mozilla Public 2# License, v. 2.0. If a copy of the MPL was not distributed with this 3# file, You can obtain one at http://mozilla.org/MPL/2.0/. 4{ 5 'includes': [ 6 '../../coreconf/config.gypi' 7 ], 8 'conditions': [ 9 ['use_system_sqlite==1', { 10 'targets': [{ 11 'target_name': 'sqlite3', 12 'type': 'none', 13 'link_settings': { 14 'libraries': ['<(sqlite_libs)'], 15 }, 16 }], 17 }, { 18 'targets': [ 19 { 20 'target_name': 'sqlite', 21 'type': 'static_library', 22 'sources': [ 23 'sqlite3.c' 24 ], 25 'dependencies': [ 26 '<(DEPTH)/exports.gyp:nss_exports' 27 ] 28 }, 29 { 30 'target_name': 'sqlite3', 31 'type': 'shared_library', 32 'dependencies': [ 33 'sqlite' 34 ], 35 'variables': { 36 'mapfile': 'sqlite.def' 37 } 38 } 39 ], 40 'target_defaults': { 41 'defines': [ 42 'SQLITE_THREADSAFE=1' 43 ], 44 'cflags': [ 45 '-w', 46 ], 47 'xcode_settings': { 48 'OTHER_CFLAGS': [ 49 '-w', 50 ], 51 }, 52 }, 53 'variables': { 54 'module': 'nss' 55 } 56 }] 57 ], 58} 59