You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:23:53 UTC

[buildstream] branch jjardon/cmake_ninja created (now d01b914)

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a change to branch jjardon/cmake_ninja
in repository https://gitbox.apache.org/repos/asf/buildstream.git.


      at d01b914  buildstream/plugins/elements/cmake.yaml: Use ninja instead make

This branch includes the following new commits:

     new b7099b1  setup.py: Require jinja >= 2.10
     new d01b914  buildstream/plugins/elements/cmake.yaml: Use ninja instead make

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 02/02: buildstream/plugins/elements/cmake.yaml: Use ninja instead make

Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch jjardon/cmake_ninja
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit d01b9141cb17aded7041ee13639dd2b3d9c9d931
Author: Javier Jardón <jj...@gnome.org>
AuthorDate: Wed Jan 17 17:28:50 2018 +0000

    buildstream/plugins/elements/cmake.yaml: Use ninja instead make
---
 buildstream/plugins/elements/cmake.yaml | 24 +++++++++++++-----------
 tests/variables/variables.py            |  4 ++--
 2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/buildstream/plugins/elements/cmake.yaml b/buildstream/plugins/elements/cmake.yaml
index 1a3191e..9080e65 100644
--- a/buildstream/plugins/elements/cmake.yaml
+++ b/buildstream/plugins/elements/cmake.yaml
@@ -15,10 +15,13 @@ variables:
 
   cmake: |
 
-    cmake -B%{build-dir} -H. %{cmake-args}
+    cmake -B%{build-dir} -H. -GNinja %{cmake-args}
 
-  make: make -C %{build-dir}
-  make-install: make -j1 -C %{build-dir} DESTDIR="%{install-root}" install
+  ninja: |
+    ninja -j ${NINJAJOBS} -C %{build-dir}
+
+  ninja-install: |
+    env DESTDIR="%{install-root}" ninja -C %{build-dir} install
 
   # Set this if the sources cannot handle parallelization.
   #
@@ -36,14 +39,14 @@ config:
   #
   build-commands:
   - |
-    %{make}
+    %{ninja}
 
   # Commands for installing the software into a
   # destination folder
   #
   install-commands:
   - |
-    %{make-install}
+    %{ninja-install}
 
   # Commands for stripping debugging information out of
   # installed binaries
@@ -52,13 +55,12 @@ config:
   - |
     %{strip-binaries}
 
-# Use max-jobs CPUs for building and enable verbosity
+# Use max-jobs CPUs for building
 environment:
-  MAKEFLAGS: -j%{max-jobs}
-  V: 1
+  NINJAJOBS: |
+    %{max-jobs}
 
-# And dont consider MAKEFLAGS or V as something which may
+# And dont consider NINJAJOBS as something which may
 # effect build output.
 environment-nocache:
-- MAKEFLAGS
-- V
+- NINJAJOBS
diff --git a/tests/variables/variables.py b/tests/variables/variables.py
index 24f323c..6623b92 100644
--- a/tests/variables/variables.py
+++ b/tests/variables/variables.py
@@ -45,7 +45,7 @@ def assert_command(datafiles, tmpdir, target, command, expected):
 @pytest.mark.parametrize("target,command,expected", [
     ('autotools.bst', 'install-commands', "make -j1 DESTDIR=\"/buildstream/install\" install"),
     ('cmake.bst', 'configure-commands',
-     "cmake -B_builddir -H. -DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" +
+     "cmake -B_builddir -H. -GNinja -DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" +
      "-DCMAKE_INSTALL_LIBDIR=lib"),
     ('distutils.bst', 'install-commands',
      "python3 setup.py install --prefix \"/usr\" \\\n" +
@@ -65,7 +65,7 @@ def test_defaults(datafiles, tmpdir, target, command, expected):
 @pytest.mark.parametrize("target,command,expected", [
     ('autotools.bst', 'install-commands', "make -j1 DESTDIR=\"/custom/install/root\" install"),
     ('cmake.bst', 'configure-commands',
-     "cmake -B_builddir -H. -DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" +
+     "cmake -B_builddir -H. -GNinja -DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" +
      "-DCMAKE_INSTALL_LIBDIR=lib"),
     ('distutils.bst', 'install-commands',
      "python3 setup.py install --prefix \"/opt\" \\\n" +


[buildstream] 01/02: setup.py: Require jinja >= 2.10

Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch jjardon/cmake_ninja
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit b7099b125ef9c4cd1c1105648f5992b4f4a63fe4
Author: Javier Jardón <jj...@gnome.org>
AuthorDate: Tue Jan 16 11:17:47 2018 +0000

    setup.py: Require jinja >= 2.10
    
    jinja2 2.10 import time has been divided by two compared to Jinja 2.9.6
    
    Fixes #194
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index c98d651..bb1a93e 100755
--- a/setup.py
+++ b/setup.py
@@ -167,7 +167,7 @@ setup(name='BuildStream',
           'pluginbase',
           'Click',
           'blessings',
-          'jinja2',
+          'jinja2 >= 2.10',
       ],
       entry_points=bst_install_entry_points,
       setup_requires=['pytest-runner', 'setuptools_scm'],