view src/objstore/CMakeLists.txt @ 862:9a63d933a60e

objstore: expose dirent add/update helpers to the rest of objstore These are useful anytime we want to create a new directory entry - create, link, symlink, etc. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sat, 17 Dec 2022 17:02:07 -0500
parents 90b42fb22d6a
children f9ea425467d3
line wrap: on
line source

#
# Copyright (c) 2015-2020,2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

add_library(nomad_objstore SHARED
	cache.c
	dir.c
	dirblock.c
	dirent.c
	dirent_target_packing.c
	obj.c
	obj_dir.c
	obj_dir_create.c
	obj_dir_unlink.c
	obj_ops.c
	obj_txn.c
	objstore.c
	txn.c
	vdev.c
	vol.c
	vol_ops.c
)

target_link_libraries(nomad_objstore
	${BASE_LIBS}
	dl
)

install(TARGETS nomad_objstore DESTINATION lib
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
install(FILES	include/nomad/objstore.h
		include/nomad/objstore_backend.h
	DESTINATION include/nomad
	PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

add_subdirectory(posix)