aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/travis/cmake.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 02:34:03 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 02:53:51 +0300
commit39902041e7671a94abcf691fa4a769b5cb4fc4fb (patch)
tree9ea5e61c6f49913aa81c7ba0bddb85127c8fc0dd /project/ci/travis/cmake.py
parentproject.cmake.build: refactoring (diff)
downloadcmake-common-39902041e7671a94abcf691fa4a769b5cb4fc4fb.tar.gz
cmake-common-39902041e7671a94abcf691fa4a769b5cb4fc4fb.zip
project.cmake: make it --platform aware
Diffstat (limited to '')
-rw-r--r--project/ci/travis/cmake.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/project/ci/travis/cmake.py b/project/ci/travis/cmake.py
index 1d6eed4..47177bc 100644
--- a/project/ci/travis/cmake.py
+++ b/project/ci/travis/cmake.py
@@ -19,6 +19,7 @@ import sys
from project.cmake.build import BuildParameters, build
from project.configuration import Configuration
+from project.platform import Platform
from project.utils import setup_logging
@@ -41,6 +42,10 @@ def _get_build_dir():
return os.path.join(_env('HOME'), 'build')
+def _get_platform():
+ return Platform.parse(_env('platform'))
+
+
def _get_configuration():
return Configuration.parse(_env('configuration'))
@@ -68,6 +73,7 @@ def build_travis(argv=None):
params = BuildParameters(_get_src_dir(),
build_dir=_get_build_dir(),
install_dir=args.install_dir,
+ platform=_get_platform(),
configuration=_get_configuration(),
cmake_args=args.cmake_args)
build(params)