From 8636e7d337876ccab30915ddd033ffa7f41a045f Mon Sep 17 00:00:00 2001 From: njlr Date: Fri, 19 Oct 2018 14:08:52 +0100 Subject: * Adds Buck build support --- .buckconfig | 7 +++++++ .gitignore | 5 +++++ BUCK | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .buckconfig create mode 100644 BUCK diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 0000000..71543fc --- /dev/null +++ b/.buckconfig @@ -0,0 +1,7 @@ +[project] + ignore = .git + +[cxx] + should_remap_host_platform = true + untracked_headers = error + untracked_headers_whitelist = /usr/include/.*, /usr/lib/gcc/.* diff --git a/.gitignore b/.gitignore index 3b651bd..bfde3ef 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,8 @@ Makefile *-prefix gitlike /pages/ + +# Buck +/buck-out/ +/.buckd/ +.buckconfig.local diff --git a/BUCK b/BUCK new file mode 100644 index 0000000..7c6e98a --- /dev/null +++ b/BUCK @@ -0,0 +1,35 @@ +prebuilt_cxx_library( + name = 'args', + header_namespace = '', + header_only = True, + exported_headers = [ + 'args.hxx', + ], + visibility = [ + 'PUBLIC', + ], +) + +cxx_binary( + name = 'test', + header_namespace = '', + headers = [ + 'catch.hpp', + ], + srcs = [ + 'test.cxx', + ], + deps = [ + ':args', + ], +) + +cxx_binary( + name = 'gitlike', + srcs = [ + 'gitlike.cxx', + ], + deps = [ + ':args', + ], +) -- cgit v1.2.1