core: require platform-specific versions of libsass

This commit is contained in:
Bogdan Popa 2019-09-24 12:18:58 +03:00
parent b646aed9ff
commit ccdbf0bfc5
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,9 @@
(define version "0.0.0") (define version "0.0.0")
(define collection "sass") (define collection "sass")
(define deps '("base" "libsass")) (define deps '("base"
("libsass-x86_64-linux" #:platform "x86_64-linux")
("libsass-x86_64-macosx" #:platform "x86_64-macosx")))
(define build-deps '("racket-doc" (define build-deps '("racket-doc"
"rackunit-lib" "rackunit-lib"
"scribble-lib")) "scribble-lib"))

View File

@ -1,8 +1,7 @@
#lang racket/base #lang racket/base
(require ffi/unsafe (require ffi/unsafe
ffi/unsafe/define ffi/unsafe/define)
libsass)
(provide (provide
bytes->unmanaged-cstring bytes->unmanaged-cstring
@ -35,7 +34,7 @@
;; Basics ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Basics ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-ffi-definer define-sass (ffi-lib (or libsass-path "libsass"))) (define-ffi-definer define-sass (ffi-lib "libsass"))
(define-sass libsass_version (_fun -> _string)) (define-sass libsass_version (_fun -> _string))
(define-sass libsass_language_version (_fun -> _string)) (define-sass libsass_language_version (_fun -> _string))