mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
Some checks failed
Build / 🖥️ Windows (push) Has been cancelled
Build / 🐧 Linux (push) Has been cancelled
Build / 🍎 MacOS (push) Has been cancelled
Lint / 📝 Formatting (push) Has been cancelled
Lint / 📝 Required Checks (push) Has been cancelled
Lint / 📝 Optional Checks (push) Has been cancelled
This centralizes the code that both `extractor` and the decompiler executes. In the past this code was partially-duplicated, meaning that the `extractor` could only do _some_ operations and not others (ie. could not extract the audio files). I also simplified the process to enable audio streaming in the configuration. This is to support a new feature in the launcher that allows you to enable these options for the decompiler: ![image](https://github.com/open-goal/jak-project/assets/13153231/8e6c20a1-8b5b-46f0-bceb-7644f713989f)
127 lines
3.2 KiB
CMake
127 lines
3.2 KiB
CMake
add_library(
|
|
decomp
|
|
|
|
analysis/analyze_inspect_method.cpp
|
|
analysis/atomic_op_builder.cpp
|
|
analysis/cfg_builder.cpp
|
|
analysis/expression_build.cpp
|
|
analysis/final_output.cpp
|
|
analysis/find_defpartgroup.cpp
|
|
analysis/find_defstates.cpp
|
|
analysis/find_skelgroups.cpp
|
|
analysis/inline_asm_rewrite.cpp
|
|
analysis/insert_lets.cpp
|
|
analysis/label_types.cpp
|
|
analysis/mips2c.cpp
|
|
analysis/reg_usage.cpp
|
|
analysis/stack_spill.cpp
|
|
analysis/static_refs.cpp
|
|
analysis/symbol_def_map.cpp
|
|
analysis/type_analysis.cpp
|
|
analysis/variable_naming.cpp
|
|
|
|
data/dir_tpages.cpp
|
|
data/game_count.cpp
|
|
data/game_text.cpp
|
|
data/streamed_audio.cpp
|
|
data/StrFileReader.cpp
|
|
data/TextureDB.cpp
|
|
data/tpage.cpp
|
|
|
|
Disasm/Instruction.cpp
|
|
Disasm/InstructionDecode.cpp
|
|
Disasm/InstructionMatching.cpp
|
|
Disasm/InstructionParser.cpp
|
|
Disasm/OpcodeInfo.cpp
|
|
Disasm/Register.cpp
|
|
|
|
extractor/extractor_util.cpp
|
|
|
|
Function/BasicBlocks.cpp
|
|
Function/CfgVtx.cpp
|
|
Function/Function.cpp
|
|
|
|
IR2/AtomicOp.cpp
|
|
IR2/AtomicOpForm.cpp
|
|
IR2/AtomicOpTypeAnalysis.cpp
|
|
IR2/bitfields.cpp
|
|
IR2/Env.cpp
|
|
IR2/ExpressionHelpers.cpp
|
|
IR2/Form.cpp
|
|
IR2/FormExpressionAnalysis.cpp
|
|
IR2/FormStack.cpp
|
|
IR2/GenericElementMatcher.cpp
|
|
IR2/LabelDB.cpp
|
|
IR2/OpenGoalMapping.cpp
|
|
|
|
level_extractor/BspHeader.cpp
|
|
level_extractor/extract_actors.cpp
|
|
level_extractor/extract_collide_frags.cpp
|
|
level_extractor/extract_common.cpp
|
|
level_extractor/extract_hfrag.cpp
|
|
level_extractor/extract_joint_group.cpp
|
|
level_extractor/extract_level.cpp
|
|
level_extractor/extract_merc.cpp
|
|
level_extractor/extract_tfrag.cpp
|
|
level_extractor/extract_tie.cpp
|
|
level_extractor/extract_shrub.cpp
|
|
level_extractor/fr3_to_gltf.cpp
|
|
level_extractor/MercData.cpp
|
|
level_extractor/tfrag_tie_fixup.cpp
|
|
|
|
ObjectFile/LinkedObjectFile.cpp
|
|
ObjectFile/LinkedObjectFileCreation.cpp
|
|
ObjectFile/ObjectFileDB.cpp
|
|
ObjectFile/ObjectFileDB_IR2.cpp
|
|
|
|
types2/ForwardProp.cpp
|
|
types2/types2.cpp
|
|
|
|
util/config_parsers.cpp
|
|
util/data_decompile.cpp
|
|
util/DataParser.cpp
|
|
util/DecompilerTypeSystem.cpp
|
|
util/goal_data_reader.cpp
|
|
util/sparticle_decompile.cpp
|
|
util/TP_Type.cpp
|
|
util/type_utils.cpp
|
|
|
|
VuDisasm/VuDisassembler.cpp
|
|
VuDisasm/VuInstruction.cpp
|
|
|
|
config.cpp
|
|
decompilation_process.cpp)
|
|
|
|
target_link_libraries(decomp
|
|
lzokay
|
|
common
|
|
fmt
|
|
stb_image
|
|
xdelta3
|
|
tiny_gltf
|
|
)
|
|
|
|
add_executable(decompiler
|
|
main.cpp)
|
|
|
|
target_link_libraries(decompiler
|
|
decomp
|
|
common
|
|
lzokay
|
|
fmt
|
|
stb_image
|
|
tiny_gltf)
|
|
|
|
|
|
add_executable(extractor
|
|
extractor/main.cpp)
|
|
|
|
target_link_libraries(extractor
|
|
decomp
|
|
common
|
|
lzokay
|
|
fmt
|
|
compiler
|
|
stb_image
|
|
tiny_gltf)
|