diff options
author | stuartmorgan <stuartmorgan@chromium.org> | 2015-03-04 11:58:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-04 19:58:40 +0000 |
commit | 94d1d75fa0eeb88e455e6bc38478cb78c8e6318c (patch) | |
tree | 84f8362f36c7d93658a435037793a0e18d148253 /ios/third_party | |
parent | e992df382f5e8cf6a04f1fe201e4cc7ef0718720 (diff) | |
download | chromium_src-94d1d75fa0eeb88e455e6bc38478cb78c8e6318c.zip chromium_src-94d1d75fa0eeb88e455e6bc38478cb78c8e6318c.tar.gz chromium_src-94d1d75fa0eeb88e455e6bc38478cb78c8e6318c.tar.bz2 |
Upstream the third-party gcdwebserver dependency for iOS
This is used in iOS tests to serve test content without relying on network-layer interception.
BUG=None
Review URL: https://codereview.chromium.org/927463003
Cr-Commit-Position: refs/heads/master@{#319108}
Diffstat (limited to 'ios/third_party')
-rw-r--r-- | ios/third_party/gcdwebserver/LICENSE | 24 | ||||
-rw-r--r-- | ios/third_party/gcdwebserver/OWNERS | 2 | ||||
-rw-r--r-- | ios/third_party/gcdwebserver/README.chromium | 10 | ||||
-rw-r--r-- | ios/third_party/gcdwebserver/gcdwebserver.gyp | 63 |
4 files changed, 99 insertions, 0 deletions
diff --git a/ios/third_party/gcdwebserver/LICENSE b/ios/third_party/gcdwebserver/LICENSE new file mode 100644 index 0000000..12335de --- /dev/null +++ b/ios/third_party/gcdwebserver/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2012-2014, Pierre-Olivier Latour +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * The name of Pierre-Olivier Latour may not be used to endorse + or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/ios/third_party/gcdwebserver/OWNERS b/ios/third_party/gcdwebserver/OWNERS new file mode 100644 index 0000000..1b3348e --- /dev/null +++ b/ios/third_party/gcdwebserver/OWNERS @@ -0,0 +1,2 @@ +rohitrao@chromium.org +stuartmorgan@chromium.org diff --git a/ios/third_party/gcdwebserver/README.chromium b/ios/third_party/gcdwebserver/README.chromium new file mode 100644 index 0000000..829fed3 --- /dev/null +++ b/ios/third_party/gcdwebserver/README.chromium @@ -0,0 +1,10 @@ +Name: gcdwebserver +URL: https://github.com/swisspol/GCDWebServer +Version: 3.2 +License: 3-clause BSD +License File: NOT_SHIPPED +Security Critical: no + +Description: +GCDWebServer is a modern and lightweight GCD based HTTP 1.1 server designed to +be embedded in OS X & iOS apps. diff --git a/ios/third_party/gcdwebserver/gcdwebserver.gyp b/ios/third_party/gcdwebserver/gcdwebserver.gyp new file mode 100644 index 0000000..a1b4210 --- /dev/null +++ b/ios/third_party/gcdwebserver/gcdwebserver.gyp @@ -0,0 +1,63 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'targets' : [ + { + 'target_name' : 'gcdwebserver', + 'type': 'static_library', + 'include_dirs': [ + 'src/GCDWebServer/Core', + 'src/GCDWebServer/Requests', + 'src/GCDWebServer/Responses', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + 'src/GCDWebServer/Core', + 'src/GCDWebServer/Requests', + 'src/GCDWebServer/Responses', + ], + }, + 'xcode_settings': { + 'CLANG_ENABLE_OBJC_ARC': 'YES', + }, + 'sources': [ + 'src/GCDWebServer/Core/GCDWebServer.h', + 'src/GCDWebServer/Core/GCDWebServer.m', + 'src/GCDWebServer/Core/GCDWebServerConnection.h', + 'src/GCDWebServer/Core/GCDWebServerConnection.m', + 'src/GCDWebServer/Core/GCDWebServerFunctions.h', + 'src/GCDWebServer/Core/GCDWebServerFunctions.m', + 'src/GCDWebServer/Core/GCDWebServerHTTPStatusCodes.h', + 'src/GCDWebServer/Core/GCDWebServerPrivate.h', + 'src/GCDWebServer/Core/GCDWebServerRequest.h', + 'src/GCDWebServer/Core/GCDWebServerRequest.m', + 'src/GCDWebServer/Core/GCDWebServerResponse.h', + 'src/GCDWebServer/Core/GCDWebServerResponse.m', + 'src/GCDWebServer/Requests/GCDWebServerDataRequest.h', + 'src/GCDWebServer/Requests/GCDWebServerDataRequest.m', + 'src/GCDWebServer/Requests/GCDWebServerFileRequest.h', + 'src/GCDWebServer/Requests/GCDWebServerFileRequest.m', + 'src/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.h', + 'src/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.m', + 'src/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.h', + 'src/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.m', + 'src/GCDWebServer/Responses/GCDWebServerDataResponse.h', + 'src/GCDWebServer/Responses/GCDWebServerDataResponse.m', + 'src/GCDWebServer/Responses/GCDWebServerErrorResponse.h', + 'src/GCDWebServer/Responses/GCDWebServerErrorResponse.m', + 'src/GCDWebServer/Responses/GCDWebServerFileResponse.h', + 'src/GCDWebServer/Responses/GCDWebServerFileResponse.m', + 'src/GCDWebServer/Responses/GCDWebServerStreamedResponse.h', + 'src/GCDWebServer/Responses/GCDWebServerStreamedResponse.m', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework', + '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', + '$(SDKROOT)/usr/lib/libz.dylib', + ], + }, + }, + ], +} |