From 0b16f679d519370be9d2c10fb7e8f169770e5d29 Mon Sep 17 00:00:00 2001 From: Chun Kuan Lee Date: Sun, 26 Aug 2018 00:15:51 +0800 Subject: auto generate MSVC project files --- appveyor.yml | 3 + build_msvc/.gitignore | 1 + build_msvc/README.md | 6 + build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj | 162 ---------------- .../libbitcoin_cli/libbitcoin_cli.vcxproj.in | 162 ++++++++++++++++ .../libbitcoin_common/libbitcoin_common.vcxproj | 210 -------------------- .../libbitcoin_common/libbitcoin_common.vcxproj.in | 174 +++++++++++++++++ .../libbitcoin_crypto/libbitcoin_crypto.vcxproj | 175 ----------------- .../libbitcoin_crypto/libbitcoin_crypto.vcxproj.in | 157 +++++++++++++++ .../libbitcoin_server/libbitcoin_server.vcxproj | 212 --------------------- .../libbitcoin_server/libbitcoin_server.vcxproj.in | 172 +++++++++++++++++ build_msvc/libbitcoin_util/libbitcoin_util.vcxproj | 196 ------------------- .../libbitcoin_util/libbitcoin_util.vcxproj.in | 180 +++++++++++++++++ .../libbitcoin_wallet/libbitcoin_wallet.vcxproj | 177 ----------------- .../libbitcoin_wallet/libbitcoin_wallet.vcxproj.in | 166 ++++++++++++++++ build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj | 169 ---------------- .../libbitcoin_zmq/libbitcoin_zmq.vcxproj.in | 166 ++++++++++++++++ build_msvc/msvc-autogen.py | 63 ++++++ 18 files changed, 1250 insertions(+), 1301 deletions(-) delete mode 100644 build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj create mode 100644 build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj.in delete mode 100644 build_msvc/libbitcoin_common/libbitcoin_common.vcxproj create mode 100644 build_msvc/libbitcoin_common/libbitcoin_common.vcxproj.in delete mode 100644 build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj create mode 100644 build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj.in delete mode 100644 build_msvc/libbitcoin_server/libbitcoin_server.vcxproj create mode 100644 build_msvc/libbitcoin_server/libbitcoin_server.vcxproj.in delete mode 100644 build_msvc/libbitcoin_util/libbitcoin_util.vcxproj create mode 100644 build_msvc/libbitcoin_util/libbitcoin_util.vcxproj.in delete mode 100644 build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj create mode 100644 build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj.in delete mode 100644 build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj create mode 100644 build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj.in create mode 100644 build_msvc/msvc-autogen.py diff --git a/appveyor.yml b/appveyor.yml index c6a5a91ba5..85b1a999d1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,6 +6,8 @@ platform: x64 environment: APPVEYOR_SAVE_CACHE_ON_ERROR: true cache: C:\tools\vcpkg\installed\ +init: +- cmd: set PATH=C:\Python36-x64;%PATH% before_build: - ps: >- $packages = @( @@ -28,6 +30,7 @@ before_build: git -C C:\Tools\vcpkg pull # This is a temporary fix, can be removed after appveyor update its image to include Microsoft/vcpkg#4046 Invoke-Expression -Command "vcpkg install $all_packages" +- cmd: python build_msvc\msvc-autogen.py build: project: build_msvc\bitcoin.sln parallel: true diff --git a/build_msvc/.gitignore b/build_msvc/.gitignore index fbcd1077b3..d5aa22c05e 100644 --- a/build_msvc/.gitignore +++ b/build_msvc/.gitignore @@ -8,3 +8,4 @@ packages/* */Release */x64 *.vcxproj.user +*.vcxproj diff --git a/build_msvc/README.md b/build_msvc/README.md index 6de464e92f..5fb08df8d7 100644 --- a/build_msvc/README.md +++ b/build_msvc/README.md @@ -47,4 +47,10 @@ The instructions below use vcpkg to install the dependencies. leveldb:x64-windows-static ``` +- Use Python to generate *.vcxproj from Makefile + +``` + PS >python msvc-autogen.py +``` + - Build in Visual Studio. \ No newline at end of file diff --git a/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj b/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj deleted file mode 100644 index 623d24da10..0000000000 --- a/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - 15.0 - {0667528C-D734-4009-ADF9-C0D6C4A5A5A6} - Win32Proj - libbitcoin_cli - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - false - - - true - - - true - - - false - - - - NotUsing - Level3 - MaxSpeed - true - true - _SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - - NotUsing - Level3 - Disabled - _SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - - - Console - true - - - - - NotUsing - Level3 - Disabled - _SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - _SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - diff --git a/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj.in b/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj.in new file mode 100644 index 0000000000..b7265054fb --- /dev/null +++ b/build_msvc/libbitcoin_cli/libbitcoin_cli.vcxproj.in @@ -0,0 +1,162 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + +@SOURCE_FILES@ + + + + + + 15.0 + {0667528C-D734-4009-ADF9-C0D6C4A5A5A6} + Win32Proj + libbitcoin_cli + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + false + + + true + + + true + + + false + + + + NotUsing + Level3 + MaxSpeed + true + true + _SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + + NotUsing + Level3 + Disabled + _SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + + + Console + true + + + + + NotUsing + Level3 + Disabled + _SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + _SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + diff --git a/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj b/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj deleted file mode 100644 index e6d95ed5f3..0000000000 --- a/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {7C87E378-DF58-482E-AA2F-1BC129BC19CE} - Win32Proj - libbitcoin_common - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - false - MultiThreadedDebug - - - Console - true - - - - - - - NotUsing - Level3 - Disabled - WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - false - MultiThreadedDebug - - - Console - true - - - - - - - NotUsing - Level3 - MaxSpeed - true - true - WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - false - MultiThreaded - - - Console - true - true - true - - - - - - - NotUsing - Level3 - MaxSpeed - true - true - WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - false - MultiThreaded - - - Console - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj.in b/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj.in new file mode 100644 index 0000000000..42145c15ad --- /dev/null +++ b/build_msvc/libbitcoin_common/libbitcoin_common.vcxproj.in @@ -0,0 +1,174 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {7C87E378-DF58-482E-AA2F-1BC129BC19CE} + Win32Proj + libbitcoin_common + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + false + MultiThreadedDebug + + + Console + true + + + + + + + NotUsing + Level3 + Disabled + WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + false + MultiThreadedDebug + + + Console + true + + + + + + + NotUsing + Level3 + MaxSpeed + true + true + WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + false + MultiThreaded + + + Console + true + true + true + + + + + + + NotUsing + Level3 + MaxSpeed + true + true + WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + false + MultiThreaded + + + Console + true + true + true + + + + + +@SOURCE_FILES@ + + + + + + diff --git a/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj b/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj deleted file mode 100644 index 50519d045f..0000000000 --- a/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {6190199C-6CF4-4DAD-BFBD-93FA72A760C1} - Win32Proj - libbitcoin_crypto - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src - MultiThreadedDebug - - - Console - true - - - - - NotUsing - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src - MultiThreadedDebug - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src - MultiThreaded - - - Console - true - true - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src - MultiThreaded - - - Console - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj.in b/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj.in new file mode 100644 index 0000000000..a05125723a --- /dev/null +++ b/build_msvc/libbitcoin_crypto/libbitcoin_crypto.vcxproj.in @@ -0,0 +1,157 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {6190199C-6CF4-4DAD-BFBD-93FA72A760C1} + Win32Proj + libbitcoin_crypto + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src + MultiThreadedDebug + + + Console + true + + + + + NotUsing + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src + MultiThreadedDebug + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src + MultiThreaded + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src + MultiThreaded + + + Console + true + true + true + + + +@SOURCE_FILES@ + + + diff --git a/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj b/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj deleted file mode 100644 index 9d4ac1a7f7..0000000000 --- a/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {460FEE33-1FE1-483F-B3BF-931FF8E969A5} - Win32Proj - libbitcoin_server - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - - - Console - true - - - - - NotUsing - Level3 - Disabled - WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - false - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $(IntDir)\netrpc.obj - $(IntDir)\netrpc.obj - $(IntDir)\netrpc.obj - $(IntDir)\netrpc.obj - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj.in b/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj.in new file mode 100644 index 0000000000..0a165d0b75 --- /dev/null +++ b/build_msvc/libbitcoin_server/libbitcoin_server.vcxproj.in @@ -0,0 +1,172 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {460FEE33-1FE1-483F-B3BF-931FF8E969A5} + Win32Proj + libbitcoin_server + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + + + Console + true + + + + + NotUsing + Level3 + Disabled + WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + false + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + WIN32;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + + $(IntDir)\netrpc.obj + $(IntDir)\netrpc.obj + $(IntDir)\netrpc.obj + $(IntDir)\netrpc.obj + +@SOURCE_FILES@ + + + + + + + + + \ No newline at end of file diff --git a/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj b/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj deleted file mode 100644 index 9e960682e5..0000000000 --- a/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {B53A5535-EE9D-4C6F-9A26-F79EE3BC3754} - Win32Proj - libbitcoin_util - libbitcoin_util - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - - - Console - true - - - - - false - - - - - NotUsing - Level3 - Disabled - HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - - - Console - true - - - - - false - - - - - NotUsing - Level3 - MaxSpeed - true - true - HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - - false - - - - - NotUsing - Level3 - MaxSpeed - true - true - HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - - - Console - true - true - true - - - - - false - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj.in b/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj.in new file mode 100644 index 0000000000..dc17c98e98 --- /dev/null +++ b/build_msvc/libbitcoin_util/libbitcoin_util.vcxproj.in @@ -0,0 +1,180 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {B53A5535-EE9D-4C6F-9A26-F79EE3BC3754} + Win32Proj + libbitcoin_util + libbitcoin_util + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + + + Console + true + + + + + false + + + + + NotUsing + Level3 + Disabled + HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + + + Console + true + + + + + false + + + + + NotUsing + Level3 + MaxSpeed + true + true + HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + + false + + + + + NotUsing + Level3 + MaxSpeed + true + true + HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + + + Console + true + true + true + + + + + false + + + +@SOURCE_FILES@ + + + diff --git a/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj b/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj deleted file mode 100644 index 64f3e16289..0000000000 --- a/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - 15.0 - {93B86837-B543-48A5-A89B-7C87ABB77DF2} - Win32Proj - libbitcoin_wallet - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\wallet;..\..\src\univalue\include; - MultiThreadedDebug - /bigobj %(AdditionalOptions) - - - Console - true - - - - - NotUsing - Level3 - Disabled - HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\wallet;..\..\src\univalue\include; - MultiThreadedDebug - /bigobj %(AdditionalOptions) - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\wallet;..\..\src\univalue\include; - MultiThreaded - /bigobj %(AdditionalOptions) - - - Console - true - true - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\wallet;..\..\src\univalue\include; - MultiThreaded - /bigobj %(AdditionalOptions) - - - Console - true - true - true - - - - diff --git a/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj.in b/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj.in new file mode 100644 index 0000000000..1bb7be6f7f --- /dev/null +++ b/build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj.in @@ -0,0 +1,166 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + +@SOURCE_FILES@ + + + + + + 15.0 + {93B86837-B543-48A5-A89B-7C87ABB77DF2} + Win32Proj + libbitcoin_wallet + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\wallet;..\..\src\univalue\include; + MultiThreadedDebug + /bigobj %(AdditionalOptions) + + + Console + true + + + + + NotUsing + Level3 + Disabled + HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\wallet;..\..\src\univalue\include; + MultiThreadedDebug + /bigobj %(AdditionalOptions) + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\wallet;..\..\src\univalue\include; + MultiThreaded + /bigobj %(AdditionalOptions) + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\wallet;..\..\src\univalue\include; + MultiThreaded + /bigobj %(AdditionalOptions) + + + Console + true + true + true + + + + diff --git a/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj b/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj deleted file mode 100644 index d7fbdd94b7..0000000000 --- a/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - - - - - 15.0 - {792D487F-F14C-49FC-A9DE-3FC150F31C3F} - Win32Proj - libbitcoin_zmq - x86-windows-static - x64-windows-static - - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - false - - - Console - true - - - - - NotUsing - Level3 - Disabled - NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreadedDebug - false - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - false - - - Console - true - true - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - ..\..\src;..\..\src\univalue\include; - MultiThreaded - false - - - Console - true - true - true - - - - diff --git a/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj.in b/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj.in new file mode 100644 index 0000000000..e396c1ad0c --- /dev/null +++ b/build_msvc/libbitcoin_zmq/libbitcoin_zmq.vcxproj.in @@ -0,0 +1,166 @@ + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + +@SOURCE_FILES@ + + + + + + 15.0 + {792D487F-F14C-49FC-A9DE-3FC150F31C3F} + Win32Proj + libbitcoin_zmq + x86-windows-static + x64-windows-static + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + false + + + Console + true + + + + + NotUsing + Level3 + Disabled + NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreadedDebug + false + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + false + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + NOMINMAX;ZMQ_STATIC;HAVE_CONFIG_H;_SCL_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + ..\..\src;..\..\src\univalue\include; + MultiThreaded + false + + + Console + true + true + true + + + + diff --git a/build_msvc/msvc-autogen.py b/build_msvc/msvc-autogen.py new file mode 100644 index 0000000000..8888487e75 --- /dev/null +++ b/build_msvc/msvc-autogen.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 + +import os +import re + +SOURCE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')) + +libs = [ + 'libbitcoin_cli', + 'libbitcoin_common', + 'libbitcoin_crypto', + 'libbitcoin_server', + 'libbitcoin_util', + 'libbitcoin_wallet', + 'libbitcoin_zmq', +] + +ignore_list = [ + 'rpc/net.cpp', + 'interfaces/handler.cpp', + 'interfaces/node.cpp', + 'interfaces/wallet.cpp', +] + +lib_sources = {} + + +def parse_makefile(makefile): + with open(makefile, 'r', encoding='utf-8') as file: + current_lib = '' + for line in file.read().splitlines(): + if current_lib: + source = line.split()[0] + if source.endswith('.cpp') and not source.startswith('$') and source not in ignore_list: + lib_sources[current_lib].append(source.replace('/', '\\')) + if not line.endswith('\\'): + current_lib = '' + continue + for lib in libs: + _lib = lib.replace('-', '_') + if re.search(_lib + '.*_SOURCES \\= \\\\', line): + current_lib = lib + lib_sources[current_lib] = [] + break + + +def main(): + for makefile_name in os.listdir(SOURCE_DIR): + if 'Makefile' in makefile_name: + parse_makefile(os.path.join(SOURCE_DIR, makefile_name)) + for key, value in lib_sources.items(): + vcxproj_filename = os.path.abspath(os.path.join(os.path.dirname(__file__), key, key + '.vcxproj')) + content = '' + for source_filename in value: + content += ' \n' + with open(vcxproj_filename + '.in', 'r', encoding='utf-8') as vcxproj_in_file: + with open(vcxproj_filename, 'w', encoding='utf-8') as vcxproj_file: + vcxproj_file.write(vcxproj_in_file.read().replace( + '@SOURCE_FILES@\n', content)) + + +if __name__ == '__main__': + main() -- cgit v1.2.3