-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from cppalliance/md5_2
Add basic MD5 and project structure
- Loading branch information
Showing
35 changed files
with
5,228 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,25 @@ | ||
@REM Copyright 2022 Peter Dimov | ||
@REM Distributed under the Boost Software License, Version 1.0. | ||
@REM https://www.boost.org/LICENSE_1_0.txt | ||
|
||
@ECHO ON | ||
|
||
set LIBRARY=%1 | ||
set DRONE_BUILD_DIR=%CD% | ||
|
||
echo $env:DRONE_STAGE_MACHINE | ||
|
||
set BOOST_BRANCH=develop | ||
if "%DRONE_BRANCH%" == "master" set BOOST_BRANCH=master | ||
cd .. | ||
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root | ||
cd boost-root | ||
git submodule update --init tools/boostdep | ||
xcopy /s /e /q %DRONE_BUILD_DIR% libs\%LIBRARY%\ | ||
python tools/boostdep/depinst/depinst.py -I example %LIBRARY% | ||
cmd /c bootstrap | ||
b2 -d0 headers | ||
|
||
if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% | ||
if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD% | ||
b2 -j3 libs/%LIBRARY%/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release embed-manifest-via=linker |
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,32 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2022 Peter Dimov | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# https://www.boost.org/LICENSE_1_0.txt | ||
|
||
set -ex | ||
export PATH=~/.local/bin:/usr/local/bin:$PATH | ||
uname -a | ||
echo $DRONE_STAGE_MACHINE | ||
|
||
DRONE_BUILD_DIR=$(pwd) | ||
|
||
BOOST_BRANCH=develop | ||
if [ "$DRONE_BRANCH" = "master" ]; then BOOST_BRANCH=master; fi | ||
|
||
cd .. | ||
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||
cd boost-root | ||
git submodule update --init tools/boostdep | ||
mkdir -p libs/$LIBRARY | ||
cp -r $DRONE_BUILD_DIR/* libs/$LIBRARY | ||
python tools/boostdep/depinst/depinst.py -I example $LIBRARY | ||
./bootstrap.sh | ||
./b2 -d0 headers | ||
|
||
if [[ $(uname) == "Linux" ]]; then | ||
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space | ||
fi | ||
|
||
echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam | ||
./b2 -j3 libs/$LIBRARY/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${ADDRMD:+address-model=$ADDRMD} ${UBSAN:+undefined-sanitizer=norecover debug-symbols=on} ${ASAN:+address-sanitizer=norecover debug-symbols=on} ${CXXFLAGS:+cxxflags=$CXXFLAGS} ${CXXSTDDIALECT:+cxxstd-dialect=$CXXSTDDIALECT} ${LINKFLAGS:+linkflags=$LINKFLAGS} |
Oops, something went wrong.