Skip to content

Commit

Permalink
native client stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Asmuth committed Feb 11, 2012
1 parent 6a12cce commit eefbce6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ task :default => "spec"

desc "Generate documentation"
task YARD::Rake::YardocTask.new


desc "Compile the native client"
task :build_native do
out_dir = ::File.expand_path("../bin", __FILE__)
src_dir = ::File.expand_path("../src", __FILE__)
%x{mkdir -p #{out_dir}}
%x{g++ -ansi -pedantic-errors -Wall #{src_dir}/recommendify.cpp -o #{out_dir}/recommendify}
end
9 changes: 9 additions & 0 deletions src/recommendify.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <iostream>

using namespace std;

int main()
{
cout << "recommendify rocks!" << endl;
return 0;
}

0 comments on commit eefbce6

Please sign in to comment.