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