aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <taywee@gmx.com>2018-10-20 13:31:54 -0600
committerGitHub <noreply@github.com>2018-10-20 13:31:54 -0600
commit34292e2a577325088780d54b94db56e5c9b270e9 (patch)
tree5472428dbde28fc076fad0a063dd806c3486f790
parentMerge pull request #65 from Rholais/patch-1 (diff)
parent * Updates BUCK files (diff)
downloadargs.hxx-34292e2a577325088780d54b94db56e5c9b270e9.tar.xz
Merge pull request #67 from njlr/master
Buck build support
-rw-r--r--.buckconfig7
-rw-r--r--.gitignore5
-rw-r--r--BUCK25
-rw-r--r--examples/BUCK19
-rw-r--r--test/BUCK29
5 files changed, 85 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..7a1ec05
--- /dev/null
+++ b/BUCK
@@ -0,0 +1,25 @@
+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',
+ ],
+)
diff --git a/examples/BUCK b/examples/BUCK
new file mode 100644
index 0000000..2f5b01b
--- /dev/null
+++ b/examples/BUCK
@@ -0,0 +1,19 @@
+cxx_binary(
+ name = 'gitlike',
+ srcs = [
+ 'gitlike.cxx',
+ ],
+ deps = [
+ '//:args',
+ ],
+)
+
+cxx_binary(
+ name = 'completion',
+ srcs = [
+ 'completion.cxx',
+ ],
+ deps = [
+ '//:args',
+ ],
+)
diff --git a/test/BUCK b/test/BUCK
new file mode 100644
index 0000000..de76295
--- /dev/null
+++ b/test/BUCK
@@ -0,0 +1,29 @@
+cxx_binary(
+ name = 'multiple-inclusion-1',
+ srcs = [
+ 'multiple_inclusion_1.cxx',
+ ],
+ deps = [
+ '//:args',
+ ],
+)
+
+cxx_binary(
+ name = 'multiple-inclusion-2',
+ srcs = [
+ 'multiple_inclusion_2.cxx',
+ ],
+ deps = [
+ '//:args',
+ ],
+)
+
+cxx_binary(
+ name = 'windows-h',
+ srcs = [
+ 'windows_h.cxx',
+ ],
+ deps = [
+ '//:args',
+ ],
+) \ No newline at end of file