diff options
author | Taylor C. Richberger <taywee@gmx.com> | 2018-10-20 13:31:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 13:31:54 -0600 |
commit | 34292e2a577325088780d54b94db56e5c9b270e9 (patch) | |
tree | 5472428dbde28fc076fad0a063dd806c3486f790 | |
parent | Merge pull request #65 from Rholais/patch-1 (diff) | |
parent | * Updates BUCK files (diff) | |
download | args.hxx-34292e2a577325088780d54b94db56e5c9b270e9.tar.xz |
Merge pull request #67 from njlr/master
Buck build support
-rw-r--r-- | .buckconfig | 7 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | BUCK | 25 | ||||
-rw-r--r-- | examples/BUCK | 19 | ||||
-rw-r--r-- | test/BUCK | 29 |
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/.* @@ -47,3 +47,8 @@ Makefile *-prefix gitlike /pages/ + +# Buck +/buck-out/ +/.buckd/ +.buckconfig.local @@ -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 |