Debian Codegraph @

subprojects/packagefiles/glfw3/meson.build

raw
1 project(
2 'glfw',
3 'c',
4 version: '3.3.0',
5 license: 'zlib',
6 default_options: ['default_library=static'],
7 )
8
9 cc = meson.get_compiler('c')
10 compiler_id = cc.get_id()
11
12 math_dep = cc.find_library('m', required: false)
13 threads_dep = dependency('threads')
14
15 if compiler_id == 'msvc'
16 if get_option('glfw_use_msvc_runtime_library_dll')
17 warning('glfw_use_msvc_runtime_library_dll is not implemented')
18 # TODO
19 endif
20 endif
21
22 host_system = host_machine.system()
23
24 backend = get_option('glfw_backend')
25 if backend == 'auto'
26 if host_system == 'windows' or host_system == 'cygwin'
27 backend = 'win32'
28 elif host_system == 'darwin'
29 backend = 'cocoa'
30 else
31 error('Unable to determine the backend automatically.')
32 endif
33 endif
34
35
36 subdir('src')