aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjlr <njlr@users.noreply.github.com>2018-10-19 14:08:52 +0100
committernjlr <njlr@users.noreply.github.com>2018-10-19 14:09:50 +0100
commit8636e7d337876ccab30915ddd033ffa7f41a045f (patch)
treec086ed527390e8866a5ff2d71af1c2163b899b17
parentMerge pull request #65 from Rholais/patch-1 (diff)
downloadargs.hxx-8636e7d337876ccab30915ddd033ffa7f41a045f.tar.xz
* Adds Buck build support
-rw-r--r--.buckconfig7
-rw-r--r--.gitignore5
-rw-r--r--BUCK35
3 files changed, 47 insertions, 0 deletions
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',
+ ],
+)