Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.
/ gobolt Public archive

Commit

Permalink
Add support for selective pkg-config directives based on build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince committed Oct 30, 2018
1 parent 153fba8 commit b5134c7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
2 changes: 0 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
package gobolt

/*
#cgo pkg-config: seabolt17
#include <stdlib.h>
#include "bolt/bolt.h"
Expand Down
25 changes: 25 additions & 0 deletions seabolt-static.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// +build seabolt_static

/*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package gobolt

// #cgo pkg-config: seabolt17-static
import "C"
24 changes: 24 additions & 0 deletions seabolt.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// +build !seabolt_static

/*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gobolt

// #cgo pkg-config: seabolt17
import "C"

0 comments on commit b5134c7

Please sign in to comment.