app: Convert to meson build system and use gRPC
[apps/camera-gstreamer.git] / meson.build
similarity index 57%
rename from CMakeLists.txt
rename to meson.build
index c21c5bf..f941aee 100644 (file)
@@ -1,19 +1,32 @@
-# Copyright 2021 Collabora, Ltd.
-# Copyright 2022 Konsulko Group
+#
+# Copyright ©, 2023 Collabora, Ltd.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
 #
-#     http://www.apache.org/licenses/LICENSE-2.0
+#      http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
 # distributed under the License is distributed on an "AS IS" BASIS,
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-###########################################################################
+#
 
-CMAKE_MINIMUM_REQUIRED(VERSION 3.3)
+project (
+  'camera-gstreamer',
+  ['c', 'cpp'],
+  version : '1.0.0',
+  license : 'Apache-2.0',
+  meson_version : '>= 0.60.0',
+  default_options :
+    [
+      'warning_level=1',
+      'buildtype=debugoptimized',
+      'c_std=c17',
+      'cpp_std=c++17'
+    ],
+)
 
-add_subdirectory(app)
+subdir('app')