From a9c45198b7cd57c79189484cdf08dc7a0a622403 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Tue, 4 Jan 2022 04:52:50 +0200 Subject: [PATCH] Cleanup --- src/chdman.cpp | 3106 -------------------- src/osd/modules/lib/osdlib_unix_mod.cpp | 235 -- unused/build_call_from_project_root.sh | 24 - unused/chdman_generated_files.txt | 9 - unused/command | 1 - unused/deprecated_big_cmake/CMakeLists.txt | 503 ---- unused/make_files/3rdparty/7z.make | 598 ---- unused/make_files/3rdparty/expat.make | 328 --- unused/make_files/3rdparty/flac.make | 454 --- unused/make_files/3rdparty/utf8proc.make | 308 -- unused/make_files/3rdparty/zlib.make | 408 --- unused/make_files/chdman.make | 320 -- unused/make_files/ocore_sdl.make | 403 --- unused/make_files/utils.make | 734 ----- unused/output.txt | 143 - unused/scripts/extlib.lua | 128 - unused/scripts/genie.lua | 1469 --------- unused/scripts/src/3rdparty.lua | 2348 --------------- unused/scripts/src/osd/mac.lua | 177 -- unused/scripts/src/osd/mac_cfg.lua | 40 - unused/scripts/src/osd/modules.lua | 660 ----- unused/scripts/src/osd/sdl.lua | 504 ---- unused/scripts/src/osd/sdl_cfg.lua | 174 -- unused/scripts/src/osd/windows.lua | 264 -- unused/scripts/src/osd/windows_cfg.lua | 67 - unused/scripts/toolchain.lua | 720 ----- unused/sdl_needed_symbols.txt | 3 - 27 files changed, 14128 deletions(-) delete mode 100644 src/chdman.cpp delete mode 100644 src/osd/modules/lib/osdlib_unix_mod.cpp delete mode 100755 unused/build_call_from_project_root.sh delete mode 100644 unused/chdman_generated_files.txt delete mode 100644 unused/command delete mode 100644 unused/deprecated_big_cmake/CMakeLists.txt delete mode 100644 unused/make_files/3rdparty/7z.make delete mode 100644 unused/make_files/3rdparty/expat.make delete mode 100644 unused/make_files/3rdparty/flac.make delete mode 100644 unused/make_files/3rdparty/utf8proc.make delete mode 100644 unused/make_files/3rdparty/zlib.make delete mode 100644 unused/make_files/chdman.make delete mode 100644 unused/make_files/ocore_sdl.make delete mode 100644 unused/make_files/utils.make delete mode 100644 unused/output.txt delete mode 100644 unused/scripts/extlib.lua delete mode 100644 unused/scripts/genie.lua delete mode 100644 unused/scripts/src/3rdparty.lua delete mode 100644 unused/scripts/src/osd/mac.lua delete mode 100644 unused/scripts/src/osd/mac_cfg.lua delete mode 100644 unused/scripts/src/osd/modules.lua delete mode 100644 unused/scripts/src/osd/sdl.lua delete mode 100644 unused/scripts/src/osd/sdl_cfg.lua delete mode 100644 unused/scripts/src/osd/windows.lua delete mode 100644 unused/scripts/src/osd/windows_cfg.lua delete mode 100644 unused/scripts/toolchain.lua delete mode 100644 unused/sdl_needed_symbols.txt diff --git a/src/chdman.cpp b/src/chdman.cpp deleted file mode 100644 index b292272..0000000 --- a/src/chdman.cpp +++ /dev/null @@ -1,3106 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Aaron Giles -/*************************************************************************** - - CHD compression frontend - -****************************************************************************/ -#include // must be stdio.h and here otherwise issues with I64FMT in MINGW - -// lib/util -#include "avhuff.h" -#include "aviio.h" -#include "bitmap.h" -#include "chdcd.h" -#include "corefile.h" -#include "hashing.h" -#include "md5.h" -#include "strformat.h" -#include "vbiparse.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using util::string_format; - - - -//************************************************************************** -// CONSTANTS & DEFINES -//************************************************************************** -// MINGW has adopted the MSVC formatting for 64-bit ints as of GCC 4.4 and deprecated it as of GCC 9.3 -#if defined(_WIN32) && defined(__GNUC__) && ((__GNUC__ < 9) || ((__GNUC__ == 9) && (__GNUC_MINOR__ < 3))) -#define I64FMT "I64" -#elif !defined(__APPLE__) && defined(__LP64__) -#define I64FMT "l" -#else -#define I64FMT "ll" -#endif - -// default hard disk sector size -const uint32_t IDE_SECTOR_SIZE = 512; - -// temporary input buffer size -const uint32_t TEMP_BUFFER_SIZE = 32 * 1024 * 1024; - -// modes -const int MODE_NORMAL = 0; -const int MODE_CUEBIN = 1; -const int MODE_GDI = 2; - -// command modifier -#define REQUIRED "~" - -// command strings -#define COMMAND_HELP "help" -#define COMMAND_INFO "info" -#define COMMAND_VERIFY "verify" -#define COMMAND_CREATE_RAW "createraw" -#define COMMAND_CREATE_HD "createhd" -#define COMMAND_CREATE_CD "createcd" -#define COMMAND_CREATE_LD "createld" -#define COMMAND_EXTRACT_RAW "extractraw" -#define COMMAND_EXTRACT_HD "extracthd" -#define COMMAND_EXTRACT_CD "extractcd" -#define COMMAND_EXTRACT_LD "extractld" -#define COMMAND_COPY "copy" -#define COMMAND_ADD_METADATA "addmeta" -#define COMMAND_DEL_METADATA "delmeta" -#define COMMAND_DUMP_METADATA "dumpmeta" -#define COMMAND_LIST_TEMPLATES "listtemplates" - -// option strings -#define OPTION_INPUT "input" -#define OPTION_OUTPUT "output" -#define OPTION_OUTPUT_BIN "outputbin" -#define OPTION_OUTPUT_FORCE "force" -#define OPTION_INPUT_START_BYTE "inputstartbyte" -#define OPTION_INPUT_START_HUNK "inputstarthunk" -#define OPTION_INPUT_START_FRAME "inputstartframe" -#define OPTION_INPUT_LENGTH_BYTES "inputbytes" -#define OPTION_INPUT_LENGTH_HUNKS "inputhunks" -#define OPTION_INPUT_LENGTH_FRAMES "inputframes" -#define OPTION_HUNK_SIZE "hunksize" -#define OPTION_UNIT_SIZE "unitsize" -#define OPTION_COMPRESSION "compression" -#define OPTION_INPUT_PARENT "inputparent" -#define OPTION_OUTPUT_PARENT "outputparent" -#define OPTION_IDENT "ident" -#define OPTION_CHS "chs" -#define OPTION_SECTOR_SIZE "sectorsize" -#define OPTION_TAG "tag" -#define OPTION_INDEX "index" -#define OPTION_VALUE_TEXT "valuetext" -#define OPTION_VALUE_FILE "valuefile" -#define OPTION_NO_CHECKSUM "nochecksum" -#define OPTION_VERBOSE "verbose" -#define OPTION_FIX "fix" -#define OPTION_NUMPROCESSORS "numprocessors" -#define OPTION_SIZE "size" -#define OPTION_TEMPLATE "template" - - -//************************************************************************** -// FUNCTION PROTOTYPES -//************************************************************************** - -typedef std::unordered_map parameters_map; - -template static void report_error(int error, Format &&fmt, Params &&...args); -static void do_info(parameters_map ¶ms); -static void do_verify(parameters_map ¶ms); -static void do_create_raw(parameters_map ¶ms); -static void do_create_hd(parameters_map ¶ms); -static void do_create_cd(parameters_map ¶ms); -static void do_create_ld(parameters_map ¶ms); -static void do_copy(parameters_map ¶ms); -static void do_extract_raw(parameters_map ¶ms); -static void do_extract_cd(parameters_map ¶ms); -static void do_extract_ld(parameters_map ¶ms); -static void do_add_metadata(parameters_map ¶ms); -static void do_del_metadata(parameters_map ¶ms); -static void do_dump_metadata(parameters_map ¶ms); -static void do_list_templates(parameters_map ¶ms); - - - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> option_description - -struct option_description -{ - const char *name; - const char *shortname; - bool parameter; - const char *description; -}; - - -// ======================> command_description - -struct command_description -{ - const char *name; - void (*handler)(parameters_map &); - const char *description; - const char *valid_options[16]; -}; - - -// ======================> avi_info - -struct avi_info -{ - uint32_t fps_times_1million; - uint32_t width; - uint32_t height; - bool interlaced; - uint32_t channels; - uint32_t rate; - uint32_t max_samples_per_frame; - uint32_t bytes_per_frame; -}; - -// ======================> hd_template - -struct hd_template -{ - const char *manufacturer; - const char *model; - uint32_t cylinders; - uint32_t heads; - uint32_t sectors; - uint32_t sector_size; -}; - -// ======================> metadata_index_info - -struct metadata_index_info -{ - chd_metadata_tag tag; - uint32_t index; -}; - - -// ======================> fatal_error - -class fatal_error : public std::exception -{ -public: - fatal_error(int error) - : m_error(error) { } - - int error() const { return m_error; } - -private: - int m_error; -}; - - -// ======================> chd_zero_compressor - -class chd_zero_compressor : public chd_file_compressor -{ -public: - // construction/destruction - chd_zero_compressor(std::uint64_t offset = 0, std::uint64_t maxoffset = 0) - : m_offset(offset) - , m_maxoffset(maxoffset) - { - } - - // read interface - virtual std::uint32_t read_data(void *dest, std::uint64_t offset, std::uint32_t length) override - { - offset += m_offset; - if (offset >= m_maxoffset) - return 0; - if (offset + length > m_maxoffset) - length = m_maxoffset - offset; - std::memset(dest, 0, length); - return length; - } - -private: - // internal state - std::uint64_t m_offset; - std::uint64_t m_maxoffset; -}; - - -// ======================> chd_rawfile_compressor - -class chd_rawfile_compressor : public chd_file_compressor -{ -public: - // construction/destruction - chd_rawfile_compressor(util::random_read &file, std::uint64_t offset = 0, std::uint64_t maxoffset = std::numeric_limits::max()) - : m_file(file) - , m_offset(offset) - { - // TODO: what to do about error getting file size? - std::uint64_t filelen; - if (!file.length(filelen)) - m_maxoffset = (std::min)(maxoffset, filelen); - else - m_maxoffset = maxoffset; - } - - // read interface - virtual std::uint32_t read_data(void *dest, std::uint64_t offset, std::uint32_t length) override - { - offset += m_offset; - if (offset >= m_maxoffset) - return 0; - if (offset + length > m_maxoffset) - length = m_maxoffset - offset; - if (m_file.seek(offset, SEEK_SET)) // FIXME: better error reporting? - return 0; - std::size_t actual; - m_file.read(dest, length, actual); // FIXME: check for error return - return actual; - } - -private: - // internal state - util::random_read & m_file; - std::uint64_t m_offset; - std::uint64_t m_maxoffset; -}; - - -// ======================> chd_chdfile_compressor - -class chd_chdfile_compressor : public chd_file_compressor -{ -public: - // construction/destruction - chd_chdfile_compressor(chd_file &file, uint64_t offset = 0, uint64_t maxoffset = ~0) - : m_toc(nullptr), - m_file(file), - m_offset(offset), - m_maxoffset(std::min(maxoffset, file.logical_bytes())) { } - - // read interface - virtual uint32_t read_data(void *dest, uint64_t offset, uint32_t length) - { - offset += m_offset; - if (offset >= m_maxoffset) - return 0; - if (offset + length > m_maxoffset) - length = m_maxoffset - offset; - std::error_condition err = m_file.read_bytes(offset, dest, length); - if (err) - throw err; - - // if we have TOC - detect audio sectors and swap data - if (m_toc) - { - assert(offset % CD_FRAME_SIZE == 0); - assert(length % CD_FRAME_SIZE == 0); - - int startlba = offset / CD_FRAME_SIZE; - int lenlba = length / CD_FRAME_SIZE; - uint8_t *_dest = reinterpret_cast(dest); - - for (int chdlba = 0; chdlba < lenlba; chdlba++) - { - // find current frame's track number - int tracknum = m_toc->numtrks; - for (int track = 0; track < m_toc->numtrks; track++) - if ((chdlba + startlba) < m_toc->tracks[track + 1].chdframeofs) - { - tracknum = track; - break; - } - // is it audio ? - if (m_toc->tracks[tracknum].trktype != CD_TRACK_AUDIO) - continue; - // byteswap if yes - int dataoffset = chdlba * CD_FRAME_SIZE; - for (uint32_t swapindex = dataoffset; swapindex < (dataoffset + CD_MAX_SECTOR_DATA); swapindex += 2) - { - uint8_t temp = _dest[swapindex]; - _dest[swapindex] = _dest[swapindex + 1]; - _dest[swapindex + 1] = temp; - } - } - } - - return length; - } - -const cdrom_toc * m_toc; - -private: - // internal state - chd_file & m_file; - uint64_t m_offset; - uint64_t m_maxoffset; -}; - - -// ======================> chd_cd_compressor - -class chd_cd_compressor : public chd_file_compressor -{ -public: - // construction/destruction - chd_cd_compressor(cdrom_toc &toc, chdcd_track_input_info &info) - : m_file(), - m_toc(toc), - m_info(info) { } - - ~chd_cd_compressor() - { - } - - // read interface - virtual uint32_t read_data(void *_dest, uint64_t offset, uint32_t length) - { - // verify assumptions made below - assert(offset % CD_FRAME_SIZE == 0); - assert(length % CD_FRAME_SIZE == 0); - - // initialize destination to 0 so that unused areas are filled - uint8_t *dest = reinterpret_cast(_dest); - memset(dest, 0, length); - - // find out which track we're starting in - uint64_t startoffs = 0; - uint32_t length_remaining = length; - for (int tracknum = 0; tracknum < m_toc.numtrks; tracknum++) - { - const cdrom_track_info &trackinfo = m_toc.tracks[tracknum]; - uint64_t endoffs = startoffs + (uint64_t)(trackinfo.frames + trackinfo.extraframes) * CD_FRAME_SIZE; - if (offset >= startoffs && offset < endoffs) - { - // if we don't already have this file open, open it now - if (!m_file || m_lastfile.compare(m_info.track[tracknum].fname)!=0) - { - m_file.reset(); - m_lastfile = m_info.track[tracknum].fname; - std::error_condition const filerr = util::core_file::open(m_lastfile, OPEN_FLAG_READ, m_file); - if (filerr) - report_error(1, "Error opening input file (%s): %s", m_lastfile, filerr.message()); - } - - // iterate over frames - uint64_t bytesperframe = trackinfo.datasize + trackinfo.subsize; - uint64_t src_track_start = m_info.track[tracknum].offset; - uint64_t src_track_end = src_track_start + bytesperframe * (uint64_t)trackinfo.frames; - uint64_t pad_track_start = src_track_end - ((uint64_t)m_toc.tracks[tracknum].padframes * bytesperframe); - uint64_t split_track_start = pad_track_start - ((uint64_t)m_toc.tracks[tracknum].splitframes * bytesperframe); - - // dont split when split-bin read not required - if ((uint64_t)m_toc.tracks[tracknum].splitframes == 0L) - split_track_start = UINT64_MAX; - - while (length_remaining != 0 && offset < endoffs) - { - // determine start of current frame - uint64_t src_frame_start = src_track_start + ((offset - startoffs) / CD_FRAME_SIZE) * bytesperframe; - - // auto-advance next track for split-bin read - if (src_frame_start == split_track_start && m_lastfile.compare(m_info.track[tracknum+1].fname)!=0) - { - m_file.reset(); - m_lastfile = m_info.track[tracknum+1].fname; - std::error_condition const filerr = util::core_file::open(m_lastfile, OPEN_FLAG_READ, m_file); - if (filerr) - report_error(1, "Error opening input file (%s): %s", m_lastfile, filerr.message()); - } - - if (src_frame_start < src_track_end) - { - // read it in, or pad if we're into the padframes - if (src_frame_start >= pad_track_start) - { - memset(dest, 0, bytesperframe); - } - else - { - std::error_condition err = m_file->seek( - (src_frame_start >= split_track_start) - ? src_frame_start - split_track_start - : src_frame_start, - SEEK_SET); - std::size_t count = 0; - if (!err) - err = m_file->read(dest, bytesperframe, count); - if (err || (count != bytesperframe)) - report_error(1, "Error reading input file (%s)'", m_lastfile); - } - - // swap if appropriate - if (m_info.track[tracknum].swap) - for (uint32_t swapindex = 0; swapindex < 2352; swapindex += 2) - { - uint8_t temp = dest[swapindex]; - dest[swapindex] = dest[swapindex + 1]; - dest[swapindex + 1] = temp; - } - } - - // advance - offset += CD_FRAME_SIZE; - dest += CD_FRAME_SIZE; - length_remaining -= CD_FRAME_SIZE; - if (length_remaining == 0) - break; - } - } - - // next track starts after the previous one - startoffs = endoffs; - } - return length - length_remaining; - } - -private: - // internal state - std::string m_lastfile; - util::core_file::ptr m_file; - cdrom_toc & m_toc; - chdcd_track_input_info & m_info; -}; - - -// ======================> chd_avi_compressor - -class chd_avi_compressor : public chd_file_compressor -{ -public: - // construction/destruction - chd_avi_compressor(avi_file &file, avi_info &info, uint32_t first_frame, uint32_t num_frames) - : m_file(file), - m_info(info), - m_bitmap(info.width, info.height * (info.interlaced ? 2 : 1)), - m_start_frame(first_frame), - m_frame_count(num_frames), - m_ldframedata(num_frames * VBI_PACKED_BYTES), - m_rawdata(info.bytes_per_frame) { } - - // getters - const std::vector &ldframedata() const { return m_ldframedata; } - - // read interface - virtual uint32_t read_data(void *_dest, uint64_t offset, uint32_t length) - { - uint8_t *dest = reinterpret_cast(_dest); - uint8_t interlace_factor = m_info.interlaced ? 2 : 1; - uint32_t length_remaining = length; - - // iterate over frames - int32_t start_frame = offset / m_info.bytes_per_frame; - int32_t end_frame = (offset + length - 1) / m_info.bytes_per_frame; - for (int32_t framenum = start_frame; framenum <= end_frame; framenum++) - if (framenum < m_frame_count) - { - // determine effective frame number and first/last samples - int32_t effframe = m_start_frame + framenum; - uint32_t first_sample = (uint64_t(m_info.rate) * uint64_t(effframe) * uint64_t(1000000) + m_info.fps_times_1million - 1) / uint64_t(m_info.fps_times_1million); - uint32_t samples = (uint64_t(m_info.rate) * uint64_t(effframe + 1) * uint64_t(1000000) + m_info.fps_times_1million - 1) / uint64_t(m_info.fps_times_1million) - first_sample; - - // loop over channels and read the samples - int channels = unsigned((std::min)(m_info.channels, std::size(m_audio))); - int16_t *samplesptr[std::size(m_audio)]; - for (int chnum = 0; chnum < channels; chnum++) - { - // read the sound samples - m_audio[chnum].resize(samples); - samplesptr[chnum] = &m_audio[chnum][0]; - avi_file::error avierr = m_file.read_sound_samples(chnum, first_sample, samples, &m_audio[chnum][0]); - if (avierr != avi_file::error::NONE) - report_error(1, "Error reading audio samples %d-%d from channel %d: %s", first_sample, samples, chnum, avi_file::error_string(avierr)); - } - - // read the video data - avi_file::error avierr = m_file.read_video_frame(effframe / interlace_factor, m_bitmap); - if (avierr != avi_file::error::NONE) - report_error(1, "Error reading AVI frame %d: %s", effframe / interlace_factor, avi_file::error_string(avierr)); - bitmap_yuy16 subbitmap(&m_bitmap.pix(effframe % interlace_factor), m_bitmap.width(), m_bitmap.height() / interlace_factor, m_bitmap.rowpixels() * interlace_factor); - - // update metadata for this frame - if (m_info.height == 524/2 || m_info.height == 624/2) - { - vbi_metadata vbi; - vbi_parse_all(&subbitmap.pix(0), subbitmap.rowpixels(), subbitmap.width(), 8, &vbi); - vbi_metadata_pack(&m_ldframedata[framenum * VBI_PACKED_BYTES], framenum, &vbi); - } - - // assemble the data into final form - avhuff_error averr = avhuff_encoder::assemble_data(m_rawdata, subbitmap, channels, samples, samplesptr); - if (averr != AVHERR_NONE) - report_error(1, "Error assembling data for frame %d", framenum); - if (m_rawdata.size() < m_info.bytes_per_frame) - { - int old_size = m_rawdata.size(); - m_rawdata.resize(m_info.bytes_per_frame); - memset(&m_rawdata[old_size], 0, m_info.bytes_per_frame - old_size); - } - - // copy to the destination - uint64_t start_offset = uint64_t(framenum) * uint64_t(m_info.bytes_per_frame); - uint64_t end_offset = start_offset + m_info.bytes_per_frame; - uint32_t bytes_to_copy = (std::min)(length_remaining, end_offset - offset); - memcpy(dest, &m_rawdata[offset - start_offset], bytes_to_copy); - - // advance - offset += bytes_to_copy; - dest += bytes_to_copy; - length_remaining -= bytes_to_copy; - } - - return length; - } - -private: - // internal state - avi_file & m_file; - avi_info & m_info; - bitmap_yuy16 m_bitmap; - uint32_t m_start_frame; - uint32_t m_frame_count; - std::vector m_audio[8]; - std::vector m_ldframedata; - std::vector m_rawdata; -}; - - - -//************************************************************************** -// GLOBAL VARIABLES -//************************************************************************** - -// timing -static clock_t lastprogress = 0; - - -// default compressors -static const chd_codec_type s_default_raw_compression[4] = { CHD_CODEC_LZMA, CHD_CODEC_ZLIB, CHD_CODEC_HUFFMAN, CHD_CODEC_FLAC }; -static const chd_codec_type s_default_hd_compression[4] = { CHD_CODEC_LZMA, CHD_CODEC_ZLIB, CHD_CODEC_HUFFMAN, CHD_CODEC_FLAC }; -static const chd_codec_type s_default_cd_compression[4] = { CHD_CODEC_CD_LZMA, CHD_CODEC_CD_ZLIB, CHD_CODEC_CD_FLAC }; -static const chd_codec_type s_default_ld_compression[4] = { CHD_CODEC_AVHUFF }; - - -// descriptions for each option -static const option_description s_options[] = -{ - { OPTION_INPUT, "i", true, " : input file name" }, - { OPTION_INPUT_PARENT, "ip", true, " : parent file name for input CHD" }, - { OPTION_OUTPUT, "o", true, " : output file name" }, - { OPTION_OUTPUT_BIN, "ob", true, " : output file name for binary data" }, - { OPTION_OUTPUT_FORCE, "f", false, ": force overwriting an existing file" }, - { OPTION_OUTPUT_PARENT, "op", true, " : parent file name for output CHD" }, - { OPTION_INPUT_START_BYTE, "isb", true, " : starting byte offset within the input" }, - { OPTION_INPUT_START_HUNK, "ish", true, " : starting hunk offset within the input" }, - { OPTION_INPUT_START_FRAME, "isf", true, " : starting frame within the input" }, - { OPTION_INPUT_LENGTH_BYTES, "ib", true, " : effective length of input in bytes" }, - { OPTION_INPUT_LENGTH_HUNKS, "ih", true, " : effective length of input in hunks" }, - { OPTION_INPUT_LENGTH_FRAMES, "if", true, " : effective length of input in frames" }, - { OPTION_HUNK_SIZE, "hs", true, " : size of each hunk, in bytes" }, - { OPTION_UNIT_SIZE, "us", true, " : size of each unit, in bytes" }, - { OPTION_COMPRESSION, "c", true, " : which compression codecs to use (up to 4)" }, - { OPTION_IDENT, "id", true, " : name of ident file to provide CHS information" }, - { OPTION_CHS, "chs", true, " : specifies CHS values directly" }, - { OPTION_SECTOR_SIZE, "ss", true, " : size of each hard disk sector" }, - { OPTION_TAG, "t", true, " : 4-character tag for metadata" }, - { OPTION_INDEX, "ix", true, " : indexed instance of this metadata tag" }, - { OPTION_VALUE_TEXT, "vt", true, " : text for the metadata" }, - { OPTION_VALUE_FILE, "vf", true, " : file containing data to add" }, - { OPTION_NUMPROCESSORS, "np", true, " : limit the number of processors to use during compression" }, - { OPTION_NO_CHECKSUM, "nocs", false, ": do not include this metadata information in the overall SHA-1" }, - { OPTION_FIX, "f", false, ": fix the SHA-1 if it is incorrect" }, - { OPTION_VERBOSE, "v", false, ": output additional information" }, - { OPTION_SIZE, "s", true, ": : size of the output file" }, - { OPTION_TEMPLATE, "tp", true, ": : use hard disk template (see listtemplates)" }, -}; - - -// descriptions for each command -static const command_description s_commands[] = -{ - { COMMAND_INFO, do_info, ": displays information about a CHD", - { - REQUIRED OPTION_INPUT, - OPTION_VERBOSE - } - }, - - { COMMAND_VERIFY, do_verify, ": verifies a CHD's integrity", - { - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT - } - }, - - { COMMAND_CREATE_RAW, do_create_raw, ": create a raw CHD from the input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_PARENT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_START_BYTE, - OPTION_INPUT_START_HUNK, - OPTION_INPUT_LENGTH_BYTES, - OPTION_INPUT_LENGTH_HUNKS, - REQUIRED OPTION_HUNK_SIZE, - REQUIRED OPTION_UNIT_SIZE, - OPTION_COMPRESSION, - OPTION_NUMPROCESSORS - } - }, - - { COMMAND_CREATE_HD, do_create_hd, ": create a hard disk CHD from the input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_PARENT, - OPTION_OUTPUT_FORCE, - OPTION_INPUT, - OPTION_INPUT_START_BYTE, - OPTION_INPUT_START_HUNK, - OPTION_INPUT_LENGTH_BYTES, - OPTION_INPUT_LENGTH_HUNKS, - OPTION_HUNK_SIZE, - OPTION_COMPRESSION, - OPTION_TEMPLATE, - OPTION_IDENT, - OPTION_CHS, - OPTION_SIZE, - OPTION_SECTOR_SIZE, - OPTION_NUMPROCESSORS - } - }, - - { COMMAND_CREATE_CD, do_create_cd, ": create a CD CHD from the input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_PARENT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_HUNK_SIZE, - OPTION_COMPRESSION, - OPTION_NUMPROCESSORS - } - }, - - { COMMAND_CREATE_LD, do_create_ld, ": create a laserdisc CHD from the input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_PARENT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_START_FRAME, - OPTION_INPUT_LENGTH_FRAMES, - OPTION_HUNK_SIZE, - OPTION_COMPRESSION, - OPTION_NUMPROCESSORS - } - }, - - { COMMAND_EXTRACT_RAW, do_extract_raw, ": extract raw file from a CHD input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT, - OPTION_INPUT_START_BYTE, - OPTION_INPUT_START_HUNK, - OPTION_INPUT_LENGTH_BYTES, - OPTION_INPUT_LENGTH_HUNKS - } - }, - - { COMMAND_EXTRACT_HD, do_extract_raw, ": extract raw hard disk file from a CHD input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT, - OPTION_INPUT_START_BYTE, - OPTION_INPUT_START_HUNK, - OPTION_INPUT_LENGTH_BYTES, - OPTION_INPUT_LENGTH_HUNKS - } - }, - - { COMMAND_EXTRACT_CD, do_extract_cd, ": extract CD file from a CHD input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_BIN, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT, - } - }, - - { COMMAND_EXTRACT_LD, do_extract_ld, ": extract laserdisc AVI from a CHD input file", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT, - OPTION_INPUT_START_FRAME, - OPTION_INPUT_LENGTH_FRAMES - } - }, - - { COMMAND_COPY, do_copy, ": copy data from one CHD to another of the same type", - { - REQUIRED OPTION_OUTPUT, - OPTION_OUTPUT_PARENT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_INPUT, - OPTION_INPUT_PARENT, - OPTION_INPUT_START_BYTE, - OPTION_INPUT_START_HUNK, - OPTION_INPUT_LENGTH_BYTES, - OPTION_INPUT_LENGTH_HUNKS, - OPTION_HUNK_SIZE, - OPTION_COMPRESSION, - OPTION_NUMPROCESSORS - } - }, - - { COMMAND_ADD_METADATA, do_add_metadata, ": add metadata to the CHD", - { - REQUIRED OPTION_INPUT, - REQUIRED OPTION_TAG, - OPTION_INDEX, - OPTION_VALUE_TEXT, - OPTION_VALUE_FILE, - OPTION_NO_CHECKSUM - } - }, - - { COMMAND_DEL_METADATA, do_del_metadata, ": remove metadata from the CHD", - { - REQUIRED OPTION_INPUT, - REQUIRED OPTION_TAG, - OPTION_INDEX - } - }, - - { COMMAND_DUMP_METADATA, do_dump_metadata, ": dump metadata from the CHD to stdout or to a file", - { - REQUIRED OPTION_INPUT, - OPTION_OUTPUT, - OPTION_OUTPUT_FORCE, - REQUIRED OPTION_TAG, - OPTION_INDEX - } - }, - - { COMMAND_LIST_TEMPLATES, do_list_templates, ": list hard disk templates", - { - } - }, -}; - - -// hard disk templates -static const hd_template s_hd_templates[] = -{ - { "Conner", "CFA170A", 332, 16, 63, 512 }, // 163 MB - { "Rodime", "R0201", 321, 2, 16, 512 }, // 5 MB - { "Rodime", "R0202", 321, 4, 16, 512 }, // 10 MB - { "Rodime", "R0203", 321, 6, 16, 512 }, // 15 MB - { "Rodime", "R0204", 321, 8, 16, 512 }, // 20 MB - { "Seagate", "ST-213", 615, 2, 17, 512 }, // 10 MB - { "Seagate", "ST-225", 615, 4, 17, 512 }, // 20 MB - { "Seagate", "ST-251", 820, 6, 17, 512 }, // 40 MB - { "Seagate", "ST-3600N", 1877, 7, 76, 512 }, // 525 MB - { "Maxtor", "LXT-213S", 1314, 7, 53, 512 }, // 200 MB - { "Maxtor", "LXT-340S", 1574, 7, 70, 512 }, // 340 MB - { "Maxtor", "MXT-540SL", 2466, 7, 87, 512 }, // 540 MB - { "Micropolis", "1528", 2094, 15, 83, 512 }, // 1342 MB -}; - - - -//************************************************************************** -// IMPLEMENTATION -//************************************************************************** - -//------------------------------------------------- -// report_error - report an error -//------------------------------------------------- - -template static void report_error(int error, Format &&fmt, Params &&...args) -{ - // output to stderr - util::stream_format(std::cerr, std::forward(fmt), std::forward(args)...); - std::cerr << std::endl; - - // reset time for progress and return the error - lastprogress = 0; - throw fatal_error(error); -} - - -//------------------------------------------------- -// progress - generic progress callback -//------------------------------------------------- - -template static void progress(bool forceit, Format &&fmt, Params &&...args) -{ - // skip if it hasn't been long enough - clock_t curtime = clock(); - if (!forceit && lastprogress != 0 && curtime - lastprogress < CLOCKS_PER_SEC / 2) - return; - lastprogress = curtime; - - // standard vfprintf stuff here - util::stream_format(std::cerr, std::forward(fmt), std::forward(args)...); - std::cerr << std::flush; -} - - -//------------------------------------------------- -// print_help - print help for all the commands -//------------------------------------------------- - -static int print_help(const std::string &argv0, const char *error = nullptr) -{ - // print the error message first - if (error != nullptr) - fprintf(stderr, "Error: %s\n\n", error); - - // print a summary of each command - printf("Usage:\n"); - for (auto & desc : s_commands) - { - printf(" %s %s%s\n", argv0.c_str(), desc.name, desc.description); - } - printf("\nFor help with any command, run:\n"); - printf(" %s %s \n", argv0.c_str(), COMMAND_HELP); - return 1; -} - - -//------------------------------------------------- -// print_help - print help for all a specific -// command -//------------------------------------------------- - -static int print_help(const std::string &argv0, const command_description &desc, const char *error = nullptr) -{ - // print the error message first - if (error != nullptr) - fprintf(stderr, "Error: %s\n\n", error); - - // print usage for this command - printf("Usage:\n"); - printf(" %s %s [options], where valid options are:\n", argv0.c_str(), desc.name); - for (int valid = 0; valid < std::size(desc.valid_options); valid++) - { - // determine whether we are required - const char *option = desc.valid_options[valid]; - if (option == nullptr) - break; - bool required = (option[0] == REQUIRED[0]); - if (required) - option++; - - // find the option - for (auto & s_option : s_options) - if (strcmp(option, s_option.name) == 0) - { - const option_description &odesc = s_option; - printf(" --%s", odesc.name); - if (odesc.shortname != nullptr) - printf(", -%s", odesc.shortname); - printf("%s%s\n", odesc.description, required ? " (required)" : ""); - } - } - return 1; -} - - -//------------------------------------------------- -// big_int_string - create a 64-bit string -//------------------------------------------------- - -std::string big_int_string(uint64_t intvalue) -{ - // 0 is a special case - if (intvalue == 0) - return "0"; - - // loop until all chunks are done - std::string str; - bool first = true; - while (intvalue != 0) - { - int chunk = intvalue % 1000; - intvalue /= 1000; - - std::string insert = string_format((intvalue != 0) ? "%03d" : "%d", chunk); - - if (!first) - str.insert(0, ","); - first = false; - str.insert(0, insert); - } - return str; -} - - -//------------------------------------------------- -// msf_string_from_frames - output the given -// number of frames in M:S:F format -//------------------------------------------------- - -std::string msf_string_from_frames(uint32_t frames) -{ - return string_format("%02d:%02d:%02d", frames / (75 * 60), (frames / 75) % 60, frames % 75); -} - - -//------------------------------------------------- -// parse_number - parse a number string with an -// optional k/m/g suffix -//------------------------------------------------- - -uint64_t parse_number(const char *string) -{ - // 0-length string is 0 - int length = strlen(string); - if (length == 0) - return 0; - - // scan forward over digits - uint64_t result = 0; - while (isdigit(*string)) - { - result = (result * 10) + (*string - '0'); - string++; - } - - // handle multipliers - if (*string == 'k' || *string == 'K') - result *= 1024; - if (*string == 'm' || *string == 'M') - result *= 1024 * 1024; - if (*string == 'g' || *string == 'G') - result *= 1024 * 1024 * 1024; - - return result; -} - - -//------------------------------------------------- -// guess_chs - given a file and an offset, -// compute a best guess CHS value set -//------------------------------------------------- - -static void guess_chs(std::string *filename, uint64_t filesize, int sectorsize, uint32_t &cylinders, uint32_t &heads, uint32_t §ors, uint32_t &bps) -{ - // if this is a direct physical drive read, handle it specially - if (filename != nullptr && osd_get_physical_drive_geometry(filename->c_str(), &cylinders, &heads, §ors, &bps)) - return; - - // if we have no length to work with, we can't guess - if (filesize == 0) - report_error(1, "Can't guess CHS values because there is no input file"); - - // now find a valid value - for (uint32_t totalsectors = filesize / sectorsize; ; totalsectors++) - for (uint32_t cursectors = 63; cursectors > 1; cursectors--) - if (totalsectors % cursectors == 0) - { - uint32_t totalheads = totalsectors / cursectors; - for (uint32_t curheads = 16; curheads > 1; curheads--) - if (totalheads % curheads == 0) - { - cylinders = totalheads / curheads; - heads = curheads; - sectors = cursectors; - return; - } - } -} - - -//------------------------------------------------- -// parse_input_chd_parameters - parse the -// standard set of input CHD parameters -//------------------------------------------------- - -static void parse_input_chd_parameters(const parameters_map ¶ms, chd_file &input_chd, chd_file &input_parent_chd, bool writeable = false) -{ - // process input parent file - auto input_chd_parent_str = params.find(OPTION_INPUT_PARENT); - if (input_chd_parent_str != params.end()) - { - std::error_condition err = input_parent_chd.open(*input_chd_parent_str->second); - if (err) - report_error(1, "Error opening parent CHD file (%s): %s", *input_chd_parent_str->second, err.message()); - } - - // process input file - auto input_chd_str = params.find(OPTION_INPUT); - if (input_chd_str != params.end()) - { - std::error_condition err = input_chd.open(*input_chd_str->second, writeable, input_parent_chd.opened() ? &input_parent_chd : nullptr); - if (err) - report_error(1, "Error opening CHD file (%s): %s", *input_chd_str->second, err.message()); - } -} - - -//------------------------------------------------- -// parse_input_start_end - parse input start/end -// parameters in a standard way -//------------------------------------------------- - -static void parse_input_start_end(const parameters_map ¶ms, uint64_t logical_size, uint32_t hunkbytes, uint32_t framebytes, uint64_t &input_start, uint64_t &input_end) -{ - // process start/end if we were provided an input CHD - input_start = 0; - input_end = logical_size; - - // process input start - auto input_start_byte_str = params.find(OPTION_INPUT_START_BYTE); - auto input_start_hunk_str = params.find(OPTION_INPUT_START_HUNK); - auto input_start_frame_str = params.find(OPTION_INPUT_START_FRAME); - if (input_start_byte_str != params.end()) - input_start = parse_number(input_start_byte_str->second->c_str()); - if (input_start_hunk_str != params.end()) - input_start = parse_number(input_start_hunk_str->second->c_str()) * hunkbytes; - if (input_start_frame_str != params.end()) - input_start = parse_number(input_start_frame_str->second->c_str()) * framebytes; - if (input_start >= input_end) - report_error(1, "Input start offset greater than input file size"); - - // process input length - auto input_length_bytes_str = params.find(OPTION_INPUT_LENGTH_BYTES); - auto input_length_hunks_str = params.find(OPTION_INPUT_LENGTH_HUNKS); - auto input_length_frames_str = params.find(OPTION_INPUT_LENGTH_FRAMES); - uint64_t input_length = input_end; - if (input_length_bytes_str != params.end()) - input_length = parse_number(input_length_bytes_str->second->c_str()); - if (input_length_hunks_str != params.end()) - input_length = parse_number(input_length_hunks_str->second->c_str()) * hunkbytes; - if (input_length_frames_str != params.end()) - input_length = parse_number(input_length_frames_str->second->c_str()) * framebytes; - if (input_start + input_length < input_end) - input_end = input_start + input_length; -} - - -//------------------------------------------------- -// check_existing_output_file - see if an output -// file already exists, and error if it does, -// unless --force is specified -//------------------------------------------------- - -static void check_existing_output_file(const parameters_map ¶ms, const char *filename) -{ - if (params.find(OPTION_OUTPUT_FORCE) == params.end()) - { - util::core_file::ptr file; - std::error_condition const filerr = util::core_file::open(filename, OPEN_FLAG_READ, file); - if (!filerr) - { - file.reset(); - report_error(1, "Error: file already exists (%s)\nUse --force (or -f) to force overwriting", filename); - } - } -} - - -//------------------------------------------------- -// parse_output_chd_parameters - parse the -// standard set of output CHD parameters -//------------------------------------------------- - -static std::string *parse_output_chd_parameters(const parameters_map ¶ms, chd_file &output_parent_chd) -{ - // process output parent file - auto output_chd_parent_str = params.find(OPTION_OUTPUT_PARENT); - if (output_chd_parent_str != params.end()) - { - std::error_condition err = output_parent_chd.open(*output_chd_parent_str->second); - if (err) - report_error(1, "Error opening parent CHD file (%s): %s", *output_chd_parent_str->second, err.message()); - } - - // process output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - check_existing_output_file(params, output_chd_str->second->c_str()); - return (output_chd_str != params.end()) ? output_chd_str->second : nullptr; -} - - -//------------------------------------------------- -// parse_hunk_size - parse the hunk_size -// parameter in a standard way -//------------------------------------------------- - -static void parse_hunk_size(const parameters_map ¶ms, uint32_t required_granularity, uint32_t &hunk_size) -{ - auto hunk_size_str = params.find(OPTION_HUNK_SIZE); - if (hunk_size_str != params.end()) - { - hunk_size = parse_number(hunk_size_str->second->c_str()); - if (hunk_size < 16 || hunk_size > 1024 * 1024) - report_error(1, "Invalid hunk size"); - if (hunk_size % required_granularity != 0) - report_error(1, "Hunk size is not an even multiple of %d", required_granularity); - } -} - - -//------------------------------------------------- -// parse_compression - parse a standard -// compression parameter string -//------------------------------------------------- - -static void parse_compression(const parameters_map ¶ms, chd_codec_type compression[4]) -{ - // see if anything was specified - auto compression_str = params.find(OPTION_COMPRESSION); - if (compression_str == params.end()) - return; - - // special case: 'none' - if (compression_str->second->compare("none")==0) - { - compression[0] = compression[1] = compression[2] = compression[3] = CHD_CODEC_NONE; - return; - } - - // iterate through compressors - int index = 0; - for (int start = 0, end = compression_str->second->find_first_of(','); index < 4; start = end + 1, end = compression_str->second->find_first_of(',', end + 1)) - { - std::string name(*compression_str->second, start, (end == -1) ? -1 : end - start); - if (name.length() != 4) - report_error(1, "Invalid compressor '%s' specified", name); - chd_codec_type type = CHD_MAKE_TAG(name[0], name[1], name[2], name[3]); - if (!chd_codec_list::codec_exists(type)) - report_error(1, "Invalid compressor '%s' specified", name); - compression[index++] = type; - if (end == -1) - break; - } - - for(;index < 4; ++index) - { - compression[index] = CHD_CODEC_NONE; - } -} - - -//------------------------------------------------- -// parse_numprocessors - handle the numprocessors -// command -//------------------------------------------------- - -static void parse_numprocessors(const parameters_map ¶ms) -{ - auto numprocessors_str = params.find(OPTION_NUMPROCESSORS); - if (numprocessors_str == params.end()) - return; - - int count = atoi(numprocessors_str->second->c_str()); - if (count > 0) - { - extern int osd_num_processors; - osd_num_processors = count; - } -} - - -//------------------------------------------------- -// compression_string - create a friendly string -// describing a set of compressors -//------------------------------------------------- - -static std::string compression_string(chd_codec_type compression[4]) -{ - // output compression types - if (compression[0] == CHD_CODEC_NONE) - return "none"; - - // iterate over types - std::string str; - for (int index = 0; index < 4; index++) - { - chd_codec_type type = compression[index]; - if (type == CHD_CODEC_NONE) - break; - if (index != 0) - str.append(", "); - str.push_back((type >> 24) & 0xff); - str.push_back((type >> 16) & 0xff); - str.push_back((type >> 8) & 0xff); - str.push_back(type & 0xff); - str.append(" (").append(chd_codec_list::codec_name(type)).append(")"); - } - return str; -} - - -//------------------------------------------------- -// compress_common - standard compression loop -//------------------------------------------------- - -static void compress_common(chd_file_compressor &chd) -{ - // begin compressing - chd.compress_begin(); - - // loop until done - double complete, ratio; - std::error_condition err; - while ((err = chd.compress_continue(complete, ratio)) == chd_file::error::WALKING_PARENT || err == chd_file::error::COMPRESSING) - if (err == chd_file::error::WALKING_PARENT) - progress(false, "Examining parent, %.1f%% complete... \r", 100.0 * complete); - else - progress(false, "Compressing, %.1f%% complete... (ratio=%.1f%%) \r", 100.0 * complete, 100.0 * ratio); - - // handle errors - if (err) - report_error(1, "Error during compression: %-40s", err.message()); - - // final progress update - progress(true, "Compression complete ... final ratio = %.1f%% \n", 100.0 * ratio); -} - - -//------------------------------------------------- -// output_track_metadata - output track metadata -// to a CUE file -//------------------------------------------------- - -void output_track_metadata(int mode, util::core_file &file, int tracknum, const cdrom_track_info &info, const std::string &filename, uint32_t frameoffs, uint64_t discoffs) -{ - if (mode == MODE_GDI) - { - int mode = 0, size = 2048; - - switch (info.trktype) - { - case CD_TRACK_MODE1: - mode = 4; - size = 2048; - break; - - case CD_TRACK_MODE1_RAW: - mode = 4; - size = 2352; - break; - - case CD_TRACK_MODE2: - mode = 4; - size = 2336; - break; - - case CD_TRACK_MODE2_FORM1: - mode = 4; - size = 2048; - break; - - case CD_TRACK_MODE2_FORM2: - mode = 4; - size = 2324; - break; - - case CD_TRACK_MODE2_FORM_MIX: - mode = 4; - size = 2336; - break; - - case CD_TRACK_MODE2_RAW: - mode = 4; - size = 2352; - break; - - case CD_TRACK_AUDIO: - mode = 0; - size = 2352; - break; - } - const bool needquote = filename.find(' ') != std::string::npos; - const char *const quotestr = needquote ? "\"" : ""; - file.printf("%d %d %d %d %s%s%s %d\n", tracknum+1, frameoffs, mode, size, quotestr, filename, quotestr, discoffs); - } - else if (mode == MODE_CUEBIN) - { - // first track specifies the file - if (tracknum == 0) - file.printf("FILE \"%s\" BINARY\n", filename); - - // determine submode - std::string tempstr; - switch (info.trktype) - { - case CD_TRACK_MODE1: - case CD_TRACK_MODE1_RAW: - tempstr = string_format("MODE1/%04d", info.datasize); - break; - - case CD_TRACK_MODE2: - case CD_TRACK_MODE2_FORM1: - case CD_TRACK_MODE2_FORM2: - case CD_TRACK_MODE2_FORM_MIX: - case CD_TRACK_MODE2_RAW: - tempstr = string_format("MODE2/%04d", info.datasize); - break; - - case CD_TRACK_AUDIO: - tempstr.assign("AUDIO"); - break; - } - - // output TRACK entry - file.printf(" TRACK %02d %s\n", tracknum + 1, tempstr); - - // output PREGAP tag if pregap sectors are not in the file - if ((info.pregap > 0) && (info.pgdatasize == 0)) - { - file.printf(" PREGAP %s\n", msf_string_from_frames(info.pregap)); - file.printf(" INDEX 01 %s\n", msf_string_from_frames(frameoffs)); - } - else if ((info.pregap > 0) && (info.pgdatasize > 0)) - { - file.printf(" INDEX 00 %s\n", msf_string_from_frames(frameoffs)); - file.printf(" INDEX 01 %s\n", msf_string_from_frames(frameoffs+info.pregap)); - } - - // if no pregap at all, output index 01 only - if (info.pregap == 0) - { - file.printf(" INDEX 01 %s\n", msf_string_from_frames(frameoffs)); - } - - // output POSTGAP - if (info.postgap > 0) - file.printf(" POSTGAP %s\n", msf_string_from_frames(info.postgap)); - } - // non-CUE mode - else if (mode == MODE_NORMAL) - { - // header on the first track - if (tracknum == 0) - file.printf("CD_ROM\n\n\n"); - file.printf("// Track %d\n", tracknum + 1); - - // write out the track type - std::string modesubmode; - if (info.subtype != CD_SUB_NONE) - modesubmode = string_format("%s %s", cdrom_get_type_string(info.trktype), cdrom_get_subtype_string(info.subtype)); - else - modesubmode = string_format("%s", cdrom_get_type_string(info.trktype)); - file.printf("TRACK %s\n", modesubmode); - - // write out the attributes - file.printf("NO COPY\n"); - if (info.trktype == CD_TRACK_AUDIO) - { - file.printf("NO PRE_EMPHASIS\n"); - file.printf("TWO_CHANNEL_AUDIO\n"); - } - - // output pregap - if (info.pregap > 0) - file.printf("ZERO %s %s\n", modesubmode, msf_string_from_frames(info.pregap)); - - // all tracks but the first one have a file offset - if (tracknum > 0) - file.printf("DATAFILE \"%s\" #%d %s // length in bytes: %d\n", filename, uint32_t(discoffs), msf_string_from_frames(info.frames), info.frames * (info.datasize + info.subsize)); - else - file.printf("DATAFILE \"%s\" %s // length in bytes: %d\n", filename, msf_string_from_frames(info.frames), info.frames * (info.datasize + info.subsize)); - - // tracks with pregaps get a START marker too - if (info.pregap > 0) - file.printf("START %s\n", msf_string_from_frames(info.pregap)); - - file.printf("\n\n"); - } -} - - -//------------------------------------------------- -// do_info - dump the header information from -// a drive image -//------------------------------------------------- - -static void do_info(parameters_map ¶ms) -{ - bool verbose = params.find(OPTION_VERBOSE) != params.end(); - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // print filename and version - printf("Input file: %s\n", params.find(OPTION_INPUT)->second->c_str()); - printf("File Version: %d\n", input_chd.version()); - if (input_chd.version() < 3) - report_error(1, "Unsupported version (%d); use an older chdman to upgrade to version 3 or later", input_chd.version()); - - // output cmpression and size information - chd_codec_type compression[4] = { input_chd.compression(0), input_chd.compression(1), input_chd.compression(2), input_chd.compression(3) }; - uint64_t filesize = 0; - input_chd.file().length(filesize); - printf("Logical size: %s bytes\n", big_int_string(input_chd.logical_bytes()).c_str()); - printf("Hunk Size: %s bytes\n", big_int_string(input_chd.hunk_bytes()).c_str()); - printf("Total Hunks: %s\n", big_int_string(input_chd.hunk_count()).c_str()); - printf("Unit Size: %s bytes\n", big_int_string(input_chd.unit_bytes()).c_str()); - printf("Total Units: %s\n", big_int_string(input_chd.unit_count()).c_str()); - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("CHD size: %s bytes\n", big_int_string(filesize).c_str()); - if (compression[0] != CHD_CODEC_NONE) - printf("Ratio: %.1f%%\n", 100.0 * double(filesize) / double(input_chd.logical_bytes())); - - // add SHA1 output - util::sha1_t overall = input_chd.sha1(); - if (overall != util::sha1_t::null) - { - printf("SHA1: %s\n", overall.as_string().c_str()); - if (input_chd.version() >= 4) - printf("Data SHA1: %s\n", input_chd.raw_sha1().as_string().c_str()); - } - util::sha1_t parent = input_chd.parent_sha1(); - if (parent != util::sha1_t::null) - printf("Parent SHA1: %s\n", parent.as_string().c_str()); - - // print out metadata - std::vector buffer; - std::vector info; - for (int index = 0; ; index++) - { - // get the indexed metadata item; stop when we hit an error - chd_metadata_tag metatag; - uint8_t metaflags; - std::error_condition err = input_chd.read_metadata(CHDMETATAG_WILDCARD, index, buffer, metatag, metaflags); - if (err) - break; - - // determine our index - uint32_t metaindex = ~0; - for (auto & elem : info) - if (elem.tag == metatag) - { - metaindex = ++elem.index; - break; - } - - // if not found, add to our tracking - if (metaindex == ~0) - { - metadata_index_info curinfo = { metatag, 0 }; - info.push_back(curinfo); - metaindex = 0; - } - - // print either a string representation or a hex representation of the tag - if (isprint((metatag >> 24) & 0xff) && isprint((metatag >> 16) & 0xff) && isprint((metatag >> 8) & 0xff) && isprint(metatag & 0xff)) - printf("Metadata: Tag='%c%c%c%c' Index=%d Length=%d bytes\n", (metatag >> 24) & 0xff, (metatag >> 16) & 0xff, (metatag >> 8) & 0xff, metatag & 0xff, metaindex, int(buffer.size())); - else - printf("Metadata: Tag=%08x Index=%d Length=%d bytes\n", metatag, metaindex, int(buffer.size())); - printf(" "); - - uint32_t count = buffer.size(); - // limit output to 60 characters of metadata if not verbose - if (!verbose) - count = std::min(60U, count); - for (int chnum = 0; chnum < count; chnum++) - printf("%c", isprint(uint8_t(buffer[chnum])) ? buffer[chnum] : '.'); - printf("\n"); - } - - // print compression stats if verbose - if (verbose) - { - uint32_t compression_types[10] = { 0 }; - for (uint32_t hunknum = 0; hunknum < input_chd.hunk_count(); hunknum++) - { - // get info on this hunk - chd_codec_type codec; - uint32_t compbytes; - std::error_condition err = input_chd.hunk_info(hunknum, codec, compbytes); - if (err) - report_error(1, "Error getting info on hunk %d: %s", hunknum, err.message()); - - // decode into our data - if (codec > CHD_CODEC_MINI) - for (int comptype = 0; comptype < 4; comptype++) - if (codec == input_chd.compression(comptype)) - { - codec = CHD_CODEC_MINI + 1 + comptype; - break; - } - if (codec >= std::size(compression_types)) - codec = std::size(compression_types) - 1; - - // count stats - compression_types[codec]++; - } - - // output the stats - printf("\n"); - printf(" Hunks Percent Name\n"); - printf("---------- ------- ------------------------------------\n"); - for (int comptype = 0; comptype < std::size(compression_types); comptype++) - if (compression_types[comptype] != 0) - { - // determine the name - const char *name = "Unknown"; - switch (comptype) - { - case CHD_CODEC_NONE: name = "Uncompressed"; break; - case CHD_CODEC_SELF: name = "Copy from self"; break; - case CHD_CODEC_PARENT: name = "Copy from parent"; break; - case CHD_CODEC_MINI: name = "Legacy 8-byte mini"; break; - default: - int index = comptype - 1 - CHD_CODEC_MINI; - if (index < 4) - name = chd_codec_list::codec_name(input_chd.compression(index)); - break; - } - - // output the stats - printf("%10s %5.1f%% %-40s\n", - big_int_string(compression_types[comptype]).c_str(), - 100.0 * double(compression_types[comptype]) / double(input_chd.hunk_count()), - name); - } - } -} - - -//------------------------------------------------- -// do_verify - validate the SHA1 on a CHD -//------------------------------------------------- - -static void do_verify(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // only makes sense for compressed CHDs with valid SHA1's - if (!input_chd.compressed()) - report_error(0, "No verification to be done; CHD is uncompressed"); - util::sha1_t raw_sha1 = (input_chd.version() <= 3) ? input_chd.sha1() : input_chd.raw_sha1(); - if (raw_sha1 == util::sha1_t::null) - report_error(0, "No verification to be done; CHD has no checksum"); - - // create an array to read into - std::vector buffer((TEMP_BUFFER_SIZE / input_chd.hunk_bytes()) * input_chd.hunk_bytes()); - - // read all the data and build up an SHA-1 - util::sha1_creator rawsha1; - for (uint64_t offset = 0; offset < input_chd.logical_bytes(); ) - { - progress(false, "Verifying, %.1f%% complete... \r", 100.0 * double(offset) / double(input_chd.logical_bytes())); - - // determine how much to read - uint32_t bytes_to_read = (std::min)(buffer.size(), input_chd.logical_bytes() - offset); - std::error_condition err = input_chd.read_bytes(offset, &buffer[0], bytes_to_read); - if (err) - report_error(1, "Error reading CHD file (%s): %s", *params.find(OPTION_INPUT)->second, err.message()); - - // add to the checksum - rawsha1.append(&buffer[0], bytes_to_read); - offset += bytes_to_read; - } - util::sha1_t computed_sha1 = rawsha1.finish(); - - // finish up - if (raw_sha1 != computed_sha1) - { - fprintf(stderr, "Error: Raw SHA1 in header = %s\n", raw_sha1.as_string().c_str()); - fprintf(stderr, " actual SHA1 = %s\n", computed_sha1.as_string().c_str()); - - // fix it if requested; this also fixes the overall one so we don't need to do any more - if (params.find(OPTION_FIX) != params.end()) - { - input_chd.set_raw_sha1(computed_sha1); - printf("SHA-1 updated to correct value in input CHD\n"); - } - } - else - { - printf("Raw SHA1 verification successful!\n"); - - // now include the metadata for >= v4 - if (input_chd.version() >= 4) - { - util::sha1_t computed_overall_sha1 = input_chd.compute_overall_sha1(computed_sha1); - if (input_chd.sha1() == computed_overall_sha1) - printf("Overall SHA1 verification successful!\n"); - else - { - fprintf(stderr, "Error: Overall SHA1 in header = %s\n", input_chd.sha1().as_string().c_str()); - fprintf(stderr, " actual SHA1 = %s\n", computed_overall_sha1.as_string().c_str()); - - // fix it if requested - if (params.find(OPTION_FIX) != params.end()) - { - input_chd.set_raw_sha1(computed_sha1); - printf("SHA-1 updated to correct value in input CHD\n"); - } - } - } - } -} - - -//------------------------------------------------- -// do_create_raw - create a new compressed raw -// image from a raw file -//------------------------------------------------- - -static void do_create_raw(parameters_map ¶ms) -{ - // process input file - util::core_file::ptr input_file; - auto input_file_str = params.find(OPTION_INPUT); - if (input_file_str != params.end()) - { - std::error_condition const filerr = util::core_file::open(*input_file_str->second, OPEN_FLAG_READ, input_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *input_file_str->second, filerr.message()); - } - - // process output CHD - chd_file output_parent; - std::string *output_chd_str = parse_output_chd_parameters(params, output_parent); - - // process hunk size - uint32_t hunk_size = output_parent.opened() ? output_parent.hunk_bytes() : 0; - parse_hunk_size(params, 1, hunk_size); - - // process unit size - uint32_t unit_size = output_parent.opened() ? output_parent.unit_bytes() : 0; - auto unit_size_str = params.find(OPTION_UNIT_SIZE); - if (unit_size_str != params.end()) - { - unit_size = parse_number(unit_size_str->second->c_str()); - if (hunk_size % unit_size != 0) - report_error(1, "Unit size is not an even divisor of the hunk size"); - } - - // process input start/end (needs to know hunk_size) - uint64_t input_start; - uint64_t input_end; - uint64_t input_size = 0; - input_file->length(input_size); // FIXME: check error return - parse_input_start_end(params, input_size, hunk_size, hunk_size, input_start, input_end); - - // process compression - chd_codec_type compression[4]; - memcpy(compression, s_default_raw_compression, sizeof(compression)); - parse_compression(params, compression); - - // process numprocessors - parse_numprocessors(params); - - // print some info - printf("Output CHD: %s\n", output_chd_str->c_str()); - if (output_parent.opened()) - printf("Parent CHD: %s\n", params.find(OPTION_OUTPUT_PARENT)->second->c_str()); - printf("Input file: %s\n", input_file_str->second->c_str()); - if (input_start != 0 || input_end != input_size) - { - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s\n", big_int_string(input_end - input_start).c_str()); - } - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("Hunk size: %s\n", big_int_string(hunk_size).c_str()); - printf("Logical size: %s\n", big_int_string(input_end - input_start).c_str()); - - // catch errors so we can close & delete the output file - try - { - // create the new CHD - std::unique_ptr chd(new chd_rawfile_compressor(*input_file, input_start, input_end)); - std::error_condition err; - if (output_parent.opened()) - err = chd->create(output_chd_str->c_str(), input_end - input_start, hunk_size, compression, output_parent); - else - err = chd->create(output_chd_str->c_str(), input_end - input_start, hunk_size, unit_size, compression); - if (err) - report_error(1, "Error creating CHD file (%s): %s", output_chd_str, err.message()); - - // if we have a parent, copy forward all the metadata - if (output_parent.opened()) - chd->clone_all_metadata(output_parent); - - // compress it generically - compress_common(*chd); - } - catch (...) - { - // delete the output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - osd_file::remove(*output_chd_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_create_hd - create a new compressed hard -// disk image from a raw file -//------------------------------------------------- - -static void do_create_hd(parameters_map ¶ms) -{ - // process input file - util::core_file::ptr input_file; - auto input_file_str = params.find(OPTION_INPUT); - if (input_file_str != params.end()) - { - std::error_condition const filerr = util::core_file::open(*input_file_str->second, OPEN_FLAG_READ, input_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *input_file_str->second, filerr.message()); - } - - // process output CHD - chd_file output_parent; - std::string *output_chd_str = parse_output_chd_parameters(params, output_parent); - - // process sectorsize - uint32_t sector_size = output_parent.opened() ? output_parent.unit_bytes() : IDE_SECTOR_SIZE; - auto sectorsize_str = params.find(OPTION_SECTOR_SIZE); - if (sectorsize_str != params.end()) - { - if (output_parent.opened()) - report_error(1, "Sector size does not apply when creating a diff from the parent"); - sector_size = parse_number(sectorsize_str->second->c_str()); - } - - // process hunk size (needs to know sector_size) - uint32_t hunk_size = output_parent.opened() ? output_parent.hunk_bytes() : std::max((4096 / sector_size) * sector_size, sector_size); - parse_hunk_size(params, sector_size, hunk_size); - - // process input start/end (needs to know hunk_size) - uint64_t filesize = 0; - uint64_t input_start = 0; - uint64_t input_end = 0; - if (input_file) - { - uint64_t input_size = 0; - input_file->length(input_size); // FIXME: check error return - parse_input_start_end(params, input_size, hunk_size, hunk_size, input_start, input_end); - filesize = input_end - input_start; - } - else - { - auto size_str = params.find(OPTION_SIZE); - if (size_str != params.end()) - { - if (sscanf(size_str->second->c_str(), "%" I64FMT"d", &filesize) != 1) - report_error(1, "Invalid size string"); - } - } - - // process compression - chd_codec_type compression[4]; - memcpy(compression, s_default_hd_compression, sizeof(compression)); - if (!input_file) - compression[0] = compression[1] = compression[2] = compression[3] = CHD_CODEC_NONE; - parse_compression(params, compression); - if (!input_file && compression[0] != CHD_CODEC_NONE) - report_error(1, "Blank hard disks must be uncompressed"); - - // process numprocessors - parse_numprocessors(params); - - // process chs - uint32_t cylinders = 0; - uint32_t heads = 0; - uint32_t sectors = 0; - auto chs_str = params.find(OPTION_CHS); - if (chs_str != params.end()) - { - if (output_parent.opened()) - report_error(1, "CHS does not apply when creating a diff from the parent"); - if (sscanf(chs_str->second->c_str(), "%d,%d,%d", &cylinders, &heads, §ors) != 3) - report_error(1, "Invalid CHS string; must be of the form ,,"); - } - - // process ident - std::vector identdata; - if (output_parent.opened()) - output_parent.read_metadata(HARD_DISK_IDENT_METADATA_TAG, 0, identdata); - auto ident_str = params.find(OPTION_IDENT); - if (ident_str != params.end()) - { - // load the file - std::error_condition const filerr = util::core_file::load(*ident_str->second, identdata); - if (filerr) - report_error(1, "Error reading ident file (%s): %s", *ident_str->second, filerr.message()); - - // must be at least 14 bytes; extract CHS data from there - if (identdata.size() < 14) - report_error(1, "Ident file '%s' is invalid (too short)", *ident_str->second); - cylinders = (identdata[3] << 8) | identdata[2]; - heads = (identdata[7] << 8) | identdata[6]; - sectors = (identdata[13] << 8) | identdata[12]; - - // ignore CHS for > 8GB drives - if (cylinders * heads * sectors >= 16514064) - cylinders = 0; - } - - // process template - auto template_str = params.find(OPTION_TEMPLATE); - if (template_str != params.end()) - { - uint32_t id = parse_number(template_str->second->c_str()); - - if (id >= std::size(s_hd_templates)) - report_error(1, "Template '%d' is invalid\n", id); - - cylinders = s_hd_templates[id].cylinders; - heads = s_hd_templates[id].heads; - sectors = s_hd_templates[id].sectors; - sector_size = s_hd_templates[id].sector_size; - - printf("Template: %s %s\n", s_hd_templates[id].manufacturer, s_hd_templates[id].model); - } - - // extract geometry from the parent if we have one - if (output_parent.opened() && cylinders == 0) - { - std::string metadata; - if (output_parent.read_metadata(HARD_DISK_METADATA_TAG, 0, metadata)) - report_error(1, "Unable to find hard disk metadata in parent CHD"); - if (sscanf(metadata.c_str(), HARD_DISK_METADATA_FORMAT, &cylinders, &heads, §ors, §or_size) != 4) - report_error(1, "Error parsing hard disk metadata in parent CHD"); - } - - // validate the size - if (filesize % sector_size != 0) - report_error(1, "Data size is not divisible by sector size %d", sector_size); - - // if no CHS values, try to guess them - if (cylinders == 0) - { - if (!input_file && filesize == 0) - report_error(1, "Blank hard drives must specify either a length or a set of CHS values"); - guess_chs((input_file_str != params.end()) ? input_file_str->second : nullptr, filesize, sector_size, cylinders, heads, sectors, sector_size); - } - uint32_t totalsectors = cylinders * heads * sectors; - - // print some info - printf("Output CHD: %s\n", output_chd_str->c_str()); - if (output_parent.opened()) - printf("Parent CHD: %s\n", params.find(OPTION_OUTPUT_PARENT)->second->c_str()); - if (input_file) - { - uint64_t input_size = 0; - input_file->length(input_size); // FIXME: check error return - printf("Input file: %s\n", input_file_str->second->c_str()); - if (input_start != 0 || input_end != input_size) - { - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s\n", big_int_string(filesize).c_str()); - } - } - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("Cylinders: %d\n", cylinders); - printf("Heads: %d\n", heads); - printf("Sectors: %d\n", sectors); - printf("Bytes/sector: %d\n", sector_size); - printf("Sectors/hunk: %d\n", hunk_size / sector_size); - printf("Logical size: %s\n", big_int_string(uint64_t(totalsectors) * uint64_t(sector_size)).c_str()); - - // catch errors so we can close & delete the output file - try - { - // create the new hard drive - std::unique_ptr chd; - if (input_file) chd.reset(new chd_rawfile_compressor(*input_file, input_start, input_end)); - else chd.reset(new chd_zero_compressor(input_start, input_end)); - std::error_condition err; - if (output_parent.opened()) - err = chd->create(output_chd_str->c_str(), uint64_t(totalsectors) * uint64_t(sector_size), hunk_size, compression, output_parent); - else - err = chd->create(output_chd_str->c_str(), uint64_t(totalsectors) * uint64_t(sector_size), hunk_size, sector_size, compression); - if (err) - report_error(1, "Error creating CHD file (%s): %s", output_chd_str, err.message()); - - // add the standard hard disk metadata - std::string metadata = string_format(HARD_DISK_METADATA_FORMAT, cylinders, heads, sectors, sector_size); - err = chd->write_metadata(HARD_DISK_METADATA_TAG, 0, metadata); - if (err) - report_error(1, "Error adding hard disk metadata: %s", err.message()); - - // write the ident if present - if (!identdata.empty()) - { - err = chd->write_metadata(HARD_DISK_IDENT_METADATA_TAG, 0, identdata); - if (err) - report_error(1, "Error adding hard disk metadata: %s", err.message()); - } - - // compress it generically - if (input_file) - compress_common(*chd); - } - catch (...) - { - // delete the output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - osd_file::remove(*output_chd_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_create_cd - create a new compressed CD -// image from a raw file -//------------------------------------------------- - -static void do_create_cd(parameters_map ¶ms) -{ - // process input file - chdcd_track_input_info track_info; - cdrom_toc toc = { 0 }; - auto input_file_str = params.find(OPTION_INPUT); - if (input_file_str != params.end()) - { - std::error_condition err = chdcd_parse_toc(input_file_str->second->c_str(), toc, track_info); - if (err) - report_error(1, "Error parsing input file (%s: %s)\n", *input_file_str->second, err.message()); - } - - // process output CHD - chd_file output_parent; - std::string *output_chd_str = parse_output_chd_parameters(params, output_parent); - - // process hunk size - uint32_t hunk_size = output_parent.opened() ? output_parent.hunk_bytes() : CD_FRAMES_PER_HUNK * CD_FRAME_SIZE; - parse_hunk_size(params, CD_FRAME_SIZE, hunk_size); - - // process compression - chd_codec_type compression[4]; - memcpy(compression, s_default_cd_compression, sizeof(compression)); - parse_compression(params, compression); - - // process numprocessors - parse_numprocessors(params); - - // pad each track to a 4-frame boundary. cdrom.c will deal with this on the read side - uint32_t origtotalsectors = 0; - uint32_t totalsectors = 0; - for (int tracknum = 0; tracknum < toc.numtrks; tracknum++) - { - cdrom_track_info &trackinfo = toc.tracks[tracknum]; - int padded = (trackinfo.frames + CD_TRACK_PADDING - 1) / CD_TRACK_PADDING; - trackinfo.extraframes = padded * CD_TRACK_PADDING - trackinfo.frames; - origtotalsectors += trackinfo.frames; - totalsectors += trackinfo.frames + trackinfo.extraframes; - } - - // print some info - printf("Output CHD: %s\n", output_chd_str->c_str()); - if (output_parent.opened()) - printf("Parent CHD: %s\n", params.find(OPTION_OUTPUT_PARENT)->second->c_str()); - printf("Input file: %s\n", input_file_str->second->c_str()); - printf("Input tracks: %d\n", toc.numtrks); - printf("Input length: %s\n", msf_string_from_frames(origtotalsectors).c_str()); - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("Logical size: %s\n", big_int_string(uint64_t(totalsectors) * CD_FRAME_SIZE).c_str()); - - // catch errors so we can close & delete the output file - chd_cd_compressor *chd = nullptr; - try - { - // create the new CD - chd = new chd_cd_compressor(toc, track_info); - std::error_condition err; - if (output_parent.opened()) - err = chd->create(output_chd_str->c_str(), uint64_t(totalsectors) * uint64_t(CD_FRAME_SIZE), hunk_size, compression, output_parent); - else - err = chd->create(output_chd_str->c_str(), uint64_t(totalsectors) * uint64_t(CD_FRAME_SIZE), hunk_size, CD_FRAME_SIZE, compression); - if (err) - report_error(1, "Error creating CHD file (%s): %s", *output_chd_str, err.message()); - - // add the standard CD metadata; we do this even if we have a parent because it might be different - err = cdrom_write_metadata(chd, &toc); - if (err) - report_error(1, "Error adding CD metadata: %s", err.message()); - - // compress it generically - compress_common(*chd); - delete chd; - } - catch (...) - { - delete chd; - // delete the output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - osd_file::remove(*output_chd_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_create_ld - create a new A/V file from an -// input AVI file and metadata -//------------------------------------------------- - -static void do_create_ld(parameters_map ¶ms) -{ - // process input file - avi_file::ptr input_file; - auto input_file_str = params.find(OPTION_INPUT); - if (input_file_str != params.end()) - { - avi_file::error avierr = avi_file::open(*input_file_str->second, input_file); - if (avierr != avi_file::error::NONE) - report_error(1, "Error opening AVI file (%s): %s\n", *input_file_str->second, avi_file::error_string(avierr)); - } - const avi_file::movie_info &aviinfo = input_file->get_movie_info(); - - // process output CHD - chd_file output_parent; - std::string *output_chd_str = parse_output_chd_parameters(params, output_parent); - - // process input start/end - uint64_t input_start; - uint64_t input_end; - parse_input_start_end(params, aviinfo.video_numsamples, 0, 1, input_start, input_end); - - // determine parameters of the incoming video stream - avi_info info; - info.fps_times_1million = uint64_t(aviinfo.video_timescale) * 1000000 / aviinfo.video_sampletime; - info.width = aviinfo.video_width; - info.height = aviinfo.video_height; - info.interlaced = ((info.fps_times_1million / 1000000) <= 30) && (info.height % 2 == 0) && (info.height > 288); - info.channels = aviinfo.audio_channels; - info.rate = aviinfo.audio_samplerate; - - // adjust for interlacing - if (info.interlaced) - { - info.fps_times_1million *= 2; - info.height /= 2; - input_start *= 2; - input_end *= 2; - } - - // determine the number of bytes per frame - info.max_samples_per_frame = (uint64_t(info.rate) * 1000000 + info.fps_times_1million - 1) / info.fps_times_1million; - info.bytes_per_frame = avhuff_encoder::raw_data_size(info.width, info.height, info.channels, info.max_samples_per_frame); - - // process hunk size - uint32_t hunk_size = output_parent.opened() ? output_parent.hunk_bytes() : info.bytes_per_frame; - parse_hunk_size(params, info.bytes_per_frame, hunk_size); - - // process compression - chd_codec_type compression[4]; - memcpy(compression, s_default_ld_compression, sizeof(compression)); - parse_compression(params, compression); - // disable support for uncompressed ones until the extraction code can handle it - if (compression[0] == CHD_CODEC_NONE) - report_error(1, "Uncompressed is not supported"); - - // process numprocessors - parse_numprocessors(params); - - // print some info - printf("Output CHD: %s\n", output_chd_str->c_str()); - if (output_parent.opened()) - printf("Parent CHD: %s\n", params.find(OPTION_OUTPUT_PARENT)->second->c_str()); - printf("Input file: %s\n", input_file_str->second->c_str()); - if (input_start != 0 && input_end != aviinfo.video_numsamples) - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s (%02d:%02d:%02d)\n", big_int_string(input_end - input_start).c_str(), - uint32_t((uint64_t(input_end - input_start) * 1000000 / info.fps_times_1million / 60 / 60)), - uint32_t(((uint64_t(input_end - input_start) * 1000000 / info.fps_times_1million / 60) % 60)), - uint32_t(((uint64_t(input_end - input_start) * 1000000 / info.fps_times_1million) % 60))); - printf("Frame rate: %d.%06d\n", info.fps_times_1million / 1000000, info.fps_times_1million % 1000000); - printf("Frame size: %d x %d %s\n", info.width, info.height * (info.interlaced ? 2 : 1), info.interlaced ? "interlaced" : "non-interlaced"); - printf("Audio: %d channels at %d Hz\n", info.channels, info.rate); - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("Hunk size: %s\n", big_int_string(hunk_size).c_str()); - printf("Logical size: %s\n", big_int_string(uint64_t(input_end - input_start) * hunk_size).c_str()); - - // catch errors so we can close & delete the output file - chd_avi_compressor *chd = nullptr; - try - { - // create the new CHD - chd = new chd_avi_compressor(*input_file, info, input_start, input_end); - std::error_condition err; - if (output_parent.opened()) - err = chd->create(output_chd_str->c_str(), uint64_t(input_end - input_start) * hunk_size, hunk_size, compression, output_parent); - else - err = chd->create(output_chd_str->c_str(), uint64_t(input_end - input_start) * hunk_size, hunk_size, info.bytes_per_frame, compression); - if (err) - report_error(1, "Error creating CHD file (%s): %s", *output_chd_str, err.message()); - - // write the core A/V metadata - std::string metadata = string_format(AV_METADATA_FORMAT, info.fps_times_1million / 1000000, info.fps_times_1million % 1000000, info.width, info.height, info.interlaced, info.channels, info.rate); - err = chd->write_metadata(AV_METADATA_TAG, 0, metadata); - if (err) - report_error(1, "Error adding AV metadata: %s\n", err.message()); - - // create the compressor and then run it generically - compress_common(*chd); - - // write the final LD metadata - if (info.height == 524/2 || info.height == 624/2) - { - err = chd->write_metadata(AV_LD_METADATA_TAG, 0, chd->ldframedata(), 0); - if (err) - report_error(1, "Error adding AVLD metadata: %s\n", err.message()); - } - delete chd; - } - catch (...) - { - delete chd; - // delete the output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - osd_file::remove(*output_chd_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_copy - create a new CHD with data from -// another CHD -//------------------------------------------------- - -static void do_copy(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // parse out input start/end - uint64_t input_start; - uint64_t input_end; - parse_input_start_end(params, input_chd.logical_bytes(), input_chd.hunk_bytes(), input_chd.hunk_bytes(), input_start, input_end); - - // process output CHD - chd_file output_parent; - std::string *output_chd_str = parse_output_chd_parameters(params, output_parent); - - // process hunk size - uint32_t hunk_size = input_chd.hunk_bytes(); - parse_hunk_size(params, 1, hunk_size); - if (hunk_size % input_chd.hunk_bytes() != 0 && input_chd.hunk_bytes() % hunk_size != 0) - report_error(1, "Hunk size is not an even multiple or divisor of input hunk size"); - - // process compression; we default to our current preferences using metadata to pick the type - chd_codec_type compression[4]; - { - std::vector metadata; - if (!input_chd.read_metadata(HARD_DISK_METADATA_TAG, 0, metadata)) - memcpy(compression, s_default_hd_compression, sizeof(compression)); - else if (!input_chd.read_metadata(AV_METADATA_TAG, 0, metadata)) - memcpy(compression, s_default_ld_compression, sizeof(compression)); - else if (!input_chd.read_metadata(CDROM_OLD_METADATA_TAG, 0, metadata) || - !input_chd.read_metadata(CDROM_TRACK_METADATA_TAG, 0, metadata) || - !input_chd.read_metadata(CDROM_TRACK_METADATA2_TAG, 0, metadata) || - !input_chd.read_metadata(GDROM_OLD_METADATA_TAG, 0, metadata) || - !input_chd.read_metadata(GDROM_TRACK_METADATA_TAG, 0, metadata)) - memcpy(compression, s_default_cd_compression, sizeof(compression)); - else - memcpy(compression, s_default_raw_compression, sizeof(compression)); - } - parse_compression(params, compression); - - // process numprocessors - parse_numprocessors(params); - - // print some info - printf("Output CHD: %s\n", output_chd_str->c_str()); - if (output_parent.opened()) - printf("Parent CHD: %s\n", params.find(OPTION_OUTPUT_PARENT)->second->c_str()); - printf("Input CHD: %s\n", params.find(OPTION_INPUT)->second->c_str()); - if (input_start != 0 || input_end != input_chd.logical_bytes()) - { - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s\n", big_int_string(input_end - input_start).c_str()); - } - printf("Compression: %s\n", compression_string(compression).c_str()); - printf("Hunk size: %s\n", big_int_string(hunk_size).c_str()); - printf("Logical size: %s\n", big_int_string(input_end - input_start).c_str()); - - // catch errors so we can close & delete the output file - chd_chdfile_compressor *chd = nullptr; - try - { - // create the new CHD - chd = new chd_chdfile_compressor(input_chd, input_start, input_end); - std::error_condition err; - if (output_parent.opened()) - err = chd->create(output_chd_str->c_str(), input_end - input_start, hunk_size, compression, output_parent); - else - err = chd->create(output_chd_str->c_str(), input_end - input_start, hunk_size, input_chd.unit_bytes(), compression); - if (err) - report_error(1, "Error creating CHD file (%s): %s", *output_chd_str, err.message()); - - // clone all the metadata, upgrading where appropriate - std::vector metadata; - chd_metadata_tag metatag; - uint8_t metaflags; - uint32_t index = 0; - bool redo_cd = false; - bool cdda_swap = false; - for (err = input_chd.read_metadata(CHDMETATAG_WILDCARD, index++, metadata, metatag, metaflags); !err; err = input_chd.read_metadata(CHDMETATAG_WILDCARD, index++, metadata, metatag, metaflags)) - { - // if this is an old CD-CHD tag, note that we want to re-do it - if (metatag == CDROM_OLD_METADATA_TAG || metatag == CDROM_TRACK_METADATA_TAG) - { - redo_cd = true; - continue; - } - // if this is old GD tag we want re-do it and swap CDDA - if (metatag == GDROM_OLD_METADATA_TAG) - { - cdda_swap = redo_cd = true; - continue; - } - - // otherwise, clone it - err = chd->write_metadata(metatag, CHDMETAINDEX_APPEND, metadata, metaflags); - if (err) - report_error(1, "Error writing cloned metadata: %s", err.message()); - } - - // if we need to re-do the CD metadata, do it now - if (redo_cd) - { - cdrom_file *cdrom = cdrom_open(&input_chd); - if (cdrom == nullptr) - report_error(1, "Error upgrading CD metadata"); - const cdrom_toc *toc = cdrom_get_toc(cdrom); - err = cdrom_write_metadata(chd, toc); - if (err) - report_error(1, "Error writing upgraded CD metadata: %s", err.message()); - if (cdda_swap) - chd->m_toc = toc; - } - - // compress it generically - compress_common(*chd); - delete chd; - } - catch (...) - { - delete chd; - // delete the output file - auto output_chd_str = params.find(OPTION_OUTPUT); - if (output_chd_str != params.end()) - osd_file::remove(*output_chd_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_extract_raw - extract a raw file from a -// CHD image -//------------------------------------------------- - -static void do_extract_raw(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // parse out input start/end - uint64_t input_start; - uint64_t input_end; - parse_input_start_end(params, input_chd.logical_bytes(), input_chd.hunk_bytes(), input_chd.hunk_bytes(), input_start, input_end); - - // verify output file doesn't exist - auto output_file_str = params.find(OPTION_OUTPUT); - if (output_file_str != params.end()) - check_existing_output_file(params, output_file_str->second->c_str()); - - // print some info - printf("Output File: %s\n", output_file_str->second->c_str()); - printf("Input CHD: %s\n", params.find(OPTION_INPUT)->second->c_str()); - if (input_start != 0 || input_end != input_chd.logical_bytes()) - { - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s\n", big_int_string(input_end - input_start).c_str()); - } - - // catch errors so we can close & delete the output file - util::core_file::ptr output_file; - try - { - // process output file - std::error_condition const filerr = util::core_file::open(*output_file_str->second, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, output_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *output_file_str->second, filerr.message()); - - // copy all data - std::vector buffer((TEMP_BUFFER_SIZE / input_chd.hunk_bytes()) * input_chd.hunk_bytes()); - for (uint64_t offset = input_start; offset < input_end; ) - { - progress(false, "Extracting, %.1f%% complete... \r", 100.0 * double(offset - input_start) / double(input_end - input_start)); - - // determine how much to read - uint32_t bytes_to_read = (std::min)(buffer.size(), input_end - offset); - std::error_condition err = input_chd.read_bytes(offset, &buffer[0], bytes_to_read); - if (err) - report_error(1, "Error reading CHD file (%s): %s", *params.find(OPTION_INPUT)->second, err.message()); - - // write to the output - size_t count; - std::error_condition const writerr = output_file->write(&buffer[0], bytes_to_read, count); - if (writerr || (count != bytes_to_read)) - report_error(1, "Error writing to file; check disk space (%s)", *output_file_str->second); - - // advance - offset += bytes_to_read; - } - - // finish up - output_file.reset(); - printf("Extraction complete \n"); - } - catch (...) - { - // delete the output file - if (output_file != nullptr) - { - output_file.reset(); - osd_file::remove(*output_file_str->second); - } - throw; - } -} - - -//------------------------------------------------- -// do_extract_cd - extract a CD file from a -// CHD image -//------------------------------------------------- - -static void do_extract_cd(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // further process input file - cdrom_file *cdrom = cdrom_open(&input_chd); - if (cdrom == nullptr) - report_error(1, "Unable to recognize CHD file as a CD"); - const cdrom_toc *toc = cdrom_get_toc(cdrom); - - // verify output file doesn't exist - auto output_file_str = params.find(OPTION_OUTPUT); - if (output_file_str != params.end()) - check_existing_output_file(params, output_file_str->second->c_str()); - - // verify output BIN file doesn't exist - auto output_bin_file_fnd = params.find(OPTION_OUTPUT_BIN); - std::string default_name(*output_file_str->second); - int chop = default_name.find_last_of('.'); - if (chop != -1) - default_name.erase(chop, default_name.size()); - char basename[128]; - strncpy(basename, default_name.c_str(), 127); - default_name.append(".bin"); - std::string *output_bin_file_str; - if (output_bin_file_fnd == params.end()) - output_bin_file_str = &default_name; - else - output_bin_file_str = output_bin_file_fnd->second; - - check_existing_output_file(params, output_bin_file_str->c_str()); - - // print some info - printf("Output TOC: %s\n", output_file_str->second->c_str()); - printf("Output Data: %s\n", output_bin_file_str->c_str()); - printf("Input CHD: %s\n", params.find(OPTION_INPUT)->second->c_str()); - - // catch errors so we can close & delete the output file - util::core_file::ptr output_bin_file; - util::core_file::ptr output_toc_file; - try - { - int mode = MODE_NORMAL; - - if (output_file_str->second->find(".cue") != -1) - { - mode = MODE_CUEBIN; - } - else if (output_file_str->second->find(".gdi") != -1) - { - mode = MODE_GDI; - } - - // process output file - std::error_condition filerr = util::core_file::open(*output_file_str->second, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_NO_BOM, output_toc_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *output_file_str->second, filerr.message()); - - // process output BIN file - if (mode != MODE_GDI) - { - filerr = util::core_file::open(*output_bin_file_str, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, output_bin_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *output_bin_file_str, filerr.message()); - } - - // determine total frames - uint64_t total_bytes = 0; - for (int tracknum = 0; tracknum < toc->numtrks; tracknum++) - total_bytes += toc->tracks[tracknum].frames * (toc->tracks[tracknum].datasize + toc->tracks[tracknum].subsize); - - // GDI must start with the # of tracks - if (mode == MODE_GDI) - { - output_toc_file->printf("%d\n", toc->numtrks); - } - - // iterate over tracks and copy all data - uint64_t outputoffs = 0; - uint32_t discoffs = 0; - std::vector buffer; - for (int tracknum = 0; tracknum < toc->numtrks; tracknum++) - { - std::string trackbin_name(basename); - - if (mode == MODE_GDI) - { - char temp[11]; - sprintf(temp, "%02d", tracknum+1); - trackbin_name.append(temp); - if (toc->tracks[tracknum].trktype == CD_TRACK_AUDIO) - trackbin_name.append(".raw"); - else - trackbin_name.append(".bin"); - - output_bin_file.reset(); - - filerr = util::core_file::open(trackbin_name, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, output_bin_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", trackbin_name, filerr.message()); - - outputoffs = 0; - } - - // output the metadata about the track to the TOC file - const cdrom_track_info &trackinfo = toc->tracks[tracknum]; - if (mode == MODE_GDI) - { - output_track_metadata(mode, *output_toc_file, tracknum, trackinfo, std::string(core_filename_extract_base(trackbin_name)), discoffs, outputoffs); - } - else - { - output_track_metadata(mode, *output_toc_file, tracknum, trackinfo, std::string(core_filename_extract_base(*output_bin_file_str)), discoffs, outputoffs); - } - - // If this is bin/cue output and the CHD contains subdata, warn the user and don't include - // the subdata size in the buffer calculation. - uint32_t output_frame_size = trackinfo.datasize + ((trackinfo.subtype != CD_SUB_NONE) ? trackinfo.subsize : 0); - if (trackinfo.subtype != CD_SUB_NONE && ((mode == MODE_CUEBIN) || (mode == MODE_GDI))) - { - printf("Warning: Track %d has subcode data. bin/cue and gdi formats cannot contain subcode data and it will be omitted.\n", tracknum+1); - printf(" : This may affect usage of the output image. Use bin/toc output to keep all data.\n"); - output_frame_size = trackinfo.datasize; - } - - // resize the buffer for the track - buffer.resize((TEMP_BUFFER_SIZE / output_frame_size) * output_frame_size); - - // now read and output the actual data - uint32_t bufferoffs = 0; - uint32_t actualframes = trackinfo.frames - trackinfo.padframes; - for (uint32_t frame = 0; frame < actualframes; frame++) - { - progress(false, "Extracting, %.1f%% complete... \r", 100.0 * double(outputoffs) / double(total_bytes)); - - // read the data - cdrom_read_data(cdrom, cdrom_get_track_start_phys(cdrom, tracknum) + frame, &buffer[bufferoffs], trackinfo.trktype, true); - - // for CDRWin and GDI audio tracks must be reversed - // in the case of GDI and CHD version < 5 we assuming source CHD image is GDROM so audio tracks is already reversed - if (((mode == MODE_GDI && input_chd.version() > 4) || (mode == MODE_CUEBIN)) && (trackinfo.trktype == CD_TRACK_AUDIO)) - for (int swapindex = 0; swapindex < trackinfo.datasize; swapindex += 2) - { - uint8_t swaptemp = buffer[bufferoffs + swapindex]; - buffer[bufferoffs + swapindex] = buffer[bufferoffs + swapindex + 1]; - buffer[bufferoffs + swapindex + 1] = swaptemp; - } - bufferoffs += trackinfo.datasize; - discoffs++; - - // read the subcode data - if (trackinfo.subtype != CD_SUB_NONE && (mode == MODE_NORMAL)) - { - cdrom_read_subcode(cdrom, cdrom_get_track_start_phys(cdrom, tracknum) + frame, &buffer[bufferoffs], true); - bufferoffs += trackinfo.subsize; - } - - // write it out if we need to - if (bufferoffs == buffer.size() || frame == actualframes - 1) - { - output_bin_file->seek(outputoffs, SEEK_SET); - size_t byteswritten; - std::error_condition const writerr = output_bin_file->write(&buffer[0], bufferoffs, byteswritten); - if (writerr || (byteswritten != bufferoffs)) - report_error(1, "Error writing frame %d to file (%s): %s\n", frame, *output_file_str->second, "Write error"); - outputoffs += bufferoffs; - bufferoffs = 0; - } - } - - discoffs += trackinfo.padframes; - } - - // finish up - output_bin_file.reset(); - output_toc_file.reset(); - printf("Extraction complete \n"); - } - catch (...) - { - // delete the output files - output_bin_file.reset(); - output_toc_file.reset(); - osd_file::remove(*output_bin_file_str); - osd_file::remove(*output_file_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_extract_ld - extract an AVI file from a -// CHD image -//------------------------------------------------- - -static void do_extract_ld(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // read core metadata - std::string metadata; - std::error_condition err = input_chd.read_metadata(AV_METADATA_TAG, 0, metadata); - if (err) - report_error(1, "Unable to find A/V metadata in the input CHD"); - - // parse the metadata - uint32_t fps_times_1million; - uint32_t max_samples_per_frame; - uint32_t frame_bytes; - int width; - int height; - int interlaced; - int channels; - int rate; - { - int fps; - int fpsfrac; - if (sscanf(metadata.c_str(), AV_METADATA_FORMAT, &fps, &fpsfrac, &width, &height, &interlaced, &channels, &rate) != 7) - report_error(1, "Improperly formatted A/V metadata found"); - fps_times_1million = fps * 1000000 + fpsfrac; - } - uint8_t interlace_factor = interlaced ? 2 : 1; - - // determine key parameters and validate - max_samples_per_frame = (uint64_t(rate) * 1000000 + fps_times_1million - 1) / fps_times_1million; - frame_bytes = avhuff_encoder::raw_data_size(width, height, channels, max_samples_per_frame); - if (frame_bytes != input_chd.hunk_bytes()) - report_error(1, "Frame size does not match hunk size for this CHD"); - - // parse out input start/end - uint64_t input_start; - uint64_t input_end; - parse_input_start_end(params, input_chd.hunk_count() / interlace_factor, 0, 1, input_start, input_end); - input_start *= interlace_factor; - input_end *= interlace_factor; - - // build up the movie info - avi_file::movie_info info; - info.video_format = FORMAT_YUY2; - info.video_timescale = fps_times_1million / interlace_factor; - info.video_sampletime = 1000000; - info.video_width = width; - info.video_height = height * interlace_factor; - info.video_depth = 16; - info.audio_format = 0; - info.audio_timescale = rate; - info.audio_sampletime = 1; - info.audio_channels = channels; - info.audio_samplebits = 16; - info.audio_samplerate = rate; - - // verify output file doesn't exist - auto output_file_str = params.find(OPTION_OUTPUT); - if (output_file_str != params.end()) - check_existing_output_file(params, output_file_str->second->c_str()); - - // print some info - printf("Output File: %s\n", output_file_str->second->c_str()); - printf("Input CHD: %s\n", params.find(OPTION_INPUT)->second->c_str()); - if (input_start != 0 || input_end != input_chd.hunk_count()) - { - printf("Input start: %s\n", big_int_string(input_start).c_str()); - printf("Input length: %s\n", big_int_string(input_end - input_start).c_str()); - } - - // catch errors so we can close & delete the output file - avi_file::ptr output_file; - try - { - // process output file - avi_file::error avierr = avi_file::create(*output_file_str->second, info, output_file); - if (avierr != avi_file::error::NONE) - report_error(1, "Unable to open file (%s)", *output_file_str->second); - - // create the codec configuration - avhuff_decoder::config avconfig; - bitmap_yuy16 avvideo; - std::vector audio_data[16]; - uint32_t actsamples; - avconfig.video = &avvideo; - avconfig.maxsamples = max_samples_per_frame; - avconfig.actsamples = &actsamples; - for (int chnum = 0; chnum < std::size(audio_data); chnum++) - { - audio_data[chnum].resize(std::max(1U,max_samples_per_frame)); - avconfig.audio[chnum] = &audio_data[chnum][0]; - } - - // iterate over frames - bitmap_yuy16 fullbitmap(width, height * interlace_factor); - for (uint64_t framenum = input_start; framenum < input_end; framenum++) - { - progress(framenum == input_start, "Extracting, %.1f%% complete... \r", 100.0 * double(framenum - input_start) / double(input_end - input_start)); - - // set up the fake bitmap for this frame - avvideo.wrap(&fullbitmap.pix(framenum % interlace_factor), fullbitmap.width(), fullbitmap.height() / interlace_factor, fullbitmap.rowpixels() * interlace_factor); - input_chd.codec_configure(CHD_CODEC_AVHUFF, AVHUFF_CODEC_DECOMPRESS_CONFIG, &avconfig); - - // read the hunk into the buffers - std::error_condition err = input_chd.read_hunk(framenum, nullptr); - if (err) - { - uint64_t filepos = ~uint64_t(0); - input_chd.file().tell(filepos); - report_error(1, "Error reading hunk %d at offset %d from CHD file (%s): %s\n", framenum, filepos, *params.find(OPTION_INPUT)->second, err.message()); - } - - // write audio - for (int chnum = 0; chnum < channels; chnum++) - { - avi_file::error avierr = output_file->append_sound_samples(chnum, avconfig.audio[chnum], actsamples, 0); - if (avierr != avi_file::error::NONE) - report_error(1, "Error writing samples for hunk %d to file (%s): %s\n", framenum, *output_file_str->second, avi_file::error_string(avierr)); - } - - // write video - if ((framenum + 1) % interlace_factor == 0) - { - avi_file::error avierr = output_file->append_video_frame(fullbitmap); - if (avierr != avi_file::error::NONE) - report_error(1, "Error writing video for hunk %d to file (%s): %s\n", framenum, *output_file_str->second, avi_file::error_string(avierr)); - } - } - - // close and return - output_file.reset(); - printf("Extraction complete \n"); - } - catch (...) - { - // delete the output file - output_file.reset(); - osd_file::remove(*output_file_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_add_metadata - add metadata to a CHD from a -// file -//------------------------------------------------- - -static void do_add_metadata(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd, true); - - // process tag - chd_metadata_tag tag = CHD_MAKE_TAG('?','?','?','?'); - auto tag_str = params.find(OPTION_TAG); - if (tag_str != params.end()) - { - tag_str->second->append(" "); - tag = CHD_MAKE_TAG((*tag_str->second)[0], (*tag_str->second)[1], (*tag_str->second)[2], (*tag_str->second)[3]); - } - - // process index - uint32_t index = 0; - auto index_str = params.find(OPTION_INDEX); - if (index_str != params.end()) - index = atoi(index_str->second->c_str()); - - // process text input - auto text_str = params.find(OPTION_VALUE_TEXT); - std::string text; - if (text_str != params.end()) - { - text = *text_str->second; - if (text[0] == '"' && text[text.length() - 1] == '"') - *text_str->second = text.substr(1, text.length() - 2); - } - - // process file input - auto file_str = params.find(OPTION_VALUE_FILE); - std::vector file; - if (file_str != params.end()) - { - std::error_condition const filerr = util::core_file::load(*file_str->second, file); - if (filerr) - report_error(1, "Error reading metadata file (%s): %s", *file_str->second, filerr.message()); - } - - // make sure we have one or the other - if (text_str == params.end() && file_str == params.end()) - report_error(1, "Error: missing either --valuetext/-vt or --valuefile/-vf parameters"); - if (text_str != params.end() && file_str != params.end()) - report_error(1, "Error: both --valuetext/-vt or --valuefile/-vf parameters specified; only one permitted"); - - // process no checksum - uint8_t flags = CHD_MDFLAGS_CHECKSUM; - if (params.find(OPTION_NO_CHECKSUM) != params.end()) - flags &= ~CHD_MDFLAGS_CHECKSUM; - - // print some info - printf("Input file: %s\n", params.find(OPTION_INPUT)->second->c_str()); - printf("Tag: %c%c%c%c\n", (tag >> 24) & 0xff, (tag >> 16) & 0xff, (tag >> 8) & 0xff, tag & 0xff); - printf("Index: %d\n", index); - if (text_str != params.end()) - printf("Text: %s\n", text.c_str()); - else - printf("Data: %s (%d bytes)\n", file_str->second->c_str(), int(file.size())); - - // write the metadata - std::error_condition err; - if (text_str != params.end()) - err = input_chd.write_metadata(tag, index, text, flags); - else - err = input_chd.write_metadata(tag, index, file, flags); - if (err) - report_error(1, "Error adding metadata: %s", err.message()); - else - printf("Metadata added\n"); -} - - -//------------------------------------------------- -// do_del_metadata - remove metadata from a CHD -//------------------------------------------------- - -static void do_del_metadata(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd, true); - - // process tag - chd_metadata_tag tag = CHD_MAKE_TAG('?','?','?','?'); - auto tag_str = params.find(OPTION_TAG); - if (tag_str != params.end()) - { - tag_str->second->append(" "); - tag = CHD_MAKE_TAG((*tag_str->second)[0], (*tag_str->second)[1], (*tag_str->second)[2], (*tag_str->second)[3]); - } - - // process index - uint32_t index = 0; - auto index_str = params.find(OPTION_INDEX); - if (index_str != params.end()) - index = atoi(index_str->second->c_str()); - - // print some info - printf("Input file: %s\n", params.find(OPTION_INPUT)->second->c_str()); - printf("Tag: %c%c%c%c\n", (tag >> 24) & 0xff, (tag >> 16) & 0xff, (tag >> 8) & 0xff, tag & 0xff); - printf("Index: %d\n", index); - - // write the metadata - std::error_condition err = input_chd.delete_metadata(tag, index); - if (err) - report_error(1, "Error removing metadata: %s", err.message()); - else - printf("Metadata removed\n"); -} - - -//------------------------------------------------- -// do_dump_metadata - dump metadata from a CHD -//------------------------------------------------- - -static void do_dump_metadata(parameters_map ¶ms) -{ - // parse out input files - chd_file input_parent_chd; - chd_file input_chd; - parse_input_chd_parameters(params, input_chd, input_parent_chd); - - // verify output file doesn't exist - auto output_file_str = params.find(OPTION_OUTPUT); - if (output_file_str != params.end()) - check_existing_output_file(params, output_file_str->second->c_str()); - - // process tag - chd_metadata_tag tag = CHD_MAKE_TAG('?','?','?','?'); - auto tag_str = params.find(OPTION_TAG); - if (tag_str != params.end()) - { - tag_str->second->append(" "); - tag = CHD_MAKE_TAG((*tag_str->second)[0], (*tag_str->second)[1], (*tag_str->second)[2], (*tag_str->second)[3]); - } - - // process index - uint32_t index = 0; - auto index_str = params.find(OPTION_INDEX); - if (index_str != params.end()) - index = atoi(index_str->second->c_str()); - - // write the metadata - std::vector buffer; - std::error_condition err = input_chd.read_metadata(tag, index, buffer); - if (err) - report_error(1, "Error reading metadata: %s", err.message()); - - // catch errors so we can close & delete the output file - util::core_file::ptr output_file; - try - { - // create the file - if (output_file_str != params.end()) - { - std::error_condition filerr; - - filerr = util::core_file::open(*output_file_str->second, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, output_file); - if (filerr) - report_error(1, "Unable to open file (%s): %s", *output_file_str->second, filerr.message()); - - // output the metadata - size_t count; - filerr = output_file->write(&buffer[0], buffer.size(), count); - if (!filerr) - filerr = output_file->flush(); - if (filerr || (count != buffer.size())) - report_error(1, "Error writing file (%s)", *output_file_str->second); - output_file.reset(); - - // provide some feedback - printf("File (%s) written, %s bytes\n", output_file_str->second->c_str(), big_int_string(buffer.size()).c_str()); - } - else - { - // flush to stdout - // FIXME: check for errors - fwrite(&buffer[0], 1, buffer.size(), stdout); - fflush(stdout); - } - } - catch (...) - { - // delete the output file - output_file.reset(); - osd_file::remove(*output_file_str->second); - throw; - } -} - - -//------------------------------------------------- -// do_list_templates - list hard drive templates -//------------------------------------------------- - -static void do_list_templates(parameters_map ¶ms) -{ - printf("\n"); - printf("ID Manufacturer Model Cylinders Heads Sectors Sector Size Total Size\n"); - printf("------------------------------------------------------------------------------------\n"); - - for (int id = 0; id < std::size(s_hd_templates); id++) - { - printf("%2d %-13s %-15s %9d %5d %7d %11d %7d MB\n", - id, - s_hd_templates[id].manufacturer, - s_hd_templates[id].model, - s_hd_templates[id].cylinders, - s_hd_templates[id].heads, - s_hd_templates[id].sectors, - s_hd_templates[id].sector_size, - (s_hd_templates[id].cylinders * s_hd_templates[id].heads * s_hd_templates[id].sectors * s_hd_templates[id].sector_size) / 1024 / 1024 - ); - } -} - - -//------------------------------------------------- -// main - entry point -//------------------------------------------------- - -int CLIB_DECL main(int argc, char *argv[]) -{ - const std::vector args = osd_get_command_line(argc, argv); - - // print the header - extern const char build_version[]; - printf("chdman - MAME Compressed Hunks of Data (CHD) manager %s\n", build_version); - - // handle help specially - if (args.size() < 2) - return print_help(args[0]); - int argnum = 1; - std::string command = args[argnum++]; - bool help(command == COMMAND_HELP); - if (help) - { - if (args.size() <= 2) - return print_help(args[0]); - command = args[argnum++]; - } - - // iterate over commands to find our match - for (auto & s_command : s_commands) - if (command == s_command.name) - { - const command_description &desc = s_command; - - // print help if that was requested - if (help) - return print_help(args[0], desc); - - // otherwise, verify the parameters - parameters_map parameters; - while (argnum < args.size()) - { - // should be an option name - const std::string &arg = args[argnum++]; - if (arg.empty() || (arg[0] != '-')) - return print_help(args[0], desc, "Expected option, not parameter"); - - // iterate over valid options - int valid; - for (valid = 0; valid < std::size(desc.valid_options); valid++) - { - // reduce to the option name - const char *validname = desc.valid_options[valid]; - if (validname == nullptr) - break; - if (*validname == REQUIRED[0]) - validname++; - - // find the matching option description - int optnum; - for (optnum = 0; optnum < std::size(s_options); optnum++) - if (strcmp(s_options[optnum].name, validname) == 0) - break; - assert(optnum != std::size(s_options)); - - // do we match? - const option_description &odesc = s_options[optnum]; - if ((arg[1] == '-' && strcmp(odesc.name, &arg[2]) == 0) || - (arg[1] != '-' && odesc.shortname != nullptr && strcmp(odesc.shortname, &arg[1]) == 0)) - { - // if we need a parameter, consume it - const char *param = ""; - if (odesc.parameter) - { - if (argnum >= args.size() || (!args[argnum].empty() && args[argnum][0] == '-')) - return print_help(args[0], desc, "Option is missing parameter"); - param = args[argnum++].c_str(); - } - - // add to the map - if (!parameters.insert(std::make_pair(odesc.name, new std::string(param))).second) - return print_help(args[0], desc, "Multiple parameters of the same type specified"); - break; - } - } - - // if not valid, error - if (valid == std::size(desc.valid_options)) - return print_help(args[0], desc, "Option not valid for this command"); - } - - // make sure we got all our required parameters - for (int valid = 0; valid < std::size(desc.valid_options); valid++) - { - const char *validname = desc.valid_options[valid]; - if (validname == nullptr) - break; - if (*validname == REQUIRED[0] && parameters.find(++validname) == parameters.end()) - return print_help(args[0], desc, "Required parameters missing"); - } - - // all clear, run the command - try - { - (*s_command.handler)(parameters); - return 0; - } - catch (std::error_condition const &err) - { - fprintf(stderr, "CHD error occurred (main): %s\n", err.message().c_str()); - return 1; - } - catch (fatal_error &err) - { - fprintf(stderr, "Fatal error occurred: %d\n", err.error()); - return err.error(); - } - catch (std::exception& ex) - { - fprintf(stderr, "Unhandled exception: %s\n", ex.what()); - return 1; - } - } - - // print generic help if nothing found - return print_help(args[0]); -} diff --git a/src/osd/modules/lib/osdlib_unix_mod.cpp b/src/osd/modules/lib/osdlib_unix_mod.cpp deleted file mode 100644 index 19f7af2..0000000 --- a/src/osd/modules/lib/osdlib_unix_mod.cpp +++ /dev/null @@ -1,235 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Olivier Galibert, R. Belmont -//============================================================ -// -// sdlos_*.c - OS specific low level code -// -// SDLMAME by Olivier Galibert and R. Belmont -// -//============================================================ - -// MAME headers -#include "osdcore.h" -#include "osdlib.h" - -//#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - - -//============================================================ -// osd_getenv -//============================================================ - -const char *osd_getenv(const char *name) -{ - return getenv(name); -} - -//============================================================ -// osd_setenv -//============================================================ - -int osd_setenv(const char *name, const char *value, int overwrite) -{ - return setenv(name, value, overwrite); -} - -//============================================================ -// osd_process_kill -//============================================================ - -void osd_process_kill() -{ - kill(getpid(), SIGKILL); -} - -//============================================================ -// osd_break_into_debugger -//============================================================ - -void osd_break_into_debugger(const char *message) -{ -#ifdef MAME_DEBUG - printf("MAME exception: %s\n", message); - printf("Attempting to fall into debugger\n"); - kill(getpid(), SIGTRAP); -#else - printf("Ignoring MAME exception: %s\n", message); -#endif -} - -#ifdef SDLMAME_ANDROID -std::string osd_get_clipboard_text() -{ - return std::string(); -} -#else -//============================================================ -// osd_get_clipboard_text -//============================================================ - -/*std::string osd_get_clipboard_text() -{ - std::string result; - - if (SDL_HasClipboardText()) - { - char *temp = SDL_GetClipboardText(); - result.assign(temp); - SDL_free(temp); - } - return result; -}*/ - -#endif - -//============================================================ -// osd_getpid -//============================================================ - -int osd_getpid() -{ - return getpid(); -} - - -namespace osd { - -namespace { - -class dynamic_module_posix_impl : public dynamic_module -{ -public: - dynamic_module_posix_impl(std::vector &&libraries) : m_libraries(std::move(libraries)) - { - } - - virtual ~dynamic_module_posix_impl() override - { - if (m_module) - dlclose(m_module); - } - -protected: - virtual generic_fptr_t get_symbol_address(char const *symbol) override - { - /* - * given a list of libraries, if a first symbol is successfully loaded from - * one of them, all additional symbols will be loaded from the same library - */ - if (m_module) - return reinterpret_cast(dlsym(m_module, symbol)); - - for (auto const &library : m_libraries) - { - void *const module = dlopen(library.c_str(), RTLD_LAZY); - - if (module != nullptr) - { - generic_fptr_t const function = reinterpret_cast(dlsym(module, symbol)); - - if (function) - { - m_module = module; - return function; - } - else - { - dlclose(module); - } - } - } - - return nullptr; - } - -private: - std::vector m_libraries; - void * m_module = nullptr; -}; - -} // anonymous namespace - - -bool invalidate_instruction_cache(void const *start, std::size_t size) -{ -#if !defined(SDLMAME_EMSCRIPTEN) - char const *const begin(reinterpret_cast(start)); - char const *const end(begin + size); - __builtin___clear_cache(const_cast(begin), const_cast(end)); -#endif - return true; -} - - -void *virtual_memory_allocation::do_alloc(std::initializer_list blocks, unsigned intent, std::size_t &size, std::size_t &page_size) -{ - long const p(sysconf(_SC_PAGE_SIZE)); - if (0 >= p) - return nullptr; - std::size_t s(0); - for (std::size_t b : blocks) - s += (b + p - 1) / p; - s *= p; - if (!s) - return nullptr; -#if defined __NetBSD__ - int req((NONE == intent) ? PROT_NONE : 0); - if (intent & READ) - req |= PROT_READ; - if (intent & WRITE) - req |= PROT_WRITE; - if (intent & EXECUTE) - req |= PROT_EXEC; - int const prot(PROT_MPROTECT(req)); -#else - int const prot(PROT_NONE); -#endif -#if defined(SDLMAME_BSD) || defined(SDLMAME_MACOSX) || defined(SDLMAME_EMSCRIPTEN) - int const fd(-1); -#else - // TODO: portable applications are supposed to use -1 for anonymous mappings - detect whatever requires 0 specifically - int const fd(0); -#endif - void *const result(mmap(nullptr, s, prot, MAP_ANON | MAP_SHARED, fd, 0)); - if (result == (void *)-1) - return nullptr; - size = s; - page_size = p; - return result; -} - -void virtual_memory_allocation::do_free(void *start, std::size_t size) -{ - munmap(reinterpret_cast(start), size); -} - -bool virtual_memory_allocation::do_set_access(void *start, std::size_t size, unsigned access) -{ - int prot((NONE == access) ? PROT_NONE : 0); - if (access & READ) - prot |= PROT_READ; - if (access & WRITE) - prot |= PROT_WRITE; - if (access & EXECUTE) - prot |= PROT_EXEC; - return mprotect(reinterpret_cast(start), size, prot) == 0; -} - - -dynamic_module::ptr dynamic_module::open(std::vector &&names) -{ - return std::make_unique(std::move(names)); -} - -} // namespace osd diff --git a/unused/build_call_from_project_root.sh b/unused/build_call_from_project_root.sh deleted file mode 100755 index 7415346..0000000 --- a/unused/build_call_from_project_root.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -shopt -s extglob -cd "$(dirname "$0")" -mkdir build -cd build - -cp -R ../3rdparty/ . - -mkdir -p src/tools -cp ../src/chdman.cpp src/tools/. -cp -R -t src/ ../src/!("chdman.cpp"|"version.cpp") - -mkdir -p build/generated -cp ../src/version.cpp build/generated/. - -mkdir -p build/1/2/3/4 -cp -t build/1/2/3/4 ../make_files/*.make -cp -t build/1/2/3/4 ../make_files/3rdparty/*.make - -cd build/1/2/3/4 - -for mkfile in !("chdman.make"); do make -f "$mkfile" -j$(nproc) config=release64; done - -make -f "chdman.make" -j$(nproc) config=release64 diff --git a/unused/chdman_generated_files.txt b/unused/chdman_generated_files.txt deleted file mode 100644 index 561f6fd..0000000 --- a/unused/chdman_generated_files.txt +++ /dev/null @@ -1,9 +0,0 @@ -build/generated/version.cpp -build/linux_gcc/bin/x64/Release/libutils.a -build/linux_gcc/bin/x64/Release/libzlib.a -build/linux_gcc/bin/x64/Release/mame_mame/libocore_sdl.a -build/linux_gcc/bin/x64/Release/libutf8proc.a -build/linux_gcc/bin/x64/Release/lib7z.a -build/linux_gcc/bin/x64/Release/libexpat.a -build/linux_gcc/bin/x64/Release/libflac.a -build/projects/sdl/mame/gmake-linux/chdman.make diff --git a/unused/command b/unused/command deleted file mode 100644 index 39a0f38..0000000 --- a/unused/command +++ /dev/null @@ -1 +0,0 @@ -make -f chdman.make config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ diff --git a/unused/deprecated_big_cmake/CMakeLists.txt b/unused/deprecated_big_cmake/CMakeLists.txt deleted file mode 100644 index 2e9aba1..0000000 --- a/unused/deprecated_big_cmake/CMakeLists.txt +++ /dev/null @@ -1,503 +0,0 @@ -cmake_minimum_required(VERSION 3.18) -project("chdman CBT edition") -#compiler flags are "CMAKE_C_FLAGS" and "CMAKE_CXX_FLAGS" -set(project_root ${CMAKE_SOURCE_DIR}) - -option(BIGENDIAN OFF) - -#lib7z -set(7z_dir ${CMAKE_SOURCE_DIR}/3rdparty/lzma) -add_library(7z STATIC -${7z_dir}/C/7zAlloc.c -${7z_dir}/C/7zArcIn.c -${7z_dir}/C/7zBuf.c -${7z_dir}/C/7zBuf2.c -${7z_dir}/C/7zCrc.c -${7z_dir}/C/7zCrcOpt.c -${7z_dir}/C/7zDec.c -${7z_dir}/C/7zFile.c -${7z_dir}/C/7zStream.c -${7z_dir}/C/Aes.c -${7z_dir}/C/AesOpt.c -${7z_dir}/C/Alloc.c -${7z_dir}/C/Bcj2.c -${7z_dir}/C/Bra.c -${7z_dir}/C/Bra86.c -${7z_dir}/C/BraIA64.c -${7z_dir}/C/CpuArch.c -${7z_dir}/C/Delta.c -${7z_dir}/C/LzFind.c -${7z_dir}/C/Lzma2Dec.c -${7z_dir}/C/Lzma2Enc.c -${7z_dir}/C/Lzma86Dec.c -${7z_dir}/C/Lzma86Enc.c -${7z_dir}/C/LzmaDec.c -${7z_dir}/C/LzmaEnc.c -${7z_dir}/C/Ppmd7.c -${7z_dir}/C/Ppmd7Dec.c -${7z_dir}/C/Ppmd7Enc.c -${7z_dir}/C/Sha256.c -${7z_dir}/C/Sort.c -) -target_compile_definitions(7z PRIVATE _7ZIP_PPMD_SUPPPORT _7ZIP_ST) -set_target_properties(7z PROPERTIES -CMAKE_C_FLAGS "-Wno-strict-prototypes -Wno-undef -Wno-misleading-indentation" -) - -#libexpat -set(expat_dir ${CMAKE_SOURCE_DIR}/3rdparty/expat) -add_library(expat STATIC -${expat_dir}/lib/xmlparse.c -${expat_dir}/lib/xmlrole.c -${expat_dir}/lib/xmltok.c -) -target_compile_definitions(expat PRIVATE -HAVE_MEMMOVE -HAVE_STDINT_H -HAVE_STDLIB_H -HAVE_STRING_H -PACKAGE=expat -PACKAGE_BUGREPORT="expat-bugs@libexpat.org" -PACKAGE_NAME=expat -PACKAGE_STRING="expat 2.2.10" -PACKAGE_TARNAME=expat -PACKAGE_URL= -PACKAGE_VERSION="2.2.10" -STDC_HEADERS -VERSION="2.2.10" -XML_CONTEXT_BYTES=1024 -XML_DTD -XML_NS -) -if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.1) -set_target_properties(expat PROPERTIES -CMAKE_C_FLAGS "-Wno-maybe-uninitialized" -) -endif() -if(BIGENDIAN) -target_compile_definitions(expat PRIVATE BYTEORDER=4321 WORDS_BIGENDIAN) -else() -target_compile_definitions(expat PRIVATE BYTEORDER=1234) -endif() -#if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") -target_compile_definitions(expat PRIVATE -HAVE_DLFCN_H -HAVE_FCNTL_H -HAVE_MMAP -HAVE_SYS_STAT_H -HAVE_SYS_TYPES_H -HAVE_UNISTD_H -XML_DEV_URANDOM -) -#endif() - -#libflac -set(flac_dir ${CMAKE_SOURCE_DIR}/3rdparty/libflac) -add_library(flac STATIC -${flac_dir}/src/libFLAC/bitmath.c -${flac_dir}/src/libFLAC/bitreader.c -${flac_dir}/src/libFLAC/bitwriter.c -${flac_dir}/src/libFLAC/cpu.c -${flac_dir}/src/libFLAC/crc.c -${flac_dir}/src/libFLAC/fixed.c -${flac_dir}/src/libFLAC/float.c -${flac_dir}/src/libFLAC/format.c -${flac_dir}/src/libFLAC/lpc.c -${flac_dir}/src/libFLAC/md5.c -${flac_dir}/src/libFLAC/memory.c -${flac_dir}/src/libFLAC/stream_decoder.c -${flac_dir}/src/libFLAC/stream_encoder.c -${flac_dir}/src/libFLAC/stream_encoder_framing.c -${flac_dir}/src/libFLAC/window.c -) -target_compile_definitions(flac PRIVATE -WORDS_BIGENDIAN=0 -FLAC__NO_ASM -_LARGEFILE_SOURCE -_FILE_OFFSET_BITS=64 -FLAC__HAS_OGG=0 -HAVE_CONFIG_H=1 -) -if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Ninja") -set(flac_flags "-Wno-unused-function -O0") -endif() -if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") -set(flac_flags ${flac_flags} "-Wno-enum-conversion") -endif() -set_target_properties(flac PROPERTIES -CMAKE_C_FLAGS "${flac_flags}") -target_include_directories(flac PRIVATE -${flac_dir}/src/libFLAC/include -${flac_dir}/include -) - -#utf8proc -set(utf8proc_dir ${CMAKE_SOURCE_DIR}/3rdparty/utf8proc) -add_library(utf8proc STATIC -${utf8proc_dir}/utf8proc.c -) -target_compile_definitions(utf8proc PRIVATE -UTF8PROC_STATIC -) -if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Ninja") -set_target_properties(utf8proc PROPERTIES -CMAKE_C_FLAGS "-Wno-strict-prototypes") -endif() - -#zlib -set(zlib_dir ${CMAKE_SOURCE_DIR}/3rdparty/zlib) -add_library(zlib STATIC -${zlib_dir}/adler32.c -${zlib_dir}/compress.c -${zlib_dir}/crc32.c -${zlib_dir}/deflate.c -${zlib_dir}/inffast.c -${zlib_dir}/inflate.c -${zlib_dir}/infback.c -${zlib_dir}/inftrees.c -${zlib_dir}/trees.c -${zlib_dir}/uncompr.c -${zlib_dir}/zutil.c -) -set(zlib_flags "-Wno-shift-negative-value") -if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Ninja") -set(zlib_flags ${zlib_flags} "-Wno-strict-prototypes") -endif() -set_target_properties(zlib PROPERTIES -CMAKE_C_FLAGS "${zlib_flags}") -target_compile_definitions(zlib PRIVATE -ZLIB_CONST -) - -#SDL2 -#set(SDL2_dir ${CMAKE_SOURCE_DIR}/3rdparty/SDL2) -#add_library(SDL2 STATIC -#${SDL2_dir}/src/atomic/SDL_atomic.c -#${SDL2_dir}/src/atomic/SDL_spinlock.c -#${SDL2_dir}/src/audio/disk/SDL_diskaudio.c -#${SDL2_dir}/src/audio/disk/SDL_diskaudio.h -#${SDL2_dir}/src/audio/dummy/SDL_dummyaudio.c -#${SDL2_dir}/src/audio/dummy/SDL_dummyaudio.h -#${SDL2_dir}/src/audio/SDL_audio.c -#${SDL2_dir}/src/audio/SDL_audio_c.h -#${SDL2_dir}/src/audio/SDL_audiocvt.c -#${SDL2_dir}/src/audio/SDL_audiodev.c -#${SDL2_dir}/src/audio/SDL_audiodev_c.h -#${SDL2_dir}/src/audio/SDL_audiotypecvt.c -#${SDL2_dir}/src/audio/SDL_mixer.c -#${SDL2_dir}/src/audio/SDL_sysaudio.h -#${SDL2_dir}/src/audio/SDL_wave.c -#${SDL2_dir}/src/audio/SDL_wave.h -#${SDL2_dir}/src/cpuinfo/SDL_cpuinfo.c -#${SDL2_dir}/src/dynapi/SDL_dynapi.c -#${SDL2_dir}/src/dynapi/SDL_dynapi.h -#${SDL2_dir}/src/dynapi/SDL_dynapi_overrides.h -#${SDL2_dir}/src/dynapi/SDL_dynapi_procs.h -#${SDL2_dir}/src/events/blank_cursor.h -#${SDL2_dir}/src/events/default_cursor.h -#${SDL2_dir}/src/events/SDL_clipboardevents.c -#${SDL2_dir}/src/events/SDL_clipboardevents_c.h -#${SDL2_dir}/src/events/SDL_dropevents.c -#${SDL2_dir}/src/events/SDL_dropevents_c.h -#${SDL2_dir}/src/events/SDL_events.c -#${SDL2_dir}/src/events/SDL_events_c.h -#${SDL2_dir}/src/events/SDL_gesture.c -#${SDL2_dir}/src/events/SDL_gesture_c.h -#${SDL2_dir}/src/events/SDL_keyboard.c -#${SDL2_dir}/src/events/SDL_keyboard_c.h -#${SDL2_dir}/src/events/SDL_mouse.c -#${SDL2_dir}/src/events/SDL_mouse_c.h -#${SDL2_dir}/src/events/SDL_quit.c -#${SDL2_dir}/src/events/SDL_sysevents.h -#${SDL2_dir}/src/events/SDL_touch.c -#${SDL2_dir}/src/events/SDL_touch_c.h -#${SDL2_dir}/src/events/SDL_windowevents.c -#${SDL2_dir}/src/events/SDL_windowevents_c.h -#${SDL2_dir}/src/file/SDL_rwops.c -#${SDL2_dir}/src/haptic/SDL_haptic.c -#${SDL2_dir}/src/haptic/SDL_syshaptic.h -#${SDL2_dir}/src/joystick/SDL_gamecontroller.c -#${SDL2_dir}/src/joystick/SDL_joystick.c -#${SDL2_dir}/src/joystick/SDL_joystick_c.h -#${SDL2_dir}/src/joystick/SDL_sysjoystick.h -#${SDL2_dir}/src/loadso/windows/SDL_sysloadso.c -#${SDL2_dir}/src/power/SDL_power.c -#${SDL2_dir}/src/power/windows/SDL_syspower.c -#${SDL2_dir}/src/render/direct3d/SDL_render_d3d.c -#${SDL2_dir}/src/render/direct3d11/SDL_render_d3d11.c -#${SDL2_dir}/src/render/mmx.h -#${SDL2_dir}/src/render/opengl/SDL_render_gl.c -#${SDL2_dir}/src/render/opengl/SDL_shaders_gl.c -#${SDL2_dir}/src/render/opengl/SDL_shaders_gl.h -#${SDL2_dir}/src/render/opengles2/SDL_render_gles2.c -#${SDL2_dir}/src/render/opengles2/SDL_shaders_gles2.c -#${SDL2_dir}/src/render/SDL_d3dmath.c -#${SDL2_dir}/src/render/SDL_d3dmath.h -#${SDL2_dir}/src/render/SDL_render.c -#${SDL2_dir}/src/render/SDL_sysrender.h -#${SDL2_dir}/src/render/SDL_yuv_mmx.c -#${SDL2_dir}/src/render/SDL_yuv_sw.c -#${SDL2_dir}/src/render/SDL_yuv_sw_c.h -#${SDL2_dir}/src/render/software/SDL_blendfillrect.c -#${SDL2_dir}/src/render/software/SDL_blendfillrect.h -#${SDL2_dir}/src/render/software/SDL_blendline.c -#${SDL2_dir}/src/render/software/SDL_blendline.h -#${SDL2_dir}/src/render/software/SDL_blendpoint.c -#${SDL2_dir}/src/render/software/SDL_blendpoint.h -#${SDL2_dir}/src/render/software/SDL_draw.h -#${SDL2_dir}/src/render/software/SDL_drawline.c -#${SDL2_dir}/src/render/software/SDL_drawline.h -#${SDL2_dir}/src/render/software/SDL_drawpoint.c -#${SDL2_dir}/src/render/software/SDL_drawpoint.h -#${SDL2_dir}/src/render/software/SDL_render_sw.c -#${SDL2_dir}/src/render/software/SDL_render_sw_c.h -#${SDL2_dir}/src/render/software/SDL_rotate.c -#${SDL2_dir}/src/render/software/SDL_rotate.h -#${SDL2_dir}/src/SDL.c -#${SDL2_dir}/src/SDL_assert.c -#${SDL2_dir}/src/SDL_error.c -#${SDL2_dir}/src/SDL_error_c.h -#${SDL2_dir}/src/SDL_hints.c -#${SDL2_dir}/src/SDL_log.c -#${SDL2_dir}/src/stdlib/SDL_getenv.c -#${SDL2_dir}/src/stdlib/SDL_iconv.c -#${SDL2_dir}/src/stdlib/SDL_malloc.c -#${SDL2_dir}/src/stdlib/SDL_qsort.c -#${SDL2_dir}/src/stdlib/SDL_stdlib.c -#${SDL2_dir}/src/stdlib/SDL_string.c -#${SDL2_dir}/src/thread/SDL_systhread.h -#${SDL2_dir}/src/thread/SDL_thread.c -#${SDL2_dir}/src/thread/SDL_thread_c.h -#${SDL2_dir}/src/timer/SDL_timer.c -#${SDL2_dir}/src/timer/SDL_timer_c.h -#${SDL2_dir}/src/video/dummy/SDL_nullevents.c -#${SDL2_dir}/src/video/dummy/SDL_nullevents_c.h -#${SDL2_dir}/src/video/dummy/SDL_nullframebuffer.c -#${SDL2_dir}/src/video/dummy/SDL_nullframebuffer_c.h -#${SDL2_dir}/src/video/dummy/SDL_nullvideo.c -#${SDL2_dir}/src/video/dummy/SDL_nullvideo.h -#${SDL2_dir}/src/video/SDL_blit.c -#${SDL2_dir}/src/video/SDL_blit.h -#${SDL2_dir}/src/video/SDL_blit_0.c -#${SDL2_dir}/src/video/SDL_blit_1.c -#${SDL2_dir}/src/video/SDL_blit_A.c -#${SDL2_dir}/src/video/SDL_blit_auto.c -#${SDL2_dir}/src/video/SDL_blit_auto.h -#${SDL2_dir}/src/video/SDL_blit_copy.c -#${SDL2_dir}/src/video/SDL_blit_copy.h -#${SDL2_dir}/src/video/SDL_blit_N.c -#${SDL2_dir}/src/video/SDL_blit_slow.c -#${SDL2_dir}/src/video/SDL_blit_slow.h -#${SDL2_dir}/src/video/SDL_bmp.c -#${SDL2_dir}/src/video/SDL_clipboard.c -#${SDL2_dir}/src/video/SDL_egl.c -#${SDL2_dir}/src/video/SDL_fillrect.c -#${SDL2_dir}/src/video/SDL_pixels.c -#${SDL2_dir}/src/video/SDL_pixels_c.h -#${SDL2_dir}/src/video/SDL_rect.c -#${SDL2_dir}/src/video/SDL_rect_c.h -#${SDL2_dir}/src/video/SDL_RLEaccel.c -#${SDL2_dir}/src/video/SDL_RLEaccel_c.h -#${SDL2_dir}/src/video/SDL_shape.c -#${SDL2_dir}/src/video/SDL_shape_internals.h -#${SDL2_dir}/src/video/SDL_stretch.c -#${SDL2_dir}/src/video/SDL_surface.c -#${SDL2_dir}/src/video/SDL_sysvideo.h -#${SDL2_dir}/src/video/SDL_video.c -# -##${SDL2_dir}/3rdparty/SDL2/src/libm/e_atan2.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/e_log.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/e_pow.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/e_rem_pio2.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/e_sqrt.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/k_cos.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/k_rem_pio2.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/k_sin.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/k_tan.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/math.h -##${SDL2_dir}/3rdparty/SDL2/src/libm/math_private.h -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_atan.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_copysign.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_cos.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_fabs.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_floor.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_scalbn.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_sin.c -##${SDL2_dir}/3rdparty/SDL2/src/libm/s_tan.c -#) -#target_include_directories(SDL2 PRIVATE -#${SDL2_dir}/include -#) -#set_target_properties(SDL2 PROPERTIES -#CMAKE_C_FLAGS "-Wimplicit-function-declaration -Wpointer-to-int-cast") - -#ocore_sdl -add_library(ocore_sdl STATIC -${CMAKE_SOURCE_DIR}/src/osd/osdcore.cpp -${CMAKE_SOURCE_DIR}/src/osd/osdcore.h -${CMAKE_SOURCE_DIR}/src/osd/osdfile.h -${CMAKE_SOURCE_DIR}/src/osd/strconv.cpp -${CMAKE_SOURCE_DIR}/src/osd/strconv.h -${CMAKE_SOURCE_DIR}/src/osd/osdsync.cpp -${CMAKE_SOURCE_DIR}/src/osd/osdsync.h -${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.cpp -${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.h -${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib_unix.cpp -${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib.h -${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixdir.cpp -${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.cpp -${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.h -${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixptty.cpp -${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixsocket.cpp -#${CMAKE_SOURCE_DIR}/src/osd/modules/file/stdfile.cpp -) -target_include_directories(ocore_sdl PRIVATE -${CMAKE_SOURCE_DIR}/src/emu -${CMAKE_SOURCE_DIR}/src/osd -${CMAKE_SOURCE_DIR}/src/lib -${CMAKE_SOURCE_DIR}/src/lib/util -${CMAKE_SOURCE_DIR}/src/osd/sdl -) -set_property(TARGET ocore_sdl PROPERTY CXX_STANDARD 17) - -#utils -set(utils_dir ${CMAKE_SOURCE_DIR}/src/lib/util) -add_library(utils STATIC -${utils_dir}/abi.h -${utils_dir}/avhuff.cpp -${utils_dir}/avhuff.h -${utils_dir}/aviio.cpp -${utils_dir}/aviio.h -${utils_dir}/base64.hpp -${utils_dir}/bitmap.cpp -${utils_dir}/bitmap.h -${utils_dir}/bitstream.h -${utils_dir}/cdrom.cpp -${utils_dir}/cdrom.h -${utils_dir}/chd.cpp -${utils_dir}/chd.h -${utils_dir}/chdcd.cpp -${utils_dir}/chdcd.h -${utils_dir}/chdcodec.cpp -${utils_dir}/chdcodec.h -${utils_dir}/client_http.hpp -${utils_dir}/client_https.hpp -${utils_dir}/client_ws.hpp -${utils_dir}/client_wss.hpp -${utils_dir}/corealloc.cpp -${utils_dir}/corealloc.h -${utils_dir}/corefile.cpp -${utils_dir}/corefile.h -${utils_dir}/corestr.cpp -${utils_dir}/corestr.h -${utils_dir}/coretmpl.h -${utils_dir}/coreutil.cpp -${utils_dir}/coreutil.h -${utils_dir}/crypto.hpp -${utils_dir}/delegate.cpp -${utils_dir}/delegate.h -${utils_dir}/disasmintf.cpp -${utils_dir}/disasmintf.h -${utils_dir}/dynamicclass.cpp -${utils_dir}/dynamicclass.h -${utils_dir}/dynamicclass.ipp -${utils_dir}/endianness.h -${utils_dir}/flac.cpp -${utils_dir}/flac.h -${utils_dir}/harddisk.cpp -${utils_dir}/harddisk.h -${utils_dir}/hash.cpp -${utils_dir}/hash.h -${utils_dir}/hashing.cpp -${utils_dir}/hashing.h -${utils_dir}/huffman.cpp -${utils_dir}/huffman.h -${utils_dir}/ioprocs.cpp -${utils_dir}/ioprocs.h -${utils_dir}/ioprocsfill.h -${utils_dir}/ioprocsfilter.cpp -${utils_dir}/ioprocsfilter.h -${utils_dir}/ioprocsvec.h -${utils_dir}/jedparse.cpp -${utils_dir}/jedparse.h -${utils_dir}/language.cpp -${utils_dir}/language.h -${utils_dir}/lrucache.h -${utils_dir}/md5.cpp -${utils_dir}/md5.h -${utils_dir}/msdib.cpp -${utils_dir}/msdib.h -${utils_dir}/nanosvg.cpp -${utils_dir}/nanosvg.h -${utils_dir}/opresolv.cpp -${utils_dir}/opresolv.h -${utils_dir}/options.cpp -${utils_dir}/options.h -${utils_dir}/palette.cpp -${utils_dir}/palette.h -${utils_dir}/path.cpp -${utils_dir}/path.h -${utils_dir}/path_to_regex.cpp -${utils_dir}/path_to_regex.hpp -${utils_dir}/plaparse.cpp -${utils_dir}/plaparse.h -${utils_dir}/png.cpp -${utils_dir}/png.h -${utils_dir}/server_http.hpp -${utils_dir}/server_https.hpp -${utils_dir}/server_ws.hpp -${utils_dir}/server_wss.hpp -${utils_dir}/strformat.cpp -${utils_dir}/strformat.h -${utils_dir}/timeconv.cpp -${utils_dir}/timeconv.h -${utils_dir}/unicode.cpp -${utils_dir}/unicode.h -${utils_dir}/unzip.cpp -${utils_dir}/unzip.h -${utils_dir}/un7z.cpp -${utils_dir}/utilfwd.h -${utils_dir}/vbiparse.cpp -${utils_dir}/vbiparse.h -${utils_dir}/vecstream.cpp -${utils_dir}/vecstream.h -${utils_dir}/wavwrite.cpp -${utils_dir}/wavwrite.h -${utils_dir}/xmlfile.cpp -${utils_dir}/xmlfile.h -${utils_dir}/zippath.cpp -${utils_dir}/zippath.h -) -target_compile_definitions(utils PRIVATE UTF8PROC_STATIC) -target_include_directories(utils PRIVATE -${CMAKE_SOURCE_DIR}/src/osd -${CMAKE_SOURCE_DIR}/src/lib/util -${CMAKE_SOURCE_DIR}/3rdparty -${CMAKE_SOURCE_DIR}/3rdparty/expat/lib -${CMAKE_SOURCE_DIR}/3rdparty/zlib -${CMAKE_SOURCE_DIR}/3rdparty/libflac/include -${CMAKE_SOURCE_DIR}/3rdparty/utf8proc -) -set_property(TARGET utils PROPERTY CXX_STANDARD 17) -target_compile_definitions(utils PRIVATE -CRLF=2 -) - -#chdman -add_executable(chdman -${CMAKE_SOURCE_DIR}/src/chdman.cpp -${CMAKE_SOURCE_DIR}/src/version.cpp -) -target_include_directories(chdman PRIVATE -${CMAKE_SOURCE_DIR}/src/osd -${CMAKE_SOURCE_DIR}/src/lib/util -${CMAKE_SOURCE_DIR}/3rdparty -${CMAKE_SOURCE_DIR}/3rdparty/libflac/include -) -set_property(TARGET chdman PROPERTY CXX_STANDARD 17) - -#linking -#target_link_libraries(ocore_sdl PRIVATE SDL2) - -target_link_libraries(chdman PRIVATE utils expat 7z ocore_sdl zlib flac utf8proc -dl rt SDL2 m pthread util) diff --git a/unused/make_files/3rdparty/7z.make b/unused/make_files/3rdparty/7z.make deleted file mode 100644 index 886082f..0000000 --- a/unused/make_files/3rdparty/7z.make +++ /dev/null @@ -1,598 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/lib7z.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -D_7ZIP_PPMD_SUPPPORT -D_7ZIP_ST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes -Wno-undef - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/lzma/C/7zAlloc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zArcIn.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf.o \ - $(OBJDIR)/3rdparty/lzma/C/7zBuf2.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrc.o \ - $(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/7zDec.o \ - $(OBJDIR)/3rdparty/lzma/C/7zFile.o \ - $(OBJDIR)/3rdparty/lzma/C/7zStream.o \ - $(OBJDIR)/3rdparty/lzma/C/Aes.o \ - $(OBJDIR)/3rdparty/lzma/C/AesOpt.o \ - $(OBJDIR)/3rdparty/lzma/C/Alloc.o \ - $(OBJDIR)/3rdparty/lzma/C/Bcj2.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra.o \ - $(OBJDIR)/3rdparty/lzma/C/Bra86.o \ - $(OBJDIR)/3rdparty/lzma/C/BraIA64.o \ - $(OBJDIR)/3rdparty/lzma/C/CpuArch.o \ - $(OBJDIR)/3rdparty/lzma/C/Delta.o \ - $(OBJDIR)/3rdparty/lzma/C/LzFind.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaDec.o \ - $(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o \ - $(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o \ - $(OBJDIR)/3rdparty/lzma/C/Sha256.o \ - $(OBJDIR)/3rdparty/lzma/C/Sort.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/3rdparty/lzma/C \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/3rdparty/lzma/C/7zAlloc.o: ../../../../../3rdparty/lzma/C/7zAlloc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zArcIn.o: ../../../../../3rdparty/lzma/C/7zArcIn.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zBuf.o: ../../../../../3rdparty/lzma/C/7zBuf.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zBuf2.o: ../../../../../3rdparty/lzma/C/7zBuf2.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zCrc.o: ../../../../../3rdparty/lzma/C/7zCrc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zCrcOpt.o: ../../../../../3rdparty/lzma/C/7zCrcOpt.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zDec.o: ../../../../../3rdparty/lzma/C/7zDec.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zFile.o: ../../../../../3rdparty/lzma/C/7zFile.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/7zStream.o: ../../../../../3rdparty/lzma/C/7zStream.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Aes.o: ../../../../../3rdparty/lzma/C/Aes.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/AesOpt.o: ../../../../../3rdparty/lzma/C/AesOpt.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Alloc.o: ../../../../../3rdparty/lzma/C/Alloc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Bcj2.o: ../../../../../3rdparty/lzma/C/Bcj2.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Bra.o: ../../../../../3rdparty/lzma/C/Bra.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Bra86.o: ../../../../../3rdparty/lzma/C/Bra86.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/BraIA64.o: ../../../../../3rdparty/lzma/C/BraIA64.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/CpuArch.o: ../../../../../3rdparty/lzma/C/CpuArch.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Delta.o: ../../../../../3rdparty/lzma/C/Delta.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/LzFind.o: ../../../../../3rdparty/lzma/C/LzFind.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Lzma2Dec.o: ../../../../../3rdparty/lzma/C/Lzma2Dec.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Lzma2Enc.o: ../../../../../3rdparty/lzma/C/Lzma2Enc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Lzma86Dec.o: ../../../../../3rdparty/lzma/C/Lzma86Dec.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Lzma86Enc.o: ../../../../../3rdparty/lzma/C/Lzma86Enc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/LzmaDec.o: ../../../../../3rdparty/lzma/C/LzmaDec.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/LzmaEnc.o: ../../../../../3rdparty/lzma/C/LzmaEnc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Ppmd7.o: ../../../../../3rdparty/lzma/C/Ppmd7.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Ppmd7Dec.o: ../../../../../3rdparty/lzma/C/Ppmd7Dec.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Ppmd7Enc.o: ../../../../../3rdparty/lzma/C/Ppmd7Enc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Sha256.o: ../../../../../3rdparty/lzma/C/Sha256.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/lzma/C/Sort.o: ../../../../../3rdparty/lzma/C/Sort.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/lzma/C - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/3rdparty/expat.make b/unused/make_files/3rdparty/expat.make deleted file mode 100644 index 038634b..0000000 --- a/unused/make_files/3rdparty/expat.make +++ /dev/null @@ -1,328 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libexpat.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DHAVE_MEMMOVE -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DPACKAGE="expat" -DPACKAGE_BUGREPORT="expat-bugs@libexpat.org" -DPACKAGE_NAME="expat" -DPACKAGE_STRING="expat 2.2.10" -DPACKAGE_TARNAME="expat" -DPACKAGE_URL="" -DPACKAGE_VERSION="2.2.10" -DSTDC_HEADERS -DVERSION="2.2.10" -DXML_CONTEXT_BYTES=1024 -DXML_DTD -DXML_NS -DBYTEORDER=1234 -DHAVE_DLFCN_H -DHAVE_FCNTL_H -DHAVE_MMAP -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DXML_DEV_URANDOM - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/expat/lib/xmlparse.o \ - $(OBJDIR)/3rdparty/expat/lib/xmlrole.o \ - $(OBJDIR)/3rdparty/expat/lib/xmltok.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/3rdparty/expat/lib \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/3rdparty/expat/lib/xmlparse.o: ../../../../../3rdparty/expat/lib/xmlparse.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/expat/lib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/expat/lib/xmlrole.o: ../../../../../3rdparty/expat/lib/xmlrole.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/expat/lib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/expat/lib/xmltok.o: ../../../../../3rdparty/expat/lib/xmltok.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/expat/lib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/3rdparty/flac.make b/unused/make_files/3rdparty/flac.make deleted file mode 100644 index b5a46f3..0000000 --- a/unused/make_files/3rdparty/flac.make +++ /dev/null @@ -1,454 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libflac.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DWORDS_BIGENDIAN=0 -DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__HAS_OGG=0 -DHAVE_CONFIG_H=1 - INCLUDES += -I"../../../../../3rdparty/libflac/src/libFLAC/include" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-unused-function -O0 - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/3rdparty/libflac/src/libFLAC \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/bitmath.o: ../../../../../3rdparty/libflac/src/libFLAC/bitmath.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/bitreader.o: ../../../../../3rdparty/libflac/src/libFLAC/bitreader.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/bitwriter.o: ../../../../../3rdparty/libflac/src/libFLAC/bitwriter.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/cpu.o: ../../../../../3rdparty/libflac/src/libFLAC/cpu.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/crc.o: ../../../../../3rdparty/libflac/src/libFLAC/crc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/fixed.o: ../../../../../3rdparty/libflac/src/libFLAC/fixed.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/float.o: ../../../../../3rdparty/libflac/src/libFLAC/float.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/format.o: ../../../../../3rdparty/libflac/src/libFLAC/format.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/lpc.o: ../../../../../3rdparty/libflac/src/libFLAC/lpc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/md5.o: ../../../../../3rdparty/libflac/src/libFLAC/md5.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/memory.o: ../../../../../3rdparty/libflac/src/libFLAC/memory.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_decoder.o: ../../../../../3rdparty/libflac/src/libFLAC/stream_decoder.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder.o: ../../../../../3rdparty/libflac/src/libFLAC/stream_encoder.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/stream_encoder_framing.o: ../../../../../3rdparty/libflac/src/libFLAC/stream_encoder_framing.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/libflac/src/libFLAC/window.o: ../../../../../3rdparty/libflac/src/libFLAC/window.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/libflac/src/libFLAC - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/3rdparty/utf8proc.make b/unused/make_files/3rdparty/utf8proc.make deleted file mode 100644 index c7509e9..0000000 --- a/unused/make_files/3rdparty/utf8proc.make +++ /dev/null @@ -1,308 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC -Dverbose=-1 - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC -Dverbose=-1 - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC -Dverbose=-1 - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libutf8proc.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/utf8proc/utf8proc.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/3rdparty/utf8proc \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/3rdparty/utf8proc/utf8proc.o: ../../../../../3rdparty/utf8proc/utf8proc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/utf8proc - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/3rdparty/zlib.make b/unused/make_files/3rdparty/zlib.make deleted file mode 100644 index aa52248..0000000 --- a/unused/make_files/3rdparty/zlib.make +++ /dev/null @@ -1,408 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -Dverbose=-1 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -Dverbose=-1 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -Dverbose=-1 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libzlib.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DZLIB_CONST - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -Wno-strict-prototypes - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/3rdparty/zlib/adler32.o \ - $(OBJDIR)/3rdparty/zlib/compress.o \ - $(OBJDIR)/3rdparty/zlib/crc32.o \ - $(OBJDIR)/3rdparty/zlib/deflate.o \ - $(OBJDIR)/3rdparty/zlib/infback.o \ - $(OBJDIR)/3rdparty/zlib/inffast.o \ - $(OBJDIR)/3rdparty/zlib/inflate.o \ - $(OBJDIR)/3rdparty/zlib/inftrees.o \ - $(OBJDIR)/3rdparty/zlib/trees.o \ - $(OBJDIR)/3rdparty/zlib/uncompr.o \ - $(OBJDIR)/3rdparty/zlib/zutil.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/3rdparty/zlib \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/3rdparty/zlib/adler32.o: ../../../../../3rdparty/zlib/adler32.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/compress.o: ../../../../../3rdparty/zlib/compress.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/crc32.o: ../../../../../3rdparty/zlib/crc32.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/deflate.o: ../../../../../3rdparty/zlib/deflate.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/infback.o: ../../../../../3rdparty/zlib/infback.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/inffast.o: ../../../../../3rdparty/zlib/inffast.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/inflate.o: ../../../../../3rdparty/zlib/inflate.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/inftrees.o: ../../../../../3rdparty/zlib/inftrees.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/trees.o: ../../../../../3rdparty/zlib/trees.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/uncompr.o: ../../../../../3rdparty/zlib/uncompr.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/3rdparty/zlib/zutil.o: ../../../../../3rdparty/zlib/zutil.c $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/zlib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/chdman.make b/unused/make_files/chdman.make deleted file mode 100644 index 704361b..0000000 --- a/unused/make_files/chdman.make +++ /dev/null @@ -1,320 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../linux_gcc/bin/x32/Debug" -L"../../../../linux_gcc/bin/x32/Debug/mame_mame" -m32 - LIBDEPS += ../../../../linux_gcc/bin/x32/Debug/libutils.a ../../../../linux_gcc/bin/x32/Debug/libexpat.a ../../../../linux_gcc/bin/x32/Debug/lib7z.a ../../../../linux_gcc/bin/x32/Debug/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x32/Debug/libzlib.a ../../../../linux_gcc/bin/x32/Debug/libflac.a ../../../../linux_gcc/bin/x32/Debug/libutf8proc.a - LDDEPS += ../../../../linux_gcc/bin/x32/Debug/libutils.a ../../../../linux_gcc/bin/x32/Debug/libexpat.a ../../../../linux_gcc/bin/x32/Debug/lib7z.a ../../../../linux_gcc/bin/x32/Debug/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x32/Debug/libzlib.a ../../../../linux_gcc/bin/x32/Debug/libflac.a ../../../../linux_gcc/bin/x32/Debug/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../linux_gcc/bin/x32/Release" -L"../../../../linux_gcc/bin/x32/Release/mame_mame" -m32 - LIBDEPS += ../../../../linux_gcc/bin/x32/Release/libutils.a ../../../../linux_gcc/bin/x32/Release/libexpat.a ../../../../linux_gcc/bin/x32/Release/lib7z.a ../../../../linux_gcc/bin/x32/Release/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x32/Release/libzlib.a ../../../../linux_gcc/bin/x32/Release/libflac.a ../../../../linux_gcc/bin/x32/Release/libutf8proc.a - LDDEPS += ../../../../linux_gcc/bin/x32/Release/libutils.a ../../../../linux_gcc/bin/x32/Release/libexpat.a ../../../../linux_gcc/bin/x32/Release/lib7z.a ../../../../linux_gcc/bin/x32/Release/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x32/Release/libzlib.a ../../../../linux_gcc/bin/x32/Release/libflac.a ../../../../linux_gcc/bin/x32/Release/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../linux_gcc/bin/x64/Debug" -L"../../../../linux_gcc/bin/x64/Debug/mame_mame" -m64 - LIBDEPS += ../../../../linux_gcc/bin/x64/Debug/libutils.a ../../../../linux_gcc/bin/x64/Debug/libexpat.a ../../../../linux_gcc/bin/x64/Debug/lib7z.a ../../../../linux_gcc/bin/x64/Debug/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x64/Debug/libzlib.a ../../../../linux_gcc/bin/x64/Debug/libflac.a ../../../../linux_gcc/bin/x64/Debug/libutf8proc.a - LDDEPS += ../../../../linux_gcc/bin/x64/Debug/libutils.a ../../../../linux_gcc/bin/x64/Debug/libexpat.a ../../../../linux_gcc/bin/x64/Debug/lib7z.a ../../../../linux_gcc/bin/x64/Debug/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x64/Debug/libzlib.a ../../../../linux_gcc/bin/x64/Debug/libflac.a ../../../../linux_gcc/bin/x64/Debug/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../linux_gcc/bin/x64/Release" -L"../../../../linux_gcc/bin/x64/Release/mame_mame" -m64 - LIBDEPS += ../../../../linux_gcc/bin/x64/Release/libutils.a ../../../../linux_gcc/bin/x64/Release/libexpat.a ../../../../linux_gcc/bin/x64/Release/lib7z.a ../../../../linux_gcc/bin/x64/Release/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x64/Release/libzlib.a ../../../../linux_gcc/bin/x64/Release/libflac.a ../../../../linux_gcc/bin/x64/Release/libutf8proc.a - LDDEPS += ../../../../linux_gcc/bin/x64/Release/libutils.a ../../../../linux_gcc/bin/x64/Release/libexpat.a ../../../../linux_gcc/bin/x64/Release/lib7z.a ../../../../linux_gcc/bin/x64/Release/mame_mame/libocore_sdl.a ../../../../linux_gcc/bin/x64/Release/libzlib.a ../../../../linux_gcc/bin/x64/Release/libflac.a ../../../../linux_gcc/bin/x64/Release/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../../scripts/src" -L"../../../../../scripts/src/osd/mame_mame" - LIBDEPS += ../../../../../scripts/src/libutils.a ../../../../../scripts/src/libexpat.a ../../../../../scripts/src/lib7z.a ../../../../../scripts/src/osd/mame_mame/libocore_sdl.a ../../../../../scripts/src/libzlib.a ../../../../../scripts/src/libflac.a ../../../../../scripts/src/libutf8proc.a - LDDEPS += ../../../../../scripts/src/libutils.a ../../../../../scripts/src/libexpat.a ../../../../../scripts/src/lib7z.a ../../../../../scripts/src/osd/mame_mame/libocore_sdl.a ../../../../../scripts/src/libzlib.a ../../../../../scripts/src/libflac.a ../../../../../scripts/src/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../.. - override TARGET = $(TARGETDIR)/chdman - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/libflac/include" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -g -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../../scripts/src" -L"../../../../../scripts/src/osd/mame_mame" - LIBDEPS += ../../../../../scripts/src/libutils.a ../../../../../scripts/src/libexpat.a ../../../../../scripts/src/lib7z.a ../../../../../scripts/src/osd/mame_mame/libocore_sdl.a ../../../../../scripts/src/libzlib.a ../../../../../scripts/src/libflac.a ../../../../../scripts/src/libutf8proc.a - LDDEPS += ../../../../../scripts/src/libutils.a ../../../../../scripts/src/libexpat.a ../../../../../scripts/src/lib7z.a ../../../../../scripts/src/osd/mame_mame/libocore_sdl.a ../../../../../scripts/src/libzlib.a ../../../../../scripts/src/libflac.a ../../../../../scripts/src/libutf8proc.a - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(CXX) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/tools/chdman.o \ - $(OBJDIR)/generated/version.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/generated \ - $(OBJDIR)/src/tools \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Linking $(notdir $@)... - $(SILENT) $(LINKCMD) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/src/tools/chdman.o: ../../../../../src/tools/chdman.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/tools - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/generated/version.o: ../../../../generated/version.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/generated - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/ocore_sdl.make b/unused/make_files/ocore_sdl.make deleted file mode 100644 index 55b94f2..0000000 --- a/unused/make_files/ocore_sdl.make +++ /dev/null @@ -1,403 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug/ocore_sdl - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release/ocore_sdl - TARGETDIR = ../../../../linux_gcc/bin/x32/Release/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug/ocore_sdl - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release/ocore_sdl - TARGETDIR = ../../../../linux_gcc/bin/x64/Release/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug/ocore_sdl - TARGETDIR = ../../../../../scripts/src/osd/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release/ocore_sdl - TARGETDIR = ../../../../../scripts/src/osd/mame_mame - override TARGET = $(TARGETDIR)/libocore_sdl.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX - INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" - FORCE_INCLUDE += -include /home/shen/devel/mame/src/osd/sdl/sdlprefix.h - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/osd/modules/file/posixdir.o \ - $(OBJDIR)/src/osd/modules/file/posixfile.o \ - $(OBJDIR)/src/osd/modules/file/posixptty.o \ - $(OBJDIR)/src/osd/modules/file/posixsocket.o \ - $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ - $(OBJDIR)/src/osd/modules/osdmodule.o \ - $(OBJDIR)/src/osd/osdcore.o \ - $(OBJDIR)/src/osd/osdsync.o \ - $(OBJDIR)/src/osd/strconv.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/src/osd \ - $(OBJDIR)/src/osd/modules \ - $(OBJDIR)/src/osd/modules/file \ - $(OBJDIR)/src/osd/modules/lib \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/src/osd/modules/file/posixdir.o: ../../../../../src/osd/modules/file/posixdir.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/modules/file/posixfile.o: ../../../../../src/osd/modules/file/posixfile.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/modules/file/posixptty.o: ../../../../../src/osd/modules/file/posixptty.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/modules/file/posixsocket.o: ../../../../../src/osd/modules/file/posixsocket.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/modules/lib/osdlib_unix.o: ../../../../../src/osd/modules/lib/osdlib_unix.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/lib - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/modules/osdmodule.o: ../../../../../src/osd/modules/osdmodule.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/osdcore.o: ../../../../../src/osd/osdcore.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/osdsync.o: ../../../../../src/osd/osdsync.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/osd/strconv.o: ../../../../../src/osd/strconv.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/make_files/utils.make b/unused/make_files/utils.make deleted file mode 100644 index 52182f8..0000000 --- a/unused/make_files/utils.make +++ /dev/null @@ -1,734 +0,0 @@ -# GNU Make project makefile autogenerated by GENie -ifndef config - config=debug32 -endif - -ifndef verbose - SILENT = @ -endif - -SHELLTYPE := msdos -ifeq (,$(ComSpec)$(COMSPEC)) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(SHELL))) - SHELLTYPE := posix -endif -ifeq (/bin,$(findstring /bin,$(MAKESHELL))) - SHELLTYPE := posix -endif - -ifeq (posix,$(SHELLTYPE)) - MKDIR = $(SILENT) mkdir -p "$(1)" - COPY = $(SILENT) cp -fR "$(1)" "$(2)" - RM = $(SILENT) rm -f "$(1)" -else - MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 - COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" - RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 -endif - -CC = gcc -CXX = g++ -AR = ar - -ifndef RESCOMP - ifdef WINDRES - RESCOMP = $(WINDRES) - else - RESCOMP = windres - endif -endif - -ifeq ($(config),debug32) - OBJDIR = ../../../../linux_gcc/obj/x32/Debug - TARGETDIR = ../../../../linux_gcc/bin/x32/Debug - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release32) - OBJDIR = ../../../../linux_gcc/obj/x32/Release - TARGETDIR = ../../../../linux_gcc/bin/x32/Release - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x86 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m32 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug64) - OBJDIR = ../../../../linux_gcc/obj/x64/Debug - TARGETDIR = ../../../../linux_gcc/bin/x64/Debug - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DPTR64=1 -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release64) - OBJDIR = ../../../../linux_gcc/obj/x64/Release - TARGETDIR = ../../../../linux_gcc/bin/x64/Release - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -m64 -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),debug) - OBJDIR = obj/Debug - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -ifeq ($(config),release) - OBJDIR = obj/Release - TARGETDIR = ../../../../../scripts/src - override TARGET = $(TARGETDIR)/libutils.a - DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUTF8PROC_STATIC - INCLUDES += -I"../../../../../src/osd" -I"../../../../../src/lib/util" -I"../../../../../3rdparty" -I"../../../../../3rdparty/expat/lib" -I"../../../../../3rdparty/zlib" -I"../../../../../3rdparty/libflac/include" -I"../../../../../3rdparty/utf8proc" - ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) - ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast - ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Woverloaded-virtual -Wimplicit-fallthrough -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 - ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr - ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-error=attributes -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-return-local-addr -std=c++17 -Wpointer-arith -Wimplicit-fallthrough - ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) - ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s - LIBDEPS += - LDDEPS += - LDRESP = - LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil - EXTERNAL_LIBS += - LINKOBJS = $(OBJECTS) - LINKCMD = $(AR) -rcs $(TARGET) - OBJRESP = - OBJECTS := \ - $(OBJDIR)/src/lib/util/avhuff.o \ - $(OBJDIR)/src/lib/util/aviio.o \ - $(OBJDIR)/src/lib/util/bitmap.o \ - $(OBJDIR)/src/lib/util/cdrom.o \ - $(OBJDIR)/src/lib/util/chd.o \ - $(OBJDIR)/src/lib/util/chdcd.o \ - $(OBJDIR)/src/lib/util/chdcodec.o \ - $(OBJDIR)/src/lib/util/corealloc.o \ - $(OBJDIR)/src/lib/util/corefile.o \ - $(OBJDIR)/src/lib/util/corestr.o \ - $(OBJDIR)/src/lib/util/coreutil.o \ - $(OBJDIR)/src/lib/util/delegate.o \ - $(OBJDIR)/src/lib/util/disasmintf.o \ - $(OBJDIR)/src/lib/util/dynamicclass.o \ - $(OBJDIR)/src/lib/util/flac.o \ - $(OBJDIR)/src/lib/util/harddisk.o \ - $(OBJDIR)/src/lib/util/hash.o \ - $(OBJDIR)/src/lib/util/hashing.o \ - $(OBJDIR)/src/lib/util/huffman.o \ - $(OBJDIR)/src/lib/util/ioprocs.o \ - $(OBJDIR)/src/lib/util/ioprocsfilter.o \ - $(OBJDIR)/src/lib/util/jedparse.o \ - $(OBJDIR)/src/lib/util/language.o \ - $(OBJDIR)/src/lib/util/md5.o \ - $(OBJDIR)/src/lib/util/msdib.o \ - $(OBJDIR)/src/lib/util/nanosvg.o \ - $(OBJDIR)/src/lib/util/opresolv.o \ - $(OBJDIR)/src/lib/util/options.o \ - $(OBJDIR)/src/lib/util/palette.o \ - $(OBJDIR)/src/lib/util/path.o \ - $(OBJDIR)/src/lib/util/path_to_regex.o \ - $(OBJDIR)/src/lib/util/plaparse.o \ - $(OBJDIR)/src/lib/util/png.o \ - $(OBJDIR)/src/lib/util/strformat.o \ - $(OBJDIR)/src/lib/util/timeconv.o \ - $(OBJDIR)/src/lib/util/un7z.o \ - $(OBJDIR)/src/lib/util/unicode.o \ - $(OBJDIR)/src/lib/util/unzip.o \ - $(OBJDIR)/src/lib/util/vbiparse.o \ - $(OBJDIR)/src/lib/util/vecstream.o \ - $(OBJDIR)/src/lib/util/wavwrite.o \ - $(OBJDIR)/src/lib/util/xmlfile.o \ - $(OBJDIR)/src/lib/util/zippath.o \ - - define PREBUILDCMDS - endef - define PRELINKCMDS - endef - define POSTBUILDCMDS - endef -endif - -OBJDIRS := \ - $(OBJDIR) \ - $(OBJDIR)/src/lib/util \ - -RESOURCES := \ - -.PHONY: clean prebuild prelink - -all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) - @: - -$(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) - @echo Archiving $(notdir $@)... -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) -endif - $(SILENT) $(LINKCMD) $(LINKOBJS) - $(POSTBUILDCMDS) - -$(TARGETDIR): - @echo Creating $(TARGETDIR) - -$(call MKDIR,$(TARGETDIR)) - -$(OBJDIRS): - -$(call MKDIR,$@) - -clean: -ifeq (posix,$(SHELLTYPE)) - $(SILENT) rm -f $(TARGET) - $(SILENT) rm -rf $(OBJDIR) -else - $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) - $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) -endif - -prebuild: - $(PREBUILDCMDS) - -prelink: - $(PRELINKCMDS) - -ifneq (,$(PCH)) -$(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" - -$(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) - @echo Precompiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" -endif - -ifneq (,$(OBJRESP)) -$(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -ifneq (,$(LDRESP)) -$(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) - $(SILENT) echo $^ - $(SILENT) echo $^ > $@ -endif - -$(OBJDIR)/src/lib/util/avhuff.o: ../../../../../src/lib/util/avhuff.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/aviio.o: ../../../../../src/lib/util/aviio.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/bitmap.o: ../../../../../src/lib/util/bitmap.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/cdrom.o: ../../../../../src/lib/util/cdrom.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/chd.o: ../../../../../src/lib/util/chd.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/chdcd.o: ../../../../../src/lib/util/chdcd.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/chdcodec.o: ../../../../../src/lib/util/chdcodec.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/corealloc.o: ../../../../../src/lib/util/corealloc.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/corefile.o: ../../../../../src/lib/util/corefile.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/corestr.o: ../../../../../src/lib/util/corestr.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/coreutil.o: ../../../../../src/lib/util/coreutil.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/delegate.o: ../../../../../src/lib/util/delegate.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/disasmintf.o: ../../../../../src/lib/util/disasmintf.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/dynamicclass.o: ../../../../../src/lib/util/dynamicclass.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/flac.o: ../../../../../src/lib/util/flac.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/harddisk.o: ../../../../../src/lib/util/harddisk.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/hash.o: ../../../../../src/lib/util/hash.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/hashing.o: ../../../../../src/lib/util/hashing.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/huffman.o: ../../../../../src/lib/util/huffman.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/ioprocs.o: ../../../../../src/lib/util/ioprocs.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/ioprocsfilter.o: ../../../../../src/lib/util/ioprocsfilter.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/jedparse.o: ../../../../../src/lib/util/jedparse.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/language.o: ../../../../../src/lib/util/language.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/md5.o: ../../../../../src/lib/util/md5.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/msdib.o: ../../../../../src/lib/util/msdib.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/nanosvg.o: ../../../../../src/lib/util/nanosvg.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/opresolv.o: ../../../../../src/lib/util/opresolv.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/options.o: ../../../../../src/lib/util/options.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/palette.o: ../../../../../src/lib/util/palette.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/path.o: ../../../../../src/lib/util/path.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/path_to_regex.o: ../../../../../src/lib/util/path_to_regex.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/plaparse.o: ../../../../../src/lib/util/plaparse.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/png.o: ../../../../../src/lib/util/png.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/strformat.o: ../../../../../src/lib/util/strformat.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/timeconv.o: ../../../../../src/lib/util/timeconv.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/un7z.o: ../../../../../src/lib/util/un7z.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/unicode.o: ../../../../../src/lib/util/unicode.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/unzip.o: ../../../../../src/lib/util/unzip.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/vbiparse.o: ../../../../../src/lib/util/vbiparse.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/vecstream.o: ../../../../../src/lib/util/vecstream.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/wavwrite.o: ../../../../../src/lib/util/wavwrite.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/xmlfile.o: ../../../../../src/lib/util/xmlfile.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - -$(OBJDIR)/src/lib/util/zippath.o: ../../../../../src/lib/util/zippath.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/lib/util - @echo Compiling $(subst ../,,$<)... - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" - --include $(OBJECTS:%.o=%.d) -ifneq (,$(PCH)) - -include $(OBJDIR)/$(notdir $(PCH)).d - -include $(OBJDIR)/$(notdir $(PCH))_objc.d -endif diff --git a/unused/output.txt b/unused/output.txt deleted file mode 100644 index 72459fb..0000000 --- a/unused/output.txt +++ /dev/null @@ -1,143 +0,0 @@ -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Creating ../../../../linux_gcc/bin/x64/Release -Compiling 3rdparty/lzma/C/7zAlloc.c... -Compiling 3rdparty/lzma/C/7zArcIn.c... -Compiling 3rdparty/lzma/C/7zBuf.c... -Compiling 3rdparty/lzma/C/7zBuf2.c... -Compiling 3rdparty/lzma/C/7zCrc.c... -Compiling 3rdparty/lzma/C/7zCrcOpt.c... -Compiling 3rdparty/lzma/C/7zDec.c... -Compiling 3rdparty/lzma/C/7zFile.c... -Compiling 3rdparty/lzma/C/7zStream.c... -Compiling 3rdparty/lzma/C/Aes.c... -Compiling 3rdparty/lzma/C/AesOpt.c... -Compiling 3rdparty/lzma/C/Alloc.c... -Compiling 3rdparty/lzma/C/Bcj2.c... -Compiling 3rdparty/lzma/C/Bra.c... -Compiling 3rdparty/lzma/C/Bra86.c... -Compiling 3rdparty/lzma/C/BraIA64.c... -Compiling 3rdparty/lzma/C/CpuArch.c... -Compiling 3rdparty/lzma/C/Delta.c... -Compiling 3rdparty/lzma/C/LzFind.c... -Compiling 3rdparty/lzma/C/Lzma2Dec.c... -Compiling 3rdparty/lzma/C/Lzma2Enc.c... -Compiling 3rdparty/lzma/C/Lzma86Dec.c... -Compiling 3rdparty/lzma/C/Lzma86Enc.c... -Compiling 3rdparty/lzma/C/LzmaDec.c... -Compiling 3rdparty/lzma/C/LzmaEnc.c... -Compiling 3rdparty/lzma/C/Ppmd7.c... -Compiling 3rdparty/lzma/C/Ppmd7Dec.c... -Compiling 3rdparty/lzma/C/Ppmd7Enc.c... -Compiling 3rdparty/lzma/C/Sha256.c... -Compiling 3rdparty/lzma/C/Sort.c... -Archiving lib7z.a... -bash$ mkfile=expat.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling 3rdparty/expat/lib/xmlparse.c... -Compiling 3rdparty/expat/lib/xmlrole.c... -Compiling 3rdparty/expat/lib/xmltok.c... -Archiving libexpat.a... -bash$ mkfile=flac.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling 3rdparty/libflac/src/libFLAC/bitmath.c... -Compiling 3rdparty/libflac/src/libFLAC/bitreader.c... -Compiling 3rdparty/libflac/src/libFLAC/bitwriter.c... -Compiling 3rdparty/libflac/src/libFLAC/cpu.c... -Compiling 3rdparty/libflac/src/libFLAC/crc.c... -Compiling 3rdparty/libflac/src/libFLAC/fixed.c... -Compiling 3rdparty/libflac/src/libFLAC/float.c... -Compiling 3rdparty/libflac/src/libFLAC/format.c... -Compiling 3rdparty/libflac/src/libFLAC/lpc.c... -Compiling 3rdparty/libflac/src/libFLAC/md5.c... -Compiling 3rdparty/libflac/src/libFLAC/memory.c... -Compiling 3rdparty/libflac/src/libFLAC/stream_decoder.c... -Compiling 3rdparty/libflac/src/libFLAC/stream_encoder.c... -Compiling 3rdparty/libflac/src/libFLAC/stream_encoder_framing.c... -Compiling 3rdparty/libflac/src/libFLAC/window.c... -Archiving libflac.a... -bash$ mkfile=ocore_sdl.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Creating ../../../../linux_gcc/bin/x64/Release/mame_mame -Compiling src/osd/modules/osdmodule.cpp... -Compiling src/osd/osdcore.cpp... -Compiling src/osd/osdsync.cpp... -Compiling src/osd/strconv.cpp... -Compiling src/osd/modules/file/posixdir.cpp... -Compiling src/osd/modules/file/posixfile.cpp... -Compiling src/osd/modules/file/posixptty.cpp... -Compiling src/osd/modules/file/posixsocket.cpp... -Compiling src/osd/modules/lib/osdlib_unix.cpp... -Archiving libocore_sdl.a... -bash$ mkfile=utf8proc.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling 3rdparty/utf8proc/utf8proc.c... -Archiving libutf8proc.a... -bash$ mkfile=ut -utf8proc.make utils.make -bash$ mkfile=utils.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling src/lib/util/avhuff.cpp... -Compiling src/lib/util/aviio.cpp... -Compiling src/lib/util/bitmap.cpp... -Compiling src/lib/util/cdrom.cpp... -Compiling src/lib/util/chd.cpp... -Compiling src/lib/util/chdcd.cpp... -Compiling src/lib/util/chdcodec.cpp... -Compiling src/lib/util/corealloc.cpp... -Compiling src/lib/util/corefile.cpp... -Compiling src/lib/util/corestr.cpp... -Compiling src/lib/util/coreutil.cpp... -Compiling src/lib/util/delegate.cpp... -Compiling src/lib/util/disasmintf.cpp... -Compiling src/lib/util/dynamicclass.cpp... -Compiling src/lib/util/flac.cpp... -Compiling src/lib/util/harddisk.cpp... -Compiling src/lib/util/hash.cpp... -Compiling src/lib/util/hashing.cpp... -Compiling src/lib/util/huffman.cpp... -Compiling src/lib/util/ioprocs.cpp... -Compiling src/lib/util/ioprocsfilter.cpp... -Compiling src/lib/util/jedparse.cpp... -Compiling src/lib/util/language.cpp... -Compiling src/lib/util/md5.cpp... -Compiling src/lib/util/msdib.cpp... -Compiling src/lib/util/nanosvg.cpp... -Compiling src/lib/util/opresolv.cpp... -Compiling src/lib/util/options.cpp... -Compiling src/lib/util/palette.cpp... -Compiling src/lib/util/path.cpp... -Compiling src/lib/util/path_to_regex.cpp... -Compiling src/lib/util/plaparse.cpp... -Compiling src/lib/util/png.cpp... -Compiling src/lib/util/strformat.cpp... -Compiling src/lib/util/timeconv.cpp... -Compiling src/lib/util/un7z.cpp... -Compiling src/lib/util/unicode.cpp... -Compiling src/lib/util/unzip.cpp... -Compiling src/lib/util/vbiparse.cpp... -Compiling src/lib/util/vecstream.cpp... -Compiling src/lib/util/wavwrite.cpp... -Compiling src/lib/util/xmlfile.cpp... -Compiling src/lib/util/zippath.cpp... -Archiving libutils.a... -bash$ mkfile=zlib.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling 3rdparty/zlib/adler32.c... -Compiling 3rdparty/zlib/compress.c... -Compiling 3rdparty/zlib/crc32.c... -Compiling 3rdparty/zlib/deflate.c... -Compiling 3rdparty/zlib/infback.c... -Compiling 3rdparty/zlib/inffast.c... -Compiling 3rdparty/zlib/inflate.c... -Compiling 3rdparty/zlib/inftrees.c... -Compiling 3rdparty/zlib/trees.c... -Compiling 3rdparty/zlib/uncompr.c... -Compiling 3rdparty/zlib/zutil.c... -Archiving libzlib.a... -bash$ mkfile=chdman.make -bash$ make -f "$mkfile" -j$(nproc) config=release64 CPPFLAGS=-I/usr/include/x86_64-linux-gnu/ -Compiling src/tools/chdman.cpp... -Compiling generated/version.cpp... -Linking chdman... -bash$ - diff --git a/unused/scripts/extlib.lua b/unused/scripts/extlib.lua deleted file mode 100644 index a1fa4f5..0000000 --- a/unused/scripts/extlib.lua +++ /dev/null @@ -1,128 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team,Jeffrey Clark - -local extlibs = { --- --- 3rdparty system 3rdparty --- lib name: lib name, include dir --- - asio = { "asio", "3rdparty/asio/include" }, - expat = { "expat", "3rdparty/expat/lib" }, - zlib = { "z", "3rdparty/zlib" }, - jpeg = { "jpeg", "3rdparty/libjpeg" }, - flac = { "FLAC", "3rdparty/libflac/include" }, - sqlite3 = { "sqlite3", "3rdparty/sqlite3" }, - portmidi = { "portmidi", "3rdparty/portmidi/pm_common" }, - portaudio = { "portaudio", "3rdparty/portaudio/include" }, - lua = { "lua", "3rdparty/lua/src" }, - utf8proc = { "utf8proc", "3rdparty/utf8proc" }, - glm = { "glm", "3rdparty/glm" }, - rapidjson = { "rapidjson", "3rdparty/rapidjson/include" }, - pugixml = { "pugixml", "3rdparty/pugixml/src" }, -} - --- system lib options -newoption { - trigger = 'with-system-asio', - description = 'Use system Asio library', -} - -newoption { - trigger = 'with-system-expat', - description = 'Use system Expat library', -} - -newoption { - trigger = 'with-system-zlib', - description = 'Use system Zlib library', -} - -newoption { - trigger = 'with-system-jpeg', - description = 'Use system JPEG library', -} - -newoption { - trigger = 'with-system-flac', - description = 'Use system FLAC library', -} - -newoption { - trigger = 'with-system-sqlite3', - description = 'Use system SQLite library', -} - -newoption { - trigger = 'with-system-portmidi', - description = 'Use system PortMidi library', -} - -newoption { - trigger = 'with-system-portaudio', - description = 'Use system PortAudio library', -} - -newoption { - trigger = "with-system-lua", - description = "Use system LUA library", -} - -newoption { - trigger = "with-system-utf8proc", - description = "Use system utf8proc library", -} - -newoption { - trigger = "with-system-glm", - description = "Use system glm library", -} - -newoption { - trigger = "with-system-rapidjson", - description = "Use system rapidjson library", -} - -newoption { - trigger = "with-system-pugixml", - description = "Use system pugixml library", -} - --- build helpers -function ext_lib(lib) - local opt = _OPTIONS["with-system-" .. lib] - if (opt~=nil and opt=="1") then - default = extlibs[lib][1] - else - default = lib - end - return ext_best(lib, default, 1) -end - -function ext_includedir(lib) - local opt = _OPTIONS["with-system-" .. lib] - if (opt==nil or opt=="0") then - -- using bundled, prepend MAME_DIR - default = MAME_DIR .. extlibs[lib][2] - else - default = "" - end - return ext_best(lib, default, 2) -end - -function ext_best(lib, default, idx) - local opt = _OPTIONS["with-system-" .. lib] - local found = default - if (opt~=nil and opt~="0" and opt~="1") then - -- override default if provided (format ) - local x = opt:explode(":") - if x[idx]~=nil then - local y = x[idx]:explode(",") - if y[1]~=nil then - found = y - else - found = x[idx] - end - end - end - return found -end diff --git a/unused/scripts/genie.lua b/unused/scripts/genie.lua deleted file mode 100644 index b2d3d47..0000000 --- a/unused/scripts/genie.lua +++ /dev/null @@ -1,1469 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team -STANDALONE = false - --- Big project specific -premake.make.makefile_ignore = true -premake._checkgenerate = false - -newoption { - trigger = 'build-dir', - description = 'Build directory name', -} - -premake.check_paths = true -premake.make.override = { "TARGET" } - -MAME_DIR = (path.getabsolute("..") .. "/") ---MAME_DIR = string.gsub(MAME_DIR, "(%s)", "\\%1") -local MAME_BUILD_DIR = (MAME_DIR .. _OPTIONS["build-dir"] .. "/") -local naclToolchain = "" - -newoption { - trigger = "precompile", - description = "Precompiled headers generation.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -function backtick(cmd) - result = string.gsub(string.gsub(os.outputof(cmd), "\r?\n$", ""), " $", "") - return result -end - -function str_to_version(str) - local val = 0 - if (str == nil or str == '') then - return val - end - local cnt = 10000 - for word in string.gmatch(str, '([^.]+)') do - if(tonumber(word) == nil) then - return val - end - val = val + tonumber(word) * cnt - cnt = cnt / 100 - end - return val -end - -function findfunction(x) - assert(type(x) == "string") - local f=_G - for v in x:gmatch("[^%.]+") do - if type(f) ~= "table" then - return nil, "looking for '"..v.."' expected table, not "..type(f) - end - f=f[v] - end - if type(f) == "function" then - return f - else - return nil, "expected function, not "..type(f) - end -end - -function layoutbuildtask(_folder, _name) - return { MAME_DIR .. "src/".._folder.."/".. _name ..".lay" , GEN_DIR .. _folder .. "/".._name..".lh", - { MAME_DIR .. "scripts/build/complay.py" }, {"@echo Compressing src/".._folder.."/".._name..".lay...", PYTHON .. " $(1) $(<) $(@) layout_".._name }}; -end - -function precompiledheaders() - if _OPTIONS["precompile"]==nil or (_OPTIONS["precompile"]~=nil and _OPTIONS["precompile"]=="1") then - pchheader("emu.h") - configuration { } - end -end - -function precompiledheaders_novs() - precompiledheaders() - if string.sub(_ACTION,1,4) == "vs20" then - --print("Disabling pch for Visual Studio") - flags { - "NoPCH" - } - end -end - -function addprojectflags() - local version = str_to_version(_OPTIONS["gcc_version"]) - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then - buildoptions_cpp { - "-Wsuggest-override", - "-flifetime-dse=1", - } - end -end - -function opt_tool(hash, entry) - if _OPTIONS["with-tools"] then - hash[entry] = true - return true - end - return hash[entry] -end - -CPUS = {} -SOUNDS = {} -MACHINES = {} -VIDEOS = {} -BUSES = {} -FORMATS = {} - -newoption { - trigger = "with-tools", - description = "Enable building tools.", -} - -newoption { - trigger = "with-tests", - description = "Enable building tests.", -} - -newoption { - trigger = "with-benchmarks", - description = "Enable building benchmarks.", -} - -newoption { - trigger = "osd", - description = "Choose OSD layer implementation", -} - -newoption { - trigger = "targetos", - description = "Choose target OS", - allowed = { - { "android", "Android" }, - { "asmjs", "Emscripten/asm.js" }, - { "freebsd", "FreeBSD" }, - { "netbsd", "NetBSD" }, - { "openbsd", "OpenBSD" }, - { "linux", "Linux" }, - { "macosx", "OSX" }, - { "windows", "Windows" }, - { "haiku", "Haiku" }, - { "solaris", "Solaris SunOS" }, - }, -} - -newoption { - trigger = 'with-bundled-sdl2', - description = 'Build bundled SDL2 library', -} - -newoption { - trigger = "distro", - description = "Choose distribution", - allowed = { - { "generic", "generic" }, - { "debian-stable", "debian-stable" }, - { "ubuntu-intrepid", "ubuntu-intrepid" }, - }, -} - -newoption { - trigger = "target", - description = "Building target", -} - -newoption { - trigger = "subtarget", - description = "Building subtarget", -} - -newoption { - trigger = "gcc_version", - description = "GCC compiler version", -} - -newoption { - trigger = "CC", - description = "CC replacement", -} - -newoption { - trigger = "CXX", - description = "CXX replacement", -} - -newoption { - trigger = "LD", - description = "LD replacement", -} - -newoption { - trigger = "AR", - description = "AR replacement", -} - -newoption { - trigger = "TOOLCHAIN", - description = "Toolchain prefix" -} - -newoption { - trigger = "PROFILE", - description = "Enable profiling.", -} - -newoption { - trigger = "SYMBOLS", - description = "Enable symbols.", -} - -newoption { - trigger = "SYMLEVEL", - description = "Symbols level.", -} - -newoption { - trigger = "PROFILER", - description = "Include the internal profiler.", -} - -newoption { - trigger = "OPTIMIZE", - description = "Optimization level.", -} - -newoption { - trigger = "ARCHOPTS", - description = "Additional options for target C/C++/Objective-C/Objective-C++ compilers and linker.", -} - -newoption { - trigger = "ARCHOPTS_C", - description = "Additional options for target C++ compiler.", -} - -newoption { - trigger = "ARCHOPTS_CXX", - description = "Additional options for target C++ compiler.", -} - -newoption { - trigger = "ARCHOPTS_OBJC", - description = "Additional options for target Objective-C compiler.", -} - -newoption { - trigger = "ARCHOPTS_OBJCXX", - description = "Additional options for target Objective-C++ compiler.", -} - -newoption { - trigger = "OPT_FLAGS", - description = "OPT_FLAGS.", -} - -newoption { - trigger = "LDOPTS", - description = "Additional linker options", -} - -newoption { - trigger = "MAP", - description = "Generate a link map.", -} - -newoption { - trigger = "NOASM", - description = "Disable implementations based on assembler code", - allowed = { - { "0", "Enable assembler code" }, - { "1", "Disable assembler code" }, - }, -} - -newoption { - trigger = "BIGENDIAN", - description = "Build for big endian target", - allowed = { - { "0", "Little endian target" }, - { "1", "Big endian target" }, - }, -} - -newoption { - trigger = "FORCE_DRC_C_BACKEND", - description = "Force DRC C backend.", -} - -newoption { - trigger = "NOWERROR", - description = "NOWERROR", -} - -newoption { - trigger = "DEPRECATED", - description = "Generate deprecation warnings during compilation.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "LTO", - description = "Clang link time optimization.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "SSE2", - description = "SSE2 optimized code and SSE2 code generation.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "SSE3", - description = "SSE3 optimized code and SSE3 code generation.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "OPENMP", - description = "OpenMP optimized code.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "SEPARATE_BIN", - description = "Use separate bin folders.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "PYTHON_EXECUTABLE", - description = "Python executable.", -} - -newoption { - trigger = "SHADOW_CHECK", - description = "Shadow checks.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - -newoption { - trigger = "STRIP_SYMBOLS", - description = "Symbols stripping.", - allowed = { - { "0", "Disabled" }, - { "1", "Enabled" }, - } -} - - -newoption { - trigger = "SHLIB", - description = "Generate shared libs.", - allowed = { - { "0", "Static libs" }, - { "1", "Shared libs" }, - } -} - -newoption { - trigger = "SOURCES", - description = "List of sources to compile.", -} - -newoption { - trigger = "PLATFORM", - description = "Target machine platform (x86,arm,...)", -} - -newoption { - trigger = "DEBUG_DIR", - description = "Default directory for debugger.", -} - -newoption { - trigger = "DEBUG_ARGS", - description = "Arguments for running debug build.", -} - -newoption { - trigger = "WEBASSEMBLY", - description = "Produce WebAssembly output when building with Emscripten.", -} - -newoption { - trigger = "SANITIZE", - description = "Specifies the santizer(s) to use." -} - -newoption { - trigger = "PROJECT", - description = "Select projects to be built. Will look into project folder for files.", -} - -dofile ("extlib.lua") - -if _OPTIONS["SHLIB"]=="1" then - LIBTYPE = "SharedLib" -else - LIBTYPE = "StaticLib" -end - -PYTHON = "python3" - -if _OPTIONS["PYTHON_EXECUTABLE"]~=nil then - PYTHON = _OPTIONS["PYTHON_EXECUTABLE"] -end - -if not _OPTIONS["BIGENDIAN"] then - _OPTIONS["BIGENDIAN"] = "0" -end - -if _OPTIONS["NOASM"]=="1" and not _OPTIONS["FORCE_DRC_C_BACKEND"] then - _OPTIONS["FORCE_DRC_C_BACKEND"] = "1" -end - -if(_OPTIONS["TOOLCHAIN"] == nil) then - _OPTIONS['TOOLCHAIN'] = "" -end - -GEN_DIR = MAME_BUILD_DIR .. "generated/" - -if (_OPTIONS["target"] == nil) then return false end -if (_OPTIONS["subtarget"] == nil) then return false end - -if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then - solution (_OPTIONS["target"]) -else - if (_OPTIONS["subtarget"]=="mess") then - solution (_OPTIONS["subtarget"]) - else - solution (_OPTIONS["target"] .. _OPTIONS["subtarget"]) - end -end - - -configurations { - "Debug", - "Release", -} - -platforms { - "x32", - "x64", - "Native", -- for targets where bitness is not specified -} - -language "C++" - -flags { - "StaticRuntime", - "Cpp17", -} - -configuration { "vs20*" } - buildoptions { - "/bigobj", - } - buildoptions_cpp { - "/Zc:__cplusplus", - } - flags { - "ExtraWarnings", - } - if not _OPTIONS["NOWERROR"] then - flags{ - "FatalWarnings", - } - end - - -configuration { "Debug", "vs20*" } - flags { - "Symbols", - "NoMultiProcessorCompilation", - } - -configuration { "Release", "vs20*" } - flags { - "Optimize", - "NoEditAndContinue", - "NoIncrementalLink", - } - if _OPTIONS["SYMBOLS"] then - flags { - "Symbols", - } - end - --- Force Visual Studio targets to use bundled SDL2 -if string.sub(_ACTION,1,4) == "vs20" and _OPTIONS["osd"]=="sdl" then - if _OPTIONS["with-bundled-sdl2"]==nil then - _OPTIONS["with-bundled-sdl2"] = "1" - end -end --- Build SDL2 for Android -if _OPTIONS["targetos"] == "android" then - _OPTIONS["with-bundled-sdl2"] = "1" -end - -configuration {} - -if _OPTIONS["osd"] == "uwp" then - windowstargetplatformversion("10.0.14393.0") - windowstargetplatformminversion("10.0.14393.0") - premake._filelevelconfig = true -end - -msgcompile ("Compiling $(subst ../,,$<)...") - -msgcompile_objc ("Objective-C compiling $(subst ../,,$<)...") - -msgresource ("Compiling resources $(subst ../,,$<)...") - -msglinking ("Linking $(notdir $@)...") - -msgarchiving ("Archiving $(notdir $@)...") - -msgprecompile ("Precompiling $(subst ../,,$<)...") - -messageskip { "SkipCreatingMessage", "SkipBuildingMessage", "SkipCleaningMessage" } - -if (_OPTIONS["PROJECT"] ~= nil) then - PROJECT_DIR = path.join(path.getabsolute(".."),"projects",_OPTIONS["PROJECT"]) .. "/" - if (not os.isfile(path.join("..", "projects", _OPTIONS["PROJECT"], "scripts", "target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))) then - error("File definition for TARGET=" .. _OPTIONS["target"] .. " SUBTARGET=" .. _OPTIONS["subtarget"] .. " does not exist") - end - dofile (path.join(".." ,"projects", _OPTIONS["PROJECT"], "scripts", "target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua")) -end -if (_OPTIONS["SOURCES"] == nil and _OPTIONS["PROJECT"] == nil) then - if (not os.isfile(path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))) then - error("File definition for TARGET=" .. _OPTIONS["target"] .. " SUBTARGET=" .. _OPTIONS["subtarget"] .. " does not exist") - end - dofile (path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua")) -end - -configuration { "gmake or ninja" } - flags { - "SingleOutputDir", - } - -dofile ("toolchain.lua") - -if _OPTIONS["targetos"]=="windows" then - configuration { "x64" } - defines { - "X64_WINDOWS_ABI", - } - configuration { } -end - --- Avoid error when invoking genie --help. -if (_ACTION == nil) then return false end - --- define PTR64 if we are a 64-bit target -configuration { "x64 or android-*64"} - defines { "PTR64=1" } - --- define MAME_DEBUG if we are a debugging build -configuration { "Debug" } - defines { - "MAME_DEBUG", - "MAME_PROFILER", --- "BGFX_CONFIG_DEBUG=1", - } - -configuration { } - -if _OPTIONS["PROFILER"]=="1" then - defines{ - "MAME_PROFILER", -- define MAME_PROFILER if we are a profiling build - } -end - -configuration { "Release" } - defines { - "NDEBUG", - } - -configuration { } - --- CR/LF setup: use on win32, CR only on everything else -if _OPTIONS["targetos"]=="windows" then - defines { - "CRLF=3", - } -else - defines { - "CRLF=2", - } -end - - -if _OPTIONS["BIGENDIAN"]=="1" then - if _OPTIONS["targetos"]=="macosx" then - defines { - "OSX_PPC", - } - buildoptions { - "-Wno-unused-label", - "-flax-vector-conversions", - } - if _OPTIONS["SYMBOLS"] then - buildoptions { - "-mlong-branch", - } - end - configuration { "x64" } - buildoptions { - "-arch ppc64", - } - linkoptions { - "-arch ppc64", - } - configuration { "x32" } - buildoptions { - "-arch ppc", - } - linkoptions { - "-arch ppc", - } - configuration { } - end -else - defines { - "LSB_FIRST", - } - if _OPTIONS["targetos"]=="macosx" then - configuration { "arm64" } - buildoptions { - "-arch arm64", - } - linkoptions { - "-arch arm64", - } - configuration { "x64", "not arm64" } - buildoptions { - "-arch x86_64", - } - linkoptions { - "-arch x86_64", - } - configuration { "x32", "not arm64" } - buildoptions { - "-arch i386", - } - linkoptions { - "-arch i386", - } - configuration { } - end -end - -if _OPTIONS["with-system-jpeg"]~=nil then - defines { - "XMD_H", - } -end - -if not _OPTIONS["with-system-flac"]~=nil then - defines { - "FLAC__NO_DLL", - } -end - -if not _OPTIONS["with-system-pugixml"] then - defines { - "PUGIXML_HEADER_ONLY", - } -else - links { - ext_lib("pugixml"), - } -end - -if _OPTIONS["NOASM"]=="1" then - defines { - "MAME_NOASM" - } -end - -if not _OPTIONS["FORCE_DRC_C_BACKEND"] then - if _OPTIONS["BIGENDIAN"]~="1" then - configuration { "x64" } - defines { - "NATIVE_DRC=drcbe_x64", - } - configuration { "x32" } - defines { - "NATIVE_DRC=drcbe_x86", - } - configuration { } - end -end - - defines { - "LUA_COMPAT_ALL", - "LUA_COMPAT_5_1", - "LUA_COMPAT_5_2", - } - - if _ACTION == "gmake" or _ACTION == "ninja" then - - --we compile C-only to C99 standard with GNU extensions - - buildoptions_c { - "-std=gnu99", - } - -local version = str_to_version(_OPTIONS["gcc_version"]) - buildoptions_cpp { - "-std=c++17", - } - - buildoptions_objcpp { - "-std=c++17", - } --- this speeds it up a bit by piping between the preprocessor/compiler/assembler - buildoptions { - "-pipe", - } --- add -g if we need symbols, and ensure we have frame pointers -if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~="0" then - buildoptions { - "-g" .. _OPTIONS["SYMLEVEL"], - "-fno-omit-frame-pointer", - "-fno-optimize-sibling-calls", - } -end - ---# we need to disable some additional implicit optimizations for profiling -if _OPTIONS["PROFILE"] then - buildoptions { - "-mno-omit-leaf-frame-pointer", - } -end --- add -v if we need verbose build information -if _OPTIONS["VERBOSE"] then - buildoptions { - "-v", - } -end - --- only show shadow warnings when enabled -if (_OPTIONS["SHADOW_CHECK"]=="1") then - buildoptions { - "-Wshadow" - } -end - --- only show deprecation warnings when enabled -if _OPTIONS["DEPRECATED"]=="0" then - buildoptions { - "-Wno-deprecated-declarations" - } -end - --- add profiling information for the compiler -if _OPTIONS["PROFILE"] then - buildoptions { - "-pg", - } - linkoptions { - "-pg", - } -end - -if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~="0" then - flags { - "Symbols", - } -end - --- add the error warning flag -if _OPTIONS["NOWERROR"]==nil then - buildoptions { - "-Werror", - } -end - --- if we are optimizing, include optimization options -if _OPTIONS["OPTIMIZE"] then - buildoptions { - "-O".. _OPTIONS["OPTIMIZE"], - "-fno-strict-aliasing" - } - if _OPTIONS["OPT_FLAGS"] then - buildoptions { - _OPTIONS["OPT_FLAGS"] - } - end - if _OPTIONS["LTO"]=="1" then - buildoptions { --- windows native mingw GCC 5.2 fails with -flto=x with x > 1. bug unfixed as of this commit - "-flto=1", --- if ld fails, just buy more RAM or uncomment this! --- "-Wl,-no-keep-memory", - "-Wl,-v", --- silence redefine warnings from discrete.c. - "-Wl,-allow-multiple-definition", - "-fuse-linker-plugin", --- these next flags allow MAME to compile in GCC 5.2. odr warnings should be fixed as LTO randomly crashes otherwise --- some GCC 4.9.x on Windows do not have -Wodr and -flto-odr-type-merging enabled. adjust accordingly... --- no-fat-lto-objects is faster to compile and uses less memory, but you can't mix with a non-lto .o/.a without rebuilding - "-fno-fat-lto-objects", - "-flto-odr-type-merging", - "-Wodr", - "-flto-compression-level=0", -- lto doesn't work with anything <9 on linux with < 12G RAM, much slower if <> 0 --- "-flto-report", -- if you get an error in lto after [WPA] stage, but before [LTRANS] stage, you need more memory! --- "-fmem-report-wpa","-fmem-report","-fpre-ipa-mem-report","-fpost-ipa-mem-report","-flto-report-wpa","-fmem-report", --- this six flag combo lets MAME compile with LTO=1 on linux with no errors and ~2% speed boost, but compile time is much longer --- if you are going to wait on lto, you might as well enable these for GCC --- "-fdevirtualize-at-ltrans","-fgcse-sm","-fgcse-las", --- "-fipa-pta","-fipa-icf","-fvariable-expansion-in-unroller", - } --- same flags are needed by linker - linkoptions { - "-flto=1", --- "-Wl,-no-keep-memory", - "-Wl,-v", - "-Wl,-allow-multiple-definition", - "-fuse-linker-plugin", - "-fno-fat-lto-objects", - "-flto-odr-type-merging", - "-Wodr", - "-flto-compression-level=0", -- lto doesn't work with anything <9 on linux with < 12G RAM, much slower if <> 0 --- "-flto-report", -- if you get an error in lto after [WPA] stage, but before [LTRANS] stage, you need more memory! --- "-fmem-report-wpa","-fmem-report","-fpre-ipa-mem-report","-fpost-ipa-mem-report","-flto-report-wpa","-fmem-report", --- this six flag combo lets MAME compile with LTO=1 on linux with no errors and ~2% speed boost, but compile time is much longer --- if you are going to wait on lto, you might as well enable these for GCC --- "-fdevirtualize-at-ltrans","-fgcse-sm","-fgcse-las", --- "-fipa-pta","-fipa-icf","-fvariable-expansion-in-unroller", - - } - - end -end - -configuration { "mingw-clang" } - buildoptions { - "-Xclang -flto-visibility-public-std", -- workround for __imp___ link errors - "-Wno-nonportable-include-path", -- workround for clang 9.0.0 case sensitivity bug when including GL/glext.h - } -configuration { } - -if _OPTIONS["ARCHOPTS"] then - buildoptions { - _OPTIONS["ARCHOPTS"] - } - linkoptions { - _OPTIONS["ARCHOPTS"] - } -end - -if _OPTIONS["ARCHOPTS_C"] then - buildoptions_c { - _OPTIONS["ARCHOPTS_C"] - } -end - -if _OPTIONS["ARCHOPTS_CXX"] then - buildoptions_cpp { - _OPTIONS["ARCHOPTS_CXX"] - } -end - -if _OPTIONS["ARCHOPTS_OBJC"] then - buildoptions_objc { - _OPTIONS["ARCHOPTS_OBJC"] - } -end - -if _OPTIONS["ARCHOPTS_OBJCXX"] then - buildoptions_objcpp { - _OPTIONS["ARCHOPTS_OBJCXX"] - } -end - -if _OPTIONS["SHLIB"] then - buildoptions { - "-fPIC" - } -end - -if _OPTIONS["SSE2"]=="1" then - buildoptions { - "-msse", - "-msse2" - } -end - -if _OPTIONS["SSE3"]=="1" then - buildoptions { - "-msse", - "-msse2", - "-msse3" - } -end - - -if _OPTIONS["OPENMP"]=="1" then - buildoptions { - "-fopenmp", - } - linkoptions { - "-fopenmp" - } - defines { - "USE_OPENMP=1", - } - -else - buildoptions { - "-Wno-unknown-pragmas", - } -end - -if _OPTIONS["LDOPTS"] then - linkoptions { - _OPTIONS["LDOPTS"] - } -end - -if _OPTIONS["MAP"] then - if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then - linkoptions { - "-Wl,-Map," .. "../../../../" .. _OPTIONS["target"] .. ".map" - } - else - linkoptions { - "-Wl,-Map," .. "../../../../" .. _OPTIONS["target"] .. _OPTIONS["subtarget"] .. ".map" - } - - end -end - - --- add a basic set of warnings - buildoptions { - "-Wall", - "-Wcast-align", - "-Wformat-security", - "-Wundef", - "-Wwrite-strings", - "-Wno-conversion", - "-Wno-sign-compare", - "-Wno-error=deprecated-declarations", - } --- warnings only applicable to C compiles - buildoptions_c { - "-Wpointer-arith", - "-Wstrict-prototypes", - } - -if _OPTIONS["targetos"]~="freebsd" then - buildoptions_c { - "-Wbad-function-cast", - } -end - --- warnings only applicable to OBJ-C compiles - buildoptions_objcpp { - "-Wpointer-arith", - } - --- warnings only applicable to C++ compiles - buildoptions_cpp { - "-Woverloaded-virtual", - } - -if _OPTIONS["SANITIZE"] then - buildoptions { - "-fsanitize=".. _OPTIONS["SANITIZE"] - } - linkoptions { - "-fsanitize=".. _OPTIONS["SANITIZE"] - } - if string.find(_OPTIONS["SANITIZE"], "address") then - buildoptions { - "-fsanitize-address-use-after-scope" - } - linkoptions { - "-fsanitize-address-use-after-scope" - } - end - if string.find(_OPTIONS["SANITIZE"], "undefined") then - -- 'function' produces errors without delegates by design - -- 'alignment' produces a lot of errors which we are not interested in - buildoptions { - "-fno-sanitize=function", - "-fno-sanitize=alignment" - } - linkoptions { - "-fno-sanitize=function", - "-fno-sanitize=alignment" - } - end -end - ---ifneq (,$(findstring thread,$(SANITIZE))) ---CCOMFLAGS += -fPIE ---endif - - - - local version = str_to_version(_OPTIONS["gcc_version"]) - if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then - if (version < 60000) then - print("Clang version 6.0 or later needed") - os.exit(-1) - end - buildoptions { - "-fdiagnostics-show-note-include-stack", - "-Wno-cast-align", - "-Wno-constant-logical-operand", - "-Wno-extern-c-compat", - "-Wno-ignored-qualifiers", - "-Wno-pragma-pack", -- clang 6.0 complains when the packing change lifetime is not contained within a header file. - "-Wno-tautological-compare", - "-Wno-unknown-attributes", - "-Wno-unknown-warning-option", - "-Wno-unused-value", - "-Wno-unused-const-variable", - } - if (version < 70000) or ((version < 100001) and (_OPTIONS["targetos"] == 'macosx')) then - buildoptions { -- clang 6.0 complains that [[maybe_unused]] is ignored for static data members - "-Wno-error=ignored-attributes", - "-Wno-error=unused-const-variable", - } - end - if ((version >= 100000) and (_OPTIONS["targetos"] ~= 'macosx')) or (version >= 120000) then - buildoptions { - "-Wno-xor-used-as-pow", -- clang 10.0 complains that expressions like 10 ^ 7 look like exponention - } - end - else - if (version < 70000) then - print("GCC version 7.0 or later needed") - os.exit(-1) - end - buildoptions_cpp { - "-Wimplicit-fallthrough", - } - buildoptions_objcpp { - "-Wimplicit-fallthrough", - } - buildoptions { - "-Wno-unused-result", -- needed for fgets,fread on linux - -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) - "-Wno-array-bounds", - "-Wno-error=attributes", -- GCC fails to recognize some uses of [[maybe_unused]] - } - if (version >= 80000) then - buildoptions { - "-Wno-format-overflow", -- try machine/bfm_sc45_helper.cpp in GCC 8.0.1, among others - "-Wno-stringop-truncation", -- ImGui again - "-Wno-stringop-overflow", -- formats/victor9k_dsk.cpp bugs the compiler - } - buildoptions_cpp { - "-Wno-class-memaccess", -- many instances in ImGui and BGFX - } - end - if (version >= 100000) then - buildoptions { - "-Wno-return-local-addr", -- sqlite3.c in GCC 10 - } - end - if (version >= 110000) then - buildoptions { - "-Wno-nonnull", -- luaengine.cpp lambdas do not need "this" captured but GCC 11.1 erroneously insists - "-Wno-stringop-overread", -- machine/bbc.cpp in GCC 11.1 - "-Wno-misleading-indentation", -- sqlite3.c in GCC 11.1 - "-Wno-maybe-uninitialized" -- expat in GCC 11.1 - } - end - end - end - -if (_OPTIONS["PLATFORM"]=="alpha") then - defines { - "PTR64=1", - } -end - -if (_OPTIONS["PLATFORM"]=="arm") then - buildoptions { - "-Wno-cast-align", - } -end - -if (_OPTIONS["PLATFORM"]=="arm64") then - buildoptions { - "-Wno-cast-align", - } - defines { - "PTR64=1", - } -end - -if (_OPTIONS["PLATFORM"]=="riscv64") then - defines { - "PTR64=1", - } -end - -if (_OPTIONS["PLATFORM"]=="mips64") then - defines { - "PTR64=1", - } -end - -local subdir -if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then - subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"] -else - subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"] .. _OPTIONS["subtarget"] -end - -if not toolchain(MAME_BUILD_DIR, subdir) then - return -- no action specified -end - -configuration { "asmjs" } - buildoptions { - "-std=gnu89", - "-Wno-implicit-function-declaration", - "-s USE_SDL_TTF=2", - } - buildoptions_cpp { - "-std=c++17", - "-s DISABLE_EXCEPTION_CATCHING=2", - "-s EXCEPTION_CATCHING_WHITELIST=\"['_ZN15running_machine17start_all_devicesEv','_ZN12cli_frontend7executeEiPPc','_ZN8chd_file11open_commonEb','_ZN8chd_file13read_metadataEjjRNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE','_ZN8chd_file13read_metadataEjjRNSt3__26vectorIhNS0_9allocatorIhEEEE','_ZNK19netlist_mame_device19base_validity_checkER16validity_checker']\"", - } - linkoptions { - "-Wl,--start-group", - "-r", - } - archivesplit_size "20" - -configuration { "android*" } - buildoptions { - "-Wno-undef", - "-Wno-typedef-redefinition", - "-Wno-unknown-warning-option", - "-Wno-incompatible-ms-struct", - } - buildoptions_cpp { - "-std=c++17", - "-Wno-extern-c-compat", - "-Wno-tautological-constant-out-of-range-compare", - "-Wno-tautological-pointer-compare", - } - archivesplit_size "20" - -configuration { "android-arm64" } - buildoptions { - "-Wno-asm-operand-widths", - } - -configuration { "linux-*"} - links { - "dl", - "rt", - } - if _OPTIONS["distro"]=="debian-stable" then - defines - { - "NO_AFFINITY_NP", - } - end - - - -configuration { "osx*" } - links { - "pthread", - } - -configuration { "mingw*" } - if _OPTIONS["osd"]=="sdl" then - linkoptions { - "-Wl,--start-group", - } - else - linkoptions { - "-static", - } - flags { - "LinkSupportCircularDependencies", - } - end - links { - "user32", - "winmm", - "advapi32", - "shlwapi", - "wsock32", - "ws2_32", - "psapi", - "iphlpapi", - "shell32", - "userenv", - } - -configuration { "vs20*" } - defines { - "XML_STATIC", - "WIN32", - "_WIN32", - "_CRT_NONSTDC_NO_DEPRECATE", - "_CRT_SECURE_NO_DEPRECATE", - "_CRT_STDIO_LEGACY_WIDE_SPECIFIERS", - } - - links { - "user32", - "winmm", - "advapi32", - "shlwapi", - "wsock32", - "ws2_32", - "psapi", - "iphlpapi", - "shell32", - "userenv", - } - - buildoptions { - "/WX", -- Treats all compiler warnings as errors. - "/w45038", -- warning C5038: data member 'member1' will be initialized after data member 'member2' - } - - buildoptions { - "/wd4003", -- warning C4003: not enough actual parameters for macro 'xxx' - "/wd4005", -- warning C4005: The macro identifier is defined twice. The compiler uses the second macro definition - "/wd4018", -- warning C4018: 'x' : signed/unsigned mismatch - "/wd4060", -- warning C4060: switch statement contains no 'case' or 'default' labels - "/wd4065", -- warning C4065: switch statement contains 'default' but no 'case' labels - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4146", -- warning C4146: unary minus operator applied to unsigned type, result still unsigned - "/wd4201", -- warning C4201: nonstandard extension used : nameless struct/union - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4245", -- warning C4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch - "/wd4250", -- warning C4250: 'xxx' : inherits 'xxx' via dominance - "/wd4267", -- warning C4267: 'var' : conversion from 'size_t' to 'type', possible loss of data - "/wd4310", -- warning C4310: cast truncates constant value - "/wd4319", -- warning C4319: 'operator' : zero extending 'type' to 'type' of greater size - "/wd4324", -- warning C4324: 'xxx' : structure was padded due to __declspec(align()) - "/wd4334", -- warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) - "/wd4389", -- warning C4389: 'operator' : signed/unsigned mismatch - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - "/wd4457", -- warning C4457: declaration of 'xxx' hides function parameter - "/wd4458", -- warning C4458: declaration of 'xxx' hides class member - "/wd4459", -- warning C4459: declaration of 'xxx' hides global declaration - "/wd4611", -- warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable - "/wd4702", -- warning C4702: unreachable code - "/wd4706", -- warning C4706: assignment within conditional expression - "/wd4804", -- warning C4804: '>>': unsafe use of type 'bool' in operation - "/wd4805", -- warning C4805: 'x' : unsafe mix of type 'xxx' and type 'xxx' in operation - "/wd4996", -- warning C4996: 'function': was declared deprecated - } - -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd9", -- remark #9: nested comment is not allowed - "/Qwd82", -- remark #82: storage class is not first - "/Qwd111", -- remark #111: statement is unreachable - "/Qwd128", -- remark #128: loop is not reachable - "/Qwd177", -- remark #177: function "xxx" was declared but never referenced - "/Qwd181", -- remark #181: argument of type "UINT32={unsigned int}" is incompatible with format "%d", expecting argument of type "int" - "/Qwd185", -- remark #185: dynamic initialization in unreachable code - "/Qwd280", -- remark #280: selector expression is constant - "/Qwd344", -- remark #344: typedef name has already been declared (with same type) - "/Qwd411", -- remark #411: class "xxx" defines no constructor to initialize the following - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - "/Qwd2545", -- remark #2545: empty dependent statement in "else" clause of if - statement - "/Qwd2553", -- remark #2553: nonstandard second parameter "TCHAR={WCHAR = { __wchar_t } } **" of "main", expected "char *[]" or "char **" extern "C" int _tmain(int argc, TCHAR **argv) - "/Qwd2557", -- remark #2557: comparison between signed and unsigned operands - "/Qwd3280", -- remark #3280: declaration hides member "attotime::seconds" (declared at line 126) static attotime from_seconds(INT32 seconds) { return attotime(seconds, 0); } - - "/Qwd170", -- error #170: pointer points outside of underlying object - "/Qwd188", -- error #188: enumerated type mixed with another type - - "/Qwd63", -- warning #63: shift count is too large - "/Qwd177", -- warning #177: label "xxx" was declared but never referenced - "/Qwd186", -- warning #186: pointless comparison of unsigned integer with zero - "/Qwd488", -- warning #488: template parameter "_FunctionClass" is not used in declaring the parameter types of function template "device_delegate<_Signature>::device_delegate<_FunctionClass>(delegate<_Signature>: - "/Qwd1478", -- warning #1478: function "xxx" (declared at line yyy of "zzz") was declared deprecated - "/Qwd1879", -- warning #1879: unimplemented pragma ignored - "/Qwd3291", -- warning #3291: invalid narrowing conversion from "double" to "int" - "/Qwd1195", -- error #1195: conversion from integer to smaller pointer - "/Qwd47", -- error #47: incompatible redefinition of macro "xxx" - "/Qwd265", -- error #265: floating-point operation result is out of range - -- these occur on a release build, while we can increase the size limits instead some of the files do require extreme amounts - "/Qwd11074", -- remark #11074: Inlining inhibited by limit max-size / remark #11074: Inlining inhibited by limit max-total-size - "/Qwd11075", -- remark #11075: To get full report use -Qopt-report:4 -Qopt-report-phase ipo - } -end - -if _OPTIONS["vs"]=="clangcl" then - buildoptions { - "-Wno-enum-conversion", - "-Wno-ignored-qualifiers", - "-Wno-missing-braces", - "-Wno-missing-field-initializers", - "-Wno-new-returns-null", - "-Wno-nonportable-include-path", - "-Wno-pointer-bool-conversion", - "-Wno-pragma-pack", - "-Wno-switch", - "-Wno-tautological-constant-out-of-range-compare", - "-Wno-tautological-pointer-compare", - "-Wno-unknown-warning-option", - "-Wno-unused-const-variable", - "-Wno-unused-function", - "-Wno-unused-label", - "-Wno-unused-local-typedef", - "-Wno-unused-private-field", - "-Wno-unused-variable", - "-Wno-xor-used-as-pow", - "-Wno-microsoft-cast", - } -end - - linkoptions { - "/ignore:4221", -- LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library - } - includedirs { - MAME_DIR .. "3rdparty/dxsdk/Include" - } - -configuration { } - -if (_OPTIONS["SOURCES"] ~= nil) then - local str = _OPTIONS["SOURCES"] - local sourceargs = "" - for word in string.gmatch(str, '([^,]+)') do - if (not os.isfile(path.join(MAME_DIR, word))) then - print("File " .. word.. " does not exist") - os.exit() - end - sourceargs = sourceargs .. " " .. word - end - OUT_STR = os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py sourcesproject -r " .. MAME_DIR .. " -t " .. _OPTIONS["subtarget"] .. sourceargs ) - load(OUT_STR)() - os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py sourcesfilter" .. sourceargs .. " > ".. GEN_DIR .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"] .. ".flt" ) -end - -group "libs" - -if (not os.isfile(path.join("src", "osd", _OPTIONS["osd"] .. ".lua"))) then - error("Unsupported value '" .. _OPTIONS["osd"] .. "' for OSD") -end -dofile(path.join("src", "osd", _OPTIONS["osd"] .. ".lua")) -dofile(path.join("src", "lib.lua")) -if opt_tool(MACHINES, "NETLIST") then - dofile(path.join("src", "netlist.lua")) -end ---if (STANDALONE~=true) then -dofile(path.join("src", "formats.lua")) -formatsProject(_OPTIONS["target"],_OPTIONS["subtarget"]) ---end - -group "3rdparty" -dofile(path.join("src", "3rdparty.lua")) - - -group "core" - -dofile(path.join("src", "emu.lua")) - -if (STANDALONE~=true) then - dofile(path.join("src", "mame", "frontend.lua")) -end - -group "devices" -dofile(path.join("src", "devices.lua")) -devicesProject(_OPTIONS["target"],_OPTIONS["subtarget"]) - -if (STANDALONE~=true) then - group "drivers" - findfunction("createProjects_" .. _OPTIONS["target"] .. "_" .. _OPTIONS["subtarget"])(_OPTIONS["target"], _OPTIONS["subtarget"]) -end - -group "emulator" -dofile(path.join("src", "main.lua")) -if (_OPTIONS["SOURCES"] == nil) then - if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then - startproject (_OPTIONS["target"]) - else - if (_OPTIONS["subtarget"]=="mess") then - startproject (_OPTIONS["subtarget"]) - else - startproject (_OPTIONS["target"] .. _OPTIONS["subtarget"]) - end - end -else - startproject (_OPTIONS["subtarget"]) -end -mainProject(_OPTIONS["target"],_OPTIONS["subtarget"]) -strip() - -if _OPTIONS["with-tools"] then - group "tools" - dofile(path.join("src", "tools.lua")) -end - -if _OPTIONS["with-tests"] then - group "tests" - dofile(path.join("src", "tests.lua")) -end - -if _OPTIONS["with-benchmarks"] then - group "benchmarks" - dofile(path.join("src", "benchmarks.lua")) -end - -function generate_has_header(hashname, hash) - fname = GEN_DIR .. "has_" .. hashname:lower() .. ".h" - file = io.open(fname, "w") - file:write("// Generated file, edition is futile\n") - file:write("\n") - file:write(string.format("#ifndef GENERATED_HAS_%s_H\n", hashname)) - file:write(string.format("#define GENERATED_HAS_%s_H\n", hashname)) - file:write("\n") - for k, v in pairs(hash) do - if v then - file:write(string.format("#define HAS_%s_%s\n", hashname, k)) - end - end - file:write("\n") - file:write("#endif\n") - file:close() -end - -generate_has_header("CPUS", CPUS) -generate_has_header("SOUNDS", SOUNDS) -generate_has_header("MACHINES", MACHINES) -generate_has_header("VIDEOS", VIDEOS) -generate_has_header("BUSES", BUSES) -generate_has_header("FORMATS", FORMATS) diff --git a/unused/scripts/src/3rdparty.lua b/unused/scripts/src/3rdparty.lua deleted file mode 100644 index 899a78e..0000000 --- a/unused/scripts/src/3rdparty.lua +++ /dev/null @@ -1,2348 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - ---------------------------------------------------------------------------- --- --- 3rdparty.lua --- --- Library objects for all 3rdparty sources --- ---------------------------------------------------------------------------- - --------------------------------------------------- --- expat library objects --------------------------------------------------- - -if not _OPTIONS["with-system-expat"] then -project "expat" - uuid "f4cd40b1-c37c-452d-9785-640f26f0bf54" - kind "StaticLib" - - -- fake out the enough of expat_config.h to get by - -- could possibly add more defines here for specific targets - defines { - "HAVE_MEMMOVE", - "HAVE_STDINT_H", - "HAVE_STDLIB_H", - "HAVE_STRING_H", - "PACKAGE=\"expat\"", - "PACKAGE_BUGREPORT=\"expat-bugs@libexpat.org\"", - "PACKAGE_NAME=\"expat\"", - "PACKAGE_STRING=\"expat 2.2.10\"", - "PACKAGE_TARNAME=\"expat\"", - "PACKAGE_URL=\"\"", - "PACKAGE_VERSION=\"2.2.10\"", - "STDC_HEADERS", - "VERSION=\"2.2.10\"", - "XML_CONTEXT_BYTES=1024", - "XML_DTD", - "XML_NS", - } -if _OPTIONS["BIGENDIAN"]=="1" then - defines { - "BYTEORDER=4321", - "WORDS_BIGENDIAN", - } -else - defines { - "BYTEORDER=1234", - } -end -if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="freebsd" then - defines { - "HAVE_ARC4RANDOM", - } -end -if BASE_TARGETOS=="unix" then - defines { - "HAVE_DLFCN_H", - "HAVE_FCNTL_H", - "HAVE_MMAP", - "HAVE_SYS_STAT_H", - "HAVE_SYS_TYPES_H", - "HAVE_UNISTD_H", - "XML_DEV_URANDOM", - } -end - - configuration { "vs*" } - buildoptions { - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd111", -- remark #111: statement is unreachable - "/Qwd1879", -- warning #1879: unimplemented pragma ignored - "/Qwd2557", -- remark #2557: comparison between signed and unsigned operands - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - } -end - configuration { } - - files { - MAME_DIR .. "3rdparty/expat/lib/xmlparse.c", - MAME_DIR .. "3rdparty/expat/lib/xmlrole.c", - MAME_DIR .. "3rdparty/expat/lib/xmltok.c", - } -else -links { - ext_lib("expat"), -} -end - - --------------------------------------------------- --- zlib library objects --------------------------------------------------- - -if not _OPTIONS["with-system-zlib"] then -project "zlib" - uuid "3d78bd2a-2bd0-4449-8087-42ddfaef7ec9" - kind "StaticLib" - - local version = str_to_version(_OPTIONS["gcc_version"]) - if _OPTIONS["gcc"]~=nil and ((string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android"))) then - configuration { "gmake or ninja" } - if (version >= 30700) then - buildoptions { - "-Wno-shift-negative-value", - } - end - end - - configuration { "vs*" } - buildoptions { - "/wd4131", -- warning C4131: 'xxx' : uses old-style declarator - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd111", -- remark #111: statement is unreachable - "/Qwd280", -- remark #280: selector expression is constant - } -end - configuration "Debug" - defines { - "verbose=-1", - } - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-strict-prototypes", - } - - configuration { } - defines { - "ZLIB_CONST", - } - - files { - MAME_DIR .. "3rdparty/zlib/adler32.c", - MAME_DIR .. "3rdparty/zlib/compress.c", - MAME_DIR .. "3rdparty/zlib/crc32.c", - MAME_DIR .. "3rdparty/zlib/deflate.c", - MAME_DIR .. "3rdparty/zlib/inffast.c", - MAME_DIR .. "3rdparty/zlib/inflate.c", - MAME_DIR .. "3rdparty/zlib/infback.c", - MAME_DIR .. "3rdparty/zlib/inftrees.c", - MAME_DIR .. "3rdparty/zlib/trees.c", - MAME_DIR .. "3rdparty/zlib/uncompr.c", - MAME_DIR .. "3rdparty/zlib/zutil.c", - } -else -links { - ext_lib("zlib"), -} -end - - --------------------------------------------------- --- SoftFloat library objects --------------------------------------------------- - -project "softfloat" - uuid "04fbf89e-4761-4cf2-8a12-64500cf0c5c5" - kind "StaticLib" - - options { - "ForceCPP", - } - - includedirs { - MAME_DIR .. "src/osd", - } - - configuration { "gmake or ninja" } - buildoptions_cpp { - "-x c++", - } - - configuration { "vs*" } - buildoptions { - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4146", -- warning C4146: unary minus operator applied to unsigned type, result still unsigned - "/wd4018", -- warning C4018: 'x' : signed/unsigned mismatch - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd2557", -- remark #2557: comparison between signed and unsigned operands - } -end - configuration { } - - files { - MAME_DIR .. "3rdparty/softfloat/softfloat.c", - MAME_DIR .. "3rdparty/softfloat/fsincos.c", - MAME_DIR .. "3rdparty/softfloat/fpatan.c", - MAME_DIR .. "3rdparty/softfloat/fyl2x.c", - } - - --------------------------------------------------- --- SoftFloat 3 library objects --------------------------------------------------- - -project "softfloat3" -uuid "9c22fc90-53fd-11e8-b566-0800200c9a66" -kind "StaticLib" - -options { - "ForceCPP", -} - -includedirs { - MAME_DIR .. "src/osd", - MAME_DIR .. "3rdparty/softfloat3/build/MAME", - MAME_DIR .. "3rdparty/softfloat3/source", - MAME_DIR .. "3rdparty/softfloat3/source/include", - MAME_DIR .. "3rdparty/softfloat3/source/8086", -} - -configuration { "gmake or ninja" } -buildoptions_cpp { - "-x c++", -} -if _OPTIONS["gcc"]~=nil and not string.find(_OPTIONS["gcc"], "clang") then - buildoptions_cpp { - "-Wno-error=implicit-fallthrough", - } -end - -configuration { "vs*" } -buildoptions { - "/wd4701", -- warning C4701: potentially uninitialized local variable 'xxx' used - "/wd4703", -- warning C4703: potentially uninitialized local pointer variable 'xxx' used -} - -configuration { } -defines { - "SOFTFLOAT_ROUND_ODD", - "INLINE_LEVEL=5", - "SOFTFLOAT_FAST_DIV32TO16", - "SOFTFLOAT_FAST_DIV64TO32", - "SOFTFLOAT_FAST_INT64" -} - -files { - MAME_DIR .. "3rdparty/softfloat3/source/s_eq128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_le128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_lt128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftLeft128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftRight128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftRightJam64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftRightJam64Extra.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftRightJam128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shortShiftRightJam128Extra.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam64Extra.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam128Extra.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_shiftRightJam256M.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_countLeadingZeros8.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_countLeadingZeros16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_countLeadingZeros32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_countLeadingZeros64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_add128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_add256M.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_sub128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_sub256M.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mul64ByShifted32To128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mul64To128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mul128By32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mul128To256M.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_approxRecip_1Ks.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_approxRecip32_1.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_approxRecipSqrt_1Ks.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_approxRecipSqrt32_1.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/softfloat_raiseFlags.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_commonNaNToF16UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_propagateNaNF16UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_f32UIToCommonNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_commonNaNToF32UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_propagateNaNF32UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_f64UIToCommonNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_commonNaNToF64UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_propagateNaNF64UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/extF80M_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_extF80UIToCommonNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_commonNaNToExtF80UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_propagateNaNExtF80UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/f128M_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_f128UIToCommonNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_commonNaNToF128UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/8086/s_propagateNaNF128UI.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundToUI32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundToUI64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundToI32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundToI64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normSubnormalF16Sig.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundPackToF16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normRoundPackToF16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_addMagsF16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_subMagsF16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mulAddF16.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normSubnormalF32Sig.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundPackToF32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normRoundPackToF32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_addMagsF32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_subMagsF32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mulAddF32.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normSubnormalF64Sig.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundPackToF64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normRoundPackToF64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_addMagsF64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_subMagsF64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mulAddF64.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normSubnormalExtF80Sig.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundPackToExtF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normRoundPackToExtF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_addMagsExtF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_subMagsExtF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normSubnormalF128Sig.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_roundPackToF128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_normRoundPackToF128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_addMagsF128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_subMagsF128.c", - MAME_DIR .. "3rdparty/softfloat3/source/s_mulAddF128.c", - MAME_DIR .. "3rdparty/softfloat3/source/softfloat_state.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui32_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/ui64_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/i32_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/i64_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_mulAdd.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f16_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_mulAdd.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f32_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_mulAdd.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f64_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_to_f128.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_to_f128M.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/extF80M_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_extF80.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_mulAdd.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_lt_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128_isSignalingNaN.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_ui32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_ui64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_i32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_i64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_ui32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_ui64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_i32_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_i64_r_minMag.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_f16.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_f32.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_extF80M.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_to_f64.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_roundToInt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_add.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_sub.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_mul.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_mulAdd.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_div.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_rem.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_sqrt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_eq.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_le.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_lt.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_eq_signaling.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_le_quiet.c", - MAME_DIR .. "3rdparty/softfloat3/source/f128M_lt_quiet.c", -} - - -------------------------------------------------- --- libJPEG library objects --------------------------------------------------- - -if not _OPTIONS["with-system-jpeg"] then -project "jpeg" - uuid "447c6800-dcfd-4c48-b72a-a8223bb409ca" - kind "StaticLib" - - configuration { "vs*" } - buildoptions { - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - } -end - - configuration { } - - files { - MAME_DIR .. "3rdparty/libjpeg/jaricom.c", - MAME_DIR .. "3rdparty/libjpeg/jcapimin.c", - MAME_DIR .. "3rdparty/libjpeg/jcapistd.c", - MAME_DIR .. "3rdparty/libjpeg/jcarith.c", - MAME_DIR .. "3rdparty/libjpeg/jccoefct.c", - MAME_DIR .. "3rdparty/libjpeg/jccolor.c", - MAME_DIR .. "3rdparty/libjpeg/jcdctmgr.c", - MAME_DIR .. "3rdparty/libjpeg/jchuff.c", - MAME_DIR .. "3rdparty/libjpeg/jcinit.c", - MAME_DIR .. "3rdparty/libjpeg/jcmainct.c", - MAME_DIR .. "3rdparty/libjpeg/jcmarker.c", - MAME_DIR .. "3rdparty/libjpeg/jcmaster.c", - MAME_DIR .. "3rdparty/libjpeg/jcomapi.c", - MAME_DIR .. "3rdparty/libjpeg/jcparam.c", - MAME_DIR .. "3rdparty/libjpeg/jcprepct.c", - MAME_DIR .. "3rdparty/libjpeg/jcsample.c", - MAME_DIR .. "3rdparty/libjpeg/jctrans.c", - MAME_DIR .. "3rdparty/libjpeg/jdapimin.c", - MAME_DIR .. "3rdparty/libjpeg/jdapistd.c", - MAME_DIR .. "3rdparty/libjpeg/jdarith.c", - MAME_DIR .. "3rdparty/libjpeg/jdatadst.c", - MAME_DIR .. "3rdparty/libjpeg/jdatasrc.c", - MAME_DIR .. "3rdparty/libjpeg/jdcoefct.c", - MAME_DIR .. "3rdparty/libjpeg/jdcolor.c", - MAME_DIR .. "3rdparty/libjpeg/jddctmgr.c", - MAME_DIR .. "3rdparty/libjpeg/jdhuff.c", - MAME_DIR .. "3rdparty/libjpeg/jdinput.c", - MAME_DIR .. "3rdparty/libjpeg/jdmainct.c", - MAME_DIR .. "3rdparty/libjpeg/jdmarker.c", - MAME_DIR .. "3rdparty/libjpeg/jdmaster.c", - MAME_DIR .. "3rdparty/libjpeg/jdmerge.c", - MAME_DIR .. "3rdparty/libjpeg/jdpostct.c", - MAME_DIR .. "3rdparty/libjpeg/jdsample.c", - MAME_DIR .. "3rdparty/libjpeg/jdtrans.c", - MAME_DIR .. "3rdparty/libjpeg/jerror.c", - MAME_DIR .. "3rdparty/libjpeg/jfdctflt.c", - MAME_DIR .. "3rdparty/libjpeg/jfdctfst.c", - MAME_DIR .. "3rdparty/libjpeg/jfdctint.c", - MAME_DIR .. "3rdparty/libjpeg/jidctflt.c", - MAME_DIR .. "3rdparty/libjpeg/jidctfst.c", - MAME_DIR .. "3rdparty/libjpeg/jidctint.c", - MAME_DIR .. "3rdparty/libjpeg/jquant1.c", - MAME_DIR .. "3rdparty/libjpeg/jquant2.c", - MAME_DIR .. "3rdparty/libjpeg/jutils.c", - MAME_DIR .. "3rdparty/libjpeg/jmemmgr.c", - MAME_DIR .. "3rdparty/libjpeg/jmemansi.c", - } -else -links { - ext_lib("jpeg"), -} -end - - --------------------------------------------------- --- libflac library objects --------------------------------------------------- - -if not _OPTIONS["with-system-flac"] then -project "flac" - uuid "b6fc19e8-073a-4541-bb7b-d24b548d424a" - kind "StaticLib" - - configuration { "vs*" } - buildoptions { - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - "/wd4702", -- warning C4702: unreachable code - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd111", -- remark #111: statement is unreachable - "/Qwd177", -- remark #177: function "xxx" was declared but never referenced - "/Qwd181", -- remark #181: argument of type "UINT32={unsigned int}" is incompatible with format "%d", expecting argument of type "int" - "/Qwd188", -- error #188: enumerated type mixed with another type - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - } -end - - configuration { "mingw-clang" } - buildoptions { - "-include stdint.h" - } - - configuration { } - defines { - "WORDS_BIGENDIAN=0", - "FLAC__NO_ASM", - "_LARGEFILE_SOURCE", - "_FILE_OFFSET_BITS=64", - "FLAC__HAS_OGG=0", - "HAVE_CONFIG_H=1", - } - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-unused-function", - "-O0", - } - if _OPTIONS["gcc"]~=nil and (string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "android")) then - buildoptions { - "-Wno-enum-conversion", - } - if _OPTIONS["targetos"]=="macosx" then - buildoptions_c { - "-Wno-unknown-attributes", - } - end - end - configuration { } - - includedirs { - MAME_DIR .. "3rdparty/libflac/src/libFLAC/include", - MAME_DIR .. "3rdparty/libflac/include", - } - - files { - MAME_DIR .. "3rdparty/libflac/src/libFLAC/bitmath.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/bitreader.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/bitwriter.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/cpu.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/crc.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/fixed.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/float.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/format.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/lpc.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/md5.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/memory.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/stream_decoder.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/stream_encoder.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/stream_encoder_framing.c", - MAME_DIR .. "3rdparty/libflac/src/libFLAC/window.c", - } -else -links { - ext_lib("flac"), -} -end - - --------------------------------------------------- --- lib7z library objects --------------------------------------------------- - -project "7z" - uuid "ad573d62-e76a-4b11-ae34-5110a6789a42" - kind "StaticLib" - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-strict-prototypes", - "-Wno-undef", - } -if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") and str_to_version(_OPTIONS["gcc_version"]) >= 100000 then - buildoptions_c { - "-Wno-misleading-indentation", - } -end - - configuration { "asmjs" } - buildoptions { - "-Wno-misleading-indentation", - } - - configuration { "mingw*" } - buildoptions_c { - "-Wno-strict-prototypes", - } - - configuration { "vs*" } - buildoptions { - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - "/wd4457", -- warning C4457: declaration of 'xxx' hides function parameter - } -if _OPTIONS["vs"]=="clangcl" then - buildoptions { - "-Wno-misleading-indentation", - } -end -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - } -end - configuration { } - defines { - "_7ZIP_PPMD_SUPPPORT", - "_7ZIP_ST", - } - - files { - MAME_DIR .. "3rdparty/lzma/C/7zAlloc.c", - MAME_DIR .. "3rdparty/lzma/C/7zArcIn.c", - MAME_DIR .. "3rdparty/lzma/C/7zBuf.c", - MAME_DIR .. "3rdparty/lzma/C/7zBuf2.c", - MAME_DIR .. "3rdparty/lzma/C/7zCrc.c", - MAME_DIR .. "3rdparty/lzma/C/7zCrcOpt.c", - MAME_DIR .. "3rdparty/lzma/C/7zDec.c", - MAME_DIR .. "3rdparty/lzma/C/7zFile.c", - MAME_DIR .. "3rdparty/lzma/C/7zStream.c", - MAME_DIR .. "3rdparty/lzma/C/Aes.c", - MAME_DIR .. "3rdparty/lzma/C/AesOpt.c", - MAME_DIR .. "3rdparty/lzma/C/Alloc.c", - MAME_DIR .. "3rdparty/lzma/C/Bcj2.c", - -- MAME_DIR .. "3rdparty/lzma/C/Bcj2Enc.c", - MAME_DIR .. "3rdparty/lzma/C/Bra.c", - MAME_DIR .. "3rdparty/lzma/C/Bra86.c", - MAME_DIR .. "3rdparty/lzma/C/BraIA64.c", - MAME_DIR .. "3rdparty/lzma/C/CpuArch.c", - MAME_DIR .. "3rdparty/lzma/C/Delta.c", - -- MAME_DIR .. "3rdparty/lzma/C/DllSecur.c", - MAME_DIR .. "3rdparty/lzma/C/LzFind.c", - -- MAME_DIR .. "3rdparty/lzma/C/LzFindMt.c", - MAME_DIR .. "3rdparty/lzma/C/Lzma2Dec.c", - MAME_DIR .. "3rdparty/lzma/C/Lzma2Enc.c", - MAME_DIR .. "3rdparty/lzma/C/Lzma86Dec.c", - MAME_DIR .. "3rdparty/lzma/C/Lzma86Enc.c", - MAME_DIR .. "3rdparty/lzma/C/LzmaDec.c", - MAME_DIR .. "3rdparty/lzma/C/LzmaEnc.c", - -- MAME_DIR .. "3rdparty/lzma/C/LzmaLib.c", - -- MAME_DIR .. "3rdparty/lzma/C/MtCoder.c", - MAME_DIR .. "3rdparty/lzma/C/Ppmd7.c", - MAME_DIR .. "3rdparty/lzma/C/Ppmd7Dec.c", - MAME_DIR .. "3rdparty/lzma/C/Ppmd7Enc.c", - MAME_DIR .. "3rdparty/lzma/C/Sha256.c", - MAME_DIR .. "3rdparty/lzma/C/Sort.c", - -- MAME_DIR .. "3rdparty/lzma/C/Threads.c", - -- MAME_DIR .. "3rdparty/lzma/C/Xz.c", - -- MAME_DIR .. "3rdparty/lzma/C/XzCrc64.c", - -- MAME_DIR .. "3rdparty/lzma/C/XzCrc64Opt.c", - -- MAME_DIR .. "3rdparty/lzma/C/XzDec.c", - -- MAME_DIR .. "3rdparty/lzma/C/XzEnc.c", - -- MAME_DIR .. "3rdparty/lzma/C/XzIn.c", - } - - --------------------------------------------------- --- LUA library objects --------------------------------------------------- -if (STANDALONE~=true) then - -if not _OPTIONS["with-system-lua"] then -project "lua" - uuid "d9e2eed1-f1ab-4737-a6ac-863700b1a5a9" - kind "StaticLib" - - -- uncomment the options below to - -- compile using c++. Do the same - -- in lualibs. - -- In addition comment out the "extern "C"" - -- in lua.hpp and do the same in luaengine.c line 47 - --options { - -- "ForceCPP", - --} - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-bad-function-cast" - } - - configuration { "vs*" } - buildoptions { - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4702", -- warning C4702: unreachable code - "/wd4310", -- warning C4310: cast truncates constant value - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd592", -- error #592: variable "xxx" is used before its value is set - } -end - - configuration { } - defines { - "LUA_COMPAT_ALL", - "LUA_COMPAT_5_1", - "LUA_COMPAT_5_2", - } - if not (_OPTIONS["targetos"]=="windows") and not (_OPTIONS["targetos"]=="asmjs") then - defines { - "LUA_USE_POSIX", - } - end - - configuration { } - - includedirs { - MAME_DIR .. "3rdparty", - } - - files { - MAME_DIR .. "3rdparty/lua/src/lapi.c", - MAME_DIR .. "3rdparty/lua/src/lcode.c", - MAME_DIR .. "3rdparty/lua/src/lctype.c", - MAME_DIR .. "3rdparty/lua/src/ldebug.c", - MAME_DIR .. "3rdparty/lua/src/ldo.c", - MAME_DIR .. "3rdparty/lua/src/ldump.c", - MAME_DIR .. "3rdparty/lua/src/lfunc.c", - MAME_DIR .. "3rdparty/lua/src/lgc.c", - MAME_DIR .. "3rdparty/lua/src/llex.c", - MAME_DIR .. "3rdparty/lua/src/lmem.c", - MAME_DIR .. "3rdparty/lua/src/lobject.c", - MAME_DIR .. "3rdparty/lua/src/lopcodes.c", - MAME_DIR .. "3rdparty/lua/src/lparser.c", - MAME_DIR .. "3rdparty/lua/src/lstate.c", - MAME_DIR .. "3rdparty/lua/src/lstring.c", - MAME_DIR .. "3rdparty/lua/src/ltable.c", - MAME_DIR .. "3rdparty/lua/src/ltm.c", - MAME_DIR .. "3rdparty/lua/src/lundump.c", - MAME_DIR .. "3rdparty/lua/src/lvm.c", - MAME_DIR .. "3rdparty/lua/src/lzio.c", - MAME_DIR .. "3rdparty/lua/src/lauxlib.c", - MAME_DIR .. "3rdparty/lua/src/lbaselib.c", - MAME_DIR .. "3rdparty/lua/src/lbitlib.c", - MAME_DIR .. "3rdparty/lua/src/lcorolib.c", - MAME_DIR .. "3rdparty/lua/src/ldblib.c", - MAME_DIR .. "3rdparty/lua/src/liolib.c", - MAME_DIR .. "3rdparty/lua/src/lmathlib.c", - MAME_DIR .. "3rdparty/lua/src/loslib.c", - MAME_DIR .. "3rdparty/lua/src/lstrlib.c", - MAME_DIR .. "3rdparty/lua/src/ltablib.c", - MAME_DIR .. "3rdparty/lua/src/loadlib.c", - MAME_DIR .. "3rdparty/lua/src/linit.c", - MAME_DIR .. "3rdparty/lua/src/lutf8lib.c", - } -else -links { - ext_lib("lua"), -} -end - - --------------------------------------------------- --- small lua library objects --------------------------------------------------- - -project "lualibs" - uuid "1d84edab-94cf-48fb-83ee-b75bc697660e" - kind "StaticLib" - - configuration { "vs*" } - buildoptions { - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4055", -- warning C4055: 'type cast': from data pointer 'void *' to function pointer 'xxx' - "/wd4152", -- warning C4152: nonstandard extension, function/data pointer conversion in expression - "/wd4130", -- warning C4130: '==': logical operation on address of string constant - } - - configuration { } - defines { - "LUA_COMPAT_ALL", - } - - includedirs { - MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/linenoise", - } - - includedirs { - ext_includedir("lua"), - ext_includedir("zlib"), - ext_includedir("sqlite3"), - } - - configuration {} - - files { - MAME_DIR .. "3rdparty/lsqlite3/lsqlite3.c", - MAME_DIR .. "3rdparty/lua-zlib/lua_zlib.c", - MAME_DIR .. "3rdparty/luafilesystem/src/lfs.c", - MAME_DIR .. "3rdparty/lua-linenoise/linenoise.c", - } - --------------------------------------------------- --- SQLite3 library objects --------------------------------------------------- - -if not _OPTIONS["with-system-sqlite3"] then -project "sqlite3" - uuid "5cb3d495-57ed-461c-81e5-80dc0857517d" - kind "StaticLib" - - configuration { "gmake" } - buildoptions_c { - "-Wno-bad-function-cast", - "-Wno-discarded-qualifiers", - "-Wno-undef", - "-Wno-unused-but-set-variable", - } -if _OPTIONS["gcc"]~=nil and ((string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android"))) then - buildoptions_c { - "-Wno-incompatible-pointer-types-discards-qualifiers", - } -end - configuration { "vs*" } -if _OPTIONS["vs"]=="clangcl" then - buildoptions { - "-Wno-implicit-int-float-conversion", - } -end - - configuration { } - - files { - MAME_DIR .. "3rdparty/sqlite3/sqlite3.c", - } -else -links { - ext_lib("sqlite3"), -} -end - -end - - --------------------------------------------------- --- portmidi library objects --------------------------------------------------- - -if _OPTIONS["NO_USE_MIDI"]~="1" then -if not _OPTIONS["with-system-portmidi"] then -project "portmidi" - uuid "587f2da6-3274-4a65-86a2-f13ea315bb98" - kind "StaticLib" - - includedirs { - MAME_DIR .. "3rdparty/portmidi/pm_common", - MAME_DIR .. "3rdparty/portmidi/porttime", - } - - configuration { "vs*" } - buildoptions { - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - "/wd4706", -- warning C4706: assignment within conditional expression - } -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd188", -- error #188: enumerated type mixed with another type - "/Qwd344", -- remark #344: typedef name has already been declared (with same type) - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - "/Qwd2557", -- remark #2557: comparison between signed and unsigned operands - } -end - - configuration { "linux*" } - defines { - "PMALSA=1", - } - - configuration { } - - files { - MAME_DIR .. "3rdparty/portmidi/pm_common/portmidi.c", - MAME_DIR .. "3rdparty/portmidi/pm_common/pmutil.c", - } - - if _OPTIONS["targetos"]=="windows" then - files { - MAME_DIR .. "3rdparty/portmidi/porttime/ptwinmm.c", - MAME_DIR .. "3rdparty/portmidi/pm_win/pmwin.c", - MAME_DIR .. "3rdparty/portmidi/pm_win/pmwinmm.c", - MAME_DIR .. "3rdparty/portmidi/porttime/ptwinmm.c", - } - end - - if _OPTIONS["targetos"]=="linux" then - files { - MAME_DIR .. "3rdparty/portmidi/pm_linux/pmlinux.c", - MAME_DIR .. "3rdparty/portmidi/pm_linux/pmlinuxalsa.c", - MAME_DIR .. "3rdparty/portmidi/pm_linux/finddefault.c", - MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", - } - end - if _OPTIONS["targetos"]=="netbsd" then - files { - MAME_DIR .. "3rdparty/portmidi/pm_linux/pmlinux.c", - MAME_DIR .. "3rdparty/portmidi/pm_linux/finddefault.c", - MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", - } - end - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "3rdparty/portmidi/pm_mac/pmmac.c", - MAME_DIR .. "3rdparty/portmidi/pm_mac/pmmacosxcm.c", - MAME_DIR .. "3rdparty/portmidi/pm_mac/finddefault.c", - MAME_DIR .. "3rdparty/portmidi/pm_mac/readbinaryplist.c", - MAME_DIR .. "3rdparty/portmidi/pm_mac/osxsupport.m", - MAME_DIR .. "3rdparty/portmidi/porttime/ptmacosx_mach.c", - } - end -else -links { - ext_lib("portmidi"), -} -end -end - - --------------------------------------------------- --- BX library objects --------------------------------------------------- - -project "bx" - uuid "238318fe-49f5-4eb4-88be-0618900f5eac" - kind "StaticLib" - - defines { - "__STDC_LIMIT_MACROS", - "__STDC_FORMAT_MACROS", - "__STDC_CONSTANT_MACROS", - } - - configuration { "vs*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/msvc", - } - configuration { "mingw*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/mingw", - } - - configuration { "osx*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/osx", - } - - configuration { "freebsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { "netbsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { } - - includedirs { - MAME_DIR .. "3rdparty/bx/include", - MAME_DIR .. "3rdparty/bx/3rdparty", - } - - files { - MAME_DIR .. "3rdparty/bx/src/allocator.cpp", - MAME_DIR .. "3rdparty/bx/src/bx.cpp", - MAME_DIR .. "3rdparty/bx/src/commandline.cpp", - MAME_DIR .. "3rdparty/bx/src/crtnone.cpp", - MAME_DIR .. "3rdparty/bx/src/debug.cpp", - MAME_DIR .. "3rdparty/bx/src/dtoa.cpp", - MAME_DIR .. "3rdparty/bx/src/easing.cpp", - MAME_DIR .. "3rdparty/bx/src/file.cpp", - MAME_DIR .. "3rdparty/bx/src/filepath.cpp", - MAME_DIR .. "3rdparty/bx/src/hash.cpp", - MAME_DIR .. "3rdparty/bx/src/math.cpp", - MAME_DIR .. "3rdparty/bx/src/mutex.cpp", - MAME_DIR .. "3rdparty/bx/src/os.cpp", - MAME_DIR .. "3rdparty/bx/src/process.cpp", - MAME_DIR .. "3rdparty/bx/src/semaphore.cpp", - MAME_DIR .. "3rdparty/bx/src/settings.cpp", - MAME_DIR .. "3rdparty/bx/src/sort.cpp", - MAME_DIR .. "3rdparty/bx/src/string.cpp", - MAME_DIR .. "3rdparty/bx/src/thread.cpp", - MAME_DIR .. "3rdparty/bx/src/timer.cpp", - MAME_DIR .. "3rdparty/bx/src/url.cpp", - } - - --------------------------------------------------- --- BIMG library objects --------------------------------------------------- - -project "bimg" - uuid "5603611b-8bf8-4ffd-85bc-76858cd7df39" - kind "StaticLib" - - includedirs { - MAME_DIR .. "3rdparty/bx/include", - } - - configuration { "vs*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/msvc", - } - configuration { "mingw*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/mingw", - } - - configuration { "osx*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/osx", - } - - configuration { "freebsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { "netbsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { "gmake" } - buildoptions { - "-Wno-unused-but-set-variable", - } - - configuration { } - - if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="asmjs" then - if _OPTIONS["gcc"]~=nil and (string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs")) then - buildoptions_cpp { - "-Wno-unused-const-variable", - } - end - end - - defines { - "__STDC_LIMIT_MACROS", - "__STDC_FORMAT_MACROS", - "__STDC_CONSTANT_MACROS", - } - - includedirs { - MAME_DIR .. "3rdparty/bimg/include", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/include", - } - - files { - MAME_DIR .. "3rdparty/bimg/src/image.cpp", - MAME_DIR .. "3rdparty/bimg/src/image_gnf.cpp", - - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/astc_file.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/codec.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/endpoint_codec.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/footprint.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/integer_sequence_codec.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/intermediate_astc_block.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/logical_astc_block.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/partition.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/physical_astc_block.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/quantization.cc", - MAME_DIR .. "3rdparty/bimg/3rdparty/astc-codec/src/decoder/weight_infill.cc", - } - - --------------------------------------------------- --- BGFX library objects --------------------------------------------------- - -project "bgfx" - uuid "d3e7e119-35cf-4f4f-aba0-d3bdcd1b879a" - kind "StaticLib" - - configuration { "vs*" } - buildoptions { - "/wd4324", -- warning C4324: 'xxx' : structure was padded due to __declspec(align()) - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4611", -- warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable - "/wd4310", -- warning C4310: cast truncates constant value - "/wd4701", -- warning C4701: potentially uninitialized local variable 'xxx' used - } - -if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd906", -- message #906: effect of this "#pragma pack" directive is local to function "xxx" - "/Qwd1879", -- warning #1879: unimplemented pragma ignored - "/Qwd82", -- remark #82: storage class is not first - } -end - configuration { } - - includedirs { - MAME_DIR .. "3rdparty/bgfx/include", - MAME_DIR .. "3rdparty/bgfx/3rdparty", - MAME_DIR .. "3rdparty/bx/include", - MAME_DIR .. "3rdparty/bimg/include", - MAME_DIR .. "3rdparty/bgfx/3rdparty/dxsdk/include", - MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos", - } - - configuration { "android-*"} - buildoptions { - "-Wno-macro-redefined", - } - - configuration { "vs*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/msvc", - } - configuration { "mingw*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/mingw", - } - - configuration { "osx*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/osx", - } - - configuration { "freebsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { "netbsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - - configuration { "gmake or ninja" } - buildoptions { - "-Wno-uninitialized", - "-Wno-unused-but-set-variable", - "-Wno-unused-function", - "-Wno-unused-variable", - } - - configuration { } - - local version = str_to_version(_OPTIONS["gcc_version"]) - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then - if version >= 60000 then - buildoptions_cpp { - "-Wno-misleading-indentation", - } - end - end - - if _OPTIONS["targetos"]=="windows" then - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then - buildoptions { - "-Wno-unknown-attributes", - "-Wno-missing-braces", - "-Wno-int-to-pointer-cast", - "-Wno-ignored-attributes", -- many instances in ImGui - } - end - end - - if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="linux" then - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then - buildoptions { - "-Wno-switch", - } - buildoptions_cpp { - "-Wno-unknown-pragmas", - } - end - end - - if _OPTIONS["targetos"]=="freebsd" then - buildoptions { - backtick(pkgconfigcmd() .. " --cflags gl") - } - end - - defines { - "__STDC_LIMIT_MACROS", - "__STDC_FORMAT_MACROS", - "__STDC_CONSTANT_MACROS", - "BGFX_CONFIG_MAX_FRAME_BUFFERS=128", - } - - if _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="openbsd" then - if _OPTIONS["NO_X11"]=="1" then - defines { - "BGFX_CONFIG_RENDERER_OPENGLES=1", - "BGFX_CONFIG_RENDERER_OPENGL=0", - } - end - end - - if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then - if string.find(_OPTIONS["gcc"], "clang") and (version < 80000) then - defines { - "TARGET_OS_OSX=1", - } - end - end - - files { - MAME_DIR .. "3rdparty/bgfx/src/bgfx.cpp", - MAME_DIR .. "3rdparty/bgfx/src/debug_renderdoc.cpp", - MAME_DIR .. "3rdparty/bgfx/src/dxgi.cpp", - MAME_DIR .. "3rdparty/bgfx/src/glcontext_egl.cpp", - MAME_DIR .. "3rdparty/bgfx/src/glcontext_glx.cpp", - MAME_DIR .. "3rdparty/bgfx/src/glcontext_html5.cpp", - MAME_DIR .. "3rdparty/bgfx/src/glcontext_wgl.cpp", - MAME_DIR .. "3rdparty/bgfx/src/nvapi.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_agc.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d11.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d12.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d9.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_gl.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_gnm.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_noop.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_nvn.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_vk.cpp", - MAME_DIR .. "3rdparty/bgfx/src/renderer_webgpu.cpp", - MAME_DIR .. "3rdparty/bgfx/src/shader.cpp", - MAME_DIR .. "3rdparty/bgfx/src/shader_dx9bc.cpp", - MAME_DIR .. "3rdparty/bgfx/src/shader_dxbc.cpp", - MAME_DIR .. "3rdparty/bgfx/src/shader_spirv.cpp", - MAME_DIR .. "3rdparty/bgfx/src/topology.cpp", - MAME_DIR .. "3rdparty/bgfx/src/vertexlayout.cpp", - MAME_DIR .. "3rdparty/bgfx/examples/common/imgui/imgui.cpp", - MAME_DIR .. "3rdparty/bgfx/examples/common/nanovg/nanovg.cpp", - MAME_DIR .. "3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.cpp", - MAME_DIR .. "3rdparty/bgfx/3rdparty/dear-imgui/imgui.cpp", - MAME_DIR .. "3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.cpp", - MAME_DIR .. "3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.cpp", - MAME_DIR .. "3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.cpp", - } - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "3rdparty/bgfx/src/glcontext_eagl.mm", - MAME_DIR .. "3rdparty/bgfx/src/glcontext_nsgl.mm", - MAME_DIR .. "3rdparty/bgfx/src/renderer_mtl.mm", - } - buildoptions { - "-x objective-c++", - "-D BGFX_CONFIG_MULTITHREADED=0", - } - end - - --------------------------------------------------- --- PortAudio library objects --------------------------------------------------- - -if _OPTIONS["NO_USE_PORTAUDIO"]~="1" then -if not _OPTIONS["with-system-portaudio"] then -project "portaudio" - uuid "0755c5f5-eccf-47f3-98a9-df67018a94d4" - kind "StaticLib" - - configuration { "vs*" } - buildoptions { - "/wd4245", -- warning C4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch - "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data - "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter - "/wd4389", -- warning C4389: 'operator' : signed/unsigned mismatch - "/wd4189", -- warning C4189: 'xxx' : local variable is initialized but not referenced - "/wd4127", -- warning C4127: conditional expression is constant - "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration - "/wd4312", -- warning C4312: 'type cast': conversion from 'UINT' to 'HWAVEIN' of greater size - } - if _OPTIONS["vs"]=="intel-15" then - buildoptions { - "/Qwd869", -- remark #869: parameter "xxx" was never referenced - "/Qwd1478", -- warning #1478: function "xxx" (declared at line yyy of "zzz") was declared deprecated - "/Qwd2544", -- message #2544: empty dependent statement in if-statement - "/Qwd1879", -- warning #1879: unimplemented pragma ignored - } - end - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-bad-function-cast", - "-Wno-missing-braces", - "-Wno-strict-prototypes", - "-Wno-undef", - "-Wno-unknown-pragmas", - "-Wno-unused-function", - "-Wno-unused-value", - "-Wno-unused-variable", - } - - local version = str_to_version(_OPTIONS["gcc_version"]) - if (_OPTIONS["gcc"]~=nil) then - if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "android") then - buildoptions_c { - "-Wno-unknown-warning-option", - "-Wno-absolute-value", - "-Wno-unused-but-set-variable", - "-Wno-maybe-uninitialized", - "-Wno-sometimes-uninitialized", - } - else - buildoptions_c { - "-Wno-maybe-uninitialized", - "-Wno-sometimes-uninitialized", - "-Wno-unused-but-set-variable", - "-Wno-incompatible-pointer-types-discards-qualifiers", - "-w", - } - end - if string.find(_OPTIONS["gcc"], "clang") and version >= 100000 then - buildoptions_c { - "-Wno-misleading-indentation", - } - end - end - configuration { "vs*" } - buildoptions { - "/wd4204", -- warning C4204: nonstandard extension used : non-constant aggregate initializer - "/wd4701", -- warning C4701: potentially uninitialized local variable 'xxx' used - "/wd4057", -- warning C4057: 'function': 'xxx' differs in indirection to slightly different base types from 'xxx' - } - - configuration { } - - includedirs { - MAME_DIR .. "3rdparty/portaudio/include", - MAME_DIR .. "3rdparty/portaudio/src/common", - } - - files { - MAME_DIR .. "3rdparty/portaudio/src/common/pa_allocation.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_converters.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_cpuload.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_dither.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_debugprint.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_front.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_process.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_stream.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_trace.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/skeleton/pa_hostapi_skeleton.c", - } - - if _OPTIONS["targetos"]=="windows" then - defines { - "PA_USE_DS=1", - "PA_USE_WASAPI=1", - "PA_USE_WDMKS=1", - "PA_USE_WMME=1", - } - includedirs { - MAME_DIR .. "3rdparty/portaudio/src/os/win", - } - - configuration { "mingw*" } - includedirs { - MAME_DIR .. "3rdparty/portaudio/src/hostapi/wasapi/mingw-include", - } - - configuration { } - files { - MAME_DIR .. "3rdparty/portaudio/src/os/win/pa_win_util.c", - MAME_DIR .. "3rdparty/portaudio/src/os/win/pa_win_waveformat.c", - MAME_DIR .. "3rdparty/portaudio/src/os/win/pa_win_hostapis.c", - MAME_DIR .. "3rdparty/portaudio/src/os/win/pa_win_coinitialize.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/dsound/pa_win_ds.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/dsound/pa_win_ds_dynlink.c", - MAME_DIR .. "3rdparty/portaudio/src/os/win/pa_win_hostapis.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/wdmks/pa_win_wdmks.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/wmme/pa_win_wmme.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_ringbuffer.c", - } - - end - if _OPTIONS["targetos"]=="linux" then - defines { - "PA_USE_ALSA=1", - "PA_USE_OSS=1", - "HAVE_LINUX_SOUNDCARD_H", - } - includedirs { - MAME_DIR .. "3rdparty/portaudio/src/os/unix", - } - files { - MAME_DIR .. "3rdparty/portaudio/src/os/unix/pa_unix_hostapis.c", - MAME_DIR .. "3rdparty/portaudio/src/os/unix/pa_unix_util.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/alsa/pa_linux_alsa.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/oss/pa_unix_oss.c", - } - end - if _OPTIONS["targetos"]=="macosx" then - defines { - "PA_USE_COREAUDIO=1", - } - includedirs { - MAME_DIR .. "3rdparty/portaudio/src/os/unix", - } - files { - MAME_DIR .. "3rdparty/portaudio/src/os/unix/pa_unix_hostapis.c", - MAME_DIR .. "3rdparty/portaudio/src/os/unix/pa_unix_util.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/coreaudio/pa_mac_core.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.c", - MAME_DIR .. "3rdparty/portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.c", - MAME_DIR .. "3rdparty/portaudio/src/common/pa_ringbuffer.c", - } - end - -else -links { - ext_lib("portaudio"), -} -end -end - - --------------------------------------------------- --- SDL2 library --------------------------------------------------- -if _OPTIONS["with-bundled-sdl2"] then -project "SDL2" - uuid "caab3327-574f-4abf-b25b-74d5238ae59b" -if _OPTIONS["targetos"]=="android" then - kind "SharedLib" - targetextension ".so" - targetprefix "lib" - links { - "GLESv1_CM", - "GLESv2", - "log", - "OpenSLES", - "c++_static" - } - linkoptions { - "-Wl,-soname,libSDL2.so", - } - - if _OPTIONS["SEPARATE_BIN"]~="1" then - if _OPTIONS["PLATFORM"]=="arm" then - targetdir(MAME_DIR .. "android-project/app/src/main/libs/armeabi-v7a") - end - if _OPTIONS["PLATFORM"]=="arm64" then - targetdir(MAME_DIR .. "android-project/app/src/main/libs/arm64-v8a") - end - if _OPTIONS["PLATFORM"]=="x86" then - targetdir(MAME_DIR .. "android-project/app/src/main/libs/x86") - end - if _OPTIONS["PLATFORM"]=="x64" then - targetdir(MAME_DIR .. "android-project/app/src/main/libs/x86_64") - end - end - - strip() -else - kind "StaticLib" -end - - files { - MAME_DIR .. "3rdparty/SDL2/include/begin_code.h", - MAME_DIR .. "3rdparty/SDL2/include/close_code.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_assert.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_atomic.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_audio.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_bits.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_blendmode.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_clipboard.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_config.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_config_windows.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_copying.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_cpuinfo.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_egl.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_endian.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_error.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_events.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_filesystem.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_gamecontroller.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_gesture.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_haptic.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_hints.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_joystick.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_keyboard.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_keycode.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_loadso.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_log.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_main.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_messagebox.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_mouse.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_mutex.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_name.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengl.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengl_glext.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles2.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles2_gl2.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles2_gl2ext.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles2_gl2platform.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_opengles2_khrplatform.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_pixels.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_platform.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_power.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_quit.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_rect.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_render.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_revision.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_rwops.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_scancode.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_shape.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_stdinc.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_surface.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_system.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_syswm.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_assert.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_common.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_compare.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_crc32.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_font.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_fuzzer.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_harness.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_images.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_log.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_md5.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_test_random.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_thread.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_timer.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_touch.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_types.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_version.h", - MAME_DIR .. "3rdparty/SDL2/include/SDL_video.h", - - - MAME_DIR .. "3rdparty/SDL2/src/atomic/SDL_atomic.c", - MAME_DIR .. "3rdparty/SDL2/src/atomic/SDL_spinlock.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/disk/SDL_diskaudio.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/disk/SDL_diskaudio.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/dummy/SDL_dummyaudio.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/dummy/SDL_dummyaudio.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audio.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audio_c.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audiocvt.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audiodev.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audiodev_c.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_audiotypecvt.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_mixer.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_sysaudio.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_wave.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/SDL_wave.h", - MAME_DIR .. "3rdparty/SDL2/src/cpuinfo/SDL_cpuinfo.c", - MAME_DIR .. "3rdparty/SDL2/src/dynapi/SDL_dynapi.c", - MAME_DIR .. "3rdparty/SDL2/src/dynapi/SDL_dynapi.h", - MAME_DIR .. "3rdparty/SDL2/src/dynapi/SDL_dynapi_overrides.h", - MAME_DIR .. "3rdparty/SDL2/src/dynapi/SDL_dynapi_procs.h", - MAME_DIR .. "3rdparty/SDL2/src/events/blank_cursor.h", - MAME_DIR .. "3rdparty/SDL2/src/events/default_cursor.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_clipboardevents.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_clipboardevents_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_dropevents.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_dropevents_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_events.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_events_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_gesture.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_gesture_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_keyboard.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_keyboard_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_mouse.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_mouse_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_quit.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_sysevents.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_touch.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_touch_c.h", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_windowevents.c", - MAME_DIR .. "3rdparty/SDL2/src/events/SDL_windowevents_c.h", - MAME_DIR .. "3rdparty/SDL2/src/file/SDL_rwops.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/SDL_haptic.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/SDL_syshaptic.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/SDL_gamecontroller.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/SDL_joystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/SDL_joystick_c.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/SDL_sysjoystick.h", - MAME_DIR .. "3rdparty/SDL2/src/loadso/windows/SDL_sysloadso.c", - MAME_DIR .. "3rdparty/SDL2/src/power/SDL_power.c", - MAME_DIR .. "3rdparty/SDL2/src/power/windows/SDL_syspower.c", - MAME_DIR .. "3rdparty/SDL2/src/render/direct3d/SDL_render_d3d.c", - MAME_DIR .. "3rdparty/SDL2/src/render/direct3d11/SDL_render_d3d11.c", - MAME_DIR .. "3rdparty/SDL2/src/render/mmx.h", - MAME_DIR .. "3rdparty/SDL2/src/render/opengl/SDL_render_gl.c", - MAME_DIR .. "3rdparty/SDL2/src/render/opengl/SDL_shaders_gl.c", - MAME_DIR .. "3rdparty/SDL2/src/render/opengl/SDL_shaders_gl.h", - MAME_DIR .. "3rdparty/SDL2/src/render/opengles2/SDL_render_gles2.c", - MAME_DIR .. "3rdparty/SDL2/src/render/opengles2/SDL_shaders_gles2.c", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_d3dmath.c", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_d3dmath.h", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_render.c", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_sysrender.h", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_yuv_mmx.c", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_yuv_sw.c", - MAME_DIR .. "3rdparty/SDL2/src/render/SDL_yuv_sw_c.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendfillrect.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendfillrect.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendline.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendline.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendpoint.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_blendpoint.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_draw.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_drawline.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_drawline.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_drawpoint.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_drawpoint.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_render_sw.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_render_sw_c.h", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_rotate.c", - MAME_DIR .. "3rdparty/SDL2/src/render/software/SDL_rotate.h", - MAME_DIR .. "3rdparty/SDL2/src/SDL.c", - MAME_DIR .. "3rdparty/SDL2/src/SDL_assert.c", - MAME_DIR .. "3rdparty/SDL2/src/SDL_error.c", - MAME_DIR .. "3rdparty/SDL2/src/SDL_error_c.h", - MAME_DIR .. "3rdparty/SDL2/src/SDL_hints.c", - MAME_DIR .. "3rdparty/SDL2/src/SDL_hints_c.h", - MAME_DIR .. "3rdparty/SDL2/src/SDL_log.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_getenv.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_iconv.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_malloc.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_qsort.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_stdlib.c", - MAME_DIR .. "3rdparty/SDL2/src/stdlib/SDL_string.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/SDL_systhread.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/SDL_thread.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/SDL_thread_c.h", - MAME_DIR .. "3rdparty/SDL2/src/timer/SDL_systimer.h", - MAME_DIR .. "3rdparty/SDL2/src/timer/SDL_timer.c", - MAME_DIR .. "3rdparty/SDL2/src/timer/SDL_timer_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullevents.c", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullevents_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullframebuffer.c", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullframebuffer_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullvideo.c", - MAME_DIR .. "3rdparty/SDL2/src/video/dummy/SDL_nullvideo.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_0.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_1.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_A.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_auto.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_auto.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_copy.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_copy.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_N.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_slow.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_blit_slow.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_bmp.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_clipboard.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_egl.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_fillrect.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_glesfuncs.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_glfuncs.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_pixels.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_pixels_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_rect.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_rect_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_RLEaccel.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_RLEaccel_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_shape.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_shape_internals.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_stretch.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_surface.c", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_sysvideo.h", - MAME_DIR .. "3rdparty/SDL2/src/video/SDL_video.c", - - } - if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="windows" then - files { - MAME_DIR .. "3rdparty/SDL2/src/libm/e_atan2.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/e_log.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/e_pow.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/e_rem_pio2.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/e_sqrt.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/k_cos.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/k_rem_pio2.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/k_sin.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/k_tan.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/math.h", - MAME_DIR .. "3rdparty/SDL2/src/libm/math_private.h", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_atan.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_copysign.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_cos.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_fabs.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_floor.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_scalbn.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_sin.c", - MAME_DIR .. "3rdparty/SDL2/src/libm/s_tan.c", - } - end - if _OPTIONS["targetos"]~="windows" then - files { - MAME_DIR .. "3rdparty/SDL2/src/render/opengles/SDL_render_gles.c", - MAME_DIR .. "3rdparty/SDL2/src/render/opengles/SDL_glesfuncs.h", - } - end - - if _OPTIONS["targetos"]=="android" then - files { - MAME_DIR .. "3rdparty/SDL2/src/audio/android/opensl_io.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/android/opensl_io.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/android/SDL_androidaudio.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/android/SDL_androidaudio.c", - MAME_DIR .. "3rdparty/SDL2/src/core/android/SDL_android.c", - MAME_DIR .. "3rdparty/SDL2/src/core/android/SDL_android.h", - MAME_DIR .. "3rdparty/SDL2/src/filesystem/android/SDL_sysfilesystem.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/dummy/SDL_syshaptic.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/android/SDL_sysjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/loadso/dlopen/SDL_sysloadso.c", - MAME_DIR .. "3rdparty/SDL2/src/power/android/SDL_syspower.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_syscond.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_sysmutex.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_sysmutex_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_syssem.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systhread.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systhread_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systls.c", - MAME_DIR .. "3rdparty/SDL2/src/timer/unix/SDL_systimer.c", - MAME_DIR .. "3rdparty/SDL2/src/timer/unix/SDL_systimer_c.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidclipboard.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidclipboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidevents.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidevents.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidgl.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidkeyboard.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidkeyboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidmessagebox.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidmessagebox.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidmouse.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidmouse.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidtouch.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidtouch.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidvideo.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidvideo.h", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidwindow.c", - MAME_DIR .. "3rdparty/SDL2/src/video/android/SDL_androidwindow.h", - } - end - - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "3rdparty/SDL2/src/audio/coreaudio/SDL_coreaudio.m", - MAME_DIR .. "3rdparty/SDL2/src/audio/coreaudio/SDL_coreaudio.h", - MAME_DIR .. "3rdparty/SDL2/src/file/cocoa/SDL_rwopsbundlesupport.m", - MAME_DIR .. "3rdparty/SDL2/src/file/cocoa/SDL_rwopsbundlesupport.h", - MAME_DIR .. "3rdparty/SDL2/src/filesystem/cocoa/SDL_sysfilesystem.m", - MAME_DIR .. "3rdparty/SDL2/src/haptic/darwin/SDL_syshaptic.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/darwin/SDL_syshaptic_c.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/darwin/SDL_sysjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/darwin/SDL_sysjoystick_c.h", - MAME_DIR .. "3rdparty/SDL2/src/loadso/dlopen/SDL_sysloadso.c", - MAME_DIR .. "3rdparty/SDL2/src/power/macosx/SDL_syspower.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_syscond.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_sysmutex.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_sysmutex_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_syssem.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systhread.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systhread_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/pthread/SDL_systls.c", - MAME_DIR .. "3rdparty/SDL2/src/timer/unix/SDL_systimer.c", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaclipboard.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaclipboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaevents.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaevents.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoakeyboard.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoakeyboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamessagebox.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamessagebox.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamodes.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamodes.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamouse.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamouse.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamousetap.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoamousetap.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaopengl.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoaopengl.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoashape.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoashape.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoavideo.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoavideo.h", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoawindow.m", - MAME_DIR .. "3rdparty/SDL2/src/video/cocoa/SDL_cocoawindow.h", - - } - end - - if _OPTIONS["targetos"]=="windows" then - files { - MAME_DIR .. "3rdparty/SDL2/src/thread/generic/SDL_syscond.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/directsound/SDL_directsound.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/directsound/SDL_directsound.h", - MAME_DIR .. "3rdparty/SDL2/src/audio/winmm/SDL_winmm.c", - MAME_DIR .. "3rdparty/SDL2/src/audio/winmm/SDL_winmm.h", - MAME_DIR .. "3rdparty/SDL2/src/core/windows/SDL_directx.h", - MAME_DIR .. "3rdparty/SDL2/src/core/windows/SDL_windows.c", - MAME_DIR .. "3rdparty/SDL2/src/core/windows/SDL_windows.h", - MAME_DIR .. "3rdparty/SDL2/src/core/windows/SDL_xinput.c", - MAME_DIR .. "3rdparty/SDL2/src/core/windows/SDL_xinput.h", - MAME_DIR .. "3rdparty/SDL2/src/filesystem/windows/SDL_sysfilesystem.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_dinputhaptic.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_dinputhaptic_c.h", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_windowshaptic.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_windowshaptic_c.h", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_xinputhaptic.c", - MAME_DIR .. "3rdparty/SDL2/src/haptic/windows/SDL_xinputhaptic_c.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_dinputjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_dinputjoystick_c.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_mmjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_windowsjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_windowsjoystick_c.h", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_xinputjoystick.c", - MAME_DIR .. "3rdparty/SDL2/src/joystick/windows/SDL_xinputjoystick_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/windows/SDL_sysmutex.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/windows/SDL_syssem.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/windows/SDL_systhread.c", - MAME_DIR .. "3rdparty/SDL2/src/thread/windows/SDL_systhread_c.h", - MAME_DIR .. "3rdparty/SDL2/src/thread/windows/SDL_systls.c", - MAME_DIR .. "3rdparty/SDL2/src/timer/windows/SDL_systimer.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_vkeys.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsclipboard.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsclipboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsevents.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsevents.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsframebuffer.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsframebuffer.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowskeyboard.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowskeyboard.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmessagebox.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmessagebox.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmodes.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmodes.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmouse.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsmouse.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsopengl.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsopengl.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsopengles.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsshape.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsshape.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsvideo.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowsvideo.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowswindow.c", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/SDL_windowswindow.h", - MAME_DIR .. "3rdparty/SDL2/src/video/windows/wmmsg.h", - MAME_DIR .. "3rdparty/SDL2/src/main/windows/version.rc", - } - end - - configuration { "vs*" } - files { - MAME_DIR .. "3rdparty/SDL2/src/audio/xaudio2/SDL_xaudio2.c", - } - - buildoptions { - "/wd4200", -- warning C4200: nonstandard extension used: zero-sized array in struct/union - "/wd4055", -- warning C4055: 'type cast': from data pointer 'void *' to function pointer 'xxx' - "/wd4152", -- warning C4152: nonstandard extension, function/data pointer conversion in expression - "/wd4057", -- warning C4057: 'function': 'xxx' differs in indirection to slightly different base types from 'xxx' - "/wd4701", -- warning C4701: potentially uninitialized local variable 'xxx' used - "/wd4204", -- warning C4204: nonstandard extension used: non-constant aggregate initializer - "/wd4054", -- warning C4054: 'type cast': from function pointer 'xxx' to data pointer 'xxx' - } - defines { - "HAVE_LIBC", - } - - configuration { "mingw*"} - includedirs { - MAME_DIR .. "3rdparty/SDL2-override/mingw", - MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos", - } - buildoptions_c { - "-Wno-bad-function-cast", - "-Wno-discarded-qualifiers", - "-Wno-format", - "-Wno-format-security", - "-Wno-pointer-to-int-cast", - "-Wno-strict-prototypes", - "-Wno-undef", - "-Wno-unused-but-set-variable", - } - - configuration { "mingw-clang"} - buildoptions_c { - "-Wno-incompatible-pointer-types-discards-qualifiers" - } - - configuration { "osx*"} - buildoptions { - "-Wno-undef", - } - buildoptions_objc { - "-x objective-c", - "-std=c99", - } - - buildoptions_c { - "-Wno-bad-function-cast", - "-Wno-strict-prototypes", - } - - configuration { "android-*"} - defines { - "GL_GLEXT_PROTOTYPES", - } - buildoptions_c { - "-Wno-bad-function-cast", - "-Wno-incompatible-pointer-types-discards-qualifiers", - "-Wno-unneeded-internal-declaration", - "-Wno-unused-const-variable", - } - - configuration { } - includedirs { - MAME_DIR .. "3rdparty/SDL2/include", - } - -end - - --------------------------------------------------- --- linenoise library --------------------------------------------------- - -project "linenoise" - uuid "7320ffc8-2748-4add-8864-ae29b72a8511" - kind (LIBTYPE) - - addprojectflags() - - configuration { "vs*" } - buildoptions { - "/wd4701", -- warning C4701: potentially uninitialized local variable 'xxx' used - } - - configuration { } - - includedirs { - MAME_DIR .. "3rdparty/linenoise", - } - - files { - MAME_DIR .. "3rdparty/linenoise/utf8.c", - MAME_DIR .. "3rdparty/linenoise/linenoise.c", - } - - --------------------------------------------------- --- utf8proc library objects --------------------------------------------------- - -if not _OPTIONS["with-system-utf8proc"] then -project "utf8proc" - uuid "1f881f09-0395-4483-ac37-2935fb092187" - kind "StaticLib" - - defines { - "UTF8PROC_STATIC", - } - - configuration "Debug" - defines { - "verbose=-1", - } - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-strict-prototypes", - } - - configuration { } - - files { - MAME_DIR .. "3rdparty/utf8proc/utf8proc.c" - } -else -links { - ext_lib("utf8proc"), -} -end - - --------------------------------------------------- --- wdlfft library objects (from Cockos WDL) --------------------------------------------------- - -project "wdlfft" - uuid "74ca017e-fa0d-48b8-81d6-8081a37be14c" - kind "StaticLib" - - configuration { "gmake or ninja" } - buildoptions_c { - "-Wno-strict-prototypes", - } - - configuration { } - - files { - MAME_DIR .. "3rdparty/wdlfft/fft.c", - MAME_DIR .. "3rdparty/wdlfft/fft.h" - } - - --------------------------------------------------- --- ymfm library objects --------------------------------------------------- - -project "ymfm" - uuid "2403a536-cb0a-4b50-b41f-10c17917689b" - kind "StaticLib" - - configuration { } - defines { - "YMFM_MAME", - } - - files { - MAME_DIR .. "3rdparty/ymfm/src/ymfm.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_adpcm.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_adpcm.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_fm.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_fm.ipp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_misc.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_misc.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opl.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opl.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opm.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opm.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opn.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opn.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opq.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opq.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opz.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_opz.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_pcm.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_pcm.h", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_ssg.cpp", - MAME_DIR .. "3rdparty/ymfm/src/ymfm_ssg.h", - } - - --------------------------------------------------- --- asmjit library --------------------------------------------------- - -if not _OPTIONS["FORCE_DRC_C_BACKEND"] then -project "asmjit" - uuid "4539757c-6e99-4bae-b3d0-b342a7c49539" - kind "StaticLib" - - configuration { "gmake" } - buildoptions { - "-Wno-unused-but-set-variable", - } - - configuration { } - - if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then - if string.find(_OPTIONS["gcc"], "clang") and (version < 80000) then - defines { - "TARGET_OS_OSX=1", - } - end - end - - files { - MAME_DIR .. "3rdparty/asmjit/src/asmjit/asmjit.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/api-build_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/api-config.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/arch.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/arch.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/assembler.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/assembler.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/builder.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/builder.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/callconv.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/callconv.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/codebuffer.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/codebufferwriter_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/codeholder.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/codeholder.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/compiler.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/compiler.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/constpool.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/constpool.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/cpuinfo.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/cpuinfo.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/datatypes.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/emitter.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/emitter.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/emitterutils.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/emitterutils_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/environment.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/environment.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/errorhandler.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/errorhandler.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/features.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/formatter.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/formatter.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/func.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/func.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/globals.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/globals.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/inst.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/inst.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/jitallocator.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/jitallocator.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/jitruntime.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/jitruntime.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/logger.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/logger.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/misc_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/operand.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/operand.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/osutils.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/osutils.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/osutils_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/raassignment_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/rabuilders_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/radefs_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/ralocal.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/ralocal_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/rapass.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/rapass_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/rastack.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/rastack_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/string.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/string.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/support.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/support.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/target.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/target.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/type.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/type.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/virtmem.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/virtmem.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zone.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zone.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonehash.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonehash.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonelist.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonelist.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonestack.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonestack.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonestring.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonetree.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonetree.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonevector.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/core/zonevector.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86archdata.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86archdata_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86assembler.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86assembler.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86builder.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86builder.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86callconv.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86callconv_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86compiler.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86compiler.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86emitter.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86features.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86features.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86formatter.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86formatter_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86globals.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86instapi.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86instapi_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86instdb.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86instdb.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86instdb_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86internal.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86internal_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86opcode_p.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86operand.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86operand.h", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86rapass.cpp", - MAME_DIR .. "3rdparty/asmjit/src/asmjit/x86/x86rapass_p.h", - } -end diff --git a/unused/scripts/src/osd/mac.lua b/unused/scripts/src/osd/mac.lua deleted file mode 100644 index 4b3967b..0000000 --- a/unused/scripts/src/osd/mac.lua +++ /dev/null @@ -1,177 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - ---------------------------------------------------------------------------- --- --- mac.lua --- --- Rules for the building with SDL --- ---------------------------------------------------------------------------- - -dofile("modules.lua") - - -function maintargetosdoptions(_target,_subtarget) - osdmodulestargetconf() - - configuration { } -end - -BASE_TARGETOS = "unix" - -local os_version = str_to_version(backtick("sw_vers -productVersion")) -links { - "Cocoa.framework", -} -linkoptions { - "-framework QuartzCore", - "-framework OpenGL", -} -if os_version>=101100 then - linkoptions { - "-weak_framework Metal", - } -end - -project ("qtdbg_" .. _OPTIONS["osd"]) - uuid (os.uuid("qtdbg_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("mac_cfg.lua") - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - } - configuration { "linux-* or freebsd" } - buildoptions { - "-fPIC", - } - configuration { } - - qtdebuggerbuild() - -project ("osd_" .. _OPTIONS["osd"]) - targetsubdir(_OPTIONS["target"] .."_" .._OPTIONS["subtarget"]) - uuid (os.uuid("osd_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("mac_cfg.lua") - osdmodulesbuild() - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/file", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - MAME_DIR .. "src/osd/mac", - } - - files { - MAME_DIR .. "src/osd/modules/debugger/debugosx.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.h", - MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/registerpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/registerpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/registersview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/registersview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugosx.h", - } - - files { - MAME_DIR .. "src/osd/mac/main.mm", - MAME_DIR .. "src/osd/mac/macmain.cpp", - MAME_DIR .. "src/osd/mac/appdelegate.mm", - MAME_DIR .. "src/osd/mac/appdelegate.h", - MAME_DIR .. "src/osd/mac/video.cpp", - MAME_DIR .. "src/osd/mac/window.cpp", - MAME_DIR .. "src/osd/mac/window.h", - MAME_DIR .. "src/osd/mac/windowcontroller.mm", - MAME_DIR .. "src/osd/mac/windowcontroller.h", - MAME_DIR .. "src/osd/mac/mamefswindow.mm", - MAME_DIR .. "src/osd/mac/mamefswindow.h", - MAME_DIR .. "src/osd/mac/oglview.mm", - MAME_DIR .. "src/osd/mac/oglview.h", - MAME_DIR .. "src/osd/modules/osdwindow.cpp", - MAME_DIR .. "src/osd/modules/osdwindow.h", - } - - -project ("ocore_" .. _OPTIONS["osd"]) - targetsubdir(_OPTIONS["target"] .."_" .. _OPTIONS["subtarget"]) - uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - removeflags { - "SingleOutputDir", - } - - dofile("mac_cfg.lua") - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/mac", - } - - files { - MAME_DIR .. "src/osd/osdcore.cpp", - MAME_DIR .. "src/osd/osdcore.h", - MAME_DIR .. "src/osd/osdfile.h", - MAME_DIR .. "src/osd/strconv.cpp", - MAME_DIR .. "src/osd/strconv.h", - MAME_DIR .. "src/osd/osdsync.cpp", - MAME_DIR .. "src/osd/osdsync.h", - MAME_DIR .. "src/osd/modules/osdmodule.cpp", - MAME_DIR .. "src/osd/modules/osdmodule.h", - MAME_DIR .. "src/osd/modules/lib/osdlib_macosx.cpp", - MAME_DIR .. "src/osd/modules/lib/osdlib.h", - MAME_DIR .. "src/osd/modules/file/posixdir.cpp", - MAME_DIR .. "src/osd/modules/file/posixfile.cpp", - MAME_DIR .. "src/osd/modules/file/posixfile.h", - MAME_DIR .. "src/osd/modules/file/posixptty.cpp", - MAME_DIR .. "src/osd/modules/file/posixsocket.cpp", - } - - diff --git a/unused/scripts/src/osd/mac_cfg.lua b/unused/scripts/src/osd/mac_cfg.lua deleted file mode 100644 index e75c8d0..0000000 --- a/unused/scripts/src/osd/mac_cfg.lua +++ /dev/null @@ -1,40 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - -dofile('modules.lua') - -forcedincludes { --- MAME_DIR .. "src/osd/sdl/sdlprefix.h" -} - -if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then - defines { - "USE_NETWORK", - } - if _OPTIONS["USE_TAPTUN"]=="1" then - defines { - "OSD_NET_USE_TAPTUN", - } - end - if _OPTIONS["USE_PCAP"]=="1" then - defines { - "OSD_NET_USE_PCAP", - } - end -end - -defines { - "OSD_MAC", - "SDLMAME_UNIX", - "SDLMAME_MACOSX", - "SDLMAME_DARWIN" -} - -configuration { "osx*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/osx", - } - - -configuration { } - diff --git a/unused/scripts/src/osd/modules.lua b/unused/scripts/src/osd/modules.lua deleted file mode 100644 index e431bb9..0000000 --- a/unused/scripts/src/osd/modules.lua +++ /dev/null @@ -1,660 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - ---------------------------------------------------------------------------- --- --- modules.lua --- --- Rules for the building of modules --- ---------------------------------------------------------------------------- - -function string.starts(String,Start) - return string.sub(String,1,string.len(Start))==Start -end - -function addlibfromstring(str) - if (str==nil) then return end - for w in str:gmatch("%S+") do - if string.starts(w,"-l")==true then - links { - string.sub(w,3) - } - end - end -end - -function addoptionsfromstring(str) - if (str==nil) then return end - for w in str:gmatch("%S+") do - if string.starts(w,"-l")==false then - linkoptions { - w - } - end - end -end - -function pkgconfigcmd() - local pkgconfig = os.getenv("PKG_CONFIG") - if pkgconfig == nil then - return "pkg-config" - end - return pkgconfig -end - -function osdmodulesbuild() - - removeflags { - "SingleOutputDir", - } - - files { - MAME_DIR .. "src/osd/osdnet.cpp", - MAME_DIR .. "src/osd/osdnet.h", - MAME_DIR .. "src/osd/watchdog.cpp", - MAME_DIR .. "src/osd/watchdog.h", - MAME_DIR .. "src/osd/modules/debugger/debug_module.h", - MAME_DIR .. "src/osd/modules/font/font_module.h", - MAME_DIR .. "src/osd/modules/midi/midi_module.h", - MAME_DIR .. "src/osd/modules/netdev/netdev_module.h", - MAME_DIR .. "src/osd/modules/sound/sound_module.h", - MAME_DIR .. "src/osd/modules/diagnostics/diagnostics_module.h", - MAME_DIR .. "src/osd/modules/monitor/monitor_module.h", - MAME_DIR .. "src/osd/modules/lib/osdobj_common.cpp", - MAME_DIR .. "src/osd/modules/lib/osdobj_common.h", - MAME_DIR .. "src/osd/modules/diagnostics/none.cpp", - MAME_DIR .. "src/osd/modules/diagnostics/diagnostics_win32.cpp", - MAME_DIR .. "src/osd/modules/debugger/none.cpp", - MAME_DIR .. "src/osd/modules/debugger/debugwin.cpp", - MAME_DIR .. "src/osd/modules/debugger/debugimgui.cpp", - MAME_DIR .. "src/osd/modules/debugger/debuggdbstub.cpp", - MAME_DIR .. "src/osd/modules/font/font_sdl.cpp", - MAME_DIR .. "src/osd/modules/font/font_windows.cpp", - MAME_DIR .. "src/osd/modules/font/font_dwrite.cpp", - MAME_DIR .. "src/osd/modules/font/font_osx.cpp", - MAME_DIR .. "src/osd/modules/font/font_none.cpp", - MAME_DIR .. "src/osd/modules/netdev/taptun.cpp", - MAME_DIR .. "src/osd/modules/netdev/pcap.cpp", - MAME_DIR .. "src/osd/modules/netdev/none.cpp", - MAME_DIR .. "src/osd/modules/midi/portmidi.cpp", - MAME_DIR .. "src/osd/modules/midi/none.cpp", - MAME_DIR .. "src/osd/modules/sound/js_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/direct_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/pa_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/pulse_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/coreaudio_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/sdl_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/xaudio2_sound.cpp", - MAME_DIR .. "src/osd/modules/sound/none.cpp", - MAME_DIR .. "src/osd/modules/input/input_module.h", - MAME_DIR .. "src/osd/modules/input/input_common.cpp", - MAME_DIR .. "src/osd/modules/input/input_common.h", - MAME_DIR .. "src/osd/modules/input/input_dinput.cpp", - MAME_DIR .. "src/osd/modules/input/input_dinput.h", - MAME_DIR .. "src/osd/modules/input/input_none.cpp", - MAME_DIR .. "src/osd/modules/input/input_rawinput.cpp", - MAME_DIR .. "src/osd/modules/input/input_win32.cpp", - MAME_DIR .. "src/osd/modules/input/input_sdl.cpp", - MAME_DIR .. "src/osd/modules/input/input_sdlcommon.cpp", - MAME_DIR .. "src/osd/modules/input/input_sdlcommon.h", - MAME_DIR .. "src/osd/modules/input/input_x11.cpp", - MAME_DIR .. "src/osd/modules/input/input_windows.cpp", - MAME_DIR .. "src/osd/modules/input/input_windows.h", - MAME_DIR .. "src/osd/modules/input/input_xinput.cpp", - MAME_DIR .. "src/osd/modules/input/input_xinput.h", - MAME_DIR .. "src/osd/modules/input/input_winhybrid.cpp", - MAME_DIR .. "src/osd/modules/input/input_mac.cpp", - MAME_DIR .. "src/osd/modules/output/output_module.h", - MAME_DIR .. "src/osd/modules/output/none.cpp", - MAME_DIR .. "src/osd/modules/output/console.cpp", - MAME_DIR .. "src/osd/modules/output/network.cpp", - MAME_DIR .. "src/osd/modules/output/win32_output.cpp", - MAME_DIR .. "src/osd/modules/output/win32_output.h", - MAME_DIR .. "src/osd/modules/monitor/monitor_common.h", - MAME_DIR .. "src/osd/modules/monitor/monitor_common.cpp", - MAME_DIR .. "src/osd/modules/monitor/monitor_win32.cpp", - MAME_DIR .. "src/osd/modules/monitor/monitor_dxgi.cpp", - MAME_DIR .. "src/osd/modules/monitor/monitor_sdl.cpp", - MAME_DIR .. "src/osd/modules/monitor/monitor_mac.cpp", - } - includedirs { - ext_includedir("asio"), - } - - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then - buildoptions { - "-Wno-unused-private-field", - } - end - - if _OPTIONS["targetos"]=="windows" then - includedirs { - MAME_DIR .. "3rdparty/winpcap/Include", - MAME_DIR .. "3rdparty/compat/mingw", - MAME_DIR .. "3rdparty/portaudio/include", - } - - includedirs { - MAME_DIR .. "3rdparty/compat/winsdk-override", - } - end - - if _OPTIONS["NO_OPENGL"]=="1" then - defines { - "USE_OPENGL=0", - } - else - files { - MAME_DIR .. "src/osd/modules/render/drawogl.cpp", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.cpp", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.cpp", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.h", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.h", - MAME_DIR .. "src/osd/modules/opengl/osd_opengl.h", - } - defines { - "USE_OPENGL=1", - } - if _OPTIONS["USE_DISPATCH_GL"]=="1" then - defines { - "USE_DISPATCH_GL=1", - } - end - end - - defines { - "__STDC_LIMIT_MACROS", - "__STDC_FORMAT_MACROS", - "__STDC_CONSTANT_MACROS", - } - - files { - MAME_DIR .. "src/osd/modules/render/drawbgfx.cpp", - MAME_DIR .. "src/osd/modules/render/aviwrite.cpp", - MAME_DIR .. "src/osd/modules/render/aviwrite.h", - MAME_DIR .. "src/osd/modules/render/bgfxutil.cpp", - MAME_DIR .. "src/osd/modules/render/bgfxutil.h", - MAME_DIR .. "src/osd/modules/render/binpacker.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/blendreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/blendreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/chain.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/chain.h", - MAME_DIR .. "src/osd/modules/render/bgfx/chainentry.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/chainentry.h", - MAME_DIR .. "src/osd/modules/render/bgfx/chainentryreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/chainentryreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/chainmanager.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/chainmanager.h", - MAME_DIR .. "src/osd/modules/render/bgfx/chainreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/chainreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/clear.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/clear.h", - MAME_DIR .. "src/osd/modules/render/bgfx/clearreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/clearreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/cullreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/cullreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/depthreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/depthreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/effect.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/effect.h", - MAME_DIR .. "src/osd/modules/render/bgfx/effectmanager.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/effectmanager.h", - MAME_DIR .. "src/osd/modules/render/bgfx/effectreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/effectreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/entryuniformreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/entryuniformreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/inputpair.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/inputpair.h", - MAME_DIR .. "src/osd/modules/render/bgfx/frameparameter.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/frameparameter.h", - MAME_DIR .. "src/osd/modules/render/bgfx/timeparameter.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/timeparameter.h", - MAME_DIR .. "src/osd/modules/render/bgfx/paramreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/paramreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/paramuniform.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/paramuniform.h", - MAME_DIR .. "src/osd/modules/render/bgfx/paramuniformreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/paramuniformreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/shadermanager.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/shadermanager.h", - MAME_DIR .. "src/osd/modules/render/bgfx/slider.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/slider.h", - MAME_DIR .. "src/osd/modules/render/bgfx/sliderreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/sliderreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/slideruniform.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/slideruniform.h", - MAME_DIR .. "src/osd/modules/render/bgfx/slideruniformreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/slideruniformreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/statereader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/statereader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/suppressor.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/suppressor.h", - MAME_DIR .. "src/osd/modules/render/bgfx/suppressorreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/suppressorreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/target.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/target.h", - MAME_DIR .. "src/osd/modules/render/bgfx/targetreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/targetreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/targetmanager.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/targetmanager.h", - MAME_DIR .. "src/osd/modules/render/bgfx/texture.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/texture.h", - MAME_DIR .. "src/osd/modules/render/bgfx/texturehandleprovider.h", - MAME_DIR .. "src/osd/modules/render/bgfx/texturemanager.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/texturemanager.h", - MAME_DIR .. "src/osd/modules/render/bgfx/uniform.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/uniform.h", - MAME_DIR .. "src/osd/modules/render/bgfx/uniformreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/uniformreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/valueuniform.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/valueuniform.h", - MAME_DIR .. "src/osd/modules/render/bgfx/valueuniformreader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/valueuniformreader.h", - MAME_DIR .. "src/osd/modules/render/bgfx/view.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/view.h", - MAME_DIR .. "src/osd/modules/render/bgfx/writereader.cpp", - MAME_DIR .. "src/osd/modules/render/bgfx/writereader.h", - } - includedirs { - MAME_DIR .. "3rdparty/bgfx/examples/common", - MAME_DIR .. "3rdparty/bgfx/include", - MAME_DIR .. "3rdparty/bgfx/3rdparty", - MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos", - MAME_DIR .. "3rdparty/bx/include", - ext_includedir("rapidjson") - } - - if _OPTIONS["NO_USE_PORTAUDIO"]=="1" then - defines { - "NO_USE_PORTAUDIO", - } - else - includedirs { - ext_includedir("portaudio"), - } - end - - if _OPTIONS["NO_USE_PULSEAUDIO"]=="1" then - defines { - "NO_USE_PULSEAUDIO", - } - end - - if _OPTIONS["NO_USE_MIDI"]=="1" then - defines { - "NO_USE_MIDI", - } - else - includedirs { - ext_includedir("portmidi"), - } - end - - if _OPTIONS["USE_QTDEBUG"]=="1" then - defines { - "USE_QTDEBUG=1", - } - else - defines { - "USE_QTDEBUG=0", - } - end - -end - - -function qtdebuggerbuild() - - removeflags { - "SingleOutputDir", - } - local version = str_to_version(_OPTIONS["gcc_version"]) - if _OPTIONS["gcc"]~=nil and (string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs")) then - configuration { "gmake or ninja" } - if (version >= 30600) then - buildoptions { - "-Wno-inconsistent-missing-override", - } - end - configuration { } - end - - files { - MAME_DIR .. "src/osd/modules/debugger/debugqt.cpp", - } - - if _OPTIONS["USE_QTDEBUG"]=="1" then - files { - MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.h", - MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.h", - MAME_DIR .. "src/osd/modules/debugger/qt/logwindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/logwindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/dasmwindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/dasmwindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/mainwindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/mainwindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/memorywindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/memorywindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/breakpointswindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/breakpointswindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/deviceswindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/deviceinformationwindow.cpp", - MAME_DIR .. "src/osd/modules/debugger/qt/deviceinformationwindow.h", - MAME_DIR .. "src/osd/modules/debugger/qt/deviceswindow.h", - GEN_DIR .. "osd/modules/debugger/qt/debuggerview.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/windowqt.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/logwindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/dasmwindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/mainwindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/memorywindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/breakpointswindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/deviceswindow.moc.cpp", - GEN_DIR .. "osd/modules/debugger/qt/deviceinformationwindow.moc.cpp", - } - defines { - "USE_QTDEBUG=1", - } - - local MOC = "" - if (os.is("windows")) then - MOC = "moc" - else - if _OPTIONS["QT_HOME"]~=nil then - QMAKETST = backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake --version 2>/dev/null") - if (QMAKETST=='') then - print("Qt's Meta Object Compiler (moc) wasn't found!") - os.exit(1) - end - MOC = _OPTIONS["QT_HOME"] .. "/bin/moc" - else - MOCTST = backtick("which moc-qt5 2>/dev/null") - if (MOCTST=='') then - MOCTST = backtick("which moc 2>/dev/null") - end - if (MOCTST=='') then - print("Qt's Meta Object Compiler (moc) wasn't found!") - os.exit(1) - end - MOC = MOCTST - end - end - - - custombuildtask { - { MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.h", GEN_DIR .. "osd/modules/debugger/qt/debuggerview.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.h", GEN_DIR .. "osd/modules/debugger/qt/windowqt.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/logwindow.h", GEN_DIR .. "osd/modules/debugger/qt/logwindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/dasmwindow.h", GEN_DIR .. "osd/modules/debugger/qt/dasmwindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/mainwindow.h", GEN_DIR .. "osd/modules/debugger/qt/mainwindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/memorywindow.h", GEN_DIR .. "osd/modules/debugger/qt/memorywindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/breakpointswindow.h", GEN_DIR .. "osd/modules/debugger/qt/breakpointswindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/deviceswindow.h", GEN_DIR .. "osd/modules/debugger/qt/deviceswindow.moc.cpp", { }, { MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - { MAME_DIR .. "src/osd/modules/debugger/qt/deviceinformationwindow.h", GEN_DIR .. "osd/modules/debugger/qt/deviceinformationwindow.moc.cpp", { },{ MOC .. "$(MOCINCPATH) -b emu.h $(<) -o $(@)" }}, - - } - - if _OPTIONS["targetos"]=="windows" then - configuration { "mingw*" } - buildoptions { - "-I$(shell qmake -query QT_INSTALL_HEADERS)", - } - configuration { } - elseif _OPTIONS["targetos"]=="macosx" then - buildoptions { - "-F" .. backtick("qmake -query QT_INSTALL_LIBS"), - } - else - if _OPTIONS["QT_HOME"]~=nil then - buildoptions { - "-I" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_HEADERS"), - } - else - buildoptions { - backtick(pkgconfigcmd() .. " --cflags Qt5Widgets"), - } - end - end - else - defines { - "USE_QTDEBUG=0", - } - end - -end - - -function osdmodulestargetconf() - - if _OPTIONS["NO_OPENGL"]~="1" then - if _OPTIONS["targetos"]=="macosx" then - links { - "OpenGL.framework", - } - elseif _OPTIONS["USE_DISPATCH_GL"]~="1" then - if _OPTIONS["targetos"]=="windows" then - links { - "opengl32", - } - else - links { - "GL", - } - end - end - end - - if _OPTIONS["NO_USE_MIDI"]~="1" then - if _OPTIONS["targetos"]=="linux" then - local str = backtick(pkgconfigcmd() .. " --libs alsa") - addlibfromstring(str) - addoptionsfromstring(str) - elseif _OPTIONS["targetos"]=="macosx" then - links { - "CoreMIDI.framework", - } - end - end - - if _OPTIONS["USE_QTDEBUG"]=="1" then - if _OPTIONS["targetos"]=="windows" then - linkoptions { - "-L$(shell qmake -query QT_INSTALL_LIBS)", - } - links { - "Qt5Core.dll", - "Qt5Gui.dll", - "Qt5Widgets.dll", - } - elseif _OPTIONS["targetos"]=="macosx" then - linkoptions { - "-F" .. backtick("qmake -query QT_INSTALL_LIBS"), - } - links { - "Qt5Core.framework", - "Qt5Gui.framework", - "Qt5Widgets.framework", - } - else - if _OPTIONS["QT_HOME"]~=nil then - linkoptions { - "-L" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_LIBS"), - } - links { - "Qt5Core", - "Qt5Gui", - "Qt5Widgets", - } - else - local str = backtick(pkgconfigcmd() .. " --libs Qt5Widgets") - addlibfromstring(str) - addoptionsfromstring(str) - end - end - end - - if _OPTIONS["targetos"]=="windows" then - links { - "gdi32", - "dsound", - "dxguid", - "oleaut32", - "winmm", - } - elseif _OPTIONS["targetos"]=="macosx" then - links { - "AudioUnit.framework", - "AudioToolbox.framework", - "CoreAudio.framework", - "CoreServices.framework", - } - end - - if _OPTIONS["NO_USE_PULSEAUDIO"]=="0" then - links { - ext_lib("pulse"), - } - end -end - - -newoption { - trigger = "USE_TAPTUN", - description = "Include tap/tun network module", - allowed = { - { "0", "Don't include tap/tun network module" }, - { "1", "Include tap/tun network module" }, - }, -} - -newoption { - trigger = "USE_PCAP", - description = "Include pcap network module", - allowed = { - { "0", "Don't include pcap network module" }, - { "1", "Include pcap network module" }, - }, -} - -newoption { - trigger = "NO_OPENGL", - description = "Disable use of OpenGL", - allowed = { - { "0", "Enable OpenGL" }, - { "1", "Disable OpenGL" }, - }, -} - -newoption { - trigger = "USE_DISPATCH_GL", - description = "Use GL-dispatching", - allowed = { - { "0", "Link to OpenGL library" }, - { "1", "Use GL-dispatching" }, - }, -} - -if not _OPTIONS["USE_DISPATCH_GL"] then - _OPTIONS["USE_DISPATCH_GL"] = "0" -end - -newoption { - trigger = "NO_USE_MIDI", - description = "Disable MIDI I/O", - allowed = { - { "0", "Enable MIDI" }, - { "1", "Disable MIDI" }, - }, -} - -if not _OPTIONS["NO_USE_MIDI"] then - if _OPTIONS["targetos"]=="freebsd" or _OPTIONS["targetos"]=="openbsd" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"] == "asmjs" then - _OPTIONS["NO_USE_MIDI"] = "1" - else - _OPTIONS["NO_USE_MIDI"] = "0" - end -end - -newoption { - trigger = "NO_USE_PORTAUDIO", - description = "Disable PortAudio interface", - allowed = { - { "0", "Enable PortAudio" }, - { "1", "Disable PortAudio" }, - }, -} - -if not _OPTIONS["NO_USE_PORTAUDIO"] then - if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="macosx" then - _OPTIONS["NO_USE_PORTAUDIO"] = "0" - else - _OPTIONS["NO_USE_PORTAUDIO"] = "1" - end -end - -newoption { - trigger = "NO_USE_PULSEAUDIO", - description = "Disable PulseAudio interface", - allowed = { - { "0", "Enable PulseAudio" }, - { "1", "Disable PulseAudio" }, - }, -} - -if not _OPTIONS["NO_USE_PULSEAUDIO"] then - if _OPTIONS["targetos"]=="linux" then - _OPTIONS["NO_USE_PULSEAUDIO"] = "0" - else - _OPTIONS["NO_USE_PULSEAUDIO"] = "1" - end -end - -newoption { - trigger = "MODERN_WIN_API", - description = "Use Modern Windows APIs", - allowed = { - { "0", "Use classic Windows APIs - allows support for XP and later" }, - { "1", "Use Modern Windows APIs - support for Windows 8.1 and later" }, - }, -} - -newoption { - trigger = "USE_QTDEBUG", - description = "Use QT debugger", - allowed = { - { "0", "Don't use Qt debugger" }, - { "1", "Use Qt debugger" }, - }, -} - -newoption { - trigger = "QT_HOME", - description = "QT lib location", -} - - -if not _OPTIONS["USE_TAPTUN"] then - if _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="windows" then - _OPTIONS["USE_TAPTUN"] = "1" - else - _OPTIONS["USE_TAPTUN"] = "0" - end -end - -if not _OPTIONS["USE_PCAP"] then - if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="netbsd" then - _OPTIONS["USE_PCAP"] = "1" - else - _OPTIONS["USE_PCAP"] = "0" - end -end - -if not _OPTIONS["USE_QTDEBUG"] then - if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then - _OPTIONS["USE_QTDEBUG"] = "0" - else - _OPTIONS["USE_QTDEBUG"] = "1" - end -end diff --git a/unused/scripts/src/osd/sdl.lua b/unused/scripts/src/osd/sdl.lua deleted file mode 100644 index 25ef22f..0000000 --- a/unused/scripts/src/osd/sdl.lua +++ /dev/null @@ -1,504 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - ---------------------------------------------------------------------------- --- --- sdl.lua --- --- Rules for the building with SDL --- ---------------------------------------------------------------------------- - -dofile("modules.lua") - - -function maintargetosdoptions(_target,_subtarget) - osdmodulestargetconf() - - if _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then - libdirs { - path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"), - } - linkoptions { - "-Wl,-rpath=" .. path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"), - } - end - - if _OPTIONS["NO_X11"]~="1" then - links { - "X11", - "Xinerama", - } - else - if _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="openbsd" then - links { - "EGL", - } - end - end - - if _OPTIONS["NO_USE_XINPUT"]~="1" then - links { - "Xext", - "Xi", - } - end - - if BASE_TARGETOS=="unix" and _OPTIONS["targetos"]~="macosx" and _OPTIONS["targetos"]~="android" and _OPTIONS["targetos"]~="asmjs" then - links { - "SDL2_ttf", - } - local str = backtick(pkgconfigcmd() .. " --libs fontconfig") - addlibfromstring(str) - addoptionsfromstring(str) - end - - if _OPTIONS["targetos"]=="windows" then - if _OPTIONS["with-bundled-sdl2"]~=nil then - configuration { "mingw*"} - links { - "SDL2", - "imm32", - "version", - "ole32", - "oleaut32", - } - configuration { "vs*" } - links { - "SDL2", - "imm32", - "version", - } - configuration { } - else - if _OPTIONS["USE_LIBSDL"]~="1" then - configuration { "mingw*"} - links { - "SDL2main", - "SDL2", - } - configuration { "vs*" } - links { - "SDL2", - "imm32", - "version", - } - configuration { } - else - local str = backtick(sdlconfigcmd() .. " --libs | sed 's/ -lSDLmain//'") - addlibfromstring(str) - addoptionsfromstring(str) - end - configuration { "x32", "vs*" } - libdirs { - path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x86") - } - configuration { "x64", "vs*" } - libdirs { - path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x64") - } - configuration { } - end - links { - "psapi", - } - elseif _OPTIONS["targetos"]=="haiku" then - links { - "network", - "bsd", - } - end - - configuration { "mingw*" or "vs*" } - targetprefix "sdl" - links { - "psapi", - "ole32", - } - configuration { } - - if _OPTIONS["targetos"]=="macosx" then - if _OPTIONS["with-bundled-sdl2"]~=nil then - links { - "SDL2", - } - end - end - -end - - -function sdlconfigcmd() - if _OPTIONS["targetos"]=="asmjs" then - return "sdl2-config" - elseif not _OPTIONS["SDL_INSTALL_ROOT"] then - return pkgconfigcmd() .. " sdl2" - else - return path.join(_OPTIONS["SDL_INSTALL_ROOT"],"bin","sdl2") .. "-config" - end -end - - -newoption { - trigger = "MESA_INSTALL_ROOT", - description = "link against specific GL-Library - also adds rpath to executable (overridden by USE_DISPATCH_GL)", -} - -newoption { - trigger = "SDL_INI_PATH", - description = "Default search path for .ini files", -} - -newoption { - trigger = "NO_X11", - description = "Disable use of X11", - allowed = { - { "0", "Enable X11" }, - { "1", "Disable X11" }, - }, -} - -if not _OPTIONS["NO_X11"] then - if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then - _OPTIONS["NO_X11"] = "1" - else - _OPTIONS["NO_X11"] = "0" - end -end - -newoption { - trigger = "NO_USE_XINPUT", - description = "Disable use of Xinput", - allowed = { - { "0", "Enable Xinput" }, - { "1", "Disable Xinput" }, - }, -} - -if not _OPTIONS["NO_USE_XINPUT"] then - if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then - _OPTIONS["NO_USE_XINPUT"] = "1" - else - _OPTIONS["NO_USE_XINPUT"] = "0" - end -end - -newoption { - trigger = "NO_USE_XINPUT_WII_LIGHTGUN_HACK", - description = "Disable use of Xinput Wii Lightgun Hack", - allowed = { - { "0", "Enable Xinput Wii Lightgun Hack" }, - { "1", "Disable Xinput Wii Lightgun Hack" }, - }, -} - -if not _OPTIONS["NO_USE_XINPUT_WII_LIGHTGUN_HACK"] then - _OPTIONS["NO_USE_XINPUT_WII_LIGHTGUN_HACK"] = "1" -end - -newoption { - trigger = "SDL2_MULTIAPI", - description = "Use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)", - allowed = { - { "0", "Use single-keyboard API" }, - { "1", "Use multi-keyboard API" }, - }, -} - -if not _OPTIONS["SDL2_MULTIAPI"] then - _OPTIONS["SDL2_MULTIAPI"] = "0" -end - -newoption { - trigger = "SDL_INSTALL_ROOT", - description = "Equivalent to the ./configure --prefix=", -} - -newoption { - trigger = "SDL_FRAMEWORK_PATH", - description = "Location of SDL framework for custom OS X installations", -} - -if not _OPTIONS["SDL_FRAMEWORK_PATH"] then - _OPTIONS["SDL_FRAMEWORK_PATH"] = "/Library/Frameworks/" -end - -newoption { - trigger = "USE_LIBSDL", - description = "Use SDL library on OS (rather than framework/dll)", - allowed = { - { "0", "Use framework/dll" }, - { "1", "Use library" }, - }, -} - -if not _OPTIONS["USE_LIBSDL"] then - _OPTIONS["USE_LIBSDL"] = "0" -end - - -BASE_TARGETOS = "unix" -SDLOS_TARGETOS = "unix" -if _OPTIONS["targetos"]=="linux" then -elseif _OPTIONS["targetos"]=="openbsd" then -elseif _OPTIONS["targetos"]=="netbsd" then -elseif _OPTIONS["targetos"]=="haiku" then -elseif _OPTIONS["targetos"]=="asmjs" then -elseif _OPTIONS["targetos"]=="windows" then - BASE_TARGETOS = "win32" - SDLOS_TARGETOS = "win32" -elseif _OPTIONS["targetos"]=="macosx" then - SDLOS_TARGETOS = "macosx" -end - -if _OPTIONS["with-bundled-sdl2"]~=nil then - includedirs { - GEN_DIR .. "includes", - } -end -if BASE_TARGETOS=="unix" then - if _OPTIONS["targetos"]=="macosx" then - local os_version = str_to_version(backtick("sw_vers -productVersion")) - - links { - "Cocoa.framework", - } - linkoptions { - "-framework QuartzCore", - "-framework OpenGL", - } - - - if os_version>=101100 then - linkoptions { - "-weak_framework Metal", - } - end - if _OPTIONS["with-bundled-sdl2"]~=nil then - linkoptions { - "-framework AudioToolbox", - "-framework AudioUnit", - "-framework CoreAudio", - "-framework Carbon", - "-framework ForceFeedback", - "-framework IOKit", - "-framework CoreVideo", - } - else - if _OPTIONS["USE_LIBSDL"]~="1" then - linkoptions { - "-F" .. _OPTIONS["SDL_FRAMEWORK_PATH"], - } - links { - "SDL2.framework", - } - else - local str = backtick(sdlconfigcmd() .. " --libs --static | sed 's/-lSDLmain//'") - addlibfromstring(str) - addoptionsfromstring(str) - end - end - else - if _OPTIONS["NO_X11"]=="1" then - _OPTIONS["USE_QTDEBUG"] = "0" - else - libdirs { - "/usr/X11/lib", - "/usr/X11R6/lib", - "/usr/openwin/lib", - } - end - if _OPTIONS["with-bundled-sdl2"]~=nil then - if _OPTIONS["targetos"]~="android" then - links { - "SDL2", - } - end - else - local str = backtick(sdlconfigcmd() .. " --libs") - addlibfromstring(str) - addoptionsfromstring(str) - end - - if _OPTIONS["targetos"]~="haiku" and _OPTIONS["targetos"]~="android" then - links { - "m", - "pthread", - } - if _OPTIONS["targetos"]=="solaris" then - links { - "socket", - "nsl", - } - elseif _OPTIONS["targetos"]~="asmjs" then - links { - "util", - } - end - end - end -end - -project ("qtdbg_" .. _OPTIONS["osd"]) - uuid (os.uuid("qtdbg_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("sdl_cfg.lua") - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - } - configuration { "linux-* or freebsd" } - buildoptions { - "-fPIC", - } - configuration { } - - qtdebuggerbuild() - -project ("osd_" .. _OPTIONS["osd"]) - targetsubdir(_OPTIONS["target"] .."_" .._OPTIONS["subtarget"]) - uuid (os.uuid("osd_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("sdl_cfg.lua") - osdmodulesbuild() - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/file", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - MAME_DIR .. "src/osd/sdl", - } - - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "src/osd/modules/debugger/debugosx.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.h", - MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.h", - MAME_DIR .. "src/osd/modules/debugger/osx/registerpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/registerpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/registersview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/registersview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.mm", - MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.h", - MAME_DIR .. "src/osd/modules/debugger/osx/debugosx.h", - } - end - - files { - MAME_DIR .. "src/osd/sdl/osdsdl.h", - MAME_DIR .. "src/osd/sdl/sdlprefix.h", - MAME_DIR .. "src/osd/sdl/sdlmain.cpp", - MAME_DIR .. "src/osd/osdepend.h", - MAME_DIR .. "src/osd/sdl/video.cpp", - MAME_DIR .. "src/osd/sdl/window.cpp", - MAME_DIR .. "src/osd/sdl/window.h", - MAME_DIR .. "src/osd/modules/osdwindow.cpp", - MAME_DIR .. "src/osd/modules/osdwindow.h", - MAME_DIR .. "src/osd/modules/render/drawsdl.cpp", - } - files { - MAME_DIR .. "src/osd/modules/render/draw13.cpp", - MAME_DIR .. "src/osd/modules/render/blit13.h", - } - - -project ("ocore_" .. _OPTIONS["osd"]) - targetsubdir(_OPTIONS["target"] .."_" .. _OPTIONS["subtarget"]) - uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - removeflags { - "SingleOutputDir", - } - - dofile("sdl_cfg.lua") - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/sdl", - } - - files { - MAME_DIR .. "src/osd/osdcore.cpp", - MAME_DIR .. "src/osd/osdcore.h", - MAME_DIR .. "src/osd/osdfile.h", - MAME_DIR .. "src/osd/strconv.cpp", - MAME_DIR .. "src/osd/strconv.h", - MAME_DIR .. "src/osd/osdsync.cpp", - MAME_DIR .. "src/osd/osdsync.h", - MAME_DIR .. "src/osd/modules/osdmodule.cpp", - MAME_DIR .. "src/osd/modules/osdmodule.h", - MAME_DIR .. "src/osd/modules/lib/osdlib_" .. SDLOS_TARGETOS .. ".cpp", - MAME_DIR .. "src/osd/modules/lib/osdlib.h", - } - - if BASE_TARGETOS=="unix" then - files { - MAME_DIR .. "src/osd/modules/file/posixdir.cpp", - MAME_DIR .. "src/osd/modules/file/posixfile.cpp", - MAME_DIR .. "src/osd/modules/file/posixfile.h", - MAME_DIR .. "src/osd/modules/file/posixptty.cpp", - MAME_DIR .. "src/osd/modules/file/posixsocket.cpp", - } - elseif BASE_TARGETOS=="win32" then - includedirs { - MAME_DIR .. "src/osd/windows", - } - files { - MAME_DIR .. "src/osd/modules/file/windir.cpp", - MAME_DIR .. "src/osd/modules/file/winfile.cpp", - MAME_DIR .. "src/osd/modules/file/winfile.h", - MAME_DIR .. "src/osd/modules/file/winptty.cpp", - MAME_DIR .. "src/osd/modules/file/winsocket.cpp", - MAME_DIR .. "src/osd/windows/winutil.cpp", -- FIXME put the necessary functions somewhere more appropriate - } - else - files { - MAME_DIR .. "src/osd/modules/file/stdfile.cpp", - } - end - - diff --git a/unused/scripts/src/osd/sdl_cfg.lua b/unused/scripts/src/osd/sdl_cfg.lua deleted file mode 100644 index 26850d4..0000000 --- a/unused/scripts/src/osd/sdl_cfg.lua +++ /dev/null @@ -1,174 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - -dofile('modules.lua') - -forcedincludes { - MAME_DIR .. "src/osd/sdl/sdlprefix.h" -} - -if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then - defines { - "USE_NETWORK", - } - if _OPTIONS["USE_TAPTUN"]=="1" then - defines { - "OSD_NET_USE_TAPTUN", - } - end - if _OPTIONS["USE_PCAP"]=="1" then - defines { - "OSD_NET_USE_PCAP", - } - end -end - -if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then - includedirs { - path.join(_OPTIONS["MESA_INSTALL_ROOT"],"include"), - } -end - -if _OPTIONS["SDL_INI_PATH"]~=nil then - defines { - "'INI_PATH=\"" .. _OPTIONS["SDL_INI_PATH"] .. "\"'", - } -end - -if _OPTIONS["NO_X11"]=="1" then - defines { - "SDLMAME_NO_X11", - } -else - defines { - "SDLMAME_X11", - } - includedirs { - "/usr/X11/include", - "/usr/X11R6/include", - "/usr/openwin/include", - } -end - -if _OPTIONS["NO_USE_XINPUT"]=="1" then - defines { - "USE_XINPUT=0", - } -else - defines { - "USE_XINPUT=1", - "USE_XINPUT_DEBUG=0", - } -end - -if _OPTIONS["NO_USE_XINPUT_WII_LIGHTGUN_HACK"]=="1" then - defines { - "USE_XINPUT_WII_LIGHTGUN_HACK=0", - } -else - defines { - "USE_XINPUT_WII_LIGHTGUN_HACK=1", - } -end - -if _OPTIONS["NO_USE_MIDI"]~="1" and _OPTIONS["targetos"]=="linux" then - buildoptions { - backtick(pkgconfigcmd() .. " --cflags alsa"), - } -end - -defines { - "SDLMAME_SDL2=1", -} -if _OPTIONS["SDL2_MULTIAPI"]=="1" then - defines { - "SDL2_MULTIAPI", - } -end - -defines { - "OSD_SDL", -} - -if BASE_TARGETOS=="unix" then - defines { - "SDLMAME_UNIX", - } - if _OPTIONS["targetos"]=="macosx" then - if _OPTIONS["with-bundled-sdl2"]==nil then - if _OPTIONS["USE_LIBSDL"]~="1" then - buildoptions { - "-F" .. _OPTIONS["SDL_FRAMEWORK_PATH"], - } - else - defines { - "MACOSX_USE_LIBSDL", - } - buildoptions { - backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL2::'"), - } - end - end - else - buildoptions { - backtick(sdlconfigcmd() .. " --cflags"), - } - if _OPTIONS["targetos"]~="asmjs" then - buildoptions { - backtick(pkgconfigcmd() .. " --cflags fontconfig"), - } - end - end -end - -if _OPTIONS["targetos"]=="windows" then - configuration { "mingw* or vs*" } - defines { - "UNICODE", - "_UNICODE", - "_WIN32_WINNT=0x0501", - "WIN32_LEAN_AND_MEAN", - "NOMINMAX", - } - - configuration { } - -elseif _OPTIONS["targetos"]=="linux" then - if _OPTIONS["QT_HOME"]~=nil then - buildoptions { - "-I" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_HEADERS"), - } - else - buildoptions { - backtick(pkgconfigcmd() .. " --cflags Qt5Widgets"), - } - end -elseif _OPTIONS["targetos"]=="macosx" then - defines { - "SDLMAME_MACOSX", - "SDLMAME_DARWIN", - } -elseif _OPTIONS["targetos"]=="freebsd" then - buildoptions { - -- /usr/local/include is not considered a system include director on FreeBSD. GL.h resides there and throws warnings - "-isystem /usr/local/include", - } -end - -configuration { "osx*" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/osx", - } - -configuration { "freebsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - -configuration { "netbsd" } - includedirs { - MAME_DIR .. "3rdparty/bx/include/compat/freebsd", - } - -configuration { } - diff --git a/unused/scripts/src/osd/windows.lua b/unused/scripts/src/osd/windows.lua deleted file mode 100644 index 2d5ca91..0000000 --- a/unused/scripts/src/osd/windows.lua +++ /dev/null @@ -1,264 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - ---------------------------------------------------------------------------- --- --- windows.lua --- --- Rules for the building for Windows --- ---------------------------------------------------------------------------- - -dofile("modules.lua") - - -function maintargetosdoptions(_target,_subtarget) - osdmodulestargetconf() - - configuration { "mingw*" } - links { - "mingw32", - } - - configuration { } - - if _OPTIONS["USE_SDL"] == "1" then - links { - "SDL.dll", - } - end - - links { - "dinput8", - "comctl32", - "comdlg32", - "psapi", - "ole32", - "shlwapi", - } -end - - -newoption { - trigger = "USE_SDL", - description = "Enable SDL sound output", - allowed = { - { "0", "Disable SDL sound output" }, - { "1", "Enable SDL sound output" }, - }, -} - -if not _OPTIONS["USE_SDL"] then - _OPTIONS["USE_SDL"] = "0" -end - -newoption { - trigger = "CYGWIN_BUILD", - description = "Build with Cygwin tools", - allowed = { - { "0", "Build with MinGW tools" }, - { "1", "Build with Cygwin tools" }, - }, -} - -if not _OPTIONS["CYGWIN_BUILD"] then - _OPTIONS["CYGWIN_BUILD"] = "0" -end - - -if _OPTIONS["CYGWIN_BUILD"] == "1" then - buildoptions { - "-mmo-cygwin", - } - linkoptions { - "-mno-cygwin", - } -end - - -project ("qtdbg_" .. _OPTIONS["osd"]) - uuid (os.uuid("qtdbg_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("windows_cfg.lua") - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - } - qtdebuggerbuild() - -project ("osd_" .. _OPTIONS["osd"]) - uuid (os.uuid("osd_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - dofile("windows_cfg.lua") - osdmodulesbuild() - - defines { - "DIRECT3D_VERSION=0x0900", - "DIRECTINPUT_VERSION=0x0800", - } - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/devices", -- accessing imagedev from debugger - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/file", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - } - - includedirs { - MAME_DIR .. "src/osd/windows", - } - - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then - buildoptions_cpp { - "-Wno-ignored-attributes",-- many instances in ImGui - } - end - - files { - MAME_DIR .. "src/osd/modules/render/d3d/d3dhlsl.cpp", - MAME_DIR .. "src/osd/modules/render/d3d/d3dcomm.h", - MAME_DIR .. "src/osd/modules/render/d3d/d3dhlsl.h", - MAME_DIR .. "src/osd/modules/render/drawd3d.cpp", - MAME_DIR .. "src/osd/modules/render/drawd3d.h", - MAME_DIR .. "src/osd/modules/render/drawgdi.cpp", - MAME_DIR .. "src/osd/modules/render/drawgdi.h", - MAME_DIR .. "src/osd/modules/render/drawnone.cpp", - MAME_DIR .. "src/osd/modules/render/drawnone.h", - MAME_DIR .. "src/osd/windows/video.cpp", - MAME_DIR .. "src/osd/windows/video.h", - MAME_DIR .. "src/osd/windows/window.cpp", - MAME_DIR .. "src/osd/windows/window.h", - MAME_DIR .. "src/osd/modules/osdwindow.cpp", - MAME_DIR .. "src/osd/modules/osdwindow.h", - MAME_DIR .. "src/osd/windows/winmenu.cpp", - MAME_DIR .. "src/osd/windows/winmain.cpp", - MAME_DIR .. "src/osd/windows/winmain.h", - MAME_DIR .. "src/osd/osdepend.h", - MAME_DIR .. "src/osd/modules/debugger/win/consolewininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/consolewininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/debugbaseinfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/debugbaseinfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/debugviewinfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/debugviewinfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/debugwininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/debugwininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/disasmbasewininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/disasmbasewininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/disasmviewinfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/disasmviewinfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/disasmwininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/disasmwininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/editwininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/editwininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/logwininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/logwininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/logviewinfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/logviewinfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/memoryviewinfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/memoryviewinfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/memorywininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/memorywininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/pointswininfo.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/pointswininfo.h", - MAME_DIR .. "src/osd/modules/debugger/win/uimetrics.cpp", - MAME_DIR .. "src/osd/modules/debugger/win/uimetrics.h", - MAME_DIR .. "src/osd/modules/debugger/win/debugwin.h", - } - - -project ("ocore_" .. _OPTIONS["osd"]) - uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) - kind (LIBTYPE) - - removeflags { - "SingleOutputDir", - } - - dofile("windows_cfg.lua") - - includedirs { - MAME_DIR .. "3rdparty", - MAME_DIR .. "src/emu", - MAME_DIR .. "src/osd", - MAME_DIR .. "src/osd/modules/file", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - } - - BASE_TARGETOS = "win32" - SDLOS_TARGETOS = "win32" - - includedirs { - MAME_DIR .. "src/osd/windows", - } - - files { - MAME_DIR .. "src/osd/eigccppc.h", - MAME_DIR .. "src/osd/eigccx86.h", - MAME_DIR .. "src/osd/eivc.h", - MAME_DIR .. "src/osd/eivcarm.h", - MAME_DIR .. "src/osd/eivcx86.h", - MAME_DIR .. "src/osd/eminline.h", - MAME_DIR .. "src/osd/osdcomm.h", - MAME_DIR .. "src/osd/osdcore.cpp", - MAME_DIR .. "src/osd/osdcore.h", - MAME_DIR .. "src/osd/strconv.cpp", - MAME_DIR .. "src/osd/strconv.h", - MAME_DIR .. "src/osd/osdsync.cpp", - MAME_DIR .. "src/osd/osdsync.h", - MAME_DIR .. "src/osd/windows/winutf8.cpp", - MAME_DIR .. "src/osd/windows/winutf8.h", - MAME_DIR .. "src/osd/windows/winutil.cpp", - MAME_DIR .. "src/osd/windows/winutil.h", - MAME_DIR .. "src/osd/modules/osdmodule.cpp", - MAME_DIR .. "src/osd/modules/osdmodule.h", - MAME_DIR .. "src/osd/modules/file/windir.cpp", - MAME_DIR .. "src/osd/modules/file/winfile.cpp", - MAME_DIR .. "src/osd/modules/file/winfile.h", - MAME_DIR .. "src/osd/modules/file/winptty.cpp", - MAME_DIR .. "src/osd/modules/file/winsocket.cpp", - MAME_DIR .. "src/osd/modules/lib/osdlib_win32.cpp", - } - - - --------------------------------------------------- --- ledutil --------------------------------------------------- - -if _OPTIONS["with-tools"] then - project("ledutil") - uuid ("061293ca-7290-44ac-b2b5-5913ae8dc9c0") - kind "ConsoleApp" - - flags { - "Symbols", -- always include minimum symbols for executables - } - - if _OPTIONS["SEPARATE_BIN"]~="1" then - targetdir(MAME_DIR) - end - - links { - "ocore_" .. _OPTIONS["osd"], - } - - includedirs { - MAME_DIR .. "src/osd", - } - - files { - MAME_DIR .. "src/osd/windows/ledutil.cpp", - } -end diff --git a/unused/scripts/src/osd/windows_cfg.lua b/unused/scripts/src/osd/windows_cfg.lua deleted file mode 100644 index 8faf636..0000000 --- a/unused/scripts/src/osd/windows_cfg.lua +++ /dev/null @@ -1,67 +0,0 @@ --- license:BSD-3-Clause --- copyright-holders:MAMEdev Team - -defines { - "OSD_WINDOWS", - "WIN32_LEAN_AND_MEAN", - "NOMINMAX", -} - -configuration { "mingw* or vs*" } - defines { - "UNICODE", - "_UNICODE" - } - -configuration { "vs*" } - flags { - "Unicode", - } - -configuration { } - -if not _OPTIONS["MODERN_WIN_API"] then - _OPTIONS["MODERN_WIN_API"] = "0" -end - -if _OPTIONS["MODERN_WIN_API"]=="1" then - defines { - "WINVER=0x0602", - "_WIN32_WINNT=0x0602", - "NTDDI_VERSION=0x06030000", - "MODERN_WIN_API", - } -else - defines { - "_WIN32_WINNT=0x0501", - } -end - -if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then - defines { - "USE_NETWORK", - } - if _OPTIONS["USE_TAPTUN"]=="1" then - defines { - "OSD_NET_USE_TAPTUN", - } - end - if _OPTIONS["USE_PCAP"]=="1" then - defines { - "OSD_NET_USE_PCAP", - } - end -end - -if _OPTIONS["USE_SDL"]=="1" then - defines { - "SDLMAME_SDL2=1", - "USE_XINPUT=0", - "USE_SDL=1", - "USE_SDL_SOUND", - } -else - defines { - "USE_SDL=0", - } -end diff --git a/unused/scripts/toolchain.lua b/unused/scripts/toolchain.lua deleted file mode 100644 index 4a3eac0..0000000 --- a/unused/scripts/toolchain.lua +++ /dev/null @@ -1,720 +0,0 @@ --- --- Copyright 2010-2021 Branimir Karadzic. All rights reserved. --- License: https://github.com/bkaradzic/bx#license-bsd-2-clause --- - -local naclToolchain = "" -local toolchainPrefix = "" - -if _OPTIONS['TOOLCHAIN'] then - toolchainPrefix = _OPTIONS["TOOLCHAIN"] -end - -newoption { - trigger = "gcc", - value = "GCC", - description = "Choose GCC flavor", - allowed = { - { "android-arm", "Android - ARM" }, - { "android-arm64", "Android - ARM64" }, - { "android-x86", "Android - x86" }, - { "android-x64", "Android - x64" }, - { "asmjs", "Emscripten/asm.js" }, - { "freebsd", "FreeBSD" }, - { "freebsd-clang", "FreeBSD (clang compiler)"}, - { "linux-gcc", "Linux (GCC compiler)" }, - { "linux-clang", "Linux (Clang compiler)" }, - { "mingw32-gcc", "MinGW32" }, - { "mingw64-gcc", "MinGW64" }, - { "mingw-clang", "MinGW (clang compiler)" }, - { "netbsd", "NetBSD" }, - { "netbsd-clang", "NetBSD (clang compiler)"}, - { "openbsd", "OpenBSD" }, - { "osx", "OSX (GCC compiler)" }, - { "osx-clang", "OSX (Clang compiler)" }, - { "solaris", "Solaris" }, - }, -} - -newoption { - trigger = "vs", - value = "toolset", - description = "Choose VS toolset", - allowed = { - { "intel-15", "Intel C++ Compiler XE 15.0" }, - { "clangcl", "Visual Studio 2019 using Clang/LLVM" }, - }, -} - -newoption { - trigger = "with-android", - value = "#", - description = "Set Android platform version (default: android-21).", -} - -function toolchain(_buildDir, _subDir) - - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION) - - local androidPlatform = "android-24" - if _OPTIONS["with-android"] then - androidPlatform = "android-" .. _OPTIONS["with-android"] - elseif _OPTIONS["PLATFORM"]:find("64", -2) then - androidPlatform = "android-24" - end - - if _ACTION == "gmake" or _ACTION == "ninja" then - - if nil == _OPTIONS["gcc"] or nil == _OPTIONS["gcc_version"] then - print("GCC flavor and version must be specified!") - os.exit(1) - end - - if string.find(_OPTIONS["gcc"], "android") then - -- 64-bit android platform requires >= 21 - if _OPTIONS["PLATFORM"]:find("64", -2) and tonumber(androidPlatform:sub(9)) < 21 then - error("64-bit android requires platform 21 or higher") - end - if not os.getenv("ANDROID_NDK_ROOT") then - print("Set ANDROID_NDK_ROOT environment variable.") - end - if not os.getenv("ANDROID_NDK_LLVM") then - print("Set ANDROID_NDK_LLVM envrionment variable.") - end - platform_ndk_env = "ANDROID_NDK_" .. _OPTIONS["PLATFORM"]:upper() - if not os.getenv(platform_ndk_env) then - print("Set " .. platform_ndk_env .. " environment variable.") - end - - local platformToolchainMap = { - ['arm'] = "arm-linux-androideabi", - ['arm64'] = "aarch64-linux-android", - ['x86'] = "i686-linux-android", - ['x64'] = "x86_64-linux-android", - } - - toolchainPrefix = os.getenv(platform_ndk_env) .. "/bin/" .. platformToolchainMap[_OPTIONS["PLATFORM"]] .. "-" - - premake.gcc.cc = "$(ANDROID_NDK_LLVM)/bin/clang" - premake.gcc.cxx = "$(ANDROID_NDK_LLVM)/bin/clang++" - premake.gcc.ar = toolchainPrefix .. "ar" - premake.gcc.llvm = true - - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-android-" .. _OPTIONS["PLATFORM"]) - end - - if "asmjs" == _OPTIONS["gcc"] then - - if not os.getenv("EMSCRIPTEN") then - print("Set EMSCRIPTEN enviroment variables.") - end - - premake.gcc.cc = "$(EMSCRIPTEN)/emcc" - premake.gcc.cxx = "$(EMSCRIPTEN)/em++" - premake.gcc.ar = "$(EMSCRIPTEN)/emar" - premake.gcc.llvm = true - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-asmjs") - end - - if "freebsd" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd") - end - - if "freebsd-clang" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd-clang") - end - - if "netbsd" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd") - end - - if "netbsd-clang" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd-clang") - end - - if "openbsd" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd") - end - - if "linux-gcc" == _OPTIONS["gcc"] then - -- Force gcc-4.2 on ubuntu-intrepid - if _OPTIONS["distro"]=="ubuntu-intrepid" then - premake.gcc.cc = "@gcc -V 4.2" - premake.gcc.cxx = "@g++-4.2" - end - premake.gcc.ar = "ar" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux") - end - - if "solaris" == _OPTIONS["gcc"] then - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-solaris") - end - - - if "linux-clang" == _OPTIONS["gcc"] then - premake.gcc.cc = "clang" - premake.gcc.cxx = "clang++" - premake.gcc.ar = "ar" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux-clang") - end - - if "mingw32-gcc" == _OPTIONS["gcc"] then - if not os.getenv("MINGW32") then - print("Set MINGW32 envrionment variable.") - end - if toolchainPrefix == nil or toolchainPrefix == "" then - toolchainPrefix = "$(MINGW32)/bin/i686-w64-mingw32-" - end - premake.gcc.cc = toolchainPrefix .. "gcc" - premake.gcc.cxx = toolchainPrefix .. "g++" - premake.gcc.ar = toolchainPrefix .. "gcc-ar" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw32-gcc") - end - - if "mingw64-gcc" == _OPTIONS["gcc"] then - if not os.getenv("MINGW64") then - print("Set MINGW64 envrionment variable.") - end - if toolchainPrefix == nil or toolchainPrefix == "" then - toolchainPrefix = "$(MINGW64)/bin/x86_64-w64-mingw32-" - end - premake.gcc.cc = toolchainPrefix .. "gcc" - premake.gcc.cxx = toolchainPrefix .. "g++" - premake.gcc.ar = toolchainPrefix .. "gcc-ar" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc") - end - - if "mingw-clang" == _OPTIONS["gcc"] then - premake.gcc.cc = "clang" - premake.gcc.cxx = "clang++" - premake.gcc.ar = "llvm-ar" - premake.gcc.llvm = true - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw-clang") - end - - if "osx" == _OPTIONS["gcc"] then - if os.is("linux") then - premake.gcc.cc = toolchainPrefix .. "clang" - premake.gcc.cxx = toolchainPrefix .. "clang++" - premake.gcc.ar = toolchainPrefix .. "ar" - end - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-osx") - end - - if "osx-clang" == _OPTIONS["gcc"] then - premake.gcc.cc = toolchainPrefix .. "clang" - premake.gcc.cxx = toolchainPrefix .. "clang++" - premake.gcc.ar = toolchainPrefix .. "ar" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-osx-clang") - end - elseif _ACTION == "vs2019" then - - if "clangcl" == _OPTIONS["vs"] then - premake.vstudio.toolset = ("ClangCL") - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-clang") - end - - if "intel-15" == _OPTIONS["vs"] then - premake.vstudio.toolset = "Intel C++ Compiler XE 15.0" - location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-intel") - end - end - - if (_OPTIONS["CC"] ~= nil) then - premake.gcc.cc = _OPTIONS["CC"] - end - if (_OPTIONS["CXX"] ~= nil) then - premake.gcc.cxx = _OPTIONS["CXX"] - end - if (_OPTIONS["LD"] ~= nil) then - premake.gcc.ld = _OPTIONS["LD"] - end - if (_OPTIONS["AR"] ~= nil) then - premake.gcc.ar = _OPTIONS["AR"] - end - - configuration {} -- reset configuration - - - configuration { "x32", "vs*" } - objdir (_buildDir .. _ACTION .. "/obj") - - configuration { "x32", "vs*", "Release" } - targetdir (_buildDir .. _ACTION .. "/bin/x32/Release") - - configuration { "x32", "vs*", "Debug" } - targetdir (_buildDir .. _ACTION .. "/bin/x32/Debug") - - configuration { "x64", "vs*" } - defines { "_WIN64" } - objdir (_buildDir .. _ACTION .. "/obj") - - configuration { "x64", "vs*", "Release" } - targetdir (_buildDir .. _ACTION .. "/bin/x64/Release") - - configuration { "x64", "vs*", "Debug" } - targetdir (_buildDir .. _ACTION .. "/bin/x64/Debug") - - configuration { "x32", "vs*-clang" } - objdir (_buildDir .. _ACTION .. "-clang/obj") - - configuration { "x32", "vs*-clang", "Release" } - targetdir (_buildDir .. _ACTION .. "-clang/bin/x32/Release") - - configuration { "x32", "vs*-clang", "Debug" } - targetdir (_buildDir .. _ACTION .. "-clang/bin/x32/Debug") - - configuration { "x64", "vs*-clang" } - objdir (_buildDir .. _ACTION .. "-clang/obj") - - configuration { "x64", "vs*-clang", "Release" } - targetdir (_buildDir .. _ACTION .. "-clang/bin/x64/Release") - - configuration { "x64", "vs*-clang", "Debug" } - targetdir (_buildDir .. _ACTION .. "-clang/bin/x64/Debug") - - configuration { "vs*-clang" } - buildoptions { - "-Qunused-arguments", - } - - configuration { "mingw*" } - defines { "WIN32" } - - configuration { "x32", "mingw32-gcc" } - objdir (_buildDir .. "mingw-gcc" .. "/obj") - buildoptions { "-m32" } - - configuration { "x32", "mingw32-gcc", "Release" } - targetdir (_buildDir .. "mingw-gcc" .. "/bin/x32/Release") - - configuration { "x32", "mingw32-gcc", "Debug" } - targetdir (_buildDir .. "mingw-gcc" .. "/bin/x32/Debug") - - configuration { "x64", "mingw64-gcc" } - objdir (_buildDir .. "mingw-gcc" .. "/obj") - buildoptions { "-m64" } - - configuration { "x64", "mingw64-gcc", "Release" } - targetdir (_buildDir .. "mingw-gcc" .. "/bin/x64/Release") - - configuration { "x64", "mingw64-gcc", "Debug" } - targetdir (_buildDir .. "mingw-gcc" .. "/bin/x64/Debug") - - configuration { "mingw-clang" } - buildoptions { - "-femulated-tls", - } - linkoptions { - "-Wl,--allow-multiple-definition", - } - - configuration { "x32", "mingw-clang" } - objdir ( _buildDir .. "mingw-clang/obj") - buildoptions { "-m32" } - - configuration { "x32", "mingw-clang", "Release" } - targetdir (_buildDir .. "mingw-clang/bin/x32/Release") - - configuration { "x32", "mingw-clang", "Debug" } - targetdir (_buildDir .. "mingw-clang/bin/x32/Debug") - - configuration { "x64", "mingw-clang" } - objdir (_buildDir .. "mingw-clang/obj") - buildoptions { "-m64" } - - configuration { "x64", "mingw-clang", "Release" } - targetdir (_buildDir .. "mingw-clang/bin/x64/Release") - - configuration { "x64", "mingw-clang", "Debug" } - targetdir (_buildDir .. "mingw-clang/bin/x64/Debug") - - configuration { "linux-gcc", "x32" } - objdir (_buildDir .. "linux_gcc" .. "/obj") - buildoptions { - "-m32", - } - - configuration { "linux-gcc", "x32", "Release" } - targetdir (_buildDir .. "linux_gcc" .. "/bin/x32/Release") - - configuration { "linux-gcc", "x32", "Debug" } - targetdir (_buildDir .. "linux_gcc" .. "/bin/x32/Debug") - - configuration { "linux-gcc", "x64" } - objdir (_buildDir .. "linux_gcc" .. "/obj") - buildoptions { - "-m64", - } - - configuration { "linux-gcc", "x64", "Release" } - targetdir (_buildDir .. "linux_gcc" .. "/bin/x64/Release") - - configuration { "linux-gcc", "x64", "Debug" } - targetdir (_buildDir .. "linux_gcc" .. "/bin/x64/Debug") - - configuration { "linux-clang", "x32" } - objdir (_buildDir .. "linux_clang" .. "/obj") - buildoptions { - "-m32", - } - - configuration { "linux-clang", "x32", "Release" } - targetdir (_buildDir .. "linux_clang" .. "/bin/x32/Release") - - configuration { "linux-clang", "x32", "Debug" } - targetdir (_buildDir .. "linux_clang" .. "/bin/x32/Debug") - - configuration { "linux-clang", "x64" } - objdir (_buildDir .. "linux_clang" .. "/obj") - buildoptions { - "-m64", - } - - configuration { "linux-clang", "x64", "Release" } - targetdir (_buildDir .. "linux_clang" .. "/bin/x64/Release") - - configuration { "linux-clang", "x64", "Debug" } - targetdir (_buildDir .. "linux_clang" .. "/bin/x64/Debug") - - configuration { "solaris", "x32" } - objdir (_buildDir .. "solaris" .. "/obj") - buildoptions { - "-m32", - } - - configuration { "solaris", "x32", "Release" } - targetdir (_buildDir .. "solaris" .. "/bin/x32/Release") - - configuration { "solaris", "x32", "Debug" } - targetdir (_buildDir .. "solaris" .. "/bin/x32/Debug") - - configuration { "solaris", "x64" } - objdir (_buildDir .. "solaris" .. "/obj") - buildoptions { - "-m64", - } - - configuration { "solaris", "x64", "Release" } - targetdir (_buildDir .. "solaris" .. "/bin/x64/Release") - - configuration { "solaris", "x64", "Debug" } - targetdir (_buildDir .. "solaris" .. "/bin/x64/Debug") - - configuration { "freebsd", "x32" } - objdir (_buildDir .. "freebsd" .. "/obj") - buildoptions { - "-m32", - } - - configuration { "freebsd", "x32", "Release" } - targetdir (_buildDir .. "freebsd" .. "/bin/x32/Release") - - configuration { "freebsd", "x32", "Debug" } - targetdir (_buildDir .. "freebsd" .. "/bin/x32/Debug") - - configuration { "freebsd", "x64" } - objdir (_buildDir .. "freebsd" .. "/obj") - buildoptions { - "-m64", - } - configuration { "freebsd", "x64", "Release" } - targetdir (_buildDir .. "freebsd" .. "/bin/x64/Release") - - configuration { "freebsd", "x64", "Debug" } - targetdir (_buildDir .. "freebsd" .. "/bin/x64/Debug") - - configuration { "netbsd", "x32" } - objdir (_buildDir .. "netbsd" .. "/obj") - buildoptions { - "-m32", - } - configuration { "netbsd", "x32", "Release" } - targetdir (_buildDir .. "netbsd" .. "/bin/x32/Release") - - configuration { "netbsd", "x32", "Debug" } - targetdir (_buildDir .. "netbsd" .. "/bin/x32/Debug") - - configuration { "netbsd", "x64" } - objdir (_buildDir .. "netbsd" .. "/obj") - buildoptions { - "-m64", - } - configuration { "netbsd", "x64", "Release" } - targetdir (_buildDir .. "netbsd" .. "/bin/x64/Release") - - configuration { "netbsd", "x64", "Debug" } - targetdir (_buildDir .. "netbsd" .. "/bin/x64/Debug") - - configuration { "openbsd", "x32" } - objdir (_buildDir .. "openbsd" .. "/obj") - buildoptions { - "-m32", - } - configuration { "openbsd", "x32", "Release" } - targetdir (_buildDir .. "openbsd" .. "/bin/x32/Release") - - configuration { "openbsd", "x32", "Debug" } - targetdir (_buildDir .. "openbsd" .. "/bin/x32/Debug") - - configuration { "openbsd", "x64" } - objdir (_buildDir .. "openbsd" .. "/obj") - buildoptions { - "-m64", - } - configuration { "openbsd", "x64", "Release" } - targetdir (_buildDir .. "openbsd" .. "/bin/x64/Release") - - configuration { "openbsd", "x64", "Debug" } - targetdir (_buildDir .. "openbsd" .. "/bin/x64/Debug") - - configuration { "android-*", "Release" } - targetdir (_buildDir .. "android/bin/" .. _OPTIONS["PLATFORM"] .. "/Release") - - configuration { "android-*", "Debug" } - targetdir (_buildDir .. "android/bin/" .. _OPTIONS["PLATFORM"] .. "/Debug") - - configuration { "android-*" } - objdir (_buildDir .. "android/obj/" .. _OPTIONS["PLATFORM"]) - includedirs { - MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos", - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libcxx/include", - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/include", - "$(ANDROID_NDK_ROOT)/sysroot/usr/include", - "$(ANDROID_NDK_ROOT)/sources/android/support/include", - "$(ANDROID_NDK_ROOT)/sources/android/native_app_glue", - } - linkoptions { - "-nostdlib", - } - flags { - "NoImportLib", - } - links { - "c", - "dl", - "m", - "android", - "log", - "c++_static", - "c++abi", - "stdc++", - "gcc", - } - buildoptions_c { - "-Wno-strict-prototypes", - } - buildoptions { - "-fpic", - "-ffunction-sections", - "-funwind-tables", - "-fstack-protector-strong", - "-no-canonical-prefixes", - "-fno-integrated-as", - "-Wunused-value", - "-Wundef", - "-Wno-cast-align", - "-Wno-unknown-attributes", - "-Wno-macro-redefined", - "-DASIO_HAS_STD_STRING_VIEW", - "-Wno-unused-function", - } - linkoptions { - "-no-canonical-prefixes", - "-Wl,--no-undefined", - "-Wl,-z,noexecstack", - "-Wl,-z,relro", - "-Wl,-z,now", - } - - - configuration { "android-arm" } - libdirs { - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm/usr/lib", - } - includedirs { - "$(ANDROID_NDK_ROOT)/sysroot/usr/include/arm-linux-androideabi", - } - buildoptions { - "-gcc-toolchain $(ANDROID_NDK_ARM)", - "-target armv7-none-linux-androideabi", - "-march=armv7-a", - "-mfloat-abi=softfp", - "-mfpu=vfpv3-d16", - "-mthumb", - } - links { - "unwind", - } - linkoptions { - "-gcc-toolchain $(ANDROID_NDK_ARM)", - "--sysroot=$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm/usr/lib/crtbegin_so.o", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm/usr/lib/crtend_so.o", - "-target armv7-none-linux-androideabi", - "-march=armv7-a", - "-mthumb", - } - - configuration { "android-arm64" } - libdirs { - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/arm64-v8a", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm64/usr/lib64", - } - includedirs { - "$(ANDROID_NDK_ROOT)/sysroot/usr/include/aarch64-linux-android", - } - buildoptions { - "-gcc-toolchain $(ANDROID_NDK_ARM64)", - "-target aarch64-none-linux-android", - } - linkoptions { - "-gcc-toolchain $(ANDROID_NDK_ARM64)", - "--sysroot=$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm64", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm64/usr/lib/crtbegin_so.o", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-arm64/usr/lib/crtend_so.o", - "-target aarch64-none-linux-android", - } - - configuration { "android-x86" } - libdirs { - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/x86", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86/usr/lib", - } - includedirs { - "$(ANDROID_NDK_ROOT)/sysroot/usr/include/i686-linux-android", - } - buildoptions { - "-gcc-toolchain $(ANDROID_NDK_X86)", - "-target i686-none-linux-android", - "-mssse3" - } - linkoptions { - "-gcc-toolchain $(ANDROID_NDK_X86)", - "-target i686-none-linux-android", - "-mssse3", - "--sysroot=$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86/usr/lib/crtbegin_so.o", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86/usr/lib/crtend_so.o", - } - - configuration { "android-x64" } - libdirs { - "$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/x86_64", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86_64/usr/lib64", - } - includedirs { - "$(ANDROID_NDK_ROOT)/sysroot/usr/include/x86_64-linux-android", - } - buildoptions { - "-gcc-toolchain $(ANDROID_NDK_X64)", - "-target x86_64-none-linux-android", - } - linkoptions { - "-gcc-toolchain $(ANDROID_NDK_X64)", - "-target x86_64-none-linux-android", - "--sysroot=$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86_64", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86_64/usr/lib64/crtbegin_so.o", - "$(ANDROID_NDK_ROOT)/platforms/" .. androidPlatform .. "/arch-x86_64/usr/lib64/crtend_so.o", - } - - configuration { "asmjs" } - targetdir (_buildDir .. "asmjs" .. "/bin") - objdir (_buildDir .. "asmjs" .. "/obj") - buildoptions { - "-Wno-cast-align", - "-Wno-tautological-compare", - "-Wno-self-assign-field", - "-Wno-format-security", - "-Wno-inline-new-delete", - "-Wno-constant-logical-operand", - "-Wno-absolute-value", - "-Wno-unknown-warning-option", - "-Wno-extern-c-compat", - } - - configuration { "osx*", "x32", "not arm64" } - objdir (_buildDir .. "osx_clang" .. "/obj") - buildoptions { - "-m32", - } - configuration { "osx*", "x32", "not arm64", "Release" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x32/Release") - - configuration { "osx*", "x32", "not arm64", "Debug" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x32/Debug") - - configuration { "osx*", "x64", "not arm64" } - objdir (_buildDir .. "osx_clang" .. "/obj") - buildoptions { - "-m64", "-DHAVE_IMMINTRIN_H=1", - } - - configuration { "osx*", "x64", "not arm64", "Release" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x64/Release") - - configuration { "osx*", "x64", "not arm64", "Debug" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x64/Debug") - - configuration { "osx*", "arm64" } - objdir (_buildDir .. "osx_clang" .. "/obj") - buildoptions { - "-m64", "-DHAVE_IMMINTRIN_H=0", "-DSDL_DISABLE_IMMINTRIN_H=1", "-DHAVE_SSE=0" - } - - configuration { "osx*", "arm64", "Release" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x64/Release") - - configuration { "osx*", "arm64", "Debug" } - targetdir (_buildDir .. "osx_clang" .. "/bin/x64/Debug") - - configuration {} -- reset configuration - - return true -end - -function strip() - if _OPTIONS["STRIP_SYMBOLS"]~="1" then - return true - end - - configuration { "osx-*" } - postbuildcommands { - "$(SILENT) echo Stripping symbols.", - "$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] and toolchainPrefix) .. "strip \"$(TARGET)\"", - } - - configuration { "android-*" } - postbuildcommands { - "$(SILENT) echo Stripping symbols.", - "$(SILENT) " .. toolchainPrefix .. "strip -s \"$(TARGET)\"" - } - - configuration { "linux-*" } - postbuildcommands { - "$(SILENT) echo Stripping symbols.", - "$(SILENT) strip -s \"$(TARGET)\"" - } - - configuration { "mingw*", "x64" } - postbuildcommands { - "$(SILENT) echo Stripping symbols.", - "$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] or "$(MINGW64)/bin/") .. "strip -s \"$(TARGET)\"", - } - configuration { "mingw*", "x32" } - postbuildcommands { - "$(SILENT) echo Stripping symbols.", - "$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] or "$(MINGW32)/bin/") .. "strip -s \"$(TARGET)\"", - } - - configuration { "asmjs" } - postbuildcommands { - "$(SILENT) echo Running asmjs finalize.", - "$(SILENT) $(EMSCRIPTEN)/emcc -O2 -s TOTAL_MEMORY=268435456 \"$(TARGET)\" -o \"$(TARGET)\".html" - -- ALLOW_MEMORY_GROWTH - } - - configuration {} -- reset configuration -end - diff --git a/unused/sdl_needed_symbols.txt b/unused/sdl_needed_symbols.txt deleted file mode 100644 index d5af36c..0000000 --- a/unused/sdl_needed_symbols.txt +++ /dev/null @@ -1,3 +0,0 @@ -[1/3] Building CXX object cmake_subdirs/ocore_sdl/CMakeFiles/ocore_sdl.dir/__/__/src/osd/modules/lib/osdlib_unix_mod.cpp.o -[2/3] Linking CXX static library cmake_subdirs/ocore_sdl/libocore_sdl.a -[3/3] Linking CXX executable chdman