Skip to content

Commit

Permalink
upgrading to swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Mar 14, 2019
1 parent 2998486 commit 5c04d84
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.0
// swift-tools-version:4.2

import PackageDescription

Expand All @@ -10,12 +10,18 @@ let package = Package(
targets: ["PerfectPCRE2"]),
],
dependencies: [
.package(url: "https://github.com/RockfordWei/pcre2api.git", from: "1.0.0"),
],
targets: [
.systemLibrary(name: "pcre2api",
pkgConfig: "libpcre2-8",
providers: [
.apt(["libpcre2-dev"]),
.brew(["pcre2"])
]
),
.target(
name: "PerfectPCRE2",
dependencies: []),
dependencies: ["pcre2api"]),
.testTarget(
name: "PerfectPCRE2Tests",
dependencies: ["PerfectPCRE2"]),
Expand Down
4 changes: 4 additions & 0 deletions Sources/pcre2api/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module pcre2api [system] {
header "pcre2api.h"
export *
}
7 changes: 7 additions & 0 deletions Sources/pcre2api/pcre2api.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef __PCRE2_API__
#define __PCRE2_API__
#define PCRE2_CODE_UNIT_WIDTH 8

#include "pcre2.h"

#endif

0 comments on commit 5c04d84

Please sign in to comment.