diff --git a/nativeLib/gridslice/src/build_osx.sh b/nativeLib/gridslice/src/build_osx.sh new file mode 100755 index 0000000000..902fe3135b --- /dev/null +++ b/nativeLib/gridslice/src/build_osx.sh @@ -0,0 +1,11 @@ +#!/bin/bash -fv +# +# build_osx.sh: Build gridslice library for macOS +# author: mjames@ucar +# +export C_INCLUDE_PATH=/System/Library/Frameworks/Python.framework/Headers +export CFLAGS="-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/ -I /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include $CFLAGS" +gcc -c -fPIC $CFLAGS gridslice.c -o gridslice.o +gcc -c -fPIC $CFLAGS sliceConvert.c -o sliceConvert.o +gcc gridslice.o sliceConvert.o -lpython -shared -o gridslice.so +# cp gridslice.so /Library/Python/2.7/site-packages/ diff --git a/nativeLib/gridslice/src/gridslice.c b/nativeLib/gridslice/src/gridslice.c index 247c97ff20..a281967084 100644 --- a/nativeLib/gridslice/src/gridslice.c +++ b/nativeLib/gridslice/src/gridslice.c @@ -1,23 +1,3 @@ -/***************************************************************************************** - * COPYRIGHT (c), 2009, RAYTHEON COMPANY - * ALL RIGHTS RESERVED, An Unpublished Work - * - * RAYTHEON PROPRIETARY - * If the end user is not the U.S. Government or any agency thereof, use - * or disclosure of data contained in this source code file is subject to - * the proprietary restrictions set forth in the Master Rights File. - * - * U.S. GOVERNMENT PURPOSE RIGHTS NOTICE - * If the end user is the U.S. Government or any agency thereof, this source - * code is provided to the U.S. Government with Government Purpose Rights. - * Use or disclosure of data contained in this source code file is subject to - * the "Government Purpose Rights" restriction in the Master Rights File. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * Use or disclosure of data contained in this source code file is subject to - * the export restrictions set forth in the Master Rights File. - ******************************************************************************************/ - /* * Python module that utilizes the AWIPSI sliceConvert functions to offer * slicing capability to numpy arrays. diff --git a/nativeLib/gridslice/src/gridslice.so b/nativeLib/gridslice/src/gridslice.so new file mode 100755 index 0000000000..2581ba09e0 Binary files /dev/null and b/nativeLib/gridslice/src/gridslice.so differ