Skip to content

Commit 4c77eb3

Browse files
committed
MySQL installer based module
1 parent bb583dd commit 4c77eb3

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

Package.swift

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// Package.swift
3+
// PerfectLib
4+
//
5+
// Created by Kyle Jessup on 3/22/16.
6+
// Copyright (C) 2016 PerfectlySoft, Inc.
7+
//
8+
//===----------------------------------------------------------------------===//
9+
//
10+
// This source file is part of the Perfect.org open source project
11+
//
12+
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
13+
// Licensed under Apache License v2.0
14+
//
15+
// See http://perfect.org/licensing.html for license information
16+
//
17+
//===----------------------------------------------------------------------===//
18+
//
19+
20+
import PackageDescription
21+
22+
let package = Package(
23+
name: "mysqlclient",
24+
pkgConfig: "mysqlclient",
25+
providers: []
26+
)

Sources/mysqlclient.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+

module.modulemap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module mysqlclient {
2+
header "/usr/local/mysql/include/mysql.h"
3+
link "mysqlclient"
4+
export *
5+
}

0 commit comments

Comments
 (0)