| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 23 matching lines...) Expand all Loading... |
| 34 ], | 34 ], |
| 35 }, | 35 }, |
| 36 ], | 36 ], |
| 37 ['OS=="linux" and not use_system_sqlite', { | 37 ['OS=="linux" and not use_system_sqlite', { |
| 38 'link_settings': { | 38 'link_settings': { |
| 39 'libraries': [ | 39 'libraries': [ |
| 40 '-ldl', | 40 '-ldl', |
| 41 ], | 41 ], |
| 42 }, | 42 }, |
| 43 }], | 43 }], |
| 44 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite'
, { | 44 ['os_posix == 1 and OS != "mac" and use_system_sqlite', { |
| 45 'type': 'settings', | 45 'type': 'settings', |
| 46 'direct_dependent_settings': { | 46 'direct_dependent_settings': { |
| 47 'cflags': [ | 47 'cflags': [ |
| 48 # This next command produces no output but it it will fail (and | 48 # This next command produces no output but it it will fail (and |
| 49 # cause GYP to fail) if we don't have a recent enough version of | 49 # cause GYP to fail) if we don't have a recent enough version of |
| 50 # sqlite. | 50 # sqlite. |
| 51 '<!@(pkg-config --atleast-version=<(required_sqlite_version) sqlit
e3)', | 51 '<!@(pkg-config --atleast-version=<(required_sqlite_version) sqlit
e3)', |
| 52 | 52 |
| 53 '<!@(pkg-config --cflags sqlite3)', | 53 '<!@(pkg-config --cflags sqlite3)', |
| 54 ], | 54 ], |
| 55 'defines': [ | 55 'defines': [ |
| 56 'USE_SYSTEM_SQLITE', | 56 'USE_SYSTEM_SQLITE', |
| 57 ], | 57 ], |
| 58 }, | 58 }, |
| 59 'link_settings': { | 59 'link_settings': { |
| 60 'ldflags': [ | 60 'ldflags': [ |
| 61 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)', | 61 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)', |
| 62 ], | 62 ], |
| 63 'libraries': [ | 63 'libraries': [ |
| 64 '<!@(pkg-config --libs-only-l sqlite3)', | 64 '<!@(pkg-config --libs-only-l sqlite3)', |
| 65 ], | 65 ], |
| 66 }, | 66 }, |
| 67 }, { # else: OS != "linux" or ! use_system_sqlite | 67 }, { # else: os_posix == 1 or OS == "mac" or ! use_system_sqlite |
| 68 'product_name': 'sqlite3', | 68 'product_name': 'sqlite3', |
| 69 'type': 'static_library', | 69 'type': 'static_library', |
| 70 'msvs_guid': '6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9', | 70 'msvs_guid': '6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9', |
| 71 'sources': [ | 71 'sources': [ |
| 72 'amalgamation/sqlite3.h', | 72 'amalgamation/sqlite3.h', |
| 73 'amalgamation/sqlite3.c', | 73 'amalgamation/sqlite3.c', |
| 74 # fts2.c currently has a lot of conflicts when added to | 74 # fts2.c currently has a lot of conflicts when added to |
| 75 # the amalgamation. It is probably not worth fixing that. | 75 # the amalgamation. It is probably not worth fixing that. |
| 76 'src/ext/fts2/fts2.c', | 76 'src/ext/fts2/fts2.c', |
| 77 'src/ext/fts2/fts2.h', | 77 'src/ext/fts2/fts2.h', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 103 'direct_dependent_settings': { | 103 'direct_dependent_settings': { |
| 104 'include_dirs': [ | 104 'include_dirs': [ |
| 105 '.', | 105 '.', |
| 106 '../..', | 106 '../..', |
| 107 ], | 107 ], |
| 108 }, | 108 }, |
| 109 'msvs_disabled_warnings': [ | 109 'msvs_disabled_warnings': [ |
| 110 4018, 4244, | 110 4018, 4244, |
| 111 ], | 111 ], |
| 112 'conditions': [ | 112 'conditions': [ |
| 113 ['OS=="linux"', { | 113 ['os_posix == 1 and OS != "mac"', { |
| 114 'cflags': [ | 114 'cflags': [ |
| 115 # SQLite doesn't believe in compiler warnings, | 115 # SQLite doesn't believe in compiler warnings, |
| 116 # preferring testing. | 116 # preferring testing. |
| 117 # http://www.sqlite.org/faq.html#q17 | 117 # http://www.sqlite.org/faq.html#q17 |
| 118 '-Wno-int-to-pointer-cast', | 118 '-Wno-int-to-pointer-cast', |
| 119 '-Wno-pointer-to-int-cast', | 119 '-Wno-pointer-to-int-cast', |
| 120 ], | 120 ], |
| 121 }], | 121 }], |
| 122 ], | 122 ], |
| 123 }], | 123 }], |
| 124 ], | 124 ], |
| 125 }, | 125 }, |
| 126 ], | 126 ], |
| 127 'conditions': [ | 127 'conditions': [ |
| 128 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and not use_system_sqlite'
, { | 128 ['os_posix == 1 and OS != "mac" and not use_system_sqlite', { |
| 129 'targets': [ | 129 'targets': [ |
| 130 { | 130 { |
| 131 'target_name': 'sqlite_shell', | 131 'target_name': 'sqlite_shell', |
| 132 'type': 'executable', | 132 'type': 'executable', |
| 133 'dependencies': [ | 133 'dependencies': [ |
| 134 '../icu/icu.gyp:icuuc', | 134 '../icu/icu.gyp:icuuc', |
| 135 'sqlite', | 135 'sqlite', |
| 136 ], | 136 ], |
| 137 'sources': [ | 137 'sources': [ |
| 138 'src/src/shell.c', | 138 'src/src/shell.c', |
| 139 'src/src/shell_icu_linux.c', | 139 'src/src/shell_icu_linux.c', |
| 140 ], | 140 ], |
| 141 'link_settings': { | 141 'link_settings': { |
| 142 'link_languages': ['c++'], | 142 'link_languages': ['c++'], |
| 143 }, | 143 }, |
| 144 }, | 144 }, |
| 145 ], | 145 ], |
| 146 },] | 146 },] |
| 147 ], | 147 ], |
| 148 } | 148 } |
| 149 | 149 |
| 150 # Local Variables: | 150 # Local Variables: |
| 151 # tab-width:2 | 151 # tab-width:2 |
| 152 # indent-tabs-mode:nil | 152 # indent-tabs-mode:nil |
| 153 # End: | 153 # End: |
| 154 # vim: set expandtab tabstop=2 shiftwidth=2: | 154 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |