Skip to content

Commit 408f390

Browse files
committed
Add some private headers from to secp256k1 lib [I'm sorry]
1 parent 263dd4e commit 408f390

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

recipes/secp256k1/all/conanfile.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from conan import ConanFile, tools
22
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
3-
from conan.tools.files import get
3+
from conan.tools.files import get, copy
4+
import os
45

56
required_conan_version = ">=2.0.0"
67

@@ -44,6 +45,16 @@ def package(self):
4445
cmake = CMake(self)
4546
cmake.install()
4647

48+
# Copy additional headers from src directory
49+
src_headers = ["util.h", "int128.h", "int128_impl.h", "scalar.h", "scalar_impl.h", "checkmem.h", "int128_native.h", "int128_native_impl.h", "scalar_4x64.h", "scalar_4x64_impl.h", "modinv64.h", "modinv64_impl.h"]
50+
for header in src_headers:
51+
copy(
52+
self,
53+
header,
54+
src=os.path.join(self.source_folder, "src"),
55+
dst=os.path.join(self.package_folder, "include", "private")
56+
)
57+
4758
def package_info(self):
4859
self.cpp_info.libs = ["secp256k1"]
4960
self.cpp_info.set_property("cmake_file_name", "secp256k1")

0 commit comments

Comments
 (0)