提交 09105188 编写于 作者: Y yangjian

feat: posix kvstore by enable_ohos_utils_native_lite_kv_store_use_posix_kv_api

Signed-off-by: Nyangjian <jianyang@bestechnic.com>
Change-Id: Ib9dee5c0a8a1098457bee962957c2ae7c469f2a5
上级 91f2ac31
...@@ -9,17 +9,24 @@ ...@@ -9,17 +9,24 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
declare_args() {
enable_ohos_utils_native_lite_kv_store_use_posix_kv_api = true
}
if (ohos_kernel_type == "liteos_m") { if (ohos_kernel_type == "liteos_m") {
static_library("utils_kv_store") { static_library("utils_kv_store") {
sources = [ sources = [ "kvstore_common/kvstore_common.c" ]
"kvstore_common/kvstore_common.c", if (enable_ohos_utils_native_lite_kv_store_use_posix_kv_api) {
"kvstore_impl_hal/kv_store.c", sources += [ "kvstore_impl_posix/kv_store.c" ]
] } else {
sources += [ "kvstore_impl_hal/kv_store.c" ]
}
include_dirs = [ include_dirs = [
"//utils/native/lite/include", "//utils/native/lite/include",
"kvstore_common", "kvstore_common",
"//utils/native/lite/kv_store/innerkits",
] ]
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册