-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge v1.6.0 updates into libmypaint-v1
- Loading branch information
Showing
169 changed files
with
85,226 additions
and
8,846 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ INTROSPECTION_SCANNER_ARGS = \ | |
--warn-all \ | ||
--pkg="glib-2.0" \ | ||
--namespace="MyPaint" \ | ||
--nsversion="$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION)" \ | ||
--nsversion="$(LIBMYPAINT_API_PLATFORM_VERSION)" \ | ||
--identifier-prefix="MyPaint" \ | ||
--symbol-prefix="mypaint_" \ | ||
--add-include-path="$(srcdir)" \ | ||
|
@@ -31,18 +31,21 @@ MyPaint_introspectable_headers = \ | |
mypaint-rectangle.h \ | ||
mypaint-surface.h \ | ||
mypaint-tiled-surface.h \ | ||
fastapprox/fastpow.h \ | ||
fastapprox/sse.h \ | ||
fastapprox/fastexp.h \ | ||
fastapprox/cast.h \ | ||
fastapprox/fastlog.h \ | ||
$(libmypaint_glib) | ||
|
||
if HAVE_INTROSPECTION | ||
|
||
introspection_sources = \ | ||
$(MyPaint_introspectable_headers) \ | ||
brushmodes.c \ | ||
libmypaint.c \ | ||
mypaint-brush-settings.c \ | ||
mypaint-rectangle.c \ | ||
operationqueue.c \ | ||
utils.c \ | ||
fifo.c \ | ||
mypaint-mapping.c \ | ||
mypaint.c \ | ||
|
@@ -54,12 +57,13 @@ introspection_sources = \ | |
mypaint-tiled-surface.c \ | ||
tilemap.c | ||
|
||
MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@[email protected]: libmypaint.la Makefile | ||
MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 GLib-2.0 | ||
MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) | ||
MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_LIBS = libmypaint.la | ||
MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_FILES = $(introspection_sources) | ||
INTROSPECTION_GIRS += MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@[email protected] | ||
# CAUTION: some of these need to use the underscored API version string. | ||
MyPaint-@[email protected]: libmypaint.la Makefile | ||
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_INCLUDES = GObject-2.0 GLib-2.0 | ||
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) | ||
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_LIBS = libmypaint.la | ||
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_FILES = $(introspection_sources) | ||
INTROSPECTION_GIRS += MyPaint-@[email protected] | ||
|
||
girdir = $(datadir)/gir-1.0 | ||
gir_DATA = $(INTROSPECTION_GIRS) | ||
|
@@ -77,9 +81,9 @@ pkgconfigdir = $(libdir)/pkgconfig | |
|
||
pkgconfig_DATA = libmypaint.pc | ||
|
||
## libmypaint ## | ||
## libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@ ## | ||
|
||
AM_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS) | ||
AM_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS) $(OPENMP_CFLAGS) | ||
|
||
LIBS = $(JSON_LIBS) $(GLIB_LIBS) @LIBS@ | ||
|
||
|
@@ -90,12 +94,15 @@ libmypaint_la_LDFLAGS = \ | |
-version-info @LIBMYPAINT_ABI_VERSION_INFO@ \ | ||
-no-undefined | ||
|
||
|
||
libmypaint_publicdir = $(includedir)/libmypaint | ||
|
||
nobase_libmypaint_public_HEADERS = \ | ||
mypaint-config.h \ | ||
mypaint-glib-compat.h \ | ||
mypaint-mapping.h \ | ||
mypaint-matrix.h \ | ||
mypaint-symmetry.h \ | ||
$(MyPaint_introspectable_headers) | ||
|
||
LIBMYPAINT_SOURCES = \ | ||
|
@@ -109,17 +116,18 @@ LIBMYPAINT_SOURCES = \ | |
mypaint-brush.c \ | ||
mypaint-brush-settings.c \ | ||
mypaint-fixed-tiled-surface.c \ | ||
mypaint-matrix.c \ | ||
mypaint-symmetry.c \ | ||
mypaint-rectangle.c \ | ||
mypaint-surface.c \ | ||
mypaint-tiled-surface.c \ | ||
operationqueue.c \ | ||
rng-double.c \ | ||
tilemap.c \ | ||
utils.c | ||
tilemap.c | ||
|
||
libmypaint_la_SOURCES = $(libmypaint_public_HEADERS) $(LIBMYPAINT_SOURCES) | ||
|
||
DISTCLEANFILES = MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir.files | ||
DISTCLEANFILES = MyPaint-@LIBMYPAINT_API_PLATFORM_VERSION@.gir.files | ||
|
||
EXTRA_DIST = \ | ||
brushsettings.json \ | ||
|
@@ -133,12 +141,10 @@ EXTRA_DIST = \ | |
fifo.h \ | ||
generate.py \ | ||
helpers.h \ | ||
libmypaint.c \ | ||
operationqueue.h \ | ||
rng-double.h \ | ||
tiled-surface-private.h \ | ||
tilemap.h \ | ||
utils.h \ | ||
glib/mypaint-brush.c | ||
|
||
if HAVE_I18N | ||
|
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,43 @@ | ||
# API and ABI versioning policy | ||
|
||
libMyPaint cannot afford to be sloppy about its version numbers because | ||
other projects depend on it. | ||
|
||
API versions on `master` increment ahead of the upcoming release | ||
as and when features and changes are added. ABI versions are always | ||
updated immediately before each release, and _only_ then. | ||
|
||
1. The `master` branch contains the _future release_'s API version | ||
number. This version number is updated as and when new features and | ||
API changes are committed to the master branch. Do this by updating | ||
[configure.ac][]'s `libmypaint_api_*` macros as part of your commit. | ||
The reference point for these updates is the current stable release's | ||
version number. | ||
|
||
* Rules for the API version number: libmypaint uses | ||
[Semantic Versioning][]. | ||
|
||
* Note that the major and minor components of the API version number | ||
form part of the _soname_ for binary library files used at runtime, | ||
but they're not part of the `libmypaint.so` symlink used by your | ||
compiler when it tries to find a dynamic library to link against. | ||
|
||
2. We use prerelease suffixes at the end of the API version number | ||
during active development to help you identify what you are building | ||
against. The API version number of a formal release normally does not | ||
contain any prerelease sufffix. | ||
|
||
3. For ABI versioning, libmypaint does exactly what the GNU docs say. We | ||
will always update some part of the ABI version number immediately | ||
before each public release. This is done by tweaking | ||
[configure.ac][]'s `libmypaint_abi_*` macros. ABI versions are _only_ | ||
bumped immediately before a release, and maintain their own (somewhat | ||
weird) version sequence that's independent of the API version number. | ||
|
||
* Rules for the ABI version number: refer to | ||
“[Updating library version information][]” | ||
in the GNU libtool manual. | ||
|
||
[configure.ac]: ./configure.ac | ||
[Semantic Versioning]: http://semver.org/ | ||
[Updating library version information]: https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit early if any command fails | ||
set -e | ||
|
||
PKG_PREFIX="mingw-w64-$MSYS2_ARCH" | ||
|
||
# Install dependencies | ||
echo "Prefix: $PKG_PREF" | ||
pacman --noconfirm -S --needed \ | ||
base-devel \ | ||
${PKG_PREFIX}-json-c \ | ||
${PKG_PREFIX}-glib2 \ | ||
${PKG_PREFIX}-gobject-introspection | ||
|
||
|
||
# Add m4 directories to the ACLOCAL_PATH | ||
# Remove this if/when the underlying reason for their omission is found | ||
for p in $(pacman --noconfirm -Ql ${PKG_PREFIX}-glib2 | # List files | ||
grep "\.m4" | # We only care about the macro files | ||
xargs readlink -e | # Make canonical, just in case | ||
xargs dirname | # Strip file names from paths | ||
sort --unique # Add each dir only once | ||
) | ||
do | ||
echo "Adding additional m4 path: $p" | ||
ACLOCAL_PATH=$p:$ACLOCAL_PATH | ||
done | ||
|
||
export ACLOCAL_PATH | ||
export PWD="$APPVEYOR_BULD_FOLDER" | ||
|
||
./autogen.sh | ||
./configure | ||
make distcheck |
Oops, something went wrong.