1libkmsxxutil_sources = files([ 2 'src/colorbar.cpp', 3 'src/color.cpp', 4 'src/cpuframebuffer.cpp', 5 'src/drawing.cpp', 6 'src/extcpuframebuffer.cpp', 7 'src/opts.cpp', 8 'src/resourcemanager.cpp', 9 'src/strhelpers.cpp', 10 'src/testpat.cpp', 11 'src/videodevice.cpp', 12]) 13 14public_headers = [ 15 'inc/kms++util/color.h', 16 'inc/kms++util/kms++util.h', 17 'inc/kms++util/stopwatch.h', 18 'inc/kms++util/cpuframebuffer.h', 19 'inc/kms++util/strhelpers.h', 20 'inc/kms++util/opts.h', 21 'inc/kms++util/extcpuframebuffer.h', 22 'inc/kms++util/resourcemanager.h', 23 'inc/kms++util/videodevice.h', 24] 25 26private_includes = include_directories('src', 'inc') 27public_includes = include_directories('inc') 28 29thread_dep = dependency('threads', required : false) 30 31libkmsxxutil_args = [ ] 32 33if thread_dep.found() 34 libkmsxxutil_args += [ '-DHAS_PTHREAD' ] 35endif 36 37libkmsxxutil_deps = [ libkmsxx_dep, libfmt_dep, thread_dep ] 38 39libkmsxxutil = library('kms++util', 40 libkmsxxutil_sources, 41 install : true, 42 include_directories : private_includes, 43 dependencies : libkmsxxutil_deps, 44 cpp_args : libkmsxxutil_args) 45 46libkmsxxutil_dep = declare_dependency(include_directories : public_includes, 47 link_with : libkmsxxutil) 48 49install_headers(public_headers, subdir : 'kms++util') 50 51pkg = import('pkgconfig') 52pkg.generate(libkmsxxutil) 53