-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmeson.build
More file actions
36 lines (30 loc) · 922 Bytes
/
Copy pathmeson.build
File metadata and controls
36 lines (30 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
project('brSkinBrush', 'cpp')
maya_dep = dependency('maya')
maya_name_suffix = maya_dep.get_variable('name_suffix')
maya_version = maya_dep.get_variable('maya_version')
source_files = [
'src/skinBrushContext.cpp',
'src/skinBrushTool.cpp',
'src/functions.cpp',
'src/pluginMain.cpp',
'src/skinBrushCmd.cpp',
'src/skinBrushContextSetFlags.cpp',
'src/skinBrushLegacy.cpp',
]
gl_dep = dependency('gl', method : 'system')
if build_machine.system() == 'windows'
cmplr = meson.get_compiler('cpp')
glu_dep = cmplr.find_library('glu32', required : true)
else
glu_dep = dependency('glu')
endif
outlib = shared_library(
meson.project_name(),
source_files,
install: true,
install_dir : meson.global_source_root() / 'output_Maya' + maya_version,
include_directories : include_directories(['src']),
dependencies : [maya_dep, gl_dep, glu_dep],
name_prefix : '',
name_suffix : maya_name_suffix,
)