Skip to content

Commit db262f4

Browse files
Merge pull request #82 from awslabs/revert-81-TaskRoleCredentials
Revert "Improving CMake user experience"
2 parents 434ad9f + ed885b3 commit db262f4

15 files changed

+199
-551
lines changed

AWSSDK/AWSSDKConfig.cmake

Lines changed: 0 additions & 206 deletions
This file was deleted.

AWSSDK/CMakeLists.txt

Lines changed: 0 additions & 80 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License").
55
# You may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ find_package(Git)
2626

2727
# Cmake invocation variables:
2828
# CUSTOM_MEMORY_MANAGEMENT - if set to 1, generates the sdk project files with custom memory management enabled, otherwise disables it
29-
# BUILD_ONLY - only build xxx, a semi-colon delimited list, if this is set we will build only the projects listed. Core will always be built as will its unit tests.
29+
# BUILD_ONLY - a semi-colon delimited list, if this is set we will build only the projects listed. Core will always be built as will its unit tests.
3030
# Also if a high level client is specified then we will build its dependencies as well. If a project has tests, the tests will be built.
3131
# REGENERATE_CLIENTS - all clients being built on this run will be regenerated from the api definitions, this option involves some setup of python, java 8, jdk 1.8, and maven
3232
# ADD_CUSTOM_CLIENTS - semi-colon delimited list of format serviceName=<yourserviceName>,version=<theVersionNumber>;serviceName2=<yourOtherServiceName>,version=<versionNumber2>
@@ -67,12 +67,8 @@ endif()
6767

6868
SET(PYTHON_CMD "python")
6969

70-
# CMAKE_MODULE_PATH is a CMAKE variable. It contains a list of paths
71-
# which could be used to search CMAKE modules by "include()" or "find_package()", but the default value is empty.
72-
# Add cmake dir to search list
7370
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
7471

75-
# include() will "load and run" cmake script
7672
include(resolve_platform)
7773
include(CMakePackageConfigHelpers)
7874

@@ -129,45 +125,19 @@ include(build_external)
129125

130126
if(ENABLE_BCRYPT_ENCRYPTION)
131127
set(CRYPTO_LIBS Bcrypt)
132-
set(CRYPTO_LIBS_ABSTRACT_NAME Bcrypt)
133128
elseif(ENABLE_OPENSSL_ENCRYPTION)
134129
set(CRYPTO_LIBS ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES})
135-
set(CRYPTO_LIBS_ABSTRACT_NAME ssl z)
136130
endif()
137131

138132
if(ENABLE_CURL_CLIENT)
139133
set(CLIENT_LIBS ${CURL_LIBRARIES})
140-
set(CLIENT_LIBS_ABSTRACT_NAME curl)
141134
elseif(ENABLE_WINDOWS_CLIENT)
142135
if(USE_IXML_HTTP_REQUEST_2)
143136
set(CLIENT_LIBS msxml6 runtimeobject)
144-
set(CLIENT_LIBS_ABSTRACT_NAME msxml6 runtimeobject)
145137
else()
146138
set(CLIENT_LIBS Wininet winhttp)
147-
set(CLIENT_LIBS_ABSTRACT_NAME Wininet winhttp)
148139
endif()
149140
endif()
150141

151-
# setup user specified installation directory if any, regardless previous platform default settings
152-
if (CMAKE_INSTALL_BINDIR)
153-
SET(BINARY_DIRECTORY "${CMAKE_INSTALL_BINDIR}")
154-
endif()
155-
156-
if (CMAKE_INSTALL_LIBDIR)
157-
SET(LIBRARY_DIRECTORY "${CMAKE_INSTALL_LIBDIR}")
158-
endif()
159-
160-
if (CMAKE_INSTALL_INCLUDEDIR)
161-
SET(INCLUDE_DIRECTORY "${CMAKE_INSTALL_INCLUDEDIR}")
162-
endif()
163-
164-
if(BUILD_SHARED_LIBS)
165-
SET(ARCHIVE_DIRECTORY "${BINARY_DIRECTORY}")
166-
else()
167-
SET(ARCHIVE_DIRECTORY "${LIBRARY_DIRECTORY}")
168-
endif()
169-
170142
add_sdks()
171143

172-
# for user friendly sdk manager
173-
add_subdirectory(AWSSDK)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,7 @@ You can use the AWSCredentialProvider interface to provide login credentials to
455455
The default credential provider chain does the following:
456456
* Checks your environment variables for AWS Credentials
457457
* Checks your $HOME/.aws/credentials file for a profile and credentials
458-
* Contacts the ECSCredentialsProvider service to request credentials
459-
* If ECSCredentialsProvider is not available then contacts the EC2MetadataInstanceProfile service to request credentials
458+
* Contacts the EC2MetadataInstanceProfile service to request credentials
460459

461460
The simplest way to communicate with AWS is to ensure we can find your credentials in one of these locations.
462461

aws-cpp-sdk-text-to-speech/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ file( GLOB TEXT_TO_SPEECH_HEADERS "include/aws/text-to-speech/*.h" )
99

1010
set(PLATFORM_LIBS "")
1111

12-
# unset HAVE_PULSE to solve the warning "pulse not found" when pulse is installed after initial compile
13-
# this is because check_include_files tries to find HAVE_PULSE in CACHE after initial compile
14-
unset(HAVE_PULSE CACHE)
1512
check_include_files("pulse/simple.h" HAVE_PULSE)
1613

1714
if(PLATFORM_WINDOWS)

cmake/AWSSDK.cmake

Whitespace-only changes.

cmake/dependencies.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function(compute_links lib)
1313
endif()
1414
# Immediately return if output property is already set.
1515
get_property(complete TARGET ${lib} PROPERTY LINK_LIBRARIES_ALL SET)
16-
if(complete)
16+
if(completed)
1717
return()
1818
endif()
1919
# Initialize output property.
@@ -89,4 +89,4 @@ function(sort_links targets_list)
8989
endwhile()
9090
# Directly append the only element in the current input list to the resulted variable.
9191
set(${targets_list} ${output_list} ${current_input_list} PARENT_SCOPE)
92-
endfunction(sort_links)
92+
endfunction(sort_links)

0 commit comments

Comments
 (0)