1# Copyright (C) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15config("sqlite_config") { 16 include_dirs = [ "include" ] 17 cflags = [ 18 "-Wno-shorten-64-to-32", 19 "-Wno-double-promotion", 20 "-Wno-disabled-macro-expansion", 21 "-Wno-float-equal", 22 "-Wno-cast-qual", 23 "-Wno-conversion", 24 "-Wno-cast-align", 25 "-Wno-unused-macros", 26 "-Wno-comma", 27 "-Wno-unreachable-code-break", 28 "-Wno-unreachable-code", 29 "-Wno-unreachable-code-return", 30 "-DSQLITE_THREADSAFE=1", 31 "-DQLITE_DEFAULT_MEMSTATUS=0", 32 "-DSQLITE_LIKE_DOESNT_MATCH_BLOBS", 33 "-DSQLITE_OMIT_DEPRECATED", 34 "-DSQLITE_OMIT_SHARED_CACHE", 35 "-DHAVE_USLEEP", 36 "-DHAVE_UTIME", 37 "-DSQLITE_BYTEORDER=1234", 38 "-DSQLITE_DEFAULT_AUTOVACUUM=0", 39 "-DSQLITE_DEFAULT_MMAP_SIZE=0", 40 "-DSQLITE_CORE", 41 "-DSQLITE_TEMP_STORE=3", 42 "-DSQLITE_OMIT_LOAD_EXTENSION", 43 ] 44} 45ohos_source_set("sqlite") { 46 subsystem_name = "developtools" 47 part_name = "smartperf_host" 48 sources = [ "src/sqlite3.c" ] 49 public_configs = [ ":sqlite_config" ] 50} 51