ronw@624: # CARFAC Open Source C++ Library ronw@624: # ronw@624: # This C++ file is part of an implementation of Lyon's cochlear model: ronw@624: # "Cascade of Asymmetric Resonators with Fast-Acting Compression" ronw@624: # to supplement Lyon's upcoming book "Human and Machine Hearing" ronw@624: # ronw@624: # Licensed under the Apache License, Version 2.0 (the "License"); ronw@624: # you may not use this file except in compliance with the License. ronw@624: # You may obtain a copy of the License at ronw@624: # ronw@624: # http://www.apache.org/licenses/LICENSE-2.0 ronw@624: # ronw@624: # Unless required by applicable law or agreed to in writing, software ronw@624: # distributed under the License is distributed on an "AS IS" BASIS, ronw@624: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ronw@624: # See the License for the specific language governing permissions and ronw@624: # limitations under the License. ronw@624: ronw@624: ## @author Ron Weiss ronw@624: # @date created 2013/05/21 ronw@624: # @version \$Id$ ronw@624: ronw@624: """@package SConstruct ronw@624: SConstruct file for the CARFAC Open Source C++ Library. ronw@624: ronw@624: To install dependencies and build on Ubuntu, run: ronw@624: ronw@624: sudo apt-get install libeigen3-dev scons ronw@624: export EIGEN_PATH=/usr/include/eigen3 ronw@624: scons ronw@624: """ ronw@624: ronw@624: import os ronw@624: ronw@624: carfac_sources = [ ronw@624: 'agc_params.cc', ronw@624: 'carfac.cc', ronw@624: 'carfac_common.cc', ronw@624: 'carfac_output.cc', ronw@624: 'car_params.cc', ronw@624: 'ear.cc', ronw@624: 'ear_output.cc', ronw@624: 'ihc_params.cc', ronw@624: ] ronw@624: ronw@624: env = Environment(CPPPATH=[os.environ['EIGEN_PATH']]) ronw@624: # Needed to support std::vector initialization lists. ronw@624: env.MergeFlags(['-std=c++0x']) ronw@624: env.Library(target = 'carfac', source = carfac_sources)