Created
October 24, 2018 10:04
-
-
Save nikhedonia/ab426217064d9ae0665d0209dfcba48f to your computer and use it in GitHub Desktop.
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
def merge_dicts(x, y): | |
z = x.copy() | |
z.update(y) | |
return z | |
cxx_library( | |
name = "bitcoin_crypto_sse41", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-msse4.1"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DENABLE_SSE41","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/crypto/sha256_sse41.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_crypto_avx2", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-mavx","-mavx2"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DENABLE_AVX2","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/crypto/sha256_avx2.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_crypto_shani", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-msse4","-msha"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DENABLE_SHANI","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/crypto/sha256_shani.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_zmq", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/zmq/*.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_consensus", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/secp256k1/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/primitives/*.cpp","src/script/bitcoinconsensus.cpp","src/script/interpreter.cpp","src/script/script.cpp","src/script/script_error.cpp","src/consensus/merkle.cpp","src/arith_uint256.cpp","src/hash.cpp","src/pubkey.cpp","src/uint256.cpp","src/utilstrencodings.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_crypto_base", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src", "**/*.c"), | |
("src/config", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/crypto/*.cpp"], | |
excludes = ["src/crypto/sha256_avx2.cpp","src/crypto/sha256_shani.cpp","src/crypto/sha256_sse41.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "univalue", | |
header_namespace= '', | |
compiler_flags = ["-fPIC"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-DPIC"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src/univalue", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/univalue/lib/*.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "secp256k1", | |
header_namespace= '', | |
compiler_flags = ["-fvisibility=hidden","-fPIC"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-DSECP256K1_BUILD","-DPIC"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
'src/ecmult_static_context.h': ':gen-src-secp256k1-src-ecmult_static_context-h', | |
'ecmult_static_context.h': ':gen-src-secp256k1-src-ecmult_static_context-h', | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src/secp256k1", "**/*.h"), | |
("src/secp256k1/src", "**/*.h"), | |
("src/secp256k1/include", "**/*.h") | |
]), { | |
'src/ecmult_static_context.h': ':gen-src-secp256k1-src-ecmult_static_context-h', | |
'ecmult_static_context.h': ':gen-src-secp256k1-src-ecmult_static_context-h', | |
}), | |
srcs = glob( | |
["src/secp256k1/src/secp256k1.c"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_common", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/secp256k1/include", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/policy/feerate.cpp","src/script/descriptor.cpp","src/script/ismine.cpp","src/script/sign.cpp","src/script/standard.cpp","src/base58.cpp","src/bech32.cpp","src/chainparams.cpp","src/coins.cpp","src/compressor.cpp","src/core_read.cpp","src/core_write.cpp","src/key.cpp","src/key_io.cpp","src/keystore.cpp","src/netaddress.cpp","src/netbase.cpp","src/protocol.cpp","src/scheduler.cpp","src/versionbitsinfo.cpp","src/warnings.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "leveldb", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DOS_LINUX","-DLEVELDB_ATOMIC_PRESENT","-D__STDC_LIMIT_MACROS","-DLEVELDB_PLATFORM_POSIX","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/leveldb", "**/*.h"), | |
("src/leveldb/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/leveldb/table/*.cc","src/leveldb/db/*.cc","src/leveldb/util/*.cc","src/leveldb/port/port_posix.cc"], | |
excludes = ["src/leveldb/table/filter_block_test.cc","src/leveldb/table/table_test.cc","src/leveldb/db/autocompact_test.cc","src/leveldb/db/corruption_test.cc","src/leveldb/db/db_bench.cc","src/leveldb/db/db_test.cc","src/leveldb/db/dbformat_test.cc","src/leveldb/db/fault_injection_test.cc","src/leveldb/db/filename_test.cc","src/leveldb/db/leveldbutil.cc","src/leveldb/db/log_test.cc","src/leveldb/db/recovery_test.cc","src/leveldb/db/skiplist_test.cc","src/leveldb/db/version_edit_test.cc","src/leveldb/db/version_set_test.cc","src/leveldb/db/write_batch_test.cc","src/leveldb/util/arena_test.cc","src/leveldb/util/bloom_test.cc","src/leveldb/util/cache_test.cc","src/leveldb/util/coding_test.cc","src/leveldb/util/crc32c_test.cc","src/leveldb/util/env_posix_test.cc","src/leveldb/util/env_test.cc","src/leveldb/util/env_win.cc","src/leveldb/util/hash_test.cc","src/leveldb/util/testharness.cc","src/leveldb/util/testutil.cc"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "leveldb_sse42", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-msse4.2"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DOS_LINUX","-DLEVELDB_ATOMIC_PRESENT","-D__STDC_LIMIT_MACROS","-DLEVELDB_PLATFORM_POSIX","-DLEVELDB_PLATFORM_POSIX_SSE","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/leveldb", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/leveldb/port/port_posix_sse.cc"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "memenv", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DOS_LINUX","-DLEVELDB_ATOMIC_PRESENT","-D__STDC_LIMIT_MACROS","-DLEVELDB_PLATFORM_POSIX","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/leveldb", "**/*.h"), | |
("src/leveldb/include", "**/*.h"), | |
("src/leveldb/helpers/memenv", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/leveldb/helpers/memenv/memenv.cc"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = [], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_util", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
'obj/build.h': ':gen-src-obj-build-h', | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
'obj/build.h': ':gen-src-obj-build-h', | |
}), | |
srcs = glob( | |
["src/support/*.cpp","src/compat/*.cpp","src/rpc/protocol.cpp","src/chainparamsbase.cpp","src/clientversion.cpp","src/fs.cpp","src/logging.cpp","src/random.cpp","src/sync.cpp","src/threadinterrupt.cpp","src/util.cpp","src/utilmoneystr.cpp","src/utilstrencodings.cpp","src/utiltime.cpp"], | |
excludes = ["src/compat/glibc_compat.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_cli", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/rpc/client.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoin_server", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/leveldb/include", "**/*.h"), | |
("src/leveldb/helpers/memenv", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/rpc/*.cpp","src/policy/*.cpp","src/index/*.cpp","src/interfaces/*.cpp","src/consensus/tx_verify.cpp","src/script/sigcache.cpp","src/addrdb.cpp","src/addrman.cpp","src/bloom.cpp","src/blockencodings.cpp","src/blockfilter.cpp","src/chain.cpp","src/checkpoints.cpp","src/httprpc.cpp","src/httpserver.cpp","src/init.cpp","src/dbwrapper.cpp","src/merkleblock.cpp","src/miner.cpp","src/net.cpp","src/net_processing.cpp","src/noui.cpp","src/outputtype.cpp","src/pow.cpp","src/rest.cpp","src/shutdown.cpp","src/timedata.cpp","src/torcontrol.cpp","src/txdb.cpp","src/txmempool.cpp","src/ui_interface.cpp","src/validation.cpp","src/validationinterface.cpp","src/versionbits.cpp","src/dummywallet.cpp"], | |
excludes = ["src/rpc/client.cpp","src/rpc/protocol.cpp","src/policy/feerate.cpp","src/interfaces/wallet.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
exported_linker_flags = ["-pthread"], | |
deps = [], | |
visibility = [] | |
) | |
cxx_library( | |
name = "bitcoinconsensus", | |
header_namespace= '', | |
compiler_flags = ["-fstack-protector-all","-fPIC"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBUILD_BITCOIN_INTERNAL","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-DPIC","-U_FORTIFY_SOURCE"], | |
exported_headers = merge_dicts(subdir_glob([ | |
]), { | |
}), | |
headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src", "**/*.c"), | |
("src/config", "**/*.h"), | |
("src/secp256k1/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/crypto/*.cpp","src/primitives/*.cpp","src/consensus/merkle.cpp","src/script/bitcoinconsensus.cpp","src/script/interpreter.cpp","src/script/script.cpp","src/script/script_error.cpp","src/arith_uint256.cpp","src/hash.cpp","src/pubkey.cpp","src/uint256.cpp","src/utilstrencodings.cpp"], | |
excludes = ["src/crypto/sha256_avx2.cpp","src/crypto/sha256_shani.cpp","src/crypto/sha256_sse41.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-Wl,libbitcoinconsensus.so.0"], | |
exported_linker_flags = ["-L/usr/lib/gcc/x86_64-linux-gnu/8","-L/usr/lib/x86_64-linux-gnu","-L/usr/lib","-L/lib/x86_64-linux-gnu","-L/lib","-lstdc++","-lm","-lgcc_s","-lc","-pthread"], | |
deps = [":secp256k1"], | |
visibility = [] | |
) | |
cxx_binary( | |
name = "exe-bitcoin-cli", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/bitcoin-cli.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lcrypto","-levent"], | |
deps = [":bitcoin_cli",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_util",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-bitcoin-tx", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/bitcoin-tx.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lcrypto"], | |
deps = [":bitcoin_common",":bitcoin_consensus",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_util",":secp256k1",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-bitcoind", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/bitcoind.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lcrypto","-levent_pthreads","-levent","-lzmq"], | |
deps = [":bitcoin_common",":bitcoin_consensus",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_server",":bitcoin_util",":bitcoin_zmq",":leveldb",":leveldb_sse42",":memenv",":secp256k1",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-test_bitcoin_fuzzy", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/test/test_bitcoin_fuzzy.cpp"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lcrypto"], | |
deps = [":bitcoin_common",":bitcoin_consensus",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_server",":bitcoin_util",":secp256k1",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-bench_bitcoin", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/leveldb/include", "**/*.h"), | |
("src/bench", "**/*.h") | |
]), { | |
'bench/data/block413567.raw.h': ':gen-src-bench-data-block413567-raw-h', | |
'data/block413567.raw.h': ':gen-src-bench-data-block413567-raw-h', | |
}), | |
srcs = glob( | |
["src/bench/*.cpp"], | |
excludes = ["src/bench/coin_selection.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lzmq","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lcrypto"], | |
deps = [":bitcoin_common",":bitcoin_consensus",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_server",":bitcoin_util",":bitcoin_zmq",":leveldb",":leveldb_sse42",":memenv",":secp256k1",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-test_bitcoin", compiler_flags = ["-fstack-protector-all","-fPIE","-I/usr/include","-I/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/include"], | |
preprocessor_flags = ["-DHAVE_CONFIG_H","-D_FORTIFY_SOURCE=2","-DBOOST_SP_USE_STD_ATOMIC","-DBOOST_AC_USE_STD_ATOMIC","-DBOOST_TEST_DYN_LINK","-DHAVE_BUILD_INFO","-D__STDC_FORMAT_MACROS","-U_FORTIFY_SOURCE"], headers = merge_dicts(subdir_glob([ | |
("src", "**/*.h"), | |
("src/config", "**/*.h"), | |
("src/leveldb/include", "**/*.h"), | |
("src/univalue/include", "**/*.h") | |
]), { | |
'test/data/base58_encode_decode.json.h': ':gen-src-test-data-base58_encode_decode-json-h', | |
'test/data/blockfilters.json.h': ':gen-src-test-data-blockfilters-json-h', | |
'test/data/key_io_invalid.json.h': ':gen-src-test-data-key_io_invalid-json-h', | |
'test/data/key_io_valid.json.h': ':gen-src-test-data-key_io_valid-json-h', | |
'test/data/script_tests.json.h': ':gen-src-test-data-script_tests-json-h', | |
'test/data/sighash.json.h': ':gen-src-test-data-sighash-json-h', | |
'test/data/tx_invalid.json.h': ':gen-src-test-data-tx_invalid-json-h', | |
'test/data/tx_valid.json.h': ':gen-src-test-data-tx_valid-json-h', | |
}), | |
srcs = glob( | |
["src/test/*.cpp"], | |
excludes = ["src/test/key_properties.cpp","src/test/test_bitcoin_fuzzy.cpp"], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = ["-Wl,-z,relro","-Wl,-z,now","-L/usr/lib/x86_64-linux-gnu","-L/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2o_2/lib","-lpthread","-lboost_system","-lboost_filesystem","-lboost_thread","-lboost_chrono","-lboost_unit_test_framework","-levent","-levent_pthreads","-lcrypto","-lzmq"], | |
deps = [":bitcoin_cli",":bitcoin_common",":bitcoin_consensus",":bitcoin_crypto_avx2",":bitcoin_crypto_base",":bitcoin_crypto_shani",":bitcoin_crypto_sse41",":bitcoin_server",":bitcoin_util",":leveldb",":leveldb_sse42",":memenv",":secp256k1",":univalue"], | |
) | |
cxx_binary( | |
name = "exe-gen_context", | |
preprocessor_flags = [], headers = merge_dicts(subdir_glob([ | |
("src/secp256k1", "**/*.h") | |
]), { | |
}), | |
srcs = glob( | |
["src/secp256k1/src/gen_context.c"], | |
excludes = [], | |
include_dotfiles=False | |
) + [ | |
], | |
linker_flags = [], | |
) | |
genrule( | |
name = 'gen-src-obj-build-h', | |
out = 'build.h', | |
srcs = glob( | |
["share/*.idx","share/*.pack","share/*.sh"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/obj && cd $TMP && cd src && ../share/genbuild.sh $TMP/src/obj/build.h $TMP && cd $TMP && cp src/obj/build.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-script_tests-json-h', | |
out = 'script_tests.json.h', | |
srcs = glob( | |
["src/test/data/script_tests.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char script_tests[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/script_tests.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/script_tests.json.h.new && mv -f test/data/script_tests.json.h.new test/data/script_tests.json.h && cd $TMP && cp src/test/data/script_tests.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-base58_encode_decode-json-h', | |
out = 'base58_encode_decode.json.h', | |
srcs = glob( | |
["src/test/data/base58_encode_decode.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char base58_encode_decode[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/base58_encode_decode.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/base58_encode_decode.json.h.new && mv -f test/data/base58_encode_decode.json.h.new test/data/base58_encode_decode.json.h && cd $TMP && cp src/test/data/base58_encode_decode.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-blockfilters-json-h', | |
out = 'blockfilters.json.h', | |
srcs = glob( | |
["src/test/data/blockfilters.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char blockfilters[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/blockfilters.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/blockfilters.json.h.new && mv -f test/data/blockfilters.json.h.new test/data/blockfilters.json.h && cd $TMP && cp src/test/data/blockfilters.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-key_io_valid-json-h', | |
out = 'key_io_valid.json.h', | |
srcs = glob( | |
["src/test/data/key_io_valid.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char key_io_valid[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/key_io_valid.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/key_io_valid.json.h.new && mv -f test/data/key_io_valid.json.h.new test/data/key_io_valid.json.h && cd $TMP && cp src/test/data/key_io_valid.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-key_io_invalid-json-h', | |
out = 'key_io_invalid.json.h', | |
srcs = glob( | |
["src/test/data/key_io_invalid.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char key_io_invalid[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/key_io_invalid.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/key_io_invalid.json.h.new && mv -f test/data/key_io_invalid.json.h.new test/data/key_io_invalid.json.h && cd $TMP && cp src/test/data/key_io_invalid.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-sighash-json-h', | |
out = 'sighash.json.h', | |
srcs = glob( | |
["src/test/data/sighash.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char sighash[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/sighash.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/sighash.json.h.new && mv -f test/data/sighash.json.h.new test/data/sighash.json.h && cd $TMP && cp src/test/data/sighash.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-tx_invalid-json-h', | |
out = 'tx_invalid.json.h', | |
srcs = glob( | |
["src/test/data/tx_invalid.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char tx_invalid[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/tx_invalid.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/tx_invalid.json.h.new && mv -f test/data/tx_invalid.json.h.new test/data/tx_invalid.json.h && cd $TMP && cp src/test/data/tx_invalid.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-test-data-tx_valid-json-h', | |
out = 'tx_valid.json.h', | |
srcs = glob( | |
["src/test/data/tx_valid.json"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/test/data && cd $TMP && cd src && { echo \'namespace json_tests{\' && echo \'static unsigned const char tx_valid[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' test/data/tx_valid.json | /bin/sed -e \'s/0x ,//g\' && echo \'};};\' } > test/data/tx_valid.json.h.new && mv -f test/data/tx_valid.json.h.new test/data/tx_valid.json.h && cd $TMP && cp src/test/data/tx_valid.json.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-secp256k1-src-ecmult_static_context-h', | |
out = 'ecmult_static_context.h', | |
srcs = glob( | |
[], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/secp256k1/src && cd $TMP && cd src/secp256k1 && $(exe :exe-gen_context) && cd $TMP && cp src/secp256k1/src/ecmult_static_context.h $OUT', | |
) | |
genrule( | |
name = 'gen-src-bench-data-block413567-raw-h', | |
out = 'block413567.raw.h', | |
srcs = glob( | |
["src/bench/data/*.raw"], | |
excludes = [], | |
include_dotfiles=False | |
), | |
cmd = 'cp -r $SRCDIR/. $TMP && cd $TMP && mkdir -p $TMP/src/bench/data && cd $TMP && cd src && { echo \'static unsigned const char block413567[] = {\' && /home/linuxbrew/.linuxbrew/bin/hexdump -v -e \'8/1 "0x%02x, "\' -e \'"\n"\' bench/data/block413567.raw | /bin/sed -e \'s/0x ,//g\' && echo \'};\' } > bench/data/block413567.raw.h.new && mv -f bench/data/block413567.raw.h.new bench/data/block413567.raw.h && cd $TMP && cp src/bench/data/block413567.raw.h $OUT', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment