sqlite3_opt_icu.go raw

   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  
   6  //go:build sqlite_icu || icu
   7  // +build sqlite_icu icu
   8  
   9  package sqlite3
  10  
  11  /*
  12  #cgo LDFLAGS: -licuuc -licui18n
  13  #cgo CFLAGS: -DSQLITE_ENABLE_ICU
  14  #cgo darwin,amd64 CFLAGS:  -I/usr/local/opt/icu4c/include
  15  #cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/icu4c/lib
  16  #cgo darwin,arm64 CFLAGS:  -I/opt/homebrew/opt/icu4c/include
  17  #cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/icu4c/lib
  18  #cgo openbsd LDFLAGS: -lsqlite3
  19  */
  20  import "C"
  21