Skip to content

Commit

Permalink
Merge pull request #1 from ypopovych/master
Browse files Browse the repository at this point in the history
Better Package.swift, modulemap, header
  • Loading branch information
dileping authored Feb 28, 2017
2 parents e89fae7 + 4198cb1 commit d20078b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import PackageDescription

let package = Package(
name: "CEHVTP",
pkgConfig: "evhtp",
providers: [
.Apt("libevhtp-dev"),
.Brew("libevhtp")
]
)
24 changes: 24 additions & 0 deletions cevhtp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//===--- cevhtp.h -------------------------------------------------------===//
//
//Copyright (c) 2016 Daniel Leping (dileping)
//
//This file is part of CEVHTP.
//
//PathToRegex is free software: you can redistribute it and/or modify
//it under the terms of the GNU Lesser General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//PathToRegex is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public License
//along with PathToRegex. If not, see <http://www.gnu.org/licenses/>.
//
//===----------------------------------------------------------------------===//

#include <evhtp/evhtp.h>
#include <evhtp/htparse.h>
#include <event2/thread.h>
3 changes: 1 addition & 2 deletions module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
//===----------------------------------------------------------------------===//

module CEVHTP [system] {
header "/usr/local/include/evhtp.h"
header "/usr/local/include/htparse.h"
umbrella header "cevhtp.h"
link "evhtp"
link "ssl"
link "crypto"
Expand Down

0 comments on commit d20078b

Please sign in to comment.