-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from asfadmin/jsn
Add 6 SConscripts.
- Loading branch information
Showing
8 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/asf_meta/", | ||
"#src/libasf_proj/", | ||
"#src/libasf_raster/", | ||
"#src/libasf_sar", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs libgeotiff") | ||
localenv.ParseConfig("pkg-config --cflags --libs gsl") | ||
localenv.ParseConfig("pkg-config --cflags --libs glib-2.0") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
"asf", | ||
"asf_proj", | ||
"asf_meta", | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
"#" + os.path.join(head_build_dir, "asf"), | ||
"#" + os.path.join(head_build_dir, "libasf_proj"), | ||
"#" + os.path.join(head_build_dir, "asf_meta"), | ||
]) | ||
|
||
|
||
bins = localenv.Program("analyze_yaw", Glob("*.c")) | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["bins"], bins) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/asf_meta/", | ||
"#src/libasf_proj/", | ||
"#src/libasf_raster/", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs libgeotiff") | ||
localenv.ParseConfig("pkg-config --cflags --libs gsl") | ||
localenv.ParseConfig("pkg-config --cflags --libs libpng15") | ||
localenv.ParseConfig("pkg-config --cflags --libs glib-2.0") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
"asf", | ||
"asf_proj", | ||
"asf_raster", | ||
"asf_meta", | ||
"asf_fft", | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
"#" + os.path.join(head_build_dir, "asf"), | ||
"#" + os.path.join(head_build_dir, "libasf_proj"), | ||
"#" + os.path.join(head_build_dir, "asf_meta"), | ||
"#" + os.path.join(head_build_dir, "asf_fft"), | ||
"#" + os.path.join(head_build_dir, "libasf_raster"), | ||
]) | ||
|
||
|
||
bins = [ | ||
localenv.Program("fftMatch", ["fftMatch.c"]), | ||
localenv.Program("fftMatchGrid", ["fftMatchGrid.c"]), | ||
] | ||
|
||
docs = localenv.File("fftMatch.man") | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["bins"], bins) | ||
globalenv.Install(globalenv["inst_dirs"]["docs"], docs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/asf_meta/", | ||
"#src/libasf_proj/", | ||
"#src/libasf_raster/", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs libgeotiff") | ||
localenv.ParseConfig("pkg-config --cflags --libs gsl") | ||
localenv.ParseConfig("pkg-config --cflags --libs libpng15") | ||
localenv.ParseConfig("pkg-config --cflags --libs glib-2.0") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
"asf", | ||
"asf_proj", | ||
"asf_raster", | ||
"asf_meta", | ||
"asf_fft", | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
"#" + os.path.join(head_build_dir, "asf"), | ||
"#" + os.path.join(head_build_dir, "libasf_proj"), | ||
"#" + os.path.join(head_build_dir, "asf_meta"), | ||
"#" + os.path.join(head_build_dir, "asf_fft"), | ||
"#" + os.path.join(head_build_dir, "libasf_raster"), | ||
]) | ||
|
||
|
||
bins = localenv.Program("fit_warp", Glob("*.c")) | ||
docs = localenv.File(["fit_warp.1"]) | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["bins"], bins) | ||
globalenv.Install(globalenv["inst_dirs"]["docs"], docs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/asf_meta/", | ||
"#src/libasf_proj/", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs libgeotiff") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
]) | ||
|
||
|
||
libs = localenv.SharedLibrary("libasf_remap", Glob("*.c")) | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["libs"], libs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/libasf_remap", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs gsl") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
"asf", | ||
"asf_proj", | ||
"asf_meta", | ||
"asf_remap", | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
"#" + os.path.join(head_build_dir, "asf"), | ||
"#" + os.path.join(head_build_dir, "libasf_proj"), | ||
"#" + os.path.join(head_build_dir, "asf_meta"), | ||
"#" + os.path.join(head_build_dir, "libasf_remap"), | ||
]) | ||
|
||
|
||
bins = localenv.Program("remap", Glob("*.c")) | ||
docs = localenv.File(["remap.1"]) | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["bins"], bins) | ||
globalenv.Install(globalenv["inst_dirs"]["docs"], docs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import os.path | ||
|
||
Import("globalenv") | ||
localenv = globalenv.Clone() | ||
|
||
localenv.AppendUnique(CPPPATH = [ | ||
"#src/asf/", | ||
"#include/", | ||
"#src/asf_meta/", | ||
"#src/libasf_proj/", | ||
"#src/libasf_import/", | ||
]) | ||
|
||
localenv.ParseConfig("pkg-config --cflags --libs libgeotiff") | ||
localenv.ParseConfig("pkg-config --cflags --libs gsl") | ||
|
||
localenv.AppendUnique(LIBS = [ | ||
"asf", | ||
"asf_import", | ||
"asf_proj", | ||
"asf_raster", | ||
"asf_meta", | ||
"asf_sar", | ||
"asf_fft", | ||
]) | ||
|
||
head_build_dir, tail_build_dir = os.path.split(Dir(".").path) | ||
|
||
localenv.AppendUnique(LIBPATH = [ | ||
"#" + os.path.join(head_build_dir, "asf"), | ||
"#" + os.path.join(head_build_dir, "libasf_proj"), | ||
"#" + os.path.join(head_build_dir, "asf_meta"), | ||
"#" + os.path.join(head_build_dir, "libasf_sar"), | ||
"#" + os.path.join(head_build_dir, "asf_fft"), | ||
"#" + os.path.join(head_build_dir, "libasf_import"), | ||
"#" + os.path.join(head_build_dir, "libasf_raster"), | ||
]) | ||
|
||
|
||
bins = localenv.Program("write_ppf", Glob("*.c")) | ||
|
||
globalenv.Install(globalenv["inst_dirs"]["bins"], bins) |