Hi, as in subject.

I'm using it in my scons.my wrapper which looks like this:

---------------------------------8<-------------------------------
#! /bin/sh

scons                            \
    Prefix=$HOME                 \
    PLTPrefix="/usr"             \
    PreIncludePath=$HOME/include \
    PreLibPath=$HOME/lib         \
---------------------------------8<-------------------------------

This is way I have some of the lib included in my home, anyway this
should help to use other paths different from the standard ones
avoiding the need to hack the SConstruct file.

BTW, I'm currently unable to compile, scons bails out with:
scons.my
scons: Reading SConscript files ...
--------------------------------------------------------
Fluxus: Configuring Build Environment
--------------------------------------------------------
Checking for C library m... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library mzscheme3m... (cached) yes
Checking for C library jpeg... (cached) yes
Checking for C library tiff... (cached) yes
Checking for C library freetype... (cached) yes
Checking for C library z... (cached) yes
Checking for C library png... (cached) yes
Checking for C library ode... (cached) yes
Checking for C library sndfile... (cached) yes
Checking for C library fftw3... (cached) yes
Checking for C library lo... (cached) yes
Checking for C library GLEW... (cached) yes
Checking for C library GL... (cached) yes
Checking for C library GLU... (cached) yes
Checking for C library glut... (cached) yes
Checking for C library asound... (cached) yes
Checking for C library openal... (cached) yes
Checking for C function dInitODE2()... (cached) yes
Checking for C++ function lo_arg_size_check()... (cached) yes
Checking requirements for fluxus-video_ss ...
Checking for C header file GL/glew.h... (cached) yes
Checking for C header file gst/app/gstappsink.h... (cached) yes
fluxus-video_ss requirements... yes
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `\' 
(/home/stefano/src/fluxus/\).  Stop.
scons: building terminated because of errors.

While I am reading the scons man, could someone help me figure out
what's going awry?

Regards.
>From 457d32f91333697edc5853e531be696e70f403cb Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <[email protected]>
Date: Mon, 1 Mar 2010 21:30:12 +0100
Subject: [PATCH] Define PreLibPath and PreIncludePath in ARGUMENTS.

This allows to specify to look for libraries different from the one
included in the the standard locations, for example if the user has
some library installed in particular paths and she wants to override
the system paths.
---
 SConstruct |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/SConstruct b/SConstruct
index ea7db35..225ef29 100644
--- a/SConstruct
+++ b/SConstruct
@@ -23,6 +23,9 @@ DESTDIR = ARGUMENTS.get('DESTDIR', '')
 if len(DESTDIR)>0 and DESTDIR[0] != "/":
                 DESTDIR = "#" + DESTDIR
 
+PreLibPath     = ARGUMENTS.get('PreLibPath'    , '')
+PreIncludePath = ARGUMENTS.get('PreIncludePath', '')
+
 if sys.platform == 'darwin':
 	AddOption('--app', action='store_true', help='Build OSX application')
 	file = os.popen('dirname "`which mzscheme`"')
@@ -61,12 +64,14 @@ if sys.platform == 'darwin' and GetOption('app'):
         DataLocation = '/Applications/Fluxus.app/Contents/Resources'
 
 LibPaths     = [
+        PreLibPath,
         PLTLib,
         PLTLib+"/..",
         "/usr/lib",
         "../../libfluxus"]
 
 IncludePaths = [
+        PreIncludePath,
         "/usr/local/include",
         "/usr/include",
         "/usr/local/include/freetype2",  # arg - freetype needs to be
-- 
1.6.6.1

Reply via email to