From 7266c248963f5ffa34d94666f5286025ed72761b Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 17 Oct 2015 00:24:54 -0700 Subject: [PATCH] Rewrite the src SConscript --- src/SConscript | 22 +--------------------- src/hello.cc | 8 ++++++++ 2 files changed, 9 insertions(+), 21 deletions(-) create mode 100644 src/hello.cc diff --git a/src/SConscript b/src/SConscript index f0639e5..5d9a22e 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,25 +1,5 @@ # SConscript # vim: set ft=python: -# # Eryn Wells -import os.path - -Import('env') - - -subdirs = [ - # TODO: Put subdirectories here. -] - -for d in subdirs: - env.SConscript(os.path.join(d, 'SConscript'), {'env': env}) - - -files = [ - # TODO: Put files here. -] - -objs = [] -for f in files: - objs.append(env.Object(f)) +Program('hello', ['hello.cc']) diff --git a/src/hello.cc b/src/hello.cc new file mode 100644 index 0000000..b02d2e0 --- /dev/null +++ b/src/hello.cc @@ -0,0 +1,8 @@ +#include + +int +main() +{ + std::cout << "Hello world!" << std::endl; + return 0; +}