forked from chjj/compton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two scripts for testing build.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 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,36 @@ | ||
#!/bin/bash | ||
|
||
# Test script for CMake build | ||
|
||
BASE_DIR=$(dirname "$0")/.. | ||
. "${BASE_DIR}/functions.sh" | ||
|
||
BUILD_DIR="build" | ||
|
||
cmake_prepare() { | ||
[ ! -e "CMakeLists.txt" ] && ln -s {_,}CMakeLists.txt | ||
} | ||
|
||
cmake_build() { | ||
einfo Building compton with cmake $@ | ||
|
||
[ -e "${BUILD_DIR}" ] && rm -r "${BUILD_DIR}" | ||
mkdir "${BUILD_DIR}" && cd "${BUILD_DIR}" || die | ||
cmake ${@} .. || die | ||
make VERBOSE=1 -B || die | ||
cd - | ||
|
||
einfo Build completed successfully | ||
} | ||
|
||
show_build_help_msg() { | ||
"${BUILD_DIR}/compton" -h | less | ||
} | ||
|
||
main() { | ||
cmake_prepare | ||
cmake_build "${@}" | ||
# show_build_help_msg | ||
} | ||
|
||
main "${@}" |
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,16 @@ | ||
#!/bin/bash | ||
|
||
# Test script for GNU make build | ||
|
||
BASE_DIR=$(dirname "$0")/.. | ||
. "${BASE_DIR}/functions.sh" | ||
|
||
OPTIONS=( NO_XINERAMA NO_LIBCONFIG NO_REGEX_PCRE NO_REGEX_PCRE_JIT | ||
NO_VSYNC_DRM NO_VSYNC_OPENGL NO_VSYNC_OPENGL_GLSL NO_VSYNC_OPENGL_FBO | ||
NO_VSYNC_OPENGL_VBO NO_DBUS NO_XSYNC NO_C2 ) | ||
|
||
for o in "${OPTIONS[@]}"; do | ||
einfo Building with $o | ||
make "${o}=1" -B "${@}" || die | ||
einfo Build completed. | ||
done |