diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index 36c3af207..414aa0946 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -9,31 +9,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) add_library ( azure-core - src/http/az_http_request + src/http/http_request ) -if(MSVC) - if(WARNINGS_AS_ERRORS) - set(WARNINGS_AS_ERRORS_FLAG "/WX") - endif() - - target_compile_options(azure-core PRIVATE /Wall ${WARNINGS_AS_ERRORS_FLAG} /wd5031 /wd4668 /wd4820 /wd4255 /analyze) -elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") - if(WARNINGS_AS_ERRORS) - set(WARNINGS_AS_ERRORS_FLAG "-Werror") - endif() - - target_compile_options(azure-core PRIVATE -Xclang -Wall -Wextra -pedantic ${WARNINGS_AS_ERRORS_FLAG} -Wdocumentation -Wdocumentation-unknown-command -Wcast-qual) -else() - if(WARNINGS_AS_ERRORS) - set(WARNINGS_AS_ERRORS_FLAG "-Werror") - endif() - - target_compile_options(azure-core PRIVATE -Wall -Wextra -pedantic ${WARNINGS_AS_ERRORS_FLAG}) -endif() +# compiler warning flags +include(global_compile_options) target_include_directories (azure-core PUBLIC $ $) -target_include_directories (azure-core PUBLIC $ $) # make sure that users can consume the project as a library. add_library (azure::core ALIAS azure-core) diff --git a/sdk/core/azure-core/inc/http/http.hpp b/sdk/core/azure-core/inc/http/http.hpp new file mode 100644 index 000000000..2f71aa275 --- /dev/null +++ b/sdk/core/azure-core/inc/http/http.hpp @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// SPDX-License-Identifier: MIT + +#pragma once + +#include + +namespace azure +{ +namespace core +{ +namespace http +{ + +class http_request +{ + +private: + /* data */ +public: + http_request(); + ~http_request(); +}; + +http_request::http_request() {} +http_request::~http_request() {} + +} // namespace http +} // namespace core +} // namespace azure diff --git a/sdk/core/azure-core/internal/contract.hpp b/sdk/core/azure-core/inc/internal/contract.hpp similarity index 100% rename from sdk/core/azure-core/internal/contract.hpp rename to sdk/core/azure-core/inc/internal/contract.hpp diff --git a/sdk/core/azure-core/src/http/http_request.cpp b/sdk/core/azure-core/src/http/http_request.cpp new file mode 100644 index 000000000..a315c06d1 --- /dev/null +++ b/sdk/core/azure-core/src/http/http_request.cpp @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// SPDX-License-Identifier: MIT + +#include + +namespace azure +{ +namespace core +{ +namespace http +{ + +} // namespace http +} // namespace core +} // namespace azure