Exemple #1
0
    def build(self):
        cmake = CMake(self.settings)
        embed = Embedded(self.settings)
        toolchain = '-DCMAKE_TOOLCHAIN_FILE=toolchain/%s.cmake' % embed.microcontroller()

        self.run('cmake "%s" %s %s' % (self.conanfile_directory, cmake.command_line, toolchain))
        self.run('cmake --build . %s' % cmake.build_config)
Exemple #2
0
 def config(self):
     if self.settings.target == "native":
         self.requires("sasiae/0.1@AversivePlusPlus/dev")
     else:
         embed = Embedded(self.settings)
         if self.settings.target == "board":
             if self.settings.target.board in [
                     "arduino_uno", "arduino_mega"
             ]:
                 self.requires("arduino/0.1@AversivePlusPlus/dev")
 def config(self):
     embed = Embedded(self.settings)
     if "stm32f4" in embed.groups():
         self.requires("hal-stm32cubef4/0.1@AversivePlusPlus/dev")
     if "atmegaxx0_1" in embed.groups():
         self.requires("hal-atmegaxx0_1/0.1@AversivePlusPlus/dev")