Add Chromium-only Blender WebEngine parity work
This commit is contained in:
59
blender-5.2.0/intern/mantaflow/CMakeLists.txt
Normal file
59
blender-5.2.0/intern/mantaflow/CMakeLists.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
# SPDX-FileCopyrightText: 2019 Blender Authors
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
add_definitions(-DWITH_FLUID=1)
|
||||
|
||||
if(WITH_OPENVDB)
|
||||
add_definitions(-DOPENVDB=1)
|
||||
else()
|
||||
add_definitions(-DOPENVDB=0)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
# Some files in `./extern` are being included which brings up a bunch of
|
||||
# "unreferenced formal parameter" warnings.
|
||||
# So restore warn C4100 (unreferenced formal parameter) back to w4
|
||||
remove_c_and_cxx_flag("/w34100")
|
||||
endif()
|
||||
|
||||
|
||||
set(INC
|
||||
extern
|
||||
intern/strings
|
||||
)
|
||||
|
||||
# Python is always required
|
||||
add_definitions(-DWITH_PYTHON)
|
||||
|
||||
set(INC_SYS
|
||||
../../extern/mantaflow/helper/util
|
||||
../../extern/mantaflow/helper/pwrapper
|
||||
../../extern/mantaflow/preprocessed
|
||||
)
|
||||
|
||||
set(SRC
|
||||
intern/manta_python_API.cpp
|
||||
intern/manta_fluid_API.cpp
|
||||
intern/MANTA_main.cpp
|
||||
|
||||
extern/manta_python_API.h
|
||||
extern/manta_fluid_API.h
|
||||
intern/MANTA_main.h
|
||||
intern/strings/fluid_script.h
|
||||
intern/strings/smoke_script.h
|
||||
intern/strings/liquid_script.h
|
||||
)
|
||||
|
||||
set(LIB
|
||||
PRIVATE bf::blenlib
|
||||
PRIVATE bf::dna
|
||||
PRIVATE bf::intern::guardedalloc
|
||||
PRIVATE bf::dependencies::optional::openvdb
|
||||
PRIVATE bf::dependencies::optional::tbb
|
||||
extern_mantaflow
|
||||
PRIVATE bf::dependencies::optional::python
|
||||
PRIVATE bf::dependencies::zlib
|
||||
)
|
||||
|
||||
blender_add_lib(bf_intern_mantaflow "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
Reference in New Issue
Block a user