forked from synfig/synfig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'synfig:master' into master
- Loading branch information
Showing
161 changed files
with
5,258 additions
and
15,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Synfig CI (Self-Hosted) | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build-osx: | ||
runs-on: osx-10.9 | ||
continue-on-error: false | ||
name: "Synfig Studio (OSX package)" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: "Synfig Studio (OSX package)" | ||
run: | | ||
../../../morevna-builds.osx/build-synfig.sh https://github.com/$GITHUB_REPOSITORY $GITHUB_REF | ||
build-source-tarballs: | ||
runs-on: Linux | ||
continue-on-error: false | ||
name: "Synfig Studio (source tarballs)" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Synfig Studio (source tarballs)" | ||
run: | | ||
./autobuild/synfigstudio-release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
set VCPKG_DEFAULT_TRIPLET=x64-windows | ||
.\vcpkg.exe install fftw3 freetype gettext glibmm gtkmm libjpeg-turbo libpng libxmlpp libsigcpp pango sdl2-mixer zlib | ||
.\vcpkg.exe install fftw3 freetype gettext glibmm gtkmm libjpeg-turbo libpng libxmlpp libsigcpp pango zlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,36 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# = Usage: = | ||
# ./2-build-cmake.sh [OPTIONS] | ||
# | ||
# OPTIONS | ||
# -d = Debug build (standard) | ||
# -r = Release build | ||
# -n = Don't write the run-portable.sh to the out dir | ||
# -j NUMBER = Set parallel make jobs (1 <= NUMBER <= 999) (standard is 1) | ||
# -i = Enable incremental build (disables the clean_build_dir, gen_dir_structure and the build_images steps). Before using this option, you will have to build Synfig Studio on time without this option on the selected build mode (or use the --rerender option) | ||
# --rerender = Rerender the images (even if incremental build is activated) | ||
# -p = Only print out the current active build settings and exit | ||
# --data-prefix = The installed Synfig Studio looks for it's data (icons, sounds, etc) in [DATA_PREFIX]/share/. This option sets a custom DATA_PREFIX. (Standard is the out directory) | ||
# | ||
# = Examples = | ||
# Make a debug build | ||
# ./build-cmake -d | ||
# | ||
# Make a release build | ||
# ./build-cmake -r | ||
# | ||
# Make a release build with two parallel make jobs | ||
# ./build-cmake -r -j 2 | ||
|
||
#Define dir paths | ||
pwd_dir="$PWD" | ||
absolute_script_path="$(readlink -f "$0")" | ||
absolute_base_dir="$(dirname "$absolute_script_path")" | ||
|
||
cd ${absolute_base_dir} | ||
|
||
# Include build folder names and build functions | ||
source ./autobuild/build-cmake-common.sh | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Failed to include: ./autobuild/build-cmake-common.sh" | ||
cd "$pwd_dir" | ||
exit | ||
fi | ||
|
||
# Parse build options | ||
parse_build_arguments "$@" | ||
set -e | ||
|
||
WORKDIR=$(dirname "$0") | ||
cd "${WORKDIR}" | ||
WORKDIR=$(pwd) | ||
|
||
BUILDDIR=cmake-build | ||
|
||
# Print build settings | ||
print_build_settings | ||
if [[ "$(uname -s)" =~ ^MSYS_NT.* ]] || [[ "$(uname -s)" =~ Msys$ ]] | ||
then | ||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/mlt-7.28.0/lib/pkgconfig" | ||
fi | ||
|
||
mkdir -p "${BUILDDIR}" && cd "${BUILDDIR}" | ||
|
||
# Exec build steps | ||
clean_build_dir | ||
gen_dir_structure | ||
build_etl | ||
build_synfig_core | ||
build_synfig_studio | ||
write_portable_run_code | ||
mode="Release" | ||
if [[ -n $1 ]] | ||
then | ||
mode=$1 | ||
fi | ||
|
||
# Print success, restore the current directory and exit | ||
echo "Build successful to: ${absolute_base_dir}/${cmake_build_dir}/${out_dir}" | ||
cd "$pwd_dir" | ||
cmake -GNinja -DENABLE_TESTS=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_BUILD_TYPE="${mode}" .. | ||
cmake --build . | ||
cmake --install . >/dev/null | ||
ctest --output-on-failure | ||
|
||
echo | ||
echo | ||
echo "Done. Please check your Synfig installation in" | ||
echo " ${WORKDIR}/${BUILDDIR}/output/$mode/" | ||
echo | ||
echo "You can start Synfig by executing" | ||
echo " ${WORKDIR}/${BUILDDIR}/output/$mode/bin/synfigstudio" | ||
echo |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.