Beispiel #1
0
    def build(self):
        cmake = self.cmake_basis()

        #TODO(fernando): check and compare "shared" logic with the one in kthbuild
        cmake.definitions["ENABLE_SHARED"] = option_on_off(self.is_shared)
        cmake.definitions["ENABLE_SHARED_CAPI"] = option_on_off(self.is_shared)
        # cmake.definitions["ENABLE_POSITION_INDEPENDENT_CODE"] = option_on_off(self.fPIC_enabled)

        cmake.definitions["WITH_CONSOLE"] = option_on_off(self.options.console)
        cmake.definitions["WITH_CONSOLE_CAPI"] = option_on_off(
            self.options.console)

        cmake.definitions["WITH_KEOKEN"] = option_on_off(self.is_keoken)
        cmake.definitions["WITH_MEMPOOL"] = option_on_off(self.options.mempool)
        cmake.definitions["DB_READONLY_MODE"] = option_on_off(
            self.options.db_readonly)
        cmake.definitions["LOG_LIBRARY"] = self.options.log
        cmake.definitions["USE_LIBMDBX"] = option_on_off(
            self.options.use_libmdbx)

        cmake.configure(source_dir=self.source_folder)
        if not self.options.cmake_export_compile_commands:
            cmake.build()
            if self.options.tests:
                cmake.test()
Beispiel #2
0
    def build(self):
        cmake = self.cmake_basis()
        cmake.definitions["WITH_CONSENSUS"] = option_on_off(
            self.options.consensus)
        cmake.definitions["WITH_KEOKEN"] = option_on_off(self.is_keoken)
        # cmake.definitions["WITH_MINING"] = option_on_off(self.options.mining)
        cmake.definitions["WITH_MEMPOOL"] = option_on_off(self.options.mempool)
        cmake.definitions["USE_DOMAIN"] = option_on_off(True)

        cmake.configure(source_dir=self.source_folder)
        if not self.options.cmake_export_compile_commands:
            cmake.build()
            if self.options.tests:
                cmake.test()
Beispiel #3
0
    def build(self):
        cmake = self.cmake_basis()
        cmake.definitions["WITH_CONSENSUS"] = option_on_off(
            self.options.consensus)
        cmake.definitions["WITH_KEOKEN"] = option_on_off(self.is_keoken)
        # cmake.definitions["WITH_MINING"] = option_on_off(self.options.mining)
        cmake.definitions["WITH_MEMPOOL"] = option_on_off(self.options.mempool)
        cmake.definitions["DB_READONLY_MODE"] = option_on_off(
            self.options.db_readonly)
        cmake.definitions["LOG_LIBRARY"] = self.options.log
        cmake.definitions["USE_LIBMDBX"] = option_on_off(
            self.options.use_libmdbx)

        cmake.configure(source_dir=self.source_folder)
        if not self.options.cmake_export_compile_commands:
            cmake.build()
            if self.options.tests:
                cmake.test()
Beispiel #4
0
    def build(self):
        cmake = self.cmake_basis()

        # cmake.definitions["WITH_CONSOLE"] = option_on_off(self.with_console)
        cmake.definitions["WITH_KEOKEN"] = option_on_off(self.is_keoken)
        cmake.definitions["WITH_MEMPOOL"] = option_on_off(self.options.mempool)
        cmake.definitions["DB_READONLY_MODE"] = option_on_off(
            self.options.db_readonly)
        cmake.definitions["LOG_LIBRARY"] = self.options.log
        cmake.definitions["USE_LIBMDBX"] = option_on_off(
            self.options.use_libmdbx)
        cmake.definitions["STATISTICS"] = option_on_off(
            self.options.statistics)

        cmake.configure(source_dir=self.source_folder)
        if not self.options.cmake_export_compile_commands:
            cmake.build()
            if self.options.tests:
                cmake.test()
