Skip to content

Commit

Permalink
Generated build source.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Nov 18, 2014
1 parent 397c141 commit 2a8db6c
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 192 deletions.
48 changes: 27 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
language: cpp
###############################################################################
# Copyright (c) 2011-2014 libbitcoin developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################

language:
- cpp

compiler:
- gcc

compiler: gcc

before_install:
# Set package repository.
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test

# Update the system.
- sudo apt-get -qq update

# Get GCC 4.8 (for C++11 support)
- sudo apt-get -qq install g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50

install:
# Get GNU Multiprecision Arithmetic Library (v5.0.2 on Travis).
# - sudo apt-get -qq install libgmp-dev

# Get Boost (v1.46 on Travis, we require 1.49).
# - sudo apt-get -qq install libboost-dev

# Set package repository.
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test

# Update the system.
- sudo apt-get -qq update

# Install GCC 4.8 (for C++11 support).
- sudo apt-get -qq install g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50

script:
# Download and build all dependencies and libbitcoin.
- sudo ./install-libbitcoin.sh CXXFLAGS="-Os -s" --disable-shared --enable-static --build-gmp --build-boost

# Download and build libbitcoin and all dependencies.
- sudo ./install.sh CXXFLAGS="-Os -s" --disable-shared --enable-static --build-gmp --build-boost


30 changes: 6 additions & 24 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,11 @@ src_libbitcoin_la_SOURCES = \
src/wallet/stealth_address.cpp \
src/wallet/uri.cpp

# The rt_LIBS symbol may be empty, keep on shared line.
src_libbitcoin_la_LIBADD = \
-lboost_system \
-lboost_regex \
-lboost_filesystem \
-lpthread \
${boost_LIBS} \
${secp256k1_LIBS} \
${gmp_LIBS}

if USE_LIBRT
src_libbitcoin_la_LIBADD += \
${rt_LIBS}
endif
${gmp_LIBS} ${rt_LIBS}

#
# tests
Expand All @@ -202,11 +195,6 @@ test_libbitcoin_test_CPPFLAGS = \
-I${srcdir}/include \
-I${srcdir}/test \
${secp256k1_CFLAGS}

if SET_BOOST_TEST_DYN_LINK
test_libbitcoin_test_CPPFLAGS += \
-DBOOST_TEST_DYN_LINK
endif

test_libbitcoin_test_SOURCES = \
test/amount.cpp \
Expand All @@ -227,19 +215,13 @@ test_libbitcoin_test_SOURCES = \
test/stealth.cpp \
test/uri.cpp

# The rt_LIBS symbol may be empty, keep on shared line.
test_libbitcoin_test_LDADD = \
src/libbitcoin.la \
-lboost_system \
-lboost_regex \
-lboost_filesystem \
${boost_LIBS} \
-lboost_unit_test_framework \
-lpthread \
${secp256k1_LIBS} \
${gmp_LIBS}

if USE_LIBRT
test_libbitcoin_test_LDADD += \
${rt_LIBS}
endif
${gmp_LIBS} ${rt_LIBS}

endif
Loading

0 comments on commit 2a8db6c

Please sign in to comment.