Skip to content

Commit 5611a1e

Browse files
committed
meson: Add top level meson.build
1 parent 6b75f37 commit 5611a1e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ ENABLE_NVCC := true
2121
ENABLE_CUDA := -Denable_cuda=true -Denable_nvcc=$(ENABLE_NVCC)
2222

2323
# Directories
24-
LIBVMAF_DIR := libvmaf
25-
BUILD_DIR := $(LIBVMAF_DIR)/build
26-
DEBUG_DIR := $(LIBVMAF_DIR)/debug
24+
BUILD_DIR := builddir
25+
DEBUG_DIR := builddir-debug
2726

2827
.PHONY: default all debug build install cythonize clean distclean cythonize-deps
2928

@@ -32,10 +31,10 @@ default: build
3231
all: build debug install test cythonize
3332

3433
$(BUILD_DIR): $(MESON) $(NINJA)
35-
PATH="$(VENV)/bin:$$PATH" $(MESON_SETUP) $(BUILD_DIR) $(LIBVMAF_DIR) $(BUILDTYPE_RELEASE) $(ENABLE_FLOAT) $(ENABLE_CUDA)
34+
PATH="$(VENV)/bin:$$PATH" $(MESON_SETUP) $(BUILD_DIR) $(BUILDTYPE_RELEASE) $(ENABLE_FLOAT) $(ENABLE_CUDA)
3635

3736
$(DEBUG_DIR): $(MESON) $(NINJA)
38-
PATH="$(VENV)/bin:$$PATH" $(MESON_SETUP) $(DEBUG_DIR) $(LIBVMAF_DIR) $(BUILDTYPE_DEBUG) $(ENABLE_FLOAT) $(ENABLE_CUDA)
37+
PATH="$(VENV)/bin:$$PATH" $(MESON_SETUP) $(DEBUG_DIR) $(BUILDTYPE_DEBUG) $(ENABLE_FLOAT) $(ENABLE_CUDA)
3938

4039
cythonize: cythonize-deps
4140
pushd python && ../$(VENV_PYTHON) setup.py build_ext --build-lib . && popd || exit 1
@@ -73,4 +72,4 @@ $(NINJA): $(VENV_PIP)
7372
$(VENV_PIP) install ninja || { echo "Failed to install ninja"; exit 1; }
7473

7574
cythonize-deps: $(VENV_PIP)
76-
$(VENV_PIP) install setuptools cython numpy || { echo "Failed to install dependencies"; exit 1; }
75+
$(VENV_PIP) install setuptools cython numpy || { echo "Failed to install dependencies"; exit 1; }

libvmaf/meson.build

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
project('libvmaf', ['c', 'cpp'],
2-
version : '3.0.0',
3-
default_options : ['c_std=c11',
4-
'cpp_std=c++11',
5-
'warning_level=2',
6-
'buildtype=release',
7-
'default_library=both',
8-
],
9-
meson_version: '>= 0.56.1')
10-
111
vmaf_soname_version = '3.0.0'
122
vmaf_api_version_array = vmaf_soname_version.split('.')
133
vmaf_api_version_major = vmaf_api_version_array[0]

meson.build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
project('libvmaf', ['c', 'cpp'],
2+
version : '3.0.0',
3+
default_options : ['c_std=c11',
4+
'cpp_std=c++11',
5+
'warning_level=2',
6+
'buildtype=release',
7+
'default_library=both',
8+
],
9+
meson_version: '>= 0.56.1')
10+
11+
subdir('libvmaf')

0 commit comments

Comments
 (0)