#!/usr/bin/env python #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Author: Piyush Agram # Copyright 2019, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. # Any commercial use must be negotiated with the Office of Technology Transfer at the California Institute of Technology. # # This software may be subject to U.S. export control laws. By accepting this software, the user agrees to comply with all applicable U.S. # export laws and regulations. User has the responsibility to obtain export licenses, or other export authority as may be required before # exporting such information to foreign countries or providing access to foreign persons. # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ import os Import('envgeogrid') build = envgeogrid['PRJ_LIB_DIR'] envgeogrid.AppendUnique(CXXFLAGS = '-fopenmp') envgeogrid.AppendUnique(CXXFLAGS = '-std=c++11') listFiles = ['geogrid.cpp'] lib = envgeogrid.Library(target = 'geogrid', source = listFiles) envgeogrid.Install(build,lib) envgeogrid.Alias('build',build)