-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Meson to build and install (#133)
Copy fract4dc instead of linking else pylint fails on GitHub.
- Loading branch information
Showing
19 changed files
with
263 additions
and
297 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
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,2 @@ | ||
APP_DATADIR = "@app_datadir@" | ||
VERSION = "@version@" |
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,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
rm -rf build | ||
rm fract4d/*.so | ||
./setup.py build | ||
rm -rf _build | ||
meson setup --prefix ~/.local/ _build | ||
meson compile -C _build |
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,8 +1,7 @@ | ||
#!/bin/bash | ||
|
||
docker-compose up -d | ||
docker-compose exec server bash -c "rm -rf build && \ | ||
rm fract4d/*.so && \ | ||
docker-compose exec server bash -c "rm -rf _build && \ | ||
rm -rf .pytest_cache && \ | ||
rm -rf .tox" | ||
docker-compose down |
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,7 +1,8 @@ | ||
#!/bin/bash | ||
|
||
docker-compose up -d --build | ||
docker-compose exec server bash -c "rm -rf build" | ||
docker-compose exec server bash -c "python3 setup.py build && \ | ||
docker-compose exec server bash -c "rm -rf _build" | ||
docker-compose exec server bash -c "meson setup --prefix ~/.local/ _build && \ | ||
meson compile -C _build && \ | ||
./bin/pylint.sh" | ||
docker-compose down |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
jpeg = dependency('libjpeg') | ||
png = dependency('libpng') | ||
|
||
fract4dc = py.extension_module('fract4dc', | ||
'fract4dmodule.cpp', | ||
'fract_stdlib.cpp', | ||
|
||
'fract4dc/colormaps.cpp', | ||
'fract4dc/loaders.cpp', | ||
'fract4dc/sites.cpp', | ||
'fract4dc/images.cpp', | ||
'fract4dc/calcs.cpp', | ||
'fract4dc/workers.cpp', | ||
'fract4dc/functions.cpp', | ||
'fract4dc/arenas.cpp', | ||
'fract4dc/utils.cpp', | ||
'fract4dc/calcargs.cpp', | ||
'fract4dc/pysite.cpp', | ||
|
||
'fract4dc/controllers.cpp', | ||
|
||
'model/calcfunc.cpp', | ||
'model/fractfunc.cpp', | ||
'model/site.cpp', | ||
'model/image.cpp', | ||
'model/imagewriter.cpp', | ||
'model/imagereader.cpp', | ||
'model/colormap.cpp', | ||
'model/worker.cpp', | ||
'model/STFractWorker.cpp', | ||
'model/MTFractWorker.cpp', | ||
'model/pointfunc.cpp', | ||
'model/stats.cpp', | ||
'model/colorutils.cpp', | ||
'model/imageutils.cpp', | ||
|
||
dependencies: [jpeg, png, py_dep], | ||
include_directories: ['fract4dc', 'model'], | ||
cpp_args: ['-DTHREADS=1', '-DPNG_ENABLED=1', '-DJPG_ENABLED=1'], | ||
gnu_symbol_visibility: 'default', | ||
install: true, | ||
subdir: 'fract4d', | ||
) | ||
|
||
install_headers( | ||
'fract_stdlib.h', | ||
'pf.h', | ||
install_dir: py.get_install_dir() / 'fract4d/c', | ||
) | ||
|
||
install_headers( | ||
'model/colorutils.h', | ||
'model/imageutils.h', | ||
install_dir: py.get_install_dir() / 'fract4d/c/model', | ||
) |
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
Oops, something went wrong.