Skip to content

Commit

Permalink
Merge pull request #67 from njlr/master
Browse files Browse the repository at this point in the history
Buck build support
  • Loading branch information
Taylor C. Richberger authored Oct 20, 2018
2 parents 24868af + 106293b commit 34292e2
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[project]
ignore = .git

[cxx]
should_remap_host_platform = true
untracked_headers = error
untracked_headers_whitelist = /usr/include/.*, /usr/lib/gcc/.*
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ Makefile
*-prefix
gitlike
/pages/

# Buck
/buck-out/
/.buckd/
.buckconfig.local
25 changes: 25 additions & 0 deletions BUCK
Original file line number Diff line number Diff line change
@@ -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',
],
)
19 changes: 19 additions & 0 deletions examples/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cxx_binary(
name = 'gitlike',
srcs = [
'gitlike.cxx',
],
deps = [
'//:args',
],
)

cxx_binary(
name = 'completion',
srcs = [
'completion.cxx',
],
deps = [
'//:args',
],
)
29 changes: 29 additions & 0 deletions test/BUCK
Original file line number Diff line number Diff line change
@@ -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',
],
)

0 comments on commit 34292e2

Please sign in to comment.