| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6 # for details. All rights reserved. Use of this source code is governed by a | 6 # for details. All rights reserved. Use of this source code is governed by a |
| 7 # BSD-style license that can be found in the LICENSE file. | 7 # BSD-style license that can be found in the LICENSE file. |
| 8 | 8 |
| 9 # This file is a modified copy of Chromium's src/third_party/sqlite/sqlite.gyp. | 9 # This file is a modified copy of Chromium's src/third_party/sqlite/sqlite.gyp. |
| 10 # Revision 199075 (this should agree with "nss_rev" in DEPS). | 10 # Revision 232552 (this should agree with "nss_rev" in DEPS). |
| 11 { | 11 { |
| 12 # Added by Dart. All Dart comments refer to the following block or line. | 12 # Added by Dart. All Dart comments refer to the following block or line. |
| 13 'includes': [ | 13 'includes': [ |
| 14 '../../tools/gyp/runtime-configurations.gypi', | 14 '../../tools/gyp/runtime-configurations.gypi', |
| 15 '../../tools/gyp/nss_configurations.gypi', | 15 '../../tools/gyp/nss_configurations.gypi', |
| 16 ], | 16 ], |
| 17 'variables': { | 17 'variables': { |
| 18 # Added by Dart. | 18 # Added by Dart. |
| 19 'sqlite_directory': '../../../third_party/sqlite', | 19 'sqlite_directory': '../../../third_party/sqlite', |
| 20 'use_system_sqlite%': 0, | 20 'use_system_sqlite%': 0, |
| 21 'required_sqlite_version': '3.6.1', | 21 'required_sqlite_version': '3.6.1', |
| 22 }, | 22 }, |
| 23 'target_defaults': { | 23 'target_defaults': { |
| 24 'defines': [ | 24 'defines': [ |
| 25 'SQLITE_CORE', | 25 'SQLITE_CORE', |
| 26 'SQLITE_ENABLE_BROKEN_FTS2', | 26 'SQLITE_ENABLE_BROKEN_FTS2', |
| 27 'SQLITE_ENABLE_FTS2', | 27 'SQLITE_ENABLE_FTS2', |
| 28 'SQLITE_ENABLE_FTS3', | 28 'SQLITE_ENABLE_FTS3', |
| 29 # Disabled by Dart: An external module with advanced unicode functions. | 29 # Disabled by Dart: An external module with advanced unicode functions. |
| 30 # 'SQLITE_ENABLE_ICU', | 30 # 'SQLITE_ENABLE_ICU', |
| 31 'SQLITE_ENABLE_MEMORY_MANAGEMENT', | 31 'SQLITE_ENABLE_MEMORY_MANAGEMENT', |
| 32 'SQLITE_SECURE_DELETE', | 32 'SQLITE_SECURE_DELETE', |
| 33 'SQLITE_SEPARATE_CACHE_POOLS', |
| 33 'THREADSAFE', | 34 'THREADSAFE', |
| 34 '_HAS_EXCEPTIONS=0', | 35 '_HAS_EXCEPTIONS=0', |
| 35 ], | 36 ], |
| 36 }, | 37 }, |
| 37 # Added by Dart. We do not indent, so diffs with the original are clearer. | 38 # Added by Dart. We do not indent, so diffs with the original are clearer. |
| 38 'conditions': [[ 'dart_io_support==1', { | 39 'conditions': [[ 'dart_io_support==1', { |
| 39 'targets': [ | 40 'targets': [ |
| 40 { | 41 { |
| 41 'target_name': 'sqlite_dart', # Added by Dart (the _dart postfix) | 42 'target_name': 'sqlite_dart', # Added by Dart (the _dart postfix) |
| 42 'toolsets':['host','target'], | 43 'toolsets':['host','target'], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 54 ['use_system_sqlite', { | 55 ['use_system_sqlite', { |
| 55 'type': 'none', | 56 'type': 'none', |
| 56 'direct_dependent_settings': { | 57 'direct_dependent_settings': { |
| 57 'defines': [ | 58 'defines': [ |
| 58 'USE_SYSTEM_SQLITE', | 59 'USE_SYSTEM_SQLITE', |
| 59 ], | 60 ], |
| 60 }, | 61 }, |
| 61 | 62 |
| 62 'conditions': [ | 63 'conditions': [ |
| 63 ['OS == "ios"', { | 64 ['OS == "ios"', { |
| 65 'dependencies': [ |
| 66 'sqlite_regexp', |
| 67 ], |
| 64 'link_settings': { | 68 'link_settings': { |
| 65 'libraries': [ | 69 'libraries': [ |
| 66 '$(SDKROOT)/usr/lib/libsqlite3.dylib', | 70 '$(SDKROOT)/usr/lib/libsqlite3.dylib', |
| 67 ], | 71 ], |
| 68 }, | 72 }, |
| 69 }], | 73 }], |
| 70 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"'
, { | 74 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"'
, { |
| 71 'direct_dependent_settings': { | 75 'direct_dependent_settings': { |
| 72 'cflags': [ | 76 'cflags': [ |
| 73 # This next command produces no output but it it will fail | 77 # This next command produces no output but it it will fail |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 4018, 4244, 4267, | 140 4018, 4244, 4267, |
| 137 ], | 141 ], |
| 138 'conditions': [ | 142 'conditions': [ |
| 139 ['OS=="linux"', { | 143 ['OS=="linux"', { |
| 140 'link_settings': { | 144 'link_settings': { |
| 141 'libraries': [ | 145 'libraries': [ |
| 142 '-ldl', | 146 '-ldl', |
| 143 ], | 147 ], |
| 144 }, | 148 }, |
| 145 }], | 149 }], |
| 150 ['OS == "mac" or OS == "ios"', { |
| 151 'link_settings': { |
| 152 'libraries': [ |
| 153 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', |
| 154 ], |
| 155 }, |
| 156 }], |
| 146 ['OS == "android"', { | 157 ['OS == "android"', { |
| 147 'defines': [ | 158 'defines': [ |
| 148 'HAVE_USLEEP=1', | 159 'HAVE_USLEEP=1', |
| 149 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', | 160 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', |
| 150 'SQLITE_DEFAULT_AUTOVACUUM=1', | 161 'SQLITE_DEFAULT_AUTOVACUUM=1', |
| 151 'SQLITE_TEMP_STORE=3', | 162 'SQLITE_TEMP_STORE=3', |
| 152 'SQLITE_ENABLE_FTS3_BACKWARDS', | 163 'SQLITE_ENABLE_FTS3_BACKWARDS', |
| 153 'DSQLITE_DEFAULT_FILE_FORMAT=4', | 164 'DSQLITE_DEFAULT_FILE_FORMAT=4', |
| 154 ], | 165 ], |
| 155 }], | 166 }], |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 'target_name': 'sqlite_shell_dart', # Added by Dart (the _dart postfi
x) | 199 'target_name': 'sqlite_shell_dart', # Added by Dart (the _dart postfi
x) |
| 189 'type': 'executable', | 200 'type': 'executable', |
| 190 'dependencies': [ | 201 'dependencies': [ |
| 191 # Disabled by Dart. | 202 # Disabled by Dart. |
| 192 # '../icu/icu.gyp:icuuc', | 203 # '../icu/icu.gyp:icuuc', |
| 193 'sqlite_dart', # Added by Dart (the _dart postfix) | 204 'sqlite_dart', # Added by Dart (the _dart postfix) |
| 194 ], | 205 ], |
| 195 'sources': [ | 206 'sources': [ |
| 196 '<(sqlite_directory)/src/src/shell.c', | 207 '<(sqlite_directory)/src/src/shell.c', |
| 197 '<(sqlite_directory)/src/src/shell_icu_linux.c', | 208 '<(sqlite_directory)/src/src/shell_icu_linux.c', |
| 209 # Include a dummy c++ file to force linking of libstdc++. |
| 210 '<(sqlite_directory)/build_as_cpp.cc', |
| 198 ], | 211 ], |
| 199 'link_settings': { | |
| 200 'link_languages': ['c++'], | |
| 201 }, | |
| 202 }, | 212 }, |
| 203 ], | 213 ], |
| 204 },] | 214 },], |
| 215 ['OS == "ios"', { |
| 216 'targets': [ |
| 217 { |
| 218 'target_name': 'sqlite_regexp', |
| 219 'type': 'static_library', |
| 220 'dependencies': [ |
| 221 '../icu/icu.gyp:icui18n', |
| 222 '../icu/icu.gyp:icuuc', |
| 223 ], |
| 224 'sources': [ |
| 225 'src/ext/icu/icu.c', |
| 226 ], |
| 227 }, |
| 228 ], |
| 229 }], |
| 205 ], | 230 ], |
| 206 }]], | 231 }]], |
| 207 } | 232 } |
| OLD | NEW |