diff options
author | Starscouts <starscouts@equestria.dev> | 2024-07-02 22:23:01 +0200 |
---|---|---|
committer | Starscouts <starscouts@equestria.dev> | 2024-07-02 22:23:01 +0200 |
commit | 04527db1831299fb3cba5c3127fd462939b448cf (patch) | |
tree | f4893e7b64faf9e23adf36f676fc6e30e745a784 /sql/win/deps/sqlite3.gyp | |
parent | ce613801c07c90d3e886fd6002f6e8f833589632 (diff) | |
download | faunerie-04527db1831299fb3cba5c3127fd462939b448cf.tar.gz faunerie-04527db1831299fb3cba5c3127fd462939b448cf.tar.bz2 faunerie-04527db1831299fb3cba5c3127fd462939b448cf.zip |
Cancel Rust rewrite3.1.0
Diffstat (limited to 'sql/win/deps/sqlite3.gyp')
-rwxr-xr-x | sql/win/deps/sqlite3.gyp | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/sql/win/deps/sqlite3.gyp b/sql/win/deps/sqlite3.gyp new file mode 100755 index 0000000..660b3b0 --- /dev/null +++ b/sql/win/deps/sqlite3.gyp @@ -0,0 +1,121 @@ +{ + 'includes': [ 'common-sqlite.gypi' ], + + 'variables': { + 'sqlite_magic%': '', + }, + + 'target_defaults': { + 'default_configuration': 'Release', + 'cflags':[ + '-std=c99' + ], + 'configurations': { + 'Debug': { + 'defines': [ 'DEBUG', '_DEBUG' ], + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + }, + }, + }, + 'Release': { + 'defines': [ 'NDEBUG' ], + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 0, # static release + }, + }, + } + }, + 'msvs_settings': { + 'VCCLCompilerTool': { + }, + 'VCLibrarianTool': { + }, + 'VCLinkerTool': { + 'GenerateDebugInformation': 'true', + }, + }, + 'conditions': [ + ['OS == "win"', { + 'defines': [ + 'WIN32' + ], + }] + ], + }, + + 'targets': [ + { + 'target_name': 'action_before_build', + 'type': 'none', + 'hard_dependency': 1, + 'actions': [ + { + 'action_name': 'unpack_sqlite_dep', + 'inputs': [ + './sqlite-autoconf-<@(sqlite_version).tar.gz' + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' + ], + 'action': ['node','./extract.js','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)'] + } + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/', + ] + }, + }, + { + 'target_name': 'sqlite3', + 'type': 'static_library', + 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/' ], + 'dependencies': [ + 'action_before_build' + ], + 'sources': [ + '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' + ], + 'direct_dependent_settings': { + 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/' ], + 'defines': [ + 'SQLITE_THREADSAFE=1', + 'HAVE_USLEEP=1', + 'SQLITE_ENABLE_FTS3', + 'SQLITE_ENABLE_FTS4', + 'SQLITE_ENABLE_FTS5', + 'SQLITE_ENABLE_RTREE', + 'SQLITE_ENABLE_DBSTAT_VTAB=1', + 'SQLITE_ENABLE_MATH_FUNCTIONS' + ], + }, + 'cflags_cc': [ + '-Wno-unused-value' + ], + 'defines': [ + '_REENTRANT=1', + 'SQLITE_THREADSAFE=1', + 'HAVE_USLEEP=1', + 'SQLITE_ENABLE_FTS3', + 'SQLITE_ENABLE_FTS4', + 'SQLITE_ENABLE_FTS5', + 'SQLITE_ENABLE_RTREE', + 'SQLITE_ENABLE_DBSTAT_VTAB=1', + 'SQLITE_ENABLE_MATH_FUNCTIONS' + ], + 'export_dependent_settings': [ + 'action_before_build', + ], + 'conditions': [ + ["sqlite_magic != ''", { + 'defines': [ + 'SQLITE_FILE_HEADER="<(sqlite_magic)"' + ] + }] + ], + } + ] +} |