mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-20 06:59:32 +08:00
25 lines
756 B
Python
25 lines
756 B
Python
from dataclasses import dataclass
|
|
|
|
from ..tools.cmakebuilder import CMakePackageBuilder
|
|
from ..tools.cmakelists import CMakeDefine
|
|
|
|
|
|
@dataclass
|
|
class CryptoppCMakeOptions:
|
|
CRYPTOPP_USE_INTERMEDIATE_OBJECTS_TARGET: bool = True
|
|
CRYPTOPP_USE_PEM_PACK: bool = None
|
|
CRYPTOPP_USE_MASTER_BRANCH: bool = False
|
|
CRYPTOPP_BUILD_TESTING: bool = True
|
|
CRYPTOPP_BUILD_DOCUMENTATION: bool = False
|
|
CRYPTOPP_INSTALL: bool = True
|
|
CRYPTOPP_BUILD_SHARED: bool = False
|
|
|
|
|
|
class CryptoppCMakePackage(CMakePackageBuilder):
|
|
def set_source_dir(self, source_dir, cryptopp_cmake_dir):
|
|
super().set_source_dir(cryptopp_cmake_dir)
|
|
self.add_cmake_option(
|
|
CMakeDefine("CRYPTOPP_SOURCES", source_dir)
|
|
)
|
|
return self
|