mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
f2e7606f1b
Some checks are pending
Build / 🖥️ Windows (push) Waiting to run
Build / 🐧 Linux (push) Waiting to run
Build / 🍎 MacOS (push) Waiting to run
Lint / 📝 Formatting (push) Waiting to run
Lint / 📝 Required Checks (push) Waiting to run
Lint / 📝 Optional Checks (push) Waiting to run
This adds a feature to `build_actor` to support importing skeletons and animations from .glb files. Multiple animations are handled and will use the name in the GLB. The default `viewer` process will end up playing back the first animation. There are a few limitations: - You can only have around 100 bones. It is technically possibly to have slightly more, but certain animations may fail to compress when there are more than ~100 bones. - Currently, all animations have 60 keyframes per second. This is a higher quality than what is normally used. If animation size becomes problematic, we could make this customizable somehow. - There is no support for the `align` bone. --------- Co-authored-by: water111 <awaterford1111445@gmail.com>
92 lines
3.2 KiB
CMake
92 lines
3.2 KiB
CMake
add_library(compiler
|
|
emitter/CallingConvention.cpp
|
|
emitter/CodeTester.cpp
|
|
emitter/ObjectFileData.cpp
|
|
emitter/ObjectGenerator.cpp
|
|
emitter/Register.cpp
|
|
debugger/disassemble.cpp
|
|
build_level/common/build_level.cpp
|
|
build_actor/common/animation_processing.cpp
|
|
build_actor/common/MercExtract.cpp
|
|
build_level/jak1/build_level.cpp
|
|
build_level/jak2/build_level.cpp
|
|
build_level/jak3/build_level.cpp
|
|
build_level/collide/jak1/collide_bvh.cpp
|
|
build_level/collide/jak1/collide_drawable.cpp
|
|
build_level/collide/jak1/collide_pack.cpp
|
|
build_level/collide/jak2/collide.cpp
|
|
build_level/collide/jak3/collide.cpp
|
|
build_level/common/color_quantization.cpp
|
|
build_level/common/Entity.cpp
|
|
build_level/jak1/Entity.cpp
|
|
build_level/jak2/Entity.cpp
|
|
build_level/jak3/Entity.cpp
|
|
build_level/common/FileInfo.cpp
|
|
build_level/jak1/FileInfo.cpp
|
|
build_level/jak2/FileInfo.cpp
|
|
build_level/jak3/FileInfo.cpp
|
|
build_level/common/gltf_mesh_extract.cpp
|
|
build_level/jak1/LevelFile.cpp
|
|
build_level/jak2/LevelFile.cpp
|
|
build_level/jak3/LevelFile.cpp
|
|
build_level/common/ResLump.cpp
|
|
build_level/common/Tfrag.cpp
|
|
build_level/jak1/ambient.cpp
|
|
compiler/Compiler.cpp
|
|
compiler/Env.cpp
|
|
compiler/Val.cpp
|
|
compiler/IR.cpp
|
|
compiler/CompilerSettings.cpp
|
|
compiler/CodeGenerator.cpp
|
|
compiler/StaticObject.cpp
|
|
compiler/symbol_info.cpp
|
|
compiler/compilation/Asm.cpp
|
|
compiler/compilation/Atoms.cpp
|
|
compiler/compilation/CompilerControl.cpp
|
|
compiler/compilation/ConstantPropagation.cpp
|
|
compiler/compilation/Block.cpp
|
|
compiler/compilation/Macro.cpp
|
|
compiler/compilation/Math.cpp
|
|
compiler/compilation/Define.cpp
|
|
compiler/compilation/Debug.cpp
|
|
compiler/compilation/Function.cpp
|
|
compiler/compilation/ControlFlow.cpp
|
|
compiler/compilation/Type.cpp
|
|
compiler/compilation/State.cpp
|
|
compiler/compilation/Static.cpp
|
|
compiler/Util.cpp
|
|
data_compiler/game_text_common.cpp
|
|
data_compiler/dir_tpages.cpp
|
|
data_compiler/game_count.cpp
|
|
data_compiler/DataObjectGenerator.cpp
|
|
build_actor/jak1/build_actor.cpp
|
|
debugger/Debugger.cpp
|
|
debugger/DebugInfo.cpp
|
|
listener/Listener.cpp
|
|
listener/MemoryMap.cpp
|
|
make/MakeSystem.cpp
|
|
make/Tool.cpp
|
|
make/Tools.cpp
|
|
regalloc/IRegister.cpp
|
|
regalloc/Allocator.cpp
|
|
regalloc/allocator_interface.cpp
|
|
regalloc/Allocator_v2.cpp
|
|
compiler/docs/DocTypes.cpp)
|
|
|
|
target_link_libraries(compiler common Zydis tiny_gltf decomp)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(compiler mman)
|
|
endif ()
|
|
|
|
add_executable(goalc main.cpp)
|
|
add_executable(goalc-simple simple_main.cpp)
|
|
|
|
add_executable(build_level build_level/main.cpp)
|
|
add_executable(build_actor build_actor/main.cpp)
|
|
|
|
target_link_libraries(goalc common Zydis compiler)
|
|
target_link_libraries(goalc-simple common Zydis compiler)
|
|
target_link_libraries(build_level common Zydis compiler)
|
|
target_link_libraries(build_actor common Zydis compiler)
|