Skip to content

Commit

Permalink
BehaviorTree#2 Add Mingw
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Dec 13, 2018
1 parent 9a6948c commit e921822
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
PYTHON: "C:\\Python37"

matrix:
- MINGW_CONFIGURATIONS: '5@x86@seh2@posix, 6@x86_64@seh@posix, 7@x86_64@seh@posix, 8@x86_64@seh@posix'
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 12
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
Expand Down
11 changes: 11 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"""Conan recipe package for BehaviorTree.CPP
"""
from conans import ConanFile, CMake, tools
from conans.model.version import Version
from conans.errors import ConanInvalidConfiguration


class BehaviorTreeConan(ConanFile):
Expand All @@ -21,6 +23,15 @@ class BehaviorTreeConan(ConanFile):
exports_sources = ("cmake/*", "include/*", "src/*", "3rdparty/*", "CMakeLists.txt")
requires = "cppzmq/4.3.0@bincrafters/stable"

def configure(self):
if self.settings.os == "Linux" and \
self.settings.compiler == "gcc" and \
Version(self.settings.compiler.version.value) < "5":
raise ConanInvalidConfiguration("BehaviorTree.CPP can not be built by GCC < 5")
if self.settings.os == "Windows" and \
self.settings.compiler == "Visual Studio":
raise ConanInvalidConfiguration("BehaviorTree.CPP is not supported on Visual Studio yet")

def _configure_cmake(self):
"""Create CMake instance and execute configure step
"""
Expand Down

0 comments on commit e921822

Please sign in to comment.