# SPDX-License-Identifier: CC0-1.0

libipa_headers = files([
    'agc_mean_luminance.h',
    'algorithm.h',
    'camera_sensor_helper.h',
    'exposure_mode_helper.h',
    'fc_queue.h',
    'histogram.h',
    'interpolator.h',
    'lsc_polynomial.h',
    'matrix.h',
    'module.h',
    'pwl.h',
    'vector.h',
])

libipa_sources = files([
    'agc_mean_luminance.cpp',
    'algorithm.cpp',
    'camera_sensor_helper.cpp',
    'exposure_mode_helper.cpp',
    'fc_queue.cpp',
    'histogram.cpp',
    'interpolator.cpp',
    'lsc_polynomial.cpp',
    'matrix.cpp',
    'module.cpp',
    'pwl.cpp',
    'vector.cpp',
])

libipa_includes = include_directories('..')

libipa = static_library('ipa', [libipa_sources, libipa_headers],
                        include_directories : ipa_includes,
                        dependencies : libcamera_private)

libipa_dep = declare_dependency(sources : libipa_headers,
                                include_directories : libipa_includes,
                                link_with : libipa)