2021-02-24 20:17:18 +02:00
|
|
|
add_project_arguments('-Db_sanitize=address', language: 'c')
|
|
|
|
|
2021-02-09 17:37:26 +02:00
|
|
|
koto_sources = [
|
2021-02-27 17:26:24 +02:00
|
|
|
'db/db.c',
|
2021-02-16 17:15:10 +02:00
|
|
|
'indexer/album.c',
|
|
|
|
'indexer/artist.c',
|
2021-02-12 12:56:41 +02:00
|
|
|
'indexer/file.c',
|
2021-02-09 17:37:26 +02:00
|
|
|
'indexer/file-indexer.c',
|
2021-02-24 20:17:18 +02:00
|
|
|
'pages/music/album-view.c',
|
|
|
|
'pages/music/artist-view.c',
|
2021-02-27 17:26:24 +02:00
|
|
|
'pages/music/disc-view.c',
|
2021-02-24 20:17:18 +02:00
|
|
|
'pages/music/music-local.c',
|
2021-02-09 17:37:26 +02:00
|
|
|
'main.c',
|
|
|
|
'koto-button.c',
|
|
|
|
'koto-expander.c',
|
|
|
|
'koto-nav.c',
|
|
|
|
'koto-playerbar.c',
|
2021-02-24 20:17:18 +02:00
|
|
|
'koto-track-item.c',
|
2021-02-16 17:15:10 +02:00
|
|
|
'koto-utils.c',
|
2021-02-09 17:37:26 +02:00
|
|
|
'koto-window.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
koto_deps = [
|
|
|
|
dependency('glib-2.0', version: '>= 2.66'),
|
|
|
|
dependency('gio-2.0', version: '>= 2.66'),
|
2021-02-24 20:17:18 +02:00
|
|
|
dependency('gtk4', version: '>= 4.0'),
|
2021-02-09 17:37:26 +02:00
|
|
|
dependency('libmagic', version: '>=5.39'),
|
2021-02-27 17:26:24 +02:00
|
|
|
dependency('sqlite3', version: '>=3.34'),
|
2021-02-16 17:15:10 +02:00
|
|
|
dependency('taglib_c', version: '>=1.11'),
|
2021-02-09 17:37:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
koto_sources += gnome.compile_resources('koto-resources',
|
|
|
|
'koto.gresource.xml',
|
2021-02-25 18:15:36 +02:00
|
|
|
dependencies: [ theme ],
|
|
|
|
c_name: 'koto',
|
2021-02-09 17:37:26 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
executable('com.github.joshstrobl.koto', koto_sources,
|
|
|
|
dependencies: koto_deps,
|
|
|
|
install: true,
|
|
|
|
)
|