diff --git a/meson.build b/meson.build index d3443ab55..054813140 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('pipewire', 'c', +project('pipewire', ['c', 'cpp' ], version : '0.2.9', license : 'MIT', meson_version : '>= 0.42.0', diff --git a/spa/tests/auto/meson.build b/spa/tests/auto/meson.build index 702f3904a..2f544c073 100644 --- a/spa/tests/auto/meson.build +++ b/spa/tests/auto/meson.build @@ -6,5 +6,11 @@ test_utils = executable('test-utils', 'test-utils.c', include_directories : [spa_inc ], dependencies : [], install : false) +test_cpp = executable('test-cpp', 'test-cpp.cpp', + include_directories : [spa_inc ], + dependencies : [], + install : false) + test('test-buffer', test_buffer) test('test-utils', test_utils) +test('test-cpp', test_cpp) diff --git a/spa/tests/auto/test-cpp.cpp b/spa/tests/auto/test-cpp.cpp new file mode 100644 index 000000000..f6f636e64 --- /dev/null +++ b/spa/tests/auto/test-cpp.cpp @@ -0,0 +1,82 @@ +/* Simple Plugin API + * Copyright © 2018 Collabora Ltd. + * @author George Kiagiadakis + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +int main(int argc, char *argv[]) +{ + return 0; +}