Skip to content

Commit

Permalink
Don't build simplexlib as a static library
Browse files Browse the repository at this point in the history
  • Loading branch information
tbttfox committed Sep 13, 2024
1 parent be4c0c5 commit 931482e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion quick_compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if not exist %BUILDDIR%\ (

if exist %BUILDDIR%\ (
meson compile -C %BUILDDIR%
meson install -C %BUILDDIR%
meson install --skip-subprojects -C %BUILDDIR%
)

pause
2 changes: 1 addition & 1 deletion src/maya/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ simplex_maya = shared_library(
install: true,
install_dir : meson.global_source_root() / 'output_Maya' + maya_version,
include_directories : simplex_maya_inc,
dependencies : [maya_dep, simplexlib_dep, rapidjson_dep],
dependencies : [maya_dep, simplexlib_dep],
name_prefix : '',
name_suffix : maya_name_suffix,
)
2 changes: 1 addition & 1 deletion src/python/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif
simplex_python = py_inst.extension_module(
'simplex_python',
simplex_python_files,
dependencies : [simplexlib_dep, rapidjson_dep],
dependencies : simplexlib_dep,
install: true,
install_dir : meson.global_source_root() / 'output_Python',
limited_api : lapi,
Expand Down
17 changes: 4 additions & 13 deletions src/simplexlib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@ simplexlib_files = files([

rapidjson_dep = dependency('rapidjson')
eigen_dep = dependency('eigen3')
inc = include_directories(['include'])

simplexlib = static_library(
'simplexlib',
simplexlib_files,
include_directories : inc,
dependencies : [
rapidjson_dep,
eigen_dep,
]
)
simplexlib_inc = include_directories(['include'])

simplexlib_dep = declare_dependency(
include_directories : inc,
link_with : simplexlib,
include_directories : simplexlib_inc,
sources : simplexlib_files,
dependencies : [eigen_dep, rapidjson_dep],
)
7 changes: 3 additions & 4 deletions subprojects/maya/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ elif os_name == 'darwin'
endif
maya_compile_args += ['-DOSMac_']
if meson.get_compiler('cpp').get_id() == 'clang'
maya_compile_args += ['--std', 'c++17', '--stdlib', 'libc++']
maya_compile_args += ['--stdlib', 'libc++']
maya_compile_args += ['-arch', 'x86_64']
maya_link_args += ['-arch', 'x86_64']
if maya_version.version_compare('>=2024')
# build both the arm and x86 plugins when compiling for mac
# clang will build for both x86 and arm
# if both arches are in the command line args
maya_compile_args += ['-arch', 'arm64']
maya_link_args += ['-arch', 'arm64']
else
endif
endif

Expand Down Expand Up @@ -101,7 +101,6 @@ maya_dep = declare_dependency(
variables : {'name_suffix' : maya_plugin_ext, 'maya_version' : maya_version},
compile_args : maya_compile_args,
link_args : maya_link_args,

)

meson.override_dependency('maya', maya_dep)

0 comments on commit 931482e

Please sign in to comment.