@@ -22,14 +22,14 @@ fn main() {
2222 let mut base_config = cc:: Build :: new ( ) ;
2323 base_config
2424 . cpp ( true )
25- . include ( "depend /bitcoin/src" )
26- . include ( "depend /bitcoin/src/secp256k1/include" )
25+ . include ( "tmp /bitcoin/src" )
26+ . include ( "tmp /bitcoin/src/secp256k1/include" )
2727 . define ( "__STDC_FORMAT_MACROS" , None ) ;
2828
2929 // **Secp256k1**
3030 if !cfg ! ( feature = "external-secp" ) {
3131 base_config
32- . include ( "depend /bitcoin/src/secp256k1" )
32+ . include ( "tmp /bitcoin/src/secp256k1" )
3333 . flag_if_supported ( "-Wno-unused-function" ) // some ecmult stuff is defined but not used upstream
3434 . define ( "SECP256K1_BUILD" , "1" )
3535 // Bitcoin core defines libsecp to *not* use libgmp.
@@ -39,7 +39,7 @@ fn main() {
3939 // Technically libconsensus doesn't require the recovery feautre, but `pubkey.cpp` does.
4040 . define ( "ENABLE_MODULE_RECOVERY" , "1" )
4141 // The actual libsecp256k1 C code.
42- . file ( "depend /bitcoin/src/secp256k1/src/secp256k1.c" ) ;
42+ . file ( "tmp /bitcoin/src/secp256k1/src/secp256k1.c" ) ;
4343
4444 if is_big_endian {
4545 base_config. define ( "WORDS_BIGENDIAN" , "1" ) ;
@@ -68,19 +68,19 @@ fn main() {
6868 base_config. define ( "WIN32" , "1" ) ;
6969 }
7070 base_config
71- . file ( "depend /bitcoin/src/util/strencodings.cpp" )
72- . file ( "depend /bitcoin/src/uint256.cpp" )
73- . file ( "depend /bitcoin/src/pubkey.cpp" )
74- . file ( "depend /bitcoin/src/hash.cpp" )
75- . file ( "depend /bitcoin/src/primitives/transaction.cpp" )
76- . file ( "depend /bitcoin/src/crypto/ripemd160.cpp" )
77- . file ( "depend /bitcoin/src/crypto/sha1.cpp" )
78- . file ( "depend /bitcoin/src/crypto/sha256.cpp" )
79- . file ( "depend /bitcoin/src/crypto/sha512.cpp" )
80- . file ( "depend /bitcoin/src/crypto/hmac_sha512.cpp" )
81- . file ( "depend /bitcoin/src/script/bitcoinconsensus.cpp" )
82- . file ( "depend /bitcoin/src/script/interpreter.cpp" )
83- . file ( "depend /bitcoin/src/script/script.cpp" )
84- . file ( "depend /bitcoin/src/script/script_error.cpp" )
71+ . file ( "tmp /bitcoin/src/util/strencodings.cpp" )
72+ . file ( "tmp /bitcoin/src/uint256.cpp" )
73+ . file ( "tmp /bitcoin/src/pubkey.cpp" )
74+ . file ( "tmp /bitcoin/src/hash.cpp" )
75+ . file ( "tmp /bitcoin/src/primitives/transaction.cpp" )
76+ . file ( "tmp /bitcoin/src/crypto/ripemd160.cpp" )
77+ . file ( "tmp /bitcoin/src/crypto/sha1.cpp" )
78+ . file ( "tmp /bitcoin/src/crypto/sha256.cpp" )
79+ . file ( "tmp /bitcoin/src/crypto/sha512.cpp" )
80+ . file ( "tmp /bitcoin/src/crypto/hmac_sha512.cpp" )
81+ . file ( "tmp /bitcoin/src/script/bitcoinconsensus.cpp" )
82+ . file ( "tmp /bitcoin/src/script/interpreter.cpp" )
83+ . file ( "tmp /bitcoin/src/script/script.cpp" )
84+ . file ( "tmp /bitcoin/src/script/script_error.cpp" )
8585 . compile ( "libbitcoinconsensus.a" ) ;
8686}
0 commit comments