#!/bin/false import os import os.path import glob Import('env') dir_path = Dir('.').abspath # Environment for base library examples_env = env.Clone(); examples_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) examples_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) env.sources += examples_env.sources; env.headers += examples_env.headers; examples_objects = []; examples_env.add_source_files(examples_objects, ['remote_write_file.cpp'], shared=False); examples_env.remote_file_write = examples_env.Program('#bin/remote_write_file', [env.library_static, examples_objects]); examples_objects = []; examples_env.add_source_files(examples_objects, ['remote_read_file.cpp'], shared=False); examples_env.remote_file_read = examples_env.Program('#bin/remote_read_file', [env.library_static, examples_objects]); # Set Alias env.examples = [ #, examples_env.echo_server examples_env.remote_file_write, examples_env.remote_file_read ]; env.Alias('examples', env.examples); if env["build_examples"]: env.targets += ['examples']; env.Install('$prefix/bin/', env.examples); #endif