Skip to content

Commit

Permalink
Revert "Revert template2"
Browse files Browse the repository at this point in the history
This reverts commit 3a91e82.
  • Loading branch information
danieljurek committed Feb 9, 2021
1 parent 461a57c commit 1721a62
Show file tree
Hide file tree
Showing 19 changed files with 585 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/template/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

add_subdirectory(azure-template)
add_subdirectory(azure-template2)
116 changes: 116 additions & 0 deletions sdk/template/azure-template2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Release History

## 1.0.0-beta.28 (2020-02-09)

* Validate vcpkg publishing automation with x-add-version
* Update PR naming

## 1.0.0-beta.27 (2020-02-09)

* Validate vcpkg publishing automation with x-add-version
* Update PR naming

## 1.0.0-beta.26 (2020-02-08)

* Validate vcpkg publishing automation with x-add-version
* Update PR naming

## 1.0.0-beta.25 (2020-01-12)

* Validate vcpkg publishing automation (part 20)

## 1.0.0-beta.24 (2020-01-11)

* Validate vcpkg publishing automation (part 19)

## 1.0.0-beta.23 (2020-01-11)

* Validate vcpkg publishing automation (part 18)

## 1.0.0-beta.22 (2020-01-08)

* Validate vcpkg publishing automation (part 17)

## 1.0.0-beta.21 (2020-01-08)

* Validate vcpkg publishing automation (part 17)

## 1.0.0-beta.20 (2020-01-08)


* Validate vcpkg publishing automation (part 16)

## 1.0.0-beta.19 (2020-01-08)

* Validate vcpkg publishing automation (part 15)

## 1.0.0-beta.18 (2021-01-08)

* Validate vcpkg publishing automation (part 14)


## 1.0.0-beta.17 (2021-01-08)

* Validate vcpkg publishing automation (part 13)

## 1.0.0-beta.16 (2021-01-07)

* Validate vcpkg publishing automation (part 13)
## 1.0.0-beta.15 (2021-01-07)

* Validate vcpkg publishing automation (part 12)

## 1.0.0-beta.14 (2021-01-07)

* Validate vcpkg publishing automation (part 11)
## 1.0.0-beta.13 (2021-01-07)

* Validate vcpkg publishing automation (part 10)

## 1.0.0-beta.12 (2021-01-07)

* Validate vcpkg publishing automation (part 9)

## 1.0.0-beta.11 (2021-01-07)

* Validate vcpkg publishing automation (part 8)

## 1.0.0-beta.10 (2021-01-07)

* Validate vcpkg publishing automation (part 7)

## 1.0.0-beta.9 (2021-01-07)

* Validate vcpkg publishing automation (part 6)

## 1.0.0-beta.8 (2021-01-07)

* Validate vcpkg publishing automation

## 1.0.0-beta.7 (2020-09-15)

* Validate vcpkg publishing automation framework (part 4)

## 1.0.0-beta.6 (2020-09-10)

* Validate vcpkg publishing automation framework (part 3)

## 1.0.0-beta.5 (2020-09-10)

* Validate vcpkg publishing automation framework (part 2)

## 1.0.0-beta.4 (2020-09-10)

* Validate vcpkg publishing automation framework

## 1.0.0-beta.3 (2020-09-09)

* (Engineering System) Enable master replacement link feature for cpp, attempt 2

## 1.0.0-beta.2 (2020-09-09)

* Validate engineering system changes

## 1.0.0-beta.1 (2020-09-01)

