| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'use_system_sqlite%': 0, | 7 'use_system_sqlite%': 0, |
| 8 'required_sqlite_version': '3.6.1', | 8 'required_sqlite_version': '3.6.1', |
| 9 }, | 9 }, |
| 10 'target_defaults': { | 10 'target_defaults': { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 { | 22 { |
| 23 'target_name': 'sqlite', | 23 'target_name': 'sqlite', |
| 24 'conditions': [ | 24 'conditions': [ |
| 25 ['OS=="linux" and not use_system_sqlite', { | 25 ['OS=="linux" and not use_system_sqlite', { |
| 26 'link_settings': { | 26 'link_settings': { |
| 27 'libraries': [ | 27 'libraries': [ |
| 28 '-ldl', | 28 '-ldl', |
| 29 ], | 29 ], |
| 30 }, | 30 }, |
| 31 }], | 31 }], |
| 32 ['OS=="linux" and use_system_sqlite', { | 32 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite'
, { |
| 33 'type': 'settings', | 33 'type': 'settings', |
| 34 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
| 35 'cflags': [ | 35 'cflags': [ |
| 36 # This next command produces no output but it it will fail (and | 36 # This next command produces no output but it it will fail (and |
| 37 # cause GYP to fail) if we don't have a recent enough version of | 37 # cause GYP to fail) if we don't have a recent enough version of |
| 38 # sqlite. | 38 # sqlite. |
| 39 '<!@(pkg-config --atleast-version=<(required_sqlite_version) sqlit
e3)', | 39 '<!@(pkg-config --atleast-version=<(required_sqlite_version) sqlit
e3)', |
| 40 | 40 |
| 41 '<!@(pkg-config --cflags sqlite3)', | 41 '<!@(pkg-config --cflags sqlite3)', |
| 42 ], | 42 ], |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 'sources/': [['exclude', '_unix\\.cc?$']], | 219 'sources/': [['exclude', '_unix\\.cc?$']], |
| 220 }, { # else: OS!="win" | 220 }, { # else: OS!="win" |
| 221 'sources/': [['exclude', '_(w32|win)\\.cc?$']], | 221 'sources/': [['exclude', '_(w32|win)\\.cc?$']], |
| 222 }], | 222 }], |
| 223 ], | 223 ], |
| 224 }], | 224 }], |
| 225 ], | 225 ], |
| 226 }, | 226 }, |
| 227 ], | 227 ], |
| 228 'conditions': [ | 228 'conditions': [ |
| 229 ['OS=="linux" and not use_system_sqlite', { | 229 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and not use_system_sqlite'
, { |
| 230 'targets': [ | 230 'targets': [ |
| 231 { | 231 { |
| 232 'target_name': 'sqlite_shell', | 232 'target_name': 'sqlite_shell', |
| 233 'type': 'executable', | 233 'type': 'executable', |
| 234 'dependencies': [ | 234 'dependencies': [ |
| 235 '../icu/icu.gyp:icuuc', | 235 '../icu/icu.gyp:icuuc', |
| 236 'sqlite', | 236 'sqlite', |
| 237 ], | 237 ], |
| 238 'sources': [ | 238 'sources': [ |
| 239 'src/shell.c', | 239 'src/shell.c', |
| 240 'src/shell_icu_linux.c', | 240 'src/shell_icu_linux.c', |
| 241 ], | 241 ], |
| 242 'link_settings': { | 242 'link_settings': { |
| 243 'link_languages': ['c++'], | 243 'link_languages': ['c++'], |
| 244 }, | 244 }, |
| 245 }, | 245 }, |
| 246 ], | 246 ], |
| 247 },] | 247 },] |
| 248 ], | 248 ], |
| 249 } | 249 } |
| 250 | 250 |
| 251 # Local Variables: | 251 # Local Variables: |
| 252 # tab-width:2 | 252 # tab-width:2 |
| 253 # indent-tabs-mode:nil | 253 # indent-tabs-mode:nil |
| 254 # End: | 254 # End: |
| 255 # vim: set expandtab tabstop=2 shiftwidth=2: | 255 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |