1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-13 04:39:36 +00:00
oot/tools/ZAPD
angie 5de22b5036 git subrepo pull --force tools/ZAPD
subrepo:
  subdir:   "tools/ZAPD"
  merged:   "769f5702a"
upstream:
  origin:   "https://github.com/zeldaret/ZAPD.git"
  branch:   "master"
  commit:   "769f5702a"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-05-10 21:32:09 -04:00
..
docs git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
lib git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
ZAPD git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
.clang-format git subrepo pull --force tools/ZAPD (#727) 2021-03-20 12:02:12 -04:00
.gitignore git subrepo pull --force tools/ZAPD (#727) 2021-03-20 12:02:12 -04:00
.gitrepo git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
copycheck.py Updated to use latest version of ZAPD (#777) 2021-04-30 23:23:22 +02:00
Jenkinsfile git subrepo pull --force tools/ZAPD (#727) 2021-03-20 12:02:12 -04:00
LICENSE Remove submodule and use subrepo for ZAPD (#591) 2021-01-01 23:24:29 -05:00
Makefile git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
README.md git subrepo pull --force tools/ZAPD 2021-05-10 21:32:09 -04:00
ZAPD.sln Remove submodule and use subrepo for ZAPD (#591) 2021-01-01 23:24:29 -05:00

ZAPD: Zelda Asset Processor for Decomp

Compiling

Dependencies

ZAPD needs a compiler with C++17 support.

ZAPD has the following library dependencies:

  • libpng

In a Debian/Ubuntu based environment, those could be installed with the following command:

sudo apt install libpng-dev

Building

Linux / *nix

ZAPD uses the clasic Makefile approach. To build just run make (or even better make -j for faster compilations).

You can configure a bit your ZAPD build with the following options:

  • OPTIMIZATION_ON: If set to 0, then optimizations will be disabled (compile with -O0). Any other value compiles with -O2. Defaults to 1.
  • ASAN: If it is set to a non-zero then ZAPD will be compiled with Address Sanitizer enabled (-fsanitize=address). Defaults to 0.
  • DEPRECATION_OFF: If it is set to a non-zero then deprecation warnings will be disabled. Defaults to 0.

As an example, if you want to build ZAPD with optimizations disabled and use the address sanitizer, you could use the following command:

make -j OPTIMIZATION_ON=0 ASAN=1

Windows

This repository contains vcxproj files for compiling under Visual Studio environments. See ZAPD/ZAPD.vcxproj.