2016-09-19 17:44:20 +00:00
|
|
|
ROOT_DIR := .
|
|
|
|
DEPS_DIR := $(ROOT_DIR)/deps
|
|
|
|
LIBRETRO_COMM_DIR := $(ROOT_DIR)/libretro-common
|
2017-05-16 20:33:48 +00:00
|
|
|
WANT_WGL = 0
|
2016-09-19 17:44:20 +00:00
|
|
|
|
2017-09-12 02:47:37 +00:00
|
|
|
ifeq ($(HAVE_STACK_USAGE), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -fstack-usage
|
2017-09-12 02:47:37 +00:00
|
|
|
endif
|
2017-09-09 02:56:13 +00:00
|
|
|
|
2015-06-26 14:55:06 +00:00
|
|
|
ifeq ($(HAVE_GL_CONTEXT),)
|
|
|
|
HAVE_GL_CONTEXT=0
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
|
|
|
HAVE_GL_CONTEXT=1
|
|
|
|
endif
|
|
|
|
|
2016-09-16 22:38:35 +00:00
|
|
|
ifeq ($(HAVE_OPENGLES), 1)
|
2015-06-26 14:55:06 +00:00
|
|
|
HAVE_GL_CONTEXT=1
|
|
|
|
endif
|
|
|
|
|
2016-09-16 22:38:35 +00:00
|
|
|
ifeq ($(HAVE_OPENGLES3), 1)
|
2015-06-26 14:55:06 +00:00
|
|
|
HAVE_GL_CONTEXT=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-06-02 13:57:18 +00:00
|
|
|
ifeq ($(HAVE_LIBRETRODB),)
|
|
|
|
HAVE_LIBRETRODB = 1
|
|
|
|
endif
|
2015-01-22 02:58:04 +00:00
|
|
|
|
2016-07-28 18:01:38 +00:00
|
|
|
ifeq ($(HAVE_VIDEO_PROCESSOR), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
DEFINES += -DHAVE_VIDEO_PROCESSOR
|
2016-07-28 18:01:38 +00:00
|
|
|
endif
|
|
|
|
|
2017-01-17 13:02:50 +00:00
|
|
|
ifeq ($(HAVE_SOCKET_LEGACY), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
DEFINES += -DHAVE_SOCKET_LEGACY
|
2017-01-17 13:02:50 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 01:01:33 +00:00
|
|
|
ifeq ($(HAVE_HID), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += -DHAVE_HID
|
2016-06-07 01:01:33 +00:00
|
|
|
endif
|
|
|
|
|
2015-01-22 02:58:04 +00:00
|
|
|
ifeq ($(HAVE_LIBRETRODB), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
DEFINES += -DHAVE_LIBRETRODB
|
2015-01-22 02:58:04 +00:00
|
|
|
endif
|
|
|
|
|
2017-01-17 16:31:38 +00:00
|
|
|
ifeq ($(HAVE_VITA2D), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
DEFINES += -DHAVE_VITA2D
|
2017-01-17 16:31:38 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_DYLIB), 1)
|
|
|
|
DEFINES += -DHAVE_DYLIB
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(SCALER_NO_SIMD), 1)
|
|
|
|
DEFINES += -DSCALER_NO_SIMD
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_PRESERVE_DYLIB),1)
|
|
|
|
DEFINES += -DNO_DLCLOSE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(GL_DEBUG), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DGL_DEBUG
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-25 11:52:33 +00:00
|
|
|
ifeq ($(VULKAN_DEBUG), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DVULKAN_DEBUG
|
2016-06-25 11:52:33 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_HARD_FLOAT), 1)
|
|
|
|
DEFINES += -mfloat-abi=hard
|
|
|
|
endif
|
|
|
|
|
2014-09-14 02:37:57 +00:00
|
|
|
ifeq ($(TDM_GCC),)
|
|
|
|
LDCXXFLAGS += -static-libstdc++
|
|
|
|
endif
|
|
|
|
|
2015-06-12 15:31:28 +00:00
|
|
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_FILE_LOGGER
|
2015-06-12 15:31:28 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-06 22:00:28 +00:00
|
|
|
ifeq ($(HAVE_SHADERPIPELINE), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_SHADERPIPELINE
|
2016-06-06 22:00:28 +00:00
|
|
|
endif
|
|
|
|
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(LIBRETRO_COMM_DIR)/include -I$(DEPS_DIR)
|
2016-06-07 04:28:33 +00:00
|
|
|
|
2016-06-07 04:35:48 +00:00
|
|
|
# Switches
|
2018-10-12 16:29:52 +00:00
|
|
|
#
|
|
|
|
ifeq ($(HAVE_NETPLAYDISCOVERY), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_NETPLAYDISCOVERY
|
2018-10-12 16:29:52 +00:00
|
|
|
endif
|
2016-06-07 04:28:33 +00:00
|
|
|
|
2017-01-17 18:31:11 +00:00
|
|
|
ifeq ($(HAVE_NETLOGGER), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_LOGGER
|
2017-01-17 18:31:11 +00:00
|
|
|
DEFINES += -DHAVE_LOGGER
|
|
|
|
OBJ += network/net_logger.o
|
|
|
|
endif
|
2016-06-07 04:28:33 +00:00
|
|
|
|
|
|
|
# System
|
|
|
|
|
|
|
|
ifneq ($(findstring BSD,$(OS)),)
|
|
|
|
BSD_LOCAL_INC += -I/usr/local/include
|
2018-11-09 19:59:30 +00:00
|
|
|
HAVE_UNIX = 1
|
2016-06-07 04:28:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring Darwin,$(OS)),)
|
|
|
|
OSX := 1
|
|
|
|
LIBS += -framework AppKit
|
|
|
|
else
|
|
|
|
OSX := 0
|
|
|
|
endif
|
|
|
|
|
2018-01-20 08:19:01 +00:00
|
|
|
ifneq ($(findstring Haiku,$(OS)),)
|
|
|
|
LIBS += -lroot -lnetwork
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_UNIX = 1
|
2018-01-20 08:19:01 +00:00
|
|
|
else
|
|
|
|
LIBS += -lm
|
|
|
|
endif
|
|
|
|
|
2016-06-07 04:28:33 +00:00
|
|
|
ifneq ($(findstring Linux,$(OS)),)
|
|
|
|
LIBS += -lrt
|
|
|
|
OBJ += input/drivers/linuxraw_input.o \
|
|
|
|
input/common/linux_common.o \
|
2017-06-19 15:38:49 +00:00
|
|
|
input/drivers_joypad/linuxraw_joypad.o
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_UNIX = 1
|
2016-06-07 04:28:33 +00:00
|
|
|
endif
|
|
|
|
|
2017-06-19 15:38:49 +00:00
|
|
|
ifeq ($(HAVE_UNIX), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
OBJ += frontend/drivers/platform_unix.o
|
2017-06-19 15:38:49 +00:00
|
|
|
endif
|
2016-06-07 04:35:48 +00:00
|
|
|
|
2017-12-07 04:54:54 +00:00
|
|
|
ifeq ($(TARGET), retroarch_3ds)
|
2018-11-09 19:59:30 +00:00
|
|
|
OBJ += frontend/drivers/platform_ctr.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 04:28:33 +00:00
|
|
|
# Git
|
|
|
|
|
|
|
|
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
|
|
|
|
ifneq ($(GIT_VERSION),)
|
|
|
|
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION)
|
2016-09-01 15:49:28 +00:00
|
|
|
OBJ += version_git.o
|
2016-06-07 04:28:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# General object files
|
2018-04-28 12:18:04 +00:00
|
|
|
DEFINES += -DHAVE_DR_MP3
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_DR_MP3
|
2016-06-07 04:35:48 +00:00
|
|
|
|
2014-09-13 22:04:42 +00:00
|
|
|
OBJ += frontend/frontend.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
frontend/frontend_driver.o \
|
|
|
|
frontend/drivers/platform_null.o \
|
|
|
|
ui/ui_companion_driver.o \
|
|
|
|
ui/drivers/ui_null.o \
|
2016-07-15 13:40:06 +00:00
|
|
|
ui/drivers/null/ui_null_window.o \
|
|
|
|
ui/drivers/null/ui_null_browser_window.o \
|
|
|
|
ui/drivers/null/ui_null_msg_window.o \
|
|
|
|
ui/drivers/null/ui_null_application.o \
|
2016-05-08 03:29:10 +00:00
|
|
|
core_impl.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
retroarch.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
dirs.o \
|
|
|
|
paths.o \
|
2016-05-09 18:30:47 +00:00
|
|
|
command.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
msg_hash.o \
|
|
|
|
intl/msg_hash_us.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/queues/task_queue.o \
|
2016-02-09 16:36:59 +00:00
|
|
|
tasks/task_content.o \
|
2016-09-19 00:57:23 +00:00
|
|
|
tasks/task_save.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
tasks/task_file_transfer.o \
|
2016-05-10 05:54:47 +00:00
|
|
|
tasks/task_image.o \
|
2017-05-14 00:03:40 +00:00
|
|
|
tasks/task_audio_mixer.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.o \
|
2017-12-04 15:46:59 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/lists/file_list.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/lists/dir_list.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/file/retro_dirent.o \
|
2017-05-20 12:58:51 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/streams/stdin_stream.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/streams/file_stream.o \
|
2017-07-27 07:09:19 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/streams/interface_stream.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/streams/memory_stream.o \
|
2017-12-11 19:51:46 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/memmap/memalign.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
setting_list.o \
|
2016-03-20 16:28:24 +00:00
|
|
|
list_special.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.o \
|
2017-11-25 04:51:33 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_linux.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_unixmmap.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_windowsmmap.o \
|
2019-01-03 10:18:36 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_orbis.o \
|
2017-11-25 04:35:55 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_intf.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/file_path.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
file_path_special.o \
|
2016-06-20 03:20:14 +00:00
|
|
|
file_path_str.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/hash/rhash.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
audio/audio_driver.o \
|
2017-03-22 02:00:21 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/audio/audio_mixer.o \
|
2018-04-24 06:22:27 +00:00
|
|
|
input/common/input_common.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/input_driver.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
input/input_mapper.o \
|
2017-12-27 16:05:12 +00:00
|
|
|
led/led_driver.o \
|
2018-01-11 00:52:32 +00:00
|
|
|
led/drivers/led_null.o \
|
2016-03-05 06:27:48 +00:00
|
|
|
gfx/video_coord_array.o \
|
2017-12-11 23:12:32 +00:00
|
|
|
gfx/video_display_server.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/video_driver.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/video_crt_switch.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
camera/camera_driver.o \
|
2016-09-21 14:06:14 +00:00
|
|
|
wifi/wifi_driver.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
location/location_driver.o \
|
|
|
|
driver.o \
|
|
|
|
configuration.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/dynamic/dylib.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
dynamic.o \
|
|
|
|
cores/dynamic_dummy.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/queues/message_queue.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
managers/core_manager.o \
|
2016-05-09 16:20:52 +00:00
|
|
|
managers/state_manager.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/drivers_font_renderer/bitmapfont.o \
|
2016-12-01 19:38:20 +00:00
|
|
|
tasks/task_autodetect.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
input/input_autodetect_builtin.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/input_keymaps.o \
|
|
|
|
input/input_remapping.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/queues/fifo_queue.o \
|
2016-05-09 23:25:47 +00:00
|
|
|
managers/core_option_manager.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_fnmatch.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.o \
|
2016-05-09 16:20:52 +00:00
|
|
|
managers/cheat_manager.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
core_info.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/config_file.o \
|
2016-12-12 11:36:46 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/config_file_userdata.o \
|
2016-05-17 12:31:33 +00:00
|
|
|
tasks/task_screenshot.o \
|
2016-12-20 14:18:07 +00:00
|
|
|
tasks/task_powerstate.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/drivers_shader/shader_null.o \
|
|
|
|
gfx/video_shader_parse.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/gfx/scaler/pixconv.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler_int.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler_filter.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/font_driver.o \
|
|
|
|
gfx/video_filter.o \
|
2016-12-12 12:02:29 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/audio/resampler/audio_resampler.o \
|
2017-01-09 11:22:29 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/audio/dsp_filter.o \
|
2016-12-12 12:02:29 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/nearest_resampler.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/null_resampler.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/utils/md5.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
location/drivers/nulllocation.o \
|
|
|
|
camera/drivers/nullcamera.o \
|
2016-09-21 14:06:14 +00:00
|
|
|
wifi/drivers/nullwifi.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/drivers/nullgfx.o \
|
2017-12-11 23:12:32 +00:00
|
|
|
gfx/display_servers/dispserv_null.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
audio/drivers/nullaudio.o \
|
|
|
|
input/drivers/nullinput.o \
|
|
|
|
input/drivers_hid/null_hid.o \
|
|
|
|
input/drivers_joypad/null_joypad.o \
|
|
|
|
playlist.o \
|
|
|
|
movie.o \
|
|
|
|
record/record_driver.o \
|
|
|
|
record/drivers/record_null.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/features/features_cpu.o \
|
2016-05-10 06:53:14 +00:00
|
|
|
performance_counters.o \
|
2018-03-28 22:32:37 +00:00
|
|
|
verbosity.o \
|
2018-06-04 05:48:08 +00:00
|
|
|
midi/midi_driver.o \
|
|
|
|
midi/drivers/null_midi.o
|
2018-03-29 13:38:22 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_RUNAHEAD), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
DEFINES += -DHAVE_RUNAHEAD
|
|
|
|
OBJ += runahead/copy_load_info.o \
|
|
|
|
runahead/dirty_input.o \
|
|
|
|
runahead/mem_util.o \
|
|
|
|
runahead/mylist.o \
|
|
|
|
runahead/run_ahead.o \
|
|
|
|
runahead/secondary_core.o
|
2018-03-29 13:38:22 +00:00
|
|
|
endif
|
2018-03-28 22:32:37 +00:00
|
|
|
|
2016-12-12 11:48:04 +00:00
|
|
|
ifeq ($(HAVE_CC_RESAMPLER), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_CC_RESAMPLER
|
|
|
|
OBJ += audio/drivers_resampler/cc_resampler.o
|
2016-12-12 11:48:04 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 04:05:41 +00:00
|
|
|
ifeq ($(HAVE_LANGEXTRA), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
DEFINES += -DHAVE_LANGEXTRA
|
|
|
|
DEFINES += -finput-charset=UTF-8
|
|
|
|
|
|
|
|
OBJ += intl/msg_hash_de.o \
|
|
|
|
intl/msg_hash_eo.o \
|
|
|
|
intl/msg_hash_es.o \
|
|
|
|
intl/msg_hash_fr.o \
|
|
|
|
intl/msg_hash_it.o \
|
|
|
|
intl/msg_hash_ja.o \
|
|
|
|
intl/msg_hash_ko.o \
|
|
|
|
intl/msg_hash_nl.o \
|
|
|
|
intl/msg_hash_pl.o \
|
|
|
|
intl/msg_hash_pt_br.o \
|
|
|
|
intl/msg_hash_pt_pt.o \
|
|
|
|
intl/msg_hash_ru.o \
|
|
|
|
intl/msg_hash_vn.o \
|
|
|
|
intl/msg_hash_chs.o \
|
|
|
|
intl/msg_hash_cht.o \
|
|
|
|
intl/msg_hash_ar.o \
|
|
|
|
intl/msg_hash_el.o
|
2016-06-07 04:05:41 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 04:35:48 +00:00
|
|
|
ifneq ($(HAVE_GETOPT_LONG), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/compat/compat_getopt.o
|
2016-06-07 04:35:48 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(HAVE_STRCASESTR), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.o
|
2016-06-07 04:35:48 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(HAVE_STRL), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/compat/compat_strl.o
|
2016-06-07 04:35:48 +00:00
|
|
|
endif
|
|
|
|
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/image_texture.o
|
2015-06-28 16:55:00 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_IMAGEVIEWER), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_IMAGEVIEWER
|
|
|
|
OBJ += cores/libretro-imageviewer/image_core.o
|
2015-06-28 16:55:00 +00:00
|
|
|
endif
|
2015-02-19 02:16:47 +00:00
|
|
|
|
2018-04-30 18:33:05 +00:00
|
|
|
# Qt WIMP GUI
|
2016-11-20 01:18:44 +00:00
|
|
|
|
2018-08-26 14:40:33 +00:00
|
|
|
ifeq ($(HAVE_OPENSSL), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += $(OPENSSL_CFLAGS)
|
|
|
|
LIBS += $(OPENSSL_LIBS)
|
2018-08-26 14:40:33 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-12 16:56:23 +00:00
|
|
|
ifeq ($(HAVE_QT), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += ui/drivers/ui_qt.o \
|
|
|
|
ui/drivers/qt/ui_qt_application.o \
|
|
|
|
ui/drivers/qt/ui_qt_window.o \
|
|
|
|
ui/drivers/qt/ui_qt_browser_window.o \
|
|
|
|
ui/drivers/qt/ui_qt_load_core_window.o \
|
|
|
|
ui/drivers/qt/ui_qt_msg_window.o \
|
2018-12-12 19:45:19 +00:00
|
|
|
ui/drivers/qt/gridview.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
ui/drivers/qt/shaderparamsdialog.o \
|
|
|
|
ui/drivers/qt/coreoptionsdialog.o \
|
|
|
|
ui/drivers/qt/filedropwidget.o \
|
|
|
|
ui/drivers/qt/coreinfodialog.o \
|
|
|
|
ui/drivers/qt/playlistentrydialog.o \
|
|
|
|
ui/drivers/qt/viewoptionsdialog.o \
|
2019-01-12 20:16:48 +00:00
|
|
|
ui/drivers/qt/qt_playlist.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
ui/drivers/qt/updateretroarch.o \
|
|
|
|
ui/drivers/qt/thumbnaildownload.o \
|
|
|
|
ui/drivers/qt/thumbnailpackdownload.o \
|
|
|
|
ui/drivers/qt/playlistthumbnaildownload.o
|
|
|
|
|
|
|
|
MOC_HEADERS += ui/drivers/ui_qt.h \
|
|
|
|
ui/drivers/qt/ui_qt_load_core_window.h \
|
2018-12-12 19:45:19 +00:00
|
|
|
ui/drivers/qt/gridview.h \
|
2018-11-09 17:49:30 +00:00
|
|
|
ui/drivers/qt/shaderparamsdialog.h \
|
|
|
|
ui/drivers/qt/coreoptionsdialog.h \
|
|
|
|
ui/drivers/qt/filedropwidget.h \
|
|
|
|
ui/drivers/qt/coreinfodialog.h \
|
|
|
|
ui/drivers/qt/playlistentrydialog.h \
|
|
|
|
ui/drivers/qt/viewoptionsdialog.h
|
|
|
|
|
|
|
|
DEFINES += $(QT5CORE_CFLAGS) $(QT5GUI_CFLAGS) $(QT5WIDGETS_CFLAGS) $(QT5CONCURRENT_CFLAGS) $(QT5NETWORK_CFLAGS) -DHAVE_MAIN
|
|
|
|
#DEFINES += $(QT5WEBENGINE_CFLAGS)
|
|
|
|
LIBS += $(QT5CORE_LIBS) $(QT5GUI_LIBS) $(QT5WIDGETS_LIBS) $(QT5CONCURRENT_LIBS) $(QT5NETWORK_LIBS)
|
|
|
|
#LIBS += $(QT5WEBENGINE_LIBS)
|
|
|
|
NEED_CXX_LINKER = 1
|
2018-04-30 18:33:05 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifneq ($(findstring Linux,$(OS)),)
|
|
|
|
DEFINES += -fPIC
|
|
|
|
endif
|
2015-04-12 16:56:23 +00:00
|
|
|
endif
|
|
|
|
|
2016-03-03 17:17:48 +00:00
|
|
|
ifeq ($(HAVE_SSA),1)
|
2018-11-09 17:49:30 +00:00
|
|
|
LIBS += $(SSA_LIBS)
|
2016-03-03 17:17:48 +00:00
|
|
|
endif
|
|
|
|
|
2015-01-20 00:00:17 +00:00
|
|
|
# LibretroDB
|
2014-12-30 20:12:43 +00:00
|
|
|
|
2015-01-22 02:58:04 +00:00
|
|
|
ifeq ($(HAVE_LIBRETRODB), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += libretro-db/bintree.o \
|
|
|
|
libretro-db/libretrodb.o \
|
|
|
|
libretro-db/query.o \
|
|
|
|
libretro-db/rmsgpack.o \
|
|
|
|
libretro-db/rmsgpack_dom.o \
|
|
|
|
database_info.o \
|
|
|
|
tasks/task_database.o \
|
|
|
|
tasks/task_database_cue.o
|
2015-01-22 02:58:04 +00:00
|
|
|
endif
|
2014-12-30 20:12:43 +00:00
|
|
|
|
2018-12-20 00:05:40 +00:00
|
|
|
ifeq ($(HAVE_BUILTINMBEDTLS), 1)
|
|
|
|
HAVE_SSL = 1
|
|
|
|
DEFINES += -DHAVE_SSL
|
2018-11-09 17:49:30 +00:00
|
|
|
|
2018-12-20 00:05:40 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
DEFINES += -DMBEDTLS_SSL_DEBUG_ALL
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
2018-12-20 00:05:40 +00:00
|
|
|
|
|
|
|
# MinGW requires this for some reason, even though the include paths are relative to the source
|
|
|
|
INCLUDE_DIRS += -Ideps/mbedtls
|
|
|
|
|
|
|
|
OBJS_TLS_CRYPTO = deps/mbedtls/aes.o \
|
|
|
|
deps/mbedtls/aesni.o \
|
|
|
|
deps/mbedtls/arc4.o \
|
|
|
|
deps/mbedtls/asn1parse.o \
|
|
|
|
deps/mbedtls/asn1write.o \
|
|
|
|
deps/mbedtls/base64.o \
|
|
|
|
deps/mbedtls/bignum.o \
|
|
|
|
deps/mbedtls/blowfish.o \
|
|
|
|
deps/mbedtls/camellia.o \
|
|
|
|
deps/mbedtls/ccm.o \
|
|
|
|
deps/mbedtls/cipher.o \
|
|
|
|
deps/mbedtls/cipher_wrap.o \
|
|
|
|
deps/mbedtls/cmac.o \
|
|
|
|
deps/mbedtls/ctr_drbg.o \
|
|
|
|
deps/mbedtls/des.o \
|
|
|
|
deps/mbedtls/dhm.o \
|
|
|
|
deps/mbedtls/ecdh.o \
|
|
|
|
deps/mbedtls/ecdsa.o \
|
|
|
|
deps/mbedtls/ecjpake.o \
|
|
|
|
deps/mbedtls/ecp.o \
|
|
|
|
deps/mbedtls/ecp_curves.o \
|
|
|
|
deps/mbedtls/entropy.o \
|
|
|
|
deps/mbedtls/entropy_poll.o \
|
|
|
|
deps/mbedtls/error.o \
|
|
|
|
deps/mbedtls/gcm.o \
|
|
|
|
deps/mbedtls/havege.o \
|
|
|
|
deps/mbedtls/hmac_drbg.o \
|
|
|
|
deps/mbedtls/md.o \
|
|
|
|
deps/mbedtls/md2.o \
|
|
|
|
deps/mbedtls/md4.o \
|
|
|
|
deps/mbedtls/md5.o \
|
|
|
|
deps/mbedtls/md_wrap.o \
|
|
|
|
deps/mbedtls/memory_buffer_alloc.o \
|
|
|
|
deps/mbedtls/oid.o \
|
|
|
|
deps/mbedtls/padlock.o \
|
|
|
|
deps/mbedtls/pem.o \
|
|
|
|
deps/mbedtls/pk.o \
|
|
|
|
deps/mbedtls/pk_wrap.o \
|
|
|
|
deps/mbedtls/pkcs12.o \
|
|
|
|
deps/mbedtls/pkcs5.o \
|
|
|
|
deps/mbedtls/pkparse.o \
|
|
|
|
deps/mbedtls/pkwrite.o \
|
|
|
|
deps/mbedtls/platform.o \
|
|
|
|
deps/mbedtls/ripemd160.o \
|
|
|
|
deps/mbedtls/rsa.o \
|
|
|
|
deps/mbedtls/sha1.o \
|
|
|
|
deps/mbedtls/sha256.o \
|
|
|
|
deps/mbedtls/sha512.o \
|
|
|
|
deps/mbedtls/threading.o \
|
|
|
|
deps/mbedtls/timing.o \
|
|
|
|
deps/mbedtls/version.o \
|
|
|
|
deps/mbedtls/version_features.o \
|
|
|
|
deps/mbedtls/xtea.o
|
|
|
|
|
|
|
|
OBJS_TLS_X509 = deps/mbedtls/certs.o \
|
|
|
|
deps/mbedtls/pkcs11.o \
|
|
|
|
deps/mbedtls/x509.o \
|
|
|
|
deps/mbedtls/x509_create.o \
|
|
|
|
deps/mbedtls/x509_crl.o \
|
|
|
|
deps/mbedtls/x509_crt.o \
|
|
|
|
deps/mbedtls/x509_csr.o \
|
|
|
|
deps/mbedtls/x509write_crt.o \
|
|
|
|
deps/mbedtls/x509write_csr.o
|
|
|
|
|
|
|
|
OBJS_TLS = deps/mbedtls/debug.o \
|
|
|
|
deps/mbedtls/net_sockets.o \
|
|
|
|
deps/mbedtls/ssl_cache.o \
|
|
|
|
deps/mbedtls/ssl_ciphersuites.o \
|
|
|
|
deps/mbedtls/ssl_cli.o \
|
|
|
|
deps/mbedtls/ssl_cookie.o \
|
|
|
|
deps/mbedtls/ssl_srv.o \
|
|
|
|
deps/mbedtls/ssl_ticket.o \
|
|
|
|
deps/mbedtls/ssl_tls.o
|
|
|
|
|
|
|
|
OBJ += $(OBJS_TLS_CRYPTO) $(OBJS_TLS_X509) $(OBJS_TLS)
|
|
|
|
else ifeq ($(HAVE_SSL), 1)
|
|
|
|
DEFINES += -DHAVE_SSL
|
|
|
|
LIBS += $(MBEDTLS_LIBS) $(MBEDX509_LIBS) $(MBEDCRYPTO_LIBS)
|
2018-09-25 22:16:37 +00:00
|
|
|
endif
|
2017-07-03 05:10:23 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Miscellaneous
|
|
|
|
|
2014-09-14 02:37:57 +00:00
|
|
|
ifeq ($(HAVE_STDIN_CMD), 1)
|
|
|
|
DEFINES += -DHAVE_COMMAND -DHAVE_STDIN_CMD
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_PYTHON), 1)
|
|
|
|
DEFINES += $(PYTHON_CFLAGS) -Wno-unused-parameter
|
|
|
|
LIBS += $(PYTHON_LIBS)
|
2016-09-11 15:59:10 +00:00
|
|
|
OBJ += gfx/drivers_tracker/video_state_python.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 01:58:49 +00:00
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
2018-11-09 19:59:30 +00:00
|
|
|
OBJ += frontend/drivers/platform_emscripten.o \
|
|
|
|
input/drivers/rwebinput_input.o \
|
|
|
|
input/drivers_joypad/rwebpad_joypad.o \
|
|
|
|
audio/drivers/rwebaudio.o \
|
|
|
|
camera/drivers/rwebcam.o
|
2014-09-14 01:58:49 +00:00
|
|
|
endif
|
|
|
|
|
2016-09-21 14:06:14 +00:00
|
|
|
ifeq ($(HAVE_LAKKA), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += wifi/drivers/connmanctl.o
|
2016-09-21 14:06:14 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Audio
|
2018-11-09 19:59:30 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_COREAUDIO), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/coreaudio.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += -framework CoreServices -framework CoreAudio -framework AudioUnit
|
|
|
|
endif
|
|
|
|
|
2015-04-19 22:13:02 +00:00
|
|
|
ifeq ($(HAVE_CORETEXT), 1)
|
|
|
|
OBJ += gfx/drivers_font_renderer/coretext.o
|
|
|
|
endif
|
|
|
|
|
2017-12-07 04:54:54 +00:00
|
|
|
ifeq ($(TARGET), retroarch_3ds)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers_font/ctr_font.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
|
|
|
|
2018-09-14 18:38:42 +00:00
|
|
|
ifeq ($(HAVE_LIBNX), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers_font/switch_font.o
|
2018-09-14 18:38:42 +00:00
|
|
|
endif
|
|
|
|
|
2018-12-21 14:15:30 +00:00
|
|
|
ifeq ($(HAVE_AUDIOIO), 1)
|
|
|
|
OBJ += audio/drivers/audioio.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_OSS), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/oss.o
|
2017-06-19 12:18:04 +00:00
|
|
|
else ifeq ($(HAVE_OSS_BSD), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/oss.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-07 04:54:54 +00:00
|
|
|
ifeq ($(TARGET), retroarch_3ds)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += audio/drivers/ctr_csnd_audio.o \
|
|
|
|
audio/drivers/ctr_dsp_audio.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_ALSA), 1)
|
2016-05-11 17:02:43 +00:00
|
|
|
OBJ += audio/drivers/alsa.o
|
2018-09-28 14:07:51 +00:00
|
|
|
OBJ += midi/drivers/alsa_midi.o
|
2016-05-11 17:02:43 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
|
|
OBJ += audio/drivers/alsathread.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(ALSA_LIBS)
|
|
|
|
DEFINES += $(ALSA_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2017-06-24 01:44:00 +00:00
|
|
|
ifeq ($(HAVE_TINYALSA), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += audio/drivers/tinyalsa.o
|
|
|
|
DEFINES += -DHAVE_TINYALSA
|
2017-06-24 01:44:00 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_ROAR), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/roar.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(ROAR_LIBS)
|
|
|
|
DEFINES += $(ROAR_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_AL), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/openal.o
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(OSX),1)
|
|
|
|
LIBS += -framework OpenAL
|
|
|
|
else
|
2017-11-25 23:40:08 +00:00
|
|
|
LIBS += $(AL_LIBS)
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-04-20 15:19:51 +00:00
|
|
|
ifneq ($(findstring Darwin,$(OS)),)
|
2015-10-11 07:26:54 +00:00
|
|
|
OBJ += frontend/drivers/platform_darwin.o
|
2015-04-19 15:08:13 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_JACK),1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/jack.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(JACK_LIBS)
|
|
|
|
DEFINES += $(JACK_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_PULSE), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/pulse.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(PULSE_LIBS)
|
|
|
|
DEFINES += $(PULSE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS_LIB), 1)
|
|
|
|
LIBS += -lossaudio
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_RSOUND), 1)
|
2015-03-15 13:28:20 +00:00
|
|
|
OBJ += audio/drivers/rsound.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += $(RSOUND_CFLAGS)
|
|
|
|
LIBS += $(RSOUND_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_DSOUND), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/dsound.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_DSOUND
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_DX_COMMON = 1
|
2018-01-03 18:58:51 +00:00
|
|
|
LIBS += -ldsound
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2017-04-09 21:53:55 +00:00
|
|
|
ifeq ($(HAVE_WASAPI), 1)
|
|
|
|
OBJ += audio/drivers/wasapi.o
|
|
|
|
DEFINES += -DHAVE_WASAPI
|
|
|
|
LIBS += -lole32 -lksuser
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_XAUDIO), 1)
|
2015-04-03 00:29:20 +00:00
|
|
|
OBJ += audio/drivers/xaudio.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_XAUDIO
|
|
|
|
LIBS += -lole32
|
|
|
|
endif
|
|
|
|
|
2018-06-04 05:48:08 +00:00
|
|
|
ifeq ($(HAVE_WINMM), 1)
|
|
|
|
OBJ += midi/drivers/winmm_midi.o
|
|
|
|
DEFINES += -DHAVE_WINMM
|
|
|
|
LIBS += -lwinmm
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Audio Resamplers
|
|
|
|
|
|
|
|
ifeq ($(HAVE_NEON),1)
|
2016-12-14 04:22:28 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler_neon.o \
|
2017-01-17 17:01:29 +00:00
|
|
|
audio/drivers_resampler/cc_resampler_neon.o \
|
|
|
|
memory/neon/memcpy-neon.o
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_NEON
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2016-12-12 12:02:29 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/audio/audio_mix.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/wav/rwav.o
|
2016-09-19 17:44:20 +00:00
|
|
|
|
2016-06-07 04:35:48 +00:00
|
|
|
ifeq ($(HAVE_NEON),1)
|
2016-12-12 12:02:29 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float_neon.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16_neon.o
|
2016-06-07 04:35:48 +00:00
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
HW_CONTEXT_MENU_DRIVERS=$(HAVE_MENU)
|
2016-02-22 11:33:42 +00:00
|
|
|
|
|
|
|
ifeq ($(HW_CONTEXT_MENU_DRIVERS),0)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_GL_CONTEXT),1)
|
|
|
|
HW_CONTEXT_MENU_DRIVERS=1
|
|
|
|
endif
|
|
|
|
ifeq ($(HAVE_VULKAN),1)
|
|
|
|
HW_CONTEXT_MENU_DRIVERS=1
|
|
|
|
endif
|
2016-02-22 11:33:42 +00:00
|
|
|
endif
|
|
|
|
|
2015-11-17 11:04:02 +00:00
|
|
|
# XMB and MaterialUI are always enabled if supported and not explicitly disabled
|
2016-02-22 11:33:42 +00:00
|
|
|
ifeq ($(HW_CONTEXT_MENU_DRIVERS), 1)
|
2018-12-23 17:43:27 +00:00
|
|
|
ifeq ($(HAVE_ZARCH),)
|
|
|
|
HAVE_ZARCH = 0
|
|
|
|
endif
|
2015-10-02 00:15:23 +00:00
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
ifeq ($(HAVE_RGUI),)
|
|
|
|
HAVE_RGUI = 1
|
|
|
|
endif
|
|
|
|
|
2015-11-02 22:23:54 +00:00
|
|
|
ifeq ($(HAVE_MATERIALUI),)
|
|
|
|
HAVE_MATERIALUI = 1
|
2015-06-26 14:55:06 +00:00
|
|
|
endif
|
|
|
|
|
2018-12-23 17:43:27 +00:00
|
|
|
ifeq ($(HAVE_NUKLEAR),)
|
|
|
|
HAVE_NUKLEAR = 0
|
|
|
|
endif
|
2015-06-26 14:55:06 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_XMB),)
|
|
|
|
HAVE_XMB = 1
|
|
|
|
endif
|
2018-04-08 02:55:16 +00:00
|
|
|
|
2018-12-23 17:43:27 +00:00
|
|
|
ifeq ($(HAVE_STRIPES),)
|
|
|
|
HAVE_STRIPES = 0
|
|
|
|
endif
|
2018-09-18 13:13:33 +00:00
|
|
|
|
2018-11-15 17:46:38 +00:00
|
|
|
ifeq ($(HAVE_OZONE),)
|
|
|
|
HAVE_OZONE = 1
|
|
|
|
endif
|
2015-06-26 14:55:06 +00:00
|
|
|
else
|
2018-10-31 11:02:24 +00:00
|
|
|
HAVE_ZARCH ?= 0
|
2019-01-06 22:30:50 +00:00
|
|
|
HAVE_RGUI ?= 0
|
2017-01-17 22:12:36 +00:00
|
|
|
HAVE_MATERIALUI ?= 0
|
2018-10-31 11:02:24 +00:00
|
|
|
HAVE_NUKLEAR ?= 0
|
|
|
|
HAVE_XMB ?= 0
|
|
|
|
HAVE_STRIPES ?= 0
|
|
|
|
HAVE_OZONE ?= 0
|
2015-06-26 14:55:06 +00:00
|
|
|
endif
|
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
ifeq ($(HAVE_MENU), 1)
|
|
|
|
DEFINES += -DHAVE_MENU
|
2014-09-13 22:53:00 +00:00
|
|
|
HAVE_MENU_COMMON = 1
|
2019-01-06 22:30:50 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_RGUI), 1)
|
|
|
|
OBJ += menu/drivers/rgui.o
|
|
|
|
DEFINES += -DHAVE_RGUI
|
|
|
|
endif
|
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_MATERIALUI), 1)
|
|
|
|
OBJ += menu/drivers/materialui.o
|
|
|
|
DEFINES += -DHAVE_MATERIALUI
|
2018-12-23 17:43:27 +00:00
|
|
|
HAVE_ASSETS = 1
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
2019-01-06 22:30:50 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_NUKLEAR), 1)
|
2019-01-06 22:30:50 +00:00
|
|
|
OBJ += menu/drivers/nuklear/nk_common.o \
|
|
|
|
menu/drivers/nuklear/nk_menu.o \
|
|
|
|
menu/drivers/nuklear/nk_wnd_debug.o \
|
|
|
|
menu/drivers/nuklear.o
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_NUKLEAR
|
2018-12-23 17:43:27 +00:00
|
|
|
HAVE_ASSETS = 1
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
2019-01-06 22:30:50 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_ZARCH), 1)
|
|
|
|
OBJ += menu/drivers/zarch.o
|
|
|
|
DEFINES += -DHAVE_ZARCH
|
2018-12-23 17:43:27 +00:00
|
|
|
HAVE_ASSETS = 1
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
2017-01-17 22:12:36 +00:00
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
ifeq ($(HAVE_XMB), 1)
|
|
|
|
OBJ += menu/drivers/xmb.o
|
|
|
|
DEFINES += -DHAVE_XMB
|
|
|
|
HAVE_ASSETS = 1
|
|
|
|
endif
|
2014-09-13 22:53:00 +00:00
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
ifeq ($(HAVE_OZONE), 1)
|
|
|
|
OBJ += menu/drivers/ozone/ozone.o \
|
|
|
|
menu/drivers/ozone/ozone_entries.o \
|
|
|
|
menu/drivers/ozone/ozone_display.o \
|
|
|
|
menu/drivers/ozone/ozone_texture.o \
|
|
|
|
menu/drivers/ozone/ozone_theme.o \
|
|
|
|
menu/drivers/ozone/ozone_sidebar.o
|
|
|
|
DEFINES += -DHAVE_OZONE
|
|
|
|
HAVE_ASSETS = 1
|
|
|
|
endif
|
2018-09-18 13:13:33 +00:00
|
|
|
|
2019-01-06 22:30:50 +00:00
|
|
|
ifeq ($(HAVE_STRIPES), 1)
|
|
|
|
OBJ += menu/drivers/stripes.o
|
|
|
|
DEFINES += -DHAVE_STRIPES
|
|
|
|
endif
|
2018-04-08 02:55:16 +00:00
|
|
|
endif
|
|
|
|
|
2015-10-23 08:24:47 +00:00
|
|
|
ifeq ($(HAVE_LAKKA), 1)
|
|
|
|
DEFINES += -DHAVE_LAKKA
|
|
|
|
endif
|
|
|
|
|
2018-10-06 12:52:44 +00:00
|
|
|
ifeq ($(HAVE_LAKKA_SWITCH), 1)
|
|
|
|
DEFINES += -DHAVE_LAKKA_SWITCH
|
|
|
|
endif
|
|
|
|
|
2019-01-07 04:03:28 +00:00
|
|
|
OBJ += menu/menu_shader.o
|
|
|
|
|
2014-09-13 22:53:00 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2016-06-20 01:35:09 +00:00
|
|
|
OBJ += menu/menu_driver.o \
|
2016-02-09 16:36:59 +00:00
|
|
|
menu/menu_content.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
menu/menu_input.o \
|
|
|
|
menu/menu_entries.o \
|
|
|
|
menu/menu_setting.o \
|
2017-12-13 02:35:12 +00:00
|
|
|
menu/menu_networking.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
menu/widgets/menu_filebrowser.o \
|
|
|
|
menu/widgets/menu_dialog.o \
|
|
|
|
menu/widgets/menu_input_dialog.o \
|
|
|
|
menu/widgets/menu_input_bind_dialog.o \
|
2016-09-14 22:20:43 +00:00
|
|
|
menu/widgets/menu_entry.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
menu/widgets/menu_osk.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
menu/menu_cbs.o \
|
|
|
|
menu/cbs/menu_cbs_ok.o \
|
|
|
|
menu/cbs/menu_cbs_cancel.o \
|
|
|
|
menu/cbs/menu_cbs_select.o \
|
|
|
|
menu/cbs/menu_cbs_start.o \
|
|
|
|
menu/cbs/menu_cbs_info.o \
|
|
|
|
menu/cbs/menu_cbs_refresh.o \
|
|
|
|
menu/cbs/menu_cbs_left.o \
|
|
|
|
menu/cbs/menu_cbs_right.o \
|
|
|
|
menu/cbs/menu_cbs_deferred_push.o \
|
|
|
|
menu/cbs/menu_cbs_scan.o \
|
|
|
|
menu/cbs/menu_cbs_get_value.o \
|
2016-07-08 14:24:05 +00:00
|
|
|
menu/cbs/menu_cbs_label.o \
|
2016-10-20 13:57:35 +00:00
|
|
|
menu/cbs/menu_cbs_sublabel.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
menu/cbs/menu_cbs_title.o \
|
|
|
|
menu/cbs/menu_cbs_up.o \
|
|
|
|
menu/cbs/menu_cbs_down.o \
|
|
|
|
menu/cbs/menu_cbs_contentlist_switch.o \
|
|
|
|
menu/menu_displaylist.o \
|
|
|
|
menu/menu_animation.o \
|
|
|
|
menu/drivers/menu_generic.o \
|
|
|
|
menu/drivers/null.o
|
2019-01-06 16:04:28 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON),1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_null.o
|
|
|
|
endif
|
2014-09-13 22:53:00 +00:00
|
|
|
endif
|
2014-09-13 23:01:52 +00:00
|
|
|
|
2017-01-17 22:12:36 +00:00
|
|
|
ifeq ($(HAVE_OVERLAY), 1)
|
|
|
|
DEFINES += -DHAVE_OVERLAY
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += tasks/task_overlay.o \
|
2018-01-05 15:10:34 +00:00
|
|
|
input/input_overlay.o \
|
2018-01-11 00:52:32 +00:00
|
|
|
led/drivers/led_overlay.o
|
2017-01-17 22:12:36 +00:00
|
|
|
endif
|
|
|
|
|
2015-07-14 15:00:28 +00:00
|
|
|
ifeq ($(HAVE_STB_FONT), 1)
|
|
|
|
OBJ += gfx/drivers_font_renderer/stb.o
|
2016-11-05 19:45:23 +00:00
|
|
|
OBJ += gfx/drivers_font_renderer/stb_unicode.o
|
2017-01-17 22:12:36 +00:00
|
|
|
DEFINES += -DHAVE_STB_FONT
|
2015-07-14 15:00:28 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:01:52 +00:00
|
|
|
ifeq ($(HAVE_FREETYPE), 1)
|
2015-01-12 22:34:10 +00:00
|
|
|
OBJ += gfx/drivers_font_renderer/freetype.o
|
2014-09-13 23:01:52 +00:00
|
|
|
LIBS += $(FREETYPE_LIBS)
|
|
|
|
DEFINES += $(FREETYPE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/rthreads/rthreads.o \
|
2016-06-07 04:35:48 +00:00
|
|
|
gfx/video_thread_wrapper.o \
|
2016-02-09 16:36:59 +00:00
|
|
|
audio/audio_thread_wrapper.o
|
2014-09-13 23:01:52 +00:00
|
|
|
DEFINES += -DHAVE_THREADS
|
|
|
|
ifeq ($(findstring Haiku,$(OS)),)
|
2017-11-25 23:40:08 +00:00
|
|
|
LIBS += $(THREADS_LIBS)
|
2014-09-13 23:01:52 +00:00
|
|
|
endif
|
|
|
|
endif
|
2014-09-13 23:58:57 +00:00
|
|
|
|
2016-10-18 00:21:51 +00:00
|
|
|
ifeq ($(HAVE_THREAD_STORAGE), 1)
|
|
|
|
DEFINES += -DHAVE_THREAD_STORAGE
|
|
|
|
endif
|
|
|
|
|
2017-01-17 16:31:38 +00:00
|
|
|
ifeq ($(HAVE_VITA2D), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(DEPS_DIR)/libvita2d/source/vita2d.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/source/vita2d_texture.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/source/vita2d_draw.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/source/utils.o
|
|
|
|
|
|
|
|
OBJ += $(DEPS_DIR)/libvita2d/shader/clear_v_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/clear_f_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/color_v_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/color_f_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/texture_v_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/texture_f_gxp.o \
|
|
|
|
$(DEPS_DIR)/libvita2d/shader/texture_tint_f_gxp.o
|
|
|
|
|
2019-01-06 16:04:28 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON),1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += menu/drivers_display/menu_display_vita2d.o
|
|
|
|
endif
|
2017-01-17 17:01:29 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers/vita2d_gfx.o \
|
|
|
|
gfx/drivers_font/vita2d_font.o
|
2017-01-17 17:01:29 +00:00
|
|
|
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(DEPS_DIR)/libvita2d/include
|
2017-01-17 16:31:38 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-07 04:54:54 +00:00
|
|
|
ifeq ($(TARGET), retroarch_3ds)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers/ctr_gfx.o \
|
|
|
|
menu/drivers_display/menu_display_ctr.o \
|
|
|
|
input/drivers/ctr_input.o \
|
|
|
|
input/drivers_joypad/ctr_joypad.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-24 01:26:58 +00:00
|
|
|
ifeq ($(TARGET), retroarch_switch)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_LIBNX), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_switch.o \
|
|
|
|
gfx/drivers/switch_nx_gfx.o
|
2018-09-26 22:52:06 +00:00
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers_context/switch_ctx.o
|
2018-09-26 22:52:06 +00:00
|
|
|
endif
|
2018-10-01 19:12:59 +00:00
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/rthreads/switch_pthread.o
|
2018-10-01 19:12:59 +00:00
|
|
|
endif
|
2018-11-09 17:49:30 +00:00
|
|
|
else
|
|
|
|
OBJ += gfx/drivers/switch_gfx.o
|
|
|
|
endif
|
|
|
|
OBJ += audio/drivers/switch_audio.o \
|
|
|
|
audio/drivers/switch_thread_audio.o \
|
|
|
|
input/drivers/switch_input.o \
|
|
|
|
input/drivers_joypad/switch_joypad.o \
|
|
|
|
frontend/drivers/platform_switch.o
|
2017-12-24 01:26:58 +00:00
|
|
|
endif
|
|
|
|
|
2018-12-28 00:27:13 +00:00
|
|
|
ifeq ($(TARGET), retroarch_orbis)
|
|
|
|
OBJ += gfx/drivers_context/orbis_ctx.o \
|
|
|
|
frontend/drivers/platform_orbis.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_WAYLAND), 1)
|
2018-11-17 12:01:51 +00:00
|
|
|
OBJ += gfx/drivers_context/wayland_ctx.o \
|
|
|
|
input/drivers/wayland_input.o \
|
2018-11-26 17:54:39 +00:00
|
|
|
gfx/common/wayland/xdg-shell.o \
|
2018-12-03 10:32:31 +00:00
|
|
|
gfx/common/wayland/xdg-shell-unstable-v6.o \
|
2018-12-05 18:51:07 +00:00
|
|
|
gfx/common/wayland/idle-inhibit-unstable-v1.o \
|
2018-12-09 14:47:47 +00:00
|
|
|
gfx/common/wayland/xdg-decoration-unstable-v1.o
|
2018-11-17 12:01:51 +00:00
|
|
|
ifeq ($(HAVE_EGL), 1)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
DEFINES += $(WAYLAND_CFLAGS) $(WAYLAND_CURSOR_CFLAGS)
|
|
|
|
LIBS += $(WAYLAND_LIBS) $(WAYLAND_CURSOR_LIBS)
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
2016-02-20 05:16:34 +00:00
|
|
|
#Input
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_DINPUT), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_DX_COMMON = 1
|
2018-01-03 18:58:51 +00:00
|
|
|
LIBS += -ldinput8 -lole32
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_DINPUT
|
2015-04-07 23:58:09 +00:00
|
|
|
OBJ += input/drivers/dinput.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/drivers_joypad/dinput_joypad.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-05 18:54:46 +00:00
|
|
|
ifeq ($(HAVE_XINPUT), 1)
|
2016-09-03 05:39:26 +00:00
|
|
|
DEFINES += -DHAVE_XINPUT
|
|
|
|
OBJ += input/drivers_joypad/xinput_joypad.o
|
2014-09-13 23:58:57 +00:00
|
|
|
endif
|
|
|
|
|
2016-03-01 20:50:23 +00:00
|
|
|
ifeq ($(HAVE_OPENDINGUX_FBDEV), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
OBJ += gfx/drivers_context/opendingux_fbdev_ctx.o
|
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
2016-03-01 20:50:23 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_X11), 1)
|
2015-11-29 02:34:09 +00:00
|
|
|
OBJ += input/common/input_x11_common.o \
|
2016-02-09 16:36:59 +00:00
|
|
|
input/drivers/x11_input.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/common/x11_common.o \
|
2017-12-16 04:48:05 +00:00
|
|
|
gfx/common/xinerama_common.o \
|
|
|
|
gfx/display_servers/dispserv_x11.o
|
2015-10-11 07:26:54 +00:00
|
|
|
|
2018-11-27 10:28:24 +00:00
|
|
|
LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS) $(XRANDR_LIBS)
|
2017-12-16 04:48:05 +00:00
|
|
|
DEFINES += -DHAVE_X11 $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_XCB),1)
|
|
|
|
LIBS += -lX11-xcb
|
|
|
|
endif
|
|
|
|
ifneq ($(HAVE_OPENGLES), 1)
|
|
|
|
OBJ += gfx/drivers_context/x_ctx.o
|
|
|
|
endif
|
2014-09-13 23:58:57 +00:00
|
|
|
endif
|
|
|
|
|
2016-02-19 14:43:12 +00:00
|
|
|
ifeq ($(HAVE_XCB),1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += $(XCB_CFLAGS)
|
|
|
|
LIBS += $(XCB_LIBS)
|
2016-02-19 14:43:12 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_XKBCOMMON), 1)
|
|
|
|
DEFINES += $(XKBCOMMON_CFLAGS)
|
2016-02-09 16:36:59 +00:00
|
|
|
OBJ += input/drivers_keyboard/keyboard_event_xkb.o
|
2014-09-13 23:58:57 +00:00
|
|
|
LIBS += $(XKBCOMMON_LIBS)
|
|
|
|
endif
|
|
|
|
|
2016-09-08 22:18:37 +00:00
|
|
|
ifeq ($(HAVE_DBUS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
LIBS += $(DBUS_LIBS)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += $(DBUS_CFLAGS)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/common/dbus_common.o
|
2016-09-08 22:18:37 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_UDEV), 1)
|
|
|
|
DEFINES += $(UDEV_CFLAGS)
|
|
|
|
LIBS += $(UDEV_LIBS)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += input/drivers/udev_input.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/drivers_joypad/udev_joypad.o
|
2014-09-13 23:58:57 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-02 13:43:23 +00:00
|
|
|
ifeq ($(HAVE_LIBUSB), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
|
|
ifeq ($(HAVE_HID), 1)
|
|
|
|
DEFINES += -DHAVE_LIBUSB
|
|
|
|
OBJ += input/drivers_hid/libusb_hid.o
|
|
|
|
ifneq ($(findstring BSD,$(OS)),)
|
|
|
|
LIBS += -lusb
|
|
|
|
else
|
|
|
|
LIBS += -lusb-1.0
|
|
|
|
endif
|
|
|
|
endif
|
2017-11-23 04:44:54 +00:00
|
|
|
endif
|
2016-06-07 01:01:33 +00:00
|
|
|
endif
|
2015-04-02 15:49:32 +00:00
|
|
|
|
2015-04-20 10:04:31 +00:00
|
|
|
ifeq ($(HAVE_IOHIDMANAGER), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_HID), 1)
|
|
|
|
DEFINES += -DHAVE_IOHIDMANAGER
|
|
|
|
OBJ += input/drivers_hid/iohidmanager_hid.o
|
|
|
|
LIBS += -framework IOKit
|
|
|
|
endif
|
2016-06-07 01:01:33 +00:00
|
|
|
endif
|
2015-04-20 10:04:31 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_CORELOCATION), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
DEFINES += -DHAVE_CORELOCATION
|
|
|
|
LIBS += -framework CoreLocation
|
2015-04-20 10:04:31 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-02 15:49:32 +00:00
|
|
|
ifeq ($(HAVE_HID), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
DEFINES += -DHAVE_HID
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += input/drivers_joypad/hid_joypad.o \
|
|
|
|
input/connect/joypad_connection.o \
|
|
|
|
input/connect/connect_ps2adapter.o \
|
|
|
|
input/connect/connect_psxadapter.o \
|
|
|
|
input/connect/connect_ps3.o \
|
|
|
|
input/connect/connect_ps4.o \
|
|
|
|
input/connect/connect_wii.o \
|
|
|
|
input/connect/connect_nesusb.o \
|
|
|
|
input/connect/connect_snesusb.o \
|
|
|
|
input/connect/connect_wiiupro.o \
|
|
|
|
input/connect/connect_wiiugca.o
|
2015-04-02 13:43:23 +00:00
|
|
|
endif
|
|
|
|
|
2014-10-04 21:04:38 +00:00
|
|
|
ifeq ($(HAVE_PARPORT), 1)
|
2015-01-12 05:28:39 +00:00
|
|
|
OBJ += input/drivers_joypad/parport_joypad.o
|
2014-10-04 21:04:38 +00:00
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2017-05-18 16:48:41 +00:00
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
OBJ += input/drivers/winraw_input.o
|
|
|
|
endif
|
|
|
|
|
2015-11-19 06:23:41 +00:00
|
|
|
# Companion UI
|
|
|
|
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += ui/drivers/ui_win32.o \
|
|
|
|
ui/drivers/win32/ui_win32_window.o \
|
|
|
|
ui/drivers/win32/ui_win32_browser_window.o \
|
|
|
|
ui/drivers/win32/ui_win32_msg_window.o \
|
|
|
|
ui/drivers/win32/ui_win32_application.o
|
2015-11-19 06:23:41 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
# Video
|
2015-06-17 18:18:25 +00:00
|
|
|
|
2017-05-08 23:25:59 +00:00
|
|
|
OBJ += gfx/drivers_context/gfx_null_ctx.o \
|
2017-04-20 20:14:03 +00:00
|
|
|
gfx/video_state_tracker.o
|
2015-10-11 07:19:11 +00:00
|
|
|
|
2016-02-22 12:01:16 +00:00
|
|
|
ifeq ($(HAVE_KMS), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
HAVE_AND_WILL_USE_DRM = 1
|
|
|
|
OBJ += gfx/drivers_context/drm_ctx.o
|
|
|
|
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
|
|
|
|
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
|
2016-02-22 12:01:16 +00:00
|
|
|
endif
|
|
|
|
|
2016-12-01 17:13:36 +00:00
|
|
|
ifeq ($(HAVE_CACA), 1)
|
|
|
|
DEFINES += -DHAVE_CACA
|
|
|
|
OBJ += gfx/drivers/caca_gfx.o gfx/drivers_font/caca_font.o
|
|
|
|
LIBS += -lcaca
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_caca.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-07-12 20:55:08 +00:00
|
|
|
ifeq ($(HAVE_SIXEL), 1)
|
|
|
|
DEFINES += -DHAVE_SIXEL
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I/usr/include/sixel
|
2018-07-12 20:55:08 +00:00
|
|
|
OBJ += gfx/drivers/sixel_gfx.o gfx/drivers_font/sixel_font.o \
|
|
|
|
gfx/drivers_context/sixel_ctx.o
|
|
|
|
LIBS += -lsixel
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_sixel.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-07-03 20:08:56 +00:00
|
|
|
ifeq ($(HAVE_PLAIN_DRM), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
OBJ += gfx/drivers/drm_gfx.o
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I/usr/include/libdrm
|
2016-08-22 12:23:17 +00:00
|
|
|
LIBS += -ldrm
|
2016-07-03 20:08:56 +00:00
|
|
|
endif
|
|
|
|
|
2015-06-17 18:18:25 +00:00
|
|
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
2014-09-15 15:07:17 +00:00
|
|
|
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/gl.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/drivers_renderchain/gl2_renderchain.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/gfx/gl_capabilities.o \
|
2015-11-17 07:01:33 +00:00
|
|
|
gfx/common/gl_common.o \
|
2016-06-07 04:35:48 +00:00
|
|
|
gfx/drivers_font/gl_raster_font.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/glsym/rglgen.o
|
2016-02-09 16:36:59 +00:00
|
|
|
|
2015-11-08 00:30:07 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
OBJ += menu/drivers_display/menu_display_gl.o
|
|
|
|
endif
|
2014-09-14 01:44:54 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_VIDEOCORE), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/vc_egl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/emscriptenegl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MALI_FBDEV), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/mali_fbdev_ctx.o
|
2014-09-14 12:40:00 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_VIVANTE_FBDEV), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/vivante_fbdev_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_X11), 1)
|
|
|
|
ifeq ($(HAVE_EGL), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/xegl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
2018-11-09 17:49:30 +00:00
|
|
|
|
2016-07-30 14:37:22 +00:00
|
|
|
ifeq ($(HAVE_OSMESA), 1)
|
|
|
|
OBJ += gfx/drivers_context/osmesa_ctx.o
|
|
|
|
LIBS += -lOSMesa
|
|
|
|
endif
|
2015-10-09 16:29:57 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_FFMPEG), 1)
|
2018-12-20 00:05:40 +00:00
|
|
|
ifneq ($(HAVE_OPENGLES), 1)
|
|
|
|
OBJ += cores/libretro-ffmpeg/ffmpeg_fft.o
|
|
|
|
DEFINES += -I$(DEPS_DIR) -DHAVE_GL_FFT
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
|
|
|
endif
|
2018-07-11 01:42:42 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_METAL), 1)
|
|
|
|
DEFINES += -DHAVE_METAL
|
|
|
|
OBJ += gfx/common/metal/Context.o \
|
|
|
|
gfx/common/metal/Filter.o \
|
|
|
|
gfx/common/metal/RendererCommon.o \
|
|
|
|
gfx/common/metal/View.o \
|
|
|
|
gfx/common/metal/TexturedView.o \
|
|
|
|
gfx/common/metal/MenuDisplay.o \
|
|
|
|
gfx/common/metal_common.o \
|
|
|
|
gfx/drivers/metal.o \
|
|
|
|
gfx/drivers_font/metal_raster_font.o
|
2019-01-06 22:30:50 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_metal.o
|
|
|
|
endif
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MPV), 1)
|
|
|
|
OBJ += cores/libretro-mpv/mpv-libretro.o
|
|
|
|
DEFINES += -I$(DEPS_DIR) -DHAVE_MPV
|
|
|
|
LIBS += -lmpv
|
|
|
|
endif
|
2018-06-20 02:29:31 +00:00
|
|
|
|
2016-09-16 22:38:35 +00:00
|
|
|
ifeq ($(HAVE_OPENGLES), 1)
|
2016-09-21 10:45:31 +00:00
|
|
|
LIBS += $(OPENGLES_LIBS)
|
|
|
|
DEFINES += $(OPENGLES_CFLAGS) -DHAVE_OPENGLES
|
2016-09-16 22:38:35 +00:00
|
|
|
ifeq ($(HAVE_OPENGLES3), 1)
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += -DHAVE_OPENGLES3
|
2016-08-07 03:45:35 +00:00
|
|
|
else
|
|
|
|
DEFINES += -DHAVE_OPENGLES2
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/glsym/glsym_es2.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else
|
2016-09-05 19:43:02 +00:00
|
|
|
DEFINES += -DHAVE_GL_SYNC
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/glsym/glsym_gl.o
|
2017-11-25 23:40:08 +00:00
|
|
|
GL_LIBS := $(OPENGL_LIBS)
|
2014-09-14 01:44:54 +00:00
|
|
|
ifeq ($(OSX), 1)
|
2015-06-02 08:07:07 +00:00
|
|
|
GL_LIBS := -framework OpenGL
|
2015-04-26 01:48:35 +00:00
|
|
|
OBJ += gfx/drivers_context/cgl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else ifneq ($(findstring Win32,$(OS)),)
|
2017-05-16 20:43:21 +00:00
|
|
|
GL_LIBS := -lopengl32 -lgdi32 -lcomdlg32
|
|
|
|
WANT_WGL=1
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
2016-02-09 16:36:59 +00:00
|
|
|
LIBS += $(GL_LIBS)
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
|
2015-10-09 16:29:57 +00:00
|
|
|
OBJ += gfx/drivers_shader/shader_glsl.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += -DHAVE_GLSL
|
|
|
|
endif
|
2014-09-13 23:58:57 +00:00
|
|
|
|
2015-11-19 12:16:43 +00:00
|
|
|
ifeq ($(HAVE_EGL), 1)
|
2018-01-20 08:19:01 +00:00
|
|
|
DEFINES += -DHAVE_EGL $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
2016-02-09 16:36:59 +00:00
|
|
|
OBJ += gfx/common/egl_common.o
|
2015-11-19 12:16:43 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-16 01:13:54 +00:00
|
|
|
ifeq ($(HAVE_SDL2), 1)
|
|
|
|
HAVE_SDL=0
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_SDL), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sdl_gfx.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/drivers/sdl_input.o \
|
|
|
|
input/drivers_joypad/sdl_joypad.o \
|
|
|
|
audio/drivers/sdl_audio.o
|
2014-09-14 01:22:04 +00:00
|
|
|
|
2015-06-17 18:18:25 +00:00
|
|
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += $(SDL_CFLAGS) $(BSD_LOCAL_INC)
|
|
|
|
LIBS += $(SDL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_SDL2), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sdl2_gfx.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
input/drivers/sdl_input.o \
|
|
|
|
input/drivers_joypad/sdl_joypad.o \
|
|
|
|
audio/drivers/sdl_audio.o
|
2014-09-14 01:22:04 +00:00
|
|
|
|
2015-06-17 18:18:25 +00:00
|
|
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += $(SDL2_CFLAGS) $(BSD_LOCAL_INC)
|
|
|
|
LIBS += $(SDL2_LIBS)
|
|
|
|
HAVE_SDL = 0
|
|
|
|
endif
|
|
|
|
|
2016-09-07 11:38:01 +00:00
|
|
|
ifeq ($(HAVE_XSHM), 1)
|
|
|
|
OBJ += gfx/drivers/xshm_gfx.o
|
|
|
|
endif
|
|
|
|
|
2016-02-16 19:24:00 +00:00
|
|
|
ifeq ($(HAVE_VULKAN), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
2018-01-31 00:08:36 +00:00
|
|
|
WANT_WGL = 1
|
2016-07-15 13:40:06 +00:00
|
|
|
# Trivial temporary workaround for MinGW and glslang.
|
|
|
|
CXXFLAGS += -fpermissive
|
|
|
|
endif
|
|
|
|
|
2018-08-25 13:29:44 +00:00
|
|
|
CXXFLAGS += -Wno-switch -Wno-sign-compare -fno-strict-aliasing -Wno-reorder -Wno-parentheses
|
2016-07-15 13:40:06 +00:00
|
|
|
|
|
|
|
OBJ += gfx/drivers/vulkan.o \
|
|
|
|
gfx/common/vulkan_common.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/vulkan/vulkan_symbol_wrapper.o \
|
2016-07-15 13:40:06 +00:00
|
|
|
gfx/drivers_font/vulkan_raster_font.o \
|
2018-01-31 00:08:36 +00:00
|
|
|
gfx/drivers_shader/shader_vulkan.o
|
2016-07-15 13:40:06 +00:00
|
|
|
|
2016-08-27 23:48:13 +00:00
|
|
|
ifeq ($(HAVE_VULKAN_DISPLAY), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
OBJ += gfx/drivers_context/khr_display_ctx.o
|
|
|
|
endif
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_vulkan.o
|
|
|
|
endif
|
2018-05-02 17:44:45 +00:00
|
|
|
NEED_CXX_LINKER = 1
|
2018-01-31 00:08:36 +00:00
|
|
|
DEFINES += -DHAVE_VULKAN
|
2018-01-23 17:04:55 +00:00
|
|
|
INCLUDE_DIRS += -Igfx/include
|
|
|
|
|
2018-01-31 00:08:36 +00:00
|
|
|
HAVE_SLANG = 1
|
|
|
|
HAVE_GLSLANG = 1
|
|
|
|
HAVE_SPIRV_CROSS = 1
|
2017-05-16 20:33:48 +00:00
|
|
|
endif
|
2016-09-03 05:39:26 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_OMAP), 1)
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/omap_gfx.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EXYNOS), 1)
|
2017-01-17 17:01:29 +00:00
|
|
|
OBJ += gfx/drivers/exynos_gfx.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(DRM_LIBS) $(EXYNOS_LIBS)
|
|
|
|
DEFINES += $(DRM_CFLAGS) $(EXYNOS_CFLAGS)
|
2016-02-09 16:36:59 +00:00
|
|
|
HAVE_AND_WILL_USE_DRM = 1
|
2015-11-26 16:12:06 +00:00
|
|
|
endif
|
|
|
|
|
2015-11-26 20:28:31 +00:00
|
|
|
ifeq ($(HAVE_AND_WILL_USE_DRM), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
OBJ += gfx/common/drm_common.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2015-03-13 04:59:52 +00:00
|
|
|
ifeq ($(HAVE_DISPMANX), 1)
|
|
|
|
OBJ += gfx/drivers/dispmanx_gfx.o
|
2016-02-09 16:36:59 +00:00
|
|
|
HAVE_VIDEOCORE = 1
|
2015-03-13 04:59:52 +00:00
|
|
|
LIBS += $(DISPMANX_LIBS)
|
|
|
|
DEFINES += $(DISPMANX_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2016-01-10 11:04:32 +00:00
|
|
|
ifeq ($(HAVE_SUNXI), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sunxi_gfx.o \
|
2015-11-17 07:35:00 +00:00
|
|
|
gfx/include/pixman/pixman-arm-neon-asm.o
|
2016-01-10 11:04:32 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_VG), 1)
|
2015-11-08 22:31:07 +00:00
|
|
|
OBJ += gfx/drivers/vg.o
|
2014-09-13 23:58:57 +00:00
|
|
|
DEFINES += $(VG_CFLAGS)
|
|
|
|
LIBS += $(VG_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XVIDEO), 1)
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/xvideo.o
|
2015-10-09 16:29:57 +00:00
|
|
|
LIBS += $(XVIDEO_LIBS)
|
2014-09-13 23:58:57 +00:00
|
|
|
DEFINES += $(XVIDEO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:05:17 +00:00
|
|
|
ifeq ($(HAVE_CG), 1)
|
2016-02-09 16:36:59 +00:00
|
|
|
DEFINES += -DHAVE_CG
|
2015-01-12 21:23:48 +00:00
|
|
|
OBJ += gfx/drivers_shader/shader_gl_cg.o
|
2014-09-16 20:45:45 +00:00
|
|
|
LIBS += $(CG_LIBS)
|
2014-09-14 00:05:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_D3D9), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_D3D_COMMON = 1
|
|
|
|
HAVE_D3DX = 1
|
2018-01-04 13:59:23 +00:00
|
|
|
DEFINES += -DHAVE_D3D9
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_D3DX), 1)
|
|
|
|
DEFINES += -DHAVE_D3DX
|
|
|
|
endif
|
|
|
|
ifneq ($(HAVE_DYLIB), 1)
|
|
|
|
LIBS += -ld3d9
|
|
|
|
ifeq ($(HAVE_D3DX), 1)
|
|
|
|
LIBS += -ld3dx9
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
HAVE_DX_COMMON = 1
|
2017-09-04 23:03:55 +00:00
|
|
|
OBJ += gfx/drivers_font/d3d_w32_font.o
|
2017-09-04 22:06:07 +00:00
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
LIBS += -lcgD3D9
|
|
|
|
OBJ += gfx/drivers_renderchain/d3d9_cg_renderchain.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_HLSL), 1)
|
2018-05-16 13:52:11 +00:00
|
|
|
OBJ += gfx/drivers_renderchain/d3d9_hlsl_renderchain.o
|
2017-09-04 22:06:07 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-01-23 17:04:55 +00:00
|
|
|
ifeq ($(HAVE_D3D10), 1)
|
2018-03-02 16:23:43 +00:00
|
|
|
OBJ += gfx/drivers/d3d10.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/common/d3d10_common.o \
|
2019-01-06 16:04:28 +00:00
|
|
|
gfx/drivers_font/d3d10_font.o
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2019-01-06 22:30:50 +00:00
|
|
|
OBJ += menu/drivers_display/menu_display_d3d10.o
|
|
|
|
endif
|
2018-01-23 17:04:55 +00:00
|
|
|
DEFINES += -DHAVE_D3D10
|
|
|
|
endif
|
|
|
|
|
2018-01-21 03:10:45 +00:00
|
|
|
ifeq ($(HAVE_D3D11), 1)
|
2018-03-02 16:23:43 +00:00
|
|
|
OBJ += gfx/drivers/d3d11.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/common/d3d11_common.o \
|
2019-01-06 16:04:28 +00:00
|
|
|
gfx/drivers_font/d3d11_font.o
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_d3d11.o
|
|
|
|
endif
|
2018-01-21 03:10:45 +00:00
|
|
|
DEFINES += -DHAVE_D3D11
|
2018-01-31 00:08:36 +00:00
|
|
|
HAVE_SLANG = 1
|
|
|
|
HAVE_GLSLANG = 1
|
|
|
|
HAVE_SPIRV_CROSS = 1
|
2018-01-21 03:10:45 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_D3D12), 1)
|
2018-03-02 16:23:43 +00:00
|
|
|
OBJ += gfx/drivers/d3d12.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/common/d3d12_common.o \
|
2019-01-06 16:04:28 +00:00
|
|
|
gfx/drivers_font/d3d12_font.o
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2019-01-06 22:30:50 +00:00
|
|
|
OBJ += menu/drivers_display/menu_display_d3d12.o
|
|
|
|
endif
|
2018-01-21 03:10:45 +00:00
|
|
|
DEFINES += -DHAVE_D3D12
|
2018-02-10 23:00:20 +00:00
|
|
|
HAVE_SLANG = 1
|
|
|
|
HAVE_GLSLANG = 1
|
|
|
|
HAVE_SPIRV_CROSS = 1
|
2018-01-21 03:10:45 +00:00
|
|
|
endif
|
|
|
|
|
2018-01-23 17:04:55 +00:00
|
|
|
ifneq ($(findstring 1, $(HAVE_D3D10) $(HAVE_D3D11) $(HAVE_D3D12)),)
|
2018-01-31 00:08:36 +00:00
|
|
|
INCLUDE_DIRS += -isystemgfx/include/dxsdk
|
2018-03-02 16:23:43 +00:00
|
|
|
OBJ += gfx/common/d3dcompiler_common.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
gfx/common/dxgi_common.o
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -Wno-unknown-pragmas
|
2018-01-21 03:10:45 +00:00
|
|
|
endif
|
|
|
|
|
2017-09-04 22:06:07 +00:00
|
|
|
ifeq ($(HAVE_D3D8), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
HAVE_D3D_COMMON = 1
|
2018-01-03 18:58:51 +00:00
|
|
|
HAVE_DX_COMMON = 1
|
2017-09-04 22:06:07 +00:00
|
|
|
DEFINES += -DHAVE_D3D8
|
2018-11-09 17:49:30 +00:00
|
|
|
ifneq ($(HAVE_DYLIB), 1)
|
|
|
|
LIBS += -ld3d8
|
|
|
|
ifeq ($(HAVE_D3DX), 1)
|
|
|
|
LIBS += -ld3dx8
|
|
|
|
endif
|
|
|
|
endif
|
2017-09-04 22:06:07 +00:00
|
|
|
endif
|
|
|
|
|
2018-01-03 18:58:51 +00:00
|
|
|
ifeq ($(HAVE_DX_COMMON), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
LIBS += -ldxguid
|
2018-01-03 18:58:51 +00:00
|
|
|
endif
|
|
|
|
|
2018-01-23 01:55:33 +00:00
|
|
|
ifeq ($(HAVE_D3D8), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_D3D8
|
|
|
|
OBJ += gfx/drivers/d3d8.o
|
|
|
|
OBJ += gfx/common/d3d8_common.o
|
2018-03-03 14:28:58 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_d3d8.o
|
|
|
|
endif
|
2018-01-23 01:55:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_D3D9), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_D3D9
|
|
|
|
OBJ += gfx/drivers/d3d9.o
|
|
|
|
OBJ += gfx/common/d3d9_common.o
|
2018-03-03 14:28:58 +00:00
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_d3d9.o
|
|
|
|
endif
|
2018-01-23 01:55:33 +00:00
|
|
|
endif
|
|
|
|
|
2017-09-04 22:07:26 +00:00
|
|
|
ifeq ($(HAVE_D3D_COMMON), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_D3D
|
|
|
|
OBJ += gfx/common/d3d_common.o
|
2014-09-14 00:05:17 +00:00
|
|
|
endif
|
2014-09-14 00:15:41 +00:00
|
|
|
|
2018-01-31 00:08:36 +00:00
|
|
|
ifeq ($(HAVE_SLANG),1)
|
|
|
|
DEFINES += -DHAVE_SLANG
|
|
|
|
OBJ += gfx/drivers_shader/slang_process.o
|
|
|
|
OBJ += gfx/drivers_shader/slang_preprocess.o
|
|
|
|
OBJ += gfx/drivers_shader/glslang_util.o
|
|
|
|
OBJ += gfx/drivers_shader/slang_reflection.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_GLSLANG), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_GLSLANG
|
2018-01-31 00:08:36 +00:00
|
|
|
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
GLSLANG_PLATFORM := Windows
|
|
|
|
else
|
|
|
|
GLSLANG_PLATFORM := Unix
|
|
|
|
endif
|
|
|
|
|
|
|
|
INCLUDE_DIRS += \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang/glslang/OSDependent/$(GLSLANG_PLATFORM) \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang/OGLCompilersDLL \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang/glslang/MachineIndependent \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang/glslang/Public \
|
|
|
|
-I$(DEPS_DIR)/glslang/glslang/SPIRV \
|
|
|
|
-I$(DEPS_DIR)/glslang
|
|
|
|
|
|
|
|
GLSLANG_SOURCES := \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/SPIRV/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/glslang/GenericCodeGen/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/OGLCompilersDLL/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/glslang/MachineIndependent/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/glslang/MachineIndependent/preprocessor/*.cpp) \
|
|
|
|
$(wildcard $(DEPS_DIR)/glslang/glslang/glslang/OSDependent/$(GLSLANG_PLATFORM)/*.cpp)
|
|
|
|
|
2018-11-09 17:49:30 +00:00
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
DEFINES += -DENABLE_HLSL
|
|
|
|
GLSLANG_SOURCES += $(wildcard $(DEPS_DIR)/glslang/glslang/hlsl/*.cpp)
|
|
|
|
endif
|
2018-06-21 19:53:44 +00:00
|
|
|
|
2018-01-31 00:08:36 +00:00
|
|
|
OBJ += $(GLSLANG_SOURCES:.cpp=.o)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_SPIRV_CROSS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_SPIRV_CROSS
|
2018-01-31 00:08:36 +00:00
|
|
|
INCLUDE_DIRS += -I$(DEPS_DIR)/SPIRV-Cross
|
|
|
|
OBJ += $(DEPS_DIR)/SPIRV-Cross/spirv_cross.o
|
|
|
|
OBJ += $(DEPS_DIR)/SPIRV-Cross/spirv_cfg.o
|
|
|
|
OBJ += $(DEPS_DIR)/SPIRV-Cross/spirv_glsl.o
|
|
|
|
OBJ += $(DEPS_DIR)/SPIRV-Cross/spirv_hlsl.o
|
2018-02-04 14:56:50 +00:00
|
|
|
OBJ += $(DEPS_DIR)/SPIRV-Cross/spirv_msl.o
|
2018-01-31 00:08:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WANT_WGL), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers_context/wgl_ctx.o
|
2018-01-31 00:08:36 +00:00
|
|
|
LIBS += -lcomctl32
|
|
|
|
endif
|
|
|
|
|
2014-12-15 20:34:22 +00:00
|
|
|
#ifeq ($(HAVE_LIBXML2), 1)
|
|
|
|
#LIBS += $(LIBXML2_LIBS)
|
|
|
|
#DEFINES += $(LIBXML2_CFLAGS)
|
|
|
|
#else
|
2016-09-19 17:44:20 +00:00
|
|
|
#OBJ += $(LIBRETRO_COMM_DIR)/formats/xml/rxml.o
|
2014-12-15 20:34:22 +00:00
|
|
|
#endif
|
2014-09-14 00:15:41 +00:00
|
|
|
|
|
|
|
# Compression/Archive
|
|
|
|
|
2016-11-26 15:47:24 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/file/archive_file.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.o
|
2016-09-18 16:44:46 +00:00
|
|
|
|
2014-09-14 00:15:41 +00:00
|
|
|
ifeq ($(HAVE_7ZIP),1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(DEPS_DIR)/7zip
|
2015-10-09 16:29:57 +00:00
|
|
|
HAVE_COMPRESSION = 1
|
2017-09-17 05:28:17 +00:00
|
|
|
DEFINES += -DHAVE_7ZIP -D_7ZIP_ST
|
2016-09-19 17:44:20 +00:00
|
|
|
7ZOBJ = $(DEPS_DIR)/7zip/7zIn.o \
|
|
|
|
$(DEPS_DIR)/7zip/Bra86.o \
|
|
|
|
$(DEPS_DIR)/7zip/7zFile.o \
|
|
|
|
$(DEPS_DIR)/7zip/7zStream.o \
|
2017-09-17 05:28:17 +00:00
|
|
|
$(DEPS_DIR)/7zip/LzFind.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(DEPS_DIR)/7zip/LzmaDec.o \
|
2017-09-17 05:28:17 +00:00
|
|
|
$(DEPS_DIR)/7zip/LzmaEnc.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(DEPS_DIR)/7zip/7zCrcOpt.o \
|
|
|
|
$(DEPS_DIR)/7zip/Bra.o \
|
|
|
|
$(DEPS_DIR)/7zip/7zDec.o \
|
|
|
|
$(DEPS_DIR)/7zip/Bcj2.o \
|
|
|
|
$(DEPS_DIR)/7zip/7zCrc.o \
|
|
|
|
$(DEPS_DIR)/7zip/Lzma2Dec.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(DEPS_DIR)/7zip/7zBuf.o
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/file/archive_file_7z.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(7ZOBJ)
|
2014-09-14 00:15:41 +00:00
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2017-12-26 06:50:32 +00:00
|
|
|
ifeq ($(HAVE_IBXM), 1)
|
|
|
|
DEFINES += -DHAVE_IBXM
|
|
|
|
OBJ += $(DEPS_DIR)/ibxm/ibxm.o
|
|
|
|
endif
|
|
|
|
|
2017-12-31 04:51:44 +00:00
|
|
|
ifeq ($(HAVE_BUILTINFLAC),1)
|
2018-01-09 01:09:55 +00:00
|
|
|
HAVE_FLAC = 1
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_DR_FLAC -I$(DEPS_DIR)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_DR_FLAC
|
|
|
|
DEF_FLAGS += -DHAVE_FLAC -I$(DEPS_DIR)/libFLAC/include
|
2017-12-31 04:51:44 +00:00
|
|
|
DEFINES += -DHAVE_STDINT_H -DHAVE_LROUND -DFLAC__HAS_OGG=0 \
|
|
|
|
-DFLAC_PACKAGE_VERSION="\"retroarch\""
|
|
|
|
FLACOBJ = $(DEPS_DIR)/libFLAC/bitmath.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/bitreader.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/cpu.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/crc.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/fixed.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/float.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/format.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/lpc.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/lpc_intrin_avx2.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/lpc_intrin_sse2.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/lpc_intrin_sse41.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/lpc_intrin_sse.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/md5.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/memory.o \
|
|
|
|
$(DEPS_DIR)/libFLAC/stream_decoder.o
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
DEFINES += -DHAVE_FSEEKO
|
|
|
|
# make sure not to use this on legacy Windows versions that don't have W-functions implemented
|
|
|
|
DEFINES += -DNEED_UTF8_SUPPORT
|
|
|
|
FLACOBJ += $(DEPS_DIR)/libFLAC/windows_unicode_filenames.o
|
2017-10-28 21:33:32 +00:00
|
|
|
endif
|
2017-12-31 04:51:44 +00:00
|
|
|
OBJ += $(FLACOBJ)
|
|
|
|
else ifeq ($(HAVE_FLAC),1)
|
2018-04-27 16:54:05 +00:00
|
|
|
DEFINES += -DHAVE_FLAC
|
|
|
|
LIBS += $(FLAC_LIBS)
|
2017-09-17 05:27:28 +00:00
|
|
|
endif
|
2015-02-22 03:56:18 +00:00
|
|
|
|
2014-09-14 02:50:10 +00:00
|
|
|
ifeq ($(HAVE_ZLIB), 1)
|
2016-11-26 15:47:24 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/file/archive_file_zlib.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.o
|
2014-09-14 02:50:10 +00:00
|
|
|
DEFINES += -DHAVE_ZLIB
|
2015-10-09 16:29:57 +00:00
|
|
|
HAVE_COMPRESSION = 1
|
2016-07-21 07:15:51 +00:00
|
|
|
ifeq ($(HAVE_BUILTINZLIB), 1)
|
2017-12-27 08:32:25 +00:00
|
|
|
OBJ += $(DEPS_DIR)/libz/adler32.o \
|
|
|
|
$(DEPS_DIR)/libz/compress.o \
|
2018-04-08 15:58:10 +00:00
|
|
|
$(DEPS_DIR)/libz/libz-crc32.o \
|
2017-12-27 08:32:25 +00:00
|
|
|
$(DEPS_DIR)/libz/deflate.o \
|
|
|
|
$(DEPS_DIR)/libz/gzclose.o \
|
|
|
|
$(DEPS_DIR)/libz/gzlib.o \
|
|
|
|
$(DEPS_DIR)/libz/gzread.o \
|
|
|
|
$(DEPS_DIR)/libz/gzwrite.o \
|
|
|
|
$(DEPS_DIR)/libz/inffast.o \
|
|
|
|
$(DEPS_DIR)/libz/inflate.o \
|
|
|
|
$(DEPS_DIR)/libz/inftrees.o \
|
|
|
|
$(DEPS_DIR)/libz/trees.o \
|
|
|
|
$(DEPS_DIR)/libz/uncompr.o \
|
|
|
|
$(DEPS_DIR)/libz/zutil.o
|
2017-10-24 04:37:31 +00:00
|
|
|
INCLUDE_DIRS += -I$(LIBRETRO_COMM_DIR)/include/compat
|
2015-03-14 04:24:57 +00:00
|
|
|
DEFINES += -DWANT_ZLIB
|
2014-09-14 02:50:10 +00:00
|
|
|
else
|
2017-12-27 08:32:25 +00:00
|
|
|
LIBS += $(ZLIB_LIBS)
|
2014-09-14 02:50:10 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-04-22 18:19:07 +00:00
|
|
|
ifeq ($(HAVE_CHD), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(LIBRETRO_COMM_DIR)/formats/libchdr
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DHAVE_CHD -DWANT_SUBCODE -DWANT_RAW_DATA_SECTOR
|
2018-04-22 10:10:15 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_bitstream.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_cdrom.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_chd.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_huffman.o \
|
2017-12-31 04:51:44 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/streams/chd_stream.o
|
2018-04-22 18:19:07 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_FLAC), 1)
|
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_flac.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_flac_codec.o
|
2018-04-22 18:19:07 +00:00
|
|
|
endif
|
2017-12-31 04:51:44 +00:00
|
|
|
|
2018-04-22 18:19:07 +00:00
|
|
|
ifeq ($(HAVE_7ZIP), 1)
|
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_lzma.o
|
|
|
|
endif
|
2018-04-22 17:50:14 +00:00
|
|
|
|
2018-04-22 18:19:07 +00:00
|
|
|
ifeq ($(HAVE_ZLIB), 1)
|
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_zlib.o
|
|
|
|
endif
|
2018-04-22 17:50:14 +00:00
|
|
|
endif
|
|
|
|
|
2016-05-18 11:28:20 +00:00
|
|
|
ifeq ($(HAVE_RTGA), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += -DHAVE_RTGA
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/tga/rtga.o
|
2016-05-18 11:28:20 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-19 14:55:03 +00:00
|
|
|
ifeq ($(HAVE_RPNG), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += -DHAVE_RPNG
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/png/rpng.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/png/rpng_encode.o
|
2015-04-19 14:55:03 +00:00
|
|
|
endif
|
2016-05-11 19:27:17 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_RJPEG), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += -DHAVE_RJPEG
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/jpeg/rjpeg.o
|
2016-05-11 19:27:17 +00:00
|
|
|
endif
|
|
|
|
|
2016-05-18 11:28:20 +00:00
|
|
|
ifeq ($(HAVE_RBMP), 1)
|
2016-07-15 13:40:06 +00:00
|
|
|
DEFINES += -DHAVE_RBMP
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp.o
|
2016-05-18 11:28:20 +00:00
|
|
|
endif
|
|
|
|
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp_encode.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax.o \
|
2017-03-04 01:18:42 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax_full.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/formats/image_transfer.o
|
2016-06-07 04:35:48 +00:00
|
|
|
|
2014-09-16 17:20:15 +00:00
|
|
|
ifdef HAVE_COMPRESSION
|
|
|
|
DEFINES += -DHAVE_COMPRESSION
|
|
|
|
endif
|
|
|
|
|
2019-01-05 23:33:29 +00:00
|
|
|
# Easter Egg
|
|
|
|
ifeq ($(HAVE_EASTEREGG),1)
|
|
|
|
DEFINES += -DHAVE_EASTEREGG
|
|
|
|
OBJ += cores/libretro-gong/gong.o
|
|
|
|
endif
|
|
|
|
|
2016-10-18 00:21:51 +00:00
|
|
|
# Video4Linux 2
|
2014-09-14 00:52:30 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_V4L2),1)
|
2016-07-28 18:01:38 +00:00
|
|
|
OBJ += camera/drivers/video4linux2.o
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_VIDEO_PROCESSOR),1)
|
|
|
|
OBJ += cores/libretro-video-processor/video_processor_v4l2.o
|
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_V4L2
|
2016-07-28 17:10:18 +00:00
|
|
|
LIBS += $(V4L2_LIBS)
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2015-10-19 15:15:23 +00:00
|
|
|
# Things that depend on network availability
|
2014-09-14 01:38:36 +00:00
|
|
|
|
2015-01-27 23:49:43 +00:00
|
|
|
ifeq ($(HAVE_NETWORKING), 1)
|
|
|
|
DEFINES += -DHAVE_NETWORKING
|
2016-09-19 17:44:20 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/net/net_compat.o \
|
|
|
|
$(LIBRETRO_COMM_DIR)/net/net_http.o \
|
2016-12-26 23:02:09 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/net/net_http_parse.o \
|
2016-09-19 17:44:20 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/net/net_socket.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/net/net_natt.o \
|
|
|
|
network/net_http_special.o \
|
|
|
|
tasks/task_http.o \
|
|
|
|
tasks/task_netplay_lan_scan.o \
|
|
|
|
tasks/task_netplay_nat_traversal.o \
|
|
|
|
tasks/task_wifi.o \
|
|
|
|
tasks/task_netplay_find_content.o
|
2016-06-07 04:35:48 +00:00
|
|
|
|
2017-07-26 03:34:12 +00:00
|
|
|
ifeq ($(HAVE_SSL), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/net/net_socket_ssl.o
|
2017-07-26 03:34:12 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 04:35:48 +00:00
|
|
|
ifneq ($(HAVE_SOCKET_LEGACY),1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
|
2016-07-15 13:40:06 +00:00
|
|
|
endif
|
2016-03-02 23:26:26 +00:00
|
|
|
|
2016-03-03 01:51:06 +00:00
|
|
|
ifeq ($(WANT_IFADDRS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -DWANT_IFADDRS
|
|
|
|
OBJ += $(LIBRETRO_COMM_DIR)/compat/compat_ifaddrs.o
|
2016-07-15 13:40:06 +00:00
|
|
|
endif
|
2016-03-03 01:51:06 +00:00
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
2016-03-03 03:40:25 +00:00
|
|
|
LIBS += -lws2_32 -liphlpapi
|
2014-09-14 01:38:36 +00:00
|
|
|
endif
|
2015-01-27 23:29:47 +00:00
|
|
|
|
2015-10-19 15:15:23 +00:00
|
|
|
# Netplay
|
2016-09-29 19:07:10 +00:00
|
|
|
DEFINES += -DHAVE_NETWORK_CMD
|
2016-12-14 02:01:31 +00:00
|
|
|
OBJ += network/netplay/netplay_delta.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
network/netplay/netplay_frontend.o \
|
|
|
|
network/netplay/netplay_handshake.o \
|
|
|
|
network/netplay/netplay_init.o \
|
|
|
|
network/netplay/netplay_io.o \
|
|
|
|
network/netplay/netplay_keyboard.o \
|
|
|
|
network/netplay/netplay_sync.o \
|
|
|
|
network/netplay/netplay_discovery.o \
|
|
|
|
network/netplay/netplay_buf.o \
|
|
|
|
network/netplay/netplay_room_parse.o
|
2015-10-19 15:15:23 +00:00
|
|
|
|
2019-01-19 17:14:24 +00:00
|
|
|
# RetroAchievements
|
2015-10-19 15:15:23 +00:00
|
|
|
ifeq ($(HAVE_CHEEVOS), 1)
|
2018-10-01 13:02:20 +00:00
|
|
|
DEFINES += -DHAVE_CHEEVOS
|
2019-01-19 17:14:24 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_NEW_CHEEVOS), 1)
|
|
|
|
DEFINES += -DHAVE_NEW_CHEEVOS \
|
|
|
|
-Ideps/rcheevos/include \
|
|
|
|
-Ideps/lua/src
|
|
|
|
OBJ += cheevos-new/cheevos.o \
|
|
|
|
cheevos-new/badges.o \
|
|
|
|
cheevos-new/fixup.o \
|
|
|
|
cheevos-new/parser.o \
|
|
|
|
cheevos-new/hash.o \
|
|
|
|
deps/rcheevos/src/rcheevos/trigger.o \
|
|
|
|
deps/rcheevos/src/rcheevos/condset.o \
|
|
|
|
deps/rcheevos/src/rcheevos/condition.o \
|
|
|
|
deps/rcheevos/src/rcheevos/operand.o \
|
|
|
|
deps/rcheevos/src/rcheevos/term.o \
|
|
|
|
deps/rcheevos/src/rcheevos/expression.o \
|
|
|
|
deps/rcheevos/src/rcheevos/value.o \
|
|
|
|
deps/rcheevos/src/rcheevos/lboard.o \
|
|
|
|
deps/rcheevos/src/rcheevos/alloc.o \
|
|
|
|
deps/rcheevos/src/rcheevos/format.o \
|
|
|
|
deps/rcheevos/src/rurl/url.o
|
|
|
|
|
|
|
|
ifeq ($(HAVE_LUA), 1)
|
|
|
|
DEFINES += -DHAVE_LUA \
|
|
|
|
-DLUA_32BITS \
|
|
|
|
-Ideps/lua/src
|
|
|
|
OBJ += deps/lua/src/lapi.o \
|
|
|
|
deps/lua/src/lcode.o \
|
|
|
|
deps/lua/src/lctype.o \
|
|
|
|
deps/lua/src/ldebug.o \
|
|
|
|
deps/lua/src/ldo.o \
|
|
|
|
deps/lua/src/ldump.o \
|
|
|
|
deps/lua/src/lfunc.o \
|
|
|
|
deps/lua/src/lgc.o \
|
|
|
|
deps/lua/src/llex.o \
|
|
|
|
deps/lua/src/lmem.o \
|
|
|
|
deps/lua/src/lobject.o \
|
|
|
|
deps/lua/src/lopcodes.o \
|
|
|
|
deps/lua/src/lparser.o \
|
|
|
|
deps/lua/src/lstate.o \
|
|
|
|
deps/lua/src/lstring.o \
|
|
|
|
deps/lua/src/ltable.o \
|
|
|
|
deps/lua/src/ltm.o \
|
|
|
|
deps/lua/src/lundump.o \
|
|
|
|
deps/lua/src/lvm.o \
|
|
|
|
deps/lua/src/lzio.o \
|
|
|
|
deps/lua/src/lauxlib.o \
|
|
|
|
deps/lua/src/lbaselib.o \
|
|
|
|
deps/lua/src/lbitlib.o \
|
|
|
|
deps/lua/src/lcorolib.o \
|
|
|
|
deps/lua/src/ldblib.o \
|
|
|
|
deps/lua/src/liolib.o \
|
|
|
|
deps/lua/src/lmathlib.o \
|
|
|
|
deps/lua/src/loslib.o \
|
|
|
|
deps/lua/src/lstrlib.o \
|
|
|
|
deps/lua/src/ltablib.o \
|
|
|
|
deps/lua/src/lutf8lib.o \
|
|
|
|
deps/lua/src/loadlib.o \
|
|
|
|
deps/lua/src/linit.o
|
|
|
|
else
|
|
|
|
DEFINES += -DRC_DISABLE_LUA
|
|
|
|
endif
|
|
|
|
|
|
|
|
# if not HAVE_NEW_CHEEVOS
|
2018-11-09 17:49:30 +00:00
|
|
|
else
|
2019-01-19 17:14:24 +00:00
|
|
|
OBJ += cheevos/cheevos.o \
|
|
|
|
cheevos/badges.o \
|
|
|
|
cheevos/var.o \
|
|
|
|
cheevos/cond.o
|
2018-11-09 17:49:30 +00:00
|
|
|
endif
|
2015-10-19 15:15:23 +00:00
|
|
|
endif
|
2016-01-21 02:11:00 +00:00
|
|
|
|
2018-05-29 04:43:30 +00:00
|
|
|
ifeq ($(HAVE_DISCORD), 1)
|
2018-08-16 17:08:29 +00:00
|
|
|
NEED_CXX_LINKER = 1
|
2018-05-29 04:43:30 +00:00
|
|
|
DEFINES += -DHAVE_DISCORD
|
|
|
|
DEFINES += -Ideps/discord-rpc/include/ -Ideps/discord-rpc/thirdparty/rapidjson-1.1.0/include/
|
2018-05-29 08:24:17 +00:00
|
|
|
OBJ += deps/discord-rpc/src/discord_rpc.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
deps/discord-rpc/src/rpc_connection.o \
|
|
|
|
deps/discord-rpc/src/serialization.o \
|
|
|
|
discord/discord.o
|
|
|
|
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
OBJ += deps/discord-rpc/src/discord_register_win.o \
|
|
|
|
deps/discord-rpc/src/connection_win.o
|
|
|
|
LIBS += -lpsapi -ladvapi32
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring Linux,$(OS)),)
|
|
|
|
OBJ += deps/discord-rpc/src/discord_register_linux.o \
|
|
|
|
deps/discord-rpc/src/connection_unix.o
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring Darwin,$(OS)),)
|
|
|
|
OBJ += deps/discord-rpc/src/discord_register_osx.o \
|
|
|
|
deps/discord-rpc/src/connection_unix.o
|
|
|
|
endif
|
2018-05-29 04:43:30 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-07 13:23:07 +00:00
|
|
|
ifeq ($(HAVE_NETWORKGAMEPAD), 1)
|
2016-05-26 17:43:15 +00:00
|
|
|
OBJ += input/input_remote.o \
|
2016-07-15 13:40:06 +00:00
|
|
|
cores/libretro-net-retropad/net_retropad_core.o
|
2016-01-21 02:11:00 +00:00
|
|
|
endif
|
2016-11-30 02:00:53 +00:00
|
|
|
|
2017-12-26 04:45:17 +00:00
|
|
|
ifeq ($(HAVE_BUILTINMINIUPNPC), 1)
|
2018-02-12 00:54:57 +00:00
|
|
|
HAVE_MINIUPNPC = 1
|
|
|
|
DEFINES += -DHAVE_MINIUPNPC -DHAVE_BUILTINMINIUPNPC -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR
|
2017-12-26 04:45:17 +00:00
|
|
|
DEFINES += -I$(DEPS_DIR)
|
|
|
|
OBJ += $(DEPS_DIR)/miniupnpc/igd_desc_parse.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/upnpreplyparse.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/upnpcommands.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/upnperrors.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/connecthostport.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/portlistingparse.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/receivedata.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/upnpdev.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/minissdpc.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/miniwget.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/miniupnpc.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/minixml.o \
|
|
|
|
$(DEPS_DIR)/miniupnpc/minisoap.o
|
|
|
|
else ifeq ($(HAVE_MINIUPNPC), 1)
|
|
|
|
LIBS += $(MINIUPNPC_LIBS)
|
2016-11-30 02:00:53 +00:00
|
|
|
endif
|
2014-09-14 01:38:36 +00:00
|
|
|
endif
|
2014-09-14 02:00:27 +00:00
|
|
|
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
2014-09-14 20:50:29 +00:00
|
|
|
OBJ += media/rarch.o \
|
2015-10-11 07:26:54 +00:00
|
|
|
gfx/common/win32_common.o \
|
|
|
|
frontend/drivers/platform_win32.o
|
2017-01-04 07:07:19 +00:00
|
|
|
|
|
|
|
OBJ += gfx/drivers/gdi_gfx.o \
|
|
|
|
gfx/drivers_context/gdi_ctx.o \
|
|
|
|
gfx/drivers_font/gdi_font.o \
|
2019-01-06 16:04:28 +00:00
|
|
|
gfx/display_servers/dispserv_win32.o
|
2017-01-17 01:40:43 +00:00
|
|
|
|
2019-01-06 16:04:28 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_gdi.o
|
|
|
|
endif
|
2017-12-01 19:07:40 +00:00
|
|
|
LIBS += -lmsimg32 -lhid -lsetupapi
|
2014-09-14 02:00:27 +00:00
|
|
|
endif
|
2014-09-14 02:43:18 +00:00
|
|
|
|
2015-04-20 10:04:31 +00:00
|
|
|
ifeq ($(HAVE_AVFOUNDATION), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(HAVE_COCOA), 1)
|
|
|
|
DEFINES += -DHAVE_AVFOUNDATION
|
|
|
|
LIBS += -framework AVFoundation
|
|
|
|
LIBS += -framework CoreVideo
|
|
|
|
LIBS += -framework CoreMedia
|
|
|
|
endif
|
2015-04-20 12:14:45 +00:00
|
|
|
endif
|
2015-04-20 10:04:31 +00:00
|
|
|
|
2014-09-14 02:43:18 +00:00
|
|
|
# Record
|
|
|
|
|
|
|
|
ifeq ($(HAVE_FFMPEG), 1)
|
2015-06-20 22:37:19 +00:00
|
|
|
OBJ += record/drivers/record_ffmpeg.o \
|
2015-10-19 14:55:08 +00:00
|
|
|
cores/libretro-ffmpeg/ffmpeg_core.o
|
2016-06-15 17:32:59 +00:00
|
|
|
|
2015-06-20 22:03:27 +00:00
|
|
|
LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS) $(SWRESAMPLE_LIBS) $(FFMPEG_LIBS)
|
|
|
|
DEFINES += $(AVCODEC_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS) $(SWSCALE_CFLAGS) $(SWRESAMPLE_CFLAGS)
|
2016-05-08 07:37:27 +00:00
|
|
|
DEFINES += -Wno-deprecated-declarations -DHAVE_FFMPEG -Iffmpeg
|
2014-09-14 02:43:18 +00:00
|
|
|
endif
|
2014-09-15 16:46:07 +00:00
|
|
|
|
2014-09-16 17:20:33 +00:00
|
|
|
ifeq ($(HAVE_COMPRESSION), 1)
|
|
|
|
DEFINES += -DHAVE_COMPRESSION
|
2016-09-18 17:05:17 +00:00
|
|
|
OBJ += tasks/task_decompress.o
|
2015-10-09 16:29:57 +00:00
|
|
|
endif
|
2014-09-16 17:20:33 +00:00
|
|
|
|
2015-04-19 22:38:55 +00:00
|
|
|
ifeq ($(HAVE_COCOA),1)
|
2016-02-09 16:36:59 +00:00
|
|
|
DEFINES += -DHAVE_MAIN
|
|
|
|
OBJ += input/drivers/cocoa_input.o \
|
2018-11-09 17:49:30 +00:00
|
|
|
input/drivers_keyboard/keyboard_event_apple.o \
|
|
|
|
ui/drivers/ui_cocoa.o \
|
|
|
|
ui/drivers/cocoa/ui_cocoa_window.o \
|
|
|
|
ui/drivers/cocoa/ui_cocoa_browser_window.o \
|
|
|
|
ui/drivers/cocoa/ui_cocoa_msg_window.o \
|
|
|
|
ui/drivers/cocoa/ui_cocoa_application.o \
|
|
|
|
ui/drivers/cocoa/cocoa_common.o \
|
|
|
|
gfx/drivers_context/cocoa_gl_ctx.o
|
2015-04-19 22:38:55 +00:00
|
|
|
endif
|
2017-01-21 22:41:20 +00:00
|
|
|
|
|
|
|
ifneq ($(findstring DOS,$(OS)),)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/drivers/vga_gfx.o \
|
|
|
|
gfx/drivers_font/vga_font.o \
|
|
|
|
input/drivers/dos_input.o \
|
|
|
|
input/drivers_joypad/dos_joypad.o \
|
|
|
|
frontend/drivers/platform_dos.o \
|
|
|
|
input/drivers_keyboard/keyboard_event_dos.o
|
2017-01-21 22:41:20 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += menu/drivers_display/menu_display_vga.o
|
|
|
|
endif
|
|
|
|
endif
|
2017-12-07 04:54:54 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_STATIC_VIDEO_FILTERS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += gfx/video_filters/2xsai.o \
|
|
|
|
gfx/video_filters/super2xsai.o \
|
|
|
|
gfx/video_filters/supereagle.o \
|
|
|
|
gfx/video_filters/2xbr.o \
|
|
|
|
gfx/video_filters/darken.o \
|
|
|
|
gfx/video_filters/epx.o \
|
|
|
|
gfx/video_filters/scale2x.o \
|
|
|
|
gfx/video_filters/blargg_ntsc_snes.o \
|
|
|
|
gfx/video_filters/lq2x.o \
|
|
|
|
gfx/video_filters/phosphor2x.o \
|
|
|
|
gfx/video_filters/normal2x.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-19 21:12:58 +00:00
|
|
|
ifeq ($(WANT_IOSUHAX), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -I$(DEPS_DIR)/libiosuhax
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(DEPS_DIR)/libiosuhax
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(DEPS_DIR)/libiosuhax/iosuhax.o \
|
|
|
|
$(DEPS_DIR)/libiosuhax/iosuhax_devoptab.o \
|
|
|
|
$(DEPS_DIR)/libiosuhax/iosuhax_disc_interface.o
|
2017-12-19 21:12:58 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WANT_LIBFAT), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
DEFINES += -I$(DEPS_DIR)/libfat/include
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -I$(DEPS_DIR)/libfat/include
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += $(DEPS_DIR)/libfat/cache.o \
|
|
|
|
$(DEPS_DIR)/libfat/directory.o \
|
|
|
|
$(DEPS_DIR)/libfat/disc.o \
|
|
|
|
$(DEPS_DIR)/libfat/fatdir.o \
|
|
|
|
$(DEPS_DIR)/libfat/fatfile.o \
|
|
|
|
$(DEPS_DIR)/libfat/file_allocation_table.o \
|
|
|
|
$(DEPS_DIR)/libfat/filetime.o \
|
|
|
|
$(DEPS_DIR)/libfat/libfat.o \
|
|
|
|
$(DEPS_DIR)/libfat/lock.o \
|
|
|
|
$(DEPS_DIR)/libfat/partition.o
|
2017-12-19 21:12:58 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-07 04:54:54 +00:00
|
|
|
ifeq ($(HAVE_STATIC_AUDIO_FILTERS), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
OBJ += libretro-common/audio/dsp_filters/echo.o \
|
|
|
|
libretro-common/audio/dsp_filters/eq.o \
|
|
|
|
libretro-common/audio/dsp_filters/chorus.o \
|
|
|
|
libretro-common/audio/dsp_filters/iir.o \
|
|
|
|
libretro-common/audio/dsp_filters/panning.o \
|
|
|
|
libretro-common/audio/dsp_filters/phaser.o \
|
|
|
|
libretro-common/audio/dsp_filters/reverb.o \
|
|
|
|
libretro-common/audio/dsp_filters/wahwah.o
|
2017-12-07 04:54:54 +00:00
|
|
|
endif
|
2017-12-27 16:05:12 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_RPILED), 1)
|
2018-01-11 00:52:32 +00:00
|
|
|
OBJ += led/drivers/led_rpi.o
|
2017-12-27 16:05:12 +00:00
|
|
|
endif
|
2018-10-25 12:11:55 +00:00
|
|
|
|
|
|
|
##################################
|
|
|
|
### Classic Platform specifics ###
|
|
|
|
###############WIP################
|
|
|
|
# Help at https://modmyclassic.com/comp
|
|
|
|
|
|
|
|
ifeq ($(HAVE_CLASSIC), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_CLASSIC
|
2018-10-25 12:11:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_C_A7A7), 1)
|
2018-11-09 17:49:30 +00:00
|
|
|
C_A7A7_OPT = -Ofast \
|
|
|
|
-fno-lto \
|
|
|
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
|
|
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
|
|
|
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
|
|
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
|
|
|
-fmerge-all-constants -fno-math-errno \
|
|
|
|
-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += $(C_A7A7_OPT)
|
2018-11-09 17:49:30 +00:00
|
|
|
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -march=armv7-a
|
2018-11-09 17:49:30 +00:00
|
|
|
else
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -march=armv7ve
|
2018-11-09 17:49:30 +00:00
|
|
|
# If gcc is 5.0 or later
|
|
|
|
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
|
|
|
|
LDFLAGS += -static-libgcc -static-libstdc++
|
|
|
|
endif
|
|
|
|
endif
|
2018-10-25 12:11:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_HAKCHI), 1)
|
2018-12-19 18:14:16 +00:00
|
|
|
DEF_FLAGS += -DHAVE_HAKCHI
|
2018-10-25 12:11:55 +00:00
|
|
|
endif
|
2018-11-02 14:30:26 +00:00
|
|
|
##################################
|