https://github.com/mono/linux-packaging-libgdiplus
Packaging metadata for mono-project.com packages
https://github.com/mono/linux-packaging-libgdiplus
Last synced: about 1 year ago
JSON representation
Packaging metadata for mono-project.com packages
- Host: GitHub
- URL: https://github.com/mono/linux-packaging-libgdiplus
- Owner: mono
- License: mit
- Archived: true
- Created: 2014-09-10T08:35:53.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2021-03-01T14:02:22.000Z (over 5 years ago)
- Last Synced: 2025-03-06T18:24:32.433Z (over 1 year ago)
- Language: C
- Size: 1.71 MB
- Stars: 1
- Watchers: 23
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
## libgdiplus: An Open Source implementation of the GDI+ API.
This is part of the [Mono project](http://www.mono-project.com/).
Build status:
| | |
|----|---|
| Travis (Linux/OSX) | [](https://travis-ci.org/mono/libgdiplus)|
| Jenkins (Linux) | [](https://jenkins.mono-project.com/job/test-libgdiplus-mainline) |
| Jenkins (Windows) | [](https://jenkins.mono-project.com/job/test-libgdiplus-mainline-windows) |
### Requirements:
This requires the libraries used by the Cairo vector graphics library to build (freetype2, fontconfig, Xft2 and libpng).
On **OSX** you can use [Homebrew](https://brew.sh/) to install the dependencies:
brew install glib cairo libexif libjpeg giflib libtiff autoconf libtool automake pango pkg-config
brew link gettext --force
On **Debian-based Linux distributions** you can use `apt-get` to install the dependencies:
sudo apt-get install libgif-dev autoconf libtool automake build-essential gettext libglib2.0-dev libcairo2-dev libtiff-dev libexif-dev
On **Windows** you can use [Vcpkg](https://github.com/Microsoft/vcpkg) to install the dependencies. Run the following commands from the root of the repository from an admin command prompt:
bootstrap-vcpkg.bat
vcpkg.exe integrate install
vcpkg.exe install giflib libjpeg-turbo libpng cairo glib tiff libexif glib pango --triplet x86-windows
vcpkg.exe install giflib libjpeg-turbo libpng cairo glib tiff libexif glib pango --triplet x64-windows
### Build instructions
To build on **OSX** without X11:
./autogen.sh --without-x11 --prefix=YOUR_PREFIX
make
To build on **OSX with X11** (e.g. from XQuartz):
PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig ./autogen.sh --prefix=YOUR_PREFIX
make
To build on **Linux**:
./autogen.sh --prefix=YOUR_PREFIX
make
To build on **Windows**, open `libgdiplus.sln`.
### Running the unit tests
Run the following command from the root of the repository:
make check
To run the tests with Clang sanitizers, run the following command from the root of the repository:
./autogen.sh --enable-asan
make check
### Code coverage
Code coverage stats are generated with `lcov`. You can use [Homebrew](https://brew.sh/) on **OSX** to install the dependencies:
brew install lcov
To run the tests with code coverage, run the following commands from the root of the repository:
./autogen.sh --enable-coverage
make check
lcov --capture --directory src --output-file coverage.info
genhtml coverage.info --output-directory coverage
To view the coverage report, navigate to the `coverage` directory in the root of the repository and open `index.html`.
### Installing libgdiplus
Run the following command from the root of the repository:
make install
### Optional build options
--with-pango
This builds libgdiplus using Pango to render (measure and draw)
all of it's text. This requires Pango version 1.38 (or later).