Add vgmstream dependency
This commit is contained in:
parent
7e317950d0
commit
7edd8bbc87
4 changed files with 13 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -10,3 +10,6 @@
|
|||
[submodule "subprojects/jsoncpp"]
|
||||
path = subprojects/jsoncpp
|
||||
url = https://github.com/open-source-parsers/jsoncpp
|
||||
[submodule "subprojects/vgmstream"]
|
||||
path = subprojects/vgmstream
|
||||
url = https://github.com/vgmstream/vgmstream.git
|
||||
|
|
|
@ -32,6 +32,13 @@ deps = [
|
|||
smx_subproj.dependency('SDL2_mixer_ext_Static')
|
||||
]
|
||||
|
||||
if get_option('vgmstream')
|
||||
vgm_opts = cmake.subproject_options()
|
||||
vgm_opts.add_cmake_defines({'BUILD_FB2K': false, 'BUILD_CLI': false, 'BUILD_WINAMP': false, 'BUILD_XMPLAY': false, 'BUILD_AUDACIOUS': false, 'BUILD_V123': false, 'BUILD_STATIC': false})
|
||||
#vgm_opts.set_override_option('c_std', 'c99')
|
||||
vgm_subproj = cmake.subproject('vgmstream', options: vgm_opts)
|
||||
deps += vgm_subproj.dependency('libvgmstream')
|
||||
endif
|
||||
git = find_program('git', required: false)
|
||||
tag = 'unknown'
|
||||
if git.found()
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
option('gles', type: 'boolean', value: false)
|
||||
option('portals', type: 'boolean', value: true)
|
||||
option('portals', type: 'boolean', value: true)
|
||||
option('vgmstream', type: 'boolean', value: true)
|
1
subprojects/vgmstream
Submodule
1
subprojects/vgmstream
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 416ac26510b4e243760d9c3a1fdb81a885762a8b
|
Loading…
Reference in a new issue