1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-03 16:37:46 +00:00
novus/extern/CMakeLists.txt
Joshua Goins dab4a698b2 Decompile Lua bytecode in Data Explorer
The game has *tons* of Lua scripts for event scripting, and are very
interesting to explore. I had to do manually call luadec before, but now
it should be much easier by automatically decompiling Lua scripts in the
Data Explorer.
2025-04-30 19:44:20 -04:00

30 lines
No EOL
1 KiB
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
set(BUILD_SHARED_LIBS OFF)
add_compile_options(-w)
FetchContent_Declare(
Corrosion
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
GIT_TAG v0.5.2
)
FetchContent_MakeAvailable(Corrosion)
corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/Cargo.toml FEATURES logging)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libphysis/logger)
target_include_directories(physis INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/target/public)
add_library(Physis::Physis ALIAS physis)
add_library(Physis::Logger ALIAS physis-logger)
add_subdirectory(magic_enum EXCLUDE_FROM_ALL)
add_subdirectory(tinygltf EXCLUDE_FROM_ALL)
add_subdirectory(imgui EXCLUDE_FROM_ALL)
add_subdirectory(dxbc EXCLUDE_FROM_ALL)
# For some reason, FFXIV uses a *32-bit* Lua compiler. We have to build it as 32-bit or else loading the bytecode fails.
add_compile_options(-m32)
add_link_options(-m32)
add_subdirectory(luadec51 EXCLUDE_FROM_ALL)