Loading buildstream/data/projectconfig.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,9 @@ variables: # normally staged build-root: /buildstream/%{project-name}/%{element-name} # Indicates where the build system should look for configuration files conf-root: ./ # Indicates the build installation directory in the sandbox install-root: /buildstream-install Loading buildstream/plugins/elements/autotools.yaml +7 −6 Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ variables: export NOCONFIGURE=1; if [ -x %{conf-cmd} ]; then true; elif [ -x autogen ]; then ./autogen; elif [ -x autogen.sh ]; then ./autogen.sh; elif [ -x bootstrap ]; then ./bootstrap; elif [ -x bootstrap.sh ]; then ./bootstrap.sh; else autoreconf -ivf; elif [ -x %{conf-root}/autogen ]; then %{conf-root}/./autogen; elif [ -x %{conf-root}/autogen.sh ]; then %{conf-root}/./autogen.sh; elif [ -x %{conf-root}/bootstrap ]; then %{conf-root}/./bootstrap; elif [ -x %{conf-root}/bootstrap.sh ]; then %{conf-root}/./bootstrap.sh; else autoreconf -ivf %{conf-root}; fi # Project-wide extra arguments to be passed to `configure` Loading @@ -22,7 +22,8 @@ variables: # For backwards compatibility only, do not use. conf-extra: '' conf-cmd: ./configure conf-cmd: "%{conf-root}/./configure" conf-args: | --prefix=%{prefix} \ Loading buildstream/plugins/elements/cmake.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ variables: cmake: | cmake -B%{build-dir} -H. -G"%{generator}" %{cmake-args} cmake -B%{build-dir} -H"%{conf-root}" -G"%{generator}" %{cmake-args} make: cmake --build %{build-dir} -- ${JOBS} make-install: env DESTDIR="%{install-root}" cmake --build %{build-dir} --target install Loading tests/format/variables.py +2 −2 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ DATA_DIR = os.path.join( @pytest.mark.parametrize("target,varname,expected", [ ('autotools.bst', 'make-install', "make -j1 DESTDIR=\"/buildstream-install\" install"), ('cmake.bst', 'cmake', "cmake -B_builddir -H. -G\"Unix Makefiles\" -DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" + "cmake -B_builddir -H\"./\" -G\"Unix Makefiles\" " + "-DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" + "-DCMAKE_INSTALL_LIBDIR=lib "), ('distutils.bst', 'python-install', "python3 setup.py install --prefix \"/usr\" \\\n" + Loading @@ -45,7 +45,7 @@ def test_defaults(cli, datafiles, tmpdir, target, varname, expected): @pytest.mark.parametrize("target,varname,expected", [ ('autotools.bst', 'make-install', "make -j1 DESTDIR=\"/custom/install/root\" install"), ('cmake.bst', 'cmake', "cmake -B_builddir -H. -G\"Ninja\" -DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" + "cmake -B_builddir -H\"./\" -G\"Ninja\" " + "-DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" + "-DCMAKE_INSTALL_LIBDIR=lib "), ('distutils.bst', 'python-install', "python3 setup.py install --prefix \"/opt\" \\\n" + Loading Loading
buildstream/data/projectconfig.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,9 @@ variables: # normally staged build-root: /buildstream/%{project-name}/%{element-name} # Indicates where the build system should look for configuration files conf-root: ./ # Indicates the build installation directory in the sandbox install-root: /buildstream-install Loading
buildstream/plugins/elements/autotools.yaml +7 −6 Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ variables: export NOCONFIGURE=1; if [ -x %{conf-cmd} ]; then true; elif [ -x autogen ]; then ./autogen; elif [ -x autogen.sh ]; then ./autogen.sh; elif [ -x bootstrap ]; then ./bootstrap; elif [ -x bootstrap.sh ]; then ./bootstrap.sh; else autoreconf -ivf; elif [ -x %{conf-root}/autogen ]; then %{conf-root}/./autogen; elif [ -x %{conf-root}/autogen.sh ]; then %{conf-root}/./autogen.sh; elif [ -x %{conf-root}/bootstrap ]; then %{conf-root}/./bootstrap; elif [ -x %{conf-root}/bootstrap.sh ]; then %{conf-root}/./bootstrap.sh; else autoreconf -ivf %{conf-root}; fi # Project-wide extra arguments to be passed to `configure` Loading @@ -22,7 +22,8 @@ variables: # For backwards compatibility only, do not use. conf-extra: '' conf-cmd: ./configure conf-cmd: "%{conf-root}/./configure" conf-args: | --prefix=%{prefix} \ Loading
buildstream/plugins/elements/cmake.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ variables: cmake: | cmake -B%{build-dir} -H. -G"%{generator}" %{cmake-args} cmake -B%{build-dir} -H"%{conf-root}" -G"%{generator}" %{cmake-args} make: cmake --build %{build-dir} -- ${JOBS} make-install: env DESTDIR="%{install-root}" cmake --build %{build-dir} --target install Loading
tests/format/variables.py +2 −2 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ DATA_DIR = os.path.join( @pytest.mark.parametrize("target,varname,expected", [ ('autotools.bst', 'make-install', "make -j1 DESTDIR=\"/buildstream-install\" install"), ('cmake.bst', 'cmake', "cmake -B_builddir -H. -G\"Unix Makefiles\" -DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" + "cmake -B_builddir -H\"./\" -G\"Unix Makefiles\" " + "-DCMAKE_INSTALL_PREFIX:PATH=\"/usr\" \\\n" + "-DCMAKE_INSTALL_LIBDIR=lib "), ('distutils.bst', 'python-install', "python3 setup.py install --prefix \"/usr\" \\\n" + Loading @@ -45,7 +45,7 @@ def test_defaults(cli, datafiles, tmpdir, target, varname, expected): @pytest.mark.parametrize("target,varname,expected", [ ('autotools.bst', 'make-install', "make -j1 DESTDIR=\"/custom/install/root\" install"), ('cmake.bst', 'cmake', "cmake -B_builddir -H. -G\"Ninja\" -DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" + "cmake -B_builddir -H\"./\" -G\"Ninja\" " + "-DCMAKE_INSTALL_PREFIX:PATH=\"/opt\" \\\n" + "-DCMAKE_INSTALL_LIBDIR=lib "), ('distutils.bst', 'python-install', "python3 setup.py install --prefix \"/opt\" \\\n" + Loading