From 0d5a8db4a85153c7242c78ecdeeafe571ae25dc1 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 15 Jun 2015 21:14:20 +0200 Subject: [PATCH] [DEV] Basic lutin wrapper --- .gitmodules | 3 +++ README.md | 5 +++++ gtest | 1 + lutin_gtest.py | 29 +++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 .gitmodules create mode 100644 README.md create mode 160000 gtest create mode 100644 lutin_gtest.py diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9e9679e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "gtest"] + path = gtest + url = https://github.com/generic-library/gtest.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..888d700 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +Lutin wrapper +============= + +Used to compile the library with lutin builder interface + diff --git a/gtest b/gtest new file mode 160000 index 0000000..778f966 --- /dev/null +++ b/gtest @@ -0,0 +1 @@ +Subproject commit 778f9663bfef9f42567a939440803f88349c40e5 diff --git a/lutin_gtest.py b/lutin_gtest.py new file mode 100644 index 0000000..3ba74ff --- /dev/null +++ b/lutin_gtest.py @@ -0,0 +1,29 @@ +#!/usr/bin/python +import lutin.module as module +import lutin.tools as tools + +def get_desc(): + return "gtest : google test interface" + +def get_license(): + return "BSD 3 clauses" + +def create(target): + myModule = module.Module(__file__, 'gtest', 'LIBRARY') + myModule.add_src_file([ + 'gtest/src/gtest-all.cc', + 'gtest/src/gtest.cc', + 'gtest/src/gtest-death-test.cc', + 'gtest/src/gtest-filepath.cc', + 'gtest/src/gtest_main.cc', + 'gtest/src/gtest-port.cc', + 'gtest/src/gtest-printers.cc', + 'gtest/src/gtest-test-part.cc', + 'gtest/src/gtest-typed-test.cc' + ]) + myModule.add_path(tools.get_current_path(__file__)+"/gtest") + myModule.add_export_path(tools.get_current_path(__file__)+"/gtest/include/") + return myModule + + +