Skip to content

Commit

Permalink
Make Homestore editable. (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd authored Aug 14, 2024
1 parent 0a59691 commit 2a3ebf9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ enable_testing()

include (cmake/test_mode.cmake)

if (DEFINED CONAN_BUILD_COVERAGE)
if (${CONAN_BUILD_COVERAGE})
if (DEFINED BUILD_COVERAGE)
if (${BUILD_COVERAGE})
include (cmake/CodeCoverage.cmake)
APPEND_COVERAGE_COMPILER_FLAGS()
SETUP_TARGET_FOR_COVERAGE_GCOVR_XML(NAME coverage EXECUTABLE ctest DEPENDENCIES )
Expand Down
24 changes: 17 additions & 7 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake, cmake_layout
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
from conan.tools.files import copy
from os.path import join

required_conan_version = ">=1.60.0"

class HomestoreConan(ConanFile):
name = "homestore"
version = "6.4.44"
version = "6.4.45"

homepage = "https://github.com/eBay/Homestore"
description = "HomeStore Storage Engine"
topics = ("ebay", "nublox")
Expand Down Expand Up @@ -63,7 +64,20 @@ def imports(self):
self.copy(root_package="sisl", pattern="*", dst="bin/scripts/python/flip/", src="bindings/flip/python/", keep_path=False)

def layout(self):
cmake_layout(self)
self.folders.source = "."
self.folders.build = join("build", str(self.settings.build_type))
self.folders.generators = join(self.folders.build, "generators")

self.cpp.source.includedirs = ["src/include"]

self.cpp.build.libdirs = ["src"]

self.cpp.package.libs = ["homestore"]
self.cpp.package.includedirs = ["include"] # includedirs is already set to 'include' by
self.cpp.package.libdirs = ["lib"]

if not self.settings.arch in ['x86', 'x86_64']:
self.cpp.package.defines.append("NO_ISAL")

def generate(self):
# This generates "conan_toolchain.cmake" in self.generators_folder
Expand Down Expand Up @@ -104,10 +118,6 @@ def package(self):
copy(self, "*.dll", self.build_folder, join(self.package_folder, "lib"), keep_path=False)

def package_info(self):
self.cpp_info.libs = ["homestore"]
if not self.settings.arch in ['x86', 'x86_64']:
self.cpp_info.defines.append("NO_ISAL")

if self.options.sanitize:
self.cpp_info.sharedlinkflags.append("-fsanitize=address")
self.cpp_info.exelinkflags.append("-fsanitize=address")
Expand Down

0 comments on commit 2a3ebf9

Please sign in to comment.