From bd4a458c319dbc160d49e38afb4d7ad11ae65b41 Mon Sep 17 00:00:00 2001 From: njlr Date: Wed, 8 Mar 2017 19:47:07 +0000 Subject: [PATCH 1/2] * 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', + ], +) From cdf152b0137ee869498300d6e8664c9475197031 Mon Sep 17 00:00:00 2001 From: njlr Date: Fri, 21 Jul 2017 11:09:53 +0100 Subject: [PATCH 2/2] * Added Buckaroo.pm package --- BUCK | 5 +---- buckaroo.json | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/BUCK b/BUCK index e01db658..0bf9e3ad 100644 --- a/BUCK +++ b/BUCK @@ -1,7 +1,5 @@ -include_defs('//BUCKAROO_DEPS') - prebuilt_cxx_library( - name = 'chaiscript', + name = 'chaiscript', header_only = True, header_namespace = 'chaiscript', exported_headers = subdir_glob([ @@ -10,5 +8,4 @@ prebuilt_cxx_library( visibility = [ 'PUBLIC', ], - deps = BUCKAROO_DEPS, ) diff --git a/buckaroo.json b/buckaroo.json index afc50314..95db1764 100644 --- a/buckaroo.json +++ b/buckaroo.json @@ -1,4 +1,3 @@ { - "name": "chaiscript", - "dependencies": {} + "name": "ChaiScript" }