camlistored: make sqlite a build option.

Change-Id: Ib3624f162aae2130e524cf6a04c3f0fa8f07a01c
This commit is contained in:
Brad Fitzpatrick 2012-04-13 16:16:24 -07:00
parent a519105585
commit 92f5835bb4
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// +build with_sqlite
// If the "with_sqlite" build tag is specified, the sqlite index driver
// is also built & loaded:
//
// go install -tags=with_sqlite camlistore.org/server/camlistored
//
// This is an option because the sqlite3 SQL driver requires cgo & the
// SQLite3 C library available. We want it to still be possible to
// have a pure Go server too.
package main
import (
_ "camlistore.org/pkg/index/sqlite"
)