No change rebuild for openKylin

This commit is contained in:
liwenjun 2024-06-20 10:26:05 +08:00 committed by openkylin-cibot
parent fdaea6f9ff
commit 6d2dfa164d
4 changed files with 224 additions and 1 deletions

12
debian/changelog vendored
View File

@ -1,3 +1,15 @@
opencolorio (2.1.3+dfsg-ok13) nile; urgency=medium
* No change rebuild for openKylin.
-- liwenjun <liwenjun@kylinos.cn> Wed, 20 Jun 2024 10:25:25 +0800
opencolorio (2.1.3+dfsg-ok12) nile; urgency=medium
* Fix: need to config libexpat root path.
-- liwenjun <liwenjun@kylinos.cn> Wed, 20 Jun 2024 10:11:25 +0800
opencolorio (2.1.3+dfsg-ok11) nile; urgency=medium
* New upstream release 2.1.3.

View File

@ -0,0 +1,209 @@
From: liwenjun <liwenjun@kylinos.cn>
Date: Thu, 20 Jun 2024 10:26:05 +0800
Subject: No change rebuild for openKylin
---
.appveyor.yml | 38 +++++++++++++++++++++++++++++++++++
.gitignore | 8 ++++++++
.travis.yml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
buildspec.yml | 60 -------------------------------------------------------
4 files changed, 110 insertions(+), 60 deletions(-)
create mode 100644 .appveyor.yml
create mode 100644 .gitignore
create mode 100644 .travis.yml
delete mode 100644 buildspec.yml
diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644
index 0000000..67bf418
--- /dev/null
+++ b/.appveyor.yml
@@ -0,0 +1,38 @@
+version: '{branch}-{build}'
+image: Visual Studio 2013
+clone_folder: C:\source\ocio
+test: auto
+configuration:
+ - Release
+platform:
+ - x64
+
+environment:
+ matrix:
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
+ CMAKE_PLATFORM: "Visual Studio 12 2013 Win64"
+ CMAKE_PREFIX_PATH: C:/Libraries/boost
+ BOOST_ROOT: 'C:\Libraries\boost'
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+ CMAKE_PLATFORM: "Visual Studio 14 2015 Win64"
+ CMAKE_PREFIX_PATH: C:/Libraries/boost_1_60_0
+ BOOST_ROOT: 'C:\Libraries\boost_1_60_0'
+
+install:
+ - cinstall: python
+
+build_script:
+ - echo Running cmake...
+ - mkdir _build
+ - cd _build
+ - cmake
+ -G "%CMAKE_PLATFORM%"
+ -DCMAKE_INSTALL_PREFIX=..\_install
+ -DOCIO_USE_BOOST_PTR=ON
+ -DCMAKE_BUILD_TYPE=%CONFIGURATION%
+ ..
+ - cmake --build . --target install --config %CONFIGURATION%
+ - cmake --build . --target MainTests --config %CONFIGURATION%
+
+matrix:
+ fast_finish: true
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c805430
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+.DS_Store
+attic
+build*
+_build*
+_install*
+dist*
+mastercopy
+*.pyc
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..f30f03a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,64 @@
+# travis-ci.org build file
+# https://docs.travis-ci.com/user/languages/cpp
+
+matrix:
+ include:
+ - os: linux
+ language: cpp
+ compiler: clang
+ - os: linux
+ language: cpp
+ compiler: gcc
+ - os: osx
+ language: cpp
+ compiler: clang
+ - os: osx
+ language: cpp
+ compiler: gcc
+ - os: osx
+ language: cpp
+ compiler: clang
+ osx_image: xcode9.1
+
+env:
+ - OPTIONS="-DCMAKE_BUILD_TYPE=Release -DOCIO_BUILD_TESTS=yes -DOCIO_BUILD_DOCS=yes"
+
+# Install missing packages
+before_install:
+ # Linux ones
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ sudo apt-get update -qq;
+ sudo apt-get install -y -qq texlive-full;
+ fi
+ # OSX ones
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ brew update;
+ brew install glew;
+ brew upgrade cmake;
+ brew upgrade pyenv;
+ echo 'eval "$(pyenv init -)"' >> .bash_profile;
+ source .bash_profile;
+ export PYTHON_CONFIGURE_OPTS="--enable-framework";
+ pyenv install -v 2.7.15;
+ pyenv global 2.7.15;
+ export OPTIONS="$OPTIONS -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib";
+ export OPTIONS="$OPTIONS -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python2.7";
+ export OPTIONS="$OPTIONS -DPYTHON_EXECUTABLE=$(which python2)";
+ fi
+
+# Run the Build script
+script:
+ - mkdir _build
+ - cd _build
+ - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
+ - cmake --build . --target install
+ - ctest --output-on-failure .
+ - if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then cmake --build . --target pdf; fi
+
+deploy:
+ provider: pages
+ skip_cleanup: true
+ github_token: $GITHUB_TOKEN
+ on:
+ tags: true
+ local_dir: ./docs/build-html
diff --git a/buildspec.yml b/buildspec.yml
deleted file mode 100644
index 2e3b264..0000000
--- a/buildspec.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright Contributors to the OpenColorIO Project.
-#
-# AWS CodeBuild build specification
-# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
-
-version: 0.2
-
-# ---------------------------------------------------------------------------
-# CodeBuild project container
-# ---------------------------------------------------------------------------
-# DockerHub: https://hub.docker.com/u/aswf
-# Source: https://github.com/AcademySoftwareFoundation/aswf-docker
-# Image: aswf/ci-ocio:2020
-# OS: Linux CentOS 7
-# VFX Ref: CY2020
-# Compiler: GCC 6.3.1
-
-env:
- variables:
- CXX: g++
- CC: gcc
- exported-variables:
- - CXX
- - CC
-
-phases:
- pre_build:
- commands:
- # Checkout
- - git clone https://github.com/$GITHUB_REPOSITORY OpenColorIO
- - cd OpenColorIO
- - git checkout $GITHUB_SHA
- # Create build directories
- - mkdir _install _build
- - cd _build
- build:
- commands:
- # Configure
- - |
- cmake ../. \
- -DCMAKE_INSTALL_PREFIX=../_install \
- -DOCIO_USE_HEADLESS=ON \
- -DOCIO_USE_OPENEXR_HALF=ON \
- -DOCIO_BUILD_APPS=ON \
- -DOCIO_BUILD_DOCS=OFF \
- -DOCIO_BUILD_TESTS=ON \
- -DOCIO_BUILD_GPU_TESTS=ON \
- -DOCIO_BUILD_PYTHON=OFF \
- -DOCIO_INSTALL_EXT_PACKAGES=ALL \
- -DOCIO_WARNING_AS_ERROR=ON
- # Build
- - |
- cmake --build . \
- --target install \
- -- -j$(nproc)
- post_build:
- commands:
- # Test
- - ctest -V

View File

@ -1,2 +1,3 @@
0001-Fix_cstring_issue.patch
0002-fix-documentation-cmake-syntax.patch
0003-No-change-rebuild-for-openKylin.patch

3
debian/rules vendored
View File

@ -30,7 +30,8 @@ override_dh_auto_configure:
-DOCIO_BUILD_TESTS=OFF \
-DOCIO_INSTALL_EXT_PACKAGES=NONE \
-DOCIO_USE_SSE=OFF \
-Dpystring_INCLUDE_DIR:PATH="/usr/include"
-Dpystring_INCLUDE_DIR:PATH="/usr/include" \
-Dexpat_ROOT="/usr/lib/$(DEB_HOST_MULTIARCH)/"
override_dh_auto_install:
dh_auto_install