6cea8929e6
Only when compiling with cmake will sclang-vars.el be written. This commit moves relevant constants into customizable vars. Only if the `sclang-system-data-dir` exists is it respected, otherwise it will guess the proper location by looking at the system-type. The purpose of this is to make it possible to build and distribute a package independent of the SuperCollider build process, while ensuring that those users who have become accustomed to the current install process are not disrupted.
38 lines
1.4 KiB
EmacsLisp
38 lines
1.4 KiB
EmacsLisp
;;; sclang-vars.el --- Variables with build-time defaults
|
|
|
|
;; Copyright (C) 2005 Free Software Foundation, Inc.
|
|
|
|
;; Author: Mario Lang <mlang@blind.guru>
|
|
|
|
;; This file is free software; you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
;; any later version.
|
|
|
|
;; This file is distributed in the hope that it will be useful,
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;; GNU General Public License for more details.
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to
|
|
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
;; Boston, MA 02110-1301, USA.
|
|
|
|
;;; Commentary:
|
|
;;
|
|
;; This file is included in the distribution in order to convey system
|
|
;; installation variables which are known at compile time, but only when
|
|
;; the library is installed with cmake along with SuperCollider source.
|
|
;;
|
|
;; When using the stand-alone package, this file can be ignored and
|
|
;; the constants it defines will have no effect.
|
|
|
|
;;; Code:
|
|
|
|
(defconst sclang-system-data-dir "@PKG_DATA_DIR@"
|
|
"Installation dependent data directory.
|
|
Bound only when library is installed with SuperCollider.")
|
|
|
|
(provide 'sclang-vars)
|
|
;;; sclang-vars.el ends here
|