-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
171 additions
and
41 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Compile and test C++ debug library | ||
meson compile -C build-debug && meson test -C build-debug | ||
|
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,3 @@ | ||
# Compile, test and install C++ library | ||
meson compile -C build-release && meson test -C build-release && meson install -C build-release | ||
|
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 +1,2 @@ | ||
# Compile and tell debug libraries | ||
./build-cc-debug.sh && ./build-py-debug.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
meson compile -C python/build-debug && meson test -C python/build-debug | ||
# Compile python debug libraries | ||
meson compile -C python/build-debug | ||
|
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,5 @@ | ||
# Compile, test and install python release libraries | ||
# Unfortunately, the library must be installed before any python tests are run | ||
# (otherwise the import will fail) | ||
meson compile -C python/build-release && meson install -C python/build-release && meson test -C python/build-release | ||
|
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 @@ | ||
meson compile -C build-debug --clean |
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 @@ | ||
# Call meson to clean installed C++ library files | ||
meson compile -C build-release --clean |
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 @@ | ||
# Call meson to clean installed Python library files | ||
meson compile -C python/build-release --clean |
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 @@ | ||
# Delete the C++ build directory | ||
rm -rf build-release |
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 @@ | ||
# Delete the Python library build directories | ||
rm -rf python/build-release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Delete all build directories | ||
./clean-cc.sh && ./clean-py.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,9 +1,4 @@ | ||
# Configure package to install to a local conda folder | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$CONDA_PREFIX/.local/lib64/pkgconfig | ||
prefix="--prefix=$CONDA_PREFIX/.local" | ||
meson setup $prefix --buildtype release build-release | ||
./build-cc-release.sh | ||
cd python | ||
meson setup $prefix --buildtype release build-release | ||
cd .. | ||
./build-py-release.sh | ||
./setup-release.sh "--prefix=$CONDA_PREFIX/.local" | ||
|
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,8 @@ | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$CONDA_PREFIX/.local/lib64/pkgconfig | ||
meson setup --prefix=$PWD/debug --buildtype debug build-debug | ||
# Configure package and build debug libraries | ||
meson --prefix=$PWD/debug --buildtype debug build-debug | ||
./build-cc-debug.sh | ||
cd python | ||
meson setup --prefix=$PWD/debug --buildtype debug build-debug | ||
meson --prefix=$PWD/debug --buildtype debug build-debug | ||
cd .. | ||
./build-py-debug.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Configure package and build release libraries | ||
meson setup "$@" --buildtype release build-release | ||
./build-cc-release.sh | ||
cd python | ||
meson setup "$@" --buildtype release build-release | ||
cd .. | ||
./build-py-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# EupsPkg config file. Sourced by 'eupspkg' | ||
|
||
build_cc() | ||
{ | ||
./build-cc-release.sh | ||
} | ||
|
||
build_py() | ||
{ | ||
./build-py-release.sh | ||
} | ||
|
||
build() | ||
{ | ||
(build_cc && build_py) | ||
} | ||
|
||
config_cc() | ||
{ | ||
([ -d "$GAUSS2DFIT_DIR" ] && ./clean-cc.sh && meson setup --prefix="$GAUSS2DFIT_DIR/build-release" \ | ||
--buildtype release build-release) | ||
} | ||
|
||
config_py() | ||
{ | ||
([ -d "$GAUSS2DFIT_DIR" ] && ./clean-py.sh && build_cc \ | ||
&& cd python && meson setup --prefix="$GAUSS2DFIT_DIR/python/build-release" --buildtype release build-release) | ||
} | ||
|
||
config() | ||
{ | ||
config_cc && build_cc && config_py | ||
} |
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,7 @@ | ||
setupRequired(gauss2d) | ||
setupRequired(parameters) | ||
|
||
envPrepend(LD_LIBRARY_PATH, ${PRODUCT_DIR}/build-release/lib64) | ||
envPrepend(DYLD_LIBRARY_PATH, ${PRODUCT_DIR}/build-release/lib64) | ||
|
||
envPrepend(PYTHONPATH, ${PRODUCT_DIR}/python/build-release/lib) |