sqlite3_libsqlite3.go 660 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2019 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
  2. //
  3. // Use of this source code is governed by an MIT-style
  4. // license that can be found in the LICENSE file.
  5. //go:build libsqlite3
  6. // +build libsqlite3
  7. package sqlite3
  8. /*
  9. #cgo CFLAGS: -DUSE_LIBSQLITE3
  10. #cgo linux LDFLAGS: -lsqlite3
  11. #cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/sqlite/lib -lsqlite3
  12. #cgo darwin,amd64 CFLAGS: -I/usr/local/opt/sqlite/include
  13. #cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/sqlite/lib -lsqlite3
  14. #cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/sqlite/include
  15. #cgo openbsd LDFLAGS: -lsqlite3
  16. #cgo solaris LDFLAGS: -lsqlite3
  17. #cgo windows LDFLAGS: -lsqlite3
  18. */
  19. import "C"