* Template package validating release pipeline
75 changes: 75 additions & 0 deletions sdk/template/azure-template2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.13)
project(azure-template2 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake-modules")

include(AzureVcpkg)
include(AzureVersion)
include(AzureCodeCoverage)
include(AzureTransportAdapters)
include(AzureDoxygen)
include(AzureGlobalCompileOptions)

az_vcpkg_integrate()

if(NOT AZ_ALL_LIBRARIES)
find_package(azure-core-cpp CONFIG QUIET)
if(NOT azure-core-cpp_FOUND)
find_package(azure-core-cpp REQUIRED)
endif()
endif()

set(
AZURE_TEMPLATE_HEADER
inc/azure/template2/dll_import_export.hpp
inc/azure/template2/template_client.hpp
inc/azure/template2/version.hpp
inc/azure/template2.hpp
)

set(
AZURE_TEMPLATE_SOURCE
src/template_client.cpp
src/version.cpp
)

add_library(azure-template2 ${AZURE_TEMPLATE_HEADER} ${AZURE_TEMPLATE_SOURCE})

target_include_directories(
azure-template2
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
$<INSTALL_INTERFACE:include>
# Disable dependency on azure-core until azure-core has released to vcpkg
# ${azure-core-cpp_INCLUDE_DIRS}
)

# Disable dependency on azure-core until azure-core has released to vcpkg
# target_link_libraries(azure-template2 PUBLIC Azure::azure-core)

# make sure that users can consume the project as a library.
add_library(Azure::azure-template2 ALIAS azure-template2)

# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(template azure-template2 azure-template2-test)

get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/inc/azure/template2/version.hpp")
generate_documentation(azure-template2 ${AZ_LIBRARY_VERSION})

az_vcpkg_export(
azure-template2
TEMPLATE
"azure/template2/dll_import_export.hpp"
)

if(BUILD_TESTING)
# tests
add_subdirectory(test)
endif()
21 changes: 21 additions & 0 deletions sdk/template/azure-template2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
32 changes: 32 additions & 0 deletions sdk/template/azure-template2/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
azure-template

NOTICES AND INFORMATION
Do Not Translate or Localize

This software incorporates material from third parties. Microsoft makes certain
open source code available at https://3rdpartysource.microsoft.com, or you may
send a check or money order for US $5.00, including the product name, the open
source component name, and version number, to:

Source Code Compliance Team
Microsoft Corporation
One Microsoft Way
Redmond, WA 98052
USA

Notwithstanding any other terms, you may reverse engineer this software to the
extent required to debug changes to any libraries licensed under the GNU Lesser
General Public License.

------------------------------------------------------------------------------

Azure SDK for C++ uses third-party libraries or other resources that may be
distributed under licenses different than the Azure SDK for C++ software.

In the event that we accidentally failed to list a required notice, please
bring it to our attention. Post an issue or email us:

[email protected]

The attached notices are provided for information only.

70 changes: 70 additions & 0 deletions sdk/template/azure-template2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Azure Template Package client library for C++

Azure Template Package client library for C++ (`azure-template`) matches necessary patterns that the development team has established to create a unified sdk written in the C++ programming language. These libraries follow the Azure SDK Design Guidelines for C++.

The library allows client libraries to expose common functionality in a consistent fashion. Once you learn how to use these APIs in one client library, you will know how to use them in other client libraries.

## Getting started

For a rich example of a well formatted readme, please check [here.](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-TEMPLATE.md) In addition, this is an [example readme](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-EXAMPLE.md) that should be emulated. Note that the top-level sections in this template align with that of the [template.](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-TEMPLATE.md)

# Key concepts

Bullet point list of your library's main concepts.

# Examples

Examples of some of the key concepts for your library.

# Troubleshooting

Running into issues? This section should contain details as to what to do there.

# Next steps

More sample code should go here, along with links out to the appropriate example tests.

## Contributing
For details on contributing to this repository, see the [contributing guide][azure_sdk_for_cpp_contributing].

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

### Additional Helpful Links for Contributors
Many people all over the world have helped make this project better. You'll want to check out:

* [What are some good first issues for new contributors to the repo?](https://github.com/azure/azure-sdk-for-cpp/issues?q=is%3Aopen+is%3Aissue+label%3A%22up+for+grabs%22)
* [How to build and test your change][azure_sdk_for_cpp_contributing_developer_guide]
* [How you can make a change happen!][azure_sdk_for_cpp_contributing_pull_requests]
* Frequently Asked Questions (FAQ) and Conceptual Topics in the detailed [Azure SDK for C++ wiki](https://github.com/azure/azure-sdk-for-cpp/wiki).

<!-- ### Community-->
### Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) <[email protected]>. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the [Security TechCenter](https://www.microsoft.com/msrc/faqs-report-an-issue).

### License

Azure SDK for C++ is licensed under the [MIT](https://github.com/Azure/azure-sdk-for-cpp/blob/master/sdk/template/azure-template/LICENSE) license.

<!-- LINKS -->
[azure_sdk_for_cpp_contributing]: https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md
[azure_sdk_for_cpp_contributing_developer_guide]: https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#developer-guide
[azure_sdk_for_cpp_contributing_pull_requests]: https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests
[azure_cli]: https://docs.microsoft.com/cli/azure
[azure_pattern_circuit_breaker]: https://docs.microsoft.com/azure/architecture/patterns/circuit-breaker
[azure_pattern_retry]: https://docs.microsoft.com/azure/architecture/patterns/retry
[azure_portal]: https://portal.azure.com
[azure_sub]: https://azure.microsoft.com/free/
[c_compiler]: https://visualstudio.microsoft.com/vs/features/cplusplus/
[cloud_shell]: https://docs.microsoft.com/azure/cloud-shell/overview
[cloud_shell_bash]: https://shell.azure.com/bash
36 changes: 36 additions & 0 deletions sdk/template/azure-template2/cgmanifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"Registrations": [
{
"Component": {
"Type": "git",
"git": {
"RepositoryUrl": "https://github.com/google/googletest",
"CommitHash": "703bd9caab50b139428cea1aaff9974ebee5742e"
}
},
"DevelopmentDependency": true
},
{
"Component": {
"Type": "other",
"Other": {
"Name": "clang-format",
"Version": "9.0.0-2",
"DownloadUrl": "https://ubuntu.pkgs.org/18.04/ubuntu-updates-universe-amd64/clang-format-9_9-2~ubuntu18.04.2_amd64.deb.html"
}
},
"DevelopmentDependency": true
},
{
"Component": {
"Type": "other",
"Other": {
"Name": "doxygen",
"Version": "1.8.20",
"DownloadUrl": "http://doxygen.nl/files/doxygen-1.8.20-setup.exe"
}
},
"DevelopmentDependency": true
}
]
}
8 changes: 8 additions & 0 deletions sdk/template/azure-template2/inc/azure/template2.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT

#pragma once

#include "azure/template2/dll_import_export.hpp"
#include "azure/template2/template_client.hpp"
#include "azure/template2/version.hpp"
Loading

0 comments on commit 1721a62

Please sign in to comment.