Skip to content

Commit

Permalink
Better Package.swift and modulemap
Browse files Browse the repository at this point in the history
Updated includes to the new libevhtp version
  • Loading branch information
ypopovych committed Feb 28, 2017
1 parent 4852dd6 commit 4198cb1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import PackageDescription

let package = Package(
name: "CEHVTP"
name: "CEHVTP",
pkgConfig: "evhtp",
providers: [
.Apt("libevhtp-dev"),
.Brew("libevhtp")
]
)
4 changes: 2 additions & 2 deletions cevhtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
//
//===----------------------------------------------------------------------===//

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

module CEVHTP [system] {
header "cevhtp.h"
umbrella header "cevhtp.h"
link "evhtp"
link "ssl"
link "crypto"
Expand Down

0 comments on commit 4198cb1

Please sign in to comment.