Skip to content

Commit

Permalink
* Adds Buck build support
Browse files Browse the repository at this point in the history
  • Loading branch information
njlr committed Oct 19, 2018
1 parent 24868af commit 8636e7d
Show file tree
Hide file tree
Showing 3 changed files with 47 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
35 changes: 35 additions & 0 deletions BUCK
Original file line number Diff line number Diff line change
@@ -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',
],
)

0 comments on commit 8636e7d

Please sign in to comment.