Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Support isolated component build #1204
Conversation
independent of UNICODE vs MBCS setting Set CPPREST_FORCE_NARROW_STRINGS=ON to enable. Simplistic cleanup throughout project is not possible as some Windows APIs require utf16 such as HTTPSPolicyCallbackData in http_client_winhttp.cpp. HTTP related code is not completely updated so a full package may not be produced, though settings exist to have a clean build. Use: -DCPPREST_FORCE_NARROW_STRING=ON -DCPPREST_EXCLUDE_WEBSOCKETS=ON -DCPPREST_HTTP_LISTENER_IMPL=none -DBUILD_SAMPLES=OFF
…omponents like just json support extractions from asyncrt_utils.h: base64_utils.h (to/form base64) memory_utils.h (details::make_unique) string_utils.cpp (string utils) asyncrt_utils retains error, date-time, and nounce utils
…braries fixup includes from not using a common precompiled header - separate windows header config to be usable outside of pch
- missing headers (stl/config dependent) - correct install for static lib builds also add isolation build to Ubuntu Vcpkg and break up Ubuntu Apt
- more explicit includes +cmake comment tweak
…afx.h's include of everything The exact dependency was not reviewed when making this fix.
support for feature request #68
Add build option CPPREST_ISOLATE_COMPONENTS to build cpprest sub-components as individual libraries. They are not installed, but are tested individually and can be directly targeted as external CMake projects.
Doing so allows consumption of smaller code and use of options such as CPPREST_FORCE_NARROW_STRINGS that are not supported across all parts of cpprest.
This PR also includes changes from PR 1199
To see changes with that PR as baseline review jason-ha#1.