summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 16:44:28 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 16:44:28 +0000
commit7ae235bdb0b31b6b1b52a2db7e29cb7ce599f927 (patch)
tree01bc7f8c09a9b12437d99945241769a324096385 /third_party
parentced675127013f8185dba61a70007cfd26a0d1819 (diff)
downloadchromium_src-7ae235bdb0b31b6b1b52a2db7e29cb7ce599f927.zip
chromium_src-7ae235bdb0b31b6b1b52a2db7e29cb7ce599f927.tar.gz
chromium_src-7ae235bdb0b31b6b1b52a2db7e29cb7ce599f927.tar.bz2
Add a sqlite_shell target.
DEPS roll for latest gyp with 'link_languages' support. Review URL: http://codereview.chromium.org/53041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/sqlite.gyp42
1 files changed, 34 insertions, 8 deletions
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp
index bf5ba4d..8aa2cfc 100644
--- a/third_party/sqlite/sqlite.gyp
+++ b/third_party/sqlite/sqlite.gyp
@@ -6,6 +6,16 @@
'includes': [
'../../build/common.gypi',
],
+ 'target_defaults': {
+ 'defines': [
+ 'SQLITE_ENABLE_FTS2',
+ 'SQLITE_ENABLE_BROKEN_FTS2',
+ 'SQLITE_ENABLE_ICU',
+ 'SQLITE_SECURE_DELETE',
+ 'THREADSAFE',
+ '_HAS_EXCEPTIONS=0',
+ ],
+ },
'targets': [
{
'target_name': 'sqlite',
@@ -142,14 +152,6 @@
'src/md5.c',
'src/tclsqlite.c',
],
- 'defines': [
- 'SQLITE_ENABLE_FTS2',
- 'SQLITE_ENABLE_BROKEN_FTS2',
- 'SQLITE_ENABLE_ICU',
- 'SQLITE_SECURE_DELETE',
- 'THREADSAFE',
- '_HAS_EXCEPTIONS=0',
- ],
'include_dirs': [
'preprocessed',
'src',
@@ -172,4 +174,28 @@
],
},
],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'targets': [
+ {
+ 'target_name': 'sqlite_shell',
+ 'type': 'executable',
+ 'dependencies': [
+ '../icu38/icu38.gyp:icuuc',
+ 'sqlite',
+ ],
+ 'sources': [
+ 'src/shell.c',
+ 'src/shell_icu_linux.c',
+ ],
+ 'link_settings': {
+ 'link_languages': ['c++'],
+ 'libraries': [
+ '-ldl',
+ ],
+ },
+ },
+ ],
+ },]
+ ],
}