diff options
author | retro-wertz | 2019-07-30 10:03:04 +0800 |
---|---|---|
committer | retro-wertz | 2019-07-30 10:03:04 +0800 |
commit | 2d17de264fd31d662d4580a5f4bf268fa9ebd42a (patch) | |
tree | c8f3813c828c7a23e51e537d87b9d67f965f5ff5 /Makefile | |
parent | ef2683f1cae601159513afc7a94e0af0bb4bb055 (diff) | |
download | pcsx_rearmed-2d17de264fd31d662d4580a5f4bf268fa9ebd42a.tar.gz pcsx_rearmed-2d17de264fd31d662d4580a5f4bf268fa9ebd42a.tar.bz2 pcsx_rearmed-2d17de264fd31d662d4580a5f4bf268fa9ebd42a.zip |
Make advanced gpu options target actual gpu plugin used
- In the case of IOS, the core uses UNAI but can be built with dynarec or interpreter. Other platform does as well. So gpu-specific defines are added for actual gpu plugin used and compiled and then the specific gpu-only core options are shown or hidden based on this #define
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -136,17 +136,20 @@ endif # builtin gpu OBJS += plugins/gpulib/gpu.o plugins/gpulib/vout_pl.o ifeq "$(BUILTIN_GPU)" "neon" +CFLAGS += -DGPU_NEON OBJS += plugins/gpu_neon/psx_gpu_if.o plugins/gpu_neon/psx_gpu/psx_gpu_arm_neon.o plugins/gpu_neon/psx_gpu_if.o: CFLAGS += -DNEON_BUILD -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP plugins/gpu_neon/psx_gpu_if.o: plugins/gpu_neon/psx_gpu/*.c endif ifeq "$(BUILTIN_GPU)" "peops" +CFLAGS += -DGPU_PEOPS # note: code is not safe for strict-aliasing? (Castlevania problems) plugins/dfxvideo/gpulib_if.o: CFLAGS += -fno-strict-aliasing plugins/dfxvideo/gpulib_if.o: plugins/dfxvideo/prim.c plugins/dfxvideo/soft.c OBJS += plugins/dfxvideo/gpulib_if.o endif ifeq "$(BUILTIN_GPU)" "unai" +CFLAGS += -DGPU_UNAI OBJS += plugins/gpu_unai/gpulib_if.o ifeq "$(ARCH)" "arm" OBJS += plugins/gpu_unai/gpu_arm.o |