From bd4a458c319dbc160d49e38afb4d7ad11ae65b41 Mon Sep 17 00:00:00 2001 From: njlr Date: Wed, 8 Mar 2017 19:47:07 +0000 Subject: [PATCH] * Added Buck build --- .buckconfig | 0 .gitignore | 5 +++++ BUCK | 14 ++++++++++++++ buckaroo.json | 4 ++++ samples/BUCK | 12 ++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 .buckconfig create mode 100644 .gitignore create mode 100644 BUCK create mode 100644 buckaroo.json create mode 100644 samples/BUCK diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 00000000..e69de29b diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9e6e4429 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/buck-out/ +/.buckd/ +/buckaroo/ +.buckconfig.local +BUCKAROO_DEPS diff --git a/BUCK b/BUCK new file mode 100644 index 00000000..e01db658 --- /dev/null +++ b/BUCK @@ -0,0 +1,14 @@ +include_defs('//BUCKAROO_DEPS') + +prebuilt_cxx_library( + name = 'chaiscript', + header_only = True, + header_namespace = 'chaiscript', + exported_headers = subdir_glob([ + ('include/chaiscript', '**/*.hpp'), + ]), + visibility = [ + 'PUBLIC', + ], + deps = BUCKAROO_DEPS, +) diff --git a/buckaroo.json b/buckaroo.json new file mode 100644 index 00000000..afc50314 --- /dev/null +++ b/buckaroo.json @@ -0,0 +1,4 @@ +{ + "name": "chaiscript", + "dependencies": {} +} diff --git a/samples/BUCK b/samples/BUCK new file mode 100644 index 00000000..7dd4982c --- /dev/null +++ b/samples/BUCK @@ -0,0 +1,12 @@ +cxx_binary( + name = 'example', + srcs = [ + 'example.cpp', + ], + compiler_flags = [ + '-std=c++14', + ], + deps = [ + '//:chaiscript', + ], +)