diff --git a/.github/workflows/ci-linux.yaml b/.github/workflows/ci-linux.yaml deleted file mode 100644 index c19594bc..00000000 --- a/.github/workflows/ci-linux.yaml +++ /dev/null @@ -1,88 +0,0 @@ -name: Linux CI - -on: [push, pull_request] - -jobs: - ci: - name: ${{ matrix.name }} - runs-on: ${{ matrix.os }} - - env: - CTEST_OUTPUT_ON_FAILURE: ON - CTEST_PARALLEL_LEVEL: 2 - - strategy: - fail-fast: false - matrix: - include: - - name: ubuntu-20.04-gcc-10 - os: ubuntu-20.04 - compiler: gcc - version: "10" - - - name: ubuntu-20.04-gcc-10-conan - os: ubuntu-20.04 - compiler: gcc - version: "10" - conan: true - cmake-args: -DCMAKE_PREFIX_PATH=`pwd`/build -DCMAKE_MODULE_PATH=`pwd`/build - - - name: ubuntu-20.04-clang-10 - os: ubuntu-20.04 - compiler: clang - version: "10" - cmake-args: -DAUTOBAHN_USE_LIBCXX=NO - - - name: ubuntu-20.04-clang-10-conan - os: ubuntu-20.04 - compiler: clang - version: "10" - conan: true - cmake-args: -DCMAKE_PREFIX_PATH=`pwd`/build -DCMAKE_MODULE_PATH=`pwd`/build -DAUTOBAHN_USE_LIBCXX=NO - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - name: Set env vars - run: | - echo "CC=${{ matrix.compiler }}-${{ matrix.version }}" >> $GITHUB_ENV - if [ "${{ matrix.compiler }}" == "clang" ]; then - echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV - else - echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV - fi - - - name: Install - run: | - python -m pip install cmake==3.22.2 conan==1.44.1 --upgrade - - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main' -y - sudo apt update - - if [ "${{ matrix.compiler }}" = "gcc" ]; then - sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib - else - sudo apt-get install -y clang-${{ matrix.version }} clang-tidy-${{ matrix.version }} g++-multilib - fi - - - name: Install dependencies (system) - run: sudo apt-get install -y libboost-all-dev libmsgpack-dev libwebsocketpp-dev - if: ${{ !matrix.conan }} - - - name: Install dependencies (conan) - run: | - conan profile new default --detect --force - conan profile update settings.compiler.libcxx=libstdc++11 default - mkdir -p build && cd build - conan install .. --build=missing - if: ${{ matrix.conan }} - - - name: Build - run: | - cmake -S . -B build ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Debug - cmake --build build --config Debug diff --git a/.github/workflows/ci-windows.yaml b/.github/workflows/ci-windows.yaml deleted file mode 100644 index 16379e76..00000000 --- a/.github/workflows/ci-windows.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: Windows CI - -on: [push, pull_request] - -jobs: - ci: - name: ${{ matrix.name }} - runs-on: ${{ matrix.os }} - - env: - CTEST_OUTPUT_ON_FAILURE: ON - CTEST_PARALLEL_LEVEL: 2 - - strategy: - fail-fast: false - matrix: - include: - - name: windows-2019-cl-x86 - os: windows-2019 - generator: Visual Studio 16 2019 - type: Debug - platform: Win32 - conan_arch: x86 - - - name: windows-2019-cl-x64 - os: windows-2019 - generator: Visual Studio 16 2019 - type: Debug - platform: x64 - conan_arch: x86_64 - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - name: Install - run: | - python -m pip install cmake==3.22.2 conan==1.44.1 --upgrade - conan profile new default --detect --force - mkdir -p build && cd build - conan install .. --build=missing -s arch=${{ matrix.conan_arch }} -s build_type=${{ matrix.type }} - - - name: Build - shell: bash # CMake doesn't like paths with backslashes. - run: | - cmake -S . -B build -G "${{ matrix.generator }}" -A ${{ matrix.platform }} -DCMAKE_PREFIX_PATH=`pwd`/build -DCMAKE_MODULE_PATH=`pwd`/build - cmake --build build --config ${{ matrix.type }} diff --git a/.github/workflows/hosted-pure-workflow.yml b/.github/workflows/hosted-pure-workflow.yml new file mode 100644 index 00000000..004b52df --- /dev/null +++ b/.github/workflows/hosted-pure-workflow.yml @@ -0,0 +1,94 @@ +# Copyright (c) 2021 Luca Cappa +# Released under the term specified in file LICENSE.txt +# SPDX short identifier: MIT + +# A "pure" GitHub workflow using CMake, Ninja and vcpkg to build a C/C++ codebase. +# It leverages both CMakePresets.json and vcpkg.json to have consistent build locallly +# and on continuous integration servers (aka build agents). +# It is called "pure workflow" because it is an example which minimizes the usage of +# custom GitHub actions, but leverages directly the tools that could be easily run on +# your development machines (i.e. CMake, vcpkg, Ninja) to ensure a perfectly identical +# and reproducible build locally (on your development machine) and remotely (on build agents). +name: hosted-pure-workflow +on: [ push, workflow_dispatch ] + +jobs: + job: + name: ${{ matrix.os }}-${{ github.workflow }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + include: + - os: windows-latest + triplet: x64-windows + - os: ubuntu-latest + triplet: x64-linux + - os: macos-latest + triplet: x64-osx + env: + # Indicates the location of the vcpkg as a Git submodule of the project repository. + VCPKG_ROOT: ${{ github.workspace }}/vcpkg + # Tells vcpkg where binary packages are stored. + VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: "Create directory '${{ env.VCPKG_DEFAULT_BINARY_CACHE }}'" + run: mkdir -p $VCPKG_DEFAULT_BINARY_CACHE + shell: bash + + # Setup the build machine with the most recent versions of CMake and Ninja. Both are cached if not already: on subsequent runs both will be quickly restored from GitHub cache service. + - uses: lukka/get-cmake@latest + + - uses: docker-practice/actions-setup-docker@master + - run: | + if [ "$RUNNER_OS" != "Windows" ]; then + docker pull crossbario/crossbar + else + echo "Skipping on Windows." + fi + shell: bash + # Restore both vcpkg and its artifacts from the GitHub cache service. + - name: Restore Dependency Cache. + uses: actions/cache@v2 + with: + # The first path is the location of vcpkg: it contains the vcpkg executable and data files, as long as the + # built package archives (aka binary cache) which are located by VCPKG_DEFAULT_BINARY_CACHE env var. + # The other paths starting with '!' are exclusions: they contain termporary files generated during the build of the installed packages. + path: | + ${{ env.VCPKG_ROOT }} + !${{ env.VCPKG_ROOT }}/buildtrees + !${{ env.VCPKG_ROOT }}/packages + !${{ env.VCPKG_ROOT }}/downloads + !${{ env.VCPKG_ROOT }}/installed + # The key is composed in a way that it gets properly invalidated: this must happen whenever vcpkg's Git commit id changes, or the list of packages changes. In this case a cache miss must happen and a new entry with a new key with be pushed to GitHub the cache service. + # The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm. + # Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already). + key: | + ${{ hashFiles( 'vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ matrix.triplet }} + # On Windows runners, let's ensure to have the Developer Command Prompt environment setup correctly. As used here the Developer Command Prompt created is targeting x64 and using the default the Windows SDK. + - uses: ilammy/msvc-dev-cmd@v1 + + # Run CMake to generate Ninja project files, using the vcpkg's toolchain file to resolve and install the dependencies as specified in vcpkg.json. + - name: Install Dependencies. + run: | + cmake --preset ninja-multi-vcpkg + + # Build the whole project with Ninja (which is spawn by CMake). Debug configuration. + - name: Build. + run: | + cmake --build --preset ninja-multi-vcpkg-debug + # Test the whole project with CTest. + - name: Run Tests. + run: | + if [ "$RUNNER_OS" != "Windows" ]; then + ctest --preset ninja-multi-vcpkg-debug + else + echo "Skipping on Windows." + fi + shell: bash \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 00000000..7fbd77a1 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,51 @@ +{ + "version": 3, + "cmakeMinimumRequired": { + "major": 3, + "minor": 21, + "patch": 0 + }, + "configurePresets": [ + { + "name": "ninja-multi-vcpkg", + "displayName": "Ninja Multi-Config", + "description": "Configure with vcpkg toolchain and generate Ninja project files for all configurations", + "binaryDir": "${sourceDir}/builds/${presetName}", + "generator": "Ninja Multi-Config", + "cacheVariables": { + "CMAKE_TOOLCHAIN_FILE": { + "type": "FILEPATH", + "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + } + } + } + ], + "buildPresets": [ + { + "name": "ninja-multi-vcpkg-debug", + "configurePreset": "ninja-multi-vcpkg", + "displayName": "Build ninja-multi-vcpkg-debug", + "description": "Build ninja-multi-vcpkg Debug configuration", + "configuration": "Debug" + }, + { + "name": "ninja-multi-vcpkg-release", + "configurePreset": "ninja-multi-vcpkg", + "displayName": "Build ninja-multi-vcpkg-release", + "description": "Build ninja-multi-vcpkg Release configuration", + "configuration": "RelWithDebInfo" + } + ], + "testPresets": [ + { + "name": "ninja-multi-vcpkg-debug", + "configurePreset": "ninja-multi-vcpkg", + "configuration": "Debug" + }, + { + "name": "ninja-multi-vcpkg-release", + "configurePreset": "ninja-multi-vcpkg", + "configuration": "RelWithDebInfo" + } + ] +} \ No newline at end of file diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7b95980e..6bf97890 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -16,12 +16,14 @@ make_example(websocket_callee websocket_callee.cpp) make_example(cryptosign-openssl cryptosign-openssl.cpp) make_example(cryptosign-botan cryptosign-botan.cpp) -if(UNIX) +if (UNIX) make_example(uds uds.cpp) -endif() +endif () # By default MSVC has a 2^16 limit on the number of sections in an object file, # and this needs more than that. if (MSVC) set_source_files_properties(websocket_callee.cpp PROPERTIES COMPILE_FLAGS /bigobj) -endif() + set_source_files_properties(cryptosign-openssl.cpp PROPERTIES COMPILE_FLAGS /bigobj) + set_source_files_properties(cryptosign-botan.cpp PROPERTIES COMPILE_FLAGS /bigobj) +endif () diff --git a/examples/projects/VS2015/autobahn-cpp-examples.vs2015.sln b/examples/projects/VS2015/autobahn-cpp-examples.vs2015.sln deleted file mode 100644 index 4eaecce9..00000000 --- a/examples/projects/VS2015/autobahn-cpp-examples.vs2015.sln +++ /dev/null @@ -1,94 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.24720.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wampcra", "wampcra.vcxproj", "{4357F288-DC34-40E3-9AAA-80C1E3EFD633}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "autobahn-cpp", "autobahn-cpp.vcxproj", "{94DB2E6B-5051-43EB-A4BD-D41F4D70D597}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "callee", "callee.vcxproj", "{5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "caller", "caller.vcxproj", "{BF87E140-28C2-41F8-BF65-7776DD215B87}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "publisher", "publisher.vcxproj", "{352DB303-2BBA-4C01-B22F-35A1196FDE4C}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "subscriber", "subscriber.vcxproj", "{62501761-0470-453F-99BC-36FC69B339FA}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "provide_prefix", "provide_prefix.vcxproj", "{B18D21E0-843C-4AC5-8365-495BED662808}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "websocket", "websocket.vcxproj", "{DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Debug|x64.ActiveCfg = Debug|x64 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Debug|x64.Build.0 = Debug|x64 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Debug|x86.ActiveCfg = Debug|Win32 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Debug|x86.Build.0 = Debug|Win32 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Release|x64.ActiveCfg = Release|x64 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Release|x64.Build.0 = Release|x64 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Release|x86.ActiveCfg = Release|Win32 - {4357F288-DC34-40E3-9AAA-80C1E3EFD633}.Release|x86.Build.0 = Release|Win32 - {94DB2E6B-5051-43EB-A4BD-D41F4D70D597}.Debug|x64.ActiveCfg = Release|Win32 - {94DB2E6B-5051-43EB-A4BD-D41F4D70D597}.Debug|x86.ActiveCfg = Release|Win32 - {94DB2E6B-5051-43EB-A4BD-D41F4D70D597}.Release|x64.ActiveCfg = Release|Win32 - {94DB2E6B-5051-43EB-A4BD-D41F4D70D597}.Release|x86.ActiveCfg = Release|Win32 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Debug|x64.ActiveCfg = Debug|x64 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Debug|x64.Build.0 = Debug|x64 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Debug|x86.ActiveCfg = Debug|Win32 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Debug|x86.Build.0 = Debug|Win32 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Release|x64.ActiveCfg = Release|x64 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Release|x64.Build.0 = Release|x64 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Release|x86.ActiveCfg = Release|Win32 - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE}.Release|x86.Build.0 = Release|Win32 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Debug|x64.ActiveCfg = Debug|x64 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Debug|x64.Build.0 = Debug|x64 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Debug|x86.ActiveCfg = Debug|Win32 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Debug|x86.Build.0 = Debug|Win32 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Release|x64.ActiveCfg = Release|x64 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Release|x64.Build.0 = Release|x64 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Release|x86.ActiveCfg = Release|Win32 - {BF87E140-28C2-41F8-BF65-7776DD215B87}.Release|x86.Build.0 = Release|Win32 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Debug|x64.ActiveCfg = Debug|x64 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Debug|x64.Build.0 = Debug|x64 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Debug|x86.ActiveCfg = Debug|Win32 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Debug|x86.Build.0 = Debug|Win32 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Release|x64.ActiveCfg = Release|x64 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Release|x64.Build.0 = Release|x64 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Release|x86.ActiveCfg = Release|Win32 - {352DB303-2BBA-4C01-B22F-35A1196FDE4C}.Release|x86.Build.0 = Release|Win32 - {62501761-0470-453F-99BC-36FC69B339FA}.Debug|x64.ActiveCfg = Debug|x64 - {62501761-0470-453F-99BC-36FC69B339FA}.Debug|x64.Build.0 = Debug|x64 - {62501761-0470-453F-99BC-36FC69B339FA}.Debug|x86.ActiveCfg = Debug|Win32 - {62501761-0470-453F-99BC-36FC69B339FA}.Debug|x86.Build.0 = Debug|Win32 - {62501761-0470-453F-99BC-36FC69B339FA}.Release|x64.ActiveCfg = Release|x64 - {62501761-0470-453F-99BC-36FC69B339FA}.Release|x64.Build.0 = Release|x64 - {62501761-0470-453F-99BC-36FC69B339FA}.Release|x86.ActiveCfg = Release|Win32 - {62501761-0470-453F-99BC-36FC69B339FA}.Release|x86.Build.0 = Release|Win32 - {B18D21E0-843C-4AC5-8365-495BED662808}.Debug|x64.ActiveCfg = Debug|x64 - {B18D21E0-843C-4AC5-8365-495BED662808}.Debug|x64.Build.0 = Debug|x64 - {B18D21E0-843C-4AC5-8365-495BED662808}.Debug|x86.ActiveCfg = Debug|Win32 - {B18D21E0-843C-4AC5-8365-495BED662808}.Debug|x86.Build.0 = Debug|Win32 - {B18D21E0-843C-4AC5-8365-495BED662808}.Release|x64.ActiveCfg = Release|x64 - {B18D21E0-843C-4AC5-8365-495BED662808}.Release|x64.Build.0 = Release|x64 - {B18D21E0-843C-4AC5-8365-495BED662808}.Release|x86.ActiveCfg = Release|Win32 - {B18D21E0-843C-4AC5-8365-495BED662808}.Release|x86.Build.0 = Release|Win32 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Debug|x64.ActiveCfg = Debug|x64 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Debug|x64.Build.0 = Debug|x64 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Debug|x86.ActiveCfg = Debug|Win32 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Debug|x86.Build.0 = Debug|Win32 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Release|x64.ActiveCfg = Release|x64 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Release|x64.Build.0 = Release|x64 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Release|x86.ActiveCfg = Release|Win32 - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/examples/projects/VS2015/autobahn-cpp.vcxproj b/examples/projects/VS2015/autobahn-cpp.vcxproj deleted file mode 100644 index 21a0bc48..00000000 --- a/examples/projects/VS2015/autobahn-cpp.vcxproj +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {94DB2E6B-5051-43EB-A4BD-D41F4D70D597} - Win32Proj - autobahncpp - 8.1 - - - - true - v140 - Unicode - - - StaticLibrary - false - v140 - true - Unicode - - - StaticLibrary - true - v140 - Unicode - - - StaticLibrary - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - Level3 - Disabled - WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) - - - Windows - - - - - - - Level3 - Disabled - _DEBUG;_LIB;%(PreprocessorDefinitions) - - - Windows - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) - - - Windows - true - true - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_LIB;%(PreprocessorDefinitions) - - - Windows - true - true - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/callee.vcxproj b/examples/projects/VS2015/callee.vcxproj deleted file mode 100644 index 443bfcd6..00000000 --- a/examples/projects/VS2015/callee.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {5D930CE9-EC02-4F5F-AEC9-D790E6D40DBE} - Win32Proj - autobahncppexamples - 8.1 - callee - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/caller.vcxproj b/examples/projects/VS2015/caller.vcxproj deleted file mode 100644 index 005dbbde..00000000 --- a/examples/projects/VS2015/caller.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {BF87E140-28C2-41F8-BF65-7776DD215B87} - Win32Proj - autobahncppexamples - 8.1 - caller - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/provide_prefix.vcxproj b/examples/projects/VS2015/provide_prefix.vcxproj deleted file mode 100644 index 702cc769..00000000 --- a/examples/projects/VS2015/provide_prefix.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {B18D21E0-843C-4AC5-8365-495BED662808} - Win32Proj - autobahncppexamples - 8.1 - provide_prefix - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/publisher.vcxproj b/examples/projects/VS2015/publisher.vcxproj deleted file mode 100644 index 2fe0c93b..00000000 --- a/examples/projects/VS2015/publisher.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {352DB303-2BBA-4C01-B22F-35A1196FDE4C} - Win32Proj - autobahncppexamples - 8.1 - publisher - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/subscriber.vcxproj b/examples/projects/VS2015/subscriber.vcxproj deleted file mode 100644 index b2a00d27..00000000 --- a/examples/projects/VS2015/subscriber.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {62501761-0470-453F-99BC-36FC69B339FA} - Win32Proj - autobahncppexamples - 8.1 - subscriber - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/wampcra.vcxproj b/examples/projects/VS2015/wampcra.vcxproj deleted file mode 100644 index 98c01ecf..00000000 --- a/examples/projects/VS2015/wampcra.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {4357F288-DC34-40E3-9AAA-80C1E3EFD633} - Win32Proj - autobahncppexamples - 8.1 - wampcra - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../ - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/projects/VS2015/websocket.vcxproj b/examples/projects/VS2015/websocket.vcxproj deleted file mode 100644 index 87cf2a2f..00000000 --- a/examples/projects/VS2015/websocket.vcxproj +++ /dev/null @@ -1,259 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {DF547C71-C634-4F5F-81AE-C0FF0E2A0F73} - Win32Proj - autobahncppexamples - 8.1 - websocket - - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(ProjectName)\ - - - true - $(Platform)\$(Configuration)\$(ProjectName)\ - - - false - $(Configuration)\$(ProjectName)\ - - - false - $(Platform)\$(Configuration)\$(ProjectName)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../;C:\Projects\OpenSource\websocketpp - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../;C:\Projects\OpenSource\websocketpp - MultiThreadedDebug - - - Console - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../;C:\Projects\OpenSource\websocketpp - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(BOOST_DIR);$(OPENSSL_DIR)\inc32;$(MSGPACK_DIR)\include;../../../;C:\Projects\OpenSource\websocketpp - MultiThreaded - - - Console - true - true - true - $(BOOST_DIR)\stage\lib;$(OPENSSL_DIR)\build\Win32\VC14\DLL Release;%(AdditionalLibraryDirectories) - libeay32.lib;ssleay32.lib;%(AdditionalDependencies) - - - @if NOT [%BOOST_DIR%] ==[] GOTO CHECKMSGPACK -@ECHO Boost directory not defined. Set environment variable BOOST_DIR or change project settings - - -:CHECKMSGPACK -@if NOT [%MSGPACK_DIR%] ==[] GOTO CHECKOPENSSL -@ECHO MsgPack-c directory not defined. Set environment variable MSGPACK_DIR or change project settings - - -:CHECKOPENSSL -@if NOT [%OPENSSL_DIR%] ==[] GOTO SUCCESS -ECHO OpenSSL directory not defined. Set environment variable OPENSSL_DIR or change project settings - - -:SUCCESS -EXIT 0 - - - Checking project config - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 54886fb2..2162fe6e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,11 +1,22 @@ -find_package(Catch2 CONFIG REQUIRED) +Include(FetchContent) +FetchContent_Declare( + Catch2 + GIT_REPOSITORY https://github.com/catchorg/Catch2.git + GIT_TAG v3.0.0-preview3 +) +FetchContent_MakeAvailable(Catch2) function(make_test name src) + # By default MSVC has a 2^16 limit on the number of sections in an object file, + # and this needs more than that. + if (MSVC) + set_source_files_properties(${src} PROPERTIES COMPILE_FLAGS /bigobj) + endif () + add_executable(${name} ${src} wamp_test.hpp ${PUBLIC_HEADERS}) - target_link_libraries(${name} PRIVATE Catch2::Catch2 Catch2::Catch2WithMain autobahn_cpp) - target_include_directories(${name} PRIVATE ${BOTAN_INCLUDE_DIRS}) + target_link_libraries(${name} PRIVATE Catch2::Catch2WithMain autobahn_cpp) string(REPLACE "test_" "" pure_name ${name}) - add_test(NAME ${name} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh "${CMAKE_CURRENT_SOURCE_DIR}/${pure_name}" "${CMAKE_CURRENT_BINARY_DIR}/${name}" ) + add_test(NAME ${name} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh "${CMAKE_CURRENT_SOURCE_DIR}/${pure_name}" "$") endfunction() make_test(test_auth auth/auth.cpp) diff --git a/test/auth/auth.cpp b/test/auth/auth.cpp index e0dbd2c0..35ac8363 100644 --- a/test/auth/auth.cpp +++ b/test/auth/auth.cpp @@ -29,7 +29,7 @@ /////////////////////////////////////////////////////////////////////////////// #include "test/wamp_test.hpp" -#include +#include struct Config { diff --git a/test/calls/calls.cpp b/test/calls/calls.cpp index 6e9e22f9..2ed216ec 100644 --- a/test/calls/calls.cpp +++ b/test/calls/calls.cpp @@ -29,7 +29,7 @@ /////////////////////////////////////////////////////////////////////////////// #include "test/wamp_test.hpp" -#include +#include struct Config { diff --git a/test/pubsub/pubsub.cpp b/test/pubsub/pubsub.cpp index 6be46961..689748cb 100644 --- a/test/pubsub/pubsub.cpp +++ b/test/pubsub/pubsub.cpp @@ -29,7 +29,7 @@ /////////////////////////////////////////////////////////////////////////////// #include "test/wamp_test.hpp" -#include +#include struct Config { diff --git a/test/run_test.sh b/test/run_test.sh index d5831a3c..7827c0a9 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -3,10 +3,9 @@ CROSSBAR_PATH=${1}/crossbar TEST_BINARY=${2} cd "${CROSSBAR_PATH}" || exit 1 -/opt/homebrew/bin/crossbar start --cbdir .crossbar > /dev/null 2>&1 & -PID=$! -sleep 3 +docker run -d -v $PWD:/node -u 0 --rm --name=crossbar -it -p 8080:8080 crossbario/crossbar +sleep 15 ${TEST_BINARY} RET=$? -kill ${PID} +docker container stop crossbar exit ${RET} diff --git a/vcpkg.json b/vcpkg.json index e0a7f7cc..9eacde48 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "autobahn", - "version-string": "0.1.0", + "version-string": "0.0.1", "port-version": 1, "description": "WAMP for C++ in Boost/Asio", "homepage": "https://crossbar.io/autobahn", @@ -10,10 +10,9 @@ "boost-random", "boost-asio", "boost-thread", - "msgpack", - "websocketpp", "botan", + "msgpack", "openssl", - "catch2" + "websocketpp" ] }