-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from smoked-herring/feature/vcpkg
Feature/vcpkg [closes #39]
- Loading branch information
Showing
24 changed files
with
623 additions
and
469 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
## Building SAIL | ||
|
||
Consider [EXAMPLES](EXAMPLES.md) after building and installing. | ||
|
||
### CMake options overview | ||
|
||
- `SAIL_BUILD_EXAMPLES=ON|OFF` - Build examples. Default: `ON` | ||
- `SAIL_BUILD_TESTS=ON|OFF` - Build tests. Default: `ON` | ||
- `SAIL_COLORED_OUTPUT=ON|OFF` - Enable colored console output on Windows >= 10 and Unix platforms. Default: `ON` | ||
- `SAIL_DEV=ON|OFF` - Enable developer mode with pedantic warnings and possible `ASAN` enabled for examples. Default: `OFF` | ||
- `SAIL_EXCEPT_CODECS="a;b;c"` - Enable all codecs except the codecs specified in this ';'-separated list. | ||
Codecs with missing dependencies will be disabled regardless this setting. Default: empty list | ||
- `SAIL_ONLY_CODECS="a;b;c"` - Enable only the codecs specified in this ';'-separated list. | ||
Codecs with missing dependencies will be disabled regardless this setting. Default: empty list | ||
- `SAIL_READ_OUTPUT_BPP32_BGRA=ON|OFF` - Make the read operations output BPP32-BGRA pixels instead of BPP32-RGBA. Default: `OFF` | ||
- `SAIL_VCPKG=ON|OFF` - Enable VCPKG dependency manager instead of pkg-config on Windows. See the option documentation for more. Default: `OFF` | ||
|
||
### Windows (VCPKG) | ||
|
||
SAIL is available in VCPKG: | ||
|
||
``` | ||
vcpkg install sail | ||
``` | ||
|
||
### Windows (standalone bundle) | ||
|
||
#### Tested environments | ||
|
||
- Windows 7 x64 | ||
|
||
#### Build requirements | ||
|
||
- git | ||
- cmake 3.10 or later | ||
- MSVC 2019 or later | ||
|
||
#### Build steps | ||
|
||
Open `Git Bash` (installed along with `git`) and execute the following commands: | ||
|
||
``` | ||
git clone --recursive https://github.com/smoked-herring/sail.git | ||
cd sail | ||
# Compile third-party dependencies | ||
cd extra | ||
./build | ||
cd .. | ||
# Compile SAIL | ||
mkdir build | ||
cd build | ||
cmake -A x64 -DCMAKE_INSTALL_PREFIX="C:\SAIL" .. | ||
cmake --build . --config Release | ||
# Install | ||
cmake --build . --config Release --target install | ||
``` | ||
|
||
### macOS | ||
|
||
#### Tested environments | ||
|
||
- macOS 10.14 Mojave | ||
- macOS 10.15 Catalina | ||
|
||
#### Installation steps | ||
|
||
``` | ||
brew install smoked-herring/sail/sail | ||
``` | ||
|
||
Or | ||
|
||
``` | ||
brew upgrade sail | ||
``` | ||
|
||
### Linux | ||
|
||
#### Tested environments | ||
|
||
- LUbuntu 18.04 64-bit | ||
|
||
#### Build requirements | ||
|
||
- git | ||
- cmake 3.6 or later | ||
- pkg-config | ||
- GCC and G++ 7.5 or later | ||
- standard C/C++ development files installed (usually installed by metapackages like `build-essential`) | ||
- codec-specific development libraries installed. You can grab the list from `debian/control` | ||
|
||
#### Build steps | ||
|
||
``` | ||
git clone --recursive https://github.com/smoked-herring/sail.git | ||
cd sail | ||
# Install the required dependencies grabbed from debian/control | ||
sudo apt install ... | ||
# Compile SAIL | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
# Install | ||
... distro-specific installation | ||
``` | ||
|
||
Debian rules are provided as well. | ||
|
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
Oops, something went wrong.