Skip to content

Commit

Permalink
* Added Buck builds
Browse files Browse the repository at this point in the history
  • Loading branch information
njlr committed Jul 26, 2017
1 parent 5dcc564 commit ce2a4f7
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[project]
ignore = .git
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ Makefile
# local build(s)
build*

# Buck
/.buckd/
/buck-out/
/buckaroo/
.buckconfig.local
BUCKAROO_DEPS
15 changes: 15 additions & 0 deletions BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cxx_library(
name = 'glm',
header_namespace = 'glm',
exported_headers = subdir_glob([
('glm', '**/*.hpp'),
('glm', '**/*.h'),
('glm', '**/*.inl'),
]),
srcs = [
'glm/detail/glm.cpp',
],
visibility = [
'PUBLIC',
],
)
3 changes: 3 additions & 0 deletions buckaroo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "glm"
}
9 changes: 9 additions & 0 deletions test/bug/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cxx_binary(
name = 'bug',
srcs = [
'bug_ms_vec_static.cpp',
],
deps = [
'//:glm',
],
)
26 changes: 26 additions & 0 deletions test/core/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from os.path import splitext

# cxx_binary(
# name = 'core_force_pure',
# srcs = [
# 'core_force_pure.cpp',
# ],
# deps = [
# '//:glm',
# ],
# )

tests = glob([
'*.cpp',
])

for test in tests:
cxx_binary(
name = splitext(test)[0],
srcs = [
test,
],
deps = [
'//:glm',
],
)
14 changes: 14 additions & 0 deletions test/external/gli/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cxx_binary(
name = 'gli',
header_namespace = '',
headers = subdir_glob([
('', '**/*.hpp'),
('', '**/*.inl'),
]),
srcs = glob([
'**/*.cpp',
]),
deps = [
'//:glm',
],
)
26 changes: 26 additions & 0 deletions test/gtc/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from os.path import splitext

# cxx_binary(
# name = 'gtc_bitfield',
# srcs = [
# 'gtc_bitfield.cpp',
# ],
# deps = [
# '//:glm',
# ],
# )

tests = glob([
'*.cpp',
])

for test in tests:
cxx_binary(
name = splitext(test)[0],
srcs = [
test,
],
deps = [
'//:glm',
],
)
26 changes: 26 additions & 0 deletions test/gtx/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from os.path import splitext

# cxx_binary(
# name = 'gtx_associated_min_max',
# srcs = [
# 'gtx_associated_min_max.cpp',
# ],
# deps = [
# '//:glm',
# ],
# )

tests = glob([
'*.cpp',
])

for test in tests:
cxx_binary(
name = splitext(test)[0],
srcs = [
test,
],
deps = [
'//:glm',
],
)

0 comments on commit ce2a4f7

Please sign in to comment.