Beispiel #5
0
    def build(self):
        cmake = self.cmake_basis()
        cmake.definitions["WITH_CACHED_RPC_DATA"] = option_on_off(
            self.options.cached_rpc_data)
        cmake.definitions["WITH_KEOKEN"] = option_on_off(self.is_keoken)
        cmake.definitions["WITH_ICU"] = option_on_off(self.options.with_icu)
        cmake.definitions["WITH_QRENCODE"] = option_on_off(
            self.options.with_qrencode)
        # cmake.definitions["WITH_PNG"] = option_on_off(self.options.with_png)
        cmake.definitions["WITH_PNG"] = option_on_off(
            self.options.with_qrencode)
        cmake.definitions["LOG_LIBRARY"] = self.options.log

        cmake.configure(source_dir=self.source_folder)
        if not self.options.cmake_export_compile_commands:
            cmake.build()
            #Note: Cmake Tests and Visual Studio doesn't work
            if self.options.tests:
                cmake.test()
Beispiel #6
0
    def build(self):
        cmake = self.cmake_basis()
        cmake.definitions["WITH_MEASUREMENTS"] = option_on_off(
            self.options.measurements)
        cmake.definitions["DB_READONLY_MODE"] = option_on_off(
            self.options.db_readonly)
        cmake.definitions["WITH_CACHED_RPC_DATA"] = option_on_off(
            self.options.cached_rpc_data)
        cmake.definitions["LOG_LIBRARY"] = self.options.log
        cmake.definitions["USE_LIBMDBX"] = option_on_off(
            self.options.use_libmdbx)

        if self.options.cmake_export_compile_commands:
            cmake.definitions["CMAKE_EXPORT_COMPILE_COMMANDS"] = option_on_off(
                self.options.cmake_export_compile_commands)

        cmake.configure(source_dir=self.source_folder)

        if not self.options.cmake_export_compile_commands:
            cmake.build()
            #Note: Cmake Tests and Visual Studio doesn't work
            if self.options.tests:
                cmake.test()
Beispiel #7
0
    def build(self):
        cmake = self.cmake_basis(pure_c=True)
        cmake.definitions["ENABLE_BENCHMARK"] = option_on_off(
            self.options.benchmark)
        cmake.definitions["ENABLE_TESTS"] = option_on_off(self.options.tests)
        cmake.definitions["ENABLE_OPENSSL_TESTS"] = option_on_off(
            self.options.openssl_tests)
        # cmake.definitions["ENABLE_BENCHMARK"] = option_on_off(self.benchmark)
        # cmake.definitions["ENABLE_TESTS"] = option_on_off(self.tests)
        # cmake.definitions["ENABLE_OPENSSL_TESTS"] = option_on_off(self.openssl_tests)
        cmake.definitions["ENABLE_EXPERIMENTAL"] = option_on_off(
            self.options.enable_experimental)
        cmake.definitions["ENABLE_ENDOMORPHISM"] = option_on_off(
            self.options.enable_endomorphism)
        cmake.definitions[
            "ENABLE_ECMULT_STATIC_PRECOMPUTATION"] = option_on_off(
                self.options.enable_ecmult_static_precomputation)
        cmake.definitions["ENABLE_MODULE_ECDH"] = option_on_off(
            self.options.enable_module_ecdh)
        cmake.definitions["ENABLE_MODULE_SCHNORR"] = option_on_off(
            self.options.enable_module_schnorr)
        cmake.definitions["ENABLE_MODULE_RECOVERY"] = option_on_off(
            self.options.enable_module_recovery)
        cmake.definitions["ENABLE_MODULE_MULTISET"] = option_on_off(
            self.options.enable_module_multiset)

        self.output.info("Bignum lib selected: %s" % (self.bignum_lib_name, ))
        cmake.definitions["WITH_BIGNUM"] = self.bignum_lib_name
        # cmake.definitions["WITH_ASM"] = option_on_off(self.options.with_asm)
        # cmake.definitions["WITH_FIELD"] = option_on_off(self.options.with_field)
        # cmake.definitions["WITH_SCALAR"] = option_on_off(self.options.with_scalar)
        # cmake.definitions["WITH_BIGNUM"] = option_on_off(self.options.with_bignum)

        if self.settings.os == "Windows":
            if self.settings.compiler == "Visual Studio" and (
                    self.settings.compiler.version != 12):
                cmake.definitions["ENABLE_TESTS"] = option_on_off(
                    False)  #Workaround. test broke MSVC

        cmake.configure(source_dir=self.source_folder)
        cmake.build()