Skip to content

Commit

Permalink
Add pugixml install script, build in release mode
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Achard <remiachard@gmail.com>
  • Loading branch information
remia committed Oct 26, 2021
1 parent 0de763a commit 147de15
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/analysis_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
share/ci/scripts/linux/install_openexr.sh latest
share/ci/scripts/linux/install_imath.sh latest
share/ci/scripts/linux/install_oiio.sh latest
share/ci/scripts/linux/install_pugixml.sh latest
share/ci/scripts/linux/install_osl.sh latest
share/ci/scripts/linux/install_openfx.sh latest
- name: Create build directories
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_imath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ fi

mkdir build
cd build
cmake -DBUILD_TESTING=OFF \
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DPYTHON=OFF \
-DCMAKE_C_FLAGS="-fPIC" \
-DCMAKE_CXX_FLAGS="-fPIC" \
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_lcms2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ cp ../share/cmake/projects/Buildlcms2.cmake CMakeLists.txt

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON \
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_C_FLAGS="-fPIC" \
../.
make -j4
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_oiio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ fi

mkdir build
cd build
cmake -DOIIO_BUILD_TOOLS=OFF \
cmake -DCMAKE_BUILD_TYPE=Release \
-DOIIO_BUILD_TOOLS=OFF \
-DOIIO_BUILD_TESTS=OFF \
-DVERBOSE=ON \
-DSTOP_ON_WARNING=OFF \
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_openexr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ fi

mkdir build
cd build
cmake -DBUILD_TESTING=OFF \
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DOPENEXR_BUILD_UTILS=OFF \
-DOPENEXR_VIEWERS_ENABLE=OFF \
-DINSTALL_OPENEXR_EXAMPLES=OFF \
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_osl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ fi

mkdir build
cd build
cmake -DOSL_BUILD_TESTS=OFF \
cmake -DCMAKE_BUILD_TYPE=Release \
-DOSL_BUILD_TESTS=OFF \
-DVERBOSE=ON \
-DSTOP_ON_WARNING=OFF \
-DBoost_NO_BOOST_CMAKE=ON \
Expand Down
31 changes: 31 additions & 0 deletions share/ci/scripts/linux/install_pugixml.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.

set -ex

PUGIXML_VERSION="$1"

git clone https://github.com/zeux/pugixml.git
cd pugixml

if [ "$PUGIXML_VERSION" == "latest" ]; then
LATEST_TAG=$(git describe --abbrev=0 --tags)
git checkout tags/${LATEST_TAG} -b ${LATEST_TAG}
else
git checkout tags/v${PUGIXML_VERSION} -b v${PUGIXML_VERSION}
fi

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DVERBOSE=ON \
-DSTOP_ON_WARNING=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=OFF \
../.
make -j4
sudo make install

cd ../..
rm -rf pugixml
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_pybind11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ fi

mkdir build
cd build
cmake -DPYBIND11_INSTALL=ON \
cmake -DCMAKE_BUILD_TYPE=Release \
-DPYBIND11_INSTALL=ON \
-DPYBIND11_TEST=OFF \
../.
make -j4
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_pystring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ cp ../share/cmake/projects/Buildpystring.cmake CMakeLists.txt

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON \
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_CXX_FLAGS="-fPIC" \
../.
make -j4
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/linux/install_yaml-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ fi

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON \
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DYAML_CPP_BUILD_TESTS=OFF \
-DYAML_CPP_BUILD_TOOLS=OFF \
-DYAML_CPP_BUILD_CONTRIB=OFF \
Expand Down

0 comments on commit 147de15

Please sign in to comment.