Merge bitcoin-core/secp256k1#1775: Add CMake build directory patterns to .gitignore
748c0fdd67Add CMake build directory patterns to `.gitignore` (Hennadii Stepanov)7eb86bdb01autotools: Rename `build-aux` to `autotools-aux` (Hennadii Stepanov) Pull request description: Whenever I work on changes that require comparison, such as benchmarking, I end up with two or more build directories that provide different binary variants simultaneously. Adding these build directories to `.gitignore` makes the workflow a bit easier. Additionally, a trivial refactoring is included to reduce the code. ACKs for top commit: real-or-random: utACK748c0fdd67furszy: ACK748c0fdd67Tree-SHA512: 948917dcdc2ec6d5a2227f35ef9208fdbc62c56047db1c60b39f6da632642847aefa18f136986f9f15f08e0b2385964afe9a311346b728536323c54b4f0e3f04
This commit is contained in:
21
.gitignore
vendored
21
.gitignore
vendored
@@ -45,26 +45,15 @@ coverage.*.html
|
|||||||
*.gcno
|
*.gcno
|
||||||
*.gcov
|
*.gcov
|
||||||
|
|
||||||
build-aux/ar-lib
|
/autotools-aux/
|
||||||
build-aux/config.guess
|
!/autotools-aux/m4/bitcoin_secp.m4
|
||||||
build-aux/config.sub
|
|
||||||
build-aux/depcomp
|
|
||||||
build-aux/install-sh
|
|
||||||
build-aux/ltmain.sh
|
|
||||||
build-aux/m4/libtool.m4
|
|
||||||
build-aux/m4/lt~obsolete.m4
|
|
||||||
build-aux/m4/ltoptions.m4
|
|
||||||
build-aux/m4/ltsugar.m4
|
|
||||||
build-aux/m4/ltversion.m4
|
|
||||||
build-aux/missing
|
|
||||||
build-aux/compile
|
|
||||||
build-aux/test-driver
|
|
||||||
libsecp256k1.pc
|
libsecp256k1.pc
|
||||||
|
|
||||||
### CMake
|
### CMake
|
||||||
/CMakeUserPresets.json
|
/CMakeUserPresets.json
|
||||||
# Default CMake build directory.
|
# CMake build directories.
|
||||||
/build
|
/*build*
|
||||||
|
|
||||||
### Python
|
### Python
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ACLOCAL_AMFLAGS = -I build-aux/m4
|
ACLOCAL_AMFLAGS = -I autotools-aux/m4
|
||||||
|
|
||||||
# AM_CFLAGS will be automatically prepended to CFLAGS by Automake when compiling some foo
|
# AM_CFLAGS will be automatically prepended to CFLAGS by Automake when compiling some foo
|
||||||
# which does not have an explicit foo_CFLAGS variable set.
|
# which does not have an explicit foo_CFLAGS variable set.
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ define(_LIB_VERSION_AGE, 0)
|
|||||||
|
|
||||||
AC_INIT([libsecp256k1],m4_join([.], _PKG_VERSION_MAJOR, _PKG_VERSION_MINOR, _PKG_VERSION_PATCH)m4_if(_PKG_VERSION_IS_RELEASE, [true], [], [-dev]),[https://github.com/bitcoin-core/secp256k1/issues],[libsecp256k1],[https://github.com/bitcoin-core/secp256k1])
|
AC_INIT([libsecp256k1],m4_join([.], _PKG_VERSION_MAJOR, _PKG_VERSION_MINOR, _PKG_VERSION_PATCH)m4_if(_PKG_VERSION_IS_RELEASE, [true], [], [-dev]),[https://github.com/bitcoin-core/secp256k1/issues],[libsecp256k1],[https://github.com/bitcoin-core/secp256k1])
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([autotools-aux])
|
||||||
AC_CONFIG_MACRO_DIR([build-aux/m4])
|
AC_CONFIG_MACRO_DIR([autotools-aux/m4])
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
# Require Automake 1.11.2 for AM_PROG_AR
|
# Require Automake 1.11.2 for AM_PROG_AR
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ set_target_properties(secp256k1_objs PROPERTIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
# This emulates Libtool to make sure Libtool and CMake agree on the ABI version,
|
# This emulates Libtool to make sure Libtool and CMake agree on the ABI version,
|
||||||
# see below "Calculate the version variables" in build-aux/ltmain.sh.
|
# see below "Calculate the version variables" in autotools-aux/ltmain.sh.
|
||||||
math(EXPR ${PROJECT_NAME}_soversion "${${PROJECT_NAME}_LIB_VERSION_CURRENT} - ${${PROJECT_NAME}_LIB_VERSION_AGE}")
|
math(EXPR ${PROJECT_NAME}_soversion "${${PROJECT_NAME}_LIB_VERSION_CURRENT} - ${${PROJECT_NAME}_LIB_VERSION_AGE}")
|
||||||
set_target_properties(secp256k1 PROPERTIES
|
set_target_properties(secp256k1 PROPERTIES
|
||||||
SOVERSION ${${PROJECT_NAME}_soversion}
|
SOVERSION ${${PROJECT_NAME}_soversion}
|
||||||
|
|||||||
Reference in New Issue
Block a user