drumgizmo-0.9.18.1/0000755000076400007640000000000013554101262010775 500000000000000drumgizmo-0.9.18.1/AUTHORS0000644000076400007640000000064213331526613011773 00000000000000Founder and lead developer: Bent Bisballe Nyeng [deva] (deva@aasimon.org) Developer: Jonas Suhr Christensen [suhr] (jsc@umbraculum.org) Developer: André Nusser [chaot4] Developer: Christian Glöckner [cglocke] Developer, Graphics, GUI design and logo: Lars Muldjord [muldjord] (muldjordlars@gmail.com) Developer: Goran Mekić [meka] (meka@tilda.center) Patches: John Hammen (sample multichannel support) drumgizmo-0.9.18.1/src/0000755000076400007640000000000013554101261011563 500000000000000drumgizmo-0.9.18.1/src/audiooutputengine.h0000644000076400007640000000421413340266454015436 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiooutputengine.h * * Thu Sep 16 10:27:01 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "channel.h" class AudioOutputEngine { public: virtual ~AudioOutputEngine() = default; virtual bool init(const Channels& channels) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre(std::size_t nsamples) = 0; virtual void run(int ch, sample_t *samples, std::size_t nsamples) = 0; virtual void post(std::size_t nsamples) = 0; //! Overload this method to use internal buffer directly. virtual sample_t *getBuffer(int ch) const { return NULL; } //! Overload this method to force engine to use different buffer size. virtual std::size_t getBufferSize() const { return 1024; } virtual std::size_t getSamplerate() const = 0; virtual bool isFreewheeling() const = 0; //! Overload this method to get notification of latency changes. //! \param latency The new latency in samples. virtual void onLatencyChange(std::size_t latency) {} }; drumgizmo-0.9.18.1/src/latencyfilter.h0000644000076400007640000000300113340266455014525 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * latencyfilter.h * * Fri Jun 10 22:42:52 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "inputfilter.h" struct Settings; class Random; class LatencyFilter : public InputFilter { public: LatencyFilter(Settings& settings, Random& random); bool filter(event_t& events, std::size_t pos) override; std::size_t getLatency() const override; private: Settings& settings; Random& random; float latency_offset{0.0}; std::size_t latency_last_pos{0}; }; drumgizmo-0.9.18.1/src/dgxmlparser.h0000644000076400007640000000303113551153107014204 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dgxmlparser.h * * Fri Jun 8 22:04:32 CEST 2018 * Copyright 2018 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "DGDOM.h" #include "logger.h" bool probeDrumkitFile(const std::string& filename, LogFunction logger = nullptr); bool probeInstrumentFile(const std::string& filename, LogFunction logger = nullptr); bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom, LogFunction logger = nullptr); bool parseInstrumentFile(const std::string& filename, InstrumentDOM& dom, LogFunction logger = nullptr); drumgizmo-0.9.18.1/src/inputfilter.h0000644000076400007640000000356313331526614014236 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputfilter.h * * Tue Jun 14 20:42:52 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! An abstract filter component for the InputProcessor class filter chain. class InputFilter { public: virtual ~InputFilter() = default; //! Implement to filter a single event. //! \param[in,out] event The event being processed. The filter method //! might alter any of the event parameters. //! \param pos The absolute position of the buffer in which the event in //! event was received. Add event.pos to it to get the absolute position of //! the event in the stream. //! \return true to keep the event, false to discard it. virtual bool filter(event_t& event, std::size_t pos) = 0; //! Returns the filter delay in samples. //! Overload if needed. virtual std::size_t getLatency() const { return 0; } }; drumgizmo-0.9.18.1/src/staminafilter.h0000644000076400007640000000305513331526614014527 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * staminafilter.h * * Sat Jun 11 08:49:36 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "inputfilter.h" struct Settings; class StaminaFilter : public InputFilter { public: StaminaFilter(Settings& settings); bool filter(event_t& event, std::size_t pos) override; // Note getLatency not overloaded because this filter doesn't add latency. private: Settings& settings; std::map> modifiers; }; drumgizmo-0.9.18.1/src/drumkit.h0000644000076400007640000000366713347502615013357 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit.h * * Wed Mar 9 15:27:26 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "channel.h" #include "instrument.h" #include "versionstr.h" class DrumKit { public: DrumKit(); ~DrumKit(); std::string getFile() const; std::string getName() const; std::string getDescription() const; VersionStr getVersion() const; Instruments instruments; Channels channels; void clear(); bool isValid() const; float getSamplerate() const; //! Get the number of audio files (as in single channel) in this drumkit. std::size_t getNumberOfFiles() const; private: friend class DOMLoader; friend class DOMLoaderTest; friend class DrumKitParser; friend class DrumKitLoader; friend class DrumkitParserTest; void* magic{nullptr}; std::string _file; std::string _name; std::string _description; float _samplerate{44100.0f}; VersionStr _version; }; drumgizmo-0.9.18.1/src/drumgizmo.cc0000644000076400007640000002437313551153107014043 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo.cc * * Thu Sep 16 10:24:40 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumgizmo.h" #include #include #include #include #include #include #include #include #include #include "audioinputenginemidi.h" DrumGizmo::DrumGizmo(Settings& settings, AudioOutputEngine& o, AudioInputEngine& i) : loader(settings, kit, i, rand, audio_cache) , oe(o) , ie(i) , audio_cache(settings) , input_processor(settings, kit, activeevents, rand) , settings(settings) , settings_getter(settings) { audio_cache.init(10000); // start thread events.reserve(1000); loader.init(); setSamplerate(44100.0f); settings_getter.audition_counter.hasChanged(); // Reset audition_counter } DrumGizmo::~DrumGizmo() { loader.deinit(); audio_cache.deinit(); // stop thread } bool DrumGizmo::init() { if(!ie.init(kit.instruments)) { return false; } if(!oe.init(kit.channels)) { return false; } return true; } void DrumGizmo::setFrameSize(size_t framesize) { settings.buffer_size.store(framesize); if(this->framesize != framesize) { DEBUG(drumgizmo, "New framesize: %d\n", (int)framesize); this->framesize = framesize; // Update framesize in drumkitloader and cachemanager: loader.setFrameSize(framesize); audio_cache.setFrameSize(framesize); } } void DrumGizmo::setFreeWheel(bool freewheel) { // Freewheel = true means that we are bouncing and therefore running faster // than realtime. this->freewheel = freewheel; audio_cache.setAsyncMode(!freewheel); } void DrumGizmo::setRandomSeed(unsigned int seed) { rand.setSeed(seed); } bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples) { if(settings_getter.enable_resampling.hasChanged()) { enable_resampling = settings_getter.enable_resampling.getValue(); } if(settings_getter.drumkit_samplerate.hasChanged()) { settings_getter.drumkit_samplerate.getValue(); // stage new value setSamplerate(settings.samplerate.load()); } setFrameSize(nsamples); setFreeWheel(ie.isFreewheeling() && oe.isFreewheeling()); ie.pre(); oe.pre(nsamples); // Clears all output buffers std::memset(samples, 0, nsamples * sizeof(sample_t)); // // Read new events // ie.run(pos, nsamples, events); double resample_ratio = ratio; if(enable_resampling == false) { resample_ratio = 1.0; } if(settings_getter.audition_counter.hasChanged()) { settings_getter.audition_counter.getValue(); auto instrument_name = settings.audition_instrument.load(); auto velocity = settings.audition_velocity.load(); std::size_t instrument_index = 0; for (std::size_t i = 0; i < kit.instruments.size(); ++i) { if (instrument_name == kit.instruments[i]->getName()) { instrument_index = i; } } events.push_back({EventType::OnSet, instrument_index, 0, velocity}); } bool active_events_left = input_processor.process(events, pos, resample_ratio); if(!active_events_left) { return false; } events.clear(); // // Write audio // if(!enable_resampling || ratio == 1.0) { // No resampling needed for(size_t c = 0; c < kit.channels.size(); ++c) { sample_t *buf = samples; bool internal = false; if(oe.getBuffer(c)) { buf = oe.getBuffer(c); internal = true; } if(buf) { std::memset(buf, 0, nsamples * sizeof(sample_t)); getSamples(c, pos, buf, nsamples); if(!internal) { oe.run(c, samples, nsamples); } } } } else { // Resampling needed size_t kitpos = pos * ratio; for(size_t c = 0; c < kit.channels.size(); ++c) { sample_t *buf = samples; bool internal = false; if(oe.getBuffer(c)) { buf = oe.getBuffer(c); internal = true; } zita[c].out_data = buf; zita[c].out_count = nsamples; if(zita[c].inp_count > 0) { // Samples left from last iteration, process that one first zita[c].process(); } std::memset(resampler_input_buffer[c].get(), 0, MAX_RESAMPLER_BUFFER_SIZE); zita[c].inp_data = resampler_input_buffer[c].get(); std::size_t sample_count = std::ceil((nsamples - (nsamples - zita[c].out_count)) * ratio); getSamples(c, kitpos, zita[c].inp_data, sample_count); zita[c].inp_count = sample_count; zita[c].process(); if(!internal) { oe.run(c, samples, nsamples); } } } ie.post(); oe.post(nsamples); pos += nsamples; return true; } void DrumGizmo::renderSampleEvent(EventSample& evt, int pos, sample_t *s, std::size_t sz) { size_t n = 0; // default start point is 0. // If we are not at offset 0 in current buffer: if(evt.offset > (size_t)pos) { n = evt.offset - pos; } size_t end = sz; // default end point is the end of the buffer. // Find the end point intra-buffer if((evt.t + end - n) > evt.sample_size) { end = evt.sample_size - evt.t + n; } // This should not be necessary but make absolutely sure that we do // not write over the end of the buffer. if(end > sz) { end = sz; } size_t t = 0; // Internal buffer counter repeat: float scale = 1.0f; for(; (n < end) && (t < (evt.buffer_size - evt.buffer_ptr)); ++n) { assert(n >= 0); assert(n < sz); assert(t >= 0); assert(t < evt.buffer_size - evt.buffer_ptr); if(evt.rampdownInProgress() && evt.rampdown_offset < (evt.t + t) && evt.rampdown_count > 0) { if(evt.ramp_length > 0) { scale = std::min((float)evt.rampdown_count / evt.ramp_length, 1.f); } else { scale = 0.0f; } evt.rampdown_count--; } s[n] += evt.buffer[evt.buffer_ptr + t] * evt.scale * scale; ++t; } // Add internal buffer counter to "global" event counter. evt.t += t;//evt.buffer_size; evt.buffer_ptr += t; if(n != sz && evt.t < evt.sample_size) { evt.buffer_size = sz - n;// Hint new size // More samples needed for current buffer evt.buffer = audio_cache.next(evt.cache_id, evt.buffer_size); evt.buffer_ptr = 0; t = 0; goto repeat; } } void DrumGizmo::getSamples(int ch, int pos, sample_t* s, size_t sz) { // Store local values of settings to ensure they don't change intra-iteration const auto enable_bleed_control = settings.enable_bleed_control.load(); const auto master_bleed = settings.master_bleed.load(); std::vector< Event* > erase_list; std::list< Event* >::iterator i = activeevents[ch].begin(); for(; i != activeevents[ch].end(); ++i) { bool removeevent = false; Event* event = *i; Event::type_t type = event->getType(); switch(type) { case Event::sample: { EventSample& evt = *static_cast(event); AudioFile& af = *evt.file; if(!af.isLoaded() || !af.isValid() || (s == nullptr)) { removeevent = true; break; } if(evt.offset > (pos + sz)) { // Don't handle event now. It is scheduled for a future iteration. continue; } if(evt.cache_id == CACHE_NOID) { size_t initial_chunksize = (pos + sz) - evt.offset; evt.buffer = audio_cache.open(af, initial_chunksize, af.filechannel, evt.cache_id); if((af.mainState() == main_state_t::is_not_main) && enable_bleed_control) { evt.scale *= master_bleed; } evt.buffer_size = initial_chunksize; evt.sample_size = af.size; } { std::lock_guard guard(af.mutex); renderSampleEvent(evt, pos, s, sz); if((evt.t >= evt.sample_size) || (evt.rampdown_count == 0)) { removeevent = true; } if(evt.buffer_ptr >= evt.buffer_size && removeevent == false) { evt.buffer_size = sz; evt.buffer = audio_cache.next(evt.cache_id, evt.buffer_size); evt.buffer_ptr = 0; } if(removeevent) { audio_cache.close(evt.cache_id); } } } break; } if(removeevent) { erase_list.push_back(event); // don't delete until we are out of the loop. continue; } } for(auto& event : erase_list) { activeevents[ch].remove(event); delete event; } } void DrumGizmo::stop() { // engine.stop(); } std::size_t DrumGizmo::getLatency() const { auto latency = input_processor.getLatency(); if(enable_resampling && ratio != 0.0) { // TODO: latency += zita[0].inpsize(); // resampler latency } return latency; } float DrumGizmo::samplerate() { return settings.samplerate.load(); } void DrumGizmo::setSamplerate(float samplerate) { DEBUG(dgeditor, "%s samplerate: %f\n", __PRETTY_FUNCTION__, samplerate); settings.samplerate.store(samplerate); // Notify input engine of the samplerate change. ie.setSampleRate(samplerate); auto input_fs = settings.drumkit_samplerate.load(); auto output_fs = samplerate; ratio = input_fs / output_fs; settings.resamplig_recommended.store(ratio != 1.0); // TODO: Only reallocate the actual amount of samples needed based on the // ratio and the framesize. for(auto& buf : resampler_input_buffer) { buf.reset(new sample_t[MAX_RESAMPLER_BUFFER_SIZE]); } for(int c = 0; c < NUM_CHANNELS; ++c) { zita[c].reset(); auto nchan = 1u; // mono auto hlen = 72u; // 16 ≤ hlen ≤ 96 zita[c].setup(input_fs, output_fs, nchan, hlen); // Prefill auto null_size = zita[c].inpsize() - 1;// / 2 - 1; zita[c].inp_data = nullptr; zita[c].inp_count = null_size; constexpr auto sz = 4096 * 16; sample_t s[sz]; zita[c].out_data = s; zita[c].out_count = sz; zita[c].process(); } } drumgizmo-0.9.18.1/src/event.h0000644000076400007640000000277613511117027013011 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Fri Jun 3 12:10:50 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! Event types enum class EventType { OnSet, Choke, Stop, }; //! POD datatype for input event transport. struct event_t { EventType type; //!< The type of the event. std::size_t instrument; //!< The instrument number. std::size_t offset; //!< The offset position in the input buffer float velocity; //!< The velocity if the type is a note on [0; 1] }; drumgizmo-0.9.18.1/src/audiofile.h0000644000076400007640000000426713551153107013631 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiofile.h * * Tue Jul 22 17:14:11 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include "audio.h" #include "channel.h" #include "logger.h" class InstrumentChannel; class AudioFile { public: AudioFile(const std::string& filename, std::size_t filechannel, InstrumentChannel* instrument_channel = nullptr); ~AudioFile(); void load(LogFunction logger, std::size_t sample_limit = std::numeric_limits::max()); void unload(); bool isLoaded() const; volatile std::size_t size{0}; // Full size of the file volatile std::size_t preloadedsize{0}; // Number of samples preloaded (in data) sample_t* data{nullptr}; std::string filename; bool isValid() const; //! Returns if this audio file is to be played on a main channel (ie. not a //! secondary channel) main_state_t mainState() const; std::mutex mutex; std::size_t filechannel; private: friend class DOMLoaderTest; friend class InstrumentParserTest; void* magic{nullptr}; volatile bool is_loaded{false}; InstrumentChannel* instrument_channel; }; drumgizmo-0.9.18.1/src/sample.cc0000644000076400007640000000350513551153107013301 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.cc * * Mon Jul 21 10:23:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "sample.h" #include Sample::Sample(const std::string& name, double power, bool normalized) : name{name} , power{power} , normalized(normalized) , audiofiles{} { } Sample::~Sample() { } void Sample::addAudioFile(InstrumentChannel* c, AudioFile* a) { audiofiles[c] = a; } AudioFile* Sample::getAudioFile(const Channel& channel) const { /* if(audiofiles.find(c) == audiofiles.end()) return nullptr; return audiofiles[c]; */ // todo: std::find_if ?? for (auto& pair: audiofiles) { if (pair.first->num == channel.num) { return pair.second; } } return nullptr; } double Sample::getPower() const { return power; } bool Sample::getNormalized() const { return normalized; } drumgizmo-0.9.18.1/src/audiocachefile.h0000644000076400007640000000620313331526614014610 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cacheaudiofile.h * * Thu Dec 24 12:17:58 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include //! Channel data container in the cache world. class CacheChannel { public: size_t channel; //< Channel number sample_t* samples; //< Sample buffer pointer. size_t num_samples; //< Number of samples in the sample buffer volatile bool* ready; //< Is set to true when the loading is done. }; using CacheChannels = std::list; //! This class is used to encapsulate reading from a single file source. //! The access is ref counted so that the file is only opened once and closed //! when it is no longer required. class AudioCacheFile { friend class AudioCacheFiles; friend class TestableAudioCacheFiles; public: //! Create file handle for filename. AudioCacheFile(const std::string& filename, std::vector& read_buffer); //! Closes file handle. ~AudioCacheFile(); //! Get sample count of the file connected with this cache object. size_t getSize() const; //! Get filename of the file connected with this cache object. const std::string& getFilename() const; //! Get number of channels in the file size_t getChannelCount() const; //! Read audio data from the file into the supplied channel caches. void readChunk(const CacheChannels& channels, size_t pos, size_t num_samples); private: int ref{0}; SNDFILE* fh{nullptr}; SF_INFO sf_info; std::string filename; std::vector& read_buffer; }; class AudioCacheFiles { public: //! Get the CacheAudioFile object corresponding to filename. //! If it does not exist it will be created. //! It's ref count will be increased. AudioCacheFile& getFile(const std::string& filename); //! Release the CacheAudioFile corresponding to filename. //! It's ref count will be decreased. //! If the ref count reaches 0 the object will be deleted. void releaseFile(const std::string& filename); protected: std::map audiofiles; std::mutex mutex; std::vector read_buffer; }; drumgizmo-0.9.18.1/src/inputprocessor.h0000644000076400007640000000403113511117027014751 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputprocessor.h * * Sat Apr 23 20:39:30 CEST 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "drumkit.h" #include "events.h" #include "inputfilter.h" struct Settings; class Random; class InputProcessor { public: InputProcessor(Settings& settings, DrumKit& kit, std::list* activeevents, Random& random); bool process(std::vector& events, std::size_t pos, double resample_ratio); std::size_t getLatency() const; private: DrumKit& kit; std::list* activeevents; bool is_stopping; ///< Is set to true when a EventType::Stop event has been seen. bool processOnset(event_t& event, std::size_t pos, double resample_ratio); bool processChoke(event_t& event, std::size_t pos, double resample_ratio); bool processStop(event_t& event); std::vector> filters; Settings& settings; }; drumgizmo-0.9.18.1/src/nolocale.h0000644000076400007640000000363113347502615013463 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nolocale.h * * Fri Feb 13 12:48:10 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include static inline double atof_nol(const char* nptr) { double res; const char* locale = setlocale(LC_NUMERIC, "C"); res = atof(nptr); setlocale(LC_NUMERIC, locale); return res; } static inline int sprintf_nol(char* str, const char* format, ...) { int ret; const char* locale = setlocale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); ret = vsprintf(str, format, vl); va_end(vl); setlocale(LC_NUMERIC, locale); return ret; } static inline int snprintf_nol(char* str, size_t size, const char* format, ...) { int ret; const char* locale = setlocale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); ret = vsnprintf(str, size, format, vl); va_end(vl); setlocale(LC_NUMERIC, locale); return ret; } drumgizmo-0.9.18.1/src/audiocacheeventhandler.h0000644000076400007640000000613213515375734016362 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheeventhandler.h * * Sun Jan 3 19:57:55 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "thread.h" #include "sem.h" #include "audiocachefile.h" #include "audiocacheidmanager.h" class CacheEvent; class AudioCacheEventHandler : protected Thread { public: AudioCacheEventHandler(AudioCacheIDManager& id_manager); ~AudioCacheEventHandler(); //! Start event handler thread. //! This method blocks until the thread has actually been started. void start(); //! Stop event handler thread. //! This method blocks until the thread has actually been stopped. void stop(); //! Set thread status and start/stop thread accordingly. //! \param threaded Set to true to start thread or false to stop it. void setThreaded(bool threaded); //! Get current threaded status. bool isThreaded() const; //! Lock thread mutex. //! This methods are supplied to make this class lockable by std::lock_guard void lock(); //! Unlock thread mutex. //! This methods are supplied to make this class lockable by std::lock_guard void unlock(); void pushLoadNextEvent(AudioCacheFile* afile, size_t channel, size_t pos, sample_t* buffer, volatile bool* ready); void pushCloseEvent(cacheid_t id); void setChunkSize(size_t chunksize); size_t getChunkSize() const; AudioCacheFile& openFile(const std::string& filename); protected: void clearEvents(); void handleLoadNextEvent(CacheEvent& cache_event); //! Lock the mutex and calls handleCloseCache void handleCloseEvent(CacheEvent& cache_event); //! Close decrease the file ref and release the cache id. void handleCloseCache(cacheid_t id); void handleEvent(CacheEvent& cache_event); // From Thread void thread_main() override; void pushEvent(CacheEvent& cache_event); AudioCacheFiles files; std::mutex mutex; std::list eventqueue; std::atomic threaded{false}; Semaphore sem; Semaphore sem_run; bool running{false}; AudioCacheIDManager& id_manager; size_t chunksize{1024}; }; drumgizmo-0.9.18.1/src/velocityfilter.cc0000644000076400007640000000310013551153107015053 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * velocityfilter.cc * * Sun May 12 16:01:41 CEST 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "velocityfilter.h" #include "random.h" #include "settings.h" VelocityFilter::VelocityFilter(Settings& settings, Random& random) : settings(settings), random(random) { } bool VelocityFilter::filter(event_t& event, size_t pos) { if (settings.enable_velocity_modifier.load()) { float mean = event.velocity; float stddev = settings.velocity_stddev.load(); // the 30.0f were determined empirically event.velocity = random.normalDistribution(mean, stddev / 30.0f); } return true; } drumgizmo-0.9.18.1/src/path.h0000644000076400007640000000254013347502615012621 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * path.h * * Tue May 3 14:42:46 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! \returns path component of full filename with path. std::string getPath(const std::string& file); //! \returns path component of full filename with path. std::string getFile(const std::string& file); drumgizmo-0.9.18.1/src/path.cc0000644000076400007640000000364013347502615012761 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * path.cc * * Tue May 3 14:42:47 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "path.h" #ifndef __MINGW32__ #include #endif/*__MINGW32__*/ #include #include std::string getPath(const std::string& file) { std::string path; #ifdef __MINGW32__ char drive[_MAX_DRIVE]; char dir[_MAX_DIR]; _splitpath(file.c_str(), drive, dir, nullptr, nullptr); path = std::string(drive) + dir; #else // POSIX char* buffer = strdup(file.c_str()); path = dirname(buffer); free(buffer); #endif return path; } std::string getFile(const std::string& file) { std::string path; #ifdef __MINGW32__ char fname[_MAX_FNAME]; char ext[_MAX_EXT]; _splitpath(file.c_str(), nullptr, nullptr, fname, ext); path = std::string(fname) + "." + ext; #else // POSIX char* buffer = strdup(file.c_str()); path = basename(buffer); free(buffer); #endif return path; } drumgizmo-0.9.18.1/src/audioinputenginemidi.cc0000644000076400007640000000664513551153107016242 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputenginemidi.cc * * Mon Apr 1 20:13:25 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audioinputenginemidi.h" #include "midimapparser.h" #include "drumgizmo.h" #include AudioInputEngineMidi::AudioInputEngineMidi() : refs(REFSFILE) { is_valid = false; } bool AudioInputEngineMidi::loadMidiMap(const std::string& file, const Instruments& instruments) { std::string f = file; if(refs.load()) { if(file.size() > 1 && file[0] == '@') { f = refs.getValue(file.substr(1)); } } else { ERR(drumkitparser, "Error reading refs.conf"); } midimap = ""; is_valid = false; DEBUG(mmap, "loadMidiMap(%s, i.size() == %d)\n", f.c_str(), (int)instruments.size()); if(f == "") { return false; } MidiMapParser midimap_parser; if(!midimap_parser.parseFile(f)) { return false; } instrmap_t instrmap; for(size_t i = 0; i < instruments.size(); i++) { instrmap[instruments[i]->getName()] = i; } mmap.swap(instrmap, midimap_parser.midimap); midimap = file; is_valid = true; return true; } std::string AudioInputEngineMidi::getMidimapFile() const { return midimap; } bool AudioInputEngineMidi::isValid() const { return is_valid; } // Note types: static const std::uint8_t NoteOff = 0x80; static const std::uint8_t NoteOn = 0x90; static const std::uint8_t NoteAftertouch = 0xA0; // Note type mask: static int const NoteMask = 0xF0; void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer, std::size_t midi_buffer_length, std::size_t offset, std::vector& events) { if(midi_buffer_length < 3) { return; } auto key = midi_buffer[1]; auto velocity = midi_buffer[2]; auto instrument_idx = mmap.lookup(key); switch(midi_buffer[0] & NoteMask) { case NoteOff: // Ignore for now break; case NoteOn: if(instrument_idx != -1) { // maps velocities to [.5/127, 126.5/127] auto centered_velocity = (velocity-.5f)/127.0f; events.push_back({EventType::OnSet, (std::size_t)instrument_idx, offset, centered_velocity}); } break; case NoteAftertouch: if(velocity == 0 && instrument_idx != -1) { events.push_back({EventType::Choke, (std::size_t)instrument_idx, offset, .0f}); } break; default: break; } } drumgizmo-0.9.18.1/src/thread.h0000644000076400007640000000307513331526614013136 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * thread.h * * Tue Jan 24 08:11:37 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "platform.h" #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #else #include #endif class Thread { public: Thread(); virtual ~Thread(); void run(); void wait_stop(); protected: virtual void thread_main() = 0; private: #if DG_PLATFORM == DG_PLATFORM_WINDOWS HANDLE tid{nullptr}; static DWORD WINAPI #else pthread_t tid{0}; static void* #endif thread_run(void *data); }; drumgizmo-0.9.18.1/src/configfile.cc0000644000076400007640000001572013511117026014123 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configfile.cc * * Thu May 14 14:51:39 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "configfile.h" #include #include #include #include #include #include #include "platform.h" #if DG_PLATFORM == DG_PLATFORM_WINDOWS #include #include #include #include #else #endif #include #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define SEP "\\" #else #define SEP "/" #endif #define CONFIGDIRNAME ".drumgizmo" /** * Return the path containing the config files. */ static std::string getConfigPath() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS std::string configpath; TCHAR szPath[256]; if(SUCCEEDED(SHGetFolderPath( NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, szPath))) { configpath = szPath; } #else std::string configpath = getenv("HOME"); #endif configpath += SEP; configpath += CONFIGDIRNAME; return configpath; } /** * Calling this makes sure that the config path exists */ static bool createConfigPath() { std::string configpath = getConfigPath(); struct stat st; if(stat(configpath.c_str(), &st) != 0) { DEBUG(configfile, "No configuration exists, creating directory '%s'\n", configpath.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(mkdir(configpath.c_str()) < 0) { #else if(mkdir(configpath.c_str(), 0755) < 0) { #endif DEBUG(configfile, "Could not create config directory\n"); } return false; } return true; } ConfigFile::ConfigFile(std::string const& filename) : filename(filename) , fp(nullptr) { } ConfigFile::~ConfigFile() { if (fp != nullptr) { DEBUG(configfile, "File has not been closed by the client...\n"); } } bool ConfigFile::load() { DEBUG(configfile, "Loading config file...\n"); if(!open("r")) { return false; } values.clear(); std::string line; while(true) { line = readLine(); if(line == "") break; if(!parseLine(line)) { return false; } } close(); return true; } bool ConfigFile::save() { DEBUG(configfile, "Saving configuration...\n"); createConfigPath(); if(!open("w")) { return false; } std::map::iterator v = values.begin(); for(; v != values.end(); ++v) { fprintf(fp, "%s:%s\n", v->first.c_str(), v->second.c_str()); } close(); return true; } std::string ConfigFile::getValue(const std::string& key) const { auto i = values.find(key); if (i != values.end()) { return i->second; } return ""; } void ConfigFile::setValue(const std::string& key, const std::string& value) { values[key] = value; } bool ConfigFile::open(std::string mode) { if(fp) { close(); } std::string configpath = getConfigPath(); std::string configfile = configpath; configfile += SEP; configfile += filename; DEBUG(configfile, "Opening config file '%s'\n", configfile.c_str()); fp = fopen(configfile.c_str(), mode.c_str()); if(!fp) { return false; } return true; } void ConfigFile::close() { fclose(fp); fp = nullptr; } std::string ConfigFile::readLine() { if(!fp) { return ""; } std::string line; char buf[1024]; while(!feof(fp)) { char* s = fgets(buf, sizeof(buf), fp); if(s) { line += buf; if(buf[strlen(buf) - 1] == '\n') break; } } return line; } bool ConfigFile::parseLine(const std::string& line) { std::string key; std::string value; enum { before_key, in_key, after_key, before_value, in_value, in_value_single_quoted, in_value_double_quoted, after_value, } state = before_key; for(std::size_t p = 0; p < line.size(); ++p) { switch(state) { case before_key: if(line[p] == '#') { // Comment: Ignore line. p = line.size(); continue; } if(std::isspace(line[p])) { continue; } key += line[p]; state = in_key; break; case in_key: if(std::isspace(line[p])) { state = after_key; continue; } if(line[p] == ':' || line[p] == '=') { state = before_value; continue; } key += line[p]; break; case after_key: if(std::isspace(line[p])) { continue; } if(line[p] == ':' || line[p] == '=') { state = before_value; continue; } ERR(configfile, "Bad symbol." " Expecting only whitespace or key/value seperator: '%s'", line.c_str()); return false; case before_value: if(std::isspace(line[p])) { continue; } if(line[p] == '\'') { state = in_value_single_quoted; continue; } if(line[p] == '"') { state = in_value_double_quoted; continue; } value += line[p]; state = in_value; break; case in_value: if(std::isspace(line[p])) { state = after_value; continue; } if(line[p] == '#') { // Comment: Ignore the rest of the line. p = line.size(); state = after_value; continue; } value += line[p]; break; case in_value_single_quoted: if(line[p] == '\'') { state = after_value; continue; } value += line[p]; break; case in_value_double_quoted: if(line[p] == '"') { state = after_value; continue; } value += line[p]; break; case after_value: if(std::isspace(line[p])) { continue; } if(line[p] == '#') { // Comment: Ignore the rest of the line. p = line.size(); continue; } ERR(configfile, "Bad symbol." " Expecting only whitespace or key/value seperator: '%s'", line.c_str()); return false; } } if(state == before_key) { // Line did not contain any data (empty or comment) return true; } // If state == in_value_XXX_quoted here, the string was not terminated. // If state == before_value it means that the value is empty. if(state != after_value && state != in_value && state != before_value) { ERR(configfile, "Malformed line: '%s'", line.c_str()); return false; } DEBUG(configfile, "key['%s'] value['%s']\n", key.c_str(), value.c_str()); if(key != "") { values[key] = value; } return true; } drumgizmo-0.9.18.1/src/Makefile.in0000644000076400007640000017006513554101143013560 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libdg_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) nodist_libdg_la_OBJECTS = libdg_la-pugixml.lo \ libdg_la-audiocachefile.lo libdg_la-audiocache.lo \ libdg_la-audiocacheeventhandler.lo \ libdg_la-audiocacheidmanager.lo \ libdg_la-audioinputenginemidi.lo libdg_la-audiofile.lo \ libdg_la-bytesizeparser.lo libdg_la-channel.lo \ libdg_la-channelmixer.lo libdg_la-configfile.lo \ libdg_la-configparser.lo libdg_la-domloader.lo \ libdg_la-dgxmlparser.lo libdg_la-drumgizmo.lo \ libdg_la-drumkit.lo libdg_la-drumkitloader.lo \ libdg_la-events.lo libdg_la-inputprocessor.lo \ libdg_la-instrument.lo libdg_la-latencyfilter.lo \ libdg_la-midimapparser.lo libdg_la-midimapper.lo \ libdg_la-path.lo libdg_la-powerlist.lo libdg_la-random.lo \ libdg_la-sample.lo libdg_la-sample_selection.lo \ libdg_la-sem.lo libdg_la-staminafilter.lo libdg_la-thread.lo \ libdg_la-velocityfilter.lo libdg_la-versionstr.lo libdg_la_OBJECTS = $(nodist_libdg_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(nodist_libdg_la_SOURCES) DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libdg.la libdg_la_CPPFLAGS = \ -I$(top_srcdir)/hugin -I$(top_srcdir)/pugixml/src \ $(SSEFLAGS) \ $(ZITA_CPPFLAGS) $(SNDFILE_CFLAGS) $(PTHREAD_CFLAGS) libdg_la_LIBADD = \ $(ZITA_LIBS) $(SNDFILE_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdg_la_SOURCES = \ $(top_srcdir)/pugixml/src/pugixml.cpp \ audiocachefile.cc \ audiocache.cc \ audiocacheeventhandler.cc \ audiocacheidmanager.cc \ audioinputenginemidi.cc \ audiofile.cc \ bytesizeparser.cc \ channel.cc \ channelmixer.cc \ configfile.cc \ configparser.cc \ domloader.cc \ dgxmlparser.cc \ drumgizmo.cc \ drumkit.cc \ drumkitloader.cc \ events.cc \ inputprocessor.cc \ instrument.cc \ latencyfilter.cc \ midimapparser.cc \ midimapper.cc \ path.cc \ powerlist.cc \ random.cc \ sample.cc \ sample_selection.cc \ sem.cc \ staminafilter.cc \ thread.cc \ velocityfilter.cc \ versionstr.cc EXTRA_DIST = \ $(nodist_libdg_la_SOURCES) \ DGDOM.h \ atomic.h \ audio.h \ audiocache.h \ audiocacheeventhandler.h \ audiocachefile.h \ audiocacheidmanager.h \ audiofile.h \ audioinputengine.h \ audioinputenginemidi.h \ audiooutputengine.h \ audiotypes.h \ bytesizeparser.h \ channel.h \ channelmixer.h \ configfile.h \ configparser.h \ cpp11fix.h \ dgxmlparser.h \ domloader.h \ drumgizmo.h \ drumkit.h \ drumkitloader.h \ event.h \ events.h \ grid.h \ inputfilter.h \ inputprocessor.h \ instrument.h \ latencyfilter.h \ logger.h \ midimapparser.h \ midimapper.h \ nolocale.h \ notifier.h \ path.h \ platform.h \ powerlist.h \ random.h \ rangemap.h \ sample.h \ sample_selection.h \ sem.h \ settings.h \ staminafilter.h \ syncedsettings.h \ thread.h \ velocityfilter.h \ versionstr.h all: all-am .SUFFIXES: .SUFFIXES: .cc .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libdg.la: $(libdg_la_OBJECTS) $(libdg_la_DEPENDENCIES) $(EXTRA_libdg_la_DEPENDENCIES) $(AM_V_CXXLD)$(CXXLINK) $(libdg_la_OBJECTS) $(libdg_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocacheeventhandler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocachefile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocacheidmanager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiofile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audioinputenginemidi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-bytesizeparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-channel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-channelmixer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-configfile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-configparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-dgxmlparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-domloader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumgizmo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumkit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumkitloader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-events.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-inputprocessor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-instrument.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-latencyfilter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-midimapparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-midimapper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-path.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-powerlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-pugixml.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-random.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-sample.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-sample_selection.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-sem.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-staminafilter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-thread.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-velocityfilter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-versionstr.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libdg_la-pugixml.lo: $(top_srcdir)/pugixml/src/pugixml.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-pugixml.lo -MD -MP -MF $(DEPDIR)/libdg_la-pugixml.Tpo -c -o libdg_la-pugixml.lo `test -f '$(top_srcdir)/pugixml/src/pugixml.cpp' || echo '$(srcdir)/'`$(top_srcdir)/pugixml/src/pugixml.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-pugixml.Tpo $(DEPDIR)/libdg_la-pugixml.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/pugixml/src/pugixml.cpp' object='libdg_la-pugixml.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-pugixml.lo `test -f '$(top_srcdir)/pugixml/src/pugixml.cpp' || echo '$(srcdir)/'`$(top_srcdir)/pugixml/src/pugixml.cpp libdg_la-audiocachefile.lo: audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocachefile.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocachefile.Tpo -c -o libdg_la-audiocachefile.lo `test -f 'audiocachefile.cc' || echo '$(srcdir)/'`audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocachefile.Tpo $(DEPDIR)/libdg_la-audiocachefile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachefile.cc' object='libdg_la-audiocachefile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocachefile.lo `test -f 'audiocachefile.cc' || echo '$(srcdir)/'`audiocachefile.cc libdg_la-audiocache.lo: audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocache.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocache.Tpo -c -o libdg_la-audiocache.lo `test -f 'audiocache.cc' || echo '$(srcdir)/'`audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocache.Tpo $(DEPDIR)/libdg_la-audiocache.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocache.cc' object='libdg_la-audiocache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocache.lo `test -f 'audiocache.cc' || echo '$(srcdir)/'`audiocache.cc libdg_la-audiocacheeventhandler.lo: audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocacheeventhandler.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocacheeventhandler.Tpo -c -o libdg_la-audiocacheeventhandler.lo `test -f 'audiocacheeventhandler.cc' || echo '$(srcdir)/'`audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocacheeventhandler.Tpo $(DEPDIR)/libdg_la-audiocacheeventhandler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheeventhandler.cc' object='libdg_la-audiocacheeventhandler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocacheeventhandler.lo `test -f 'audiocacheeventhandler.cc' || echo '$(srcdir)/'`audiocacheeventhandler.cc libdg_la-audiocacheidmanager.lo: audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocacheidmanager.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocacheidmanager.Tpo -c -o libdg_la-audiocacheidmanager.lo `test -f 'audiocacheidmanager.cc' || echo '$(srcdir)/'`audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocacheidmanager.Tpo $(DEPDIR)/libdg_la-audiocacheidmanager.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheidmanager.cc' object='libdg_la-audiocacheidmanager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocacheidmanager.lo `test -f 'audiocacheidmanager.cc' || echo '$(srcdir)/'`audiocacheidmanager.cc libdg_la-audioinputenginemidi.lo: audioinputenginemidi.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audioinputenginemidi.lo -MD -MP -MF $(DEPDIR)/libdg_la-audioinputenginemidi.Tpo -c -o libdg_la-audioinputenginemidi.lo `test -f 'audioinputenginemidi.cc' || echo '$(srcdir)/'`audioinputenginemidi.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audioinputenginemidi.Tpo $(DEPDIR)/libdg_la-audioinputenginemidi.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audioinputenginemidi.cc' object='libdg_la-audioinputenginemidi.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audioinputenginemidi.lo `test -f 'audioinputenginemidi.cc' || echo '$(srcdir)/'`audioinputenginemidi.cc libdg_la-audiofile.lo: audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiofile.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiofile.Tpo -c -o libdg_la-audiofile.lo `test -f 'audiofile.cc' || echo '$(srcdir)/'`audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiofile.Tpo $(DEPDIR)/libdg_la-audiofile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiofile.cc' object='libdg_la-audiofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiofile.lo `test -f 'audiofile.cc' || echo '$(srcdir)/'`audiofile.cc libdg_la-bytesizeparser.lo: bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-bytesizeparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-bytesizeparser.Tpo -c -o libdg_la-bytesizeparser.lo `test -f 'bytesizeparser.cc' || echo '$(srcdir)/'`bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-bytesizeparser.Tpo $(DEPDIR)/libdg_la-bytesizeparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bytesizeparser.cc' object='libdg_la-bytesizeparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-bytesizeparser.lo `test -f 'bytesizeparser.cc' || echo '$(srcdir)/'`bytesizeparser.cc libdg_la-channel.lo: channel.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-channel.lo -MD -MP -MF $(DEPDIR)/libdg_la-channel.Tpo -c -o libdg_la-channel.lo `test -f 'channel.cc' || echo '$(srcdir)/'`channel.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-channel.Tpo $(DEPDIR)/libdg_la-channel.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='channel.cc' object='libdg_la-channel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-channel.lo `test -f 'channel.cc' || echo '$(srcdir)/'`channel.cc libdg_la-channelmixer.lo: channelmixer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-channelmixer.lo -MD -MP -MF $(DEPDIR)/libdg_la-channelmixer.Tpo -c -o libdg_la-channelmixer.lo `test -f 'channelmixer.cc' || echo '$(srcdir)/'`channelmixer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-channelmixer.Tpo $(DEPDIR)/libdg_la-channelmixer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='channelmixer.cc' object='libdg_la-channelmixer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-channelmixer.lo `test -f 'channelmixer.cc' || echo '$(srcdir)/'`channelmixer.cc libdg_la-configfile.lo: configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-configfile.lo -MD -MP -MF $(DEPDIR)/libdg_la-configfile.Tpo -c -o libdg_la-configfile.lo `test -f 'configfile.cc' || echo '$(srcdir)/'`configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-configfile.Tpo $(DEPDIR)/libdg_la-configfile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configfile.cc' object='libdg_la-configfile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-configfile.lo `test -f 'configfile.cc' || echo '$(srcdir)/'`configfile.cc libdg_la-configparser.lo: configparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-configparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-configparser.Tpo -c -o libdg_la-configparser.lo `test -f 'configparser.cc' || echo '$(srcdir)/'`configparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-configparser.Tpo $(DEPDIR)/libdg_la-configparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configparser.cc' object='libdg_la-configparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-configparser.lo `test -f 'configparser.cc' || echo '$(srcdir)/'`configparser.cc libdg_la-domloader.lo: domloader.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-domloader.lo -MD -MP -MF $(DEPDIR)/libdg_la-domloader.Tpo -c -o libdg_la-domloader.lo `test -f 'domloader.cc' || echo '$(srcdir)/'`domloader.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-domloader.Tpo $(DEPDIR)/libdg_la-domloader.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='domloader.cc' object='libdg_la-domloader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-domloader.lo `test -f 'domloader.cc' || echo '$(srcdir)/'`domloader.cc libdg_la-dgxmlparser.lo: dgxmlparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-dgxmlparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-dgxmlparser.Tpo -c -o libdg_la-dgxmlparser.lo `test -f 'dgxmlparser.cc' || echo '$(srcdir)/'`dgxmlparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-dgxmlparser.Tpo $(DEPDIR)/libdg_la-dgxmlparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dgxmlparser.cc' object='libdg_la-dgxmlparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-dgxmlparser.lo `test -f 'dgxmlparser.cc' || echo '$(srcdir)/'`dgxmlparser.cc libdg_la-drumgizmo.lo: drumgizmo.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumgizmo.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumgizmo.Tpo -c -o libdg_la-drumgizmo.lo `test -f 'drumgizmo.cc' || echo '$(srcdir)/'`drumgizmo.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumgizmo.Tpo $(DEPDIR)/libdg_la-drumgizmo.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo.cc' object='libdg_la-drumgizmo.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumgizmo.lo `test -f 'drumgizmo.cc' || echo '$(srcdir)/'`drumgizmo.cc libdg_la-drumkit.lo: drumkit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumkit.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumkit.Tpo -c -o libdg_la-drumkit.lo `test -f 'drumkit.cc' || echo '$(srcdir)/'`drumkit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumkit.Tpo $(DEPDIR)/libdg_la-drumkit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit.cc' object='libdg_la-drumkit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumkit.lo `test -f 'drumkit.cc' || echo '$(srcdir)/'`drumkit.cc libdg_la-drumkitloader.lo: drumkitloader.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumkitloader.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumkitloader.Tpo -c -o libdg_la-drumkitloader.lo `test -f 'drumkitloader.cc' || echo '$(srcdir)/'`drumkitloader.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumkitloader.Tpo $(DEPDIR)/libdg_la-drumkitloader.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitloader.cc' object='libdg_la-drumkitloader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumkitloader.lo `test -f 'drumkitloader.cc' || echo '$(srcdir)/'`drumkitloader.cc libdg_la-events.lo: events.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-events.lo -MD -MP -MF $(DEPDIR)/libdg_la-events.Tpo -c -o libdg_la-events.lo `test -f 'events.cc' || echo '$(srcdir)/'`events.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-events.Tpo $(DEPDIR)/libdg_la-events.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='events.cc' object='libdg_la-events.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-events.lo `test -f 'events.cc' || echo '$(srcdir)/'`events.cc libdg_la-inputprocessor.lo: inputprocessor.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-inputprocessor.lo -MD -MP -MF $(DEPDIR)/libdg_la-inputprocessor.Tpo -c -o libdg_la-inputprocessor.lo `test -f 'inputprocessor.cc' || echo '$(srcdir)/'`inputprocessor.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-inputprocessor.Tpo $(DEPDIR)/libdg_la-inputprocessor.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='inputprocessor.cc' object='libdg_la-inputprocessor.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-inputprocessor.lo `test -f 'inputprocessor.cc' || echo '$(srcdir)/'`inputprocessor.cc libdg_la-instrument.lo: instrument.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-instrument.lo -MD -MP -MF $(DEPDIR)/libdg_la-instrument.Tpo -c -o libdg_la-instrument.lo `test -f 'instrument.cc' || echo '$(srcdir)/'`instrument.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-instrument.Tpo $(DEPDIR)/libdg_la-instrument.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='instrument.cc' object='libdg_la-instrument.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-instrument.lo `test -f 'instrument.cc' || echo '$(srcdir)/'`instrument.cc libdg_la-latencyfilter.lo: latencyfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-latencyfilter.lo -MD -MP -MF $(DEPDIR)/libdg_la-latencyfilter.Tpo -c -o libdg_la-latencyfilter.lo `test -f 'latencyfilter.cc' || echo '$(srcdir)/'`latencyfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-latencyfilter.Tpo $(DEPDIR)/libdg_la-latencyfilter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='latencyfilter.cc' object='libdg_la-latencyfilter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-latencyfilter.lo `test -f 'latencyfilter.cc' || echo '$(srcdir)/'`latencyfilter.cc libdg_la-midimapparser.lo: midimapparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-midimapparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-midimapparser.Tpo -c -o libdg_la-midimapparser.lo `test -f 'midimapparser.cc' || echo '$(srcdir)/'`midimapparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-midimapparser.Tpo $(DEPDIR)/libdg_la-midimapparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midimapparser.cc' object='libdg_la-midimapparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-midimapparser.lo `test -f 'midimapparser.cc' || echo '$(srcdir)/'`midimapparser.cc libdg_la-midimapper.lo: midimapper.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-midimapper.lo -MD -MP -MF $(DEPDIR)/libdg_la-midimapper.Tpo -c -o libdg_la-midimapper.lo `test -f 'midimapper.cc' || echo '$(srcdir)/'`midimapper.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-midimapper.Tpo $(DEPDIR)/libdg_la-midimapper.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midimapper.cc' object='libdg_la-midimapper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-midimapper.lo `test -f 'midimapper.cc' || echo '$(srcdir)/'`midimapper.cc libdg_la-path.lo: path.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-path.lo -MD -MP -MF $(DEPDIR)/libdg_la-path.Tpo -c -o libdg_la-path.lo `test -f 'path.cc' || echo '$(srcdir)/'`path.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-path.Tpo $(DEPDIR)/libdg_la-path.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='path.cc' object='libdg_la-path.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-path.lo `test -f 'path.cc' || echo '$(srcdir)/'`path.cc libdg_la-powerlist.lo: powerlist.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-powerlist.lo -MD -MP -MF $(DEPDIR)/libdg_la-powerlist.Tpo -c -o libdg_la-powerlist.lo `test -f 'powerlist.cc' || echo '$(srcdir)/'`powerlist.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-powerlist.Tpo $(DEPDIR)/libdg_la-powerlist.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='powerlist.cc' object='libdg_la-powerlist.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-powerlist.lo `test -f 'powerlist.cc' || echo '$(srcdir)/'`powerlist.cc libdg_la-random.lo: random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-random.lo -MD -MP -MF $(DEPDIR)/libdg_la-random.Tpo -c -o libdg_la-random.lo `test -f 'random.cc' || echo '$(srcdir)/'`random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-random.Tpo $(DEPDIR)/libdg_la-random.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='random.cc' object='libdg_la-random.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-random.lo `test -f 'random.cc' || echo '$(srcdir)/'`random.cc libdg_la-sample.lo: sample.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-sample.lo -MD -MP -MF $(DEPDIR)/libdg_la-sample.Tpo -c -o libdg_la-sample.lo `test -f 'sample.cc' || echo '$(srcdir)/'`sample.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-sample.Tpo $(DEPDIR)/libdg_la-sample.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sample.cc' object='libdg_la-sample.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-sample.lo `test -f 'sample.cc' || echo '$(srcdir)/'`sample.cc libdg_la-sample_selection.lo: sample_selection.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-sample_selection.lo -MD -MP -MF $(DEPDIR)/libdg_la-sample_selection.Tpo -c -o libdg_la-sample_selection.lo `test -f 'sample_selection.cc' || echo '$(srcdir)/'`sample_selection.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-sample_selection.Tpo $(DEPDIR)/libdg_la-sample_selection.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sample_selection.cc' object='libdg_la-sample_selection.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-sample_selection.lo `test -f 'sample_selection.cc' || echo '$(srcdir)/'`sample_selection.cc libdg_la-sem.lo: sem.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-sem.lo -MD -MP -MF $(DEPDIR)/libdg_la-sem.Tpo -c -o libdg_la-sem.lo `test -f 'sem.cc' || echo '$(srcdir)/'`sem.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-sem.Tpo $(DEPDIR)/libdg_la-sem.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sem.cc' object='libdg_la-sem.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-sem.lo `test -f 'sem.cc' || echo '$(srcdir)/'`sem.cc libdg_la-staminafilter.lo: staminafilter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-staminafilter.lo -MD -MP -MF $(DEPDIR)/libdg_la-staminafilter.Tpo -c -o libdg_la-staminafilter.lo `test -f 'staminafilter.cc' || echo '$(srcdir)/'`staminafilter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-staminafilter.Tpo $(DEPDIR)/libdg_la-staminafilter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='staminafilter.cc' object='libdg_la-staminafilter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-staminafilter.lo `test -f 'staminafilter.cc' || echo '$(srcdir)/'`staminafilter.cc libdg_la-thread.lo: thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-thread.lo -MD -MP -MF $(DEPDIR)/libdg_la-thread.Tpo -c -o libdg_la-thread.lo `test -f 'thread.cc' || echo '$(srcdir)/'`thread.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-thread.Tpo $(DEPDIR)/libdg_la-thread.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='thread.cc' object='libdg_la-thread.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-thread.lo `test -f 'thread.cc' || echo '$(srcdir)/'`thread.cc libdg_la-velocityfilter.lo: velocityfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-velocityfilter.lo -MD -MP -MF $(DEPDIR)/libdg_la-velocityfilter.Tpo -c -o libdg_la-velocityfilter.lo `test -f 'velocityfilter.cc' || echo '$(srcdir)/'`velocityfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-velocityfilter.Tpo $(DEPDIR)/libdg_la-velocityfilter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='velocityfilter.cc' object='libdg_la-velocityfilter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-velocityfilter.lo `test -f 'velocityfilter.cc' || echo '$(srcdir)/'`velocityfilter.cc libdg_la-versionstr.lo: versionstr.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-versionstr.lo -MD -MP -MF $(DEPDIR)/libdg_la-versionstr.Tpo -c -o libdg_la-versionstr.lo `test -f 'versionstr.cc' || echo '$(srcdir)/'`versionstr.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-versionstr.Tpo $(DEPDIR)/libdg_la-versionstr.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='versionstr.cc' object='libdg_la-versionstr.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-versionstr.lo `test -f 'versionstr.cc' || echo '$(srcdir)/'`versionstr.cc .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/src/sample.h0000644000076400007640000000340113551153107013136 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.h * * Mon Jul 21 10:23:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "channel.h" #include "audiofile.h" using AudioFiles = std::map; class Sample { public: Sample(const std::string& name, double power, bool normalized = false); ~Sample(); AudioFile* getAudioFile(const Channel& channel) const; double getPower() const; bool getNormalized() const; private: friend class DOMLoader; friend class DOMLoaderTest; friend class PowerList; void addAudioFile(InstrumentChannel* instrument_channel, AudioFile* audio_file); std::string name; double power; bool normalized; AudioFiles audiofiles; }; drumgizmo-0.9.18.1/src/audiotypes.h0000644000076400007640000000243113356716137014060 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.h * * Fri Jun 3 12:12:17 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once //typedef signed short int sample_t; typedef float sample_t; typedef unsigned int channels_t; typedef unsigned int channel_t; typedef float level_t; drumgizmo-0.9.18.1/src/sem.cc0000644000076400007640000001116613515375735012623 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sem.cc * * Sat Oct 8 17:44:13 CEST 2005 * Copyright 2005 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "sem.h" #include #include #include #include #include #include #include "platform.h" #if DG_PLATFORM != DG_PLATFORM_WINDOWS #include #include #include #include #endif #if DG_PLATFORM == DG_PLATFORM_OSX //#include #include #endif struct semaphore_private_t { #if DG_PLATFORM == DG_PLATFORM_WINDOWS HANDLE semaphore; #elif DG_PLATFORM == DG_PLATFORM_OSX MPSemaphoreID semaphore; #else sem_t semaphore; #endif }; Semaphore::Semaphore(std::size_t initial_count) { prv = new struct semaphore_private_t(); #if DG_PLATFORM == DG_PLATFORM_WINDOWS prv->semaphore = CreateSemaphore(nullptr, // default security attributes initial_count, std::numeric_limits::max(), nullptr); // unnamed semaphore #elif DG_PLATFORM == DG_PLATFORM_OSX MPCreateSemaphore(std::numeric_limits::max(), initial_count, &prv->semaphore); #else const int pshared = 0; memset(&prv->semaphore, 0, sizeof(sem_t)); sem_init(&prv->semaphore, pshared, initial_count); #endif } Semaphore::~Semaphore() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS CloseHandle(prv->semaphore); #elif DG_PLATFORM == DG_PLATFORM_OSX MPDeleteSemaphore(prv->semaphore); #else sem_destroy(&prv->semaphore); #endif delete prv; } void Semaphore::post() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS ReleaseSemaphore(prv->semaphore, 1, nullptr); #elif DG_PLATFORM == DG_PLATFORM_OSX MPSignalSemaphore(prv->semaphore); #else sem_post(&prv->semaphore); #endif } bool Semaphore::wait(const std::chrono::milliseconds& timeout) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS DWORD ret = WaitForSingleObject(prv->semaphore, timeout.count()); if(ret == WAIT_TIMEOUT) { return false; } assert(ret == WAIT_OBJECT_0); #elif DG_PLATFORM == DG_PLATFORM_OSX auto ret = MPWaitOnSemaphore(prv->semaphore, kDurationMillisecond * timeout.count()); if(ret == kMPTimeoutErr) { return false; } #else struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); // Add timeout time_t seconds = (time_t)(timeout.count() / 1000); ts.tv_sec += seconds; ts.tv_nsec += (long)((timeout.count() % 1000) * 1000000); // Make sure we don't overflow the nanoseconds. constexpr long nsec = 1000000000LL; if(ts.tv_nsec >= nsec) { ts.tv_nsec -= nsec; ts.tv_sec += 1; } again: int ret = sem_timedwait(&prv->semaphore, &ts); if(ret < 0) { if(errno == EINTR) { // The timed wait were interrupted prematurely so we need to wait some // more. To prevent an infinite loop-like behaviour we make a short sleep. std::this_thread::sleep_for(std::chrono::milliseconds(1)); goto again; } if(errno == ETIMEDOUT) { return false; } perror("sem_timedwait()"); assert(false); } #endif return true; } void Semaphore::wait() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS WaitForSingleObject(prv->semaphore, INFINITE); #elif DG_PLATFORM == DG_PLATFORM_OSX MPWaitOnSemaphore(prv->semaphore, kDurationForever); #else again: int ret = sem_wait(&prv->semaphore); if(ret < 0) { if(errno == EINTR) { // The wait were interrupted prematurely so we need to wait again // To prevent an infinite loop-like behaviour we make a short sleep. std::this_thread::sleep_for(std::chrono::milliseconds(1)); goto again; } perror("sem_wait()"); assert(false); } #endif } drumgizmo-0.9.18.1/src/channelmixer.h0000644000076400007640000000323113153056417014337 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channelmixer.h * * Sun Oct 17 10:14:34 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "channel.h" class MixerSettings { public: float gain; const Channel* output; }; class ChannelMixer { public: ChannelMixer(const Channels& channels, const Channel* defaultchannel = nullptr, float defaultgain = 1.0); MixerSettings& lookup(const InstrumentChannel& channel); void setDefaults(const Channel* defaultchannel, float defaultgain); private: std::map mix; const Channel* defaultchannel; float defaultgain; const Channels& channels; }; drumgizmo-0.9.18.1/src/midimapparser.cc0000644000076400007640000000351213347502615014660 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapparser.cc * * Mon Aug 8 16:55:30 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midimapparser.h" #include #include bool MidiMapParser::parseFile(const std::string& filename) { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(filename.data()); if(result.status) { ERR(midimapparser, "XML parse error: %d", (int)result.offset); return false; } pugi::xml_node midimap_node = doc.child("midimap"); for(pugi::xml_node map_node : midimap_node.children("map")) { constexpr int bad_value = 10000; auto note = map_node.attribute("note").as_int(bad_value); auto instr = map_node.attribute("instr").as_string(); if(std::string(instr) == "" || note == bad_value) { continue; } midimap[note] = instr; } return true; } drumgizmo-0.9.18.1/src/channelmixer.cc0000644000076400007640000000551113153056417014500 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channelmixer.cc * * Sun Oct 17 10:14:34 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "channelmixer.h" ChannelMixer::ChannelMixer(const Channels& c, const Channel* defc, float defg) : mix{} , defaultchannel{nullptr} , defaultgain{1.f} , channels(c) { setDefaults(defc, defg); } void ChannelMixer::setDefaults(const Channel* defc, float defg) { defaultchannel = defc; if(defc == nullptr && channels.size() > 0) { defaultchannel = &channels[0]; } defaultgain = defg; } MixerSettings& ChannelMixer::lookup(const InstrumentChannel& c) { auto mi = mix.find(&c); if(mi == mix.end()) { MixerSettings m; m.gain = defaultgain; m.output = defaultchannel; mix[&c] = m; return mix[&c]; } return mi->second; } #ifdef TEST_CHANNELMIXER // deps: channel.cc // cflags: // libs: #include "test.h" TEST_BEGIN; Channel ch1; Channel ch2; Channels channels; channels.push_back(ch1); channels.push_back(ch2); { ChannelMixer mixer(channels, nullptr, 1.0); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[0], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); } { ChannelMixer mixer(channels, &channels[1]); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[1], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); } { ChannelMixer mixer(channels, &channels[1]); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[1], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); m.output = &channels[0]; m.gain = 0.5; MixerSettings& m2 = mixer.lookup(&ich); TEST_EQUAL(m2.output, &channels[0], "Changed channel?"); TEST_EQUAL_FLOAT(m2.gain, 0.5, "Changed gain?"); } TEST_END; #endif /*TEST_CHANNELMIXER*/ drumgizmo-0.9.18.1/src/audio.h0000644000076400007640000000223113153056417012762 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audio.h * * Thu Sep 16 20:15:45 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include drumgizmo-0.9.18.1/src/audiocacheidmanager.h0000644000076400007640000000534113331526614015622 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheidmanager.h * * Tue Jan 5 10:59:37 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include class AudioCacheFile; #define CACHE_DUMMYID -2 #define CACHE_NOID -1 typedef int cacheid_t; struct cache_t { cacheid_t id{CACHE_NOID}; //< Current id of this cache_t. CACHE_NOID means not in use. AudioCacheFile* afile{nullptr}; size_t channel{0}; size_t pos{0}; //< File position volatile bool ready{false}; sample_t* front{nullptr}; sample_t* back{nullptr}; size_t localpos{0}; //< Intra buffer (front) position. sample_t* preloaded_samples{nullptr}; // nullptr means preload buffer not active. size_t preloaded_samples_size{0}; }; class AudioCacheIDManager { friend class AudioCacheEventHandler; public: AudioCacheIDManager() = default; ~AudioCacheIDManager(); //! Initialise id lists with specified capacity. //! Exceeding this capacity will result in CACHE_DUMMYID on calls to //! registerID. void init(unsigned int capacity); //! Get the cache object connected with the specified cacheid. //! Note: The cacheid MUST be active. cache_t& getCache(cacheid_t id); //! Reserve a new cache object and return its cacheid. //! The contents of the supplied cache object will be copied to the new //! cache object. cacheid_t registerID(const cache_t& cache); //! Release a cache object and its correseponding cacheid. //! After this call the cacheid can no longer be used. void releaseID(cacheid_t id); protected: // For AudioCacheEventHandler void disableActive(); std::vector getActiveIDs(); std::mutex mutex; std::vector id2cache; std::vector available_ids; }; drumgizmo-0.9.18.1/src/configparser.h0000644000076400007640000000267213347502615014355 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configparser.h * * Sat Jun 29 21:55:02 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class ConfigParser { public: //! Returns false on failure, true on success. bool parseString(const std::string& xml); std::string value(const std::string& name, const std::string& def = ""); private: std::unordered_map values; }; drumgizmo-0.9.18.1/src/logger.h0000644000076400007640000000233413551153107013140 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * logger.h * * Wed Jul 24 19:42:25 CEST 2019 * Copyright 2019 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include enum class LogLevel { Info, Warning, Error, }; using LogFunction = std::function; drumgizmo-0.9.18.1/src/rangemap.h0000644000076400007640000000512213511117027013446 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * rangemap.h * * Wed Sep 22 19:17:49 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include template class RangeMap { public: void insert(T1 from, T1 to, T2 value); std::vector get(T1 from, T1 to); std::vector get(T1 at); private: friend class DOMLoaderTest; std::multimap, T2> values; }; template void RangeMap::insert(T1 from, T1 to, T2 value) { if(from < to) { values.insert(std::make_pair(std::make_pair(from, to), value)); } else { values.insert(std::make_pair(std::make_pair(to, from), value)); } } template std::vector RangeMap::get(T1 from, T1 to) { std::vector res; typename std::multimap, T2>::iterator i = values.begin(); while(i != values.end()) { T1 a = i->first.first; T1 b = i->first.second; if((from >= a && to <= b) || // inside (from <= a && to >= b) || // containing (from <= a && to >= a && to <= b) || // overlapping lower (from >= a && from <= b && to >= b) // overlapping upper ) { res.push_back(i->second); } i++; } return res; } template std::vector RangeMap::get(T1 at) { std::vector res; typename std::multimap, T2>::iterator i = values.begin(); while(i != values.end()) { T1 a = i->first.first; T1 b = i->first.second; if(at >= a && at <= b) { res.push_back(i->second); } i++; } return res; } drumgizmo-0.9.18.1/src/audiocacheeventhandler.cc0000644000076400007640000001477113153056417016520 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheeventhandler.cc * * Sun Jan 3 19:57:55 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocacheeventhandler.h" #include #include #include "audiocachefile.h" #include "audiocache.h" #include "audiocacheidmanager.h" enum class EventType { LoadNext, Close, }; class CacheEvent { public: EventType event_type; // For close event: cacheid_t id; // For load next event: size_t pos; AudioCacheFile* afile; CacheChannels channels; }; AudioCacheEventHandler::AudioCacheEventHandler(AudioCacheIDManager& id_manager) : id_manager(id_manager) { } AudioCacheEventHandler::~AudioCacheEventHandler() { // Close all ids already enqueued to be closed. clearEvents(); auto active_ids = id_manager.getActiveIDs(); for(auto id : active_ids) { handleCloseCache(id); } } void AudioCacheEventHandler::start() { if(running) { return; } running = true; run(); sem_run.wait(); } void AudioCacheEventHandler::stop() { if(!running) { return; } running = false; sem.post(); wait_stop(); } void AudioCacheEventHandler::setThreaded(bool threaded) { this->threaded.store(threaded); } bool AudioCacheEventHandler::isThreaded() const { return threaded.load(); } void AudioCacheEventHandler::lock() { mutex.lock(); } void AudioCacheEventHandler::unlock() { mutex.unlock(); } void AudioCacheEventHandler::pushLoadNextEvent(AudioCacheFile* afile, size_t channel, size_t pos, sample_t* buffer, volatile bool* ready) { CacheEvent cache_event; cache_event.event_type = EventType::LoadNext; cache_event.pos = pos; cache_event.afile = afile; CacheChannel c; c.channel = channel; c.samples = buffer; *ready = false; c.ready = ready; cache_event.channels.insert(cache_event.channels.end(), c); pushEvent(cache_event); } void AudioCacheEventHandler::pushCloseEvent(cacheid_t id) { CacheEvent cache_event; cache_event.event_type = EventType::Close; cache_event.id = id; pushEvent(cache_event); } void AudioCacheEventHandler::setChunkSize(size_t chunksize) { DEBUG(cache, "%s\n", __PRETTY_FUNCTION__); // We should already locked when this method is called. //assert(!mutex.try_lock()); if(this->chunksize == chunksize) { return; } DEBUG(cache, "setChunkSize 1\n"); // Remove all events from event queue. clearEvents(); DEBUG(cache, "setChunkSize 2\n"); // Skip all active cacheids and make their buffers point at nodata. id_manager.disableActive(); DEBUG(cache, "setChunkSize 3\n"); this->chunksize = chunksize; } size_t AudioCacheEventHandler::getChunkSize() const { return chunksize; } AudioCacheFile& AudioCacheEventHandler::openFile(const std::string& filename) { std::lock_guard lock(mutex); return files.getFile(filename); } void AudioCacheEventHandler::clearEvents() { // Iterate all events ignoring load events and handling close events. for(auto& event : eventqueue) { if(event.event_type == EventType::Close) { handleCloseCache(event.id); // This method does not lock. } } eventqueue.clear(); } void AudioCacheEventHandler::handleLoadNextEvent(CacheEvent& cache_event) { assert(cache_event.afile); // Assert that we have an audio file cache_event.afile->readChunk(cache_event.channels, cache_event.pos, chunksize); } void AudioCacheEventHandler::handleCloseEvent(CacheEvent& cache_event) { std::lock_guard lock(mutex); handleCloseCache(cache_event.id); } void AudioCacheEventHandler::handleCloseCache(cacheid_t id) { auto& cache = id_manager.getCache(id); // Only close the file if we have also opened it. if(cache.afile) { files.releaseFile(cache.afile->getFilename()); } delete[] cache.front; delete[] cache.back; id_manager.releaseID(id); } void AudioCacheEventHandler::handleEvent(CacheEvent& cache_event) { switch(cache_event.event_type) { case EventType::LoadNext: handleLoadNextEvent(cache_event); break; case EventType::Close: handleCloseEvent(cache_event); break; } } void AudioCacheEventHandler::thread_main() { sem_run.post(); // Signal that the thread has been started while(running) { sem.wait(); mutex.lock(); if(eventqueue.empty()) { mutex.unlock(); continue; } CacheEvent cache_event = eventqueue.front(); eventqueue.pop_front(); mutex.unlock(); handleEvent(cache_event); } } void AudioCacheEventHandler::pushEvent(CacheEvent& cache_event) { if(!threaded.load()) { handleEvent(cache_event); return; } { std::lock_guard lock(mutex); bool found = false; if(cache_event.event_type == EventType::LoadNext) { for(auto& queued_event : eventqueue) { if(queued_event.event_type == EventType::LoadNext) { assert(cache_event.afile); // Assert that we have an audio file assert(queued_event.afile); // Assert that we have an audio file if((cache_event.afile->getFilename() == queued_event.afile->getFilename()) && (cache_event.pos == queued_event.pos)) { // Append channel and buffer to the existing event. queued_event.channels.insert(queued_event.channels.end(), cache_event.channels.begin(), cache_event.channels.end()); found = true; break; } } } } if(!found) { // The event was not already on the list, create a new one. eventqueue.push_back(cache_event); } } sem.post(); } drumgizmo-0.9.18.1/src/audiocache.h0000644000076400007640000001014513331526614013750 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocache.h * * Fri Apr 10 10:39:24 CEST 2015 * Copyright 2015 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "audiotypes.h" #include "audiofile.h" #include "audiocachefile.h" #include "audiocacheidmanager.h" #include "audiocacheeventhandler.h" #include "settings.h" class AudioCache { public: AudioCache(Settings& settings); //! Destroy object and stop thread if needed. ~AudioCache(); //! Initialise cache manager and allocate needed resources //! This method starts the cache manager thread. //! This method blocks until the thread has been started. //! \param poolsize The maximum number of parellel events supported. void init(std::size_t poolsize); //! Stop thread and clean up resources. //! This method blocks until the thread has stopped. void deinit(); //! Register new cache entry. //! Prepares an entry in the cache manager for future disk streaming. //! \param file A pointer to the file which is to be streamed from. //! \param initial_samples_needed The number of samples needed in the first //! read that is not nessecarily of framesize. This is the number of samples //! from the input event offset to the end of the frame in which it resides. //! initial_samples_needed <= framesize. //! \param channel The channel to which the cache id will be bound. //! \param [out] new_id The newly created cache id. //! \return A pointer to the first buffer containing the //! 'initial_samples_needed' number of samples. sample_t* open(const AudioFile& file, std::size_t initial_samples_needed, int channel, cacheid_t& new_id); //! Get next buffer. //! Returns the next buffer for reading based on cache id. //! This function will (if needed) schedule a new disk read to make sure that //! data is available in the next call to this method. //! \param id The cache id to read from. //! \param [out] size The size of the returned buffer. //! \return A pointer to the buffer. sample_t* next(cacheid_t id, std::size_t &size); //! Returns true iff the next chunk of the supplied id has been read from disk. bool isReady(cacheid_t id); //! Unregister cache entry. //! Close associated file handles and free associated buffers. //! \param id The cache id to close. void close(cacheid_t id); //! Set/get internal framesize used when iterating through cache buffers. void setFrameSize(std::size_t framesize); std::size_t getFrameSize() const; //! Signal the AudioCache sub-system to set it's internals according to the //! chunk size parameter from Settings. void updateChunkSize(std::size_t output_channels); //! Control/get reader threaded mode. //! True means reading happening threaded, false means all reading done //! synchronious. void setAsyncMode(bool async); bool isAsyncMode() const; private: std::size_t framesize{0}; sample_t* nodata{nullptr}; std::size_t nodata_framesize{0}; std::size_t chunk_size{0}; std::list> nodata_dirty; AudioCacheIDManager id_manager; AudioCacheEventHandler event_handler{id_manager}; Settings& settings; }; drumgizmo-0.9.18.1/src/sample_selection.cc0000644000076400007640000001134613551153107015350 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * sample_selection.h * * Mon Mar 4 23:58:12 CET 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "sample_selection.h" #include #include "powerlist.h" #include "random.h" #include "settings.h" #include namespace { float pow2(float f) { return f*f; } } // end anonymous namespace SampleSelection::SampleSelection(Settings& settings, Random& rand, const PowerList& powerlist) : settings(settings), rand(rand), powerlist(powerlist) { } void SampleSelection::finalise() { last.assign(powerlist.getPowerListItems().size(), 0); } const Sample* SampleSelection::get(level_t level, std::size_t pos) { const auto& samples = powerlist.getPowerListItems(); if(!samples.size()) { return nullptr; // No samples to choose from. } std::size_t index_opt = 0; float power_opt{0.f}; float value_opt{std::numeric_limits::max()}; // the following three values are mostly for debugging float random_opt = 0.; float close_opt = 0.; float diverse_opt = 0.; // Note the magic values in front of the settings factors. const float f_close = 4.*settings.sample_selection_f_close.load(); const float f_diverse = (1./2.)*settings.sample_selection_f_diverse.load(); const float f_random = (1./3.)*settings.sample_selection_f_random.load(); float power_range = powerlist.getMaxPower() - powerlist.getMinPower(); // If all power values are the same then power_range is invalid but we want // to avoid division by zero. if (power_range == 0.) { power_range = 1.0; } // start with most promising power value and then stop when reaching far values // which cannot become opt anymore auto closest_it = std::lower_bound(samples.begin(), samples.end(), level); std::size_t up_index = std::distance(samples.begin(), closest_it); std::size_t down_index = (up_index == 0 ? 0 : up_index - 1); float up_value_lb; if (up_index < samples.size()) { auto const close_up = (samples[up_index].power-level)/power_range; up_value_lb = f_close*pow2(close_up); } else { --up_index; up_value_lb = std::numeric_limits::max(); } auto const close_down = (samples[down_index].power-level)/power_range; float down_value_lb = (up_index != 0 ? f_close*pow2(close_down) : std::numeric_limits::max()); std::size_t count = 0; do { DEBUG(rand, "%d %d", (int)up_index, (int)down_index); // at least avoid infinite loops in case of a bug... if (up_index == samples.size()-1 && down_index == 0) { break; } std::size_t current_index; if (up_value_lb < down_value_lb) { current_index = up_index; if (up_index != samples.size()-1) { ++up_index; up_value_lb = f_close*pow2((samples[up_index].power-level)/power_range); } else { up_value_lb = std::numeric_limits::max(); } } else { current_index = down_index; if (down_index != 0) { --down_index; down_value_lb = f_close*pow2((samples[down_index].power-level)/power_range); } else { down_value_lb = std::numeric_limits::max(); } } auto random = rand.floatInRange(0.,1.); auto close = (samples[current_index].power - level)/power_range; auto diverse = 1./(1. + (float)(pos - last[current_index])/settings.samplerate); auto value = f_close*pow2(close) + f_diverse*diverse + f_random*random; if (value < value_opt) { index_opt = current_index; power_opt = samples[current_index].power; value_opt = value; random_opt = random; close_opt = close; diverse_opt = diverse; } ++count; } while (up_value_lb <= value_opt || down_value_lb <= value_opt); DEBUG(rand, "Chose sample with index: %d, value: %f, power %f, random: %f, close: %f, diverse: %f, count: %d", (int)index_opt, value_opt, power_opt, random_opt, close_opt, diverse_opt, (int)count); last[index_opt] = pos; return samples[index_opt].sample; } drumgizmo-0.9.18.1/src/drumkit.cc0000644000076400007640000000365213340266454013510 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit.cc * * Wed Mar 9 15:27:27 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkit.h" DrumKit::DrumKit() { magic = this; } DrumKit::~DrumKit() { magic = NULL; clear(); } void DrumKit::clear() { instruments.clear(); channels.clear(); _name = ""; _description = ""; _samplerate = 44100.0f; } bool DrumKit::isValid() const { return this == magic; } std::string DrumKit::getFile() const { return _file; } std::string DrumKit::getName() const { return _name; } std::string DrumKit::getDescription() const { return _description; } VersionStr DrumKit::getVersion() const { return _version; } float DrumKit::getSamplerate() const { return _samplerate; } std::size_t DrumKit::getNumberOfFiles() const { std::size_t number_of_files = 0; for(const auto & instrument : instruments) { number_of_files += instrument->getNumberOfFiles(); } return number_of_files; } drumgizmo-0.9.18.1/src/drumgizmo.h0000644000076400007640000000544113515375734013714 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo.h * * Thu Sep 16 10:24:40 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include "audiooutputengine.h" #include "audioinputengine.h" #include "events.h" #include "audiofile.h" #include "drumkit.h" #include "drumkitloader.h" #include "audiocache.h" #include "settings.h" #include "inputprocessor.h" #define REFSFILE "refs.conf" class DrumGizmo { public: DrumGizmo(Settings& settings, AudioOutputEngine& outputengine, AudioInputEngine& inputengine); virtual ~DrumGizmo(); bool init(); bool run(size_t pos, sample_t *samples, size_t nsamples); void stop(); void renderSampleEvent(EventSample& evt, int pos, sample_t *s, std::size_t sz); void getSamples(int ch, int pos, sample_t *s, size_t sz); //! Get the current engine latency in samples. std::size_t getLatency() const; float samplerate(); void setSamplerate(float samplerate); void setFrameSize(size_t framesize); void setFreeWheel(bool freewheel); void setRandomSeed(unsigned int seed); private: static constexpr int MAX_RESAMPLER_BUFFER_SIZE = 4096 * 8; protected: DrumKitLoader loader; AudioOutputEngine& oe; AudioInputEngine& ie; std::list< Event* > activeevents[NUM_CHANNELS]; bool enable_resampling{true}; std::map audiofiles; AudioCache audio_cache; DrumKit kit; InputProcessor input_processor; size_t framesize{0}; bool freewheel{true}; std::vector events; Settings& settings; SettingsGetter settings_getter; Random rand; std::array zita; std::array, NUM_CHANNELS> resampler_input_buffer; double ratio = 1.0; }; drumgizmo-0.9.18.1/src/cpp11fix.h0000644000076400007640000000252013153056417013315 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cpp11fix.h * * Mi 20. Jan 10:22:36 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace std { template std::unique_ptr make_unique(Args&& ...args) { return std::unique_ptr{new T{std::forward(args)...}}; } } // std drumgizmo-0.9.18.1/src/drumkitloader.h0000644000076400007640000000564413551153107014536 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitloader.h * * Thu Jan 17 20:54:13 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "thread.h" #include "sem.h" #include "drumkit.h" #include "settings.h" #include "audioinputengine.h" #include "audiocache.h" struct DrumkitDOM; struct InstrumentDOM; //! This class is responsible for loading the drumkits in its own thread. //! All interaction calls are simply modifying queues and not doing any //! work in-sync with the caller. //! This means that if loadKit(...) is called, one cannot assume that the //! drumkit has actually been loaded when the call returns. class DrumKitLoader : public Thread { public: DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, Random& rand, AudioCache& audio_cache); ~DrumKitLoader(); //! Starts the loader thread. void init(); //! Signal the loader thread to stop and waits for the threads to merge //! before returning. void deinit(); bool loadkit(const std::string& file); //! Signal the loader to start loading all audio files contained in the kit. //! All other AudioFiles in queue will be removed before the new ones are //! scheduled. void loadKitAudio(const DrumKit& kit); //! Skip all queued AudioFiles. void skip(); //! Set the framesize which will be used to preloading samples in next //! loadKit call. void setFrameSize(std::size_t framesize); protected: void thread_main(); Semaphore run_semaphore; Semaphore semaphore; Semaphore framesize_semaphore; std::mutex mutex; volatile bool running{false}; std::list load_queue; std::size_t framesize{0}; Settings& settings; SettingsGetter getter; DrumKit& kit; AudioInputEngine& ie; //MemChecker memchecker; Random& rand; AudioCache& audio_cache; std::size_t preload_samples{std::numeric_limits::max()}; LogFunction logger; }; drumgizmo-0.9.18.1/src/notifier.h0000644000076400007640000000705213340266455013511 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * notifier.h * * Thu Sep 3 15:48:39 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include namespace aux { template struct placeholder { }; } namespace std { template struct is_placeholder> : integral_constant { }; } namespace aux { // std::integer_sequence introduced in C++14 so remove this once we start requiring that. template struct int_sequence { }; template struct gen_int_sequence : gen_int_sequence { }; template struct gen_int_sequence<0, Ns...> : int_sequence { }; }; //namespace GUI { class Listener; class NotifierBase { public: virtual void disconnect(Listener* object) {} }; class Listener { public: virtual ~Listener() { for(auto signal : signals) { signal->disconnect(this); } } void registerNotifier(NotifierBase* signal) { signals.insert(signal); } void unregisterNotifier(NotifierBase* signal) { signals.erase(signal); } private: std::set signals; }; template class Notifier : public NotifierBase { public: Notifier() {} //! \brief When dtor is called it will automatically disconnect all its listeners. ~Notifier() { for(auto& slot : slots) { slot.first->unregisterNotifier(this); } } using callback_type = std::function; //! \brief Connect object to this Notifier. template void connect(O* p, const F& fn) { slots.emplace_back(std::make_pair(p, std::move(construct_mem_fn(fn, p, aux::gen_int_sequence{})))); if(p && dynamic_cast(p)) { dynamic_cast(p)->registerNotifier(this); } } //! \brief Disconnect object from this Notifier. void disconnect(Listener* object) { for(auto it = slots.begin(); it != slots.end(); ++it) { if(it->first == object) { slots.erase(it); return; } } } //! \brief Activate this notifier by pretending it is a function. //! Example: Notifier foo; foo(42); void operator()(Args... args) { for(auto& slot : slots) { slot.second(args...); } } private: std::list> slots; template callback_type construct_mem_fn(const F& fn, O* p, aux::int_sequence) const { return std::bind(fn, p, aux::placeholder{}...); } }; //} // GUI:: #define CONNECT(SRC, SIG, TAR, SLO) (SRC)->SIG.connect(TAR, SLO) drumgizmo-0.9.18.1/src/Makefile.am0000644000076400007640000000340413551153107013543 00000000000000noinst_LTLIBRARIES = libdg.la libdg_la_CPPFLAGS = \ -I$(top_srcdir)/hugin -I$(top_srcdir)/pugixml/src \ $(SSEFLAGS) \ $(ZITA_CPPFLAGS) $(SNDFILE_CFLAGS) $(PTHREAD_CFLAGS) libdg_la_LIBADD = \ $(ZITA_LIBS) $(SNDFILE_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdg_la_SOURCES = \ $(top_srcdir)/pugixml/src/pugixml.cpp \ audiocachefile.cc \ audiocache.cc \ audiocacheeventhandler.cc \ audiocacheidmanager.cc \ audioinputenginemidi.cc \ audiofile.cc \ bytesizeparser.cc \ channel.cc \ channelmixer.cc \ configfile.cc \ configparser.cc \ domloader.cc \ dgxmlparser.cc \ drumgizmo.cc \ drumkit.cc \ drumkitloader.cc \ events.cc \ inputprocessor.cc \ instrument.cc \ latencyfilter.cc \ midimapparser.cc \ midimapper.cc \ path.cc \ powerlist.cc \ random.cc \ sample.cc \ sample_selection.cc \ sem.cc \ staminafilter.cc \ thread.cc \ velocityfilter.cc \ versionstr.cc EXTRA_DIST = \ $(nodist_libdg_la_SOURCES) \ DGDOM.h \ atomic.h \ audio.h \ audiocache.h \ audiocacheeventhandler.h \ audiocachefile.h \ audiocacheidmanager.h \ audiofile.h \ audioinputengine.h \ audioinputenginemidi.h \ audiooutputengine.h \ audiotypes.h \ bytesizeparser.h \ channel.h \ channelmixer.h \ configfile.h \ configparser.h \ cpp11fix.h \ dgxmlparser.h \ domloader.h \ drumgizmo.h \ drumkit.h \ drumkitloader.h \ event.h \ events.h \ grid.h \ inputfilter.h \ inputprocessor.h \ instrument.h \ latencyfilter.h \ logger.h \ midimapparser.h \ midimapper.h \ nolocale.h \ notifier.h \ path.h \ platform.h \ powerlist.h \ random.h \ rangemap.h \ sample.h \ sample_selection.h \ sem.h \ settings.h \ staminafilter.h \ syncedsettings.h \ thread.h \ velocityfilter.h \ versionstr.h drumgizmo-0.9.18.1/src/audiocachefile.cc0000644000076400007640000000765413153056417014762 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cacheaudiofile.cc * * Thu Dec 24 12:17:58 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocachefile.h" #include #include #include #include "audiocache.h" AudioCacheFile::AudioCacheFile(const std::string& filename, std::vector& read_buffer) : filename(filename) , read_buffer(read_buffer) { std::memset(&sf_info, 0, sizeof(SF_INFO)); fh = sf_open(filename.c_str(), SFM_READ, &sf_info); if(!fh) { ERR(audiofile,"SNDFILE Error (%s): %s\n", filename.c_str(), sf_strerror(fh)); return; } if(sf_info.frames == 0) { WARN(cache, "sf_info.frames == 0\n"); } } AudioCacheFile::~AudioCacheFile() { if(fh) { sf_close(fh); fh = nullptr; } } size_t AudioCacheFile::getSize() const { return sf_info.frames; } const std::string& AudioCacheFile::getFilename() const { return filename; } size_t AudioCacheFile::getChannelCount() const { return sf_info.channels; } void AudioCacheFile::readChunk(const CacheChannels& channels, size_t pos, size_t num_samples) { //assert(fh != nullptr); // File handle must never be nullptr if(!fh) { return; } if((int)pos > sf_info.frames) { WARN(cache, "pos (%d) > sf_info.frames (%d)\n", (int)pos, (int)sf_info.frames); return; } sf_seek(fh, pos, SEEK_SET); size_t size = sf_info.frames - pos; if(size > num_samples) { size = num_samples; } if((size * sf_info.channels) > read_buffer.size()) { read_buffer.resize(size * sf_info.channels); } size_t read_size = sf_readf_float(fh, read_buffer.data(), size); (void)read_size; for(auto it = channels.begin(); it != channels.end(); ++it) { size_t channel = it->channel; sample_t* data = it->samples; for (size_t i = 0; i < size; ++i) { data[i] = read_buffer[(i * sf_info.channels) + channel]; } } for(auto it = channels.begin(); it != channels.end(); ++it) { *(it->ready) = true; } } AudioCacheFile& AudioCacheFiles::getFile(const std::string& filename) { std::lock_guard lock(mutex); auto it = audiofiles.find(filename); if(it == audiofiles.end()) { // Construct a new AudioCacheFile in place. The in place construction is relevant. it = audiofiles.emplace(std::piecewise_construct, std::make_tuple(filename), std::make_tuple(filename, std::ref(read_buffer))).first; } auto& cache_audio_file = it->second; // Increase ref count. ++cache_audio_file.ref; return cache_audio_file; } void AudioCacheFiles::releaseFile(const std::string& filename) { std::lock_guard lock(mutex); auto it = audiofiles.find(filename); if(it == audiofiles.end()) { assert(false); // This should never happen! return; // not open } auto& audiofile = it->second; assert(audiofile.ref); // If ref is not > 0 it shouldn't be in the map. --audiofile.ref; if(audiofile.ref == 0) { audiofiles.erase(it); } } drumgizmo-0.9.18.1/src/midimapparser.h0000644000076400007640000000246413347502615014527 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapparser.h * * Mon Aug 8 16:55:30 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "midimapper.h" class MidiMapParser { public: //! Returns false on error, true on success. bool parseFile(const std::string& filename); midimap_t midimap; }; drumgizmo-0.9.18.1/src/audiocacheidmanager.cc0000644000076400007640000000575313153056417015770 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheidmanager.cc * * Tue Jan 5 10:59:37 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocacheidmanager.h" #include #include AudioCacheIDManager::~AudioCacheIDManager() { assert(available_ids.size() == id2cache.size()); // All ids should be released. } void AudioCacheIDManager::init(unsigned int capacity) { std::lock_guard guard(mutex); id2cache.resize(capacity); available_ids.resize(capacity); for(size_t i = 0; i < capacity; ++i) { available_ids[i] = i; } } cache_t& AudioCacheIDManager::getCache(cacheid_t id) { std::lock_guard guard(mutex); assert(id != CACHE_NOID); assert(id != CACHE_DUMMYID); assert(id >= 0); assert(id < (int)id2cache.size()); assert(id2cache[id].id == id); return id2cache[id]; } cacheid_t AudioCacheIDManager::registerID(const cache_t& cache) { std::lock_guard guard(mutex); cacheid_t id = CACHE_NOID; if(available_ids.empty()) { return CACHE_DUMMYID; } else { id = available_ids.back(); available_ids.pop_back(); } assert(id2cache[id].id == CACHE_NOID); // Make sure it is not already in use id2cache[id] = cache; id2cache[id].id = id; return id; } void AudioCacheIDManager::releaseID(cacheid_t id) { std::lock_guard guard(mutex); assert(id2cache[id].id != CACHE_NOID); // Test if it wasn't already released. id2cache[id].id = CACHE_NOID; available_ids.push_back(id); } void AudioCacheIDManager::disableActive() { // Run through all active cache_ts and disable them. for(auto& cache : id2cache) { if(cache.id != CACHE_NOID) { // Force use of nodata in all of the rest of the next() calls: cache.localpos = std::numeric_limits::max(); cache.ready = false; } } } std::vector AudioCacheIDManager::getActiveIDs() { std::vector active_ids; for(auto& cache : id2cache) { if(cache.id != CACHE_NOID) { active_ids.push_back(cache.id); } } return active_ids; } drumgizmo-0.9.18.1/src/audiofile.cc0000644000076400007640000001034013551153107013754 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiofile.cc * * Tue Jul 22 17:14:11 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * Multichannel feature by John Hammen copyright 2014 */ #include "audiofile.h" #include #include #include #include #include "channel.h" AudioFile::AudioFile(const std::string& filename, std::size_t filechannel, InstrumentChannel* instrument_channel) : filename(filename) , filechannel(filechannel) , magic{this} , instrument_channel(instrument_channel) { } AudioFile::~AudioFile() { magic = nullptr; unload(); } bool AudioFile::isValid() const { //assert(this == magic); return this == magic; } void AudioFile::unload() { // Make sure we don't unload the object while loading it... std::lock_guard guard(mutex); is_loaded = false; preloadedsize = 0; size = 0; delete[] data; data = nullptr; } #define BUFFER_SIZE 4096 void AudioFile::load(LogFunction logger, std::size_t sample_limit) { // Make sure we don't unload the object while loading it... std::lock_guard guard(mutex); if(this->data) // already loaded { return; } SF_INFO sf_info{}; SNDFILE *fh = sf_open(filename.c_str(), SFM_READ, &sf_info); if(!fh) { ERR(audiofile,"SNDFILE Error (%s): %s\n", filename.c_str(), sf_strerror(fh)); if(logger) { logger(LogLevel::Warning, "Could not load '" + filename + "': " + sf_strerror(fh)); } return; } if(sf_info.channels < 1) { // This should never happen but lets check just in case. if(logger) { logger(LogLevel::Warning, "Could not load '" + filename + "': no audio channels available."); } return; } std::size_t size = sf_info.frames; std::size_t preloadedsize = sf_info.frames; if(preloadedsize > sample_limit) { preloadedsize = sample_limit; } sample_t* data = new sample_t[preloadedsize]; if(sf_info.channels == 1) { preloadedsize = sf_read_float(fh, data, preloadedsize); } else { // check filechannel exists if(filechannel >= (std::size_t)sf_info.channels) { if(logger) { logger(LogLevel::Warning, "Audio file '" + filename + "' does no have " + std::to_string(filechannel + 1) + " channels."); } filechannel = sf_info.channels - 1; } sample_t buffer[BUFFER_SIZE]; std::size_t frame_count = BUFFER_SIZE / sf_info.channels; std::size_t total_frames_read = 0; int frames_read; do { frames_read = sf_readf_float(fh, buffer, frame_count); for(int i = 0; (i < frames_read) && (total_frames_read < sample_limit); ++i) { data[total_frames_read++] = buffer[i * sf_info.channels + filechannel]; } } while( (frames_read > 0) && (total_frames_read < preloadedsize) && (total_frames_read < sample_limit) ); // set data size to total bytes read preloadedsize = total_frames_read; } sf_close(fh); this->data = data; this->size = size; this->preloadedsize = preloadedsize; is_loaded = true; } bool AudioFile::isLoaded() const { return is_loaded; } main_state_t AudioFile::mainState() const { if(instrument_channel == nullptr) { DEBUG(audiofile, "no instrument_channel!"); return main_state_t::unset; } return instrument_channel->main; } drumgizmo-0.9.18.1/src/atomic.h0000644000076400007640000000714113331526614013141 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * atomic.h * * Wed Mar 23 09:15:05 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include template class Atomic; // use std::atomic if possible template class Atomic::value>::type> : public std::atomic { public: // inherit methods using std::atomic::atomic; using std::atomic::operator=; }; // else work around it using a mutex template class Atomic::value>::type> { public: using self_type = Atomic::value>::type>; Atomic() : data{} , mutex{} { } Atomic(T data) : data{std::move(data)} , mutex{} { } Atomic(self_type const & other) : data{} , mutex{} { std::lock_guard lock{other.mutex}; data = other.data; } Atomic(self_type&& other) : data{} , mutex{} { std::lock_guard lock{other.mutex}; std::swap(data, other.data); } T operator=(T data) { std::lock_guard lock{mutex}; this->data = std::move(data); return this->data; } operator T() const { return load(); } bool is_lock_free() const { return false; } void store(T data) { std::lock_guard lock{mutex}; this->data = std::move(data); } T load() const { std::lock_guard lock{mutex}; return data; } T exchange(T data){ std::lock_guard lock{mutex}; std::swap(data, this->data); return data; } bool operator==(const T& other) const { std::lock_guard lock{mutex}; return other == data; } bool operator!=(const T& other) const { std::lock_guard lock{mutex}; return !(other == data); } bool operator==(const Atomic& other) const { std::lock_guard lock{mutex}; return other.load() == data; } bool operator!=(const Atomic& other) const { std::lock_guard lock{mutex}; return !(other.load() == data); } private: T data; mutable std::mutex mutex; }; //! Getter utility class. template class SettingRef { public: SettingRef(Atomic& value) : value(value) { // string isn't lock free either assert((std::is_same::value || value.is_lock_free())); } bool hasChanged() { T tmp = cache; cache.exchange(value); if(firstAccess) { firstAccess = false; return true; } return cache != tmp; } T getValue() const { return cache; } private: bool firstAccess{true}; Atomic& value; Atomic cache; }; drumgizmo-0.9.18.1/src/sample_selection.h0000644000076400007640000000272713511117027015212 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * sample_selection.h * * Mon Mar 4 23:58:12 CET 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "sample.h" class PowerList; class Random; struct Settings; class SampleSelection { public: SampleSelection(Settings& settings, Random& rand, const PowerList& powerlist); void finalise(); const Sample* get(level_t level, std::size_t pos); private: Settings& settings; Random& rand; const PowerList& powerlist; std::vector last; }; drumgizmo-0.9.18.1/src/powerlist.cc0000644000076400007640000001075513551153107014055 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * powerlist.cc * * Sun Jul 28 19:45:48 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "powerlist.h" #include #include #include #include // M_PI is not defined in math.h if __STRICT_ANSI__ is defined. #ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ #endif #include #include "random.h" #include "settings.h" namespace { // Enable to calculate power on old samples without power attribute //#define AUTO_CALCULATE_POWER unsigned int const LOAD_SIZE = 500u; } // end anonymous namespace PowerList::PowerList() { power_max = 0; power_min = 100000000; } void PowerList::add(Sample* sample) { PowerListItem item; item.power = -1; item.sample = sample; samples.push_back(item); } // FIXME: remove all? const Channel* PowerList::getMasterChannel() { std::map count; for (auto& item: samples) { Sample* sample{item.sample}; const Channel* max_channel{nullptr}; sample_t max_val{0}; for (auto& pair: sample->audiofiles) { const Channel* c = pair.first; AudioFile* af = pair.second; af->load(nullptr, LOAD_SIZE); float silence{0.f}; std::size_t silence_length{4u}; for (auto s = af->size; s > 0 && s > af->size - silence_length; --s) { silence += af->data[s]; } silence /= silence_length; for(auto s = 0u; s < af->size; ++s) { float val = af->data[s] * af->data[s] * (1.0 / (float)(s + 1)); if(val > max_val) { max_val = val; max_channel = c; break; } } af->unload(); } if(max_channel) { if(count.find(max_channel) == count.end()) { count[max_channel] = 0; } ++count[max_channel]; } } const Channel* master{nullptr}; int max_count{-1}; for (auto& pair: count) { if (pair.second > max_count && pair.first->name.find("Alesis") == 0u) { master = pair.first; max_count = pair.second; } } return master; } // FIXME: clean up significantly! void PowerList::finalise() { #ifdef AUTO_CALCULATE_POWER const Channel* master_channel = getMasterChannel(); if(master_channel == nullptr) { ERR(rand, "No master channel found!\n"); return; // This should not happen... } DEBUG(rand, "Master channel: %s\n", master_channel->name.c_str()); #endif /*AUTO_CALCULATE_POWER*/ for (auto& item: samples) { Sample* sample = item.sample; #ifdef AUTO_CALCULATE_POWER DEBUG(rand, "Sample: %s\n", sample->name.c_str()); AudioFile* master{nullptr}; for (auto& af: sample->audiofiles) { if (af.first->name == master_channel->name) { master = af.second; break; } } if(master == nullptr) { continue; } master->load(); #endif /*AUTO_CALCULATE_POWER*/ #ifdef AUTO_CALCULATE_POWER if(sample->power == -1) { // Power not defined. Calculate it! DEBUG(powerlist, "Calculating power\n"); float power{0.f}; for(auto s = 0u; s < LOAD_SIZE && s < master->size; ++s) { power += master->data[s] * master->data[s]; } power = sqrt(power); sample->power = power; } #endif /*AUTO_CALCULATE_POWER*/ item.power = sample->power; if(item.power > power_max) { power_max = item.power; } if(item.power < power_min) { power_min = item.power; } DEBUG(rand, " - power: %f\n", item.power); } std::sort(samples.begin(), samples.end()); } const PowerListItems& PowerList::getPowerListItems() const { return samples; } float PowerList::getMaxPower() const { return power_max; } float PowerList::getMinPower() const { return power_min; } drumgizmo-0.9.18.1/src/midimapper.cc0000644000076400007640000000330113511117027014136 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapper.cc * * Mon Jul 21 15:24:08 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midimapper.h" int MidiMapper::lookup(int note) { std::lock_guard guard(mutex); auto midimap_it = midimap.find(note); if(midimap_it == midimap.end()) { return -1; } auto instrmap_it = instrmap.find(midimap_it->second); if(instrmap_it == instrmap.end()) { return -1; } return instrmap_it->second; } void MidiMapper::swap(instrmap_t& instrmap, midimap_t& midimap) { std::lock_guard guard(mutex); std::swap(this->instrmap, instrmap); std::swap(this->midimap, midimap); } const midimap_t& MidiMapper::getMap() { return midimap; } drumgizmo-0.9.18.1/src/drumkitloader.cc0000644000076400007640000002243613551153107014672 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitloader.cc * * Thu Jan 17 20:54:14 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkitloader.h" #include #include #include "drumgizmo.h" #include "audioinputenginemidi.h" #include "DGDOM.h" #include "dgxmlparser.h" #include "path.h" #include "domloader.h" #define REFSFILE "refs.conf" DrumKitLoader::DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, Random& rand, AudioCache& audio_cache) : settings(settings) , getter(settings) , kit(kit) , ie(ie) , rand(rand) , audio_cache(audio_cache) { logger = [&](LogLevel level, const std::string& msg) { std::string message; switch(level) { case LogLevel::Info: //message = "[Info]"; //break; return; // Ignore info level messages case LogLevel::Warning: message = "[Warning]"; break; case LogLevel::Error: message = "[Error]"; break; } message += " " + msg + "\n"; std::string status = settings.load_status_text.load(); status += message; settings.load_status_text.store(status); }; } DrumKitLoader::~DrumKitLoader() { assert(!running); } void DrumKitLoader::init() { run(); run_semaphore.wait(); // Wait for the thread to actually start. } void DrumKitLoader::deinit() { if(running) { framesize_semaphore.post(); { std::lock_guard guard(mutex); load_queue.clear(); } running = false; semaphore.post(); wait_stop(); } } bool DrumKitLoader::loadkit(const std::string& file) { settings.drumkit_load_status.store(LoadStatus::Idle); settings.number_of_files_loaded.store(0); if(file == "") { if (getter.reload_counter.getValue() != 0) { settings.drumkit_load_status.store(LoadStatus::Error); // Show a full bar settings.number_of_files.store(1); settings.number_of_files_loaded.store(1); } return false; } DEBUG(drumgizmo, "loadkit(%s)\n", file.c_str()); // Remove all queue AudioFiles from loader before we actually delete them. skip(); // Delete all Channels, Instruments, Samples and AudioFiles. kit.clear(); // Clear metadata from previously loaded drumkit settings.drumkit_name.store(""); settings.drumkit_description.store(""); settings.drumkit_version.store(""); settings.drumkit_samplerate.store(44100); settings.load_status_text.store(""); settings.drumkit_load_status.store(LoadStatus::Loading); // Parse drumkit and instrument xml settings.has_bleed_control.store(false); ConfigFile refs(REFSFILE); auto edited_filename(file); if(refs.load()) { if((file.size() > 1) && (file[0] == '@')) { edited_filename = refs.getValue(file.substr(1)); } } else { WARN(drumkitparser, "Error reading refs.conf"); } DrumkitDOM drumkitdom; std::vector instrumentdoms; std::string path = getPath(edited_filename); bool parseerror = false; bool ret = parseDrumkitFile(edited_filename, drumkitdom, logger); if(!ret) { WARN(drumkitloader, "Drumkit file parser error: '%s'", edited_filename.data()); } parseerror |= !ret; for(const auto& ref : drumkitdom.instruments) { instrumentdoms.emplace_back(); bool ret = parseInstrumentFile(path + "/" + ref.file, instrumentdoms.back(), logger); if(!ret) { WARN(drumkitloader, "Instrument file parser error: '%s'", edited_filename.data()); } parseerror |= !ret; } DOMLoader domloader(settings, rand); ret = domloader.loadDom(path, drumkitdom, instrumentdoms, kit, logger); if(!ret) { WARN(drumkitloader, "DOMLoader error"); } parseerror |= !ret; if(parseerror) { ERR(drumgizmo, "Drumkit parser failed: %s\n", file.c_str()); settings.drumkit_load_status.store(LoadStatus::Error); // Show a full bar settings.number_of_files.store(1); settings.number_of_files_loaded.store(1); return false; } // Check if there is enough free RAM to load the drumkit. //if(!memchecker.enoughFreeMemory(kit)) //{ // printf("WARNING: " // "There doesn't seem to be enough RAM available to load the kit.\n" // "Trying to load it anyway...\n"); //} // Put some information about the kit into the settings settings.drumkit_name = kit.getName(); settings.drumkit_description = kit.getDescription(); settings.drumkit_version = kit.getVersion(); settings.drumkit_samplerate = kit.getSamplerate(); loadKitAudio(kit); DEBUG(loadkit, "loadkit: Success\n"); return true; } void DrumKitLoader::loadKitAudio(const DrumKit& kit) { // std::lock_guard guard(mutex); DEBUG(loader, "Create AudioFile queue from DrumKit\n"); auto cache_limit = settings.disk_cache_upper_limit.load(); auto cache_enable = settings.disk_cache_enable.load(); DEBUG(loader, "cache_enable: %s\n", cache_enable?"true":"false"); auto number_of_files = kit.getNumberOfFiles(); if(cache_enable && number_of_files > 0) { auto cache_limit_per_file = cache_limit / number_of_files; assert(framesize != 0); preload_samples = cache_limit_per_file / sizeof(sample_t); if(preload_samples < 4096) { preload_samples = 4096; } DEBUG(loader, "cache_limit: %lu, number_of_files: %lu," " cache_limit_per_file: %lu, preload_samples: %lu\n", (unsigned long)cache_limit, (unsigned long)number_of_files, (unsigned long)cache_limit_per_file, (unsigned long)preload_samples); } else { preload_samples = std::numeric_limits::max(); } settings.number_of_files_loaded.store(0); // Count total number of files that need loading: settings.number_of_files.store(0); for(const auto& instr_ptr: kit.instruments) { settings.number_of_files.fetch_add(instr_ptr->audiofiles.size()); } // Now actually queue them for loading: for(const auto& instr_ptr: kit.instruments) { for(auto& audiofile: instr_ptr->audiofiles) { load_queue.push_back(audiofile.get()); } } DEBUG(loader, "Queued %d (size: %d) AudioFiles for loading.\n", (int)settings.number_of_files.load(), (int)load_queue.size()); audio_cache.updateChunkSize(kit.channels.size()); semaphore.post(); // Start loader loop. } void DrumKitLoader::skip() { std::lock_guard guard(mutex); load_queue.clear(); } void DrumKitLoader::setFrameSize(std::size_t framesize) { std::lock_guard guard(mutex); this->framesize = framesize; framesize_semaphore.post(); // Signal that the framesize has been set. } void DrumKitLoader::thread_main() { running = true; run_semaphore.post(); // Signal that the thread has been started. framesize_semaphore.wait(); // Wait until the framesize has been set. while(running) { std::size_t size; { std::lock_guard guard(mutex); size = load_queue.size(); } // Only sleep if queue is empty. if(size == 0) { semaphore.wait(std::chrono::milliseconds(10)); } bool newKit = false; if(getter.drumkit_file.hasChanged() || getter.reload_counter.hasChanged()) { loadkit(getter.drumkit_file.getValue()); newKit = true; } if(getter.midimap_file.hasChanged() || newKit) { auto ie_midi = dynamic_cast(&ie); // if there's a midi engine and this is not just the default midimap // name which is set. if(ie_midi && (getter.midimap_file.getValue() != "" || getter.reload_counter.getValue() != 0)) { settings.midimap_load_status.store(LoadStatus::Loading); bool ret = ie_midi->loadMidiMap(getter.midimap_file.getValue(), kit.instruments); if(ret) { settings.midimap_load_status.store(LoadStatus::Done); } else { settings.midimap_load_status.store(LoadStatus::Error); } } } std::string filename; { std::lock_guard guard(mutex); if(load_queue.size() == 0) { continue; } AudioFile *audiofile = load_queue.front(); load_queue.pop_front(); filename = audiofile->filename; try { audiofile->load(logger, preload_samples); } catch(std::bad_alloc&) { settings.drumkit_load_status.store(LoadStatus::Error); load_queue.clear(); } } settings.number_of_files_loaded.fetch_add(1); if(settings.number_of_files.load() == settings.number_of_files_loaded.load()) { settings.drumkit_load_status.store(LoadStatus::Done); } } DEBUG(loader, "Loader thread finished."); } drumgizmo-0.9.18.1/src/sem.h0000644000076400007640000000276513515375735012472 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sem.h * * Sat Oct 8 17:44:13 CEST 2005 * Copyright 2005 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include struct semaphore_private_t; class Semaphore { public: Semaphore(std::size_t initial_count = 0); ~Semaphore(); void post(); //! Lock semaphore with timeout. //! \returns true if the semaphore was locked, false on timeout. bool wait(const std::chrono::milliseconds& timeout); void wait(); private: struct semaphore_private_t *prv{nullptr}; }; drumgizmo-0.9.18.1/src/configfile.h0000644000076400007640000000324413153056417013773 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configfile.h * * Thu May 14 14:51:38 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include class ConfigFile { public: ConfigFile(std::string const& filename); virtual ~ConfigFile(); virtual bool load(); virtual bool save(); virtual std::string getValue(const std::string& key) const; virtual void setValue(const std::string& key, const std::string& value); protected: std::map values; std::string filename; virtual bool open(std::string mode); void close(); std::string readLine(); bool parseLine(const std::string& line); FILE* fp; }; drumgizmo-0.9.18.1/src/inputprocessor.cc0000644000076400007640000001740413551153107015122 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputprocessor.cc * * Sat Apr 23 20:39:30 CEST 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "inputprocessor.h" #include #include #include "instrument.h" #include "staminafilter.h" #include "latencyfilter.h" #include "velocityfilter.h" #include "cpp11fix.h" InputProcessor::InputProcessor(Settings& settings, DrumKit& kit, std::list* activeevents, Random& random) : kit(kit) , activeevents(activeevents) , is_stopping(false) , settings(settings) { // Build filter list filters.emplace_back(std::make_unique(settings)); filters.emplace_back(std::make_unique(settings, random)); filters.emplace_back(std::make_unique(settings, random)); } bool InputProcessor::process(std::vector& events, std::size_t pos, double resample_ratio) { for(auto& event: events) { if(event.type == EventType::OnSet) { if(!processOnset(event, pos, resample_ratio)) { continue; } } if(event.type == EventType::Choke) { if(!processChoke(event, pos, resample_ratio)) { continue; } } if(!processStop(event)) { return false; } } return true; } std::size_t InputProcessor::getLatency() const { std::size_t latency = 0; for(const auto& filter : filters) { latency += filter->getLatency(); } return latency; } bool InputProcessor::processOnset(event_t& event, std::size_t pos, double resample_ratio) { if(!kit.isValid()) { return false; } std::size_t instrument_id = event.instrument; Instrument* instr = nullptr; if(instrument_id < kit.instruments.size()) { instr = kit.instruments[instrument_id].get(); } if(instr == nullptr || !instr->isValid()) { ERR(inputprocessor, "Missing Instrument %d.\n", (int)instrument_id); return false; } auto const original_level = event.velocity; for(auto& filter : filters) { // This line might change the 'event' variable bool keep = filter->filter(event, event.offset + pos); if(!keep) { return false; // Skip event completely } } if(instr->getGroup() != "") { // Add event to ramp down all existing events with the same groupname. for(const auto& ch : kit.channels) { for(auto active_event : activeevents[ch.num]) { if(active_event->getType() == Event::sample) { auto& event_sample = *static_cast(active_event); if(event_sample.group == instr->getGroup() && event_sample.instrument_id != instrument_id && event_sample.rampdown_count == -1) // Only if not already ramping. { // Fixed group rampdown time of 68ms, independent of samplerate std::size_t ramp_length = (68./1000.)*settings.samplerate.load(); event_sample.rampdown_count = ramp_length; event_sample.rampdown_offset = event.offset; event_sample.ramp_length = ramp_length; } } } } } for(const auto& choke : instr->getChokes()) { // Add event to ramp down all existing events with the same groupname. for(const auto& ch : kit.channels) { for(auto active_event : activeevents[ch.num]) { if(active_event->getType() == Event::sample) { auto& event_sample = *static_cast(active_event); if(choke.instrument_id == event_sample.instrument_id && event_sample.rampdown_count == -1) // Only if not already ramping. { // Choketime is in ms std::size_t ramp_length = (choke.choketime / 1000.0) * settings.samplerate.load(); event_sample.rampdown_count = ramp_length; event_sample.rampdown_offset = event.offset; event_sample.ramp_length = ramp_length; } } } } } auto const power_max = instr->getMaxPower(); auto const power_min = instr->getMinPower(); float const power_span = power_max - power_min; float const instrument_level = power_min + event.velocity*power_span; const auto sample = instr->sample(instrument_level, event.offset + pos); if(sample == nullptr) { ERR(inputprocessor, "Missing Sample.\n"); return false; } auto const selected_level = (sample->getPower() - power_min)/power_span; settings.velocity_modifier_current.store(selected_level/original_level); for(Channel& ch: kit.channels) { const auto af = sample->getAudioFile(ch); if(af == nullptr || !af->isValid()) { //DEBUG(inputprocessor, "Missing AudioFile.\n"); } else { //DEBUG(inputprocessor, "Adding event %d.\n", event.offset); auto evt = new EventSample(ch.num, 1.0, af, instr->getGroup(), instrument_id); evt->offset = (event.offset + pos) * resample_ratio; if(settings.normalized_samples.load() && sample->getNormalized()) { evt->scale *= event.velocity; } activeevents[ch.num].push_back(evt); } } return true; } bool InputProcessor::processChoke(event_t& event, std::size_t pos, double resample_ratio) { if(!kit.isValid()) { return false; } std::size_t instrument_id = event.instrument; Instrument* instr = nullptr; if(instrument_id < kit.instruments.size()) { instr = kit.instruments[instrument_id].get(); } if(instr == nullptr || !instr->isValid()) { ERR(inputprocessor, "Missing Instrument %d.\n", (int)instrument_id); return false; } for(auto& filter : filters) { // This line might change the 'event' variable bool keep = filter->filter(event, event.offset + pos); if(!keep) { return false; // Skip event completely } } // Add event to ramp down all existing events with the same groupname. for(const auto& ch : kit.channels) { for(auto active_event : activeevents[ch.num]) { if(active_event->getType() == Event::sample) { auto& event_sample = *static_cast(active_event); if(event_sample.instrument_id != instrument_id && event_sample.rampdown_count == -1) // Only if not already ramping. { // Fixed group rampdown time of 68ms, independent of samplerate std::size_t ramp_length = (68./1000.)*settings.samplerate.load(); event_sample.rampdown_count = ramp_length; event_sample.rampdown_offset = event.offset; event_sample.ramp_length = ramp_length; } } } } return true; } bool InputProcessor::processStop(event_t& event) { if(event.type == EventType::Stop) { is_stopping = true; } if(is_stopping) { // Count the number of active events. int num_active_events = 0; for(auto& ch: kit.channels) { num_active_events += activeevents[ch.num].size(); } if(num_active_events == 0) { // No more active events - now we can stop the engine. return false; } } return true; } drumgizmo-0.9.18.1/src/DGDOM.h0000644000076400007640000000545213551153106012516 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * DGDOM.h * * Thu Jun 7 11:07:17 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "channel.h" // v1.0 velocity groups struct SampleRefDOM { double probability; std::string name; }; struct VelocityDOM { double upper; double lower; std::vector samplerefs; }; // Instrument DOM: struct AudioFileDOM { std::string instrument_channel; std::string file; std::size_t filechannel; }; struct SampleDOM { std::string name; double power; // >= v2.0 only bool normalized; // >= v2.0 only std::vector audiofiles; }; struct InstrumentChannelDOM { std::string name; main_state_t main; }; struct InstrumentDOM { std::string name; std::string version; std::string description; std::vector samples; std::vector instrument_channels; // v1.0 only std::vector velocities; }; // Drumkit DOM: struct ChannelDOM { std::string name; }; struct ChannelMapDOM { std::string in; std::string out; main_state_t main; }; struct ChokeDOM { std::string instrument; double choketime; }; struct InstrumentRefDOM { std::string name; std::string file; // Probably shouldn't be there std::string group; std::vector channel_map; std::vector chokes; }; struct ClickMapDOM { std::string instrument; std::string colour; }; struct MetadataDOM { std::string version; std::string title; std::string description; std::string license; std::string notes; std::string author; std::string email; std::string website; std::string logo; std::string image; std::string image_map; std::vector clickmaps; }; struct DrumkitDOM { std::string version; double samplerate; MetadataDOM metadata; std::vector instruments; std::vector channels; }; drumgizmo-0.9.18.1/src/thread.cc0000644000076400007640000000336613331526614013277 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * thread.cc * * Tue Jan 24 08:11:37 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "thread.h" #include Thread::Thread() {} Thread::~Thread() {} void Thread::run() { DEBUG(thread, "Thread::run()\n"); #if DG_PLATFORM == DG_PLATFORM_WINDOWS tid = CreateThread(NULL, 0, thread_run, this, 0, NULL); #else pthread_create(&tid, NULL, thread_run, this); #endif } void Thread::wait_stop() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS WaitForSingleObject(tid, INFINITE); #else pthread_join(tid, NULL); #endif } #if DG_PLATFORM == DG_PLATFORM_WINDOWS DWORD WINAPI #else void* #endif Thread::thread_run(void *data) { DEBUG(thread, "Thread run\n"); Thread *t = (Thread*)data; t->thread_main(); return 0; } drumgizmo-0.9.18.1/src/powerlist.h0000644000076400007640000000343113511117027013705 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * powerlist.h * * Sun Jul 28 19:45:47 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "sample.h" struct PowerListItem { Sample* sample; float power; bool operator<(const PowerListItem& other) const { return power < other.power; } bool operator<(level_t power) const { return this->power < power; } }; using PowerListItems = std::vector; class PowerList { public: PowerList(); void add(Sample* s); void finalise(); ///< Call this when no more samples will be added. const PowerListItems& getPowerListItems() const; float getMaxPower() const; float getMinPower() const; private: PowerListItems samples; float power_max; float power_min; const Channel* getMasterChannel(); }; drumgizmo-0.9.18.1/src/staminafilter.cc0000644000076400007640000000423713551153107014665 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * staminafilter.cc * * Sat Jun 11 08:49:36 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "staminafilter.h" #include "settings.h" StaminaFilter::StaminaFilter(Settings& settings) : settings(settings) { } bool StaminaFilter::filter(event_t& event, size_t pos) { // Read out all values from settings. auto samplerate = settings.samplerate.load(); auto velocity_modifier_falloff = settings.velocity_modifier_falloff.load(); auto enable_velocity_modifier = settings.enable_velocity_modifier.load(); auto velocity_modifier_weight = settings.velocity_modifier_weight.load(); auto& pair = modifiers[event.instrument]; if(modifiers.find(event.instrument) == modifiers.end()) { // On first lookup make sure we have sane values. pair.first = 1.0f; pair.second = 0; } auto& mod = pair.first; auto& lastpos = pair.second; if(enable_velocity_modifier) { mod += (pos - lastpos) / (samplerate * velocity_modifier_falloff); mod = std::min(mod, 1.0f); } else { mod = 1.0f; lastpos = 0; } event.velocity *= mod; if(enable_velocity_modifier) { lastpos = pos; mod *= velocity_modifier_weight; } return true; } drumgizmo-0.9.18.1/src/audioinputenginemidi.h0000644000076400007640000000416213511117026016070 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputenginemidi.h * * Mon Apr 1 20:13:24 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "audioinputengine.h" #include "midimapper.h" #include "instrument.h" #include "configfile.h" class AudioInputEngineMidi : public AudioInputEngine { public: AudioInputEngineMidi(); virtual ~AudioInputEngineMidi() = default; virtual bool init(const Instruments &instruments) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre() = 0; virtual void run(size_t pos, size_t len, std::vector& events) = 0; virtual void post() = 0; virtual bool loadMidiMap(const std::string& file, const Instruments& i); std::string getMidimapFile() const; bool isValid() const; void processNote(const std::uint8_t* note_data, std::size_t note_data_size, std::size_t offset, std::vector& events); protected: MidiMapper mmap; private: std::string midimap; bool is_valid; ConfigFile refs; }; drumgizmo-0.9.18.1/src/syncedsettings.h0000644000076400007640000000445713153056420014735 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * syncedsettings.h * * Thu Mar 31 09:23:27 CEST 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include template class Group; template class Accessor { private: std::lock_guard lock; public: Accessor(Group& parent) : lock{parent.mutex} , data(parent.data) { } T& data; }; template class Group { private: friend class Accessor; mutable std::mutex mutex; T data; public: Group() : mutex{} , data{} { } Group(Group const& other) : mutex{} , data{} { std::lock_guard lock{other.mutex}; data = other.data; } Group(Group&& other) : mutex{} , data{} { std::lock_guard lock{other.mutex}; std::swap(data, other.data); } Group& operator=(const Group& other) { if (*this != &other) { std::lock_guard lock{mutex}; std::lock_guard lock2{other.mutex}; data = other.data; } return *this; } Group& operator=(Group&& other) { if (*this != &other) { std::lock_guard lock{mutex}; std::lock_guard lock2{other.mutex}; std::swap(data, other.data); } return *this; } operator T() const { std::lock_guard lock{mutex}; return data; } }; drumgizmo-0.9.18.1/src/instrument.h0000644000076400007640000000555213547415724014111 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrument.h * * Tue Jul 22 17:14:19 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "rangemap.h" // for v1.0 kits #include "powerlist.h" #include "sample_selection.h" #include "sample.h" #include "versionstr.h" #include "random.h" #include "settings.h" struct Choke { std::size_t instrument_id; double choketime; }; class Instrument { public: Instrument(Settings& settings, Random& rand); ~Instrument(); const Sample* sample(level_t level, size_t pos); std::size_t getID() const; const std::string& getName() const; const std::string& getDescription() const; const std::string& getGroup() const; void setGroup(const std::string& group); // std::map channelmap; std::vector> audiofiles; bool isValid() const; //! Get the number of audio files (as in single channel) in this instrument. std::size_t getNumberOfFiles() const; float getMaxPower() const; float getMinPower() const; const std::vector& getChokes(); private: // For unit-tests: friend class DOMLoaderTest; // For parser: friend class DOMLoader; void* magic; std::size_t id; std::string _group; std::string _name; std::string _description; VersionStr version; RangeMap samples; void addSample(level_t a, level_t b, const Sample* s); void finalise(); ///< Signal instrument that no more samples will be added. std::vector samplelist; std::deque instrument_channels; size_t lastpos; float mod; Settings& settings; Random& rand; PowerList powerlist; std::vector chokes; SampleSelection sample_selection; }; // typedef std::map< std::string, Instrument > Instruments; using Instruments = std::vector>; drumgizmo-0.9.18.1/src/versionstr.cc0000644000076400007640000000713013340266455014243 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * versionstr.cc * * Wed Jul 22 11:41:32 CEST 2009 * Copyright 2009 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "versionstr.h" #include #include #include #include // Workaround - major, minor and patch are defined as macros when using // _GNU_SOURCES #ifdef major #undef major #endif #ifdef minor #undef minor #endif #ifdef patch #undef patch #endif VersionStr::VersionStr(const std::string& v) { version = {{0, 0, 0}}; set(v); } VersionStr::VersionStr(size_t major, size_t minor, size_t patch) { version[0] = major; version[1] = minor; version[2] = patch; } void VersionStr::set(const std::string& v) { std::string num; size_t idx = 0; for(size_t i = 0; i < v.length(); i++) { if(v[i] == '.') { if(idx > 2) { version = {{0, 0, 0}}; ERR(version, "Version string is too long."); return; } version[idx] = atoi(num.c_str()); idx++; num = ""; } else if(v[i] >= '0' && v[i] <= '9') { num.append(1, v[i]); } else { version = {{0, 0, 0}}; ERR(version, "Version string contains illegal character."); return; } } if(idx > 2) { version = {{0, 0, 0}}; ERR(version, "Version string is too long."); return; } version[idx] = atoi(num.c_str()); } VersionStr::operator std::string() const { std::string v; char buf[64]; if(patch()) { sprintf(buf, "%d.%d.%d", (int)major(), (int)minor(), (int)patch()); } else { sprintf(buf, "%d.%d", (int)major(), (int)minor()); } v = buf; return v; } void VersionStr::operator=(const std::string& v) { set(v); } // return a - b simplified as -1, 0 or 1 static int vdiff(const VersionStr& a, const VersionStr& b) { if(a.major() < b.major()) { return -1; } if(a.major() > b.major()) { return 1; } if(a.minor() < b.minor()) { return -1; } if(a.minor() > b.minor()) { return 1; } if(a.patch() < b.patch()) { return -1; } if(a.patch() > b.patch()) { return 1; } return 0; } bool VersionStr::operator<(const VersionStr& other) const { return vdiff(*this, other) == -1; } bool VersionStr::operator>(const VersionStr& other) const { return vdiff(*this, other) == 1; } bool VersionStr::operator==(const VersionStr& other) const { return vdiff(*this, other) == 0; } bool VersionStr::operator<=(const VersionStr& other) const { return vdiff(*this, other) != 1; } bool VersionStr::operator>=(const VersionStr& other) const { return vdiff(*this, other) != -1; } size_t VersionStr::major() const { return version[0]; } size_t VersionStr::minor() const { return version[1]; } size_t VersionStr::patch() const { return version[2]; } drumgizmo-0.9.18.1/src/bytesizeparser.cc0000644000076400007640000000425013340266454015077 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bytesize_parser.cc * * Sat Mar 4 18:00:12 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "bytesizeparser.h" #include #include static std::size_t suffixToSize(const char& suffix) { int size = 1; switch(suffix) { case 'k': size <<= 10; break; case 'M': size <<= 20; break; case 'G': size <<= 30; break; default: size = 0; break; } return size; } std::size_t byteSizeParser(const std::string& argument) { std::string::size_type suffix_index; std::size_t size; std::string suffix; bool error = false; if(argument.find('-') != std::string::npos) { error = true; } try { size = std::stoi(argument, &suffix_index); } catch(std::invalid_argument&) { std::cerr << "Invalid argument for diskstreamsize" << std::endl; error = true; } catch(std::out_of_range&) { std::cerr << "Number too big. Try using bigger suffix for diskstreamsize" << std::endl; error = true; } if(!error) { suffix = argument.substr(suffix_index); if (suffix.length() > 1) { error = true; } } if(!error && suffix.size() > 0) { std::size_t suffix_size = suffixToSize(suffix[0]); size *= suffix_size; } if(error) { return 0; } return size; } drumgizmo-0.9.18.1/src/random.h0000644000076400007640000000416713331526614013152 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * random.h * * Wed Mar 23 19:17:24 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class Random { public: Random(); Random(unsigned int seed); void setSeed(unsigned int seed); //! \return random int in range [, ]. int intInRange(int lower_bound, int upper_bound); //! \return random float in range [, ]. float floatInRange(float lower_bound, float upper_bound); //! \return random float drawn from a normal distribution with mean //! and standard deviation . float normalDistribution(float mean, float stddev); //! \return uniformly at random chosen element from . template T& choose(std::vector& vec); private: // The std::default_random_engine of the gcc libstdc++ library is // minstd_rand0, so make sure we use that all platforms regardless of which // stdlib we link with. std::minstd_rand0 generator; float generateFloat(); }; template T& Random::choose(std::vector& vec) { return vec[intInRange(0, vec.size() - 1)]; } drumgizmo-0.9.18.1/src/random.cc0000644000076400007640000000611113331526614013277 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * random.cc * * Wed Mar 23 19:17:24 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "random.h" #include #include #include Random::Random() : Random(std::chrono::system_clock::now().time_since_epoch().count()) { } Random::Random(unsigned int seed) { setSeed(seed); } void Random::setSeed(unsigned int seed) { generator.seed(seed); } int Random::intInRange(int lower_bound, int upper_bound) { auto generate = [this]() { return (int)generator() - generator.min(); }; const int in_range = generator.max() - generator.min(); const int out_range = upper_bound - lower_bound; int rand; // scale in_range DOWN to out_range. // (see: http://www.azillionmonkeys.com/qed/random.html) if (in_range > out_range) { const int rand_inv_range = in_range / (out_range + 1); do { rand = generate(); } while (rand >= (out_range + 1) * rand_inv_range); rand = lower_bound + rand/rand_inv_range; } // scale in_range UP to out_range. // (see: http://stackoverflow.com/a/30738381) else if (in_range < out_range) { int scale = out_range / (in_range + 1); do { rand = generate() + intInRange(0, scale) * (in_range + 1); } while (rand < lower_bound && rand > upper_bound); rand = lower_bound + rand; } // naive case else { rand = lower_bound + generate(); } return rand; } float Random::floatInRange(float lower_bound, float upper_bound) { return generateFloat() * (upper_bound - lower_bound) + lower_bound; } // For details regarding the algorithm see: // https://en.wikipedia.org/wiki/Marsaglia_polar_method float Random::normalDistribution(float mean, float stddev) { float u, v, s; do { u = 2.0*generateFloat() - 1.0; v = 2.0*generateFloat() - 1.0; s = (u * u) + (v * v); } while (s > 1.0 || s == 0.0); s = std::sqrt(-2*std::log(s) / s); return stddev * (v * s) + mean; } float Random::generateFloat() { return std::generate_canonical::digits, decltype(generator)>(generator); } drumgizmo-0.9.18.1/src/audioinputengine.h0000644000076400007640000000336713153056417015243 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputengine.h * * Sun Feb 27 11:33:19 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "instrument.h" class AudioInputEngine { public: virtual ~AudioInputEngine() = default; virtual bool init(const Instruments& instruments) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre() = 0; virtual void run(size_t pos, size_t len, std::vector& events) = 0; virtual void post() = 0; //! Reimplement to receive sample rate changes. virtual void setSampleRate(double sample_rate) {} virtual bool isFreewheeling() const = 0; }; drumgizmo-0.9.18.1/src/dgxmlparser.cc0000644000076400007640000003041413551153107014347 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dgxmlparser.cc * * Fri Jun 8 22:04:31 CEST 2018 * Copyright 2018 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "dgxmlparser.h" #include #include #include #include "nolocale.h" static int getLineNumberFromOffset(const std::string& filename, ptrdiff_t offset) { FILE* fp = fopen(filename.data(), "rt"); if(!fp) { return 0; } int lineno{1}; char c = 0; while((c = fgetc(fp)) != EOF && offset--) { lineno += c == '\n' ? 1 : 0; } fclose(fp); return lineno; } bool probeDrumkitFile(const std::string& filename, LogFunction logger) { DrumkitDOM d; return parseDrumkitFile(filename, d, logger); } bool probeInstrumentFile(const std::string& filename, LogFunction logger) { InstrumentDOM d; return parseInstrumentFile(filename, d, logger); } static bool assign(double& dest, const std::string& val) { //TODO: figure out how to handle error value 0.0 dest = atof_nol(val.c_str()); return true; } static bool assign(std::string& dest, const std::string& val) { dest = val; return true; } static bool assign(std::size_t& dest, const std::string& val) { int tmp = atoi(val.c_str()); if(tmp < 0) return false; dest = tmp; return std::to_string(dest) == val; } static bool assign(main_state_t& dest, const std::string& val) { if(val != "true" && val != "false") { return false; } dest = (val == "true") ? main_state_t::is_main : main_state_t::is_not_main; return true; } static bool assign(bool& dest, const std::string& val) { if(val == "true" || val == "false") { dest = val == "true"; return true; } return false; } template static bool attrcpy(T& dest, const pugi::xml_node& src, const std::string& attr, LogFunction logger, const std::string& filename, bool opt = false) { const char* val = src.attribute(attr.c_str()).as_string(nullptr); if(!val) { if(!opt) { ERR(dgxmlparser, "Attribute %s not found in %s, offset %d\n", attr.data(), src.path().data(), (int)src.offset_debug()); if(logger) { auto lineno = getLineNumberFromOffset(filename, src.offset_debug()); logger(LogLevel::Error, "Missing attribute '" + attr + "' at line " + std::to_string(lineno)); } } return opt; } if(!assign(dest, std::string(val))) { ERR(dgxmlparser, "Attribute %s could not be assigned, offset %d\n", attr.data(), (int)src.offset_debug()); if(logger) { auto lineno = getLineNumberFromOffset(filename, src.offset_debug()); logger(LogLevel::Error, "Attribute '" + attr + "' could not be assigned at line " + std::to_string(lineno)); } return false; } return true; } template static bool nodecpy(T& dest, const pugi::xml_node& src, const std::string& node, LogFunction logger, const std::string& filename, bool opt = false) { auto val = src.child(node.c_str()); if(val == pugi::xml_node()) { if(!opt) { ERR(dgxmlparser, "Node %s not found in %s, offset %d\n", node.data(), filename.data(), (int)src.offset_debug()); if(logger) { auto lineno = getLineNumberFromOffset(filename, src.offset_debug()); logger(LogLevel::Error, "Node '" + node + "' not found at line " + std::to_string(lineno)); } } return opt; } if(!assign(dest, val.text().as_string())) { ERR(dgxmlparser, "Attribute %s could not be assigned, offset %d\n", node.data(), (int)src.offset_debug()); if(logger) { auto lineno = getLineNumberFromOffset(filename, src.offset_debug()); logger(LogLevel::Error, "Node '" + node + "' could not be assigned at line " + std::to_string(lineno)); } return false; } return true; } bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom, LogFunction logger) { bool res = true; if(logger) { logger(LogLevel::Info, "Loading " + filename); } pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(filename.c_str()); res &= !result.status; if(!res) { ERR(dgxmlparser, "XML parse error: '%s' %d", filename.data(), (int) result.offset); if(logger) { auto lineno = getLineNumberFromOffset(filename, result.offset); logger(LogLevel::Error, "XML parse error in '" + filename + "': " + result.description() + " at line " + std::to_string(lineno)); } return false; } pugi::xml_node drumkit = doc.child("drumkit"); dom.version = "1.0"; res &= attrcpy(dom.version, drumkit, "version", logger, filename, true); dom.samplerate = 44100.0; res &= attrcpy(dom.samplerate, drumkit, "samplerate", logger, filename, true); // Use the old name and description attributes on the drumkit node as fallback res &= attrcpy(dom.metadata.title, drumkit, "name", logger, filename, true); res &= attrcpy(dom.metadata.description, drumkit, "description", logger, filename, true); pugi::xml_node metadata = drumkit.child("metadata"); if(metadata != pugi::xml_node()) { auto& meta = dom.metadata; res &= nodecpy(meta.version, metadata, "version", logger, filename, true); res &= nodecpy(meta.title, metadata, "title", logger, filename, true); pugi::xml_node logo = metadata.child("logo"); if(logo != pugi::xml_node()) { res &= attrcpy(meta.logo, logo, "src", logger, filename, true); } res &= nodecpy(meta.description, metadata, "description", logger, filename, true); res &= nodecpy(meta.license, metadata, "license", logger, filename, true); res &= nodecpy(meta.notes, metadata, "notes", logger, filename, true); res &= nodecpy(meta.author, metadata, "author", logger, filename, true); res &= nodecpy(meta.email, metadata, "email", logger, filename, true); res &= nodecpy(meta.website, metadata, "website", logger, filename, true); pugi::xml_node image = metadata.child("image"); if(image != pugi::xml_node()) { res &= attrcpy(meta.image, image, "src", logger, filename, true); res &= attrcpy(meta.image_map, image, "map", logger, filename, true); for(auto clickmap : image.children("clickmap")) { meta.clickmaps.emplace_back(); res &= attrcpy(meta.clickmaps.back().instrument, clickmap, "instrument", logger, filename, true); res &= attrcpy(meta.clickmaps.back().colour, clickmap, "colour", logger, filename, true); } } } pugi::xml_node channels = doc.child("drumkit").child("channels"); for(pugi::xml_node channel: channels.children("channel")) { dom.channels.emplace_back(); res &= attrcpy(dom.channels.back().name, channel, "name", logger, filename); } pugi::xml_node instruments = doc.child("drumkit").child("instruments"); for(pugi::xml_node instrument : instruments.children("instrument")) { dom.instruments.emplace_back(); auto& instrument_ref = dom.instruments.back(); res &= attrcpy(instrument_ref.name, instrument, "name", logger, filename); res &= attrcpy(instrument_ref.file, instrument, "file", logger, filename); res &= attrcpy(instrument_ref.group, instrument, "group", logger, filename, true); for(pugi::xml_node cmap: instrument.children("channelmap")) { instrument_ref.channel_map.emplace_back(); auto& channel_map_ref = instrument_ref.channel_map.back(); res &= attrcpy(channel_map_ref.in, cmap, "in", logger, filename); res &= attrcpy(channel_map_ref.out, cmap, "out", logger, filename); channel_map_ref.main = main_state_t::unset; res &= attrcpy(channel_map_ref.main, cmap, "main", logger, filename, true); } auto num_chokes = std::distance(instrument.children("chokes").begin(), instrument.children("chokes").end()); if(num_chokes > 1) { // error ERR(dgxmlparser, "At most one 'chokes' node allowed pr. instrument."); res = false; } if(num_chokes == 1) { for(pugi::xml_node choke : instrument.child("chokes").children("choke")) { instrument_ref.chokes.emplace_back(); auto& choke_ref = instrument_ref.chokes.back(); res &= attrcpy(choke_ref.instrument, choke, "instrument", logger, filename); choke_ref.choketime = 68; // default to 68 ms res &= attrcpy(choke_ref.choketime, choke, "choketime", logger, filename, true); } } } return res; } bool parseInstrumentFile(const std::string& filename, InstrumentDOM& dom, LogFunction logger) { bool res = true; if(logger) { logger(LogLevel::Info, "Loading " + filename); } pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(filename.data()); res &= !result.status; if(!res) { WARN(dgxmlparser, "XML parse error: '%s'", filename.data()); if(logger) { auto lineno = getLineNumberFromOffset(filename, result.offset); logger(LogLevel::Warning, "XML parse error in '" + filename + "': " + result.description() + " at line " + std::to_string(lineno)); } } //TODO: handle version pugi::xml_node instrument = doc.child("instrument"); res &= attrcpy(dom.name, instrument, "name", logger, filename); dom.version = "1.0"; res &= attrcpy(dom.version, instrument, "version", logger, filename, true); res &= attrcpy(dom.description, instrument, "description", logger, filename, true); pugi::xml_node channels = instrument.child("channels"); for(pugi::xml_node channel : channels.children("channel")) { dom.instrument_channels.emplace_back(); res &= attrcpy(dom.instrument_channels.back().name, channel, "name", logger, filename); dom.instrument_channels.back().main = main_state_t::unset; res &= attrcpy(dom.instrument_channels.back().main, channel, "main", logger, filename, true); } INFO(dgxmlparser, "XML version: %s\n", dom.version.data()); pugi::xml_node samples = instrument.child("samples"); for(pugi::xml_node sample: samples.children("sample")) { dom.samples.emplace_back(); res &= attrcpy(dom.samples.back().name, sample, "name", logger, filename); // Power only part of >= v2.0 instruments. if(dom.version == "1.0") { dom.samples.back().power = 0.0; } else { res &= attrcpy(dom.samples.back().power, sample, "power", logger, filename); dom.samples.back().normalized = false; res &= attrcpy(dom.samples.back().normalized, sample, "normalized", logger, filename, true); } for(pugi::xml_node audiofile: sample.children("audiofile")) { dom.samples.back().audiofiles.emplace_back(); res &= attrcpy(dom.samples.back().audiofiles.back().instrument_channel, audiofile, "channel", logger, filename); res &= attrcpy(dom.samples.back().audiofiles.back().file, audiofile, "file", logger, filename); // Defaults to channel 1 in mono (1-based) dom.samples.back().audiofiles.back().filechannel = 1; res &= attrcpy(dom.samples.back().audiofiles.back().filechannel, audiofile, "filechannel", logger, filename, true); } } // Velocity groups are only part of v1.0 instruments. if(dom.version == "1" || dom.version == "1.0" || dom.version == "1.0.0") { pugi::xml_node velocities = instrument.child("velocities"); for(pugi::xml_node velocity: velocities.children("velocity")) { dom.velocities.emplace_back(); res &= attrcpy(dom.velocities.back().lower, velocity, "lower", logger, filename); res &= attrcpy(dom.velocities.back().upper, velocity, "upper", logger, filename); for(auto sampleref : velocity.children("sampleref")) { dom.velocities.back().samplerefs.emplace_back(); auto& sref = dom.velocities.back().samplerefs.back(); res &= attrcpy(sref.probability, sampleref, "probability", logger, filename); res &= attrcpy(sref.name, sampleref, "name", logger, filename); } } } return res; } drumgizmo-0.9.18.1/src/settings.h0000644000076400007640000003234613551153107013527 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * settings.h * * Tue Mar 22 10:59:46 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "atomic.h" #include "notifier.h" enum class LoadStatus : unsigned int { Idle, Loading, Done, Error }; //! Engine settings struct Settings { Atomic drumkit_file{""}; Atomic drumkit_load_status{LoadStatus::Idle}; Atomic drumkit_name{""}; Atomic drumkit_description{""}; Atomic drumkit_version{""}; Atomic drumkit_samplerate{44100}; //! The maximum amount of memory in bytes that the AudioCache //! is allowed to use for preloading. Default is 1GB. Atomic disk_cache_upper_limit{1024 * 1024 * 1024}; //! The optimal read chunk size from the disk. Atomic disk_cache_chunk_size{1024 * 1024}; Atomic disk_cache_enable{true}; Atomic number_of_underruns{0}; //! Increment this in order to invoke a reload of the current drumkit. Atomic reload_counter{0}; Atomic midimap_file{""}; Atomic midimap_load_status{LoadStatus::Idle}; Atomic enable_velocity_modifier{true}; static float constexpr velocity_modifier_falloff_default = 0.5f; static float constexpr velocity_modifier_weight_default = 0.25f; static float constexpr velocity_stddev_default = 1.0f; static float constexpr sample_selection_f_close_default = .5f; static float constexpr sample_selection_f_diverse_default = .2f; static float constexpr sample_selection_f_random_default = .1f; Atomic velocity_modifier_falloff{velocity_modifier_falloff_default}; Atomic velocity_modifier_weight{velocity_modifier_weight_default}; Atomic velocity_stddev{velocity_stddev_default}; Atomic sample_selection_f_close{sample_selection_f_close_default}; Atomic sample_selection_f_diverse{sample_selection_f_diverse_default}; Atomic sample_selection_f_random{sample_selection_f_random_default}; //! Control number of times to retry sample selection as long as the sample //! is the same one as the last one. //! 0: will do no retries, ie. just use the first sample found. // FIXME: remove when new sample algorithm is introduced and also remove other occurences static std::size_t constexpr sample_selection_retry_count_default = 3; Atomic sample_selection_retry_count{sample_selection_retry_count_default}; // Current velocity offset - for UI Atomic velocity_modifier_current{1.0f}; Atomic enable_velocity_randomiser{false}; Atomic velocity_randomiser_weight{0.1f}; Atomic samplerate{44100.0}; Atomic buffer_size{1024}; // Only used to show in the UI. Atomic enable_resampling{true}; Atomic resamplig_recommended{false}; Atomic number_of_files{0}; Atomic number_of_files_loaded{0}; Atomic current_file{""}; Atomic enable_bleed_control{false}; Atomic master_bleed{1.0f}; Atomic has_bleed_control{false}; Atomic normalized_samples{true}; Atomic enable_latency_modifier{false}; //! Maximum "early hits" introduces latency in milliseconds. Atomic latency_max_ms{150.0f}; //! 0 := on-beat //! positive := laid back //! negative := up-beat //! Same range is [-100; 100] ms static float constexpr latency_laid_back_ms_default = 0.0f; Atomic latency_laid_back_ms{latency_laid_back_ms_default}; //! 0.0 := Robot //! 2.0 := Good drummer //! 4.0 := Decent drummer //! 6.0 := Decent drummer on a bad day //! 8.0 := Bad drummer //! 10.0 := Bad and drunk drummer static float constexpr latency_stddev_default = 2.0f; Atomic latency_stddev{latency_stddev_default}; //! Regain on-beat position. //! 0: instantaniously //! 1: never static float constexpr latency_regain_default = 0.9f; Atomic latency_regain{latency_regain_default}; // Current latency offset in ms - for UI Atomic latency_current{0}; Atomic audition_counter{0}; Atomic audition_instrument; Atomic audition_velocity; // Notify UI about load errors Atomic load_status_text; }; //! Settings getter class. struct SettingsGetter { SettingRef drumkit_file; SettingRef drumkit_load_status; SettingRef drumkit_name; SettingRef drumkit_description; SettingRef drumkit_version; SettingRef drumkit_samplerate; SettingRef disk_cache_upper_limit; SettingRef disk_cache_chunk_size; SettingRef disk_cache_enable; SettingRef number_of_underruns; SettingRef reload_counter; SettingRef midimap_file; SettingRef midimap_load_status; SettingRef enable_velocity_modifier; SettingRef velocity_modifier_falloff; SettingRef velocity_modifier_weight; SettingRef velocity_stddev; SettingRef sample_selection_f_close; SettingRef sample_selection_f_diverse; SettingRef sample_selection_f_random; SettingRef sample_selection_retry_count; SettingRef velocity_modifier_current; SettingRef enable_velocity_randomiser; SettingRef velocity_randomiser_weight; SettingRef samplerate; SettingRef buffer_size; SettingRef enable_resampling; SettingRef resamplig_recommended; SettingRef number_of_files; SettingRef number_of_files_loaded; SettingRef current_file; SettingRef enable_bleed_control; SettingRef master_bleed; SettingRef has_bleed_control; SettingRef normalized_samples; SettingRef enable_latency_modifier; SettingRef latency_max_ms; SettingRef latency_laid_back_ms; SettingRef latency_stddev; SettingRef latency_regain; SettingRef latency_current; SettingRef audition_counter; SettingRef audition_instrument; SettingRef audition_velocity; SettingRef load_status_text; SettingsGetter(Settings& settings) : drumkit_file(settings.drumkit_file) , drumkit_load_status(settings.drumkit_load_status) , drumkit_name(settings.drumkit_name) , drumkit_description(settings.drumkit_description) , drumkit_version(settings.drumkit_version) , drumkit_samplerate(settings.drumkit_samplerate) , disk_cache_upper_limit(settings.disk_cache_upper_limit) , disk_cache_chunk_size(settings.disk_cache_chunk_size) , disk_cache_enable(settings.disk_cache_enable) , number_of_underruns(settings.number_of_underruns) , reload_counter(settings.reload_counter) , midimap_file(settings.midimap_file) , midimap_load_status(settings.midimap_load_status) , enable_velocity_modifier{settings.enable_velocity_modifier} , velocity_modifier_falloff{settings.velocity_modifier_falloff} , velocity_modifier_weight{settings.velocity_modifier_weight} , velocity_stddev{settings.velocity_stddev} , sample_selection_f_close{settings.sample_selection_f_close} , sample_selection_f_diverse{settings.sample_selection_f_diverse} , sample_selection_f_random{settings.sample_selection_f_random} , sample_selection_retry_count(settings.sample_selection_retry_count) , velocity_modifier_current{settings.velocity_modifier_current} , enable_velocity_randomiser{settings.enable_velocity_randomiser} , velocity_randomiser_weight{settings.velocity_randomiser_weight} , samplerate{settings.samplerate} , buffer_size(settings.buffer_size) , enable_resampling{settings.enable_resampling} , resamplig_recommended{settings.resamplig_recommended} , number_of_files{settings.number_of_files} , number_of_files_loaded{settings.number_of_files_loaded} , current_file{settings.current_file} , enable_bleed_control{settings.enable_bleed_control} , master_bleed{settings.master_bleed} , has_bleed_control{settings.has_bleed_control} , normalized_samples{settings.normalized_samples} , enable_latency_modifier{settings.enable_latency_modifier} , latency_max_ms{settings.latency_max_ms} , latency_laid_back_ms{settings.latency_laid_back_ms} , latency_stddev{settings.latency_stddev} , latency_regain{settings.latency_regain} , latency_current{settings.latency_current} , audition_counter{settings.audition_counter} , audition_instrument{settings.audition_instrument} , audition_velocity{settings.audition_velocity} , load_status_text{settings.load_status_text} { } }; //! Settings change notifier class. class SettingsNotifier { public: Notifier drumkit_file; Notifier drumkit_load_status; Notifier drumkit_name; Notifier drumkit_description; Notifier drumkit_version; Notifier drumkit_samplerate; Notifier disk_cache_upper_limit; Notifier disk_cache_chunk_size; Notifier disk_cache_enable; Notifier number_of_underruns; Notifier reload_counter; Notifier midimap_file; Notifier midimap_load_status; Notifier enable_velocity_modifier; Notifier velocity_modifier_falloff; Notifier velocity_modifier_weight; Notifier velocity_stddev; Notifier sample_selection_f_close; Notifier sample_selection_f_diverse; Notifier sample_selection_f_random; Notifier sample_selection_retry_count; Notifier velocity_modifier_current; Notifier enable_velocity_randomiser; Notifier velocity_randomiser_weight; Notifier samplerate; Notifier buffer_size; Notifier enable_resampling; Notifier resamplig_recommended; Notifier number_of_files; Notifier number_of_files_loaded; Notifier current_file; Notifier enable_bleed_control; Notifier master_bleed; Notifier has_bleed_control; Notifier normalized_samples; Notifier enable_latency_modifier; Notifier latency_max_ms; Notifier latency_laid_back_ms; Notifier latency_stddev; Notifier latency_regain; Notifier latency_current; Notifier audition_counter; Notifier audition_instrument; Notifier audition_velocity; Notifier load_status_text; void evaluate() { #define EVAL(x) if(settings.x.hasChanged()) { x(settings.x.getValue()); } EVAL(drumkit_file); EVAL(drumkit_load_status); EVAL(drumkit_name); EVAL(drumkit_description); EVAL(drumkit_version); EVAL(drumkit_samplerate); EVAL(disk_cache_upper_limit); EVAL(disk_cache_chunk_size); EVAL(disk_cache_enable); EVAL(number_of_underruns); EVAL(reload_counter); EVAL(midimap_file); EVAL(midimap_load_status); EVAL(enable_velocity_modifier); EVAL(velocity_modifier_falloff); EVAL(velocity_modifier_weight); EVAL(velocity_stddev); EVAL(sample_selection_f_close); EVAL(sample_selection_f_diverse); EVAL(sample_selection_f_random); EVAL(sample_selection_retry_count); EVAL(velocity_modifier_current); EVAL(enable_velocity_randomiser); EVAL(velocity_randomiser_weight); EVAL(samplerate); EVAL(buffer_size); EVAL(enable_resampling); EVAL(resamplig_recommended); EVAL(number_of_files); EVAL(number_of_files_loaded); EVAL(current_file); EVAL(enable_bleed_control); EVAL(master_bleed); EVAL(has_bleed_control); EVAL(normalized_samples); EVAL(enable_latency_modifier); EVAL(latency_max_ms); EVAL(latency_laid_back_ms); EVAL(latency_stddev); EVAL(latency_regain); EVAL(latency_current); EVAL(audition_counter); EVAL(audition_instrument); EVAL(audition_velocity); EVAL(load_status_text); } SettingsNotifier(Settings& settings) : settings(settings) { } private: SettingsGetter settings; }; // lovely reminder: NO, GLOCKE. NOOOO!! /* enum class IntParams { Foo = 0 }; struct Settings { std::array, 5> ints; Settings() : ints{} { //get(IntParams::Foo).store(3); } std::atomic& get(IntParams param) { return ints[(size_t)param]; } }; struct SettingsGetter { std::vector> ints; SettingsGetter(Settings& parent) { for(auto& atomic: parent.ints) { ints.emplace_back(atomic); } } }; */ drumgizmo-0.9.18.1/src/grid.h0000644000076400007640000000673113511117027012610 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * grid.h * * Sat Jun 16 11:52:08 CEST 2018 * Copyright 2018 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include template class Grid { public: using Index = std::size_t; struct Pos { T x, y; Pos(T x, T y) : x(x), y(y) {} }; Grid() = default; Grid(Index width, Index height); Grid(Index width, Index height, T value); bool is_valid(Index x, Index y) const; bool is_valid(Pos pos) const; Index width() const; Index height() const; T operator()(Pos pos) const; T operator()(Index x, Index y) const; T& operator()(Pos pos); T& operator()(Index x, Index y); std::vector const& getAllEntries() const; void resize(Index width, Index height); void assign(Index width, Index height, T value); void setDefaultValue(T value); private: Index _width; Index _height; std::vector _entries; T default_value; }; template Grid::Grid(Index width, Index height) : _width(width), _height(height), _entries(_width*_height) {} template Grid::Grid(Index width, Index height, T value) : _width(width), _height(height), _entries(_width*_height, value) {} template bool Grid::is_valid(Index x, Index y) const { return x >= 0 && x < _width && y >= 0 && y < _height; } template bool Grid::is_valid(Pos pos) const { return is_valid(pos.x, pos.y); } template auto Grid::width() const -> Index { return _width; } template auto Grid::height() const -> Index { return _height; } template T Grid::operator()(Pos pos) const { return is_valid(pos) ? _entries[pos.x + _width*pos.y] : default_value; } template T Grid::operator()(Index x, Index y) const { return is_valid(x, y) ? _entries[x + _width*y] : default_value; } template T& Grid::operator()(Pos pos) { return is_valid(pos) ? _entries[pos.x + _width*pos.y] : default_value; } template T& Grid::operator()(Index x, Index y) { return is_valid(x, y) ? _entries[x + _width*y] : default_value; } template std::vector const& Grid::getAllEntries() const { return _entries; } template void Grid::resize(Index width, Index height) { _width = width; _height = height; _entries.resize(_width*_height); } template void Grid::assign(Index width, Index height, T value) { _width = width; _height = height; _entries.assign(_width*_height, value); } template void Grid::setDefaultValue(T value) { default_value = value; } drumgizmo-0.9.18.1/src/configparser.cc0000644000076400007640000000544413511117026014502 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configparser.cc * * Sat Jun 29 21:55:02 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "configparser.h" #include #include static bool assign(std::string& dest, const std::string& val) { dest = val; return true; } template static bool attrcpy(T& dest, const pugi::xml_node& src, const std::string& attr, bool opt = false) { const char* val = src.attribute(attr.c_str()).as_string(nullptr); if(!val) { if(!opt) { ERR(configparser, "Attribute %s not found in %s, offset %d\n", attr.data(), src.path().data(), (int)src.offset_debug()); } return opt; } if(!assign(dest, std::string(val))) { ERR(configparser, "Attribute %s could not be assigned, offset %d\n", attr.data(), (int)src.offset_debug()); return false; } return true; } bool ConfigParser::parseString(const std::string& xml) { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_buffer(xml.data(), xml.size()); if(result.status) { ERR(configparser, "XML parse error: %d", (int)result.offset); return false; } pugi::xml_node config_node = doc.child("config"); // Config xml without the version tag defaults to 1.0 std::string version = "1.0"; attrcpy(version, config_node, "version", true); if(version != "1.0") { ERR(configparser, "Only config v1.0 XML supported."); return false; } for(pugi::xml_node value_node : config_node.children("value")) { auto name = value_node.attribute("name").as_string(); if(std::string(name) == "") { continue; } auto value = value_node.child_value(); values[name] = value; } return true; } std::string ConfigParser::value(const std::string& name, const std::string& def) { if(values.find(name) == values.end()) { return def; } return values[name]; } drumgizmo-0.9.18.1/src/platform.h0000644000076400007640000000367613331526614013522 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * platform.h * * Fri May 20 18:46:17 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once //! The DG platform types: #define DG_PLATFORM_LINUX 1 //!< Platform is Linux based. #define DG_PLATFORM_WINDOWS 2 //!< Platform is Windows based #define DG_PLATFORM_OSX 3 //!< Platform is MacOSX based. #define DG_PLATFORM_FREEBSD 4 //!< Platform is FreeBSD based. #define DG_PLATFORM_UNIX 5 //!< Platform is Unix based. #ifdef __linux__ #define DG_PLATFORM DG_PLATFORM_LINUX #elif _WIN32 #define DG_PLATFORM DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #elif __APPLE__ #define DG_PLATFORM DG_PLATFORM_OSX #elif __FreeBSD__ #define DG_PLATFORM DG_PLATFORM_FREEBSD #elif __unix__ // All other unices (*BSD etc) #define DG_PLATFORM DG_PLATFORM_UNIX #endif #ifndef DG_PLATFORM #error "Platform not defined!" #endif #if defined(_POSIX_VERSION) // POSIX #define DG_POSIX #endif drumgizmo-0.9.18.1/src/events.h0000644000076400007640000000534413511117027013166 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Sat Sep 18 22:02:16 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "audiofile.h" #include "audio.h" #include "audiocache.h" typedef unsigned int timepos_t; class Event { public: Event(channel_t channel, timepos_t offset = 0) : channel(channel), offset(offset) { } virtual ~Event() { } typedef enum { sample } type_t; virtual type_t getType() const = 0; channel_t channel; timepos_t offset; //< Global position (ie. not relative to buffer) }; class EventSample : public Event { public: EventSample(channel_t c, float g, AudioFile* af, const std::string& grp, std::size_t instrument_id) : Event(c) , cache_id(CACHE_NOID) , gain(g) , t(0) , file(af) , group(grp) , rampdown_count(-1) , ramp_length(0) , instrument_id(instrument_id) { } Event::type_t getType() const { return Event::sample; } bool rampdownInProgress() const { return rampdown_count != -1; } cacheid_t cache_id; sample_t* buffer; std::size_t buffer_size; std::size_t buffer_ptr{0}; //< Internal pointer into the current buffer std::size_t sample_size{0}; //< Total number of audio samples in this sample. float gain; unsigned int t; //< Internal sample position. AudioFile* file; std::string group; int rampdown_count; int ramp_length; std::size_t rampdown_offset{0}; float scale{1.0f}; std::size_t instrument_id; }; class EventQueue { public: void post(Event* event, timepos_t time); Event* take(timepos_t time); bool hasEvent(timepos_t time); size_t getSize() const { return queue.size(); } private: std::multimap queue; std::mutex mutex; }; drumgizmo-0.9.18.1/src/domloader.h0000644000076400007640000000334013551153107013625 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * domloader.h * * Sun Jun 10 17:39:01 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "logger.h" struct DrumkitDOM; struct InstrumentDOM; class DrumKit; struct Settings; class Random; class InstrumentChannel; class Instrument; class DOMLoader { public: DOMLoader(Settings& settings, Random& random); bool loadDom(const std::string& basepath, const DrumkitDOM& dom, const std::vector& instrumentdoms, DrumKit& drumkit, LogFunction logger = nullptr); private: static InstrumentChannel* addOrGetChannel(Instrument& instrument, const std::string& name); Settings& settings; Random& random; }; drumgizmo-0.9.18.1/src/channel.h0000644000076400007640000000316513340266454013302 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channel.h * * Tue Jul 22 17:14:27 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "audio.h" #define ALL_CHANNELS ((channel_t)0xffffffff) #define NO_CHANNEL ((channel_t)0xfffffffe) enum class main_state_t { unset, is_main, is_not_main }; class Channel { public: Channel(const std::string& name = ""); std::string name; channel_t num; }; class InstrumentChannel : public Channel { public: InstrumentChannel(const std::string& name = ""); main_state_t main{main_state_t::unset}; }; typedef std::vector Channels; drumgizmo-0.9.18.1/src/instrument.cc0000644000076400007640000000617513511117027014233 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrument.cc * * Tue Jul 22 17:14:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "instrument.h" #include #include "sample.h" Instrument::Instrument(Settings& settings, Random& rand) : settings(settings) , rand(rand) , sample_selection(settings, rand, powerlist) { DEBUG(instrument, "new %p\n", this); mod = 1.0; lastpos = 0; magic = this; } Instrument::~Instrument() { magic = nullptr; DEBUG(instrument, "delete %p\n", this); } bool Instrument::isValid() const { return this == magic; } const Sample* Instrument::sample(level_t level, size_t pos) { if(version >= VersionStr("2.0")) { // Version 2.0 return sample_selection.get(level * mod, pos); } else { // Version 1.0 auto s = samples.get(level * mod); if(s.size() == 0) { return nullptr; } return rand.choose(s); } } void Instrument::addSample(level_t a, level_t b, const Sample* s) { samples.insert(a, b, s); } void Instrument::finalise() { if(version >= VersionStr("2.0")) { std::vector::iterator s = samplelist.begin(); while(s != samplelist.end()) { powerlist.add(*s); s++; } powerlist.finalise(); sample_selection.finalise(); } } std::size_t Instrument::getID() const { return id; } const std::string& Instrument::getName() const { return _name; } const std::string& Instrument::getDescription() const { return _description; } const std::string& Instrument::getGroup() const { return _group; } void Instrument::setGroup(const std::string& g) { _group = g; } std::size_t Instrument::getNumberOfFiles() const { DEBUG(instrument, "audiofiles.size() %d", (int)audiofiles.size()); // Note: Each AudioFile instance contains just a single channel even for // multi-channel files. return audiofiles.size(); } float Instrument::getMaxPower() const { if(version >= VersionStr("2.0")) { return powerlist.getMaxPower(); } else { return 1.0f; } } float Instrument::getMinPower() const { if(version >= VersionStr("2.0")) { return powerlist.getMinPower(); } else { return 0.0f; } } const std::vector& Instrument::getChokes() { return chokes; } drumgizmo-0.9.18.1/src/domloader.cc0000644000076400007640000002040313551153107013762 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * domloader.cc * * Sun Jun 10 17:39:01 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "domloader.h" #include #include #include "DGDOM.h" #include "drumkit.h" #include "path.h" #include "channel.h" #include "cpp11fix.h" struct channel_attribute_t { std::string cname; main_state_t main_state; }; DOMLoader::DOMLoader(Settings& settings, Random& random) : settings(settings) , random(random) { } bool DOMLoader::loadDom(const std::string& basepath, const DrumkitDOM& dom, const std::vector& instrumentdoms, DrumKit& drumkit, LogFunction logger) { settings.has_bleed_control.store(false); drumkit._name = dom.metadata.title; drumkit._version = dom.version; drumkit._description = dom.metadata.description; drumkit._samplerate = dom.samplerate; for(const auto& channel: dom.channels) { drumkit.channels.emplace_back(); drumkit.channels.back().name = channel.name; drumkit.channels.back().num = drumkit.channels.size() - 1; } // Pass 1 - handling everything that is instrument name based and ultimately // inserts the instrument into the drumkit instrument list which results in // it getting an instrument id (ie. the index in the list). for(const auto& instrumentref : dom.instruments) { bool found{false}; std::unordered_map channelmap; for(const auto& map : instrumentref.channel_map) { channel_attribute_t cattr{map.out, map.main}; channelmap[map.in] = cattr; } for(const auto& instrumentdom : instrumentdoms) { if(instrumentdom.name != instrumentref.name) { continue; } auto instrument = std::make_unique(settings, random); instrument->setGroup(instrumentref.group); instrument->_name = instrumentdom.name; instrument->version = instrumentdom.version; instrument->_description = instrumentdom.description; auto path = getPath(basepath + "/" + instrumentref.file); for(const auto& sampledom : instrumentdom.samples) { auto sample = new Sample(sampledom.name, sampledom.power, sampledom.normalized); for(const auto& audiofiledom : sampledom.audiofiles) { InstrumentChannel *instrument_channel = DOMLoader::addOrGetChannel(*instrument, audiofiledom.instrument_channel); auto audio_file = std::make_unique(path + "/" + audiofiledom.file, audiofiledom.filechannel - 1, // xml is 1-based instrument_channel); sample->addAudioFile(instrument_channel, audio_file.get()); // Transfer audio_file ownership to the instrument. instrument->audiofiles.push_back(std::move(audio_file)); } instrument->samplelist.push_back(sample); } main_state_t default_main_state = main_state_t::unset; for(const auto& channel : channelmap) { if(channel.second.main_state != main_state_t::unset) { default_main_state = main_state_t::is_not_main; } } // Assign kit channel numbers to instruments channels and reset // main_state attribute as needed. for(auto& instrument_channel: instrument->instrument_channels) { channel_attribute_t cattr{instrument_channel.name, main_state_t::unset}; if(channelmap.find(instrument_channel.name) != channelmap.end()) { cattr = channelmap[instrument_channel.name]; } if(cattr.main_state == main_state_t::unset) { cattr.main_state = default_main_state; } if(cattr.main_state != main_state_t::unset) { instrument_channel.main = cattr.main_state; } for(auto cnt = 0u; cnt < drumkit.channels.size(); ++cnt) { if(drumkit.channels[cnt].name == cattr.cname) { instrument_channel.num = drumkit.channels[cnt].num; instrument_channel.name = drumkit.channels[cnt].name; if(instrument_channel.main == main_state_t::is_main) { settings.has_bleed_control.store(true); } } } if(instrument_channel.num == NO_CHANNEL) { ERR(kitparser, "Missing channel '%s' in instrument '%s'\n", instrument_channel.name.c_str(), instrument->getName().c_str()); logger(LogLevel::Warning, "Missing channel '" + instrument_channel.name + "' in the '" + instrument->getName() + "' instrument."); } } if(instrument->version == VersionStr(1,0,0)) { // Version 1.0 use velocity groups for(auto& velocity : instrumentdom.velocities) { for(const auto& sampleref : velocity.samplerefs) { bool found_sample{false}; for(const auto& sample : instrument->samplelist) { // TODO: What should be done with the probability?? if(sample->name == sampleref.name) { instrument->addSample(velocity.lower, velocity.upper, sample); found_sample = true; break; } } if(!found_sample) { ERR(kitparser, "Missing sample '%s' from sampleref in instrument '%s'\n", sampleref.name.data(), instrument->getName().data()); logger(LogLevel::Warning, "Missing sample '" + sampleref.name + "' in the '" + instrument->getName() + "' instrument."); return false; } } } } instrument->finalise(); // Transfer ownership to the DrumKit object. drumkit.instruments.emplace_back(std::move(instrument)); drumkit.instruments.back()->id = drumkit.instruments.size() - 1; found = true; } if(!found) { ERR(domloader, "No instrument with name '%s'", instrumentref.name.data()); logger(LogLevel::Warning, "No instrument with name '" + instrumentref.name + "'."); return false; } } // Pass 2 - handle nodes that require instrument name to instrument id // mappings for(const auto& instrumentref : dom.instruments) { std::size_t instr_id{0}; { bool found{false}; for(std::size_t idx = 0; idx < drumkit.instruments.size(); ++idx) { if(drumkit.instruments[idx]->getName() == instrumentref.name) { instr_id = idx; found = true; break; } } if(!found) { // Missing instrument - skip continue; } } for(const auto& choke : instrumentref.chokes) { std::size_t choke_instr_id{0}; bool choke_found{false}; for(std::size_t idx = 0; idx < drumkit.instruments.size(); ++idx) { if(drumkit.instruments[idx]->getName() == choke.instrument) { choke_instr_id = idx; choke_found = true; break; } } if(!choke_found) { // Missing choke target instrument - skip continue; } drumkit.instruments[instr_id]->chokes.emplace_back(); drumkit.instruments[instr_id]->chokes.back().instrument_id = choke_instr_id; drumkit.instruments[instr_id]->chokes.back().choketime = choke.choketime; } } return true; } InstrumentChannel* DOMLoader::addOrGetChannel(Instrument& instrument, const std::string& name) { for(auto& channel : instrument.instrument_channels) { if(channel.name == name) { return &channel; } } instrument.instrument_channels.emplace_back(name); InstrumentChannel& channel = instrument.instrument_channels.back(); channel.main = main_state_t::unset; return &channel; } drumgizmo-0.9.18.1/src/audiocache.cc0000644000076400007640000001714313340266454014116 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocache.cc * * Fri Apr 10 10:39:24 CEST 2015 * Copyright 2015 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocache.h" #include #include #include #include #include "audiocachefile.h" AudioCache::AudioCache(Settings& settings) : settings(settings) { } AudioCache::~AudioCache() { DEBUG(cache, "~AudioCache() pre\n"); deinit(); delete[] nodata; DEBUG(cache, "~AudioCache() post\n"); } void AudioCache::init(std::size_t poolsize) { setAsyncMode(true); id_manager.init(poolsize); event_handler.start(); } void AudioCache::deinit() { event_handler.stop(); } // Invariant: initial_samples_needed < preloaded audio data sample_t* AudioCache::open(const AudioFile& file, std::size_t initial_samples_needed, int channel, cacheid_t& id) { assert(chunk_size); // Assert updateChunkSize was called before processing. if(!file.isValid()) { settings.number_of_underruns.fetch_add(1); // File preload not yet ready - skip this sample. id = CACHE_DUMMYID; assert(nodata); return nodata; } // Register a new id for this cache session. id = id_manager.registerID({}); // If we are out of available ids we get CACHE_DUMMYID if(id == CACHE_DUMMYID) { settings.number_of_underruns.fetch_add(1); // Use nodata buffer instead. assert(nodata); return nodata; } // Get the cache_t connected with the registered id. cache_t& c = id_manager.getCache(id); c.afile = nullptr; // File is opened when needed. c.channel = channel; // Next call to 'next()' will read from this point. c.localpos = initial_samples_needed; c.ready = false; c.front = nullptr; // This is allocated when needed. c.back = nullptr; // This is allocated when needed. std::size_t cropped_size; if(file.preloadedsize == file.size) { // We have preloaded the entire file, so use it. cropped_size = file.preloadedsize; } else { // Make sure that the preload-data made available to the next() calls // fit on frame boundary: // // [ all preloaded data ] // [ initial ][ biggest multiple of full frames ][ the rest ] // \ / // \----------------------v-------------------/ // cropped_size cropped_size = file.preloadedsize - c.localpos; cropped_size -= cropped_size % framesize; cropped_size += initial_samples_needed; } c.preloaded_samples = file.data; c.preloaded_samples_size = cropped_size; // Next potential read from disk will read from this point. c.pos = cropped_size; // Only load next buffer if there is more data in the file to be loaded... if(c.pos < file.size) { c.afile = &event_handler.openFile(file.filename); if(c.back == nullptr) { c.back = new sample_t[chunk_size]; } event_handler.pushLoadNextEvent(c.afile, c.channel, c.pos, c.back, &c.ready); } return c.preloaded_samples; // return preloaded data } sample_t* AudioCache::next(cacheid_t id, std::size_t& size) { if(id == CACHE_DUMMYID) { settings.number_of_underruns.fetch_add(1); assert(nodata); return nodata; } cache_t& c = id_manager.getCache(id); if(c.preloaded_samples) { // We are playing from memory: if(c.localpos < c.preloaded_samples_size) { sample_t* s = c.preloaded_samples + c.localpos; // If only a partial frame is returned. Reflect this in the size size = std::min(size, c.preloaded_samples_size - c.localpos); c.localpos += size; return s; } c.preloaded_samples = nullptr; // Start using samples from disk. } else { // We are playing from cache: if(c.localpos < chunk_size) { if(c.front == nullptr) { // Just return silence. settings.number_of_underruns.fetch_add(1); c.localpos += size; // Skip these samples so we don't loose sync. assert(nodata); return nodata; } sample_t* s = c.front + c.localpos; // If only a partial frame is returned. Reflect this in the size size = std::min(size, chunk_size - c.localpos); c.localpos += size; return s; } } // Check for buffer underrun if(!c.ready) { // Just return silence. settings.number_of_underruns.fetch_add(1); c.localpos += size; // Skip these samples so we don't loose sync. assert(nodata); return nodata; } // Swap buffers std::swap(c.front, c.back); // Next time we go here we have already read the first frame. c.localpos = size; c.pos += chunk_size; // Does the file have remaining unread samples? assert(c.afile); // Assert that we have an audio file. if(c.pos < c.afile->getSize()) { // Do we have a back buffer to read into? if(c.back == nullptr) { c.back = new sample_t[chunk_size]; } event_handler.pushLoadNextEvent(c.afile, c.channel, c.pos, c.back, &c.ready); } // We should always have a front buffer at this point. assert(c.front); return c.front; } bool AudioCache::isReady(cacheid_t id) { if(id == CACHE_DUMMYID) { return true; } cache_t& cache = id_manager.getCache(id); return cache.ready; } void AudioCache::close(cacheid_t id) { if(id == CACHE_DUMMYID) { return; } event_handler.pushCloseEvent(id); } void AudioCache::setFrameSize(std::size_t framesize) { // Make sure the event handler thread is stalled while we set the framesize // state. std::lock_guard event_handler_lock(event_handler); // NOTE: Not threaded... //std::lock_guard id_manager_lock(id_manager); if(framesize > nodata_framesize) { if(nodata) { nodata_dirty.emplace_back(std::move(nodata)); // Store for later deletion. } nodata = new sample_t[framesize]; nodata_framesize = framesize; for(std::size_t i = 0; i < framesize; ++i) { nodata[i] = 0.0f; } } this->framesize = framesize; } std::size_t AudioCache::getFrameSize() const { return framesize; } void AudioCache::updateChunkSize(std::size_t output_channels) { // Make sure we won't get out-of-range chunk sizes. std::size_t disk_cache_chunk_size = std::max(settings.disk_cache_chunk_size.load(), std::size_t(512u * 1024u)); output_channels = std::max(output_channels, std::size_t(1u)); // 1MB pr. chunk divided over 16 channels, 4 bytes pr. sample. const auto ideal_chunk_size = disk_cache_chunk_size / output_channels / sizeof(sample_t); // Chunk size must match a whole number of frames. chunk_size = (ideal_chunk_size / framesize) * framesize; event_handler.setChunkSize(chunk_size); } void AudioCache::setAsyncMode(bool async) { event_handler.setThreaded(async); } bool AudioCache::isAsyncMode() const { return event_handler.isThreaded(); } drumgizmo-0.9.18.1/src/velocityfilter.h0000644000076400007640000000300213551153107014716 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * velocityfilter.h * * Sun May 12 16:01:41 CEST 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "inputfilter.h" #include "instrument.h" struct Settings; class Random; class VelocityFilter : public InputFilter { public: VelocityFilter(Settings& settings, Random& random); bool filter(event_t& event, std::size_t pos) override; // Note getLatency not overloaded because this filter doesn't add latency. private: Settings& settings; Random& random; }; drumgizmo-0.9.18.1/src/latencyfilter.cc0000644000076400007640000000701113340266455014670 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * latencyfilter.cc * * Fri Jun 10 22:42:53 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "latencyfilter.h" #include #include #include "settings.h" #include "random.h" LatencyFilter::LatencyFilter(Settings& settings, Random& random) : settings(settings) , random(random) { } template static T1 getLatencySamples(T1 latency_ms, T2 samplerate) { return latency_ms * samplerate / 1000.; } template static T1 getLatencyMs(T1 latency_samples, T2 samplerate) { return 1000. * latency_samples / samplerate; } bool LatencyFilter::filter(event_t& event, std::size_t pos) { auto enabled = settings.enable_latency_modifier.load(); auto latency_ms = settings.latency_max_ms.load(); auto samplerate = settings.samplerate.load(); auto latency_laid_back_ms = settings.latency_laid_back_ms.load(); auto latency_stddev = settings.latency_stddev.load(); auto latency_regain = settings.latency_regain.load(); if(!enabled) { return true; } auto latency = getLatencySamples(latency_ms, samplerate); auto latency_laid_back = getLatencySamples(latency_laid_back_ms, samplerate); // Assert latency_regain is within range [0; 1]. assert(latency_regain >= 0.0f && latency_regain <= 1.0f); // User inputs 0 as no regain and 1 as instant - pow() is the other way around latency_regain *= -1.0f; latency_regain += 1.0f; float duration = (pos - latency_last_pos) / samplerate; latency_offset *= pow(latency_regain, duration); latency_last_pos = pos; float offset_min = -latency; float offset_max = latency; float offset_ms = random.normalDistribution(0.0f, latency_stddev); latency_offset += getLatencySamples(offset_ms, samplerate); latency_offset = std::max(offset_min, std::min(offset_max, latency_offset)); DEBUG(offset, "latency: %d, offset: %f, drift: %f", (int)latency, offset_ms, latency_offset); event.offset += latency; // fixed latency offset event.offset += latency_laid_back; // laid back offset (user controlled) event.offset += latency_offset; // current drift auto latency_current_ms = getLatencyMs(latency_offset + latency_laid_back, samplerate); settings.latency_current.store(latency_current_ms); return true; } std::size_t LatencyFilter::getLatency() const { bool enabled = settings.enable_latency_modifier.load(); if(enabled) { auto latency_ms = settings.latency_max_ms.load(); auto samplerate = settings.samplerate.load(); return getLatencySamples(latency_ms, samplerate); } return 0u; } drumgizmo-0.9.18.1/src/channel.cc0000644000076400007640000000245713340266454013443 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channel.cc * * Tue Jul 22 17:14:28 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "channel.h" Channel::Channel(const std::string& name) : name{name} , num{NO_CHANNEL} { } InstrumentChannel::InstrumentChannel(const std::string& name) : Channel(name) { } drumgizmo-0.9.18.1/src/versionstr.h0000644000076400007640000000600213340266455014102 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * versionstr.h * * Wed Jul 22 11:41:32 CEST 2009 * Copyright 2009 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include // Workaround - major, minor and patch are defined as macros when using // _GNU_SOURCES #ifdef major #undef major #endif #ifdef minor #undef minor #endif #ifdef patch #undef patch #endif /** * VersionStr class. * It hold a version number and is capable of correct sorting, as well as string * conversion both ways. */ class VersionStr { public: /** * Constructor. * Throws an exeption if the string does not parse. * @param v A std::string containing a version string on the form a.b or * a.b.c */ VersionStr(const std::string& v); /** * Constructor. * @param major A size_t containing the major version number. * @param minor A size_t containing the minor version number. * @param patch A size_t containing the patch level. */ VersionStr(size_t major = 0, size_t minor = 0, size_t patch = 0); /** * Typecast to std::string operator. * It simply converts the version numbers into a string of the form * major.minor * (if patch i 0) or major.minor.patch */ operator std::string() const; /** * Assignment from std::string operator. * Same as in the VersionStr(std::string v) constructor. * Throws an exeption if the string does not parse. */ void operator=(const std::string& v); /** * Comparison operator. * The version objects are sorted according to their major, minor and patch * level numbers. */ bool operator<(const VersionStr& other) const; bool operator==(const VersionStr& other) const; bool operator>(const VersionStr& other) const; bool operator>=(const VersionStr& other) const; bool operator<=(const VersionStr& other) const; /** * @return Major version number. */ size_t major() const; /** * @return Minor version number. */ size_t minor() const; /** * @return Patch level. */ size_t patch() const; private: void set(const std::string& v); std::array version; }; drumgizmo-0.9.18.1/src/midimapper.h0000644000076400007640000000313613511117027014006 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapper.h * * Mon Jul 21 15:24:07 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include typedef std::map midimap_t; typedef std::map instrmap_t; class MidiMapper { public: //! Lookup note in map and return its index. //! \returns -1 if not found or the note index. int lookup(int note); //! Set new map sets. void swap(instrmap_t& instrmap, midimap_t& midimap); const midimap_t& getMap(); private: instrmap_t instrmap; midimap_t midimap; std::mutex mutex; }; drumgizmo-0.9.18.1/src/events.cc0000644000076400007640000000327213331526614013330 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.cc * * Sat Sep 18 22:02:16 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "events.h" void EventQueue::post(Event* event, timepos_t time) { std::lock_guard guard(mutex); event->offset = time; queue.insert(std::pair(time, event)); } Event* EventQueue::take(timepos_t time) { std::lock_guard guard(mutex); std::multimap::iterator i = queue.find(time); if(i == queue.end()) return NULL; Event* event = i->second; queue.erase(i); return event; } bool EventQueue::hasEvent(timepos_t time) { std::lock_guard guard(mutex); return queue.find(time) != queue.end(); } drumgizmo-0.9.18.1/src/bytesizeparser.h0000644000076400007640000000234213331526614014736 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bytesize_parser.h * * Sat Mar 4 18:00:12 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! Returns size in bytes //! \param argument The size in n{k,M,G} format std::size_t byteSizeParser(const std::string& argument); drumgizmo-0.9.18.1/test-driver0000755000076400007640000001104113535462604013121 00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2016-01-11.22; # UTC # Copyright (C) 2011-2017 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <$log_file 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>$log_file # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: drumgizmo-0.9.18.1/depcomp0000755000076400007640000005601713535462604012314 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2016-01-11.22; # UTC # Copyright (C) 1999-2017 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: drumgizmo-0.9.18.1/version.h0000644000076400007640000000003313554100310012540 00000000000000#define VERSION "0.9.18.1" drumgizmo-0.9.18.1/aclocal.m40000644000076400007640000134730013554101142012562 00000000000000# generated automatically by aclocal 1.15.1 -*- Autoconf -*- # Copyright (C) 1996-2017 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*|powerpc64le-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software # Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # PKG_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable pkgconfigdir as the location where a module # should install pkg-config .pc files. By default the directory is # $libdir/pkgconfig, but the default can be changed by passing # DIRECTORY. The user can override through the --with-pkgconfigdir # parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_INSTALLDIR # PKG_NOARCH_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable noarch_pkgconfigdir as the location where a # module should install arch-independent pkg-config .pc files. By # default the directory is $datadir/pkgconfig, but the default can be # changed by passing DIRECTORY. The user can override through the # --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ------------------------------------------- # Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])# PKG_CHECK_VAR # Copyright (C) 2002-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.15.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR drumgizmo-0.9.18.1/man/0000755000076400007640000000000013554101262011550 500000000000000drumgizmo-0.9.18.1/man/Makefile.in0000644000076400007640000003754513554101142013550 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = man ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ man_MANS = \ drumgizmo.1 \ drumgizmo.fr.1 \ dgvalidator.1 \ dgvalidator.fr.1 EXTRA_DIST = $(man_MANS) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-man \ uninstall-man1 .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/man/dgvalidator.10000644000076400007640000000157113515375733014073 00000000000000.TH "DGVALIDATOR" "1" "29 June 2019" "dgvalidator" "" .SH NAME dgvalidator \- drumgizmo drumkit validator .SH SYNOPSIS \fBdgvalidator\fR |-h|--help .SH "DESCRIPTION" .PP \fBDgvalidator\fR is a simple validator tool for drumgizmo drumkit files. .PP Dgvalidator will try to load the drumkit pointed to by drumkitfile and validate it. It validates both the xml in the drumkit and all instrument files referred in it as well as the the semantics of the contents - including checking for the existence and validity of all audiofiles referred by the instruments. .SH "OPTIONS" .PD 0 .RE \fB-h, --help\fR .RS 7 Print command line help and exit. .RE \fBdrumkitfile\fR .RS 7 The drumkitfile to verify. .RE .SH "BUGS" Report bugs to http://www.drumgizmo.org/wiki/doku.php?id=bugs. .SH "ADDITIONAL INFORMATION" For further information, visit the website http://www.drumgizmo.org. drumgizmo-0.9.18.1/man/drumgizmo.10000644000076400007640000001146613551153106013600 00000000000000.TH "DRUMGIZMO" "1" "21 July 2018" "drumgizmo" "" .SH NAME drumgizmo \- drum application .SH SYNOPSIS \fBdrumgizmo\fR [OPTIONS] drumkitfile .SH "DESCRIPTION" .PP \fBDrumGizmo\fR is an open source cross-platform drum plugin and stand-alone application. It is comparable to several commercial drum plugin products. .PP DrumGizmo uses an open drumkit file format, allowing the community to create their own drumkits. It has multichannel output, making it possible to mix it just the way you would a real drumkit. The optional built-in humanizer analyzes the midi notes, adjusting velocities on-the-fly. This client can be a stand-alone midi renderer, generating .wav files, 1 for each channel. Or use DrumGizmo as a software sampler for an electronic drumkit. There are also plugin versions available. .SH "OPTIONS" .PD 0 .RE \fB-a, --async_load\fR .RS 7 Load kit in the background. .RE \fB-b, --bleed\fR .RS 7 Set and enable master bleed. .RE \fB-i, --inputengine \fR{dummy|test|jackmidi|midifile} .RS 7 Use said event input engine. .RE \fB-I, --inputparms parmlist\fR .RS 7 Set input engine parameters. \fBjackmidi:\fR .P midimap= \fBmidifile:\fR .P file= .P speed= (default 1.0) .P track= (default -1, all tracks) .P midimap= .P loop= \fBossmidi:\fR .P midimap= .P dev= (default '/dev/midi') \fBtest:\fR .P p= (default 0.1) .P instr= (default -1, random instrument) .P len= (default -1, forever) \fBdummy:\fR .RE \fB-o, --outputengine \fR{dummy|alsa|jackaudio|wavfile|oss} .RS 7 Use said audio output engine. .RE \fB-O, --outputparms parmlist\fR .RS 7 Set output engine parameters. \fBalsa:\fR .P dev= (default 'default') .P frames= (default 32) .P srate= (default 44100) \fBwavfile:\fR .P file= (default 'output') .P srate= (default 44100) \fBoss:\fR .P dev= (default /dev/dsp) .P srate= (default 44100) .P max_fragments= (default 4) .P fragment_size= (default 8) .P More info on \fBmax_fragments\fR and \fBfragment_size\fR on http://manuals.opensound.com/developer/SNDCTL_DSP_SETFRAGMENT.html \fBjackaudio:\fR \fBdummy:\fR .RE \fB-e, --endpos\fR .RS 7 Number of samples to process, (default -1: infinite) .RE \fB-r, --no-resampling\fR .RS 7 Disable resampling .RE \fB-s, --streaming\fR .RS 7 Enable diskstreaming .RE \fB-S, --strimingparms parmlist\fR .RS 7 Parameters for controlling the streaming buffers. .P \fBlimit\fR= (Limit the amount of preloaded drumkit data to the size) \" .P \" \fBchunk_size\fR= (chunk size in k,M,G) .RE \fB-t, --timing-humanizer\fR .RS 7 Enable moving of notes in time. .P \fINote: \fIadds \fIlatency \fIto \fIthe \fIoutput \fIso \fIdo \fInot \fIuse \fIthis \fIwith \fIa \fIreal-time \fImidi \fIdrumkit. .RE \fB-T, --timing-humanizerparms parmlist\fR .RS 7 Timing humanizer options. .P \fBlaidback\fR= (Move notes ahead or behind in time in ms [+/-100].) .P \fBtightness\fR= (Control the tightness of the drummer. [0,1].) .P \fBregain\fR= (Control how fast the drummer catches up the timing. [0,1]) .RE \fB-t, --velocity-humanizer\fR .RS 7 Enables adapting input velocities to make it sound more realistic. .RE \fB-T, --velocity-humanizerparms parmlist\fR .RS 7 Velocity humanizer options. .P \fBattack\fR= (How quickly the velocity gets reduced when playing fast notes. Lower values result in faster velocity reduction. [0,1]) .P \fBrelease\fR= (How quickly the drummer regains the velocity when there are spaces between the notes. Lower values result in faster regain. [0,1]) .P \fBstddev\fR= (The standard-deviation for the velocity humanizer. Higher value makes it more likely that a sample further away from the input velocity will be played. [0,4.5]) .RE \fB-p, --parameters parmlist\fR .RS 7 Parameters for the sample selection algorithm. .P \fBclose\fR= (The importance given to choosing a sample close to the actual velocity value (after humanization) [0,1]) .P \fBdiverse\fR= (The importance given to choosing samples which haven't been played recently [0,1]) .P \fBrandom\fR= (The amount of randomness added [0,1]) .RE \fB-v, --version\fR .RS 7 Print drumgizmo version and exit. .RE \fB-h, --help\fR .RS 7 Print command line help and exit. .RE \fBdrumkitfile\fR .RS 7 Load the drumkitfile. .RE .SH "EXAMPLES" \fBRender midifile to wav files:\fR .RS 7 drumgizmo -i midifile -I file=file.mid,midimap=midimap.xml -o wavfile -O file=prefix drumkit.xml .RE \fBReceive midi from Jack and send audio output to speakers:\fR .RS 7 drumgizmo -i jackmidi -I midimap=midimap.xml -o jackaudio drumkit.xml .RE .SH "BUGS" Report bugs to http://www.drumgizmo.org/wiki/doku.php?id=bugs. .SH "ADDITIONAL INFORMATION" For further information, visit the website http://www.drumgizmo.org. drumgizmo-0.9.18.1/man/drumgizmo.fr.10000644000076400007640000001245113515375734014216 00000000000000.TH "DRUMGIZMO" "1" "21 juillet 2018" "drumgizmo" "" .SH NOM drumgizmo \- application de batterie .SH SYNOPSIS \fBdrumgizmo\fR [OPTIONS] fichier_de_kit_de_batterie .SH "DESCRIPTION" .PP \fBDrumGizmo\fR est un greffon ainsi qu'une application autonome de batterie multi-plateforme et à source ouverte. Il est comparable à plusieurs produits commerciaux de greffon de batterie. .PP DrumGizmo utilise un format de fichier de kit de batterie ouvert, permettant à la communauté de créer ses propres kits de batterie. Il possède une sortie multi-canaux, rendant possible de mixer exactement de même la manière que vous le feriez avec un kit de batterie réel. L'humaniseur optionnel inclu analyse les notes MIDI, en ajustant leurs vélocités à-la-volée. Ce client peut être utilisé comme un logiciel autonome effectuant un rendu MIDI, générant des fichiers .wav, 1 pour chaque canal. Ou bien, vous pouvez utilisez DrumGizmo comme un échantillonneur logiciel pour un kit de batterie électronique. Des versions en greffon sont également disponibles. .SH "OPTIONS" .PD 0 .RE \fB-a, --async_load\fR .RS 7 Charger le kit en arrière-plan. .RE \fB-b, --bleed\fR .RS 7 Paramètre et charge la repisse-maître. .RE \fB-i, --inputengine \fR{dummy|test|jackmidi|midifile} .RS 7 Utilise le moteur d'entrée d'évènements indiqué. .RE \fB-I, --inputparms liste_de_paramètres\fR .RS 7 Attribue des paramètres au moteur d'entrée. \fBjackmidi:\fR .P midimap= \fBmidifile:\fR .P file= .P speed= (1.0 par défaut) .P track= (-1 par défaut, toutes les pistes) .P midimap= .P loop= \fBossmidi:\fR .P midimap= .P dev= (défaut '/dev/midi') \fBtest:\fR .P p= (0.1 par défaut) .P instr= (-1 par défaut, instrument aléatoire) .P len= (-1 par défaut, toujours) \fBdummy:\fR .RE \fB-o, --outputengine \fR{dummy|alsa|jackaudio|wavfile|oss} .RS 7 Utilise le moteur de sortie audio indiqué. .RE \fB-O, --outputparms liste_de_paramètres\fR .RS 7 Attribue des paramètres au moteur de sortie. \fBalsa:\fR .P dev= ('default' par défaut) .P frames= (32 par défaut) .P srate= (44100 par défaut) \fBwavfile:\fR .P file= ('output' par défaut) .P srate= (44100 par défaut) \fBoss:\fR .P dev= (/dev/dsp par défaut) .P srate= (44100 par défaut) .P max_fragments= (4 par défaut) .P fragment_size= (8 par défaut) .P Davantage d'informations sur \fBmax_fragments\fR et \fBfragment_size\fR sur la page http://manuals.opensound.com/developer/SNDCTL_DSP_SETFRAGMENT.html (en anglais) \fBjackaudio:\fR \fBdummy:\fR .RE \fB-e, --endpos\fR .RS 7 Nombre d'échantillons à traiter, (-1 par défaut : infini) .RE \fB-r, --no-resampling\fR .RS 7 Désactiver le ré-échantillonnage .RE \fB-s, --streaming\fR .RS 7 Active le streaming du disque .RE \fB-S, --strimingparms liste_de_paramètres\fR .RS 7 Paramètres pour le contrôle des tampons de streaming. .P \fBlimit\fR= (Limite à cette taille, la quantité de données du kit de batterie préchargées) \" .P \" \fBchunk_size\fR= (taille de la quantité en k,M,G) .RE \fB-t, --timing-humanizer\fR .RS 7 Active la possibilité de déplacer les notes dans le temps. .P \fINote : \fIajoute \fIde \fIla \fIlatence \fIdans \fIla \fIsortie - \fIne \fIpas \fIutiliser \fIavec \fIun \fIkit \fImidi \fItemps-réel. .RE \fB-T, --timing-humanizerparms parmlist\fR .RS 7 Options du timing de l'humaniseur. .P \fBlaidback\fR= (Déplace les notes avant ou après le temps en ms [+/-100].) .P \fBtightness\fR= (Contrôle la précision du batteur. [0; 1].) .P \fBregain\fR= (Contrôle la rapidité avec laquelle le batteur se rattrape au tempo. [0; 1]) .RE \fB-p, --parameters parmlist\fR .RS 7 Paramètres de l'algorithme de sélection des échantillons. .P \fBclose\fR= (L'importance accordée au choix d'un échantillon proche de la valeur réelle de la vitesse (après humanisation) [0; 16]) .P \fBdiverse\fR= (L'importance accordée au choix d'échantillons qui n'ont pas été joués récemment [0; 0.5]) .P \fBrandom\fR= (La quantité d'aléatoire ajoutée [0; 0.5]) .P \fBstddev\fR= (L'écart type pour la sélection de l'échantillon. Plus la valeur est élevée, plus il est probable qu'un échantillon plus éloigné de la vitesse d'entrée sera joué [0; 4.5]) .RE \fB-v, --version\fR .RS 7 Affiche la version de drumgizmo puis quitte. .RE \fB-h, --help\fR .RS 7 Affiche l'aide de commande terminal puis quitte. .RE \fBfichier_de_kit_de_batterie\fR .RS 7 Charge le fichier_de_kit_de_batterie. .RE .SH "EXEMPLES" \fBEffectuer un rendu d'un fichier_midi vers des fichiers wav :\fR .RS 7 drumgizmo -i fichier_midi -I file=fichier.mid,midimap=midimap.xml -o wavfile -O file=prefix drumkit.xml .RE \fBRecevoir le MIDI depuis Jack et envoyer la sortie audio vers les haut-parleurs :\fR .RS 7 drumgizmo -i jackmidi -I midimap=midimap.xml -o jackaudio drumkit.xml .RE .SH "BOGUES" Rapporter les bogues à http://www.drumgizmo.org/wiki/doku.php?id=bugs (en anglais). .SH "INFORMATIONS ADDITIONELLES" Pour davantage d'informations, visitez le site internet http://www.drumgizmo.org. drumgizmo-0.9.18.1/man/Makefile.am0000644000076400007640000000015313515375733013540 00000000000000man_MANS = \ drumgizmo.1 \ drumgizmo.fr.1 \ dgvalidator.1 \ dgvalidator.fr.1 EXTRA_DIST = $(man_MANS) drumgizmo-0.9.18.1/man/dgvalidator.fr.10000644000076400007640000000234213515375733014476 00000000000000.TH "DGVALIDATOR" "1" "29 juin 2019" "dgvalidator" "" .SH NOM dgvalidator \- validateur de kit de batterie drumgizmo .SH SYNOPSIS \fBdgvalidator\fR |-h|--help .SH "DESCRIPTION" .PP \fBDgvalidator\fR est un outil de validation simple pour les fichiers de kit de batterie drumgizmo. .PP Dgvalidator va essayer de charger le kit de batterue pointé par le fichier de kit batterie et de le valider. Il valide à la fois le xml du kit de batterie et tous les fichiers d'instruments qui y sont référencés, ainsi que la sémantique du contenu - y compris la vérification de l'existence et de la validité de tous les fichiers audio référencés par ces instruments. .SH "OPTIONS" .PD 0 .RE \fB-h, --help\fR .RS 7 Imprimer l'aide en ligne de commande et quitter. .RE \fBfichier_de_kit_de_batterie\fR .RS 7 Le fichier de kit de batterie à vérifier. .RE .SH "BOGUES" Signaler les bogues http://www.drumgizmo.org/wiki/doku.php?id=bugs. .SH "INFORMATIONS COMPLÉMENTAIRES" Pour plus d'informations, visitez le site http://www.drumgizmo.org. .PP Cette page de manuel en français a été traduite par Olivier HUMBERT .B , dans le cadre du projet LibraZiK (mais peut être utilisée par d'autres). drumgizmo-0.9.18.1/missing0000755000076400007640000001533113535462603012327 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2016-01-11.22; # UTC # Copyright (C) 1996-2017 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: drumgizmo-0.9.18.1/plugingui/0000755000076400007640000000000013554101262013000 500000000000000drumgizmo-0.9.18.1/plugingui/knob.cc0000644000076400007640000001246113515043621014165 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * knob.cc * * Thu Feb 28 07:37:27 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "knob.h" #include "painter.h" #include #include // M_PI is not defined in math.h if __STRICT_ANSI__ is defined. #ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ #endif #include namespace GUI { Knob::Knob(Widget *parent) : Widget(parent) , img_knob(getImageCache(), ":resources/knob.png") { state = up; maximum = 1.0; minimum = 0.0; current_value = 0.0; mouse_offset_x = 0; } void Knob::setValue(float value) { value -= minimum; value /= (maximum - minimum); internalSetValue(value); } void Knob::setDefaultValue(float value) { default_value = value; } void Knob::setRange(float minimum, float maximum) { this->minimum = minimum; this->maximum = maximum; internalSetValue(current_value); } float Knob::value() { return current_value * (maximum - minimum) + minimum; } void Knob::showValue(bool show_value) { this->show_value = show_value; } void Knob::scrollEvent(ScrollEvent* scrollEvent) { float value = (current_value - (scrollEvent->delta / 200.0)); internalSetValue(value); } void Knob::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(state == down) { if(mouse_offset_x == (mouseMoveEvent->x + (-1 * mouseMoveEvent->y))) { return; } float dval = mouse_offset_x - (mouseMoveEvent->x + (-1 * mouseMoveEvent->y)); float value = current_value - (dval / 300.0); internalSetValue(value); mouse_offset_x = mouseMoveEvent->x + (-1 * mouseMoveEvent->y); } } void Knob::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::up) { return; } float value = current_value; switch(keyEvent->keycode) { case Key::up: value += 0.01; break; case Key::down: value -= 0.01; break; case Key::right: value += 0.01; break; case Key::left: value -= 0.01; break; case Key::home: value = 0; break; case Key::end: value = 1; break; default: break; } internalSetValue(value); } void Knob::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->doubleClick) { float value = default_value; value -= minimum; value /= (maximum - minimum); internalSetValue(value); return; } if(buttonEvent->direction == Direction::down) { state = down; mouse_offset_x = buttonEvent->x + (-1 * buttonEvent->y); return; } if(buttonEvent->direction == Direction::up) { state = up; mouse_offset_x = buttonEvent->x + (-1 * buttonEvent->y); clicked(); return; } } void Knob::repaintEvent(RepaintEvent* repaintEvent) { int diameter = (width()>height()?height():width()); int radius = diameter / 2; int center_x = width() / 2; int center_y = height() / 2; Painter p(*this); p.clear(); p.drawImageStretched(0, 0, img_knob, diameter, diameter); float range = maximum - minimum; if (show_value) { // Show 0, 1 or 2 decimal point depending on the size of the range char buf[64]; if(range> 100.0f) { sprintf(buf, "%.0f", current_value * range + minimum); } else if(range > 10.0f) { sprintf(buf, "%.1f", current_value * range + minimum); } else { sprintf(buf, "%.2f", current_value * range + minimum); } p.drawText(center_x - font.textWidth(buf) / 2 + 1, center_y + font.textHeight(buf) / 2 + 1, font, buf); } // Make it start from 20% and stop at 80% double padval = current_value * 0.8 + 0.1; double from_x = sin((-1 * padval + 1) * 2 * M_PI) * radius * 0.6; double from_y = cos((-1 * padval + 1) * 2 * M_PI) * radius * 0.6; double to_x = sin((-1 * padval + 1) * 2 * M_PI) * radius * 0.8; double to_y = cos((-1 * padval + 1) * 2 * M_PI) * radius * 0.8; // Draw "fat" line by drawing 9 lines with moved start/ending points. p.setColour(Colour(1.0f, 0.0f, 0.0f, 1.0f)); for(int _x = -1; _x < 2; _x++) { for(int _y = -1; _y < 2; _y++) { p.drawLine(from_x + center_x + _x, from_y + center_y + _y, to_x + center_x + _x, to_y + center_y + _y); } } } void Knob::internalSetValue(float new_value) { if(new_value < 0.0) { new_value = 0.0; } if(new_value > 1.0) { new_value = 1.0; } if(new_value == current_value) { return; } current_value = new_value; valueChangedNotifier(value()); redraw(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/combobox.h0000644000076400007640000000420013443403213014673 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * combobox.h * * Sun Mar 10 19:04:50 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" #include "font.h" #include "listboxthin.h" #include "painter.h" #include "texturedbox.h" namespace GUI { class ComboBox : public Widget { public: ComboBox(Widget* parent); virtual ~ComboBox(); void addItem(std::string name, std::string value); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; Notifier valueChangedNotifier; private: TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 void listboxSelectHandler(); Font font; ListBoxThin listbox; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/sampleselectionframecontent.cc0000644000076400007640000000755013551153106021034 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * sampleselectionframecontent.cc * * Sat May 11 15:29:25 CEST 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "sampleselectionframecontent.h" #include #include "painter.h" namespace GUI { SampleselectionframeContent::SampleselectionframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) { layout.setResizeChildren(false); f_close.resize(80, 80); f_close_knob.resize(30, 30); f_close_knob.showValue(false); f_close_knob.setDefaultValue(Settings::sample_selection_f_close_default); f_close.setControl(&f_close_knob); layout.addItem(&f_close); f_diverse.resize(80, 80); f_diverse_knob.resize(30, 30); f_diverse_knob.showValue(false); f_diverse_knob.setDefaultValue(Settings::sample_selection_f_diverse_default); f_diverse.setControl(&f_diverse_knob); layout.addItem(&f_diverse); f_random.resize(80, 80); f_random_knob.resize(30, 30); f_random_knob.showValue(false); f_random_knob.setDefaultValue(Settings::sample_selection_f_random_default); f_random.setControl(&f_random_knob); layout.addItem(&f_random); layout.setPosition(&f_close, GridLayout::GridRange{0, 1, 0, 1}); layout.setPosition(&f_diverse, GridLayout::GridRange{1, 2, 0, 1}); layout.setPosition(&f_random, GridLayout::GridRange{2, 3, 0, 1}); CONNECT(this, settings_notifier.sample_selection_f_close, this, &SampleselectionframeContent::fCloseSettingsValueChanged); CONNECT(this, settings_notifier.sample_selection_f_diverse, this, &SampleselectionframeContent::fDiverseSettingsValueChanged); CONNECT(this, settings_notifier.sample_selection_f_random, this, &SampleselectionframeContent::fRandomSettingsValueChanged); CONNECT(&f_close_knob, valueChangedNotifier, this, &SampleselectionframeContent::fCloseKnobValueChanged); CONNECT(&f_diverse_knob, valueChangedNotifier, this, &SampleselectionframeContent::fDiverseKnobValueChanged); CONNECT(&f_random_knob, valueChangedNotifier, this, &SampleselectionframeContent::fRandomKnobValueChanged); } void SampleselectionframeContent::fCloseKnobValueChanged(float value) { settings.sample_selection_f_close.store(value); } void SampleselectionframeContent::fDiverseKnobValueChanged(float value) { settings.sample_selection_f_diverse.store(value); } void SampleselectionframeContent::fRandomKnobValueChanged(float value) { settings.sample_selection_f_random.store(value); } void SampleselectionframeContent::fCloseSettingsValueChanged(float value) { f_close_knob.setValue(value); } void SampleselectionframeContent::fDiverseSettingsValueChanged(float value) { f_diverse_knob.setValue(value); } void SampleselectionframeContent::fRandomSettingsValueChanged(float value) { f_random_knob.setValue(value); } } // GUI:: drumgizmo-0.9.18.1/plugingui/rcgen.cc0000644000076400007640000000402713331526613014334 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * rcgen.cc * * Sun Mar 17 20:27:17 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include int main(int argc, char *argv[]) { printf("/* This file is autogenerated by rcgen. Do not modify! */\n"); printf("#include \"resource_data.h\"\n"); printf("\n"); printf("const rc_data_t rc_data[] =\n"); printf("{\n"); int i = 1; while(i < argc) { printf(" {\n \":%s\", ", argv[i]); std::string data; FILE *fp = fopen(argv[i], "rb"); if(!fp) { fprintf(stderr, "Could not read file '%s' - quitting\n", argv[i]); return 1; } char buf[32]; while(!feof(fp)) { std::size_t sz = fread(buf, 1, sizeof(buf), fp); data.append(buf, sz); } fclose(fp); printf("%d,\n \"", (int)data.length()); for(std::size_t j = 0; j < data.length(); ++j) { if((j != 0) && (j % 16) == 0) { printf("\"\n \""); } printf("\\%o", (unsigned char)data[j]); } printf("\"\n },\n"); ++i; } printf(" { \"\", 0, 0 }\n"); printf("};\n"); return 0; } drumgizmo-0.9.18.1/plugingui/statusframecontent.cc0000644000076400007640000001102713551153106017162 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * statusframecontent.cc * * Fri Mar 24 21:49:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "statusframecontent.h" namespace GUI { StatusframeContent::StatusframeContent(Widget* parent, SettingsNotifier& settings_notifier) : Widget(parent), settings_notifier(settings_notifier) { CONNECT(this, settings_notifier.drumkit_load_status, this, &StatusframeContent::updateDrumkitLoadStatus); CONNECT(this, settings_notifier.drumkit_name, this, &StatusframeContent::updateDrumkitName); CONNECT(this, settings_notifier.drumkit_description, this, &StatusframeContent::updateDrumkitDescription); CONNECT(this, settings_notifier.drumkit_version, this, &StatusframeContent::updateDrumkitVersion); CONNECT(this, settings_notifier.midimap_load_status, this, &StatusframeContent::updateMidimapLoadStatus); CONNECT(this, settings_notifier.buffer_size, this, &StatusframeContent::updateBufferSize); CONNECT(this, settings_notifier.number_of_underruns, this, &StatusframeContent::updateNumberOfUnderruns); CONNECT(this, settings_notifier.load_status_text, this, &StatusframeContent::loadStatusTextChanged); text_field.move(0, 0); text_field.setReadOnly(true); updateContent(); text_field.show(); } void StatusframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_field.resize(width, height); } void StatusframeContent::updateContent() { text_field.setText( "Drumkit status: " + drumkit_load_status + "\n" // "Midimap status: " + midimap_load_status + "\n" "Drumkit name: " + drumkit_name + "\n" "Drumkit description: " + drumkit_description + "\n" // "Drumkit version: " + drumkit_version + "\n" "Session buffer size: " + buffer_size + "\n" "Number of underruns: " + number_of_underruns + "\n" + "Messages:\n" + messages ); } void StatusframeContent::updateDrumkitLoadStatus(LoadStatus load_status) { switch(load_status) { case LoadStatus::Idle: drumkit_load_status = "No Kit Loaded"; break; case LoadStatus::Loading: drumkit_load_status = "Loading..."; break; case LoadStatus::Done: drumkit_load_status = "Ready"; break; case LoadStatus::Error: drumkit_load_status = "Error"; break; } updateContent(); } void StatusframeContent::updateDrumkitName(const std::string& drumkit_name) { this->drumkit_name = drumkit_name; updateContent(); } void StatusframeContent::updateDrumkitDescription(const std::string& drumkit_description) { this->drumkit_description = drumkit_description; updateContent(); } void StatusframeContent::updateDrumkitVersion(const std::string& drumkit_version) { this->drumkit_version = drumkit_version; updateContent(); } void StatusframeContent::updateMidimapLoadStatus(LoadStatus load_status) { switch(load_status) { case LoadStatus::Idle: midimap_load_status = "No Midimap Loaded"; break; case LoadStatus::Loading: midimap_load_status = "Loading..."; break; case LoadStatus::Done: midimap_load_status = "Ready"; break; case LoadStatus::Error: midimap_load_status = "Error"; break; } updateContent(); } void StatusframeContent::updateBufferSize(std::size_t buffer_size) { this->buffer_size = std::to_string(buffer_size); updateContent(); } void StatusframeContent::updateNumberOfUnderruns(std::size_t number_of_underruns) { this->number_of_underruns = std::to_string(number_of_underruns); updateContent(); } void StatusframeContent::loadStatusTextChanged(const std::string& text) { messages = text; updateContent(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/abouttab.h0000644000076400007640000000305113340266453014700 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * abouttab.h * * Fri Apr 21 18:51:13 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "resource.h" #include "textedit.h" #include namespace GUI { class AboutTab : public Widget { public: AboutTab(Widget* parent); // From Widget: void resize(std::size_t width, std::size_t height) override; private: std::string getAboutText(); TextEdit text_edit{this}; int margin{10}; Resource about{":../ABOUT"}; Resource bugs{":../BUGS"}; Resource authors{":../AUTHORS"}; Resource gpl{":../COPYING"}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/button_base.cc0000644000076400007640000000446213331526613015546 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * button_base.cc * * Sat Apr 15 21:45:30 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "button_base.h" namespace GUI { ButtonBase::ButtonBase(Widget *parent) : Widget(parent) , draw_state(State::Up) , button_state(State::Up) { } ButtonBase::~ButtonBase() { } void ButtonBase::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(!enabled || buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { draw_state = State::Down; button_state = State::Down; in_button = true; redraw(); } if(buttonEvent->direction == Direction::up) { draw_state = State::Up; button_state = State::Up; redraw(); if(in_button) { clicked(); clickNotifier(); } } } void ButtonBase::setText(const std::string& text) { this->text = text; redraw(); } void ButtonBase::setEnabled(bool enabled) { this->enabled = enabled; redraw(); } bool ButtonBase::isEnabled() const { return enabled; } void ButtonBase::mouseLeaveEvent() { if (!enabled) { return; } in_button = false; if(button_state == State::Down) { draw_state = State::Up; redraw(); } } void ButtonBase::mouseEnterEvent() { if (!enabled) { return; } in_button = true; if(button_state == State::Down) { draw_state = State::Down; redraw(); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/font.h0000644000076400007640000000337513331526613014053 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * font.h * * Sat Nov 12 11:13:41 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "pixelbuffer.h" #include "image.h" namespace GUI { class Font { public: Font(const std::string& fontfile = ":resources/font.png"); size_t textWidth(const std::string& text) const; size_t textHeight(const std::string& text = "") const; void setLetterSpacing(int letterSpacing); int letterSpacing() const; PixelBufferAlpha *render(const std::string& text) const; private: Image img_font; class Character { public: std::size_t offset{0}; std::size_t width{0}; int pre_bias{0}; int post_bias{0}; }; std::array characters; int spacing{1}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/tooltip.h0000644000076400007640000000416413511117026014566 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * tooltip.h * * Wed May 8 17:31:42 CEST 2019 * Copyright 2019 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "widget.h" #include "painter.h" #include "texturedbox.h" #include "font.h" namespace GUI { class Tooltip : public Widget { public: Tooltip(Widget *parent); virtual ~Tooltip(); void setText(const std::string& text); // From Widget: virtual void repaintEvent(RepaintEvent* repaint_event) override; virtual void resize(std::size_t height, std::size_t width) override; virtual void mouseLeaveEvent() override; virtual void show() override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; private: void preprocessText(); TexturedBox box{getImageCache(), ":resources/thinlistbox.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 1, 1, 1}; // dy1, dy2, dy3 Font font; static constexpr int x_border{10}; static constexpr int y_border{8}; bool needs_preprocessing{false}; std::string text; std::vector preprocessed_text; std::size_t max_text_width{0}; std::size_t total_text_height{0}; Widget* activating_widget; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/powerbutton.cc0000644000076400007640000000342313340266454015631 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * powerbutton.cc * * Thu Mar 23 12:30:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "powerbutton.h" #include "painter.h" namespace GUI { PowerButton::PowerButton(Widget* parent) : Toggle(parent) { } void PowerButton::setEnabled(bool enabled) { this->enabled = enabled; redraw(); } void PowerButton::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); // disabled if(!enabled) { if(clicked) { p.drawImage(0, 0, disabled_clicked); } else { p.drawImage(0, 0, disabled); } return; } // enabled and on if(state) { if(clicked) { p.drawImage(0, 0, on_clicked); } else { p.drawImage(0, 0, on); } return; } // enabled and off if(clicked) { p.drawImage(0, 0, off_clicked); } else { p.drawImage(0, 0, off); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/slider.cc0000644000076400007640000001057713340266454014533 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * slider.cc * * Sat Nov 26 18:10:22 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "slider.h" #include "painter.h" #include #include namespace GUI { Slider::Slider(Widget* parent) : Widget(parent) { state = State::up; current_value = 0.0; maximum = 1.0; minimum = 0.0; } void Slider::setValue(float new_value) { current_value = new_value; if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } redraw(); clickNotifier(); valueChangedNotifier(current_value); } float Slider::value() const { return current_value; } void Slider::setColour(Colour colour) { switch (colour) { case Colour::Green: active_inner_bar = &inner_bar_green; break; case Colour::Red: active_inner_bar = &inner_bar_red; break; case Colour::Blue: active_inner_bar = &inner_bar_blue; break; case Colour::Yellow: active_inner_bar = &inner_bar_yellow; break; case Colour::Purple: active_inner_bar = &inner_bar_purple; break; case Colour::Grey: active_inner_bar = &inner_bar_grey; break; } if (enabled) { inner_bar = active_inner_bar; } } void Slider::setEnabled(bool enabled) { this->enabled = enabled; if (enabled) { inner_bar = active_inner_bar; } else { active_inner_bar = inner_bar; inner_bar = &inner_bar_light_grey; } redraw(); } void Slider::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); auto inner_offset = (current_value / maximum) * getControlWidth(); auto button_x = button_offset + inner_offset - (button.width() / 2); auto button_y = (height() - button.height()) / 2; // draw bar bar.setSize(width(), height()); p.drawImage(0, 0, bar); // draw inner bar inner_bar->setSize(button_x - bar_boundary, height() - 2 * bar_boundary); p.drawImage(bar_boundary, bar_boundary, *inner_bar); // draw button p.drawImage(button_x, button_y, button); } void Slider::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(!enabled || buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { state = State::down; recomputeCurrentValue(buttonEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } if(buttonEvent->direction == Direction::up) { state = State::up; recomputeCurrentValue(buttonEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } } void Slider::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(state == State::down) { recomputeCurrentValue(mouseMoveEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } } void Slider::scrollEvent(ScrollEvent* scrollEvent) { if (!enabled) { return; } current_value -= scrollEvent->delta/(float)getControlWidth(); if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } redraw(); clickNotifier(); valueChangedNotifier(current_value); } std::size_t Slider::getControlWidth() const { if(width() < 2 * button_offset) { return 0; } return width() - 2 * button_offset; } void Slider::recomputeCurrentValue(float x) { if(x < button_offset) { current_value = 0; } else { current_value = (x - button_offset) / getControlWidth(); } if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } } } // GUI:: drumgizmo-0.9.18.1/plugingui/diskstreamingframecontent.cc0000644000076400007640000000751413340266453020517 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * diskstreamingframecontent.cc * * Fri Mar 24 21:50:07 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "diskstreamingframecontent.h" #include #include namespace GUI { DiskstreamingframeContent::DiskstreamingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , slider_width{250} , settings(settings) , settings_notifier(settings_notifier) { label_text.setText("Cache limit (max memory usage):"); label_text.setAlignment(TextAlignment::center); button.setText("Apply"); button.setEnabled(false); label_value.setText("0 MB"); label_value.setAlignment(TextAlignment::center); CONNECT(this, settings_notifier.disk_cache_upper_limit, this, &DiskstreamingframeContent::limitSettingsValueChanged); CONNECT(&slider, valueChangedNotifier, this, &DiskstreamingframeContent::limitValueChanged); CONNECT(&button, clickNotifier, this, &DiskstreamingframeContent::reloadClicked); CONNECT(this, settings_notifier.reload_counter, this, &DiskstreamingframeContent::reloaded); // TODO: // CONNECT(this, settings_notifier.disk_cache_chunk_size, // this, &DGWindow::chunkSettingsValueChanged); // CONNECT(this, settings_notifier.number_of_underruns, // this, &DGWindow::underrunsChanged); } void DiskstreamingframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); int slider_button_gap = 10; slider_width = 0.8 * width; button_width = std::max((int)width - slider_width - slider_button_gap, 0); label_text.move(0, 0); slider.move(0, 20); button.move(slider_width + slider_button_gap, 10); label_value.move(0, 40); label_text.resize(slider_width, 15); slider.resize(slider_width, 15); button.resize(button_width, 30); label_value.resize(slider_width, 15); button.setEnabled(false); } void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value) { float new_slider_value = (float)(value - min_limit)/(max_limit - min_limit); slider.setValue(new_slider_value); if (new_slider_value < 0.99) { int value_in_mb = value/(1024 * 1024); label_value.setText(std::to_string(value_in_mb) + " MB"); slider.setColour(Slider::Colour::Blue); } else { label_value.setText("Unlimited"); slider.setColour(Slider::Colour::Grey); } button.setEnabled(true); } void DiskstreamingframeContent::limitValueChanged(float value) { std::size_t new_limit = value < 0.99 ? value * (max_limit - min_limit) + min_limit : std::numeric_limits::max(); settings.disk_cache_upper_limit.store(new_limit); } void DiskstreamingframeContent::reloadClicked() { settings.reload_counter++; } void DiskstreamingframeContent::reloaded(std::size_t) { button.setEnabled(false); } } // GUI:: drumgizmo-0.9.18.1/plugingui/painter.cc0000644000076400007640000002677713515375734014732 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * painter.cc * * Wed Oct 12 19:48:45 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "painter.h" #include #include #include "pixelbuffer.h" #include "font.h" #include "drawable.h" #include "image.h" #include "canvas.h" namespace GUI { Painter::Painter(Canvas& canvas) : pixbuf(canvas.GetPixelBuffer()) { colour = Colour(0.0f, 0.0f, 0.0f, 0.5f); } Painter::~Painter() { } void Painter::setColour(const Colour& colour) { this->colour = colour; } static void plot(PixelBufferAlpha& pixbuf, const Colour& colour, int x, int y, double c) { if((x >= (int)pixbuf.width) || (y >= (int)pixbuf.height) || (x < 0) || (y < 0)) { return; } // plot the pixel at (x, y) with brightness c (where 0 ≤ c ≤ 1) pixbuf.addPixel(x, y, (unsigned char)(colour.red() * 255.0), (unsigned char)(colour.green() * 255.0), (unsigned char)(colour.blue() * 255.0), (unsigned char)(colour.alpha() * 255 * c)); } static inline double fpart(double x) { return x - std::floor(x);// fractional part of x } static inline double rfpart(double x) { return 1 - fpart(x); // reverse fractional part of x } void Painter::drawLine(int x0, int y0, int x1, int y1) { bool steep = abs(y1 - y0) > abs(x1 - x0); if(steep) { std::swap(x0, y0); std::swap(x1, y1); } if(x0 > x1) { std::swap(x0, x1); std::swap(y0, y1); } double dx = x1 - x0; double dy = y1 - y0; double gradient = dy / dx; // Handle first endpoint: double xend = std::round(x0); double yend = y0 + gradient * (xend - x0); double xpxl1 = xend; // this will be used in the main loop double ypxl1 = std::floor(yend); if(steep) { plot(pixbuf, colour, ypxl1, xpxl1, 1); } else { plot(pixbuf, colour, xpxl1, ypxl1, 1); } double intery = yend + gradient; // first y-intersection for the main loop // Handle second endpoint: xend = std::round(x1); yend = y1 + gradient * (xend - x1); double xpxl2 = xend; // this will be used in the main loop double ypxl2 = std::floor(yend); if(steep) { plot(pixbuf, colour, ypxl2, xpxl2, 1); } else { plot(pixbuf, colour, xpxl2, ypxl2, 1); } // main loop for(int x = xpxl1 + 1; x <= xpxl2 - 1; ++x) { if(steep) { plot(pixbuf, colour, std::floor(intery) , x, rfpart(intery)); plot(pixbuf, colour, std::floor(intery)+1, x, fpart(intery)); } else { plot(pixbuf, colour, x, std::floor(intery), rfpart(intery)); plot(pixbuf, colour, x, std::floor(intery)+1, fpart(intery)); } intery += gradient; } } void Painter::drawRectangle(int x1, int y1, int x2, int y2) { drawLine(x1, y1, x2 - 1, y1); drawLine(x2, y1, x2, y2 - 1); drawLine(x1 + 1, y2, x2, y2); drawLine(x1, y1 + 1, x1, y2); } void Painter::drawFilledRectangle(int x1, int y1, int x2, int y2) { for(int y = y1; y <= y2; ++y) { drawLine(x1, y, x2, y); } } void Painter::clear() { for(int x = 0; x < (int)pixbuf.width; ++x) { for(int y = 0; y < (int)pixbuf.height; ++y) { pixbuf.setPixel(x, y, 0, 0, 0, 0); } } } void Painter::drawText(int x0, int y0, const Font& font, const std::string& text, bool nocolour) { PixelBufferAlpha* textbuf = font.render(text); y0 -= textbuf->height; // The y0 offset (baseline) is the bottom of the text. // If the text offset is outside the buffer; skip it. if((x0 > (int)pixbuf.width) || (y0 > (int)pixbuf.height)) { delete textbuf; return; } // Make sure we don't try to draw outside the pixbuf. int renderWidth = textbuf->width; if(renderWidth > (int)(pixbuf.width - x0)) { renderWidth = pixbuf.width - x0; } int renderHeight = textbuf->height; if(renderHeight > ((int)pixbuf.height - y0)) { renderHeight = ((int)pixbuf.height - y0); } if(nocolour) { for(int y = -1 * std::min(0, y0); y < renderHeight; ++y) { for(int x = -1 * std::min(0, x0); x < renderWidth; ++x) { unsigned char r, g, b, a; assert(x >= 0); assert(y >= 0); assert(x < (int)textbuf->width); assert(y < (int)textbuf->height); textbuf->pixel(x, y, &r, &g, &b, &a); assert(x + x0 >= 0); assert(y + y0 >= 0); assert(x + x0 < (int)pixbuf.width); assert(y + y0 < (int)pixbuf.height); pixbuf.addPixel(x + x0, y + y0, r, g, b, a); } } } else { for(int y = -1 * std::min(0, y0); y < renderHeight; ++y) { for(int x = -1 * std::min(0, x0); x < renderWidth; ++x) { unsigned char r,g,b,a; assert(x >= 0); assert(y >= 0); assert(x < (int)textbuf->width); assert(y < (int)textbuf->height); textbuf->pixel(x, y, &r, &g, &b, &a); assert(x + x0 >= 0); assert(y + y0 >= 0); assert(x + x0 < (int)pixbuf.width); assert(y + y0 < (int)pixbuf.height); pixbuf.addPixel(x + x0, y + y0, colour.red() * 255, colour.green() * 255, colour.blue() * 255, colour.alpha() * a); } } } delete textbuf; } void Painter::drawPoint(int x, int y) { pixbuf.setPixel(x, y, (unsigned char)(colour.red() * 255.0), (unsigned char)(colour.green() * 255.0), (unsigned char)(colour.blue() * 255.0), (unsigned char)(colour.alpha() * 255.0)); } static void plot4points(Painter *p, int cx, int cy, int x, int y) { p->drawPoint(cx + x, cy + y); if(x != 0) { p->drawPoint(cx - x, cy + y); } if(y != 0) { p->drawPoint(cx + x, cy - y); } if(x != 0 && y != 0) { p->drawPoint(cx - x, cy - y); } } void Painter::drawCircle(int cx, int cy, double radius) { int error = -radius; int x = radius; int y = 0; while(x >= y) { plot4points(this, cx, cy, x, y); if(x != y) { plot4points(this, cx, cy, y, x); } error += y; ++y; error += y; if(error >= 0) { --x; error -= x; error -= x; } } } static void plot4lines(Painter *p, int cx, int cy, int x, int y) { p->drawLine(cx + x, cy + y, cx - x, cy + y); if(x != 0) { p->drawLine(cx - x, cy + y, cx + x, cy + y); } if(y != 0) { p->drawLine(cx + x, cy - y, cx - x, cy - y); } if(x != 0 && y != 0) { p->drawLine(cx - x, cy - y, cx + x, cy - y); } } void Painter::drawFilledCircle(int cx, int cy, int radius) { int error = -radius; int x = radius; int y = 0; while(x >= y) { plot4lines(this, cx, cy, x, y); if(x != y) { plot4lines(this, cx, cy, y, x); } error += y; ++y; error += y; if(error >= 0) { --x; error -= x; error -= x; } } } void Painter::drawImage(int x0, int y0, const Drawable& image) { int fw = image.width(); int fh = image.height(); // Make sure we don't try to draw outside the pixbuf. if(fw > (int)(pixbuf.width - x0)) { fw = (int)(pixbuf.width - x0); } if(fh > (int)(pixbuf.height - y0)) { fh = (int)(pixbuf.height - y0); } if((fw < 1) || (fh < 1)) { return; } for(std::size_t y = -1 * std::min(0, y0); y < (std::size_t)fh; ++y) { for(std::size_t x = -1 * std::min(0, x0); x < (std::size_t)fw; ++x) { assert(x >= 0); assert(y >= 0); assert(x < image.width()); assert(y < image.height()); auto& c = image.getPixel(x, y); assert(x0 + x >= 0); assert(y0 + y >= 0); assert(x0 + x < pixbuf.width); assert(y0 + y < pixbuf.height); if (!has_restriction || c == restriction_colour) { pixbuf.addPixel(x0 + x, y0 + y, c); } } } } void Painter::drawRestrictedImage(int x0, int y0, Colour const& colour, const Drawable& image) { has_restriction = true; restriction_colour = colour; drawImage(x0, y0, image); has_restriction = false; } void Painter::drawImageStretched(int x0, int y0, const Drawable& image, int width, int height) { float fw = image.width(); float fh = image.height(); // Make sure we don't try to draw outside the pixbuf. if(width > (int)(pixbuf.width - x0)) { width = pixbuf.width - x0; } if(height > (int)(pixbuf.height - y0)) { height = pixbuf.height - y0; } if((width < 1) || (height < 1)) { return; } for(int y = -1 * std::min(0, y0); y < height; ++y) { for(int x = -1 * std::min(0, x0); x < width; ++x) { int lx = ((float)x / (float)width) * fw; int ly = ((float)y / (float)height) * fh; auto& c = image.getPixel(lx, ly); pixbuf.addPixel(x0 + x, y0 + y, c); } } } void Painter::drawBox(int x, int y, const Box& box, int width, int height) { int dx = x; int dy = y; // Top: drawImage(dx, dy, *box.topLeft); dx += box.topLeft->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.top, width - box.topRight->width() - box.topLeft->width(), box.top->height()); dx = x + width - box.topRight->width(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.topRight); // Center: dy = y + box.topLeft->height(); dx = x + box.left->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.center, width - box.left->width() - box.right->width(), height - box.topLeft->height() - box.bottomLeft->height()); // Mid: dx = x; dy = y + box.topLeft->height(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.left, box.left->width(), height - box.topLeft->height() - box.bottomLeft->height()); dx = x + width - box.right->width(); dy = y + box.topRight->height(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.right, box.right->width(), height - box.topRight->height() - box.bottomRight->height()); // Bottom: dx = x; dy = y + height - box.bottomLeft->height(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.bottomLeft); dx += box.bottomLeft->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.bottom, width - box.bottomRight->width() - box.bottomLeft->width(), box.bottom->height()); dx = x + width - box.bottomRight->width(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.bottomRight); } void Painter::drawBar(int x, int y, const Bar& bar, int width, int height) { if(width < ((int)bar.left->width() + (int)bar.right->width() + 1)) { width = bar.left->width() + bar.right->width() + 1; } drawImageStretched(x, y, *bar.left, bar.left->width(), height); drawImageStretched(x + bar.left->width(), y, *bar.center, width - bar.left->width() - bar.right->width(), height); drawImageStretched(x + width - bar.left->width(), y, *bar.right, bar.right->width(), height); } } // GUI:: drumgizmo-0.9.18.1/plugingui/knob.h0000644000076400007640000000453013340266453014033 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * knob.h * * Thu Feb 28 07:37:27 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "texture.h" #include "font.h" namespace GUI { class Knob : public Widget { public: Knob(Widget *parent); virtual ~Knob() = default; // From Widget: bool catchMouse() override { return true; } bool isFocusable() override { return true; } void setValue(float value); void setDefaultValue(float value); void setRange(float minimum, float maximum); float value(); void showValue(bool show_value); Notifier valueChangedNotifier; // (float newValue) protected: virtual void clicked() {} // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; private: //! Sets the internal value and sends out the changed notification. void internalSetValue(float value); typedef enum { up, down } state_t; state_t state; float current_value; float default_value = 0.0; float maximum; float minimum; bool show_value{true}; Texture img_knob; int mouse_offset_x; Font font; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/testmain.cc0000644000076400007640000000412213544125501015053 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * testmain.cc * * Sun Nov 22 20:06:42 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include "mainwindow.h" #include "window.h" int main() { INFO(example, "We are up and running"); void* native_window_handle{nullptr}; #ifndef UI_PUGL GUI::Window parent{nullptr}; parent.setCaption("PluginGui Test Application"); native_window_handle = parent.getNativeWindowHandle(); #endif Settings settings; GUI::MainWindow main_window(settings, native_window_handle); #ifndef UI_PUGL CONNECT(&parent, eventHandler()->closeNotifier, &main_window, &GUI::MainWindow::closeEventHandler); parent.show(); #endif main_window.show(); // TODO: automatically use drumgizmo_plugin.h size here #ifndef UI_PUGL parent.resize(750, 613); #else main_window.resize(750, 613); #endif while(true) { #ifndef UI_PUGL parent.eventHandler()->processEvents(); #endif if(!main_window.processEvents()) { break; } std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.18.1/plugingui/timingframecontent.h0000644000076400007640000000457313511117026016775 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * timingframecontent.h * * Sat Oct 14 19:39:33 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "knob.h" #include "label.h" #include "labeledcontrol.h" #include "layout.h" #include "widget.h" #include #include #include class SettingsNotifier; namespace GUI { class TimingframeContent : public Widget { public: TimingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); private: float thightnessKnobToSettings(float value) const; float tightnessSettingsToKnob(float value) const; float laidbackKnobToSettings(float value) const; float laidbackSettingsToKnob(float value) const; void tightnessKnobValueChanged(float value); void tightnessSettingsValueChanged(float value); void regainKnobValueChanged(float value); void regainSettingsValueChanged(float value); void laidbackKnobValueChanged(float value); void laidbackSettingsValueChanged(float value); void latencyOffsetChanged(int offset); void velocityOffsetChanged(float offset); GridLayout layout{this, 3, 1}; LabeledControl tightness{this, "pTightness"}; LabeledControl regain{this, "pTimingRegain"}; LabeledControl laidback{this, "pLaidback"}; Knob tightness_knob{&tightness}; Knob regain_knob{®ain}; Knob laidback_knob{&laidback}; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/layout.cc0000644000076400007640000001677513340266453014573 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * layout.cc * * Sat Mar 21 15:12:36 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "layout.h" #include "widget.h" #include namespace GUI { LayoutItem::LayoutItem() : parent(nullptr) { } LayoutItem::~LayoutItem() { setLayoutParent(nullptr); // Will disconnect from layout if any. } void LayoutItem::setLayoutParent(Layout* p) { if(this->parent) { this->parent->removeItem(this); } this->parent = p; } Layout::Layout(LayoutItem* parent) : parent(parent) { auto widget = dynamic_cast(parent); if(widget) { CONNECT(widget, sizeChangeNotifier, this, &Layout::sizeChanged); } } void Layout::addItem(LayoutItem* item) { items.push_back(item); item->setLayoutParent(this); layout(); } void Layout::removeItem(LayoutItem* item) { auto new_end = std::remove(items.begin(), items.end(), item); items.erase(new_end, items.end()); layout(); } void Layout::sizeChanged(int width, int height) { layout(); } // // BoxLayout // BoxLayout::BoxLayout(LayoutItem* parent) : Layout(parent) { } void BoxLayout::setResizeChildren(bool resizeChildren) { this->resizeChildren = resizeChildren; layout(); } void BoxLayout::setSpacing(size_t spacing) { this->spacing = spacing; layout(); } // // VBoxLayout // VBoxLayout::VBoxLayout(LayoutItem* parent) : BoxLayout(parent) , align(HAlignment::center) { } void VBoxLayout::layout() { size_t y = 0; size_t w = parent->width(); // size_t h = parent->height() / items.size(); LayoutItemList::iterator i = items.begin(); while(i != items.end()) { LayoutItem* item = *i; if(resizeChildren) { auto num_items = items.size(); auto empty_space = (num_items - 1) * spacing; auto available_space = parent->height(); if(available_space >= empty_space) { auto item_height = (available_space - empty_space) / num_items; item->resize(w, item_height); } else { // TODO: Should this case be handled differently? item->resize(w, 0); } } size_t x = 0; switch(align) { case HAlignment::left: x = 0; break; case HAlignment::center: x = (w / 2) - (item->width() / 2); break; case HAlignment::right: x = w - item->width(); break; } item->move(x, y); y += item->height() + spacing; ++i; } } void VBoxLayout::setHAlignment(HAlignment alignment) { align = alignment; } // // HBoxLayout // HBoxLayout::HBoxLayout(LayoutItem* parent) : BoxLayout(parent), align(VAlignment::center) { } void HBoxLayout::layout() { if(items.empty()) { return; } // size_t w = parent->width() / items.size(); size_t h = parent->height(); size_t x = 0; LayoutItemList::iterator i = items.begin(); while(i != items.end()) { LayoutItem* item = *i; if(resizeChildren) { auto num_items = items.size(); auto empty_space = (num_items - 1) * spacing; auto available_space = parent->width(); if(available_space >= empty_space) { auto item_width = (available_space - empty_space) / num_items; item->resize(item_width, h); } else { // TODO: Should this case be handled differently? item->resize(0, h); } item->move(x, 0); } else { size_t y = 0; switch(align) { case VAlignment::top: y = 0; break; case VAlignment::center: y = (h / 2) - (item->height() / 2); break; case VAlignment::bottom: y = h - item->height(); break; } int diff = 0; // w - item->width(); item->move(x + diff / 2, y); } x += item->width() + spacing; ++i; } } void HBoxLayout::setVAlignment(VAlignment alignment) { align = alignment; } // // GridLayout // GridLayout::GridLayout(LayoutItem* parent, std::size_t number_of_columns, std::size_t number_of_rows) : BoxLayout(parent) , number_of_columns(number_of_columns) , number_of_rows(number_of_rows) { } void GridLayout::removeItem(LayoutItem* item) { // manually remove from grid_ranges as remove_if doesn't work on an // unordered_map. auto it = grid_ranges.begin(); while(it != grid_ranges.end()) { if(it->first == item) { it = grid_ranges.erase(it); } else { ++it; } } Layout::removeItem(item); } void GridLayout::layout() { if(grid_ranges.empty()) { return; } // Calculate cell sizes auto cell_size = calculateCellSize(); for(auto const& pair : grid_ranges) { auto& item = *pair.first; auto const& range = pair.second; moveAndResize(item, range, cell_size); } } void GridLayout::setPosition(LayoutItem* item, GridRange const& range) { grid_ranges[item] = range; } int GridLayout::lastUsedRow(int column) const { int last_row = -1; for (auto const& grid_range : grid_ranges) { auto const& range = grid_range.second; if (column >= range.column_begin && column < range.column_end) { last_row = std::max(last_row, range.row_end - 1); } } return last_row; } int GridLayout::lastUsedColumn(int row) const { int last_column = -1; for (auto const& grid_range : grid_ranges) { auto const& range = grid_range.second; if (row >= range.row_begin && row < range.row_end) { last_column = std::max(last_column, range.column_end - 1); } } return last_column; } auto GridLayout::calculateCellSize() const -> CellSize { auto empty_width = (number_of_columns - 1) * spacing; auto available_width = parent->width(); auto empty_height = (number_of_rows - 1) * spacing; auto available_height = parent->height(); CellSize cell_size; if(available_width > empty_width && available_height > empty_height) { cell_size.width = (available_width - empty_width) / number_of_columns; cell_size.height = (available_height - empty_height) / number_of_rows; } else { cell_size.width = 0; cell_size.height = 0; } return cell_size; } void GridLayout::moveAndResize( LayoutItem& item, GridRange const& range, CellSize cell_size) const { std::size_t x = range.column_begin * (cell_size.width + spacing); std::size_t y = range.row_begin * (cell_size.height + spacing); std::size_t column_count = (range.column_end - range.column_begin); std::size_t row_count = (range.row_end - range.row_begin); std::size_t width = column_count * (cell_size.width + spacing) - spacing; std::size_t height = row_count * (cell_size.height + spacing) - spacing; if(resizeChildren) { item.move(x, y); if(cell_size.width * cell_size.height != 0) { item.resize(width, height); } else { item.resize(0, 0); } } else { auto x_new = (item.width() > width) ? x : x + (width - item.width()) / 2; auto y_new = (item.height() > height) ? y : y + (height - item.height()) / 2; item.move(x_new, y_new); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/window.cc0000644000076400007640000002042113551153106014536 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * window.cc * * Sun Oct 9 13:11:53 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "window.h" #include #include "painter.h" #ifndef UI_PUGL #ifdef UI_X11 #include "nativewindow_x11.h" #endif // UI_X11 #ifdef UI_WIN32 #include "nativewindow_win32.h" #endif // UI_WIN32 #ifdef UI_COCOA #include "nativewindow_cocoa.h" #endif // UI_COCOA #else #include "nativewindow_pugl.h" #endif // !UI_PUGL namespace GUI { Window::Window(void* native_window) : Widget(nullptr) , wpixbuf(1, 1) { // Make sure we have a valid size when initialising the NativeWindow _width = wpixbuf.width; _height = wpixbuf.height; #ifndef UI_PUGL #ifdef UI_X11 native = new NativeWindowX11(native_window, *this); #endif // UI_X11 #ifdef UI_WIN32 native = new NativeWindowWin32(native_window, *this); #endif // UI_WIN32 #ifdef UI_COCOA native = new NativeWindowCocoa(native_window, *this); #endif // UI_COCOA #else // Use pugl native = new NativeWindowPugl(native_window, *this); #endif // !UI_PUGL eventhandler = new EventHandler(*native, *this); setVisible(true); // The root widget is always visible. } Window::~Window() { delete native; delete eventhandler; } void Window::setFixedSize(int w, int h) { native->setFixedSize(w, h); } void Window::setAlwaysOnTop(bool always_on_top) { native->setAlwaysOnTop(always_on_top); } void Window::setCaption(const std::string& caption) { native->setCaption(caption); } //! This overload the resize method on Widget and simply requests a window resize //! on the windowmanager/OS. The resized() method is called by the event handler //! once the window has been resized. void Window::resize(std::size_t width, std::size_t height) { native->resize(width, height); } //! This overload the move method on Widget and simply requests a window move //! on the windowmanager/OS. The moved() method is called by the event handler //! once the window has been moved. void Window::move(int x, int y) { native->move(x, y); } void Window::show() { Widget::show(); redraw(); native->show(); } void Window::hide() { native->hide(); Widget::hide(); } Window* Window::window() { return this; } Size Window::getNativeSize() { auto sz = native->getSize(); return {sz.first, sz.second}; } ImageCache& Window::getImageCache() { return image_cache; } EventHandler* Window::eventHandler() { return eventhandler; } Widget* Window::keyboardFocus() { return _keyboardFocus; } void Window::setKeyboardFocus(Widget* widget) { auto oldFocusWidget = _keyboardFocus; _keyboardFocus = widget; if(oldFocusWidget) { oldFocusWidget->redraw(); } if(_keyboardFocus) { _keyboardFocus->redraw(); } } Widget* Window::buttonDownFocus() { return _buttonDownFocus; } void Window::setButtonDownFocus(Widget* widget) { _buttonDownFocus = widget; native->grabMouse(widget != nullptr); } Widget* Window::mouseFocus() { return _mouseFocus; } void Window::setMouseFocus(Widget* widget) { _mouseFocus = widget; } void Window::needsRedraw() { needs_redraw = true; } void* Window::getNativeWindowHandle() const { return native->getNativeWindowHandle(); } Point Window::translateToScreen(const Point& point) { return native->translateToScreen(point); } std::size_t Window::translateToWindowX() { return 0; } std::size_t Window::translateToWindowY() { return 0; } //! Called by event handler when an windowmanager/OS window resize event has //! been received. Do not call this directly. void Window::resized(std::size_t width, std::size_t height) { auto size = native->getSize(); if((wpixbuf.width != size.first) || (wpixbuf.height != size.second)) { wpixbuf.realloc(size.first, size.second); Widget::resize(size.first, size.second); } updateBuffer(); } //! Called by event handler when an windowmanager/OS window move event has //! been received. Do not call this directly. void Window::moved(int x, int y) { // Make sure widget coordinates are updated. Widget::move(x, y); } bool Window::updateBuffer() { if(!native) { return false; } if(!needs_redraw) { // Nothing changed, don't update anything. return false; } bool has_dirty_rect{false}; Rect dirty_rect; auto pixel_buffers = getPixelBuffers(); for(auto& pixel_buffer : pixel_buffers) { if(pixel_buffer->dirty) { auto x1 = (std::size_t)pixel_buffer->x; auto x2 = (std::size_t)(pixel_buffer->x + pixel_buffer->width); auto y1 = (std::size_t)pixel_buffer->y; auto y2 = (std::size_t)(pixel_buffer->y + pixel_buffer->height); pixel_buffer->dirty = false; if(!has_dirty_rect) { // Insert this area: dirty_rect = {x1, y1, x2, y2}; has_dirty_rect = true; } else { // Expand existing area: auto x1_0 = dirty_rect.x1; auto y1_0 = dirty_rect.y1; auto x2_0 = dirty_rect.x2; auto y2_0 = dirty_rect.y2; dirty_rect = { (x1_0 < x1) ? x1_0 : x1, (y1_0 < y1) ? y1_0 : y1, (x2_0 > x2) ? x2_0 : x2, (y2_0 > y2) ? y2_0 : y2 }; } } if(pixel_buffer->has_last) { auto x1 = (std::size_t)pixel_buffer->last_x; auto x2 = (std::size_t)(pixel_buffer->last_x + pixel_buffer->last_width); auto y1 = (std::size_t)pixel_buffer->last_y; auto y2 = (std::size_t)(pixel_buffer->last_y + pixel_buffer->last_height); pixel_buffer->has_last = false; if(!has_dirty_rect) { // Insert this area: dirty_rect = {x1, y1, x2, y2}; has_dirty_rect = true; } else { // Expand existing area: auto x1_0 = dirty_rect.x1; auto y1_0 = dirty_rect.y1; auto x2_0 = dirty_rect.x2; auto y2_0 = dirty_rect.y2; dirty_rect = { (x1_0 < x1) ? x1_0 : x1, (y1_0 < y1) ? y1_0 : y1, (x2_0 > x2) ? x2_0 : x2, (y2_0 > y2) ? y2_0 : y2 }; } } } if(!has_dirty_rect) { return false; } for(auto& pixel_buffer : pixel_buffers) { if(!pixel_buffer->visible) { continue; } int update_width = pixel_buffer->width; int update_height = pixel_buffer->height; // Skip buffer if not inside window. if(((int)wpixbuf.width < pixel_buffer->x) || ((int)wpixbuf.height < pixel_buffer->y)) { continue; } if(update_width > ((int)wpixbuf.width - pixel_buffer->x)) { update_width = ((int)wpixbuf.width - pixel_buffer->x); } if(update_height > ((int)wpixbuf.height - pixel_buffer->y)) { update_height = ((int)wpixbuf.height - pixel_buffer->y); } std::uint8_t r, g, b, a; auto from_x = (int)dirty_rect.x1 - pixel_buffer->x; from_x = std::max(0, from_x); auto from_y = (int)dirty_rect.y1 - pixel_buffer->y; from_y = std::max(0, from_y); auto to_x = (int)dirty_rect.x2 - pixel_buffer->x; to_x = std::min(to_x, (int)update_width); auto to_y = (int)dirty_rect.y2 - pixel_buffer->y; to_y = std::min(to_y, (int)update_height); for(int y = from_y; y < to_y; y++) { for(int x = from_x; x < to_x; x++) { pixel_buffer->pixel(x, y, &r, &g, &b, &a); wpixbuf.setPixel(x + pixel_buffer->x, y + pixel_buffer->y, r, g, b, a); } } } dirty_rect.x2 = std::min(wpixbuf.width, dirty_rect.x2); dirty_rect.y2 = std::min(wpixbuf.height, dirty_rect.y2); // Make sure we don't try to paint a rect backwards. if(dirty_rect.x1 > dirty_rect.x2) { std::swap(dirty_rect.x1, dirty_rect.x2); } if(dirty_rect.y1 > dirty_rect.y2) { std::swap(dirty_rect.y1, dirty_rect.y2); } native->redraw(dirty_rect); needs_redraw = false; return true; } } // GUI:: drumgizmo-0.9.18.1/plugingui/verticalline.cc0000644000076400007640000000302613331526614015716 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * verticalline.cc * * Sat Apr 6 12:59:44 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "verticalline.h" #include "painter.h" namespace GUI { VerticalLine::VerticalLine(Widget *parent) : Widget(parent) , vline(":resources/vertline.png") { } void VerticalLine::repaintEvent(RepaintEvent* repaintEvent) { if(height() < 2) { return; } Painter p(*this); p.drawImageStretched(0, (height() - vline.height()) / 2, vline, width(), vline.height()); } } // GUI:: drumgizmo-0.9.18.1/plugingui/visualizerframecontent.cc0000644000076400007640000000317313340266454020046 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * visualizerframecontent.cc * * Tue Jul 10 20:52:22 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "visualizerframecontent.h" #include #include #include "painter.h" namespace GUI { VisualizerframeContent::VisualizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , visualizer(this, settings, settings_notifier) { } void VisualizerframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); visualizer.resize(width, height); } } // GUI:: drumgizmo-0.9.18.1/plugingui/pixelbuffer.h0000644000076400007640000000551613331526613015417 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pixelbuffer.h * * Thu Nov 10 09:00:37 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "colour.h" #include namespace GUI { class PixelBuffer { public: PixelBuffer(std::size_t width, std::size_t height); ~PixelBuffer(); void realloc(std::size_t width, std::size_t height); void setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); unsigned char* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; }; class PixelBufferAlpha { public: PixelBufferAlpha() = default; PixelBufferAlpha(std::size_t width, std::size_t height); ~PixelBufferAlpha(); void realloc(std::size_t width, std::size_t height); void setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); void addPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); void addPixel(std::size_t x, std::size_t y, const Colour& c); void pixel(std::size_t x, std::size_t y, unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha) const; bool managed{false}; unsigned char* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; int x{0}; int y{0}; bool dirty{true}; bool visible{true}; // Add optional dirty rect that this pixelbuffer took up since it was last // rendered. Make sure to update this list on resize and/or move. std::size_t last_width{0}; std::size_t last_height{0}; int last_x{0}; int last_y{0}; bool has_last{false}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/visualizerframecontent.h0000644000076400007640000000311713340266454017706 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * visualizerframecontent.h * * Tue Jul 10 20:52:22 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "layout.h" #include "widget.h" #include "humaniservisualiser.h" #include #include #include class SettingsNotifier; namespace GUI { class VisualizerframeContent : public Widget { public: VisualizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; private: HumaniserVisualiser visualizer; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/button.h0000644000076400007640000000365113331526613014415 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * button.h * * Sun Oct 9 13:01:56 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "button_base.h" #include "font.h" #include "texturedbox.h" namespace GUI { class Button : public ButtonBase { public: Button(Widget* parent); virtual ~Button(); protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; private: TexturedBox box_up{getImageCache(), ":resources/pushbutton.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 TexturedBox box_down{getImageCache(), ":resources/pushbutton.png", 15, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 TexturedBox box_grey{getImageCache(), ":resources/pushbutton.png", 30, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 Font font{":resources/fontemboss.png"}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/colour.h0000644000076400007640000000344313515375734014416 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * colour.h * * Fri Oct 14 09:38:28 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include namespace GUI { class Colour { public: Colour(); Colour(float grey, float alpha = 1.0f); Colour(float red, float green, float blue, float alpha = 1.0f); Colour(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a); Colour(const Colour& other); Colour& operator=(const Colour& other); bool operator==(const Colour& other) const; bool operator!=(const Colour& other) const; inline float red() const { return data[0]; } inline float green() const { return data[1]; } inline float blue() const { return data[2]; } inline float alpha() const { return data[3]; } private: std::array data; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/image.cc0000644000076400007640000000770113511117026014314 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * image.cc * * Sat Mar 16 15:05:09 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "image.h" #include #include #include #include #include #include "resource.h" #include "lodepng/lodepng.h" namespace GUI { Image::Image(const char* data, size_t size) { load(data, size); } Image::Image(const std::string& filename) : filename(filename) { Resource rc(filename); if(!rc.valid()) { setError(); return; } load(rc.data(), rc.size()); } Image::Image(Image&& other) : _width(other._width) , _height(other._height) , image_data(std::move(other.image_data)) , filename(other.filename) { other._width = 0; other._height = 0; } Image::~Image() { } Image& Image::operator=(Image&& other) { image_data.clear(); image_data = std::move(other.image_data); _width = other._width; _height = other._height; valid = other.valid; other._width = 0; other._height = 0; other.valid = false; return *this; } void Image::setError() { valid = false; Resource rc(":resources/png_error"); const unsigned char* ptr = (const unsigned char*)rc.data(); std::uint32_t iw, ih; iw = (uint32_t) ptr[0] | (uint32_t) ptr[1] << 8 | (uint32_t) ptr[2] << 16 | (uint32_t) ptr[3] << 24; ptr += sizeof(uint32_t); ih = (uint32_t) ptr[0] | (uint32_t) ptr[1] << 8 | (uint32_t) ptr[2] << 16 | (uint32_t) ptr[3] << 24; ptr += sizeof(uint32_t); _width = iw; _height = ih; image_data.clear(); image_data.reserve(_width * _height); for(std::size_t y = 0; y < _height; ++y) { for(std::size_t x = 0; x < _width; ++x) { image_data.emplace_back(Colour{ptr[0] / 255.0f, ptr[1] / 255.0f, ptr[2] / 255.0f, ptr[3] / 255.0f}); } } assert(image_data.size() == (_width * _height)); } void Image::load(const char* data, size_t size) { unsigned int iw{0}, ih{0}; std::uint8_t* char_image_data{nullptr}; unsigned int res = lodepng_decode32((std::uint8_t**)&char_image_data, &iw, &ih, (const std::uint8_t*)data, size); if(res != 0) { ERR(image, "Error in lodepng_decode32: %d while loading '%s'", res, filename.c_str()); setError(); return; } _width = iw; _height = ih; image_data.clear(); image_data.reserve(_width * _height); for(std::size_t y = 0; y < _height; ++y) { for(std::size_t x = 0; x < _width; ++x) { std::uint8_t* ptr = &char_image_data[(x + y * _width) * 4]; image_data.emplace_back(Colour{ptr[0], ptr[1], ptr[2], ptr[3]}); } } assert(image_data.size() == (_width * _height)); std::free(char_image_data); valid = true; } size_t Image::width() const { return _width; } size_t Image::height() const { return _height; } const Colour& Image::getPixel(size_t x, size_t y) const { if(x > _width || y > _height) { return out_of_range; } return image_data[x + y * _width]; } bool Image::isValid() const { return valid; } } // GUI:: drumgizmo-0.9.18.1/plugingui/humaniservisualiser.cc0000644000076400007640000001241113340266453017337 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humaniservisualiser.cc * * Fri Jun 15 19:09:18 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "humaniservisualiser.h" #include "painter.h" #include #include #include HumaniserVisualiser::HumaniserVisualiser(GUI::Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : GUI::Widget(parent) , canvas(this, settings, settings_notifier) { canvas.move(7, 7); } void HumaniserVisualiser::repaintEvent(GUI::RepaintEvent *repaintEvent) { GUI::Painter p(*this); box.setSize(width(), height()); p.drawImage(0, 0, box); } void HumaniserVisualiser::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); if(width < 14 || height < 14) { canvas.resize(1, 1); return; } canvas.resize(width - 14, height - 14); } HumaniserVisualiser::Canvas::Canvas(GUI::Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : GUI::Widget(parent) , settings_notifier(settings_notifier) , latency_max_ms(settings.latency_max_ms.load()) , settings(settings) { CONNECT(this, settings_notifier.enable_latency_modifier, this, &HumaniserVisualiser::Canvas::latencyEnabledChanged); CONNECT(this, settings_notifier.enable_velocity_modifier, this, &HumaniserVisualiser::Canvas::velocityEnabledChanged); CONNECT(this, settings_notifier.latency_current, this, &HumaniserVisualiser::Canvas::latencyOffsetChanged); CONNECT(this, settings_notifier.velocity_modifier_current, this, &HumaniserVisualiser::Canvas::velocityOffsetChanged); CONNECT(this, settings_notifier.latency_stddev, this, &HumaniserVisualiser::Canvas::latencyStddevChanged); CONNECT(this, settings_notifier.latency_laid_back_ms, this, &HumaniserVisualiser::Canvas::latencyLaidbackChanged); CONNECT(this, settings_notifier.velocity_stddev, this, &HumaniserVisualiser::Canvas::velocityStddevChanged); } void HumaniserVisualiser::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent) { if(width() < 1 || height() < 1) { return; } GUI::Painter p(*this); p.clear(); const float mspx = latency_max_ms * 2 / width(); // ms pr. pixel int x = latency_offset / mspx + width() / 2; float v = (-1.0f * velocity_offset + 1.0f) * 0.8; int y = height() * 0.2 + v * height(); y = std::max(0, y); int w = (3. * 2.) * latency_stddev / mspx; // stddev is ~ +/- 3 span int h = velocity_stddev * height() / 4; DEBUG(vis, "max: %f, mspx: %f, x: %d, w: %d", latency_max_ms, mspx, x, w); // Stddev squares if(latency_enabled) { p.drawImageStretched(x - w / 2, 0, stddev_h, w, height()); } else { p.drawImageStretched(x - w / 2, 0, stddev_h_disabled, w, height()); } if(velocity_enabled) { p.drawImageStretched(0, y - h / 2, stddev_v, width(), h); } else { p.drawImageStretched(0, y - h / 2, stddev_v_disabled, width(), h); } // Lines if(velocity_enabled) { p.setColour(GUI::Colour(0.0f, 1.0f, 1.0f)); } else { p.setColour(GUI::Colour(0.4f, 0.4f, 0.4f)); } p.drawLine(0, y, width(), y); if(latency_enabled) { p.setColour(GUI::Colour(0.0f, 1.0f, 1.0f)); } else { p.setColour(GUI::Colour(0.4f, 0.4f, 0.4f)); } p.drawLine(x, 0, x, height()); // Zero-lines p.setColour(GUI::Colour(0.0f, 1.0f, 0.0f, 0.9f)); p.drawLine(0, height() * 0.2f, width(), height() * 0.2f); p.drawLine(width() / 2, 0, width() / 2, height()); } void HumaniserVisualiser::Canvas::latencyEnabledChanged(bool enabled) { latency_enabled = enabled; redraw(); } void HumaniserVisualiser::Canvas::velocityEnabledChanged(bool enabled) { velocity_enabled = enabled; redraw(); } void HumaniserVisualiser::Canvas::latencyOffsetChanged(float offset) { latency_offset = offset; redraw(); } void HumaniserVisualiser::Canvas::velocityOffsetChanged(float offset) { velocity_offset = offset; redraw(); } void HumaniserVisualiser::Canvas::latencyStddevChanged(float stddev) { latency_stddev = stddev; redraw(); } void HumaniserVisualiser::Canvas::latencyLaidbackChanged(float laidback_ms) { this->laidback = laidback_ms * settings.samplerate.load() / 1000; redraw(); } void HumaniserVisualiser::Canvas::velocityStddevChanged(float stddev) { velocity_stddev = stddev; redraw(); } drumgizmo-0.9.18.1/plugingui/humanizerframecontent.h0000644000076400007640000000376713511117026017514 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humanizerframecontent.h * * Fri Mar 24 21:49:58 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "knob.h" #include "labeledcontrol.h" #include "layout.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class HumanizerframeContent : public Widget { public: HumanizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); private: static float constexpr stddev_factor = 4.5f; void attackValueChanged(float value); void falloffValueChanged(float value); void stddevKnobValueChanged(float value); void stddevSettingsValueChanged(float value); GridLayout layout{this, 3, 1}; LabeledControl attack{this, "pAttack"}; // drummer strength LabeledControl falloff{this, "pRelease"}; // regain LabeledControl stddev{this, "pStdDev"}; Knob attack_knob{&attack}; Knob falloff_knob{&falloff}; Knob stddev_knob{&stddev}; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/utf8.cc0000644000076400007640000002577213340266454014142 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * utf8.cc * * Tue Feb 27 19:18:23 CET 2007 * Copyright 2006 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "utf8.h" UTF8::UTF8() { // Encode Map map_encode["\x80"] = "\xc2\x80"; map_encode["\x81"] = "\xc2\x81"; map_encode["\x82"] = "\xc2\x82"; map_encode["\x83"] = "\xc2\x83"; map_encode["\x84"] = "\xc2\x84"; map_encode["\x85"] = "\xc2\x85"; map_encode["\x86"] = "\xc2\x86"; map_encode["\x87"] = "\xc2\x87"; map_encode["\x88"] = "\xc2\x88"; map_encode["\x89"] = "\xc2\x89"; map_encode["\x8a"] = "\xc2\x8a"; map_encode["\x8b"] = "\xc2\x8b"; map_encode["\x8c"] = "\xc2\x8c"; map_encode["\x8d"] = "\xc2\x8d"; map_encode["\x8e"] = "\xc2\x8e"; map_encode["\x8f"] = "\xc2\x8f"; map_encode["\x90"] = "\xc2\x90"; map_encode["\x91"] = "\xc2\x91"; map_encode["\x92"] = "\xc2\x92"; map_encode["\x93"] = "\xc2\x93"; map_encode["\x94"] = "\xc2\x94"; map_encode["\x95"] = "\xc2\x95"; map_encode["\x96"] = "\xc2\x96"; map_encode["\x97"] = "\xc2\x97"; map_encode["\x98"] = "\xc2\x98"; map_encode["\x99"] = "\xc2\x99"; map_encode["\x9a"] = "\xc2\x9a"; map_encode["\x9b"] = "\xc2\x9b"; map_encode["\x9c"] = "\xc2\x9c"; map_encode["\x9d"] = "\xc2\x9d"; map_encode["\x9e"] = "\xc2\x9e"; map_encode["\x9f"] = "\xc2\x9f"; map_encode["\xa0"] = "\xc2\xa0"; map_encode["\xa1"] = "\xc2\xa1"; map_encode["\xa2"] = "\xc2\xa2"; map_encode["\xa3"] = "\xc2\xa3"; map_encode["\xa4"] = "\xc2\xa4"; map_encode["\xa5"] = "\xc2\xa5"; map_encode["\xa6"] = "\xc2\xa6"; map_encode["\xa7"] = "\xc2\xa7"; map_encode["\xa8"] = "\xc2\xa8"; map_encode["\xa9"] = "\xc2\xa9"; map_encode["\xaa"] = "\xc2\xaa"; map_encode["\xab"] = "\xc2\xab"; map_encode["\xac"] = "\xc2\xac"; map_encode["\xad"] = "\xc2\xad"; map_encode["\xae"] = "\xc2\xae"; map_encode["\xaf"] = "\xc2\xaf"; map_encode["\xb0"] = "\xc2\xb0"; map_encode["\xb1"] = "\xc2\xb1"; map_encode["\xb2"] = "\xc2\xb2"; map_encode["\xb3"] = "\xc2\xb3"; map_encode["\xb4"] = "\xc2\xb4"; map_encode["\xb5"] = "\xc2\xb5"; map_encode["\xb6"] = "\xc2\xb6"; map_encode["\xb7"] = "\xc2\xb7"; map_encode["\xb8"] = "\xc2\xb8"; map_encode["\xb9"] = "\xc2\xb9"; map_encode["\xba"] = "\xc2\xba"; map_encode["\xbb"] = "\xc2\xbb"; map_encode["\xbc"] = "\xc2\xbc"; map_encode["\xbd"] = "\xc2\xbd"; map_encode["\xbe"] = "\xc2\xbe"; map_encode["\xbf"] = "\xc2\xbf"; map_encode["\xc0"] = "\xc3\x80"; map_encode["\xc1"] = "\xc3\x81"; map_encode["\xc2"] = "\xc3\x82"; map_encode["\xc3"] = "\xc3\x83"; map_encode["\xc4"] = "\xc3\x84"; map_encode["\xc5"] = "\xc3\x85"; map_encode["\xc6"] = "\xc3\x86"; map_encode["\xc7"] = "\xc3\x87"; map_encode["\xc8"] = "\xc3\x88"; map_encode["\xc9"] = "\xc3\x89"; map_encode["\xca"] = "\xc3\x8a"; map_encode["\xcb"] = "\xc3\x8b"; map_encode["\xcc"] = "\xc3\x8c"; map_encode["\xcd"] = "\xc3\x8d"; map_encode["\xce"] = "\xc3\x8e"; map_encode["\xcf"] = "\xc3\x8f"; map_encode["\xd0"] = "\xc3\x90"; map_encode["\xd1"] = "\xc3\x91"; map_encode["\xd2"] = "\xc3\x92"; map_encode["\xd3"] = "\xc3\x93"; map_encode["\xd4"] = "\xc3\x94"; map_encode["\xd5"] = "\xc3\x95"; map_encode["\xd6"] = "\xc3\x96"; map_encode["\xd7"] = "\xc3\x97"; map_encode["\xd8"] = "\xc3\x98"; map_encode["\xd9"] = "\xc3\x99"; map_encode["\xda"] = "\xc3\x9a"; map_encode["\xdb"] = "\xc3\x9b"; map_encode["\xdc"] = "\xc3\x9c"; map_encode["\xdd"] = "\xc3\x9d"; map_encode["\xde"] = "\xc3\x9e"; map_encode["\xdf"] = "\xc3\x9f"; map_encode["\xe0"] = "\xc3\xa0"; map_encode["\xe1"] = "\xc3\xa1"; map_encode["\xe2"] = "\xc3\xa2"; map_encode["\xe3"] = "\xc3\xa3"; map_encode["\xe4"] = "\xc3\xa4"; map_encode["\xe5"] = "\xc3\xa5"; map_encode["\xe6"] = "\xc3\xa6"; map_encode["\xe7"] = "\xc3\xa7"; map_encode["\xe8"] = "\xc3\xa8"; map_encode["\xe9"] = "\xc3\xa9"; map_encode["\xea"] = "\xc3\xaa"; map_encode["\xeb"] = "\xc3\xab"; map_encode["\xec"] = "\xc3\xac"; map_encode["\xed"] = "\xc3\xad"; map_encode["\xee"] = "\xc3\xae"; map_encode["\xef"] = "\xc3\xaf"; map_encode["\xf0"] = "\xc3\xb0"; map_encode["\xf1"] = "\xc3\xb1"; map_encode["\xf2"] = "\xc3\xb2"; map_encode["\xf3"] = "\xc3\xb3"; map_encode["\xf4"] = "\xc3\xb4"; map_encode["\xf5"] = "\xc3\xb5"; map_encode["\xf6"] = "\xc3\xb6"; map_encode["\xf7"] = "\xc3\xb7"; map_encode["\xf8"] = "\xc3\xb8"; map_encode["\xf9"] = "\xc3\xb9"; map_encode["\xfa"] = "\xc3\xba"; map_encode["\xfb"] = "\xc3\xbb"; map_encode["\xfc"] = "\xc3\xbc"; map_encode["\xfd"] = "\xc3\xbd"; map_encode["\xfe"] = "\xc3\xbe"; map_encode["\xff"] = "\xc3\xbf"; // Decode Map map_decode["\xc2\x80"] = "\x80"; map_decode["\xc2\x81"] = "\x81"; map_decode["\xc2\x82"] = "\x82"; map_decode["\xc2\x83"] = "\x83"; map_decode["\xc2\x84"] = "\x84"; map_decode["\xc2\x85"] = "\x85"; map_decode["\xc2\x86"] = "\x86"; map_decode["\xc2\x87"] = "\x87"; map_decode["\xc2\x88"] = "\x88"; map_decode["\xc2\x89"] = "\x89"; map_decode["\xc2\x8a"] = "\x8a"; map_decode["\xc2\x8b"] = "\x8b"; map_decode["\xc2\x8c"] = "\x8c"; map_decode["\xc2\x8d"] = "\x8d"; map_decode["\xc2\x8e"] = "\x8e"; map_decode["\xc2\x8f"] = "\x8f"; map_decode["\xc2\x90"] = "\x90"; map_decode["\xc2\x91"] = "\x91"; map_decode["\xc2\x92"] = "\x92"; map_decode["\xc2\x93"] = "\x93"; map_decode["\xc2\x94"] = "\x94"; map_decode["\xc2\x95"] = "\x95"; map_decode["\xc2\x96"] = "\x96"; map_decode["\xc2\x97"] = "\x97"; map_decode["\xc2\x98"] = "\x98"; map_decode["\xc2\x99"] = "\x99"; map_decode["\xc2\x9a"] = "\x9a"; map_decode["\xc2\x9b"] = "\x9b"; map_decode["\xc2\x9c"] = "\x9c"; map_decode["\xc2\x9d"] = "\x9d"; map_decode["\xc2\x9e"] = "\x9e"; map_decode["\xc2\x9f"] = "\x9f"; map_decode["\xc2\xa0"] = "\xa0"; map_decode["\xc2\xa1"] = "\xa1"; map_decode["\xc2\xa2"] = "\xa2"; map_decode["\xc2\xa3"] = "\xa3"; map_decode["\xc2\xa4"] = "\xa4"; map_decode["\xc2\xa5"] = "\xa5"; map_decode["\xc2\xa6"] = "\xa6"; map_decode["\xc2\xa7"] = "\xa7"; map_decode["\xc2\xa8"] = "\xa8"; map_decode["\xc2\xa9"] = "\xa9"; map_decode["\xc2\xaa"] = "\xaa"; map_decode["\xc2\xab"] = "\xab"; map_decode["\xc2\xac"] = "\xac"; map_decode["\xc2\xad"] = "\xad"; map_decode["\xc2\xae"] = "\xae"; map_decode["\xc2\xaf"] = "\xaf"; map_decode["\xc2\xb0"] = "\xb0"; map_decode["\xc2\xb1"] = "\xb1"; map_decode["\xc2\xb2"] = "\xb2"; map_decode["\xc2\xb3"] = "\xb3"; map_decode["\xc2\xb4"] = "\xb4"; map_decode["\xc2\xb5"] = "\xb5"; map_decode["\xc2\xb6"] = "\xb6"; map_decode["\xc2\xb7"] = "\xb7"; map_decode["\xc2\xb8"] = "\xb8"; map_decode["\xc2\xb9"] = "\xb9"; map_decode["\xc2\xba"] = "\xba"; map_decode["\xc2\xbb"] = "\xbb"; map_decode["\xc2\xbc"] = "\xbc"; map_decode["\xc2\xbd"] = "\xbd"; map_decode["\xc2\xbe"] = "\xbe"; map_decode["\xc2\xbf"] = "\xbf"; map_decode["\xc3\x80"] = "\xc0"; map_decode["\xc3\x81"] = "\xc1"; map_decode["\xc3\x82"] = "\xc2"; map_decode["\xc3\x83"] = "\xc3"; map_decode["\xc3\x84"] = "\xc4"; map_decode["\xc3\x85"] = "\xc5"; map_decode["\xc3\x86"] = "\xc6"; map_decode["\xc3\x87"] = "\xc7"; map_decode["\xc3\x88"] = "\xc8"; map_decode["\xc3\x89"] = "\xc9"; map_decode["\xc3\x8a"] = "\xca"; map_decode["\xc3\x8b"] = "\xcb"; map_decode["\xc3\x8c"] = "\xcc"; map_decode["\xc3\x8d"] = "\xcd"; map_decode["\xc3\x8e"] = "\xce"; map_decode["\xc3\x8f"] = "\xcf"; map_decode["\xc3\x90"] = "\xd0"; map_decode["\xc3\x91"] = "\xd1"; map_decode["\xc3\x92"] = "\xd2"; map_decode["\xc3\x93"] = "\xd3"; map_decode["\xc3\x94"] = "\xd4"; map_decode["\xc3\x95"] = "\xd5"; map_decode["\xc3\x96"] = "\xd6"; map_decode["\xc3\x97"] = "\xd7"; map_decode["\xc3\x98"] = "\xd8"; map_decode["\xc3\x99"] = "\xd9"; map_decode["\xc3\x9a"] = "\xda"; map_decode["\xc3\x9b"] = "\xdb"; map_decode["\xc3\x9c"] = "\xdc"; map_decode["\xc3\x9d"] = "\xdd"; map_decode["\xc3\x9e"] = "\xde"; map_decode["\xc3\x9f"] = "\xdf"; map_decode["\xc3\xa0"] = "\xe0"; map_decode["\xc3\xa1"] = "\xe1"; map_decode["\xc3\xa2"] = "\xe2"; map_decode["\xc3\xa3"] = "\xe3"; map_decode["\xc3\xa4"] = "\xe4"; map_decode["\xc3\xa5"] = "\xe5"; map_decode["\xc3\xa6"] = "\xe6"; map_decode["\xc3\xa7"] = "\xe7"; map_decode["\xc3\xa8"] = "\xe8"; map_decode["\xc3\xa9"] = "\xe9"; map_decode["\xc3\xaa"] = "\xea"; map_decode["\xc3\xab"] = "\xeb"; map_decode["\xc3\xac"] = "\xec"; map_decode["\xc3\xad"] = "\xed"; map_decode["\xc3\xae"] = "\xee"; map_decode["\xc3\xaf"] = "\xef"; map_decode["\xc3\xb0"] = "\xf0"; map_decode["\xc3\xb1"] = "\xf1"; map_decode["\xc3\xb2"] = "\xf2"; map_decode["\xc3\xb3"] = "\xf3"; map_decode["\xc3\xb4"] = "\xf4"; map_decode["\xc3\xb5"] = "\xf5"; map_decode["\xc3\xb6"] = "\xf6"; map_decode["\xc3\xb7"] = "\xf7"; map_decode["\xc3\xb8"] = "\xf8"; map_decode["\xc3\xb9"] = "\xf9"; map_decode["\xc3\xba"] = "\xfa"; map_decode["\xc3\xbb"] = "\xfb"; map_decode["\xc3\xbc"] = "\xfc"; map_decode["\xc3\xbd"] = "\xfd"; map_decode["\xc3\xbe"] = "\xfe"; map_decode["\xc3\xbf"] = "\xff"; // FIXME: This is just a hack to make Goran Mekic's name work. map_decode["\xc4\x87"] = "c"; } std::string UTF8::fromLatin1(std::string const& s) { std::string ret; for(int i = 0; i < (int)s.length(); i++) { std::string c; if((unsigned char)s[i] <= 0x7F) { c = s.substr(i, 1); } else { c = map_encode[s.substr(i, 1)]; } // If c == "", the character wasn't found in the map. // Ignore this case for now and just push an empty string in this case. ret.append(c); } return ret; } std::string UTF8::toLatin1(std::string const& s) { std::string ret; int width = 1; for(int i = 0; i < (int)s.length(); i += width) { if(/*(unsigned char)s[i]>=0x00&&*/ (unsigned char)s[i] <= 0x7F) { width = 1; // 00-7F -> 1 byte } if((unsigned char)s[i] >= 0xC2 && (unsigned char)s[i] <= 0xDF) { width = 2; // C2-DF -> 2 bytes } if((unsigned char)s[i] >= 0xE0 && (unsigned char)s[i] <= 0xEF) { width = 3; // E0-EF -> 3 bytes } if((unsigned char)s[i] >= 0xF0 && (unsigned char)s[i] <= 0xF4) { width = 4; // F0-F4 -> 4 bytes } std::string c; if(width == 1) { c = s.substr(i, 1); } else { c = map_decode[s.substr(i, width)]; } // If c == "", the character wasn't found in the map. // Ignore this case for now and just push an empty string in this case. ret.append(c); } return ret; } drumgizmo-0.9.18.1/plugingui/canvas.h0000644000076400007640000000262013331526613014350 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * canvas.h * * Sun Sep 4 13:03:51 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "pixelbuffer.h" namespace GUI { //! Abstract class that can be used by the Paiter to draw on. class Canvas { public: virtual ~Canvas() = default; //! @returns a reference to the pixel buffer. virtual PixelBufferAlpha& GetPixelBuffer() = 0; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/resources/0000755000076400007640000000000013554101261015011 500000000000000drumgizmo-0.9.18.1/plugingui/resources/stddev_horizontal_disabled.png0000644000076400007640000000042113340266454023036 00000000000000PNG  IHDR,d8)bKGD pHYs  tIME%AiTXtCommentCreated with GIMPd.euIDAT8cdoGZ_ /Gb P I Yht6>@:j~C_HbHoH/HhFb?X򌣣|5:WIENDB`drumgizmo-0.9.18.1/plugingui/resources/switch_back_on.png0000644000076400007640000000471012525310662020422 00000000000000PNG  IHDR;!ghNbKGD pHYs B(xtIME tEXtCommentCreated with GIMPW 0IDATXݙ]lW;^gqSI?RC%BC/TZD%x*'BH <@%~ *3M4G8N^0wvgv4F3;ss.eY94eu5s8Yutif0 `u<: xe lmns ,{a4 W 6ns ,66MSpCwA! "v e,[@z?  (KO-*B},˖[fpI BJ#TAUuxJ kت嘈43Kx4Ke[¦i:a/21ӾgS)L}/Dň* ~0>*TYsX[>Fʍe"RfVV""1^)c3s'23 5->ܞ!34>Du03L bDFhUBE *E/u@g /hȿÿ_xuf""ZiNfYv/flJcS<з/޵&Mhh\M}*e`Eދ ?ԳO^>vQU̼\eU3iPafi6͡{3a"=FDݾKYU , Jjmh(ccߚ8q*{'"/"^#j478gСCõZ2 JDhz7Ǩ1lPc*1h hR^_(黰{xx_{:C_Z9 .wιXUGQDQԉH231n7Yc(]d B:d xg/†q/<^z^Jh\3MSj(<!"bf2HvQUc˫h{&yf CH@`0&yx_Y9hE;pTSz ,BvtL}mmBAHzP0333n#"뽏XUoYzIZ=esS> i?}mR{9ͣ[-FQ /jƌ1::kbbsj콏[{2zwϝáߢRɉȩw3c|bS%";>>{ddm<׹꒪Fj使C/y{/H*5j)3EL| 3C/^BQfy v4"QѨK/^o? d}}xxDQ'(y.Xkׇot:+G"RS}s?>G/}d^1_c μو.fQ &"Wcz$9jĪ@kWHL\Ǎ5oO&ٞJ]Ittj( L&$ iɆ03||>t,(,%c\..96 i@RJ ]W܇1F#n% 떰)ΘJc(;*R>kp W!4 XGb6cdWʽ|>ssO^n'iNkV14M yڻz~])"fM[iWUiJE=ok`ݱ8&6y0N bOhGc Z6Ǎ aŐܫ#oҸ}3U+|3d˞V5 GU k)|Wt. U0M R=1Oj^^cUROXCtbײTo=lN>«9z=AU M"`MNz2^]VhW4PL;?s)\JGӾ:1iVB>;6n|3a PcsW'F8-%UV$mL&RA6=1e%5 dBe]^뚈[!ܿMv7cz5<Mcs>=f {ߕ=/zd0۹}죉N~;#jUwe0yfl}i_}ԗa]sضSL0@þ"up̈a&_Pwv+1Bܘ[`Jc [L}nDڴ=bؿ#$pWخ.8LZf_L My6|SW #r:4scE!50ѓ׸!WG$Zr+'cre)D1ʼn\a☄0|io^Yb%@IECvdc'Өf&xus{uHΧ-5V uHӲ󽼟mɔ{ŇE[pOvnW횖d=p5yۢHď4 15mZkr(uL<8лd xmucdӮSc6^fvݬ~v &3B `u]mi ∪)x `nTb>djï vLl%Ks^E̦s̙:?ى5 ̡Z&51ޘx&bڇEhxk$ym1 !\p"bYaC-\o]ΰ!fli6#S#"ܬc 5e"6fX,{ͪ,:o0y 5NKJ#w 5~!=^D yNPR. WۖoLdϞ93a ^=gi7˼/%~[.1A0 /'ɾ4hznc[]WeV=4<0Mp+wZU$#\kE=7 Fu) Ӟȯ$!e'FX_ӟ+txe"if]‚B߳Q%WnTcXykÁsD 1=o=qu'C H@g _',60H 5̮pGg2&V13JoP픙mQc4^JK0E"~/{oaߣ pP*CN %îDB 69gYے~2A=4g`ۅ+jY#2%5G$i[lFlaLpG+{檤%T ѤpAvAn M(nLRFpqx7)`ZkX1 hug3Ҽ5ݛID t1jFۇu"w\ hdz-e|^gNZb82 6yS'&aFU2B.Z7/Q.Y{􈅙-gj5,s{11E@+ڨQ30zOa0ָ,ٍy@aƙGXmdccbZK^maz&5$)6f0o/S*FhQ4Bl )c$%@ԇ"Cjqv'kHAveC(D[>- 9vd*̌Q/ K3IwuTew'4k pgMVAl{pMO`ٌT1-U-K{ڇ'gdԸ2>4Use(>^)0P-i@(yrDSup$<z+N;b=`p/li%CǓU0ͅiADcs@Ix"s m4~Dv^FmHmyR9@ 쾚 aMUL 9L͸S(Mdl|oE+f͍y8nE !46i;N`pw.P>k)Y!GGj-meZ``2J*rnWϸ~gMmi"Iv\R!<$SgBaC*lrNѕd'ϕea,֟];)\ILg;}9q9\tܲ{t2~6#dpagryiI{cL 1:2Sƛ"9O|qyhU?0?=Fv.1[[u2M%.I2c6d'OC/t!5-`FMܣ| ~4B ڟ :ey8e>G.ԈjZl6g͔a}3v4eOdK3o= Im5$#ĝ2fD$v{ݍG.FT `.+E8ܰgP..B3$@1\0iqlk#A佚?fb۳G&d9&N[fm-`-ϾYc]\^5֯(w>~ MD~t>3uV `"`ס ?Au÷5I]BVpFz<_]T`׋2Z3-c͢L 徝; 37dhI/e\/LI-?0sapWTv Vʱ뗤V5ԱTm^B -#sӈ;Q=G*oƝa4aY5K]\RBQ? nAiF0mh0=~/- 1NF x$ Pe]G4t3`5QnCax*Ti-cUĉfs>wY4=1FfPF|is5~ S}֔;k1;#0=9Pb3rʹPv^p~QbB Q6K& V>*͊wG7=5diWKlv;?(#4#Q~dΰ$Z-; 6 EJNG?Xcr1-\zo?CTm(fDz(}iE#e~31 &ni ppYh4LI܏,L9Br+$4jVea[TI5Dޚz>gq}:2lŹ9.qUTڻ}NFbI^:ѱ1Aȿ5suZˡ``_cLYxڶw71b TTXٵ,`a*h~Pˀm䘮Eбo%*l6,Ӭ\<d 1-h["Z`a,R ,k _tbg 'Rx2f* 8tJ!gp٬wu BL ӊ/ts!iŞVvGp$=60Qa8/ƆZR7mULPz!X clnN3 cC\΂W-# >!\?(gfzܢOe4&2 HMwo8i4a " os&T_a Ib>B~$өy!u ̠D̑5a7,`~LZS_.`p f$>O-QB\v78: ..i?1 :2Dv1UkXä-o_En d#ƶ6Lp7SfB#SCA>vcq&TlQvUh5GcCP5=`9w3o;em53G)ڗw;c~ssɛ$f̎O;T$萐`*S!m t u_ BǙ?ԲߛGigpue\_9R]}Z~A9ƠD FX ޞwԟPULf(zC IaV=9ǟÖwOu ;ʕ@}q0;ߘ"lyHbxSx G![y}=Cjrg39'ef.&X6܁ >C Sm%M6^f{p32;bG?Lk';ǀ5ikc_q0-3r-x;1}POȋ&KCĞdd*RM p!s19tu>=Y=wY5'1O OlmcoDowZx}̊.f!?c3)ؓ X( pA>XĞ?pÑr2|Xi <_ZMc{"V#!RtW6 >s2&KfM&|.%.6Tsylޥ,Ťmyv'aXaE:YhC3b-zv9Kmeaӎ쯔K pics @ٍb 7-=̃7 }|t8NMT3K9ĩZB}^f9Sy^*Bf\9lL>Bh %6D mci27 >  J0D/[eKLL%aZd"؞YVn]qu=9tH1h=&اXƍHyoa=ow@Qw)~D{ꂫ`D>#]]ģ:\cY2w똠Q4agB5@[~yhU+\-YhN1mV ̡q{O/SVgbN¥Ln[Mh>xRwlABPW3s^tѼ{gWD m2}nswqoMUi&hŃ]x{c ^#YkL9^T7E]$r1ͩ5=؇I91J@Y@Z? S.r .ęfx~Ga^Nnm a7/PYTSwmCOj%b.pgLAmS^;leתwdkW h4?ʬgy! Pg /KjVXc3.`2ώ:\ޱRPg'|Cd?ڮzk 8{?`r,mo 7* sFtn b^ xY:=C#>31^٫l44\칧H8g20[0)ۤp>YbGRՁK@BXF +-tS3d`y(-A)#~d@*A7^rv3Ҏu<%ѱ;CٟE|~7P*psTXqՓq&\r nM&QZ'<^T~ kбHЖG D;,oZeVp[LMY1P#,o᪢1M`H4j8%U3`a.{oxfkY)$"d:P@Ps^Mk]J_f!7䗂kqP; =>T # >|X=f͗w r" \b+r+š]NKo33y`& My\<-Ocь WXmV(.)G0} !3#f_' 0M),Viz̋ZU%7Bh$3碖[5~Vh-73|>ŷ{`+̡aVpsrn^<}@º"1{TQBs1>s]|&h1B%6 != 17X_]vImOMHo?^%p[[{vwƐxRnLCK,~ !ѤʏuD.NM D ʔS7遨$?n_kNSOct/Yl@ʽ@tށ-wYmީ庠^ Ӯ4 sWO4K3UpRj "Q춡 L\G[e-v[糡Msfw#s2'oۈ66>Xjf]i)v , Cga3(Iv 3!O<,ϑ_zߎgf{iuٞtC\'uw¡,,e7oÄƢ=rAtxXf@Sc< Ai^#]1vnȿ6 cOCgSq6ia3F3SSù7&*P< /OÝSt;Km\e.ppBD;QBk0 e+!g#3xKqU'SNdX"c?kxYĨ`K@aeB\|,XYS+I1"M8G8L}ЄE4SiTkvl5==H_Xb -sH9Mh0_GSKl&/)~Avf4ozڃcʙ_l75ّq|]1\[>}FNb]>J29,:+lBHc*,О?D{4W9\*g?#Ӵ>u qӹw>dKXD`\={ y6Fw =(Gmq"JZi0k2Ojҥ$VDqPLv~~&ˆ9fe_>r?3 `-1J%^ Fi \8f67\ NG|ZF21s}B%Iq6صgC8Nʳp l)W#iv)!3Ah&B> 24 ~Pq}&p)#zu!ξOnP|-/֔maï'q0gjn %dO`:j-")h4P}n;^8^̨ڥN,JrcIq[zSK񲶠!жMø_jx!;џ[P$`=ܞh>AF;7[0/{hNTe #$Nfgv!LP#Je@&bs<!q&6#fWvb2L[,ٷI W_LUe)^P?3d9pEiYȝL:|iV2' }K9*<_b%"栶PW]31,7Ϣ~ l|01lW$r1)y_M@c̭&Y^uwh֡ziBa32=f+BT2E R`&alټ $)DMikdK9KLyĩxfK*wSo?D֥h+7nmy`Վr[EZ -ff {va;$A~H"s-+#a_)]φ3nY_0*Q+yV`Sl't) (R^::pcFӱ:9#LUNCm fW`خmC(<\}'opfEHQ9pDs^ѕ+Ol CFK%.95z!~a gO!4`sO}Om={G pyG+!\΁?:~[*.lE7j0m2[|;1Xņg#Gd!Fh&8o zk34Cu@e>(g ԗ#~Lؽ.Ce|1&#g9u9dkS/EH\d,LpH  _.en&ʵ{DZ! Z}&*wҀZS^2v$+}d7qxx8vO z"(,ǷuK =4L $:O;K;XbNw'ʥw.ߤ.#s/|¿;${/ luk<+Q;̩J/{:M9/oU1BiXBy5J"2"m'y!(^u2oJXODlۥþka ^wpqYMO[gdg2L <!bbuG9$҈ɒY[EXatct)q6_L[HIY&?a87RJC'6U`sҘP<.6d&h_&!U޷ADz0؅c!C?|ķ{CRe<+ff+23ڂ=f'#fAQG9e֏͚z(߅9B(ӗ&zL."Di2rM1@mӂKHW:QTrBWJDʕM( @<[5#$ ړzv~fЇ+yWȓLf-XDG rOK"$hd#& ME"zIjG8%k4VFu#wҬBј"4y͙1 ly hkp=-Ds{2AUAѠE,jzcE(.gC͗9{gB,em@bW<^!3w8p7x9tR{Zl `]hߥ*>HyB̓G,$qUp#1 %"Yfe͒K16U#381"d a3(H7j,hj"mU0v0/!6/@Ma6DA"G9Y-3+ػsP`UmLُO=fu";䏇:7y%ynɕ3BsC<l3bb17(.Y_gG/ZzÆWG/sp΍Lc* F-c~B;1mxx!Mu 4SDzȡ/(& ؞8ϱgk‡Qȹ[}o‚}x9OB#@hh'7qqP2'-[/hiZemCٿ+9/i/ִg各I4}s?=yocmFcf<rsȹe.6lk Qhh坳V%mI*РC1nf?ag-@ tBM!21hx 폃%IIMw'=1f`{W s cF Np/#Tr71/+r~GLin:ܦ&8ʫG'?c ̴@ifgֆGBC~Z ?v ep]1!\˶O!}qo#}Č{XJ- Ĉ"?0"D+E~(  (Dsf\%2g!% n0yǒ3 l\ t i]is]MQFb'XC1b2dni7{615e6-lV5Ц浱 t?5#eTuE7sz}392B#BT+{v'Gٯyrْ{嵕zx/B$/;Of![/#d4s"fCH3{( 5hH c9;Hw!CD#VxeJF`4åH̲!?fOͱGindeĆ- I:RA>vUK1֙юi"f;bͤvYF L4G!χx-+'y_LU2*ZW($BS_ٗEUQ 2ĺ\:=W-fWIyDbpi0Ydo q*P `Imf4{'t`:%΍ ؆C͘VѲ''F)y\U5P{wᬂi⌠d e1B0J&nH,p'5X*ٻw{'eYJ'N8]xKR܏5M @)uv huO>] NjjjT{{뺸 vS}0;22rѣSR)͛7e"X=lAdmBbDž-Q+@Jiod(q̙Y/k !8p@:J SIg }GeY-4 !x|4ͷo,|{M]Wa5 W)=|^0X4ͮ6j [Ǒ#GffffPjz#`+( E۶}kyG^ },j)T^}\׭acA6]BPZ! ϯB0?N$\.^.R&B&YN&=jH$ҲPELLL|bP ӓJҖU*jrw>ʍ`.~beccJU\~*8|>xΝ[B2 {rTUVVVw[ Æ%"rʕZ\fii)U,d2x,q +ҌϟP*j|~S/+ a~޽¹/,,L]ti ɰ-%ySSS/UEXo>UÇہ='O<.T*zzzbk2 \]x/+6WJ5F.0N__WO:n"ݴ}n\.G6EJ2Hӷnܸ0 ,eqg.@ 0F~kxxK=H۶,LDFZP(P*6k׮M?f[E@6.[.@ mǎ?bryyyybbbrff汪(_JP/;* ov4baFUYT*?ydizzzЭN : $t~%C)kF8b*(eК ;>C5~<[%-֕TThSVA1M)+E7ye5nYZA$> *z9K0IENDB`drumgizmo-0.9.18.1/plugingui/resources/sidebar.png0000644000076400007640000000072013331526613017054 00000000000000PNG  IHDR,{ pHYs  tIME  &7oIDAT8풿@d"!FH/ # `c%v 3bc2[,f??C&Ikv1^4}eB~mZjZ,Ƙ21#t|w]w:~2lRJ?(Rz}<^ yoyQeY$fh48q{nW:N2I4MR9cs~\ nR2ƴք8Xem[JY0jZR)J `0ۭm8BH)@ƘjZ.p8Ra !'ZSJ-x<,ZiOg_3EQ$/vsHߴIENDB`drumgizmo-0.9.18.1/plugingui/resources/font.png0000644000076400007640000002511313465753721016426 00000000000000PNG  IHDR]]f pHYs+ IDATxy]U?t1b EJ,iF͊ˁF --KD(4"JZRԂRGđvb,;Ί` f w޻^zw>3!:ZppwGrC_W~e^O^~OmU~ێ{DIӄ~iJ;ra4NATM9&_~MaM_74KZ㚲鷕k4=&4MSfqeUaà'Tk,N}ίw-0YA( M#|ʶJ֐gZ?ߏ JYEltЄ6S'|j*Q8؋5E^$Lkq;Ҵו{^l/+۪ѫ״8J4M臐fM|k4MĩwP4U|ӎMunO 7h*aQ^϶fה>HW]11iJ*4;(J c}8|tWbyR|gS%2t"گ]F[zhU!RU5- YE.كJYtlt7 =NV}d:btޚLC/QŵWqiZ~= Wow—mU~Ձom4M臐fM|k4MĩwP4U|ӎMunO 7h*aQ^϶fWgUՏ)yk4=&4=SI2aGUn0iڿq -3^:M~Kzkwvyn43W75EBB CNۇYh7Y:)_v`b0ox~*G!+cPƁz`?&_OI*u?θBk&$p;W4v?Vy !"!`p*;Ghf>h=pL P99n=`r> [ hbm AHZ6Ar:MG^/u,]a~ד"2^:`)p-_S芥/s A ; yH=Нa|O&S7#=NǏW[C~ y5\"&WveX=4&o:2\ -g&dk:%; "|x?)CȦ~ qƁ+*.ԑg&6d?ՁSm9| 'O]F@fT_EG "f #~*s܆*J2l@ 󘤚:> h /J35Д+rY;v:o@⇗{, q^>d^F{d(|p/F 1xwA/VO GM.YL2^h?![tt> <<KoDD .F<s Z4=1ěBy&evo'[#3}=V)|'ϡE? 1P>vwr"[P~d"Q\hh>'G`-N#Icߵ ^0XW§Cޝ r4>ǣMUy}0H!,NL'_E= X(஄\KQj4OD'"=qZ ܓO3_?G狌瑑 ˭FK^tBu5M䝾k&_x~<>i+/w "Cwn+O't"&/>j7'4)c/AB}5QxE,jWƂ(^JoDhW~0wPr5ŧ"n*g-Z\|}m2#&A_KZW<[yad| Gtt̾ub6٫_e]yގ+ܻFܭhnwfN滞l ~)*ߑdd<މ.+DzyATS|cYxAo1mw$k;hNc{>xO wсoz3{\~sQ9pC'>?Oц` _VM统NaO2g8lRZ@q~wNoS|:_A1h hm'8&2r#t:tV1v"O-:BƳB+Fnj΢봲h~>9n>^9 RK7t_ZD}rT||gR2+^ s?!w:m!V߆Mx×-@i$߁H~5H; pK3фf9O{@]&\_e_ќ3ϴ܄gx"<~4q:B'xRD\k :P HhA9V͕栅Wȵp Ḁ"/*9^\ڋv77o]t=P]Hd,b}&4>әOnDF'.GFؤGjo^M$Q7NL?tlr9-7voLXħ΢kj' עx)ʣq\ݲ\M񩑗Hc'kQ[\kqoYG./SMO9my)\_lEo+K'o݆1d܉lΣCΪ:&!(KȂ5xoG:htl5-AqЃ=3 1d|m)+<6GE0 ۴Y@rdi蟌65O5Fz9Zot:,p6 &lq*U]!>ДBM#'s+z]?<= aGk?/MJ:Y؂Yy>%:W ו{ %Ȱ Ӝp*\a`e"IZL^M4=j [:Kwz֣9pQ#]6' u\a,F:{}/N!?]͜x4*8pˑNDmnDGҾK-8T]+oGa_:?/C[ tz}NGrg>$ĭ@$žAY߅,[mކN_][na*)w^*Dq[Zsml;d=f˿`/ yt]0tkq-.qoBr`ˑv{TfdAV {R4WNÅo:׿*q1&'xZ~Kl  )qW"oC:?7U>}pj"cž)Ǒ ݋N.D )SS| f#{5闠9 ܧ c6RϹ'Ђ|oH`q!ȷ򉅧hsi4:ݕw7Io/'' oW-a@Yz+|Q½ջ&@Ž"z8Hu-w/~qvt:hFTߟ@7VS+k<3\o4l'er`}rhz8r,49L/H,ͻ0@c S|BZ)GDp#^Ӻ/0NIފ&S= ˗76&û{lζeס+Y2y T#Ghj[]Azt-סzw-rWZ\v6oyACk?ߣĮE+gB{F2(} 9(+atRqSAz:wroGhGB4EuX^o@¾t5ʼnY|":%h"nq,-EN>V~byz~2B/=ni^Z򋟹]m=v={\y^NyAHx up-$8CDZM f&5zŵ7,sFx\dOAl Ga mʽ{-H܆w;RPסD f-e7mVd45{ ߊt;gƴA¶ߧ9Gz_zqQ>#~m2]]/*+t7K҈B>N 򝶢6$tU HE(D4_A  H8"ȇmlЦoЛ=l\!| ._NT確9brZ\px;~X-~&bt'"tO(ۑ#/rq4?:mQ9yd|:n0=Vn^?9_`o- GIwL~ hqLr+"'##oMD]eɓW .l󏠾p=@ܮۅtt/D݅PIuw,MZELGѠ_O;IQgxlW?žJ֮N:7Q0RǣqN\ ܣK,?~< 'wܰ(= oXVpބvoʿ.DA7|찰{񣇍b@s51XF9\!g }tpC]TUXYDkBp&ODжgaӤ|42 qs7<Ӑiaix8{(Z58|ԓhRЂ` W*/ۀh]]v5pvTfμ썌]^}<݋rm!}4 ;^44xTI+Gh!k-|ot׉}}0a%XtH\w;vpY|Htgtj94%:z*+S^yI*Oc2NE$xDr:A *}Bm cU,b~hp c=\N 2/@|O.At!"W^j _jr4~xOG)\\W>|[.A[ŵbzy>qMN.&} wC շ~쯻 \JS8[xIx<~h=\j_v)ˏ3C:~8&]L$"d#:aڼ%&wDʏ ?q>?X͉DU}ݝv6cQ oIR\\ǣNw n[Y^084Qŗ&e ?= k4 t;٢qRu=l耰NxG-򣇍+G}uŧӫA"_{g/g -00/gcdFK$l!s:ЉwYz_kN [l a6DvO7ct+i;O&>9hk?"0]QЉ@ẅx 'ٕ~$ZBDA!c6Gx'݋cn,Tf6TFd׈9hL>8.xz4o"OgQ@m2?MTL6d$!&G5e?>_G6r5)"`x;;n'fxyp9體R blMgO@eP{h^-~.A#ދ)];MXOo-`T.xLgUݷ0}J,gtvݜ^6"-#_vCn1 ԐqU49{%>>f;-B{P~_~~xl _F'J~m\B0~ -vtB Lm*n؈t*2%\@-G+#tsξ}:hE lj12o!)gP6 JQ_C8}٭>l$}-_r 3-7@ zww(1ǣN< zbmX x:]B/ΫI*0iWQ~!8q -XQ­P9?!{=u=\oW"?z8RD4x{.+g.uq1Hd#Lֶ][t;w7]݂v9%e*W¸!MXN0@ 1gcbCpK]Ed#/n_0/B\u &^[sݿwI[Td'_fz6ŽТr(~#*g25W`W#F2gj*KAO+P8ϙdo IDAT3hby.+oI+˾7rYqdU_b/ˑy-FާqW|;U| jkg}2&ɿu'r1jy:ҭ.Rh{R}l.s59h73@km9*rv`p]QDrhNݻgr)hdm;%;fBcRt=SQ_(f::qaE}ٷ]rztEh<م P}$q_DҀĽKdo>@~wYGυA:IA[ŵ>~5%ې={ ҫl&Mq>1ʧι[*¸1AM~*yzhʥS~VPw2y9 |O}=mL78 mPޛ|ݙ4ttMg |b)ZǣNý |;äg%:A[!¹"up[:wWBȿ.#K?:7}?"?zظB0Oy_ރA `nTrZ\pxCn;ٮm<'~ɿ) \t ts4~ -tzi^Y`* p[4ҝ!gaʋ:u'0`kЂ*__9hnBd=WN9elEhB}#$Z l{$B#UWnroA]hA6!, 9s8c/7d؂&4Ï=Z&ƪ׏Ҋh(K&QXS?7@ܔ\ h@ ?G ;[5bO6d^B^xEF 7H_.;!ӹhwʾϋ0\g?dKP;W>冄L%ໆFn]Ћ-44nDm6A2Ԯ-rc^#by d\mh*7~)ؕ8]_[&4'\V.6}ga'ň 8rzv'rvϝޱ5{g6t"o g+;~kC5 xckq-n$pa_BvECuO.pqAqpi[ٹEr]_L'![,S%^?BcEIኮ^&Sއ2:t>H ӸSϹ;Ӿn]Jۮg Hb LV@U|adA%?>~;H{=F[sj}=A^]1ޑta hnD74>~"{8H?AK4>Z`q8.)RʼMӾ_w>lWiJz7S]'K_Tu+V]St~SUM~Zn&A^E'K^eo:q9#)^否W~EW</fKs1'۪ *&}ϢBߊ%[ŵ>kSx2-(U>k60&왪<:wX.\YV|fދ3NhѺ<[Jqsm}M2Fͮ+3- uL (RvYF㍡O'Cbkq-n1pqls A]U?<^0{|2ͷ;tHSO^~O{~Gס;']F0i!M)k4MiZ4`@Uo8 ߉6]*{>py,/0:b؟_3{7ragSU[\kqoǠ%ml$rLwxյOz= {saA{a;F7Yw_ش'Жĝ׶I}פo+ v7]WBߥ'fZAꀙ[QpE6mdXZZ\8;F_Qo"d-crJ)K)ʯ_nz^x pۈdg%%ߨ4B&tISrWD9 0iS'n4; K|)]6?6D$,Do]Wgߟ%~nYJg=VMWg]?Df}Oa;VwTzkq-.sҾ=RW?r$䩕N]<{qL{|ƁUȧW9IY!tO\Np76I%qsm}M2ݰkwUp%]zbe5E Wka2 ?g5IENDB`drumgizmo-0.9.18.1/plugingui/resources/bypass_button.png0000644000076400007640000000414213340266454020345 00000000000000PNG  IHDR`fgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxڴWKoGn/^LnrP\d;>۞qs1dl,(b&W2"$R(33{؞ hXU]U]E>}:22Bk_*P(d2k֖mG"L%PJM/?LOyCje0܌gA &i؈bA< "k 1#"&  6VVw ߷9=/޽k IQWVUaCt<6*Ȭb "XȔO ,NP> ei4(,ADcRK% ov b5J^yYO6*j$N$ je^ ~Y /x7ϵ-l|<1=6(Nbss2M $kGЮ%`D. 1>Rq HZO} AKsĎD^kY2_,ۀ%H@d{;ؕ 57^޺u ]ńXΝ~)wR ʊ7+,}\*9}:TɖJoXO8.2!Z'~^6_wB#A(7ׁ ӥ*Qj!,e!ؕxCc#33J%r+KK#ʮ|hfRqݱrv9X9hHI86 ^/棅kmY MND,zT;tlOP~o76HӇJ8M%C͆400l6u@{tt5\.j`a!A`ɒ彞y4g~yL* .fn167p&cgq)'p1ݻ4u[MAřLsr&+lj}\o:=A: opf>?9h-UplvPatP4+ a  X ̛7Ύ,UoU.ۮmEM@f~>688捫FMOGe (`wmTl}e!XjݍpusIb>'?8%Ozw_hFB+y9;;NR~!bIJMR?W*Cay^Q5Z |_3IꉮzTO: Z0^ԲNuu紹ټuh)ufRQRp8|^ Qo[ۄTèoA0B5jHd(_oC(uWKYNmDȹeY,U+XArv]@B>pYd&8${4biЧOQ);[4UT"qKQ\JIZ^/O? ;q@R )Jј Wq|ZIENDB`drumgizmo-0.9.18.1/plugingui/resources/help_button.png0000644000076400007640000000422413511117026017763 00000000000000PNG  IHDR w}YHzTXtRaw profile type exifxڭW[( {q+bo0U53cw =2%vǿr).\s8RM5(şɧ}GeNj{=uK/vaāyeԡ&Ri3Oe֩ JW^ʪK]VF/5ciɓ5L| k'l19`gFl 2`xу'sq#ϘsF`u]amMUaBc[uD1kpqG34v^pEFf->T #ky z3t AAc[wN[jK"@چ5}spxJxk#*`BGũòI2coral u|ݼm{d|-Er?0Rv⁑3#$b9fqf4ΛF؛ .Yr'y*WlyhYO!̔vǬ J|5ush# ֋s doCjA5m+/؆m{a}T_ S'}dX(i7Ipݸzm+"*'?3 t).xEͭZ9=fOx1xbH z ߱t 0`W(Mב.=߄< d Cڽ?P1N;|. ~ex= n]l`Vn'i1atСf9JW*J\#J)F,Ђ쟢:ȣO9C2ikfv3=]igm `W{Wy '7ӲqvXM0, $>Lld)7͌dbዂ(8;}bKGD pHYs.#.#x?vtIME 2:2IDATHǥNIi?6k,1Ih9p~_F3I ]K@vc bA޽;GԿjSSSNɲAؘ_b{,ˬ2Qaŋ#ˮ͋ hWP:ZM4eddjWVV|秦YNi>u*++|V΁⶷m|lHKjޒ){2\^]U Q677888`gg#׋`~"9 zej>;; E  ͌<8ui\fff90 5~gi꫆jXF>l5qEjũrMidwQ_ 26IU}*WA"*pwHB58<ǜ+Z־%Ih5GT sHUT`( ǟjWe N㈍ >}@ p*^UсzǞJ%DB?4Mx޳巬bE$2pO[SjЫ+5֝VCUŽ{FGG8q=Av}ҝw G1tl`A|[Z˗F QĝEÌ " n1Ns RAIENDB`drumgizmo-0.9.18.1/plugingui/resources/pushbutton.png0000644000076400007640000000260013331526613017655 00000000000000PNG  IHDR-9*gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxڤXoF)Je[q;Htk]4hKKGt-݊4<~Z}ȓL{Q"y}߽ݝ(.*KPĶ,˔de>(* YV,\XZ*@ t:UCTYӺĢt6}`=y7á #SIȭ:# ZJDC&-j4Ilm1ZAH} ',<l7&) ?]@v\]KB,>+ =o0q} ~iI/,]U!ϞMpaqVvQO@ s_܁Q9ZuXKq+5&gHi&{I! ma"Y4eKs2 u>I8Cer-]b!hLFO]-`:s.IbY)E7-ceeB 71Q1ڠGV!onTF*K)yĞj[k[pKo-^TjtSb"oBhI_mtLDo"Waw啘6"*x-]u]ւCki3f,:|JvTe~rѺ1̼a:ӵI߅=fɍ7`E笵@kQJ#/ι=a5<7j D z$zZk0<m䜵k-ىwu9oo~\e *9k'`mm'I L,<77W>yښϲRjEDF ۑtk-j+ιCJ h@΂Cށ(8&r?ٳ _.//3;;[#IKZZ;BlЁ;Oe6kRC`.CN[B69 A&íV cA V56OkM" Nt\я AC\vyNLL 'ds)nt:҃޲tݱ9vREuŰ26朣Of#J x<9Y Z֡`qq4Md@),AP>|̙3$%1(AF1w ZO^d$V!99RKfU6p,,,y }9}I[!)@Mlnnz>S&˗c*677Apj;45*z;HӔ8)t^?ZV)V\ry1y۷o իWh a8]Z$><{(V4zQc$t0`?Z1;!mɲ 9(ŋV pxA@ɧCQ\z݃iZzJ+ 2x~k׮oUJȰE"k-Ya˲V(ZkD^q݋Y߮h4(֑e~J^Ƙ;7o=GtXbh.\snQ$f󓷼I|i/oy"4f[oyc+ǟ6|Q<9sJ)Ο?OUk1nnyIENDB`drumgizmo-0.9.18.1/plugingui/resources/bg.png0000644000076400007640000000214313076173727016046 00000000000000PNG  IHDRrJ bKGD pHYs B(xtIME 8#fuIDATxܱ 0A@_15\rZ.O 9B |ѽ!@! E B 9 9B ,!@!@9?r@r\X9B 9}V,r!r! "@r!@s` 9 9B 9B94 "@r!@rB,r!r>W+9B9Br~` 9 Zr@r\X9B 9B9B Bx>r@rC!@! E B X9B 9}V,r!r>W+9B9B B 90O,r!r! "@r!@s` 9 9!9B9B@!@!@9?r@r!r!@_+9B9Br~` 9 Zr@rC!@! E B X9B 9B9B !@!@9?r@r\X9B 9B@!E Bj"@r!@rB,r!r>W+9B9B B 90O,r!r>W+9B9Br~` 9 Zr@rC7={KSvYIENDB`drumgizmo-0.9.18.1/plugingui/resources/stddev_horizontal.png0000644000076400007640000000041713340266454021214 00000000000000PNG  IHDR,d8)bKGD pHYs  tIME&JiTXtCommentCreated with GIMPd.esIDAT8cd3#C\/E#y\Hl(͆$f,Hbh4: V X?Hb/$1d$7$$G4_#aq ,bpg #< IENDB`drumgizmo-0.9.18.1/plugingui/resources/topbar.png0000644000076400007640000000031113331526613016726 00000000000000PNG  IHDRڜ sgAMA7tEXtSoftwareAdobe ImageReadyqe<[IDATxDNI0?7GIraSVM(3!ÑJ&Lv>}M`5'q}▽|8Zg{kzuIENDB`drumgizmo-0.9.18.1/plugingui/resources/widget.png0000644000076400007640000000174213153056417016735 00000000000000PNG  IHDRMyF>-bKGD pHYs B(xtIME6iTXtCommentCreated with GIMPd.eFIDATXýn+Esff\B_T "!!*J*'@1]! 4"^DnHX؞ݝKzo~ߜ932tz%?߁˲h7@Ǭ~(x:~\˲x㻁BWit\r{{mBH|?L#www3do?4V,"u.U8!鲭5,-Ohvc㰓zl?HF%,7g0t#$Z{ðʟ$`l3R2.hyv:e%wR,I{'$:w`wg;uޛ&[X;7k3[!Cu9M#o263B}b ánնsoV۹lڛNιp`lEQ>jع^(U۽sn:sgm簿<{"x/CsUlłǜ??`>!9EQRf/vEQK\d2yv/}6W 3f-LD%9^ofrUUMV"r#"_u3 VDd[j r+>IENDB`drumgizmo-0.9.18.1/plugingui/resources/thinlistbox.png0000644000076400007640000000027413153056417020020 00000000000000PNG  IHDRV(bKGD pHYs B(xtIME/+ iiTXtCommentCreated with GIMPd.e IDATc~(`b```,,}N1yIENDB`drumgizmo-0.9.18.1/plugingui/resources/toplogo.png0000644000076400007640000000124013331526613017124 00000000000000PNG  IHDR_pgAMA7tEXtSoftwareAdobe ImageReadyqe<2IDATxXm0=P;BV0#`2B:6Tt$=鄸XHe %̷β\y3|>]`sY~<: ,38X#Gy <B֖'ύ545#SduG^_ ϲ2C:+o![o&> 56Z;#[}Rdp6PX\hA XH =0x +"/94C!r&_C(c x.DXA 'I*Yny @rF&Rt˜"+h[Ou\o#ޥw˦*Iag XnGi&`•-$&|WhHS-m"ظ9uC2MuȒ狔ׄgv0þ:RO-P;=Mmpߎ9el֙ Ϙ%^0e?QR`iQpϞ={)rI joGF`uM]4H,K}zgs7bV[[oAEQz & ߞxWv}^u0 c0  !qZZZ㫯*\^ ħ~O?=`i7,X!Y[ޯN81mBeDQN!l \_|őѽWUuS`88:~̙^|3&b޿E1{[ =˲oh4F<{3> t(~m ӧO B- :ڕwwj(( {6sa9HA0P?Hz;TGni)`Ccv؊xryގTU]5 8vǚAo iVS!5~0 F!l7$Ǐ',܌'fN:t:GnAD}r2?`LNNz_x?´Yyj /ZaBٶ4h?m !|of֘pŬC -Iz衇Ay`izЖDuAz JRd2-<11& #+.\8kolnT*]$Iŋ xH$-}ǃr7H$yP(-...A}[t~+W\i>44&Ir  9;;{a~56|k)l6eQ/b1%L۷oq|yqq'Ng0R><<,k pY]]B$I x\M&D H _.4M;vR|ՙz޶{X,B^o^!ϯT*?N*R6%]rbbB3 wht4JA2`kzz,˚\.R鞇h6rڞ|'J)d|;=9yaȈH$$UtB֦X,B6';I`nnjڵkHDN&T*Xl'B7EQ'˲&u׻:22ضmZ:i~Jv~ }var6]|2IȾS) P^/$y n{QFgaaa%N:Dn_FcRldhQ{mm͝H$B.$ Àa$I Irx\UUPUEFZ dYXVVVbqev<_& \gۂ@"~L&BVaql3޲ 7 eY[ZZj*塡f*ji'˲v}yq#eM(HK}HpEB-//׮]`0HLYiFXl^q\y9L*x/f2}ͤkR$IinnrA\6j^Vx<9j6J^WZV(5HDy^x2 ӧ+7%m ԩSԻ$,z.,--9JRF$ 0 0 I"I!0Sꊢ芢VKiZ tt׫,a%X5 mb_pae_4R-..*bVD^[jHQ̜00!dM=BBAp8t ˥~=(HD8B$3(r/Mt])(f.$K.=zh+ eZZ o4jN)M,@@t:u˥ni,`0y>޽{/Z*߾#{Aɓ'(a4 ^w4I Y1S+00 \.dfU'&&$ݮ6nȳ^|ttG= hRU)˲jG7 IID$I]XX30O5IENDB`drumgizmo-0.9.18.1/plugingui/resources/vertline.png0000644000076400007640000000025212525310662017272 00000000000000PNG  IHDR'bKGD pHYs B(xtIME !. tEXtCommentCreated with GIMPWIDATc```a rqIENDB`drumgizmo-0.9.18.1/plugingui/resources/png_error0000644000076400007640000000506012525310661016655 00000000000000A drumgizmo-0.9.18.1/plugingui/resources/switch_back_off.png0000644000076400007640000000432712525310662020564 00000000000000PNG  IHDR;!ghNbKGD pHYs B(xtIME 07$tEXtCommentCreated with GIMPW?IDATXݙMGUxfgzӽ|$Z";(Hp{r9 (B\$@BA9O1Qe'vdgwgqpӞx-|TxEIaR  ?J${?Ӄq\02$I:6c`>f$76c.* dfzp^F$qLNrhty ѣYDFK_-x#Iυ X(QIY P*Q(<`GK$z=z7`Y $"T=A-*׉HafLH;6fn!>B(jBٌ1Ed@Ѳ{5^zo86HY.F)u㘔RK̜@ffⱱ?Z6a1 ",2t^/ZXkz}mm헷o~{{=y"rZq$IrcgzyY&&&Vr"\w=J|`^snׯjuu^{qA]̛[[[$Ju&">zffyԩoWܰ\Qe"nyZ?vj%IWk#"w^2FO4={^V53)DVVVVW\"nEG)\-fQk|g9La1ƘH sss̓~ZK\;b72\ _#~ `eyyy孷#91ihZc#"cI)ggg'-C Z/?W4Kkm97sh6OLOO~OTsZFhUZkbMlɲlɖ}"x^/\">ez*mooVxn۽nZ`,ˎȮ#0S.BPfY?O1[<|0YkZ 99GZk(R˕MD("͛7񿒴nf8|`(^YYy"R"E0Z_^m #qyp*amh~~ IV3O>dEx׻KD9WERVׯ\N3C& P呹QnZh4հ fV5v!LLL&k-8*Vҭ/Nv>Q$caDHOMMMtT."FD*"bsw}ٿ\vW^ap>PTcQOE=ܵn-$Mٜ 罯x 1Z7ϟ?W_{Hr93gd'N3!RcnijzheS6d~Ͻkil*.\=}J劈`挈 Z)~3뉢0k}ED*43tݯ]tiիuV_u,,,رcܹswdDdyGD2fδ̼}av޿O?{DTcc^ocZ1,s;;;ccc7DC-"elؓWGi޼/RAD3ADn,"JD>4| @YkIDs7BJ,!T!,aժODV)UafΣ,_"rС(fZD6DӠ  `řF h V"98<*ႺDDKD4M_PjE"pAU{\*F*c2B~(2s[#~8HEQE$l屩(\:{T6WUJr_>3*^H{>| wDdFN { @ Mh}(xwgn&K{<ֻ -4}8`@ `z}GTw\FIENDB`drumgizmo-0.9.18.1/plugingui/resources/progress.png0000644000076400007640000000113513153056417017312 00000000000000PNG  IHDR lbKGDC pHYs B(xtIME IiTXtCommentCreated with GIMPd.eIDAT8˥ORQo\h"V \6f9lG`  2 !}YJY1b"ЫsN Mgj̞wr pN ߱ H?0 π+1Z|]h i6K`g;ju60:Ђq@kA{ϺfHu3]wER{x--d*sa7S sU:&iJ)f(Z1h1,==Sbx0XfEy,Lv2Lt3̀r-";Q]GuMTj]͖\i7$ZXkKU׻?M&&Ͽ<|]keǕxZ_pgqȗu@~?&Xkp dGWΠIENDB`drumgizmo-0.9.18.1/plugingui/resources/stddev_vertical_disabled.png0000644000076400007640000000042513340266454022462 00000000000000PNG  IHDR,PbKGD pHYs  tIME#ziTXtCommentCreated with GIMPd.eyIDAT8c` oP+EL (1~T.* gJqY,T F,,l\"uΔQb2LO$o8** *#F>$b*=IENDB`drumgizmo-0.9.18.1/plugingui/resources/fontemboss.png0000644000076400007640000004552613331526613017637 00000000000000PNG  IHDR]еW pHYs+ IDATx]ix~{f2dI @!.B@A@Q7YDDeAQDv\",/ a  ȒH ~twttIީgf}ԩSUu@ r`́U&[a=/QM~Jrl/Wp[U+2Jێ˒eL=)u`/r+%29HSQk)+c*.=S۠*)?+bo=/ޕՁOmV(go'*q?H9ؔYZnEءdU&iJ8jy{;UuaOyeuMWV|5XeQRyY_k^~-Y{Lr쥏NE2jHYfmC,__sj%gرcǎMvqqy pҤIl@ok oeSJl,#g[5vȑՃ@G /ȶY?TնG5C5)UѾR]`JfJrwԎeeVutT%ecq\Gyջ2:I-۪W^euJ2&أrؔGZnEءdU&iJ8jy{;UuaOyeuMWV|5XeQRyY_5jdG%}J#{RN)ζ8=?RSw1~V_Me'j@D𥉉EDӉ(RKDD=!|$@%D:"#(چok\V[{j mJ6)[ ۪$/YX= K-dVjۣ[ZU-; UͨKm mlV/Я\q,󟿺lNns`tLt DF$Gp%2&(fr+0 {  K2*ĕ(3|%{(5k_E|>3Ȧ`c!2p@7,`SeY".I?"`S![2ܧ#$ 8 }ٴ<ޞɤ2^FXv/N"K!ڳR6` ,}1T&/`BI HP{f*Pf 8+k Q^OF|8, h +m U~ Qjr uߟOg<J{G;^ }%gEN*J~H|B'J_I ƕˠGivQzl6 [eJ~DEe/9*`97HT[ρ90Y{{{߰x{E!V oKa&;>?z`D;9s|[%r`5R>DQ)4z?,&~ LtSkw*(#NKJE >ߖk4G ϣ%ۓlBl99ɁL=,"o/R`/)h1/$ +$G*GVc\[bc5THVS_; tT[IۡJ{_o{USl(lb5T:&S6;g:0*DZoׯ_wkժ / &Nx;[0aB"qEb^0Ad2eN2ԩSQ_陱tD3C"*}nnnv!ՠ:v츾u֭[oNuֆׯoӦ͹-[dUYU0!ј+yK.~ZĽo?3Ǯ\.%%%m۶Kul*UFJxoٲeҾ}߽{w /ph4f4]߾}ӧئ5kּֿ_WӧoEEٰaܬRRRVwTkvpD;ڿ7o\tY֥VZo6l}gddlܾ}Ν;tP3(((I&AAA 5??ӹsڴisd2g8kn޼~ƍL&C1_"8a„DFSa,Q!#ap„ gD>j LK (ԑ-' UW10!PEB,Y]FFƚK.=zjZO;nvچ_|dSZj ɓ7Pj*[77nЩS`]t9|չ>ӼyGR돈<==st[nUb:\5ihkڴ 6>..v;۷oh4>.Ptf9}۶mD.+)2߹sglνxbkEߺu;v\gi>Y!Y`O y¬qPGepHl"&'L#mh6 S^Ee/9j0s=Lߚ5kF*8v`́YG8;;7{{{իשwnx7~}>[}ˬYyxxd :R䔿bŊ_̙󫫫#V^%...Ν/!!gFS+&E5 C΂ ,X`sNiҺeϞ={UtF)S~_h''1^ݩ5~~~7$86h \l60`ѻw۷q|WI """b[l'M%''iذ̂ 99EEE׫Wӳg"uΝ;-< I y<wʕ+{ì#N Ëj՚yҥm'i5ZJMM}f͚?իWj D..y?p!99o q֦rv= x2qnxb9\/ hժ3g mҤ,VFkӦMWy6۶m{GChw^M_zu|ppG999Ns|uDpqFߐzoڤ~[n`/I&=ndzw1cF$i8 R4y3ӧOqA!voe˖>| 9L=Zp$ri߾}ݻwqzswh"O.+,,l?y̅ njѼϽ{cԨQ\|׮]5--S``zŴiӦ]޽g_r*r9|Eb[jtւ_Mw޷|ɩyyyN 7~_,X,++7ۄ1xv޼yO?[0soܸ'>ygeeۛǍUܹ󁬬Sk׮tڹsg8!!!^!#CBB&8\cݺu/[ .A[`A[$v6zjǏ^rrrڵkųfAkԨq0::͛7֭#G֊Dxʕ  8nT8s΁5qO>rXvN=]vy:;;g_|9QR2> WkߦlgѣGO9s|S;/ዴ%qqq"##=W\&𽓓ݻ_۰aC-!+QN+cR݁q !ԁV˗/?-%%{xx_jj28p`^'իC]\\~`g[BVd2"zj|.9r%ilڲ uQQFn^U`/m۴M07m4.Iiii|||O8e0JY>*36\dcο{hD 2tc-ڥBLk hOI9x| q\͏a3q+ jwiy[fk3 |`V_:uNk.v2eddx(dٲ]].CrVvZiR OD'~W6:0*c/TD "q…>l|X^{1΢#8L~?uʔ)uxȐ!/if}xx웮D4@Դi#z:%ϞnҤa1nmٳGoogn/GdrX^/}v v^_믿6۷/B6mOD$EX`Ak PVDDDdJ+/-qgStOU™n{kԨ(>>SoϯQFNNN`VGΛ7>v|U7|}}oϜ9bED3g{ [E"r^{m;knM4DDmox3*9D/^ I)&&fG۶moSnzMGWD˗[ ϟ G䴂eRz 0"R,??gw}\aB+OOχ]O }vS6quuͽyxWW\[% k5^->4E Wg8~^ ~۠|I.W_ ߿VKz~~~-2V>g<7ĭ'J- \>%>@Rrr؅tGVdc"~3҉[pS #aUwڀogJc/;Ԁ'8/^4 f5Ts`ҷƋ4YuQƣ>}f}YNbYfm 6 roߑ~~~›ZalYv~+DDo޼1669V-\bƍKeK)i?DhԩS 3mڴ i|nܸqk)&> /'z4Q`f!;K._ܹ>>>6Ɯ9sv dܱcR"*x5HVB7Νk-i>%p>? kڷoJDJcӖϖѡ294 mS6^ 2} p!ڵk\zVv*G.khåK7ljXXXS|/AGxT"ǚZn}9q={-]kk>tE`-W0lذm>@={dw5!͏l̲%"o=|}[~}v.8O ̖PN- zXbbs ZP6:;;=zlkҶm;vx~w!qE&L8Eoo,"j.' C_ٳg?T }t)6fs E""D+|+Wtd9xw=֯_?|{(99ɓnF"j-OnݾرU)xQh篐]Q-\"??i&~AE_x/ߔWjcǎKxkDdƍ N$ V[ye"ްa{?p S)$l7)~C򰕈Ȣ}N".Ubz>wƌ{DQFGy睵B]]]tr[N8nݺ)Ys<'ggUV}k׮9ð?~Whå$7xq66R[2"J\ W3/2^VZ.\@D1cƮ rzi4T3d회^۷_ղe["GݻTαcǂ%[jժն ovk`x Wn[XG^re@DرcÒn[G6*!".:::O>{n@֭w}1gb J8iҤIФImN SνSuԹKD!J8mڴٛcr i#""2z9GFVM~'ne˖i]tR._yÖIYZF5##ck. :u$ݸq)Sذab^zz뭟׎1}czŝwޚs7uŊK=z_~6mv#?׿6B͚5;y֭S ׿uYfIDG&5i̍7V;Gf۶myry5m̍7b 6<ЫWiii#;U^"VvӃ>N:??:ujq\Q~.n5j櫬mm9i7vv,::hV||رcF) qqq+Du uM&ӃY9Vqqq+ر6888{ܸq6[pNn3V\:h^ &yԝ/r\ځ90f[J5M1cz}a׮]χcV&LXڴi3○}gIx AճFcf5(M1w^-: k֬,-LDDԇ>* VZh4իWCH}i}g[߆aÆwqq)`19->.$F |L^_f͚^^^+cڵkY"~6mڬi۶%/4hQ"٪u۷om2y{j}:\]]s~R IDAT{DNmӯDdH!wB/K\y ,ܷV^%oi6O81~k"j^_V+>e!r;qdVxoCٳ?+ǚZ0ɔ9xk֬Y|VVU%'95LcRHR@^u Cy<"hѢ_P```O"u§U͚5oL6'Xy`0䅇g 'Hx-LvO?#y!J3f'vڗ sG_~eCfSi~L yR&nժmYHaaaL#+[ĝ }[&uԹtU[4""$'b:((((gz޽iiiۻtZV"~)WZmKv~H|ӓO>y}*kAbD4cǎU^7o޼߈?ްaCCݻw@D֠GbbmڴwԻw ~~~DTSȿ_qol|}b4WJj4~Az~&Rql07mڴ9ܼyxxnEFFSqqq5 `h֬YをMAiG6lBJJj{Yظqϰhڂ\rCDayyy_}WtH5n c.=KWOL&av/wwǏw +ƍ[ӧO6,,*4l÷K믿)q*'֭[Z~B%DZ4pM*&O/\Yb'PY3"!"?m۶m.9?s 8"D4v9۷otqqɽ~z"ٳ: Ǐ'"m۶},1))i HfżN/,,$DD.ѣo 7KuСrKѣGsbbs͛Ç_1 Ŏ^/pBw"rݰai~{ypׯߛB,T-'m„ BBBn@hhho(92VZ~:U^=zz}DEE#&&&x7!ȹ. l QϞ=? -ޭDZ׵jzЫWD,44ӧoܸ͛_prr]v]Ts`ҷdq-S'NzܹСCDm<NNW$7tDBD!Q&>t˗/{CBB؇AZټ^%UD4؇zF1kժU_ƬcǎPWN>"Nќ9s~Kg-(qJaYr~EѷD==+1M+h )֫ ;v ~RB|cKetLj~ǿx K^puu͒V<9uꔧ;uꔧdZ N0e[AjpuTZ}S NӦM7kԨq|P& 3µZm˧ddرsٜ~Eu1h4}G%VEϛ7/d2Z٦-oQ'&)w,5~nnnRYƎl4%"#:DM]pa;>~Qv,@f'''b~F:PVPVoQbreddd4svvKNN 7vqq斓'M h4Ξ=h|( )'W^*W~.b>'8 ,ֱUDJDs)}}:Lw~~~8+vޜ.1Oe(ҥ6`w@;sLgz899UCz}c$6ruu}|љl:V^BaӦM_mѣDD?N'9Ui.-rjjjVZֽ{D"ґC/\h̃$MqƿߚVǎSi-ZvhGD۷ofmQ.2Gn?o/4BCCϏ1PHH#F"f\92c%%%0` ܹsN35ȔQ6^mK#S??; ̩K$SG庳#8bĈCjպ0bĈC7`HHHX%/nIubMM&ä`2|G~y2|y<}}}㭷zNZ sss{$ǗڎM[N?"Ooʱ2,H&Gy08 " nj,5FD-`ʔ)be+#Fv"444ݡKAaa͚5K.ñVwzw@ "DOɿCWVL bNMM-]?1v"hΜ9}L&SVbb6N0kSQBɃnk4pGp*(SN$]ڵ-"J q\.OSի>|~N7}W>W=rرx^?cǎ+|||nzPtttLNWm6/i֭[}Ʌq\#_j8+e˖g[n\ń5k/111qW G8hϞ=;433EƟ<1is|r7lpoEs9K8.o޽ 9ԩSڴis{Rt:ծ]{qy8qGVq'8nÇ2 1lذΜ9󸯯<|eEaĈ[8siii >dff 2R<\ Z"""(**>SKY믿I&]&v27soffVVmo߮:>q\͛z}qEFF޿[,0~| o"_n#GLN9rS~0_lٲe|%R~AAA?VVo߾%ޜeC\\ܴFevs6y7]VAs:5o&ب'q9[q\GGGؿ?9r:uKetgfΜr||.]qcqq9[qءN(EQaÆYoذaq\hƌc222jxݻg-Nd@@@VXXqoo܈BЇ!!!ׯ4mLL̊'xѣjNLL <8!|ߔ;uyXXأ~.Zll{W+q8qw qjρVZ?~իW,W^mcsr2 CҥKk |XLeggouttvv.\r/lڴ8.d*^z饤/ULB8NvEk׮5 ܥsm۶ !!ٹPwqq)LHHk֬)U5j4֭[o0`e^2!SVC~~~9'G 22rlk׮W5ZoN ~~~9SLߢE_7n2pf͚Y1rscǎmTw>|xYfpq\*qy@J̷jP4{Mzꩍ58IHH/Kk.g;;;_ѣG˗/Ĺ%qψB عsAAA9NNN?qzܸq~jղ:'qjBBB:th3TΩZGfffN3fff&rV9R:߮W޳~5:Z}Ԅ }Q!e:p 333Q333ZA"##wtO?=̘1c2|ȗ3V)Fbz}xeJڵk'߿֭[?pss ;ľ ٳ{kk>tE` ǁ㸎ѣG^e+c.\F͚5w}з~{`0(=;Sf.((8 z>zUZ&ƩY-ǸqQF}/兆>h߾ZD7𲟟CleV[Ʈ`~F_}#U_//#Fg#G~,l9-8D jѢ=z8%;w|iӦ0v]d;GX&33n|~"D4An2>#..n{tu69cbbDEEfu6Lٟ~ n =ڵk^2>OwO?^ޒysY/y,N[9R<==sDFFf` з~K//۷o kժzqL"O"""9))iD{zz>m{4hkF)Zv'J}od5jte˖(66vmTTF 2:͝;wmMsgڴi;7|!7ް8˕+=zfsg9oNԻw2icFcvZZZHKKh4b86 ɓ'ߑ Gn(zqEҳC 9j9~?~u랔E 48wSZn}CĢoo v9|QTTQQQ7h0+Yf~t_C-[Lk۶m?*ձD1XHD}lOˤUߪh֬;~;>>~aÆ طC[lY/Ʀ} WjG9;0mC Y*3 q|ܸq}}$tSA׮] ..F)?#v̺w:r:w|㸢_|$'7NDOV"8šTNo0rzy9--mYXXXJfvr DO<ĵN:%@Nڶm{ER9+t6D`xŊHݻwY=V[j o&%%*q\\\ e;vYfV-0 ۷o<++Z-[֊u:]~xxխ[&ҥKNoEdkڢ~)F&Ú6msz}n&MSSSe˶1c~!:2JyK$ťvb;^z>5 N3dO߽{mFNѩСCfsWk"& rذLY\+W:hڢUVa9O~JЖ-[H\ 9M4鷀+)[xxrnnn҅=$Y+Zhܸqܲ ݻ.qر]\\CBB^xƅ\j/_1 xm̓'ON Nj֮]Z'N_zt3dȐ%4K#~wk֬yC&VǑ#GjN8{1ŋDڵk_t;w>f-?ѢEvLrs ^x"N"իW@˖-ϟ >䓏`֬Y ~r}?w_c̝;wڸql:WWW8park""=Ṕ90Kߒ/\0/ #FDDyuԹ_|rB.]u:]~۶m]ԣ8QFuww!~ W|Ga+'۾j9lx5,GÆ /k4&M\"|C%60L;E:s_fmi2?~|$w3 IDAT ryxzz[zRJS04000BeVvYl99́L%qKy: AGov%;SWv VM_29%"S6x%Θ1cԯV%l̙{]]]i4[{ݺrٞZmA``|%|z,o7T+ך]٘r 48ߺuKNNNy9rdY+}mԼysZ@nf͚߾ht`́U,!7]hIB<<"'y %"z}EO+F;"!DB7~\l63Y}l6gΛ7 JD͚5KWhC"ZH2g"'M%~JB-1c+Wv+AOD5h o1+•o"+5]!k2x(+V rexW_T """YDm@jS%K󳆫0e}~ȑ}}}_>j"4#ڵk@2S$YB.+}J2+w#Y Lnʴk Gj^ K!,5Bk/"zBr`LUQ#yH"Z.|Fsֱ-{Jdy0"ZFDӦMfC/?" HDI|P)&ھ%/hAʑ∿Nd{N_?5$2\vPh"H¹9 ?&lğ+m C?+ #C|_~Zї]M[)\[ J8ZKd?VYݤ6T#~q7{y=_'Ti:%JyYD4I(KKQF?yNI&}B2s AQDrb?~Bg0 GC$:M&ƌ'rVZd2$"k8| ;Nl>BUK;0,}K'"'ON$~.\HS };D"+O.b"5fp3f\kYYe)9UZӓ 1ⷭHo'}dȯ3]h(~+ ?O)/ u [?̃u/W"oJx3lHy\V:_mPft(O6&) \mnܸqSabbdϖ5+#M8GoOe<@ ~D A"2Ke _29L)6[׷$kJX#}D{$^իvrr*LJJ,kE"0O.$*ѕYkL7?&Id+ʾ6ofD=t\.]RSSsqq9|pkgs`q7qb 6Q< D 3322X+`ϛekqykrI j׶ٽd'%9+5F^yuڙqѢE?Fׯ__ g;t |4eLNY[^[-"절58DUjj9HcoJUmY)Ą<,i޼/^4'|q4"ReG{]*0@rt:TDAOTTjwwݻw&;whGa1>jmbeVs`ҷdq^>vS 4 &wNv&[ݎ#G>qj٣GN2eJOkn\^ٕVa>OIvq?tѢEk{f999.1w+b fxxxٷoPY111Oofddm4Jk<}=}ÿ3@ q9wZ: 5_P3)#~%7㸯Ϋs`0WīZ{/jߺu&FiC=7yQg?pXd h x$ܚK#:CT'))iСC:uLZNsϝOvk4唦ۣ ɱG أ/jaʒU{Nm6y2\P"}YDO8駟1_jWŶ]믿>7~>tU֙1Uz{{?ܻw龜K.]) oh8 +ɋ/Vߪ6v`́Yb_I |<㐃v=feNV} vwSUyAoK\ִ @x*.fuKۚV-M+cW4_ҳgΝ @7sY^^^k_HKl*(Og/ʶ?wlKeVu"9trys`r|(_75%-QS{NJrl/Wp[U+2,~k^o#Ew–mKW^c^zV*KVer쑦4i!IrUu!YDHآK #include #include #include #include #include "guievent.h" namespace GUI { struct Point; //! Interface class for native window implementations. class NativeWindow { public: NativeWindow() {} virtual ~NativeWindow() {} //! Set a fixed size to the window. //! It resizes the window and disallows user resizing. virtual void setFixedSize(std::size_t width, std::size_t height) = 0; //! Force window to stay on top of other windows virtual void setAlwaysOnTop(bool always_on_top) = 0; //! Set a new size of the window. virtual void resize(std::size_t width, std::size_t height) = 0; //! Query size of the native window. virtual std::pair getSize() const = 0; //! Move the window to a new position. //! Note: negative value are allowed. virtual void move(int x, int y) = 0; //! Query the screen position of the native window. //! Note: returned values can be negative. virtual std::pair getPosition() const = 0; //! Show the window if it is hidden. virtual void show() = 0; //! Hides the window. virtual void hide() = 0; //! Return visibility state of the native window. virtual bool visible() const = 0; //! Sets the window caption in the title bar (if it has one). virtual void setCaption(const std::string &caption) = 0; //! Draw the internal rendering buffer to the window buffer. virtual void redraw(const Rect& dirty_rect) = 0; //! Toggle capture mouse mode. virtual void grabMouse(bool grab) = 0; //! Reads all currently enqueued events from the native window system. //! \return A queue of shared pointers to events. virtual EventQueue getEvents() = 0; //! \returns the native window handle, it HWND on Win32 or Window id on X11 virtual void* getNativeWindowHandle() const = 0; //! Translate a the local native window coordinate to a global screen //! coordinate. virtual Point translateToScreen(const Point& point) = 0; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/label.cc0000644000076400007640000000436213340266453014322 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * label.cc * * Sun Oct 9 13:02:18 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "label.h" #include "painter.h" #include "guievent.h" #include namespace GUI { Label::Label(Widget *parent) : Widget(parent) { } void Label::setText(const std::string& text) { _text = text; redraw(); } void Label::setAlignment(TextAlignment alignment) { this->alignment = alignment; } void Label::setColour(Colour colour) { this->colour = std::make_unique(colour); redraw(); } void Label::resetColour() { colour.release(); redraw(); } void Label::resizeToText() { resize(font.textWidth(_text) + border, font.textHeight()); } void Label::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); int offset = 0; switch(alignment) { case TextAlignment::left: offset = border; break; case TextAlignment::center: offset = (width() - font.textWidth(_text)) / 2; break; case TextAlignment::right: offset = width() - font.textWidth(_text) - border; break; } if (colour) { p.setColour(*colour); p.drawText(offset, (height() + font.textHeight()) / 2, font, _text); } else { p.drawText(offset, (height() + font.textHeight()) / 2, font, _text, true); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/toggle.h0000644000076400007640000000346313340266454014370 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * toggle.h * * Wed Mar 22 22:58:57 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include namespace GUI { class Toggle : public Widget { public: Toggle(Widget* parent); virtual ~Toggle() = default; void setText(std::string text); // From Widget: bool isFocusable() override { return true; } bool catchMouse() override { return true; } bool checked(); void setChecked(bool checked); Notifier stateChangedNotifier; protected: // From Widget: virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void mouseLeaveEvent() override; virtual void mouseEnterEvent() override; bool state{false}; bool clicked{false}; bool buttonDown{false}; bool inCheckbox{false}; std::string _text; private: void internalSetChecked(bool checked); }; } // GUI:: drumgizmo-0.9.18.1/plugingui/dialog.cc0000644000076400007640000000267313331526613014502 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dialog.cc * * Sun Apr 16 10:31:04 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "dialog.h" namespace GUI { Dialog::Dialog(Widget* parent, bool modal) : parent(parent) { parent->window()->eventHandler()->registerDialog(this); setModal(modal); } Dialog::~Dialog() { parent->window()->eventHandler()->unregisterDialog(this); } void Dialog::setModal(bool modal) { is_modal = modal; } bool Dialog::isModal() const { return is_modal; } } // GUI:: drumgizmo-0.9.18.1/plugingui/nativewindow_x11.h0000644000076400007640000000554313551153106016310 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_x11.h * * Fri Dec 28 18:45:56 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "nativewindow.h" namespace GUI { class Window; class NativeWindowX11 : public NativeWindow { public: NativeWindowX11(void* native_window, Window& window); ~NativeWindowX11(); // From NativeWindow: void setFixedSize(std::size_t width, std::size_t height) override; void setAlwaysOnTop(bool always_on_top) override; void resize(std::size_t width, std::size_t height) override; std::pair getSize() const override; void move(int x, int y) override; std::pair getPosition() const override; void show() override; void hide() override; bool visible() const override; void setCaption(const std::string &caption) override; void redraw(const Rect& dirty_rect) override; void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; Point translateToScreen(const Point& point) override; private: void translateXMessage(XEvent& xevent); //! Allocate new shared memory buffer for the pixel buffer. //! Frees the existing buffer if there is one. void allocateShmImage(std::size_t width, std::size_t height); //! Deallocate image and shm resources. void deallocateShmImage(); //! Copy data from the pixel buffer into the shared memory void updateImageFromBuffer(std::size_t x1, std::size_t y1, std::size_t x2, std::size_t y2); XShmSegmentInfo shm_info; XImage* image{nullptr}; ::Window xwindow{0}; GC gc{0}; Window& window; Time last_click{0}; Display* display{nullptr}; int screen{0}; int depth{0}; Visual* visual{nullptr}; Atom wmDeleteMessage{0}; ::Window parent_window; EventQueue event_queue; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/Makefile.in0000644000076400007640000035203213554101142014767 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = plugingui$(EXEEXT) rcgen$(EXEEXT) @ENABLE_X11_TRUE@am__append_1 = \ @ENABLE_X11_TRUE@ nativewindow_x11.cc @ENABLE_WIN32_TRUE@am__append_2 = \ @ENABLE_WIN32_TRUE@ nativewindow_win32.cc @ENABLE_COCOA_TRUE@am__append_3 = \ @ENABLE_COCOA_TRUE@ nativewindow_cocoa.mm @ENABLE_PUGL_X11_TRUE@am__append_4 = \ @ENABLE_PUGL_X11_TRUE@ nativewindow_pugl.cc \ @ENABLE_PUGL_X11_TRUE@ $(top_srcdir)/pugl/pugl/pugl_x11.c @ENABLE_PUGL_X11_TRUE@am__append_5 = \ @ENABLE_PUGL_X11_TRUE@ -I$(top_srcdir)/pugl @ENABLE_PUGL_X11_TRUE@am__append_6 = \ @ENABLE_PUGL_X11_TRUE@ -std=c99 @ENABLE_PUGL_WIN32_TRUE@am__append_7 = \ @ENABLE_PUGL_WIN32_TRUE@ nativewindow_pugl.cc \ @ENABLE_PUGL_WIN32_TRUE@ $(top_srcdir)/pugl/pugl/pugl_win.cpp @ENABLE_PUGL_WIN32_TRUE@am__append_8 = \ @ENABLE_PUGL_WIN32_TRUE@ -I$(top_srcdir)/pugl @ENABLE_PUGL_COCOA_TRUE@am__append_9 = \ @ENABLE_PUGL_COCOA_TRUE@ nativewindow_pugl.cc \ @ENABLE_PUGL_COCOA_TRUE@ $(top_srcdir)/pugl/pugl/pugl_osx.m @ENABLE_PUGL_COCOA_TRUE@am__append_10 = \ @ENABLE_PUGL_COCOA_TRUE@ -I$(top_srcdir)/pugl subdir = plugingui ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libdggui_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) @ENABLE_X11_TRUE@am__objects_1 = libdggui_la-nativewindow_x11.lo @ENABLE_WIN32_TRUE@am__objects_2 = libdggui_la-nativewindow_win32.lo @ENABLE_COCOA_TRUE@am__objects_3 = libdggui_la-nativewindow_cocoa.lo @ENABLE_PUGL_X11_TRUE@am__objects_4 = \ @ENABLE_PUGL_X11_TRUE@ libdggui_la-nativewindow_pugl.lo \ @ENABLE_PUGL_X11_TRUE@ libdggui_la-pugl_x11.lo @ENABLE_PUGL_WIN32_TRUE@am__objects_5 = \ @ENABLE_PUGL_WIN32_TRUE@ libdggui_la-nativewindow_pugl.lo \ @ENABLE_PUGL_WIN32_TRUE@ libdggui_la-pugl_win.lo @ENABLE_PUGL_COCOA_TRUE@am__objects_6 = \ @ENABLE_PUGL_COCOA_TRUE@ libdggui_la-nativewindow_pugl.lo \ @ENABLE_PUGL_COCOA_TRUE@ libdggui_la-pugl_osx.lo nodist_libdggui_la_OBJECTS = libdggui_la-abouttab.lo \ libdggui_la-bleedcontrolframecontent.lo libdggui_la-button.lo \ libdggui_la-button_base.lo libdggui_la-checkbox.lo \ libdggui_la-colour.lo libdggui_la-combobox.lo \ libdggui_la-dialog.lo libdggui_la-directory.lo \ libdggui_la-diskstreamingframecontent.lo \ libdggui_la-drumkitframecontent.lo libdggui_la-drumkittab.lo \ libdggui_la-eventhandler.lo libdggui_la-filebrowser.lo \ libdggui_la-font.lo libdggui_la-frame.lo \ libdggui_la-helpbutton.lo libdggui_la-humanizerframecontent.lo \ libdggui_la-humaniservisualiser.lo libdggui_la-image.lo \ libdggui_la-imagecache.lo libdggui_la-knob.lo \ libdggui_la-label.lo libdggui_la-layout.lo libdggui_la-led.lo \ libdggui_la-lineedit.lo libdggui_la-listbox.lo \ libdggui_la-listboxbasic.lo libdggui_la-listboxthin.lo \ libdggui_la-maintab.lo libdggui_la-mainwindow.lo \ libdggui_la-painter.lo libdggui_la-pixelbuffer.lo \ libdggui_la-pluginconfig.lo libdggui_la-powerbutton.lo \ libdggui_la-progressbar.lo \ libdggui_la-resamplingframecontent.lo libdggui_la-resource.lo \ libdggui_la-resource_data.lo \ libdggui_la-sampleselectionframecontent.lo \ libdggui_la-scrollbar.lo libdggui_la-slider.lo \ libdggui_la-stackedwidget.lo libdggui_la-statusframecontent.lo \ libdggui_la-tabbutton.lo libdggui_la-tabwidget.lo \ libdggui_la-textedit.lo libdggui_la-texture.lo \ libdggui_la-texturedbox.lo libdggui_la-timingframecontent.lo \ libdggui_la-toggle.lo libdggui_la-tooltip.lo \ libdggui_la-utf8.lo libdggui_la-verticalline.lo \ libdggui_la-visualizerframecontent.lo libdggui_la-widget.lo \ libdggui_la-window.lo libdggui_la-lodepng.lo $(am__objects_1) \ $(am__objects_2) $(am__objects_3) $(am__objects_4) \ $(am__objects_5) $(am__objects_6) libdggui_la_OBJECTS = $(nodist_libdggui_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libdggui_la_LINK = $(LIBTOOL) $(AM_V_lt) $(libdggui_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(OBJCXXLD) \ $(libdggui_la_OBJCXXFLAGS) $(OBJCXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ PROGRAMS = $(noinst_PROGRAMS) am_plugingui_OBJECTS = plugingui-testmain.$(OBJEXT) \ plugingui-hugin.$(OBJEXT) plugingui_OBJECTS = $(am_plugingui_OBJECTS) plugingui_DEPENDENCIES = libdggui.la $(top_srcdir)/src/libdg.la plugingui_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(plugingui_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_rcgen_OBJECTS = rcgen.$(OBJEXT) rcgen_OBJECTS = $(am_rcgen_OBJECTS) rcgen_LDADD = $(LDADD) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = OBJCCOMPILE = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) LTOBJCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_OBJCFLAGS) $(OBJCFLAGS) AM_V_OBJC = $(am__v_OBJC_@AM_V@) am__v_OBJC_ = $(am__v_OBJC_@AM_DEFAULT_V@) am__v_OBJC_0 = @echo " OBJC " $@; am__v_OBJC_1 = OBJCLD = $(OBJC) OBJCLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_OBJCLD = $(am__v_OBJCLD_@AM_V@) am__v_OBJCLD_ = $(am__v_OBJCLD_@AM_DEFAULT_V@) am__v_OBJCLD_0 = @echo " OBJCLD " $@; am__v_OBJCLD_1 = OBJCXXCOMPILE = $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) LTOBJCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(OBJCXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) AM_V_OBJCXX = $(am__v_OBJCXX_@AM_V@) am__v_OBJCXX_ = $(am__v_OBJCXX_@AM_DEFAULT_V@) am__v_OBJCXX_0 = @echo " OBJCXX " $@; am__v_OBJCXX_1 = OBJCXXLD = $(OBJCXX) OBJCXXLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(OBJCXXLD) $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_OBJCXXLD = $(am__v_OBJCXXLD_@AM_V@) am__v_OBJCXXLD_ = $(am__v_OBJCXXLD_@AM_DEFAULT_V@) am__v_OBJCXXLD_0 = @echo " OBJCXXLD" $@; am__v_OBJCXXLD_1 = SOURCES = $(nodist_libdggui_la_SOURCES) $(plugingui_SOURCES) \ $(rcgen_SOURCES) DIST_SOURCES = $(plugingui_SOURCES) $(rcgen_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libdggui.la # If you add a file here, remember to add it to plugin/Makefile.mingw32.in RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/help_button.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/stddev_horizontal.png \ resources/stddev_horizontal_disabled.png \ resources/stddev_vertical.png \ resources/stddev_vertical_disabled.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../BUGS \ ../COPYING libdggui_la_CPPFLAGS = $(GUI_CPPFLAGS) -I$(top_srcdir)/hugin \ -I$(top_srcdir)/src -DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \ -DLODEPNG_NO_COMPILE_ENCODER -DLODEPNG_NO_COMPILE_DISK \ -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \ -DLODEPNG_NO_COMPILE_ERROR_TEXT -DLODEPNG_NO_COMPILE_CPP \ $(am__append_5) $(am__append_8) $(am__append_10) libdggui_la_CFLAGS = $(am__append_6) libdggui_la_LIBTOOLFLAGS = --tag=CC libdggui_la_LIBADD = \ $(GUI_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdggui_la_SOURCES = abouttab.cc bleedcontrolframecontent.cc \ button.cc button_base.cc checkbox.cc colour.cc combobox.cc \ dialog.cc directory.cc diskstreamingframecontent.cc \ drumkitframecontent.cc drumkittab.cc eventhandler.cc \ filebrowser.cc font.cc frame.cc helpbutton.cc \ humanizerframecontent.cc humaniservisualiser.cc image.cc \ imagecache.cc knob.cc label.cc layout.cc led.cc lineedit.cc \ listbox.cc listboxbasic.cc listboxthin.cc maintab.cc \ mainwindow.cc painter.cc pixelbuffer.cc pluginconfig.cc \ powerbutton.cc progressbar.cc resamplingframecontent.cc \ resource.cc resource_data.cc sampleselectionframecontent.cc \ scrollbar.cc slider.cc stackedwidget.cc statusframecontent.cc \ tabbutton.cc tabwidget.cc textedit.cc texture.cc \ texturedbox.cc timingframecontent.cc toggle.cc tooltip.cc \ utf8.cc verticalline.cc visualizerframecontent.cc widget.cc \ window.cc lodepng/lodepng.cpp $(am__append_1) $(am__append_2) \ $(am__append_3) $(am__append_4) $(am__append_7) \ $(am__append_9) @ENABLE_COCOA_TRUE@libdggui_la_OBJCXXFLAGS = \ @ENABLE_COCOA_TRUE@ -fblocks plugingui_LDADD = libdggui.la $(top_srcdir)/src/libdg.la plugingui_CXXFLAGS = \ $(GUI_CPPFLAGS) \ $(SNDFILE_CXXFLAGS) \ $(PTHREAD_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin plugingui_CFLAGS = $(plugingui_CXXFLAGS) plugingui_SOURCES = \ testmain.cc \ $(top_srcdir)/hugin/hugin.c rcgen_SOURCES = rcgen.cc EXTRA_DIST = \ $(nodist_libdggui_la_SOURCES) \ $(RES) \ abouttab.h \ bleedcontrolframecontent.h \ button.h \ button_base.h \ canvas.h \ checkbox.h \ colour.h \ combobox.h \ dialog.h \ directory.h \ diskstreamingframecontent.h \ drawable.h \ drumkitframecontent.h \ drumkittab.h \ eventhandler.h \ filebrowser.h \ font.h \ frame.h \ guievent.h \ helpbutton.h \ humaniservisualiser.h \ humanizerframecontent.h \ image.h \ imagecache.h \ knob.h \ label.h \ labeledcontrol.h \ layout.h \ led.h \ lineedit.h \ listbox.h \ listboxbasic.h \ listboxthin.h \ maintab.h \ mainwindow.h \ nativewindow.h \ nativewindow_cocoa.h \ nativewindow_pugl.h \ nativewindow_win32.h \ nativewindow_x11.h \ painter.h \ pixelbuffer.h \ pluginconfig.h \ powerbutton.h \ progressbar.h \ resamplingframecontent.h \ resource.h \ resource_data.h \ sampleselectionframecontent.h \ scrollbar.h \ slider.h \ stackedwidget.h \ statusframecontent.h \ tabbutton.h \ tabwidget.h \ textedit.h \ texture.h \ texturedbox.h \ timingframecontent.h \ toggle.h \ tooltip.h \ utf8.h \ verticalline.h \ visualizerframecontent.h \ widget.h \ window.h all: all-am .SUFFIXES: .SUFFIXES: .c .cc .cpp .lo .m .mm .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugingui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugingui/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libdggui.la: $(libdggui_la_OBJECTS) $(libdggui_la_DEPENDENCIES) $(EXTRA_libdggui_la_DEPENDENCIES) $(AM_V_OBJCXXLD)$(libdggui_la_LINK) $(libdggui_la_OBJECTS) $(libdggui_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list plugingui$(EXEEXT): $(plugingui_OBJECTS) $(plugingui_DEPENDENCIES) $(EXTRA_plugingui_DEPENDENCIES) @rm -f plugingui$(EXEEXT) $(AM_V_CXXLD)$(plugingui_LINK) $(plugingui_OBJECTS) $(plugingui_LDADD) $(LIBS) rcgen$(EXEEXT): $(rcgen_OBJECTS) $(rcgen_DEPENDENCIES) $(EXTRA_rcgen_DEPENDENCIES) @rm -f rcgen$(EXEEXT) $(AM_V_CXXLD)$(CXXLINK) $(rcgen_OBJECTS) $(rcgen_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-abouttab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-bleedcontrolframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-button.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-button_base.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-checkbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-colour.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-combobox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-dialog.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-directory.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-diskstreamingframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-drumkitframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-drumkittab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-eventhandler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-filebrowser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-frame.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-helpbutton.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-humaniservisualiser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-humanizerframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-image.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-imagecache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-knob.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-label.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-layout.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-led.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-lineedit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listboxbasic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listboxthin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-lodepng.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-maintab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-mainwindow.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_cocoa.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_pugl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_win32.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_x11.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-painter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pixelbuffer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pluginconfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-powerbutton.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-progressbar.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pugl_osx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pugl_win.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pugl_x11.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resamplingframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resource.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resource_data.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-sampleselectionframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-scrollbar.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-slider.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-stackedwidget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-statusframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-tabbutton.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-tabwidget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-textedit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-texture.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-texturedbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-timingframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-toggle.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-tooltip.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-utf8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-verticalline.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-visualizerframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-widget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-window.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugingui-hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugingui-testmain.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rcgen.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libdggui_la-pugl_x11.lo: $(top_srcdir)/pugl/pugl/pugl_x11.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(libdggui_la_CFLAGS) $(CFLAGS) -MT libdggui_la-pugl_x11.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pugl_x11.Tpo -c -o libdggui_la-pugl_x11.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_x11.c' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_x11.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pugl_x11.Tpo $(DEPDIR)/libdggui_la-pugl_x11.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/pugl/pugl/pugl_x11.c' object='libdggui_la-pugl_x11.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(libdggui_la_CFLAGS) $(CFLAGS) -c -o libdggui_la-pugl_x11.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_x11.c' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_x11.c plugingui-hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -MT plugingui-hugin.o -MD -MP -MF $(DEPDIR)/plugingui-hugin.Tpo -c -o plugingui-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-hugin.Tpo $(DEPDIR)/plugingui-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='plugingui-hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -c -o plugingui-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c plugingui-hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -MT plugingui-hugin.obj -MD -MP -MF $(DEPDIR)/plugingui-hugin.Tpo -c -o plugingui-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-hugin.Tpo $(DEPDIR)/plugingui-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='plugingui-hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -c -o plugingui-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libdggui_la-abouttab.lo: abouttab.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-abouttab.lo -MD -MP -MF $(DEPDIR)/libdggui_la-abouttab.Tpo -c -o libdggui_la-abouttab.lo `test -f 'abouttab.cc' || echo '$(srcdir)/'`abouttab.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-abouttab.Tpo $(DEPDIR)/libdggui_la-abouttab.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='abouttab.cc' object='libdggui_la-abouttab.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-abouttab.lo `test -f 'abouttab.cc' || echo '$(srcdir)/'`abouttab.cc libdggui_la-bleedcontrolframecontent.lo: bleedcontrolframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-bleedcontrolframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-bleedcontrolframecontent.Tpo -c -o libdggui_la-bleedcontrolframecontent.lo `test -f 'bleedcontrolframecontent.cc' || echo '$(srcdir)/'`bleedcontrolframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-bleedcontrolframecontent.Tpo $(DEPDIR)/libdggui_la-bleedcontrolframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bleedcontrolframecontent.cc' object='libdggui_la-bleedcontrolframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-bleedcontrolframecontent.lo `test -f 'bleedcontrolframecontent.cc' || echo '$(srcdir)/'`bleedcontrolframecontent.cc libdggui_la-button.lo: button.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-button.lo -MD -MP -MF $(DEPDIR)/libdggui_la-button.Tpo -c -o libdggui_la-button.lo `test -f 'button.cc' || echo '$(srcdir)/'`button.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-button.Tpo $(DEPDIR)/libdggui_la-button.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='button.cc' object='libdggui_la-button.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-button.lo `test -f 'button.cc' || echo '$(srcdir)/'`button.cc libdggui_la-button_base.lo: button_base.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-button_base.lo -MD -MP -MF $(DEPDIR)/libdggui_la-button_base.Tpo -c -o libdggui_la-button_base.lo `test -f 'button_base.cc' || echo '$(srcdir)/'`button_base.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-button_base.Tpo $(DEPDIR)/libdggui_la-button_base.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='button_base.cc' object='libdggui_la-button_base.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-button_base.lo `test -f 'button_base.cc' || echo '$(srcdir)/'`button_base.cc libdggui_la-checkbox.lo: checkbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-checkbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-checkbox.Tpo -c -o libdggui_la-checkbox.lo `test -f 'checkbox.cc' || echo '$(srcdir)/'`checkbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-checkbox.Tpo $(DEPDIR)/libdggui_la-checkbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='checkbox.cc' object='libdggui_la-checkbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-checkbox.lo `test -f 'checkbox.cc' || echo '$(srcdir)/'`checkbox.cc libdggui_la-colour.lo: colour.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-colour.lo -MD -MP -MF $(DEPDIR)/libdggui_la-colour.Tpo -c -o libdggui_la-colour.lo `test -f 'colour.cc' || echo '$(srcdir)/'`colour.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-colour.Tpo $(DEPDIR)/libdggui_la-colour.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='colour.cc' object='libdggui_la-colour.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-colour.lo `test -f 'colour.cc' || echo '$(srcdir)/'`colour.cc libdggui_la-combobox.lo: combobox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-combobox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-combobox.Tpo -c -o libdggui_la-combobox.lo `test -f 'combobox.cc' || echo '$(srcdir)/'`combobox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-combobox.Tpo $(DEPDIR)/libdggui_la-combobox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='combobox.cc' object='libdggui_la-combobox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-combobox.lo `test -f 'combobox.cc' || echo '$(srcdir)/'`combobox.cc libdggui_la-dialog.lo: dialog.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-dialog.lo -MD -MP -MF $(DEPDIR)/libdggui_la-dialog.Tpo -c -o libdggui_la-dialog.lo `test -f 'dialog.cc' || echo '$(srcdir)/'`dialog.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-dialog.Tpo $(DEPDIR)/libdggui_la-dialog.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dialog.cc' object='libdggui_la-dialog.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-dialog.lo `test -f 'dialog.cc' || echo '$(srcdir)/'`dialog.cc libdggui_la-directory.lo: directory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-directory.lo -MD -MP -MF $(DEPDIR)/libdggui_la-directory.Tpo -c -o libdggui_la-directory.lo `test -f 'directory.cc' || echo '$(srcdir)/'`directory.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-directory.Tpo $(DEPDIR)/libdggui_la-directory.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='directory.cc' object='libdggui_la-directory.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-directory.lo `test -f 'directory.cc' || echo '$(srcdir)/'`directory.cc libdggui_la-diskstreamingframecontent.lo: diskstreamingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-diskstreamingframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-diskstreamingframecontent.Tpo -c -o libdggui_la-diskstreamingframecontent.lo `test -f 'diskstreamingframecontent.cc' || echo '$(srcdir)/'`diskstreamingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-diskstreamingframecontent.Tpo $(DEPDIR)/libdggui_la-diskstreamingframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='diskstreamingframecontent.cc' object='libdggui_la-diskstreamingframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-diskstreamingframecontent.lo `test -f 'diskstreamingframecontent.cc' || echo '$(srcdir)/'`diskstreamingframecontent.cc libdggui_la-drumkitframecontent.lo: drumkitframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-drumkitframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-drumkitframecontent.Tpo -c -o libdggui_la-drumkitframecontent.lo `test -f 'drumkitframecontent.cc' || echo '$(srcdir)/'`drumkitframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-drumkitframecontent.Tpo $(DEPDIR)/libdggui_la-drumkitframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitframecontent.cc' object='libdggui_la-drumkitframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-drumkitframecontent.lo `test -f 'drumkitframecontent.cc' || echo '$(srcdir)/'`drumkitframecontent.cc libdggui_la-drumkittab.lo: drumkittab.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-drumkittab.lo -MD -MP -MF $(DEPDIR)/libdggui_la-drumkittab.Tpo -c -o libdggui_la-drumkittab.lo `test -f 'drumkittab.cc' || echo '$(srcdir)/'`drumkittab.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-drumkittab.Tpo $(DEPDIR)/libdggui_la-drumkittab.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkittab.cc' object='libdggui_la-drumkittab.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-drumkittab.lo `test -f 'drumkittab.cc' || echo '$(srcdir)/'`drumkittab.cc libdggui_la-eventhandler.lo: eventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-eventhandler.lo -MD -MP -MF $(DEPDIR)/libdggui_la-eventhandler.Tpo -c -o libdggui_la-eventhandler.lo `test -f 'eventhandler.cc' || echo '$(srcdir)/'`eventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-eventhandler.Tpo $(DEPDIR)/libdggui_la-eventhandler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventhandler.cc' object='libdggui_la-eventhandler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-eventhandler.lo `test -f 'eventhandler.cc' || echo '$(srcdir)/'`eventhandler.cc libdggui_la-filebrowser.lo: filebrowser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-filebrowser.lo -MD -MP -MF $(DEPDIR)/libdggui_la-filebrowser.Tpo -c -o libdggui_la-filebrowser.lo `test -f 'filebrowser.cc' || echo '$(srcdir)/'`filebrowser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-filebrowser.Tpo $(DEPDIR)/libdggui_la-filebrowser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='filebrowser.cc' object='libdggui_la-filebrowser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-filebrowser.lo `test -f 'filebrowser.cc' || echo '$(srcdir)/'`filebrowser.cc libdggui_la-font.lo: font.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-font.lo -MD -MP -MF $(DEPDIR)/libdggui_la-font.Tpo -c -o libdggui_la-font.lo `test -f 'font.cc' || echo '$(srcdir)/'`font.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-font.Tpo $(DEPDIR)/libdggui_la-font.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='font.cc' object='libdggui_la-font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-font.lo `test -f 'font.cc' || echo '$(srcdir)/'`font.cc libdggui_la-frame.lo: frame.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-frame.lo -MD -MP -MF $(DEPDIR)/libdggui_la-frame.Tpo -c -o libdggui_la-frame.lo `test -f 'frame.cc' || echo '$(srcdir)/'`frame.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-frame.Tpo $(DEPDIR)/libdggui_la-frame.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='frame.cc' object='libdggui_la-frame.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-frame.lo `test -f 'frame.cc' || echo '$(srcdir)/'`frame.cc libdggui_la-helpbutton.lo: helpbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-helpbutton.lo -MD -MP -MF $(DEPDIR)/libdggui_la-helpbutton.Tpo -c -o libdggui_la-helpbutton.lo `test -f 'helpbutton.cc' || echo '$(srcdir)/'`helpbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-helpbutton.Tpo $(DEPDIR)/libdggui_la-helpbutton.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='helpbutton.cc' object='libdggui_la-helpbutton.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-helpbutton.lo `test -f 'helpbutton.cc' || echo '$(srcdir)/'`helpbutton.cc libdggui_la-humanizerframecontent.lo: humanizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-humanizerframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-humanizerframecontent.Tpo -c -o libdggui_la-humanizerframecontent.lo `test -f 'humanizerframecontent.cc' || echo '$(srcdir)/'`humanizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-humanizerframecontent.Tpo $(DEPDIR)/libdggui_la-humanizerframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='humanizerframecontent.cc' object='libdggui_la-humanizerframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-humanizerframecontent.lo `test -f 'humanizerframecontent.cc' || echo '$(srcdir)/'`humanizerframecontent.cc libdggui_la-humaniservisualiser.lo: humaniservisualiser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-humaniservisualiser.lo -MD -MP -MF $(DEPDIR)/libdggui_la-humaniservisualiser.Tpo -c -o libdggui_la-humaniservisualiser.lo `test -f 'humaniservisualiser.cc' || echo '$(srcdir)/'`humaniservisualiser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-humaniservisualiser.Tpo $(DEPDIR)/libdggui_la-humaniservisualiser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='humaniservisualiser.cc' object='libdggui_la-humaniservisualiser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-humaniservisualiser.lo `test -f 'humaniservisualiser.cc' || echo '$(srcdir)/'`humaniservisualiser.cc libdggui_la-image.lo: image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-image.lo -MD -MP -MF $(DEPDIR)/libdggui_la-image.Tpo -c -o libdggui_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-image.Tpo $(DEPDIR)/libdggui_la-image.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image.cc' object='libdggui_la-image.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc libdggui_la-imagecache.lo: imagecache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-imagecache.lo -MD -MP -MF $(DEPDIR)/libdggui_la-imagecache.Tpo -c -o libdggui_la-imagecache.lo `test -f 'imagecache.cc' || echo '$(srcdir)/'`imagecache.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-imagecache.Tpo $(DEPDIR)/libdggui_la-imagecache.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='imagecache.cc' object='libdggui_la-imagecache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-imagecache.lo `test -f 'imagecache.cc' || echo '$(srcdir)/'`imagecache.cc libdggui_la-knob.lo: knob.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-knob.lo -MD -MP -MF $(DEPDIR)/libdggui_la-knob.Tpo -c -o libdggui_la-knob.lo `test -f 'knob.cc' || echo '$(srcdir)/'`knob.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-knob.Tpo $(DEPDIR)/libdggui_la-knob.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='knob.cc' object='libdggui_la-knob.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-knob.lo `test -f 'knob.cc' || echo '$(srcdir)/'`knob.cc libdggui_la-label.lo: label.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-label.lo -MD -MP -MF $(DEPDIR)/libdggui_la-label.Tpo -c -o libdggui_la-label.lo `test -f 'label.cc' || echo '$(srcdir)/'`label.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-label.Tpo $(DEPDIR)/libdggui_la-label.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='label.cc' object='libdggui_la-label.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-label.lo `test -f 'label.cc' || echo '$(srcdir)/'`label.cc libdggui_la-layout.lo: layout.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-layout.lo -MD -MP -MF $(DEPDIR)/libdggui_la-layout.Tpo -c -o libdggui_la-layout.lo `test -f 'layout.cc' || echo '$(srcdir)/'`layout.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-layout.Tpo $(DEPDIR)/libdggui_la-layout.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='layout.cc' object='libdggui_la-layout.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-layout.lo `test -f 'layout.cc' || echo '$(srcdir)/'`layout.cc libdggui_la-led.lo: led.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-led.lo -MD -MP -MF $(DEPDIR)/libdggui_la-led.Tpo -c -o libdggui_la-led.lo `test -f 'led.cc' || echo '$(srcdir)/'`led.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-led.Tpo $(DEPDIR)/libdggui_la-led.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='led.cc' object='libdggui_la-led.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-led.lo `test -f 'led.cc' || echo '$(srcdir)/'`led.cc libdggui_la-lineedit.lo: lineedit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-lineedit.lo -MD -MP -MF $(DEPDIR)/libdggui_la-lineedit.Tpo -c -o libdggui_la-lineedit.lo `test -f 'lineedit.cc' || echo '$(srcdir)/'`lineedit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-lineedit.Tpo $(DEPDIR)/libdggui_la-lineedit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lineedit.cc' object='libdggui_la-lineedit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-lineedit.lo `test -f 'lineedit.cc' || echo '$(srcdir)/'`lineedit.cc libdggui_la-listbox.lo: listbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listbox.Tpo -c -o libdggui_la-listbox.lo `test -f 'listbox.cc' || echo '$(srcdir)/'`listbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listbox.Tpo $(DEPDIR)/libdggui_la-listbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listbox.cc' object='libdggui_la-listbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listbox.lo `test -f 'listbox.cc' || echo '$(srcdir)/'`listbox.cc libdggui_la-listboxbasic.lo: listboxbasic.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listboxbasic.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listboxbasic.Tpo -c -o libdggui_la-listboxbasic.lo `test -f 'listboxbasic.cc' || echo '$(srcdir)/'`listboxbasic.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listboxbasic.Tpo $(DEPDIR)/libdggui_la-listboxbasic.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listboxbasic.cc' object='libdggui_la-listboxbasic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listboxbasic.lo `test -f 'listboxbasic.cc' || echo '$(srcdir)/'`listboxbasic.cc libdggui_la-listboxthin.lo: listboxthin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listboxthin.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listboxthin.Tpo -c -o libdggui_la-listboxthin.lo `test -f 'listboxthin.cc' || echo '$(srcdir)/'`listboxthin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listboxthin.Tpo $(DEPDIR)/libdggui_la-listboxthin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listboxthin.cc' object='libdggui_la-listboxthin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listboxthin.lo `test -f 'listboxthin.cc' || echo '$(srcdir)/'`listboxthin.cc libdggui_la-maintab.lo: maintab.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-maintab.lo -MD -MP -MF $(DEPDIR)/libdggui_la-maintab.Tpo -c -o libdggui_la-maintab.lo `test -f 'maintab.cc' || echo '$(srcdir)/'`maintab.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-maintab.Tpo $(DEPDIR)/libdggui_la-maintab.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='maintab.cc' object='libdggui_la-maintab.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-maintab.lo `test -f 'maintab.cc' || echo '$(srcdir)/'`maintab.cc libdggui_la-mainwindow.lo: mainwindow.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-mainwindow.lo -MD -MP -MF $(DEPDIR)/libdggui_la-mainwindow.Tpo -c -o libdggui_la-mainwindow.lo `test -f 'mainwindow.cc' || echo '$(srcdir)/'`mainwindow.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-mainwindow.Tpo $(DEPDIR)/libdggui_la-mainwindow.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='mainwindow.cc' object='libdggui_la-mainwindow.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-mainwindow.lo `test -f 'mainwindow.cc' || echo '$(srcdir)/'`mainwindow.cc libdggui_la-painter.lo: painter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-painter.lo -MD -MP -MF $(DEPDIR)/libdggui_la-painter.Tpo -c -o libdggui_la-painter.lo `test -f 'painter.cc' || echo '$(srcdir)/'`painter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-painter.Tpo $(DEPDIR)/libdggui_la-painter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='painter.cc' object='libdggui_la-painter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-painter.lo `test -f 'painter.cc' || echo '$(srcdir)/'`painter.cc libdggui_la-pixelbuffer.lo: pixelbuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-pixelbuffer.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pixelbuffer.Tpo -c -o libdggui_la-pixelbuffer.lo `test -f 'pixelbuffer.cc' || echo '$(srcdir)/'`pixelbuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pixelbuffer.Tpo $(DEPDIR)/libdggui_la-pixelbuffer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pixelbuffer.cc' object='libdggui_la-pixelbuffer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-pixelbuffer.lo `test -f 'pixelbuffer.cc' || echo '$(srcdir)/'`pixelbuffer.cc libdggui_la-pluginconfig.lo: pluginconfig.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-pluginconfig.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pluginconfig.Tpo -c -o libdggui_la-pluginconfig.lo `test -f 'pluginconfig.cc' || echo '$(srcdir)/'`pluginconfig.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pluginconfig.Tpo $(DEPDIR)/libdggui_la-pluginconfig.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pluginconfig.cc' object='libdggui_la-pluginconfig.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-pluginconfig.lo `test -f 'pluginconfig.cc' || echo '$(srcdir)/'`pluginconfig.cc libdggui_la-powerbutton.lo: powerbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-powerbutton.lo -MD -MP -MF $(DEPDIR)/libdggui_la-powerbutton.Tpo -c -o libdggui_la-powerbutton.lo `test -f 'powerbutton.cc' || echo '$(srcdir)/'`powerbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-powerbutton.Tpo $(DEPDIR)/libdggui_la-powerbutton.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='powerbutton.cc' object='libdggui_la-powerbutton.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-powerbutton.lo `test -f 'powerbutton.cc' || echo '$(srcdir)/'`powerbutton.cc libdggui_la-progressbar.lo: progressbar.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-progressbar.lo -MD -MP -MF $(DEPDIR)/libdggui_la-progressbar.Tpo -c -o libdggui_la-progressbar.lo `test -f 'progressbar.cc' || echo '$(srcdir)/'`progressbar.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-progressbar.Tpo $(DEPDIR)/libdggui_la-progressbar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='progressbar.cc' object='libdggui_la-progressbar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-progressbar.lo `test -f 'progressbar.cc' || echo '$(srcdir)/'`progressbar.cc libdggui_la-resamplingframecontent.lo: resamplingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resamplingframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resamplingframecontent.Tpo -c -o libdggui_la-resamplingframecontent.lo `test -f 'resamplingframecontent.cc' || echo '$(srcdir)/'`resamplingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resamplingframecontent.Tpo $(DEPDIR)/libdggui_la-resamplingframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resamplingframecontent.cc' object='libdggui_la-resamplingframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resamplingframecontent.lo `test -f 'resamplingframecontent.cc' || echo '$(srcdir)/'`resamplingframecontent.cc libdggui_la-resource.lo: resource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resource.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resource.Tpo -c -o libdggui_la-resource.lo `test -f 'resource.cc' || echo '$(srcdir)/'`resource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resource.Tpo $(DEPDIR)/libdggui_la-resource.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource.cc' object='libdggui_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resource.lo `test -f 'resource.cc' || echo '$(srcdir)/'`resource.cc libdggui_la-resource_data.lo: resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resource_data.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resource_data.Tpo -c -o libdggui_la-resource_data.lo `test -f 'resource_data.cc' || echo '$(srcdir)/'`resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resource_data.Tpo $(DEPDIR)/libdggui_la-resource_data.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource_data.cc' object='libdggui_la-resource_data.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resource_data.lo `test -f 'resource_data.cc' || echo '$(srcdir)/'`resource_data.cc libdggui_la-sampleselectionframecontent.lo: sampleselectionframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-sampleselectionframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-sampleselectionframecontent.Tpo -c -o libdggui_la-sampleselectionframecontent.lo `test -f 'sampleselectionframecontent.cc' || echo '$(srcdir)/'`sampleselectionframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-sampleselectionframecontent.Tpo $(DEPDIR)/libdggui_la-sampleselectionframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sampleselectionframecontent.cc' object='libdggui_la-sampleselectionframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-sampleselectionframecontent.lo `test -f 'sampleselectionframecontent.cc' || echo '$(srcdir)/'`sampleselectionframecontent.cc libdggui_la-scrollbar.lo: scrollbar.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-scrollbar.lo -MD -MP -MF $(DEPDIR)/libdggui_la-scrollbar.Tpo -c -o libdggui_la-scrollbar.lo `test -f 'scrollbar.cc' || echo '$(srcdir)/'`scrollbar.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-scrollbar.Tpo $(DEPDIR)/libdggui_la-scrollbar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='scrollbar.cc' object='libdggui_la-scrollbar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-scrollbar.lo `test -f 'scrollbar.cc' || echo '$(srcdir)/'`scrollbar.cc libdggui_la-slider.lo: slider.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-slider.lo -MD -MP -MF $(DEPDIR)/libdggui_la-slider.Tpo -c -o libdggui_la-slider.lo `test -f 'slider.cc' || echo '$(srcdir)/'`slider.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-slider.Tpo $(DEPDIR)/libdggui_la-slider.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='slider.cc' object='libdggui_la-slider.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-slider.lo `test -f 'slider.cc' || echo '$(srcdir)/'`slider.cc libdggui_la-stackedwidget.lo: stackedwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-stackedwidget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-stackedwidget.Tpo -c -o libdggui_la-stackedwidget.lo `test -f 'stackedwidget.cc' || echo '$(srcdir)/'`stackedwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-stackedwidget.Tpo $(DEPDIR)/libdggui_la-stackedwidget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='stackedwidget.cc' object='libdggui_la-stackedwidget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-stackedwidget.lo `test -f 'stackedwidget.cc' || echo '$(srcdir)/'`stackedwidget.cc libdggui_la-statusframecontent.lo: statusframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-statusframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-statusframecontent.Tpo -c -o libdggui_la-statusframecontent.lo `test -f 'statusframecontent.cc' || echo '$(srcdir)/'`statusframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-statusframecontent.Tpo $(DEPDIR)/libdggui_la-statusframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='statusframecontent.cc' object='libdggui_la-statusframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-statusframecontent.lo `test -f 'statusframecontent.cc' || echo '$(srcdir)/'`statusframecontent.cc libdggui_la-tabbutton.lo: tabbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-tabbutton.lo -MD -MP -MF $(DEPDIR)/libdggui_la-tabbutton.Tpo -c -o libdggui_la-tabbutton.lo `test -f 'tabbutton.cc' || echo '$(srcdir)/'`tabbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-tabbutton.Tpo $(DEPDIR)/libdggui_la-tabbutton.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabbutton.cc' object='libdggui_la-tabbutton.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-tabbutton.lo `test -f 'tabbutton.cc' || echo '$(srcdir)/'`tabbutton.cc libdggui_la-tabwidget.lo: tabwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-tabwidget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-tabwidget.Tpo -c -o libdggui_la-tabwidget.lo `test -f 'tabwidget.cc' || echo '$(srcdir)/'`tabwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-tabwidget.Tpo $(DEPDIR)/libdggui_la-tabwidget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabwidget.cc' object='libdggui_la-tabwidget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-tabwidget.lo `test -f 'tabwidget.cc' || echo '$(srcdir)/'`tabwidget.cc libdggui_la-textedit.lo: textedit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-textedit.lo -MD -MP -MF $(DEPDIR)/libdggui_la-textedit.Tpo -c -o libdggui_la-textedit.lo `test -f 'textedit.cc' || echo '$(srcdir)/'`textedit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-textedit.Tpo $(DEPDIR)/libdggui_la-textedit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='textedit.cc' object='libdggui_la-textedit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-textedit.lo `test -f 'textedit.cc' || echo '$(srcdir)/'`textedit.cc libdggui_la-texture.lo: texture.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-texture.lo -MD -MP -MF $(DEPDIR)/libdggui_la-texture.Tpo -c -o libdggui_la-texture.lo `test -f 'texture.cc' || echo '$(srcdir)/'`texture.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-texture.Tpo $(DEPDIR)/libdggui_la-texture.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='texture.cc' object='libdggui_la-texture.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-texture.lo `test -f 'texture.cc' || echo '$(srcdir)/'`texture.cc libdggui_la-texturedbox.lo: texturedbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-texturedbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-texturedbox.Tpo -c -o libdggui_la-texturedbox.lo `test -f 'texturedbox.cc' || echo '$(srcdir)/'`texturedbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-texturedbox.Tpo $(DEPDIR)/libdggui_la-texturedbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='texturedbox.cc' object='libdggui_la-texturedbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-texturedbox.lo `test -f 'texturedbox.cc' || echo '$(srcdir)/'`texturedbox.cc libdggui_la-timingframecontent.lo: timingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-timingframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-timingframecontent.Tpo -c -o libdggui_la-timingframecontent.lo `test -f 'timingframecontent.cc' || echo '$(srcdir)/'`timingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-timingframecontent.Tpo $(DEPDIR)/libdggui_la-timingframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='timingframecontent.cc' object='libdggui_la-timingframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-timingframecontent.lo `test -f 'timingframecontent.cc' || echo '$(srcdir)/'`timingframecontent.cc libdggui_la-toggle.lo: toggle.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-toggle.lo -MD -MP -MF $(DEPDIR)/libdggui_la-toggle.Tpo -c -o libdggui_la-toggle.lo `test -f 'toggle.cc' || echo '$(srcdir)/'`toggle.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-toggle.Tpo $(DEPDIR)/libdggui_la-toggle.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='toggle.cc' object='libdggui_la-toggle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-toggle.lo `test -f 'toggle.cc' || echo '$(srcdir)/'`toggle.cc libdggui_la-tooltip.lo: tooltip.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-tooltip.lo -MD -MP -MF $(DEPDIR)/libdggui_la-tooltip.Tpo -c -o libdggui_la-tooltip.lo `test -f 'tooltip.cc' || echo '$(srcdir)/'`tooltip.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-tooltip.Tpo $(DEPDIR)/libdggui_la-tooltip.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tooltip.cc' object='libdggui_la-tooltip.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-tooltip.lo `test -f 'tooltip.cc' || echo '$(srcdir)/'`tooltip.cc libdggui_la-utf8.lo: utf8.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-utf8.lo -MD -MP -MF $(DEPDIR)/libdggui_la-utf8.Tpo -c -o libdggui_la-utf8.lo `test -f 'utf8.cc' || echo '$(srcdir)/'`utf8.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-utf8.Tpo $(DEPDIR)/libdggui_la-utf8.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='utf8.cc' object='libdggui_la-utf8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-utf8.lo `test -f 'utf8.cc' || echo '$(srcdir)/'`utf8.cc libdggui_la-verticalline.lo: verticalline.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-verticalline.lo -MD -MP -MF $(DEPDIR)/libdggui_la-verticalline.Tpo -c -o libdggui_la-verticalline.lo `test -f 'verticalline.cc' || echo '$(srcdir)/'`verticalline.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-verticalline.Tpo $(DEPDIR)/libdggui_la-verticalline.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='verticalline.cc' object='libdggui_la-verticalline.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-verticalline.lo `test -f 'verticalline.cc' || echo '$(srcdir)/'`verticalline.cc libdggui_la-visualizerframecontent.lo: visualizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-visualizerframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-visualizerframecontent.Tpo -c -o libdggui_la-visualizerframecontent.lo `test -f 'visualizerframecontent.cc' || echo '$(srcdir)/'`visualizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-visualizerframecontent.Tpo $(DEPDIR)/libdggui_la-visualizerframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='visualizerframecontent.cc' object='libdggui_la-visualizerframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-visualizerframecontent.lo `test -f 'visualizerframecontent.cc' || echo '$(srcdir)/'`visualizerframecontent.cc libdggui_la-widget.lo: widget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-widget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-widget.Tpo -c -o libdggui_la-widget.lo `test -f 'widget.cc' || echo '$(srcdir)/'`widget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-widget.Tpo $(DEPDIR)/libdggui_la-widget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='widget.cc' object='libdggui_la-widget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-widget.lo `test -f 'widget.cc' || echo '$(srcdir)/'`widget.cc libdggui_la-window.lo: window.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-window.lo -MD -MP -MF $(DEPDIR)/libdggui_la-window.Tpo -c -o libdggui_la-window.lo `test -f 'window.cc' || echo '$(srcdir)/'`window.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-window.Tpo $(DEPDIR)/libdggui_la-window.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='window.cc' object='libdggui_la-window.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-window.lo `test -f 'window.cc' || echo '$(srcdir)/'`window.cc libdggui_la-lodepng.lo: lodepng/lodepng.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-lodepng.lo -MD -MP -MF $(DEPDIR)/libdggui_la-lodepng.Tpo -c -o libdggui_la-lodepng.lo `test -f 'lodepng/lodepng.cpp' || echo '$(srcdir)/'`lodepng/lodepng.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-lodepng.Tpo $(DEPDIR)/libdggui_la-lodepng.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lodepng/lodepng.cpp' object='libdggui_la-lodepng.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-lodepng.lo `test -f 'lodepng/lodepng.cpp' || echo '$(srcdir)/'`lodepng/lodepng.cpp libdggui_la-nativewindow_x11.lo: nativewindow_x11.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_x11.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_x11.Tpo -c -o libdggui_la-nativewindow_x11.lo `test -f 'nativewindow_x11.cc' || echo '$(srcdir)/'`nativewindow_x11.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_x11.Tpo $(DEPDIR)/libdggui_la-nativewindow_x11.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_x11.cc' object='libdggui_la-nativewindow_x11.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_x11.lo `test -f 'nativewindow_x11.cc' || echo '$(srcdir)/'`nativewindow_x11.cc libdggui_la-nativewindow_win32.lo: nativewindow_win32.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_win32.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_win32.Tpo -c -o libdggui_la-nativewindow_win32.lo `test -f 'nativewindow_win32.cc' || echo '$(srcdir)/'`nativewindow_win32.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_win32.Tpo $(DEPDIR)/libdggui_la-nativewindow_win32.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_win32.cc' object='libdggui_la-nativewindow_win32.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_win32.lo `test -f 'nativewindow_win32.cc' || echo '$(srcdir)/'`nativewindow_win32.cc libdggui_la-nativewindow_pugl.lo: nativewindow_pugl.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_pugl.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_pugl.Tpo -c -o libdggui_la-nativewindow_pugl.lo `test -f 'nativewindow_pugl.cc' || echo '$(srcdir)/'`nativewindow_pugl.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_pugl.Tpo $(DEPDIR)/libdggui_la-nativewindow_pugl.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_pugl.cc' object='libdggui_la-nativewindow_pugl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_pugl.lo `test -f 'nativewindow_pugl.cc' || echo '$(srcdir)/'`nativewindow_pugl.cc libdggui_la-pugl_win.lo: $(top_srcdir)/pugl/pugl/pugl_win.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-pugl_win.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pugl_win.Tpo -c -o libdggui_la-pugl_win.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_win.cpp' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_win.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pugl_win.Tpo $(DEPDIR)/libdggui_la-pugl_win.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/pugl/pugl/pugl_win.cpp' object='libdggui_la-pugl_win.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-pugl_win.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_win.cpp' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_win.cpp plugingui-testmain.o: testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -MT plugingui-testmain.o -MD -MP -MF $(DEPDIR)/plugingui-testmain.Tpo -c -o plugingui-testmain.o `test -f 'testmain.cc' || echo '$(srcdir)/'`testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-testmain.Tpo $(DEPDIR)/plugingui-testmain.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='testmain.cc' object='plugingui-testmain.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -c -o plugingui-testmain.o `test -f 'testmain.cc' || echo '$(srcdir)/'`testmain.cc plugingui-testmain.obj: testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -MT plugingui-testmain.obj -MD -MP -MF $(DEPDIR)/plugingui-testmain.Tpo -c -o plugingui-testmain.obj `if test -f 'testmain.cc'; then $(CYGPATH_W) 'testmain.cc'; else $(CYGPATH_W) '$(srcdir)/testmain.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-testmain.Tpo $(DEPDIR)/plugingui-testmain.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='testmain.cc' object='plugingui-testmain.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -c -o plugingui-testmain.obj `if test -f 'testmain.cc'; then $(CYGPATH_W) 'testmain.cc'; else $(CYGPATH_W) '$(srcdir)/testmain.cc'; fi` .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< .m.o: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ $< .m.obj: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .m.lo: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LTOBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(LTOBJCCOMPILE) -c -o $@ $< libdggui_la-pugl_osx.lo: $(top_srcdir)/pugl/pugl/pugl_osx.m @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LIBTOOL) $(AM_V_lt) $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) -MT libdggui_la-pugl_osx.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pugl_osx.Tpo -c -o libdggui_la-pugl_osx.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_osx.m' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_osx.m @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pugl_osx.Tpo $(DEPDIR)/libdggui_la-pugl_osx.Plo @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$(top_srcdir)/pugl/pugl/pugl_osx.m' object='libdggui_la-pugl_osx.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) -c -o libdggui_la-pugl_osx.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_osx.m' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_osx.m .mm.o: @am__fastdepOBJCXX_TRUE@ $(AM_V_OBJCXX)$(OBJCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ DEPDIR=$(DEPDIR) $(OBJCXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX@am__nodep@)$(OBJCXXCOMPILE) -c -o $@ $< .mm.obj: @am__fastdepOBJCXX_TRUE@ $(AM_V_OBJCXX)$(OBJCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepOBJCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ DEPDIR=$(DEPDIR) $(OBJCXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX@am__nodep@)$(OBJCXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .mm.lo: @am__fastdepOBJCXX_TRUE@ $(AM_V_OBJCXX)$(LTOBJCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ DEPDIR=$(DEPDIR) $(OBJCXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX@am__nodep@)$(LTOBJCXXCOMPILE) -c -o $@ $< libdggui_la-nativewindow_cocoa.lo: nativewindow_cocoa.mm @am__fastdepOBJCXX_TRUE@ $(AM_V_OBJCXX)$(LIBTOOL) $(AM_V_lt) $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(libdggui_la_OBJCXXFLAGS) $(OBJCXXFLAGS) -MT libdggui_la-nativewindow_cocoa.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_cocoa.Tpo -c -o libdggui_la-nativewindow_cocoa.lo `test -f 'nativewindow_cocoa.mm' || echo '$(srcdir)/'`nativewindow_cocoa.mm @am__fastdepOBJCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_cocoa.Tpo $(DEPDIR)/libdggui_la-nativewindow_cocoa.Plo @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX)source='nativewindow_cocoa.mm' object='libdggui_la-nativewindow_cocoa.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJCXX_FALSE@ DEPDIR=$(DEPDIR) $(OBJCXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJCXX_FALSE@ $(AM_V_OBJCXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(libdggui_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(libdggui_la_OBJCXXFLAGS) $(OBJCXXFLAGS) -c -o libdggui_la-nativewindow_cocoa.lo `test -f 'nativewindow_cocoa.mm' || echo '$(srcdir)/'`nativewindow_cocoa.mm mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile resource_data.cc : rcgen $(RES) ./rcgen $(RES) > resource_data.cc # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/plugingui/drumkitframecontent.cc0000644000076400007640000001611213551153106017316 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkitframecontent.cc * * Fri Mar 24 21:49:42 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkitframecontent.h" #include #include "label.h" #include "pluginconfig.h" namespace GUI { BrowseFile::BrowseFile(Widget* parent) : Widget(parent) { layout.setResizeChildren(false); layout.setVAlignment(VAlignment::center); layout.setSpacing(gap); layout.addItem(&lineedit); layout.addItem(&browse_button); browse_button.setText("Browse..."); } void BrowseFile::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); lineedit_width = std::max((int)(0.77 * (int)width - gap), 0); button_width = std::max((int)width - lineedit_width - gap, 0); lineedit.resize(lineedit_width, 29); browse_button.resize(button_width, 30); layout.layout(); } std::size_t BrowseFile::getLineEditWidth() { return lineedit_width; } std::size_t BrowseFile::getButtonWidth() { return button_width; } Button& BrowseFile::getBrowseButton() { return browse_button; } LineEdit& BrowseFile::getLineEdit() { return lineedit; } DrumkitframeContent::DrumkitframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) , config(config) { layout.setHAlignment(HAlignment::left); drumkit_caption.setText("Drumkit file:"); midimap_caption.setText("Midimap file:"); layout.addItem(&drumkit_caption); layout.addItem(&drumkit_file); layout.addItem(&drumkit_file_progress); layout.addItem(&midimap_caption); layout.addItem(&midimap_file); layout.addItem(&midimap_file_progress); CONNECT(&drumkit_file.getBrowseButton(), clickNotifier, this, &DrumkitframeContent::kitBrowseClick); CONNECT(&midimap_file.getBrowseButton(), clickNotifier, this, &DrumkitframeContent::midimapBrowseClick); CONNECT(this, settings_notifier.drumkit_file, &drumkit_file.getLineEdit(), &LineEdit::setText); CONNECT(this, settings_notifier.drumkit_load_status, this, &DrumkitframeContent::setDrumKitLoadStatus); CONNECT(this, settings_notifier.midimap_file, &midimap_file.getLineEdit(), &LineEdit::setText); CONNECT(this, settings_notifier.midimap_load_status, this, &DrumkitframeContent::setMidiMapLoadStatus); CONNECT(this, settings_notifier.number_of_files, &drumkit_file_progress, &ProgressBar::setTotal); CONNECT(this, settings_notifier.number_of_files_loaded, &drumkit_file_progress, &ProgressBar::setValue); CONNECT(this, file_browser. defaultPathChangedNotifier, this, &DrumkitframeContent::defaultPathChanged); midimap_file_progress.setTotal(2); file_browser.resize(450, 350); file_browser.setFixedSize(450, 350); } void DrumkitframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); drumkit_caption.resize(width, 15); drumkit_file.resize(width, 37); drumkit_file_progress.resize(drumkit_file.getLineEditWidth(), 11); midimap_caption.resize(width, 15); midimap_file.resize(width, 37); midimap_file_progress.resize(drumkit_file.getLineEditWidth(), 11); layout.layout(); } void DrumkitframeContent::kitBrowseClick() { std::string path = drumkit_file.getLineEdit().getText(); if(path == "") { path = midimap_file.getLineEdit().getText(); } if(path == "") { path = config.defaultKitPath; } file_browser.setPath(path); file_browser.fileSelectNotifier.disconnect(this); CONNECT(&file_browser, fileSelectNotifier, this, &DrumkitframeContent::selectKitFile); file_browser.show(); Point p{ window()->x() + (int)window()->width() / 2, window()->y() + (int)window()->height() / 2 }; auto p0 = window()->translateToScreen(p); auto sz = file_browser.window()->getNativeSize(); file_browser.move(p0.x - sz.width / 2, p0.y - sz.height / 2); file_browser.setAlwaysOnTop(true); } void DrumkitframeContent::midimapBrowseClick() { std::string path = midimap_file.getLineEdit().getText(); if(path == "") { path = drumkit_file.getLineEdit().getText(); } if(path == "") { path = config.defaultKitPath; } file_browser.setPath(path); file_browser.fileSelectNotifier.disconnect(this); CONNECT(&file_browser, fileSelectNotifier, this, &DrumkitframeContent::selectMapFile); file_browser.show(); Point p{ window()->x() + (int)window()->width() / 2, window()->y() + (int)window()->height() / 2 }; auto p0 = window()->translateToScreen(p); auto sz = file_browser.window()->getNativeSize(); file_browser.move(p0.x - sz.width / 2, p0.y - sz.height / 2); file_browser.setAlwaysOnTop(true); } void DrumkitframeContent::defaultPathChanged(const std::string& path) { config.defaultKitPath = path; config.save(); } void DrumkitframeContent::selectKitFile(const std::string& filename) { config.save(); settings.drumkit_file.store(filename); settings.reload_counter++; } void DrumkitframeContent::selectMapFile(const std::string& filename) { config.save(); settings.midimap_file.store(filename); } void DrumkitframeContent::setDrumKitLoadStatus(LoadStatus load_status) { ProgressBarState state = ProgressBarState::Blue; switch(load_status) { case LoadStatus::Idle: case LoadStatus::Loading: state = ProgressBarState::Blue; break; case LoadStatus::Done: state = ProgressBarState::Green; break; case LoadStatus::Error: state = ProgressBarState::Red; break; } drumkit_file_progress.setState(state); } void DrumkitframeContent::setMidiMapLoadStatus(LoadStatus load_status) { ProgressBarState state = ProgressBarState::Blue; switch(load_status) { case LoadStatus::Idle: midimap_file_progress.setValue(0); break; case LoadStatus::Loading: midimap_file_progress.setValue(1); state = ProgressBarState::Blue; break; case LoadStatus::Done: midimap_file_progress.setValue(2); state = ProgressBarState::Green; break; case LoadStatus::Error: midimap_file_progress.setValue(2); state = ProgressBarState::Red; break; } midimap_file_progress.setState(state); } } // GUI:: drumgizmo-0.9.18.1/plugingui/frame.cc0000644000076400007640000000771513511117026014331 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * frame.cc * * Tue Feb 7 21:07:56 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "frame.h" #include "painter.h" namespace GUI { FrameWidget::FrameWidget(Widget* parent, bool has_switch, bool has_help_text) : Widget(parent) , is_switched_on(!has_switch) , bar_height(24) { if(has_switch) { // We only have to set this once as nothing happens on a resize power_button.move(4, 4); power_button.resize(16, 16); power_button.setChecked(is_switched_on); CONNECT(&power_button, stateChangedNotifier, this, &FrameWidget::powerButtonStateChanged); } power_button.setVisible(has_switch); if(has_help_text) { // We only have to set this once as nothing happens on a resize help_button.resize(16, 16); help_button.move(width() - 4 - 16, 4); help_button.setText("?"); } help_button.setVisible(has_help_text); CONNECT(this, sizeChangeNotifier, this, &FrameWidget::sizeChanged); } void FrameWidget::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int center_x = width() / 2; auto title_buf = title.c_str(); // draw the dark grey box p.setColour(enabled ? grey_box_colour : grey_box_colour_disabled); p.drawFilledRectangle(1, 1, width() - 2, bar_height); // frame p.setColour(frame_colour_top); p.drawLine(0, 0, width() - 1, 0); p.setColour(frame_colour_bottom); p.drawLine(0, height() - 1, width() - 1, height() - 1); p.setColour(frame_colour_side); p.drawLine(0, 0, 0, height() - 1); p.drawLine(width() - 1, 0, width() - 1, height() - 1); // background p.setColour(background_colour); p.drawFilledRectangle(1, bar_height, width() - 2, height() - 2); // draw the label p.setColour(enabled ? label_colour : label_colour_disabled); p.drawText(center_x - label_width, bar_height - 4, font, title_buf); power_button.setEnabled(enabled); } void FrameWidget::powerButtonStateChanged(bool new_state) { is_switched_on = new_state; onSwitchChangeNotifier(is_switched_on); } void FrameWidget::setTitle(std::string const& title) { this->title = title; label_width = font.textWidth(title.c_str()) / 2 + 1; } void FrameWidget::setHelpText(const std::string& help_text) { help_button.setHelpText(help_text); } void FrameWidget::setContent(Widget* content) { this->content = content; content->reparent(this); } void FrameWidget::setOnSwitch(bool on) { is_switched_on = on; power_button.setChecked(is_switched_on); } void FrameWidget::setEnabled(bool enabled) { this->enabled = enabled; onEnabledChanged(enabled); redraw(); } void FrameWidget::sizeChanged(int width, int height) { if(content) { content_start_x = content_margin; content_start_y = bar_height + content_margin; content_width = std::max((int)width - 2 * content_margin, 0); content_height = std::max((int)height - (bar_height + 2 * content_margin), 0); content->move(content_start_x, content_start_y); content->resize(content_width, content_height); } help_button.move(width - 4 - 16, help_button.y()); } } // GUI:: drumgizmo-0.9.18.1/plugingui/humanizerframecontent.cc0000644000076400007640000000670013511117026017640 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humanizerframecontent.cc * * Fri Mar 24 21:49:58 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "humanizerframecontent.h" #include #include "painter.h" namespace GUI { HumanizerframeContent::HumanizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) { layout.setResizeChildren(false); attack.resize(80, 80); attack_knob.resize(30, 30); attack_knob.showValue(false); attack_knob.setDefaultValue(Settings::velocity_modifier_weight_default); attack.setControl(&attack_knob); layout.addItem(&attack); falloff.resize(80, 80); falloff_knob.resize(30, 30); falloff_knob.showValue(false); falloff_knob.setDefaultValue(Settings::velocity_modifier_falloff_default); falloff.setControl(&falloff_knob); layout.addItem(&falloff); stddev.resize(80, 80); stddev_knob.resize(30, 30); stddev_knob.showValue(false); stddev_knob.setDefaultValue(Settings::velocity_stddev_default/stddev_factor); stddev.setControl(&stddev_knob); layout.addItem(&stddev); layout.setPosition(&attack, GridLayout::GridRange{0, 1, 0, 1}); layout.setPosition(&falloff, GridLayout::GridRange{1, 2, 0, 1}); layout.setPosition(&stddev, GridLayout::GridRange{2, 3, 0, 1}); CONNECT(this, settings_notifier.velocity_modifier_weight, &attack_knob, &Knob::setValue); CONNECT(this, settings_notifier.velocity_modifier_falloff, &falloff_knob, &Knob::setValue); CONNECT(this, settings_notifier.velocity_stddev, this, &HumanizerframeContent::stddevSettingsValueChanged); CONNECT(&attack_knob, valueChangedNotifier, this, &HumanizerframeContent::attackValueChanged); CONNECT(&falloff_knob, valueChangedNotifier, this, &HumanizerframeContent::falloffValueChanged); CONNECT(&stddev_knob, valueChangedNotifier, this, &HumanizerframeContent::stddevKnobValueChanged); } void HumanizerframeContent::attackValueChanged(float value) { settings.velocity_modifier_weight.store(value); } void HumanizerframeContent::falloffValueChanged(float value) { settings.velocity_modifier_falloff.store(value); } void HumanizerframeContent::stddevKnobValueChanged(float value) { settings.velocity_stddev.store(value*stddev_factor); } void HumanizerframeContent::stddevSettingsValueChanged(float value) { stddev_knob.setValue(value/stddev_factor); } } // GUI:: drumgizmo-0.9.18.1/plugingui/tooltip.cc0000644000076400007640000000767313511117026014734 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * tooltip.cc * * Wed May 8 17:31:42 CEST 2019 * Copyright 2019 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "tooltip.h" #include "painter.h" #include "font.h" #include "window.h" #include namespace GUI { Tooltip::Tooltip(Widget *parent) : Widget(parent->window()) , activating_widget(parent) { resize(32, 32); } Tooltip::~Tooltip() { } void Tooltip::setText(const std::string& text) { this->text = text; needs_preprocessing = true; redraw(); } void Tooltip::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); } void Tooltip::repaintEvent(RepaintEvent* repaintEvent) { if(needs_preprocessing) { preprocessText(); } Painter p(*this); if((width() == 0) || (height() == 0)) { return; } box.setSize(width(), height()); p.drawImage(0, 0, box); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); int ypos = font.textHeight() + y_border; for(std::size_t i = 0; i < preprocessed_text.size(); ++i) { if(i * font.textHeight() >= (height() - y_border - font.textHeight())) { break; } auto const& line = preprocessed_text[i]; p.drawText(x_border, ypos, font, line); ypos += font.textHeight(); } } void Tooltip::preprocessText() { std::vector lines; preprocessed_text.clear(); std::string text = this->text; // Handle tab characters for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\t') { text.erase(i, 1); text.insert(i, 4, ' '); } } // Handle "\r" for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\r') { text.erase(i, 1); } } // Handle new line characters std::size_t pos = 0; do { pos = text.find("\n"); lines.push_back(text.substr(0, pos)); text = text.substr(pos + 1); } while(pos != std::string::npos); max_text_width = 0; total_text_height = 0; for(auto const& line: lines) { std::string valid; std::string current; for(auto c: line) { current += c; if(c == ' ') { valid.append(current.substr(valid.size())); } } preprocessed_text.push_back(current); max_text_width = std::max(max_text_width, font.textWidth(line)); total_text_height += font.textHeight(line); } } void Tooltip::mouseLeaveEvent() { hide(); } void Tooltip::show() { if(needs_preprocessing) { preprocessText(); } resize(max_text_width + 2*x_border, total_text_height + 2*y_border); int x = activating_widget->translateToWindowX(); int y = activating_widget->translateToWindowY(); if(x + width() > window()->width()) { x -= width(); x += activating_widget->width(); } if(y + height() > window()->height()) { y -= height(); y += activating_widget->height(); } move(x, y); Widget::show(); // TODO: This should be handled differently // Hack to notify the window that the mouse is now inside the tooltip. window()->setMouseFocus(this); } void Tooltip::buttonEvent(ButtonEvent* buttonEvent) { if(buttonEvent->direction == Direction::down) { hide(); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/drumkitframecontent.h0000644000076400007640000000525113511117026017157 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkitframecontent.h * * Fri Mar 24 21:49:42 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "button.h" #include "label.h" #include "lineedit.h" #include "progressbar.h" #include "widget.h" #include "filebrowser.h" namespace GUI { class Config; class BrowseFile : public Widget { public: BrowseFile(Widget* parent); // From Widget virtual void resize(std::size_t width, std::size_t height) override; std::size_t getLineEditWidth(); std::size_t getButtonWidth(); Button& getBrowseButton(); LineEdit& getLineEdit(); private: HBoxLayout layout{this}; LineEdit lineedit{this}; Button browse_button{this}; int lineedit_width; int button_width; int gap{10}; }; class DrumkitframeContent : public Widget { public: DrumkitframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void kitBrowseClick(); void midimapBrowseClick(); private: void defaultPathChanged(const std::string& path); void selectKitFile(const std::string& filename); void selectMapFile(const std::string& filename); void setDrumKitLoadStatus(LoadStatus load_status); void setMidiMapLoadStatus(LoadStatus load_status); VBoxLayout layout{this}; Label drumkit_caption{this}; Label midimap_caption{this}; BrowseFile drumkit_file{this}; BrowseFile midimap_file{this}; ProgressBar drumkit_file_progress{this}; ProgressBar midimap_file_progress{this}; FileBrowser file_browser{this}; Settings& settings; SettingsNotifier& settings_notifier; Config& config; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/listbox.cc0000644000076400007640000000446713331526613014732 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listbox.cc * * Mon Feb 25 21:21:41 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listbox.h" #include "painter.h" #include "font.h" namespace GUI { ListBox::ListBox(Widget *parent) : Widget(parent) , selectionNotifier(basic.selectionNotifier) , clickNotifier(basic.clickNotifier) , valueChangedNotifier(basic.valueChangedNotifier) , basic(this) { basic.move(7, 7); } ListBox::~ListBox() { } void ListBox::addItem(std::string name, std::string value) { basic.addItem(name, value); } void ListBox::addItems(std::vector &items) { basic.addItems(items); } void ListBox::clear() { basic.clear(); } bool ListBox::selectItem(int index) { return basic.selectItem(index); } std::string ListBox::selectedName() { return basic.selectedName(); } std::string ListBox::selectedValue() { return basic.selectedValue(); } void ListBox::clearSelectedValue() { basic.clearSelectedValue(); } void ListBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w, h); p.drawImage(0, 0, box); } void ListBox::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); basic.resize(width - (7 + 7), height - (7 + 7)); } } // GUI:: drumgizmo-0.9.18.1/plugingui/listboxbasic.cc0000644000076400007640000001567713340266453015744 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxbasic.cc * * Thu Apr 4 20:28:10 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listboxbasic.h" #include "painter.h" #include "font.h" namespace GUI { ListBoxBasic::ListBoxBasic(Widget *parent) : Widget(parent) , scroll(this) { scroll.move(0,0); scroll.resize(16, 100); CONNECT(&scroll, valueChangeNotifier, this, &ListBoxBasic::onScrollBarValueChange); padding = 4; btn_size = 18; selected = -1; marked = -1; } ListBoxBasic::~ListBoxBasic() { } void ListBoxBasic::setSelection(int index) { selected = index; if(marked == -1) { marked = index; } valueChangedNotifier(); } void ListBoxBasic::addItem(const std::string& name, const std::string& value) { std::vector items; ListBoxBasic::Item item; item.name = name; item.value = value; items.push_back(item); addItems(items); } void ListBoxBasic::addItems(const std::vector& newItems) { for(auto& item : newItems) { items.push_back(item); } if(selected == -1) { //setSelection((int)items.size() - 1); setSelection(0); } redraw(); } void ListBoxBasic::clear() { items.clear(); setSelection(-1); marked = -1; scroll.setValue(0); redraw(); } bool ListBoxBasic::selectItem(int index) { if(index < 0 || (index > (int)items.size() - 1)) { return false; } setSelection(index); redraw(); return true; } std::string ListBoxBasic::selectedName() { if(selected < 0 || (selected > (int)items.size() - 1)) { return ""; } return items[selected].name; } std::string ListBoxBasic::selectedValue() { if(selected < 0 || (selected > (int)items.size() - 1)) { return ""; } return items[selected].value; } void ListBoxBasic::clearSelectedValue() { setSelection(-1); } void ListBoxBasic::onScrollBarValueChange(int value) { redraw(); } void ListBoxBasic::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if((w == 0) || (h == 0)) { return; } p.drawImageStretched(0, 0, bg_img, w, h); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); int yoffset = padding / 2; int skip = scroll.value(); int numitems = height() / (font.textHeight() + padding) + 1; for(int idx = skip; (idx < (int)items.size()) && (idx < (skip + numitems)); idx++) { auto& item = items[idx]; if(idx == selected) { p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 0.5f)); p.drawFilledRectangle(0, yoffset - (padding / 2), width() - 1, yoffset + (font.textHeight() + 1)); } if(idx == marked) { p.drawRectangle(0, yoffset - (padding / 2), width() - 1, yoffset + (font.textHeight() + 1)); } p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); p.drawText(2, yoffset + font.textHeight(), font, item.name); yoffset += font.textHeight() + padding; } scroll.setRange(numitems); scroll.setMaximum(items.size()); } void ListBoxBasic::scrollEvent(ScrollEvent* scrollEvent) { // forward scroll event to scroll bar. scroll.scrollEvent(scrollEvent); } void ListBoxBasic::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::down) { return; } switch(keyEvent->keycode) { case Key::up: if(marked == 0) { return; } marked--; if(marked < scroll.value()) { scroll.setValue(marked); } break; case Key::down: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); if(marked == ((int)items.size() - 1)) { return; } marked++; if(marked > (scroll.value() + numitems - 1)) { scroll.setValue(marked - numitems + 1); } } break; case Key::home: marked = 0; if(marked < scroll.value()) { scroll.setValue(marked); } break; case Key::end: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); marked = (int)items.size() - 1; if(marked > (scroll.value() + numitems - 1)) { scroll.setValue(marked - numitems + 1); } } break; case Key::character: if(keyEvent->text == " ") { setSelection(marked); //selectionNotifier(); } break; case Key::enter: setSelection(marked); selectionNotifier(); break; default: break; } redraw(); } void ListBoxBasic::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->x > ((int)width() - btn_size)) && (buttonEvent->y < ((int)width() - 1))) { if(buttonEvent->y > 0 && buttonEvent->y < btn_size) { if(buttonEvent->direction == Direction::up) { return; } scroll.setValue(scroll.value() - 1); return; } if(buttonEvent->y > ((int)height() - btn_size) && buttonEvent->y < ((int)height() - 1)) { if(buttonEvent->direction == Direction::up) { return; } scroll.setValue(scroll.value() + 1); return; } } if(buttonEvent->direction == Direction::up) { int skip = scroll.value(); size_t yoffset = padding / 2; for(int idx = skip; idx < (int)items.size(); idx++) { yoffset += font.textHeight() + padding; if(buttonEvent->y < (int)yoffset - (padding / 2)) { setSelection(idx); marked = selected; clickNotifier(); break; } } redraw(); } if(buttonEvent->direction != Direction::up) { int skip = scroll.value(); size_t yoffset = padding / 2; for(int idx = skip; idx < (int)items.size(); idx++) { yoffset += font.textHeight() + padding; if(buttonEvent->y < ((int)yoffset - (padding / 2))) { marked = idx; break; } } redraw(); } if(buttonEvent->doubleClick) { selectionNotifier(); } } void ListBoxBasic::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); scroll.move(width - scroll.width(), 0); scroll.resize(scroll.width(), height); } } // GUI:: drumgizmo-0.9.18.1/plugingui/stackedwidget.h0000644000076400007640000000465113331526614015726 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * stackedwidget.h * * Mon Nov 21 19:36:49 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "notifier.h" namespace GUI { //! A StackedWidget is a widget containing a list of widgets but only showing //! one of them at a time. //! It is be used to implement a TabWidget but can also be used for other //! purposes. class StackedWidget : public Widget { public: StackedWidget(Widget* parent); ~StackedWidget(); //! Add a widget to the stack. void addWidget(Widget* widget); //! Remove a widget from the stack. void removeWidget(Widget* widget); //! Get currently visible widget. Widget* getCurrentWidget() const; //! Show widget. Hide all the others. //! If widget is not in the stack nothing happens. void setCurrentWidget(Widget* widget); //! Returns a pointer to the Widget after the one referenced by 'widget' or //! nullptr if 'widget' is the last in the list. Widget* getWidgetAfter(Widget* widget); //! Returns a pointer to the Widget beforer the one referenced by 'widget' or //! nullptr if 'widget' is the first in the list. Widget* getWidgetBefore(Widget* widget); //! Reports whn a new widget is shown. Notifier currentChanged; private: //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: Widget* currentWidget{nullptr}; std::list widgets; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/helpbutton.h0000644000076400007640000000317613511117026015262 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * helpbutton.h * * Wed May 8 17:10:08 CEST 2019 * Copyright 2019 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "texture.h" #include "button_base.h" #include "tooltip.h" namespace GUI { class HelpButton : public ButtonBase { public: HelpButton(Widget* parent); virtual ~HelpButton() = default; void setHelpText(const std::string& help_text); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: void showHelpText(); Texture normal{getImageCache(), ":resources/help_button.png", 0, 0, 16, 16}; Texture pushed{getImageCache(), ":resources/help_button.png", 16, 0, 16, 16}; Tooltip tip; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/maintab.h0000644000076400007640000000577413511117026014517 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * maintab.h * * Fri Mar 24 20:39:59 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "layout.h" #include "frame.h" #include "drumkitframecontent.h" #include "statusframecontent.h" #include "humanizerframecontent.h" #include "diskstreamingframecontent.h" #include "bleedcontrolframecontent.h" #include "resamplingframecontent.h" #include "timingframecontent.h" #include "sampleselectionframecontent.h" #include "visualizerframecontent.h" struct Settings; class SettingsNotifier; class Config; namespace GUI { class MainTab : public Widget { public: MainTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config); // From Widget: void resize(std::size_t width, std::size_t height) override; private: void humanizerOnChange(bool on); void bleedcontrolOnChange(bool on); void resamplingOnChange(bool on); void timingOnChange(bool on); Image logo{":resources/logo.png"}; GridLayout layout{this, 2, 49}; FrameWidget drumkit_frame{this, false}; FrameWidget status_frame{this, false}; FrameWidget diskstreaming_frame{this, false}; FrameWidget bleedcontrol_frame{this, true}; FrameWidget resampling_frame{this, true}; FrameWidget humanizer_frame{this, true, true}; FrameWidget timing_frame{this, true, true}; FrameWidget sampleselection_frame{this, false, true}; FrameWidget visualizer_frame{this, false, true}; DrumkitframeContent drumkitframe_content; StatusframeContent statusframe_content; HumanizerframeContent humanizerframe_content; DiskstreamingframeContent diskstreamingframe_content; BleedcontrolframeContent bleedcontrolframe_content; ResamplingframeContent resamplingframe_content; TimingframeContent timingframe_content; SampleselectionframeContent sampleselectionframe_content; VisualizerframeContent visualizerframe_content; void add(std::string const& title, FrameWidget& frame, Widget& content, std::size_t height, int column); Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/imagecache.h0000644000076400007640000000364513153056416015154 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * imagecache.h * * Thu Jun 2 17:12:05 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include namespace GUI { class Image; class ImageCache; class ScopedImageBorrower { public: ScopedImageBorrower(ImageCache& imageCache, const std::string& filename); ScopedImageBorrower(ScopedImageBorrower&& other); virtual ~ScopedImageBorrower(); ScopedImageBorrower& operator=(ScopedImageBorrower&& other); Image& operator*(); Image& operator()(); protected: ImageCache& imageCache; std::string filename; Image& image; }; class ImageCache { public: ScopedImageBorrower getImage(const std::string& filename); private: friend class ScopedImageBorrower; Image& borrow(const std::string& filename); void giveBack(const std::string& filename); protected: std::map> imageCache; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/drumkittab.cc0000644000076400007640000002050613515375734015416 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkittab.cc * * Fri Jun 8 21:50:03 CEST 2018 * Copyright 2018 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkittab.h" #include #include #include #include "cpp11fix.h" // required for c++11 #include "painter.h" #include "settings.h" #include #include namespace GUI { DrumkitTab::DrumkitTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) { velocity_label.move(10, height()-velocity_label.height()-5); updateVelocityLabel(); velocity_label.resizeToText(); instrument_name_label.move(velocity_label.width()+30, height()-instrument_name_label.height()-5); updateInstrumentLabel(-1); pos_to_colour_index.setDefaultValue(-1); CONNECT(this, settings_notifier.drumkit_file, this, &DrumkitTab::drumkitFileChanged); } void DrumkitTab::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); if(drumkit_image) { Painter painter(*this); painter.clear(); drumkit_image_x = (this->width()-drumkit_image->width())/2; drumkit_image_y = (this->height()-drumkit_image->height())/2; painter.drawImage(drumkit_image_x, drumkit_image_y, *drumkit_image); } velocity_label.move(10, height-velocity_label.height()-5); instrument_name_label.move(velocity_label.width()+30, height-instrument_name_label.height()-5); } void DrumkitTab::buttonEvent(ButtonEvent* buttonEvent) { if(map_image) { if(buttonEvent->button == MouseButton::right) { if(buttonEvent->direction == GUI::Direction::down) { Painter painter(*this); painter.drawImage(drumkit_image_x, drumkit_image_y, *map_image); shows_overlay = true; redraw(); return; } if(buttonEvent->direction == GUI::Direction::up) { Painter painter(*this); painter.clear(); painter.drawImage(drumkit_image_x, drumkit_image_y, *drumkit_image); highlightInstrument(current_index); shows_overlay = false; redraw(); return; } } } if(buttonEvent->button == MouseButton::left) { if(buttonEvent->direction == GUI::Direction::down) { triggerAudition(buttonEvent->x, buttonEvent->y); highlightInstrument(current_index); redraw(); } if(buttonEvent->direction == GUI::Direction::up) { if(shows_instrument_overlay) { Painter painter(*this); painter.clear(); painter.drawImage(drumkit_image_x, drumkit_image_y, *drumkit_image); if(shows_overlay) { painter.drawImage(drumkit_image_x, drumkit_image_y, *map_image); } highlightInstrument(current_index); redraw(); } shows_instrument_overlay = false; } } } void DrumkitTab::scrollEvent(ScrollEvent* scrollEvent) { current_velocity -= 0.01*scrollEvent->delta; current_velocity = std::max(std::min(current_velocity, 1.0f), 0.0f); updateVelocityLabel(); velocity_label.resizeToText(); triggerAudition(scrollEvent->x, scrollEvent->y); } void DrumkitTab::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { // change to image coordinates auto const x = mouseMoveEvent->x - drumkit_image_x; auto const y = mouseMoveEvent->y - drumkit_image_y; auto index = pos_to_colour_index(x, y); if(index == current_index) { return; } current_index = index; Painter painter(*this); painter.clear(); painter.drawImage(drumkit_image_x, drumkit_image_y, *drumkit_image); if(shows_overlay) { painter.drawImage(drumkit_image_x, drumkit_image_y, *map_image); } highlightInstrument(index); updateInstrumentLabel(index); redraw(); } void DrumkitTab::mouseLeaveEvent() { if(map_image && (shows_overlay || shows_instrument_overlay)) { Painter painter(*this); painter.clear(); painter.drawImage(drumkit_image_x, drumkit_image_y, *drumkit_image); shows_overlay = false; redraw(); } } void DrumkitTab::triggerAudition(int x, int y) { // change to image coordinates x -= drumkit_image_x; y -= drumkit_image_y; auto index = pos_to_colour_index(x, y); if(index == -1) { return; } auto const& instrument = to_instrument_name[index]; if(!instrument.empty()) { ++settings.audition_counter; settings.audition_instrument = instrument; settings.audition_velocity = current_velocity; } } void DrumkitTab::highlightInstrument(int index) { if(index != -1) { Painter painter(*this); auto const& colour = colours[index]; //Colour colour(1.0f, 1.0f, 0.0f); auto const& positions = colour_index_to_positions[index]; painter.draw(positions.begin(), positions.end(), drumkit_image_x, drumkit_image_y, colour); shows_instrument_overlay = true; } else { shows_instrument_overlay = false; } } void DrumkitTab::updateVelocityLabel() { std::stringstream stream; stream << std::fixed << std::setprecision(2) << current_velocity; velocity_label.setText("Velocity: " + stream.str()); } void DrumkitTab::updateInstrumentLabel(int index) { current_instrument = (index == -1 ? "" : to_instrument_name[index]); instrument_name_label.setText("Instrument: " + current_instrument); instrument_name_label.resizeToText(); } void DrumkitTab::init(std::string const& image_file, std::string const& map_file) { drumkit_image = std::make_unique(image_file); map_image = std::make_unique(map_file); // collect all colours and build lookup table auto const height = map_image->height(); auto const width = map_image->width(); colours.clear(); pos_to_colour_index.assign(width, height, -1); colour_index_to_positions.clear(); to_instrument_name.clear(); for(std::size_t y = 0; y < map_image->height(); ++y) { for(std::size_t x = 0; x < map_image->width(); ++x) { auto colour = map_image->getPixel(x, y); if(colour.alpha() == 0.) { continue; } auto it = std::find(colours.begin(), colours.end(), colour); int index = std::distance(colours.begin(), it); if(it == colours.end()) { // XXX: avoids low alpha values due to feathering of edges colours.emplace_back(colour.red(), colour.green(), colour.blue(), 0.7); colour_index_to_positions.emplace_back(); } pos_to_colour_index(x, y) = index; colour_index_to_positions[index].emplace_back(x, y); } } // set instrument names to_instrument_name.resize(colours.size()); for(std::size_t i = 0; i < colours.size(); ++i) { for(auto const& pair: colour_instrument_pairs) { if(pair.colour == colours[i]) { to_instrument_name[i] = pair.instrument; } } } imageChangeNotifier(drumkit_image->isValid()); } void DrumkitTab::drumkitFileChanged(const std::string& drumkit_file) { if(drumkit_file.empty()) { return; } DrumkitDOM dom; if(parseDrumkitFile(drumkit_file, dom)) { colour_instrument_pairs.clear(); for(const auto& clickmap : dom.metadata.clickmaps) { if(clickmap.colour.size() != 6) { continue; } try { auto hex_colour = std::stoul(clickmap.colour, nullptr, 16); float red = (hex_colour >> 16 & 0xff) / 255.0f; float green = (hex_colour >> 8 & 0xff) / 255.0f; float blue = (hex_colour >> 0 & 0xff) / 255.0f; Colour colour(red, green, blue); colour_instrument_pairs.push_back({colour, clickmap.instrument}); } catch(...) { // Not valid hex number } } std::string path = getPath(drumkit_file); init(path + "/" + dom.metadata.image, path + "/" + dom.metadata.image_map); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/layout.h0000644000076400007640000001040713340266453014417 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * layout.h * * Sat Mar 21 15:12:36 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include namespace GUI { class Layout; class LayoutItem { public: LayoutItem(); virtual ~LayoutItem(); void setLayoutParent(Layout* parent); virtual void resize(std::size_t width, std::size_t height) = 0; virtual void move(int x, int y) = 0; virtual int x() const = 0; virtual int y() const = 0; virtual std::size_t width() const = 0; virtual std::size_t height() const = 0; private: Layout* parent; }; //! \brief Abtract Layout class. class Layout : public Listener { public: Layout(LayoutItem* parent); virtual ~Layout() { } virtual void addItem(LayoutItem* item); virtual void removeItem(LayoutItem* item); //! \brief Reimplement this method to create a new Layout rule. virtual void layout() = 0; protected: void sizeChanged(int width, int height); LayoutItem* parent; typedef std::list LayoutItemList; LayoutItemList items; }; //! \brief Abstract box layout class BoxLayout : public Layout { public: BoxLayout(LayoutItem* parent); //! \brief Set to false to only move the items, not scale them. void setResizeChildren(bool resize_children); void setSpacing(size_t spacing); // From Layout: virtual void layout() override = 0; protected: bool resizeChildren{false}; size_t spacing{0}; }; enum class HAlignment { left, center, right, }; //! \brief A Layout that lays out its elements vertically. class VBoxLayout : public BoxLayout { public: VBoxLayout(LayoutItem* parent); void setHAlignment(HAlignment alignment); // From BoxLayout: virtual void layout() override; protected: HAlignment align; }; enum class VAlignment { top, center, bottom, }; //! \brief A Layout that lays out its elements vertically. class HBoxLayout : public BoxLayout { public: HBoxLayout(LayoutItem* parent); void setVAlignment(VAlignment alignment); // From BoxLayout: virtual void layout() override; protected: VAlignment align; }; //! \brief A Layout class which places the items in a regular grid. An item can //! span multiple rows/columns. class GridLayout : public BoxLayout { public: // The range is open, i.e. end is one past the last one. struct GridRange { int column_begin; int column_end; int row_begin; int row_end; }; GridLayout(LayoutItem* parent, std::size_t number_of_columns, std::size_t number_of_rows); virtual ~GridLayout() { } // From Layout: virtual void removeItem(LayoutItem* item); virtual void layout(); void setPosition(LayoutItem* item, GridRange const& range); int lastUsedRow(int column) const; int lastUsedColumn(int row) const; protected: std::size_t number_of_columns; std::size_t number_of_rows; // Note: Yes, this is somewhat redundant to the LayoutItemList of the Layout // class. However, this was the best idea I had such that I could still // derive from Layout. If you find this ugly, feel free to fix it. std::unordered_map grid_ranges; private: struct CellSize { std::size_t width; std::size_t height; }; CellSize calculateCellSize() const; void moveAndResize( LayoutItem& item, GridRange const& range, CellSize cell_size) const; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/guievent.h0000644000076400007640000000611513511117026014720 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Sun Oct 9 16:11:47 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include namespace GUI { enum class EventType { mouseMove, repaint, button, scroll, key, close, resize, move, mouseEnter, mouseLeave, }; class Event { public: virtual ~Event() {} virtual EventType type() = 0; }; class MouseMoveEvent : public Event { public: EventType type() { return EventType::mouseMove; } int x; int y; }; enum class Direction { up, down, }; enum class MouseButton { right, middle, left, }; class ButtonEvent : public Event { public: EventType type() { return EventType::button; } int x; int y; Direction direction; MouseButton button; bool doubleClick; }; class ScrollEvent : public Event { public: EventType type() { return EventType::scroll; } int x; int y; float delta; }; class RepaintEvent : public Event { public: EventType type() { return EventType::repaint; } int x; int y; size_t width; size_t height; }; enum class Key { unknown, left, right, up, down, deleteKey, backspace, home, end, pageDown, pageUp, enter, character, //!< The actual character is stored in KeyEvent::text }; class KeyEvent : public Event { public: EventType type() { return EventType::key; } Direction direction; Key keycode; std::string text; }; class CloseEvent : public Event { public: EventType type() { return EventType::close; } }; class ResizeEvent : public Event { public: EventType type() { return EventType::resize; } size_t width; size_t height; }; class MoveEvent : public Event { public: EventType type() { return EventType::move; } int x; int y; }; class MouseEnterEvent : public Event { public: EventType type() { return EventType::mouseEnter; } int x; int y; }; class MouseLeaveEvent : public Event { public: EventType type() { return EventType::mouseLeave; } int x; int y; }; using EventQueue = std::list>; struct Rect { std::size_t x1; std::size_t y1; std::size_t x2; std::size_t y2; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/frame.h0000644000076400007640000000554413511117026014171 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * frame.h * * Tue Feb 7 21:07:56 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "font.h" #include "powerbutton.h" #include "helpbutton.h" #include "widget.h" namespace GUI { class FrameWidget : public Widget { public: FrameWidget(Widget* parent, bool has_switch = false, bool has_help_text = false); virtual ~FrameWidget() = default; // From Widget: virtual bool isFocusable() override { return false; } virtual bool catchMouse() override { return false; } bool isSwitchedOn() { return is_switched_on; } void setTitle(const std::string& title); void setHelpText(const std::string& help_text); void setContent(Widget* content); void setOnSwitch(bool on); void setEnabled(bool enabled); Notifier onSwitchChangeNotifier; // (bool on) Notifier onEnabledChanged; // (bool enabled) protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); bool enabled = true; private: // // upper bar // // label Font font; std::string title; GUI::Colour label_colour{0.1}; GUI::Colour label_colour_disabled{0.5}; std::size_t label_width; // switch bool is_switched_on; PowerButton power_button{this}; HelpButton help_button{this}; void powerButtonStateChanged(bool clicked); // grey box int bar_height; GUI::Colour grey_box_colour{0.7}; GUI::Colour grey_box_colour_disabled{0.7}; GUI::Colour background_colour{0.85, 0.8}; // // content // // content frame GUI::Colour frame_colour_top{0.95}; GUI::Colour frame_colour_bottom{0.4}; GUI::Colour frame_colour_side{0.6}; // content box Widget* content{nullptr}; int content_margin{12}; int content_start_x; int content_start_y; int content_width; int content_height; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/stackedwidget.cc0000644000076400007640000000561413331526613016063 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * stackedwidget.cc * * Mon Nov 21 19:36:49 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "stackedwidget.h" namespace GUI { StackedWidget::StackedWidget(Widget *parent) : Widget(parent) { CONNECT(this, sizeChangeNotifier, this, &StackedWidget::sizeChanged); } StackedWidget::~StackedWidget() { } void StackedWidget::addWidget(Widget *widget) { widgets.push_back(widget); widget->reparent(this); if(currentWidget == nullptr) { setCurrentWidget(widget); } else { widget->setVisible(false); } } void StackedWidget::removeWidget(Widget *widget) { if(widget == currentWidget) { setCurrentWidget(nullptr); } widgets.remove(widget); } Widget *StackedWidget::getCurrentWidget() const { return currentWidget; } void StackedWidget::setCurrentWidget(Widget *widget) { if(widget == currentWidget) { return; } if(currentWidget) { currentWidget->setVisible(false); } currentWidget = widget; if(currentWidget) { currentWidget->move(0, 0); currentWidget->resize(width(), height()); currentWidget->setVisible(true); } currentChanged(currentWidget); } Widget* StackedWidget::getWidgetAfter(Widget* widget) { bool found_it{false}; for(auto w : widgets) { if(found_it) { return w; } if(w == widget) { found_it = true; } } if(found_it) { // widget was the last in the list. return nullptr; } // The Widget pointed to by 'widget' was not in the list... return nullptr; } Widget* StackedWidget::getWidgetBefore(Widget* widget) { Widget* last{nullptr}; for(auto w : widgets) { if(w == widget) { return last; } last = w; } // The Widget pointed to by 'widget' was not in the list... return nullptr; } void StackedWidget::sizeChanged(int width, int height) { // Propagate size change to child: if(currentWidget) { currentWidget->move(0, 0); currentWidget->resize(width, height); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/led.cc0000644000076400007640000000434413331526613014004 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * led.cc * * Sat Oct 15 19:12:33 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "led.h" #include "painter.h" namespace GUI { LED::LED(Widget *parent) : Widget(parent) , state(Off) { } void LED::setState(state_t state) { if(this->state != state) { this->state = state; redraw(); } } void LED::repaintEvent(RepaintEvent* repaintEvent) { size_t h = height() - 1; size_t w = width() - 1; Painter p(*this); float alpha = 0.9; switch(state) { case Red: p.setColour(Colour(1, 0, 0,alpha)); break; case Green: p.setColour(Colour(0, 1, 0, alpha)); break; case Blue: p.setColour(Colour(0, 0, 1, alpha)); break; case Off: p.setColour(Colour(0.2, 0.2, 0.2, alpha)); break; } size_t size = w / 2; if((h / 2) < size) { size = h / 2; } p.drawFilledCircle(w / 2, h / 2, size); switch(state) { case Red: p.setColour(Colour(0.4, 0, 0, alpha)); break; case Green: p.setColour(Colour(0, 0.4, 0, alpha)); break; case Blue: p.setColour(Colour(0, 0, 0.4, alpha)); break; case Off: p.setColour(Colour(0.1, 0.1, 0.1, alpha)); break; } p.drawCircle(w / 2, h / 2, size); p.setColour(Colour(1, alpha)); p.drawFilledCircle(w / 3, h / 3, size / 6); } } // GUI:: drumgizmo-0.9.18.1/plugingui/bleedcontrolframecontent.cc0000644000076400007640000000561113340266453020323 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bleedcontrolframecontent.cc * * Wed May 24 14:40:16 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "bleedcontrolframecontent.h" #include #include namespace GUI { BleedcontrolframeContent::BleedcontrolframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , slider_width{250} , settings(settings) , settings_notifier(settings_notifier) { label_text.setText("Master Bleed Volume:"); label_text.setAlignment(TextAlignment::center); label_value.setText("0 %"); label_value.setAlignment(TextAlignment::center); CONNECT(this, settings_notifier.master_bleed, this, &BleedcontrolframeContent::bleedSettingsValueChanged); CONNECT(&slider, valueChangedNotifier, this, &BleedcontrolframeContent::bleedValueChanged); } void BleedcontrolframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); slider_width = 0.8 * width; auto x_start = 0.1 * width; label_text.move(x_start, 0); slider.move(x_start, 20); label_value.move(x_start, 40); label_text.resize(slider_width, 15); slider.resize(slider_width, 15); label_value.resize(slider_width, 15); } void BleedcontrolframeContent::setEnabled(bool enabled) { this->enabled = enabled; if (enabled) { label_text.resetColour(); label_value.resetColour(); slider.setEnabled(true); } else { label_text.setColour(0.7); label_value.setColour(0.7); slider.setEnabled(false); } redraw(); } void BleedcontrolframeContent::bleedSettingsValueChanged(float value) { slider.setValue(value); int percentage = 100 * value; label_value.setText(std::to_string(percentage) + " %"); slider.setColour(Slider::Colour::Blue); } void BleedcontrolframeContent::bleedValueChanged(float value) { settings.master_bleed.store(value); } } // GUI:: drumgizmo-0.9.18.1/plugingui/lineedit.h0000644000076400007640000000420113331526613014667 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.h * * Sun Oct 9 13:01:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "font.h" #include "painter.h" #include "texturedbox.h" namespace GUI { class LineEdit : public Widget { public: LineEdit(Widget *parent); virtual ~LineEdit(); bool isFocusable() override { return true; } std::string getText(); void setText(const std::string& text); void setReadOnly(bool readonly); bool readOnly(); Notifier<> enterPressedNotifier; //protected: virtual void keyEvent(KeyEvent *keyEvent) override; virtual void repaintEvent(RepaintEvent *repaintEvent) override; virtual void buttonEvent(ButtonEvent *buttonEvent) override; protected: virtual void textChanged() {} private: TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 Font font; std::string _text; size_t pos{0}; std::string visibleText; size_t offsetPos{0}; enum state_t { Noop, WalkLeft, WalkRight, }; state_t walkstate{Noop}; bool readonly; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/maintab.cc0000644000076400007640000001712113551153106014645 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * maintab.cc * * Fri Mar 24 20:39:59 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "maintab.h" namespace { constexpr char humanizer_tip[] = "\ The first two knobs influence how DrumGizmo simulates the\n\ stamina of a physical drummers, ie. the fact that they\n\ loose power in their strokes when playing fast notes:\n\ * pAttack: How quickly the velocity gets reduced when\n\ playing fast notes.\n\ Lower values result in faster velocity reduction.\n\ * pRelease: How quickly the drummer regains the velocity\n\ when there are spaces between the notes.\n\ Lower values result in faster regain.\n\ \n\ The last knob controls the randomization of the sample selection:\n\ * pStdDev: The standard-deviation for the sample selection.\n\ Higher value makes it more likely that a sample further\n\ away from the input velocity will be played."; constexpr char timing_tip[] = "\ These three knobs influence how DrumGizmo simulates the tightness\n\ of the drummer. The drifting is defined as the difference between\n\ the perfect metronome (defined by the note positions) and the 'internal'\n\ metronome of the drummer which can then drift back and forth in a\n\ controlled fashion:\n\ * pTightness: For each note how much is the drummer allowed to drift.\n\ Higher value make the drummer more tight, ie. drift less.\n\ * pTimingRegain: Once the drifted, how fast does the drummer's 'internal'\n\ metronome get back in sync with the perfect metronome.\n\ Higher values moves the timing back towards perfect faster.\n\ * pLaidback: Add or subtract a fixed delay in ms to all notes. This will\n\ alter the feel of a beat.\n\ Positive values are up-beat, negative values are back on the beat.\n\ \n\ NOTE: Enabling timing humanization will introduce a fixed delay into the\n\ audio stream. So this feature should be disabled when using DrumGizmo in\n\ a real-time scenario such as live with a MIDI drumkit."; constexpr char sampleselection_tip[] = "\ These three knobs influence how DrumGizmo selects\n\ its samples in the following way:\n\ * pClose: The importance given to choosing a sample close\n\ to the actual MIDI value (after humanization)\n\ * pDiversity: The importance given to choosing samples\n\ which haven't been played recently.\n\ * pRandom: The amount of randomness added."; constexpr char visualizer_tip[] = "\ This graph visualizes the time and velocity offsets of last note played\n\ according to it's ideal input time and velocity.\n\ The green lines indicate the ideal time and velocity positions.\n\ The pink areas indicate the spread of the position and velocity of the\n\ next note in line. The wider the area the more the note can move in time\n\ and velocity."; } // end anonymous namespace namespace GUI { MainTab::MainTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config) : Widget(parent) , drumkitframe_content{this, settings, settings_notifier, config} , statusframe_content{this, settings_notifier} , humanizerframe_content{this, settings, settings_notifier} , diskstreamingframe_content{this, settings, settings_notifier} , bleedcontrolframe_content{this, settings, settings_notifier} , resamplingframe_content{this, settings_notifier} , timingframe_content{this, settings, settings_notifier} , sampleselectionframe_content{this, settings, settings_notifier} , visualizerframe_content{this, settings, settings_notifier} , settings(settings) , settings_notifier(settings_notifier) { layout.setSpacing(0); layout.setResizeChildren(true); add("Drumkit", drumkit_frame, drumkitframe_content, 15, 0); add("Status", status_frame, statusframe_content, 15, 0); add("Resampling", resampling_frame, resamplingframe_content, 10, 0); add("Disk Streaming", diskstreaming_frame, diskstreamingframe_content, 9, 0); add("Velocity Humanizer", humanizer_frame, humanizerframe_content, 10, 1); humanizer_frame.setHelpText(humanizer_tip); add("Timing Humanizer", timing_frame, timingframe_content, 10, 1); timing_frame.setHelpText(timing_tip); add("Sample Selection", sampleselection_frame, sampleselectionframe_content, 10, 1); sampleselection_frame.setHelpText(sampleselection_tip); add("Visualizer", visualizer_frame, visualizerframe_content, 10, 1); visualizer_frame.setHelpText(visualizer_tip); add("Bleed Control", bleedcontrol_frame, bleedcontrolframe_content, 9, 1); humanizer_frame.setOnSwitch(settings.enable_velocity_modifier); bleedcontrol_frame.setOnSwitch(settings.enable_bleed_control); resampling_frame.setOnSwitch(settings.enable_resampling); timing_frame.setOnSwitch(settings.enable_latency_modifier); // FIXME: bleedcontrol_frame.setEnabled(false); CONNECT(this, settings_notifier.enable_velocity_modifier, &humanizer_frame, &FrameWidget::setOnSwitch); CONNECT(this, settings_notifier.enable_resampling, &resampling_frame, &FrameWidget::setOnSwitch); CONNECT(this, settings_notifier.has_bleed_control, &bleedcontrol_frame, &FrameWidget::setEnabled); CONNECT(&humanizer_frame, onSwitchChangeNotifier, this, &MainTab::humanizerOnChange); CONNECT(&bleedcontrol_frame, onSwitchChangeNotifier, this, &MainTab::bleedcontrolOnChange); CONNECT(&resampling_frame, onSwitchChangeNotifier, this, &MainTab::resamplingOnChange); CONNECT(&timing_frame, onSwitchChangeNotifier, this, &MainTab::timingOnChange); CONNECT(&bleedcontrol_frame, onEnabledChanged, &bleedcontrolframe_content, &BleedcontrolframeContent::setEnabled); } void MainTab::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); // DrumGizmo logo Painter painter(*this); painter.clear(); painter.drawImage(width - logo.width(), height - logo.height(), logo); } void MainTab::humanizerOnChange(bool on) { settings.enable_velocity_modifier.store(on); } void MainTab::bleedcontrolOnChange(bool on) { settings.enable_bleed_control.store(on); } void MainTab::resamplingOnChange(bool on) { settings.enable_resampling.store(on); } void MainTab::timingOnChange(bool on) { settings.enable_latency_modifier.store(on); } void MainTab::add(std::string const& title, FrameWidget& frame, Widget& content, std::size_t height, int column) { layout.addItem(&frame); frame.setTitle(title); frame.setContent(&content); auto grid_start = layout.lastUsedRow(column) + 1; auto range = GridLayout::GridRange{column, column + 1, grid_start, grid_start + int(height)}; layout.setPosition(&frame, range); } } // GUI:: drumgizmo-0.9.18.1/plugingui/image.h0000644000076400007640000000352313511117026014154 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * image.h * * Sat Mar 16 15:05:08 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "drawable.h" #include "colour.h" #include "resource.h" namespace GUI { class Image : public Drawable { public: Image(const char* data, size_t size); Image(const std::string& filename); Image(Image&& other); virtual ~Image(); Image& operator=(Image&& other); size_t width() const override; size_t height() const override; const Colour& getPixel(size_t x, size_t y) const override; bool isValid() const; private: void setError(); bool valid{false}; void load(const char* data, size_t size); std::size_t _width{0}; std::size_t _height{0}; std::vector image_data; Colour out_of_range{0.0f, 0.0f, 0.0f, 0.0f}; std::string filename; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/scrollbar.h0000644000076400007640000000404713331526613015065 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * scrollbar.h * * Sun Apr 14 12:54:58 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "texture.h" #include "notifier.h" namespace GUI { class ScrollBar : public Widget { friend class ListBoxBasic; public: ScrollBar(Widget *parent); void setRange(int range); int range(); void setMaximum(int max); int maximum(); void addValue(int delta); void setValue(int value); int value(); Notifier valueChangeNotifier; // (int value) protected: // From Widget: bool catchMouse() override { return true; } void scrollEvent(ScrollEvent* scrollEvent) override; void repaintEvent(RepaintEvent* repaintEvent) override; void buttonEvent(ButtonEvent* buttonEvent) override; void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; private: int maxValue{100}; int currentValue{0}; int rangeValue{10}; int yOffset{0}; int valueOffset{0}; bool dragging{false}; Texture bg_img{getImageCache(), ":resources/widget.png", 7, 7, 1, 63}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/colour.cc0000644000076400007640000000364413515375734014557 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * colour.cc * * Fri Oct 14 09:38:28 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "colour.h" #include namespace GUI { Colour::Colour() { data = {{1.0f, 1.0f, 1.0f, 1.0f}}; } Colour::Colour(float grey, float a) { data = {{grey, grey, grey, a}}; } Colour::Colour(float r, float g, float b, float a) { data = {{r, g, b, a}}; } Colour::Colour(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a) : Colour(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f) {} Colour::Colour(const Colour& other) { data = other.data; } Colour& Colour::operator=(const Colour& other) { data = other.data; return *this; } bool Colour::operator==(const Colour& other) const { return data[0] == other.data[0] && data[1] == other.data[1] && data[2] == other.data[2]; } bool Colour::operator!=(const Colour& other) const { return !(*this == other); } } // GUI:: drumgizmo-0.9.18.1/plugingui/nativewindow_pugl.h0000644000076400007640000000471613340266454016656 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_pugl.h * * Fri Dec 28 18:45:56 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "nativewindow.h" extern "C" { #include } #include namespace GUI { class Event; class Window; class NativeWindowPugl : public NativeWindow { public: NativeWindowPugl(void* native_window, Window& window); ~NativeWindowPugl(); void setFixedSize(std::size_t width, std::size_t height) override; void resize(std::size_t width, std::size_t height) override; std::pair getSize() const override; void move(int x, int y) override; std::pair getPosition() const override{ return {}; } void show() override; void setCaption(const std::string &caption) override; void hide() override; bool visible() const override; void redraw(const Rect& dirty_rect) override; void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; private: Window& window; PuglView* view{nullptr}; std::list eventq; // Internal pugl c-callbacks static void onEvent(PuglView* view, const PuglEvent* event); static void onReshape(PuglView* view, int width, int height); static void onDisplay(PuglView* view); static void onMouse(PuglView* view, int button, bool press, int x, int y); static void onKeyboard(PuglView* view, bool press, uint32_t key); EventQueue event_queue; std::uint32_t last_click{0}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/directory.h0000644000076400007640000000474113331526613015107 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * directory.h * * Tue Apr 23 22:01:07 CEST 2013 * Copyright 2013 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #define DIRECTORY_HIDDEN 1 namespace GUI { class Directory { public: typedef struct drive { int number; std::string name; } drive_t; typedef std::list EntryList; typedef std::list DriveList; Directory(std::string path); ~Directory(); std::string seperator(); size_t count(); void refresh(); std::string path(); bool cdUp(); bool cd(std::string dir); bool isDir(); void setPath(std::string path); bool fileExists(std::string file); // Add filter, ie. directories or files only EntryList entryList(); //void setSorting(); static std::string cwd(); static std::string root(); static std::string root(std::string path); static std::string cleanPath(std::string path); static Directory::EntryList listFiles(std::string path, unsigned char filter = 0); static bool isRoot(std::string path); static Directory::DriveList drives(); static bool isDir(std::string path); static bool isHidden(std::string entry); static bool exists(std::string path); static std::string pathDirectory(std::string filepath); private: std::string _path; EntryList _files; DriveList _drives; typedef std::list Path; static Path parsePath(std::string path); static std::string pathToStr(Path &path); }; } // GUI:: drumgizmo-0.9.18.1/plugingui/widget.cc0000644000076400007640000001223513551153106014516 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * widget.cc * * Sun Oct 9 13:01:44 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "widget.h" #include #include "painter.h" #include "window.h" namespace GUI { Widget::Widget(Widget* parent) : parent(parent) { if(parent) { parent->addChild(this); _window = parent->window(); } pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); } Widget::~Widget() { if(parent) { parent->removeChild(this); } } void Widget::show() { setVisible(true); } void Widget::hide() { setVisible(false); } void Widget::setVisible(bool visible) { _visible = visible; pixbuf.visible = visible; redraw(); } bool Widget::visible() const { return _visible; } void Widget::redraw() { dirty = true; window()->needsRedraw(); } void Widget::addChild(Widget* widget) { children.push_back(widget); } void Widget::removeChild(Widget* widget) { for(auto i = children.begin(); i != children.end(); ++i) { if(*i == widget) { children.erase(i); return; } } } void Widget::reparent(Widget* parent) { if(parent == this->parent) { return; // Already at the right parent. } if(this->parent) { this->parent->removeChild(this); } if(parent) { parent->addChild(this); } this->parent = parent; } void Widget::resize(std::size_t width, std::size_t height) { assert(width < 32000 && height < 32000); // Catch negative values as size_t if((width < 1) || (height < 1) || ((width == _width) && (height == _height))) { return; } _width = width; _height = height; // Store old size/position in pixelbuffer for rendering invalidation. if(!pixbuf.has_last) { pixbuf.last_width = pixbuf.width; pixbuf.last_height = pixbuf.height; pixbuf.last_x = pixbuf.x; pixbuf.last_y = pixbuf.y; pixbuf.has_last = true; } pixbuf.realloc(width, height); pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); redraw(); sizeChangeNotifier(width, height); } void Widget::move(int x, int y) { if((_x == x) && (_y == y)) { return; } _x = x; _y = y; // Store old size/position in pixelbuffer for rendering invalidation. if(!pixbuf.has_last) { pixbuf.last_width = pixbuf.width; pixbuf.last_height = pixbuf.height; pixbuf.last_x = pixbuf.x; pixbuf.last_y = pixbuf.y; pixbuf.has_last = true; } //pixbuf.x = translateToWindowX(); //pixbuf.y = translateToWindowY(); positionChangeNotifier(x, y); } int Widget::x() const { return _x; } int Widget::y() const { return _y; } std::size_t Widget::width() const { return _width; } std::size_t Widget::height() const { return _height; } Point Widget::position() const { return { _x, _y }; } PixelBufferAlpha& Widget::GetPixelBuffer() { return pixbuf; } ImageCache& Widget::getImageCache() { assert(parent); return parent->getImageCache(); } Widget* Widget::find(int x, int y) { for(auto i = children.rbegin(); i != children.rend(); ++i) { Widget* widget = *i; if(widget->visible()) { if((x >= widget->x()) && (x < (widget->x() + (int)widget->width())) && (y >= widget->y()) && (y < (widget->y() + (int)widget->height()))) { return widget->find(x - widget->x(), y - widget->y()); } } } return this; } Window* Widget::window() { return _window; } std::vector Widget::getPixelBuffers() { std::vector pixelBuffers; pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); if(dirty) { repaintEvent(nullptr); pixbuf.dirty = true; dirty = false; } if(pixbuf.dirty || visible()) { pixelBuffers.push_back(&pixbuf); } if(visible()) { for(auto child : children) { auto childPixelBuffers = child->getPixelBuffers(); pixelBuffers.insert(pixelBuffers.end(), childPixelBuffers.begin(), childPixelBuffers.end()); } } return pixelBuffers; } bool Widget::hasKeyboardFocus() { return window()->keyboardFocus() == this; } std::size_t Widget::translateToWindowX() { size_t window_x = x(); if(parent) { window_x += parent->translateToWindowX(); } return window_x; } std::size_t Widget::translateToWindowY() { size_t window_y = y(); if(parent) { window_y += parent->translateToWindowY(); } return window_y; } } // GUI:: drumgizmo-0.9.18.1/plugingui/Makefile.am0000644000076400007640000001131213544125501014753 00000000000000noinst_PROGRAMS = plugingui rcgen noinst_LTLIBRARIES = libdggui.la # If you add a file here, remember to add it to plugin/Makefile.mingw32.in RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/help_button.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/stddev_horizontal.png \ resources/stddev_horizontal_disabled.png \ resources/stddev_vertical.png \ resources/stddev_vertical_disabled.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../BUGS \ ../COPYING resource_data.cc : rcgen $(RES) ./rcgen $(RES) > resource_data.cc libdggui_la_CPPFLAGS = \ $(GUI_CPPFLAGS) \ -I$(top_srcdir)/hugin \ -I$(top_srcdir)/src \ -DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \ -DLODEPNG_NO_COMPILE_ENCODER \ -DLODEPNG_NO_COMPILE_DISK \ -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \ -DLODEPNG_NO_COMPILE_ERROR_TEXT \ -DLODEPNG_NO_COMPILE_CPP libdggui_la_CFLAGS = libdggui_la_LIBTOOLFLAGS=--tag=CC libdggui_la_LIBADD = \ $(GUI_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdggui_la_SOURCES = \ abouttab.cc \ bleedcontrolframecontent.cc \ button.cc \ button_base.cc \ checkbox.cc \ colour.cc \ combobox.cc \ dialog.cc \ directory.cc \ diskstreamingframecontent.cc \ drumkitframecontent.cc \ drumkittab.cc \ eventhandler.cc \ filebrowser.cc \ font.cc \ frame.cc \ helpbutton.cc \ humanizerframecontent.cc \ humaniservisualiser.cc \ image.cc \ imagecache.cc \ knob.cc \ label.cc \ layout.cc \ led.cc \ lineedit.cc \ listbox.cc \ listboxbasic.cc \ listboxthin.cc \ maintab.cc \ mainwindow.cc \ painter.cc \ pixelbuffer.cc \ pluginconfig.cc \ powerbutton.cc \ progressbar.cc \ resamplingframecontent.cc \ resource.cc \ resource_data.cc \ sampleselectionframecontent.cc \ scrollbar.cc \ slider.cc \ stackedwidget.cc \ statusframecontent.cc \ tabbutton.cc \ tabwidget.cc \ textedit.cc \ texture.cc \ texturedbox.cc \ timingframecontent.cc \ toggle.cc \ tooltip.cc \ utf8.cc \ verticalline.cc \ visualizerframecontent.cc \ widget.cc \ window.cc \ lodepng/lodepng.cpp if ENABLE_X11 nodist_libdggui_la_SOURCES += \ nativewindow_x11.cc endif if ENABLE_WIN32 nodist_libdggui_la_SOURCES += \ nativewindow_win32.cc endif if ENABLE_COCOA nodist_libdggui_la_SOURCES += \ nativewindow_cocoa.mm libdggui_la_OBJCXXFLAGS = \ -fblocks endif if ENABLE_PUGL_X11 nodist_libdggui_la_SOURCES += \ nativewindow_pugl.cc \ $(top_srcdir)/pugl/pugl/pugl_x11.c libdggui_la_CPPFLAGS += \ -I$(top_srcdir)/pugl libdggui_la_CFLAGS += \ -std=c99 endif if ENABLE_PUGL_WIN32 nodist_libdggui_la_SOURCES += \ nativewindow_pugl.cc \ $(top_srcdir)/pugl/pugl/pugl_win.cpp libdggui_la_CPPFLAGS += \ -I$(top_srcdir)/pugl endif if ENABLE_PUGL_COCOA nodist_libdggui_la_SOURCES += \ nativewindow_pugl.cc \ $(top_srcdir)/pugl/pugl/pugl_osx.m libdggui_la_CPPFLAGS += \ -I$(top_srcdir)/pugl endif plugingui_LDADD = libdggui.la $(top_srcdir)/src/libdg.la plugingui_CXXFLAGS = \ $(GUI_CPPFLAGS) \ $(SNDFILE_CXXFLAGS) \ $(PTHREAD_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin plugingui_CFLAGS = $(plugingui_CXXFLAGS) plugingui_SOURCES = \ testmain.cc \ $(top_srcdir)/hugin/hugin.c rcgen_SOURCES = rcgen.cc EXTRA_DIST = \ $(nodist_libdggui_la_SOURCES) \ $(RES) \ abouttab.h \ bleedcontrolframecontent.h \ button.h \ button_base.h \ canvas.h \ checkbox.h \ colour.h \ combobox.h \ dialog.h \ directory.h \ diskstreamingframecontent.h \ drawable.h \ drumkitframecontent.h \ drumkittab.h \ eventhandler.h \ filebrowser.h \ font.h \ frame.h \ guievent.h \ helpbutton.h \ humaniservisualiser.h \ humanizerframecontent.h \ image.h \ imagecache.h \ knob.h \ label.h \ labeledcontrol.h \ layout.h \ led.h \ lineedit.h \ listbox.h \ listboxbasic.h \ listboxthin.h \ maintab.h \ mainwindow.h \ nativewindow.h \ nativewindow_cocoa.h \ nativewindow_pugl.h \ nativewindow_win32.h \ nativewindow_x11.h \ painter.h \ pixelbuffer.h \ pluginconfig.h \ powerbutton.h \ progressbar.h \ resamplingframecontent.h \ resource.h \ resource_data.h \ sampleselectionframecontent.h \ scrollbar.h \ slider.h \ stackedwidget.h \ statusframecontent.h \ tabbutton.h \ tabwidget.h \ textedit.h \ texture.h \ texturedbox.h \ timingframecontent.h \ toggle.h \ tooltip.h \ utf8.h \ verticalline.h \ visualizerframecontent.h \ widget.h \ window.h drumgizmo-0.9.18.1/plugingui/mainwindow.cc0000644000076400007640000000644113544125501015411 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * mainwindow.cc * * Sat Nov 26 14:27:29 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "mainwindow.h" #include #include "painter.h" #include namespace GUI { MainWindow::MainWindow(Settings& settings, void* native_window) : Window(native_window) , settings_notifier(settings) , main_tab(this, settings, settings_notifier, config) , drumkit_tab(this, settings, settings_notifier) { config.load(); CONNECT(this, sizeChangeNotifier, this, &MainWindow::sizeChanged); CONNECT(eventHandler(), closeNotifier, this, &MainWindow::closeEventHandler); setCaption("DrumGizmo v" VERSION); tabs.setTabWidth(100); tabs.move(16, 0); // x-offset to make room for the left side bar. tabs.addTab("Main", &main_tab); drumkit_tab_id = tabs.addTab("Drumkit", &drumkit_tab); changeDrumkitTabVisibility(false); // Hide while no kit is loaded tabs.addTab("About", &about_tab); CONNECT(&drumkit_tab, imageChangeNotifier, this, &MainWindow::changeDrumkitTabVisibility); } MainWindow::~MainWindow() { config.save(); } bool MainWindow::processEvents() { settings_notifier.evaluate(); eventHandler()->processEvents(); if(closing) { closeNotifier(); closing = false; return false; } return true; } void MainWindow::repaintEvent(RepaintEvent* repaintEvent) { if(!visible()) { return; } Painter painter(*this); auto bar_height = tabs.getBarHeight(); // Grey background painter.drawImageStretched(0, 0, back, width(), height()); // Topbar above the sidebars topbar.setSize(16, bar_height); painter.drawImage(0, 0, topbar); painter.drawImage(width() - 16, 0, topbar); // Sidebars sidebar.setSize(16, height() - bar_height + 1); painter.drawImage(0, bar_height-1, sidebar); painter.drawImage(width() - 16, bar_height-1, sidebar); } void MainWindow::sizeChanged(std::size_t width, std::size_t height) { tabs.resize(std::max((int)width - 2 * 16, 0), height); } void MainWindow::changeDrumkitTabVisibility(bool visible) { // TODO: Check if the currently active tab is the drumkit tab and switch to // the main tab if it is. // TODO: Add disabled state to the TabButtons and make it disabled instead of // hidden here. tabs.setVisible(drumkit_tab_id, visible); } void MainWindow::closeEventHandler() { closing = true; } } // GUI:: drumgizmo-0.9.18.1/plugingui/lineedit.cc0000644000076400007640000001200013340266453015024 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.cc * * Sun Oct 9 13:01:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "lineedit.h" #include #include #define BORDER 10 namespace GUI { LineEdit::LineEdit(Widget *parent) : Widget(parent) { setReadOnly(false); } LineEdit::~LineEdit() { } void LineEdit::setReadOnly(bool ro) { readonly = ro; } bool LineEdit::readOnly() { return readonly; } void LineEdit::setText(const std::string& text) { _text = text; pos = text.size(); visibleText = _text; offsetPos = 0; redraw(); textChanged(); } std::string LineEdit::getText() { return _text; } void LineEdit::buttonEvent(ButtonEvent *buttonEvent) { if(readOnly()) { return; } // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { for(int i = 0; i < (int)visibleText.length(); ++i) { int textWidth = font.textWidth(visibleText.substr(0, i)); if(buttonEvent->x < (textWidth + BORDER)) { pos = i + offsetPos; break; } } redraw(); } } void LineEdit::keyEvent(KeyEvent *keyEvent) { if(readOnly()) { return; } bool change = false; if(keyEvent->direction == Direction::down) { switch(keyEvent->keycode) { case Key::left: if(pos == 0) { return; } pos--; if(offsetPos >= pos) { walkstate = WalkLeft; } break; case Key::right: if(pos == _text.length()) { return; } pos++; if((pos < _text.length()) && ((offsetPos + visibleText.length()) <= pos)) { walkstate = WalkRight; } break; case Key::home: pos = 0; visibleText = _text; offsetPos = 0; break; case Key::end: pos = _text.length(); visibleText = _text; offsetPos = 0; break; case Key::deleteKey: if(pos < _text.length()) { std::string t = _text.substr(0, pos); t += _text.substr(pos + 1, std::string::npos); _text = t; change = true; } break; case Key::backspace: if(pos > 0) { std::string t = _text.substr(0, pos - 1); t += _text.substr(pos, std::string::npos); _text = t; pos--; change = true; } break; case Key::character: { std::string pre = _text.substr(0, pos); std::string post = _text.substr(pos, std::string::npos); _text = pre + keyEvent->text + post; change = true; pos++; } break; case Key::enter: enterPressedNotifier(); break; default: break; } redraw(); } if(change) { textChanged(); } } void LineEdit::repaintEvent(RepaintEvent *repaintEvent) { Painter p(*this); int w = width(); int h = height(); if((w == 0) || (h == 0)) { return; } box.setSize(w, h); p.drawImage(0, 0, box); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); switch(walkstate) { case WalkLeft: visibleText = _text.substr(pos, std::string::npos); offsetPos = pos; break; case WalkRight: { int delta = (offsetPos < _text.length()) ? 1 : 0; visibleText = _text.substr(offsetPos + delta); offsetPos = offsetPos + delta; } break; case Noop: visibleText = _text; offsetPos = 0; break; } while(true) { int textWidth = font.textWidth(visibleText); if(textWidth <= std::max(w - BORDER - 4 + 3, 0)) { break; } switch(walkstate) { case WalkLeft: visibleText = visibleText.substr(0, visibleText.length() - 1); break; case WalkRight: visibleText = visibleText.substr(0, visibleText.length() - 1); break; case Noop: if(offsetPos < pos) { visibleText = visibleText.substr(1); offsetPos++; } else { visibleText = visibleText.substr(0, visibleText.length() - 1); } break; } } walkstate = Noop; p.drawText(BORDER - 4 + 3, height() / 2 + 5 + 1 + 1 + 1, font, visibleText); if(readOnly()) { return; } if(hasKeyboardFocus()) { size_t px = font.textWidth(visibleText.substr(0, pos - offsetPos)); p.drawLine(px + BORDER - 1 - 4 + 3, 6, px + BORDER - 1 - 4 + 3, height() - 7); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/dialog.h0000644000076400007640000000365613331526613014346 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dialog.h * * Sun Apr 16 10:31:04 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "window.h" namespace GUI { //! This class is used the base window for pop-up dialogs, such as a file //! browser. class Dialog : public Window { public: //! - The dialog is placed near the parent window. //! - The parent window event handler will call the dialog event handler //! - While the dialog is visible, all mouse click and keyboard events //! are ignored by the parent event handler. //! - The Dialog registers itself in the parent event handler when contructed //! and removes itself when destructed. //! - The parent event handler will delete all registered Dialogs when itself //! deleted. Dialog(Widget* parent, bool modal = false); ~Dialog(); //! Change modality. void setModal(bool modal); //! Get current modality state. bool isModal() const; private: bool is_modal{false}; Widget* parent{nullptr}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/resource.h0000644000076400007640000000267413153056417014737 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource.h * * Sun Mar 17 19:38:03 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Resource { public: Resource(const std::string& name); const char* data(); size_t size(); bool valid(); protected: std::string externalData; bool isValid{false}; bool isInternal{false}; const char *internalData{nullptr}; size_t internalSize{0}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/pixelbuffer.cc0000644000076400007640000001134013331526613015545 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pixelbuffer.cc * * Thu Nov 10 09:00:38 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pixelbuffer.h" #include #include namespace GUI { PixelBuffer::PixelBuffer(std::size_t width, std::size_t height) : buf(nullptr) { realloc(width, height); } PixelBuffer::~PixelBuffer() { free(buf); } void PixelBuffer::realloc(std::size_t width, std::size_t height) { free(buf); buf = (unsigned char *)calloc(width * height, 3); this->width = width; this->height = height; } #define PX(k) ((x + y * width) * 3 + k) void PixelBuffer::setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); if(alpha == 0) { return; } if(alpha < 255) { unsigned int a = alpha; unsigned int b = 255 - alpha; buf[PX(0)] = (unsigned char)(((int)red * a + (int)buf[PX(0)] * b) / 255); buf[PX(1)] = (unsigned char)(((int)green * a + (int)buf[PX(1)] * b) / 255); buf[PX(2)] = (unsigned char)(((int)blue * a + (int)buf[PX(2)] * b) / 255); } else { buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; } } PixelBufferAlpha::PixelBufferAlpha(std::size_t width, std::size_t height) : managed(true) , buf(nullptr) , x(0) , y(0) { realloc(width, height); } PixelBufferAlpha::~PixelBufferAlpha() { if(managed) { free(buf); } } void PixelBufferAlpha::realloc(std::size_t width, std::size_t height) { free(buf); buf = (unsigned char *)calloc(width * height, 4); this->width = width; this->height = height; } #undef PX #define PX(k) ((x + y * width) * 4 + k) void PixelBufferAlpha::setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; buf[PX(3)] = alpha; } // http://en.wikipedia.org/wiki/Alpha_compositing static inline void getAlpha(unsigned char _a, unsigned char _b, float &a, float &b) { a = _a / 255.0; b = _b / 255.0; b *= (1 - a); } void PixelBufferAlpha::addPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); if(alpha == 0) { return; } if(alpha < 255) { float a, b; getAlpha(alpha, buf[PX(3)], a, b); buf[PX(0)] = (unsigned char)((float)red * a + (float)buf[PX(0)] * b); buf[PX(0)] /= (a + b); buf[PX(1)] = (unsigned char)((float)green * a + (float)buf[PX(1)] * b); buf[PX(1)] /= (a + b); buf[PX(2)] = (unsigned char)((float)blue * a + (float)buf[PX(2)] * b); buf[PX(2)] /= (a + b); buf[PX(3)] = (a + b) * 255; } else { buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; buf[PX(3)] = alpha; } } void PixelBufferAlpha::addPixel(std::size_t x, std::size_t y, const Colour& c) { addPixel(x, y, c.red() * 255, c.green() * 255, c.blue() * 255, c.alpha() * 255); } void PixelBufferAlpha::pixel(std::size_t x, std::size_t y, unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha) const { assert(x < width); assert(y < height); *red = buf[PX(0)]; *green = buf[PX(1)]; *blue = buf[PX(2)]; *alpha = buf[PX(3)]; } } // GUI:: drumgizmo-0.9.18.1/plugingui/checkbox.cc0000644000076400007640000000344213331526613015024 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * checkbox.cc * * Sat Nov 26 15:07:44 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "checkbox.h" #include "painter.h" namespace GUI { CheckBox::CheckBox(Widget* parent) : Toggle(parent) , bg_on(getImageCache(), ":resources/switch_back_on.png") , bg_off(getImageCache(), ":resources/switch_back_off.png") , knob(getImageCache(), ":resources/switch_front.png") { } void CheckBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.drawImage( 0, (knob.height() - bg_on.height()) / 2, state ? bg_on : bg_off); if(clicked) { p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, knob); return; } if(state) { p.drawImage(bg_on.width() - 40 + 2, 0, knob); } else { p.drawImage(0, 0, knob); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/filebrowser.cc0000644000076400007640000001452713554064120015564 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * filebrowser.cc * * Mon Feb 25 21:09:44 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "filebrowser.h" #include "painter.h" #include "button.h" #include "directory.h" #include #include #include #include #include #include #include #ifdef __MINGW32__ #include #endif namespace GUI { FileBrowser::FileBrowser(Widget* parent) : Dialog(parent, true) , dir(Directory::cwd()) , lbl_path(this) , lineedit(this) , listbox(this) , btn_sel(this) , btn_def(this) , btn_esc(this) , back(":resources/bg.png") { #if DG_PLATFORM == DG_PLATFORM_WINDOWS above_root = false; #endif setCaption("Open file..."); lbl_path.setText("Path:"); //lineedit.setReadOnly(true); CONNECT(&lineedit, enterPressedNotifier, this, &FileBrowser::handleKeyEvent); CONNECT(&listbox, selectionNotifier, this, &FileBrowser::listSelectionChanged); CONNECT(this, fileSelectNotifier, this, &FileBrowser::select); CONNECT(eventHandler(), closeNotifier, this, &FileBrowser::cancel); btn_sel.setText("Select"); CONNECT(&btn_sel, clickNotifier, this, &FileBrowser::selectButtonClicked); btn_def.setText("Set default path"); CONNECT(&btn_def, clickNotifier, this, &FileBrowser::setDefaultPath); btn_esc.setText("Cancel"); CONNECT(&btn_esc, clickNotifier, this, &FileBrowser::cancelButtonClicked); changeDir(); } void FileBrowser::setPath(const std::string& path) { INFO(filebrowser, "Setting path to '%s'\n", path.c_str()); if(!path.empty() && Directory::exists(path)) { dir.setPath(Directory::pathDirectory(path)); } else { dir.setPath(Directory::pathDirectory(Directory::cwd())); } listbox.clear(); changeDir(); } void FileBrowser::resize(std::size_t width, std::size_t height) { Dialog::resize(width, height); int offset = 0; int brd = 5; // border int btn_h = 30; int btn_w = std::max(width * 2 / 7, std::size_t(0)); offset += brd; lbl_path.move(brd, offset); lineedit.move(60, offset); offset += btn_h; lbl_path.resize(60, btn_h); lineedit.resize(std::max((int)width - 60 - brd, 0), btn_h); offset += brd; listbox.move(brd, offset); listbox.resize(std::max((int)width - 1 - 2*brd, 0), std::max((int)height - btn_h - 2*brd - offset, 0)); btn_def.move(brd, height - btn_h - brd); btn_def.resize(btn_w, btn_h); btn_esc.move(width - (brd + btn_w + brd + btn_w), height - btn_h - brd); btn_esc.resize(btn_w, btn_h); btn_sel.move(width - (brd + btn_w), height - btn_h - brd); btn_sel.resize(btn_w, btn_h); } void FileBrowser::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.drawImageStretched(0,0, back, width(), height()); } void FileBrowser::listSelectionChanged() { changeDir(); } void FileBrowser::selectButtonClicked() { changeDir(); } void FileBrowser::setDefaultPath() { defaultPathChangedNotifier(dir.path()); } void FileBrowser::cancelButtonClicked() { cancel(); } void FileBrowser::handleKeyEvent() { listbox.clearSelectedValue(); std::string value = lineedit.getText(); if((value.size() > 1) && (value[0] == '@')) { DEBUG(filebrowser, "Selecting ref-file '%s'\n", value.c_str()); fileSelectNotifier(value); return; } dir.setPath(lineedit.getText()); changeDir(); } void FileBrowser::cancel() { has_filename = false; hide(); fileSelectCancelNotifier(); } void FileBrowser::select(const std::string& file) { has_filename = true; filename = file; hide(); } void FileBrowser::changeDir() { std::string value = listbox.selectedValue(); // if(!Directory::isDir(dir->path() + dir->seperator())) // { // return; // } listbox.clear(); INFO(filebrowser, "Changing path to '%s'\n", (dir.path() + dir.seperator() + value).c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(above_root && !value.empty()) { dir.setPath(value + dir.seperator()); value.clear(); above_root = false; } #endif if(value.empty() && !dir.isDir() && Directory::exists(dir.path())) { DEBUG(filebrowser, "Selecting file '%s'\n", dir.path().c_str()); fileSelectNotifier(dir.path()); return; } if(!value.empty() && dir.fileExists(value)) { std::string file = dir.path() + dir.seperator() + value; DEBUG(filebrowser, "Selecting file '%s'\n", file.c_str()); fileSelectNotifier(file); return; } std::vector items; #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(Directory::isRoot(dir.path()) && (value == "..")) { DEBUG(filebrowser, "Showing partitions...\n"); for(auto drive : dir.drives()) { ListBoxBasic::Item item; item.name = drive.name; item.value = drive.name; items.push_back(item); } above_root = true; } else #endif { if(!value.empty() && !dir.cd(value)) { DEBUG(filebrowser, "Error changing to '%s'\n", (dir.path() + dir.seperator() + value).c_str()); return; } Directory::EntryList entries = dir.entryList(); if(entries.empty()) { dir.cdUp(); entries = dir.entryList(); } DEBUG(filebrowser, "Setting path of lineedit to %s\n", dir.path().c_str()); lineedit.setText(dir.path()); for(auto entry : entries) { ListBoxBasic::Item item; item.name = entry; item.value = entry; items.push_back(item); } } listbox.addItems(items); } std::string FileBrowser::getFilename() const { return filename; } bool FileBrowser::hasFilename() const { return has_filename; } } // GUI:: drumgizmo-0.9.18.1/plugingui/button.cc0000644000076400007640000000411113331526613014543 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * button.cc * * Sun Oct 9 13:01:56 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "button.h" #include "painter.h" #include #include namespace GUI { Button::Button(Widget* parent) : ButtonBase(parent) { } Button::~Button() { } void Button::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); int padTop = 3; int padLeft = 0; int padTextTop = 3; int w = width(); int h = height(); if(w == 0 || h == 0) { return; } if (enabled) { switch(draw_state) { case State::Up: box_up.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_up); break; case State::Down: box_down.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_down); break; } } else { box_grey.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_grey); p.setColour(Colour(0.55)); } auto x = padLeft + (width() - font.textWidth(text)) / 2; auto y = padTop + padTextTop + font.textHeight(text); p.drawText(x, y, font, text, enabled); } } // GUI:: drumgizmo-0.9.18.1/plugingui/combobox.cc0000644000076400007640000001117413443403213015041 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * combobox.cc * * Sun Mar 10 19:04:50 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "combobox.h" #include "painter.h" #include "font.h" #include #define BORDER 10 namespace GUI { void ComboBox::listboxSelectHandler() { ButtonEvent buttonEvent; buttonEvent.direction = Direction::down; this->buttonEvent(&buttonEvent); } ComboBox::ComboBox(Widget* parent) : Widget(parent) , listbox(parent) { CONNECT(&listbox, selectionNotifier, this, &ComboBox::listboxSelectHandler); CONNECT(&listbox, clickNotifier, this, &ComboBox::listboxSelectHandler); listbox.hide(); } ComboBox::~ComboBox() { } void ComboBox::addItem(std::string name, std::string value) { listbox.addItem(name, value); } void ComboBox::clear() { listbox.clear(); redraw(); } bool ComboBox::selectItem(int index) { listbox.selectItem(index); redraw(); return true; } std::string ComboBox::selectedName() { return listbox.selectedName(); } std::string ComboBox::selectedValue() { return listbox.selectedValue(); } static void drawArrow(Painter &p, int x, int y, int w, int h) { p.drawLine(x, y, x+(w/2), y+h); p.drawLine(x+(w/2), y+h, x+w, y); y++; p.drawLine(x, y, x+(w/2), y+h); p.drawLine(x+(w/2), y+h, x+w, y); } void ComboBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); std::string _text = selectedName(); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w, h); p.drawImage(0, 0, box); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0/255.0f, 1.0f)); p.drawText(BORDER - 4 + 3, height()/2+5 + 1 + 1, font, _text); // p.setColour(Colour(1, 1, 1)); // p.drawText(BORDER - 4, (height()+font.textHeight()) / 2 + 1, font, _text); //int n = height() / 2; // p.drawLine(width() - n - 6, 1 + 6, width() - 1 - 6, 1 + 6); { int w = 10; int h = 6; drawArrow(p, width() - 6 - 4 - w, (height() - h) / 2, w, h); p.drawLine(width() - 6 - 4 - w - 4, 7, width() - 6 - 4 - w - 4, height() - 8); } } void ComboBox::scrollEvent(ScrollEvent* scrollEvent) { /* scroll_offset += e->delta; if(scroll_offset < 0) { scroll_offset = 0; } if(scroll_offset > (items.size() - 1)) { scroll_offset = (items.size() - 1); } redraw(); */ } void ComboBox::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::up) { return; } /* switch(keyEvent->keycode) { case Key::up: { selected--; if(selected < 0) { selected = 0; } if(selected < scroll_offset) { scroll_offset = selected; if(scroll_offset < 0) { scroll_offset = 0; } } } break; case Key::down: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); selected++; if(selected > (items.size() - 1)) { selected = (items.size() - 1); } if(selected > (scroll_offset + numitems - 1)) { scroll_offset = selected - numitems + 1; if(scroll_offset > (items.size() - 1)) { scroll_offset = (items.size() - 1); } } } break; case Key::home: selected = 0; break; case Key::end: selected = items.size() - 1; break; default: break; } redraw(); */ } void ComboBox::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction != Direction::down) { return; } if(!listbox.visible()) { listbox.resize(width() - 10, 100); listbox.move(x() + 5, y() + height() - 7); } else { valueChangedNotifier(listbox.selectedName(), listbox.selectedValue()); } listbox.setVisible(!listbox.visible()); } } // GUI:: drumgizmo-0.9.18.1/plugingui/verticalline.h0000644000076400007640000000266613331526614015571 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * verticalline.h * * Sat Apr 6 12:59:43 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "image.h" namespace GUI { class VerticalLine : public Widget { public: VerticalLine(Widget* parent); virtual ~VerticalLine() = default; protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: Image vline; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/nativewindow_cocoa.h0000644000076400007640000000503113551153106016753 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_cocoa.h * * Sun Dec 4 15:55:14 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "nativewindow.h" namespace GUI { class Window; class NativeWindowCocoa : public NativeWindow { public: NativeWindowCocoa(void* native_window, Window& window); ~NativeWindowCocoa(); // From NativeWindow: virtual void setFixedSize(std::size_t width, std::size_t height) override; virtual void setAlwaysOnTop(bool always_on_top) override; virtual void resize(std::size_t width, std::size_t height) override; virtual std::pair getSize() const override; virtual void move(int x, int y) override; virtual std::pair getPosition() const override; virtual void show() override; virtual void hide() override; virtual bool visible() const override; virtual void setCaption(const std::string &caption) override; virtual void redraw(const Rect& dirty_rect) override; virtual void grabMouse(bool grab) override; virtual EventQueue getEvents() override; virtual void* getNativeWindowHandle() const override; virtual Point translateToScreen(const Point& point) override; // Expose friend members of Window to ObjC++ implementation. class Window& getWindow(); class PixelBuffer& getWindowPixbuf(); void resized(); void pushBackEvent(std::shared_ptr event); private: void updateLayerOffset(); Window& window; std::unique_ptr priv; EventQueue event_queue; void* native_window{nullptr}; bool first{true}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/widget.h0000644000076400007640000000665213551153106014366 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * widget.h * * Sun Oct 9 13:01:44 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "guievent.h" #include "pixelbuffer.h" #include "notifier.h" #include "layout.h" #include "canvas.h" #include namespace GUI { struct Point { int x; int y; }; struct Size { std::size_t width; std::size_t height; }; class ImageCache; class Window; class Widget : public Listener , public LayoutItem , public Canvas { friend class Painter; public: Widget(Widget* parent); virtual ~Widget(); virtual void show(); virtual void hide(); void setVisible(bool visible); virtual bool visible() const; //! Mark widget dirty and shedule redraw on next window redraw. void redraw(); // From LayoutItem virtual void resize(std::size_t width, std::size_t height) override; virtual void move(int x, int y) override; virtual int x() const override; virtual int y() const override; virtual std::size_t width() const override; virtual std::size_t height() const override; Point position() const; // From Canvas PixelBufferAlpha& GetPixelBuffer() override; virtual bool isFocusable() { return false; } virtual bool catchMouse() { return false; } void addChild(Widget* widget); void removeChild(Widget* widget); void reparent(Widget* parent); virtual void repaintEvent(RepaintEvent* repaintEvent) {} virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) {} virtual void buttonEvent(ButtonEvent* buttonEvent) {} virtual void scrollEvent(ScrollEvent* scrollEvent) {} virtual void keyEvent(KeyEvent* keyEvent) {} virtual void mouseLeaveEvent() {} virtual void mouseEnterEvent() {} virtual ImageCache& getImageCache(); Widget* find(int x, int y); virtual Window* window(); std::vector getPixelBuffers(); bool hasKeyboardFocus(); Notifier sizeChangeNotifier; // (width, height) Notifier positionChangeNotifier; // (x, y) //! Translate x-coordinate from parent-space to window-space. virtual std::size_t translateToWindowX(); //! Translate y-coordinate from parent-space to window-space. virtual std::size_t translateToWindowY(); protected: friend class EventHandler; PixelBufferAlpha pixbuf{0,0}; std::vector children; Widget* parent = nullptr; Window* _window = nullptr; int _x{0}; int _y{0}; std::size_t _width{0}; std::size_t _height{0}; bool _visible{true}; bool dirty{true}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/eventhandler.h0000644000076400007640000000414613331526613015561 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * eventhandler.h * * Sun Oct 9 18:58:29 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "guievent.h" #include "nativewindow.h" namespace GUI { class Window; class Dialog; class EventHandler { public: EventHandler(NativeWindow& nativeWindow, Window& window); //! Process all events currently in the event queue. void processEvents(); //! Query if any events are currently in the event queue. bool hasEvent(); //! Query if the topmost event in the event queue is of type. bool queryNextEventType(EventType type); //! Get a single event from the event queue. //! \return A pointer to the event or nullptr if there are none. std::shared_ptr getNextEvent(); void registerDialog(Dialog* dialog); void unregisterDialog(Dialog* dialog); Notifier<> closeNotifier; private: Window& window; NativeWindow& nativeWindow; // Used to ignore mouse button release after a double click. bool lastWasDoubleClick; EventQueue events; std::list dialogs; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/progressbar.h0000644000076400007640000000452513331526613015434 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * progressbar.h * * Fri Mar 22 22:07:57 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "guievent.h" #include "painter.h" #include "texturedbox.h" namespace GUI { enum class ProgressBarState { Red, Green, Blue, Off }; class ProgressBar : public Widget { public: ProgressBar(Widget* parent); virtual ~ProgressBar(); void setTotal(std::size_t total); void setValue(std::size_t value); void setState(ProgressBarState state); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: ProgressBarState state{ProgressBarState::Blue}; TexturedBox bar_bg{getImageCache(), ":resources/progress.png", 0, 0, // atlas offset (x, y) 6, 1, 6, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_red{getImageCache(), ":resources/progress.png", 13, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_green{getImageCache(), ":resources/progress.png", 18, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_blue{getImageCache(), ":resources/progress.png", 23, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 std::size_t total{0}; std::size_t value{0}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/resource_data.cc0000644000076400007640000116540513544070076016072 00000000000000/* This file is autogenerated by rcgen. Do not modify! */ #include "resource_data.h" const rc_data_t rc_data[] = { { ":resources/bg.png", 1123, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\1\162\0\0\1\112\10\6\0\0\0\0\15\324" "\311\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\13\15\70\43\146\165\177\0\0\3\360\111" "\104\101\124\170\332\355\334\261\15\200\60\20\4\101\100\364" "\137\240\233\61\65\134\162\74\142\246\4\7\253\13\136\76" "\327\132\373\0\340\263\56\117\0\40\344\0\10\71\0\102" "\16\40\344\0\174\321\275\267\243\25\0\213\34\0\41\7" "\100\310\1\204\34\0\41\7\240\314\325\12\200\105\16\200" "\220\3\40\344\0\102\16\200\220\3\40\344\0\10\71\200" "\220\3\40\344\0\10\71\0\102\16\40\344\0\214\347\323" "\54\0\213\34\0\41\7\100\310\1\204\34\0\41\7\100" "\310\1\10\71\77\4\260\310\1\20\162\0\204\34\100\310" "\1\20\162\0\372\134\255\0\130\344\0\10\71\0\102\16" "\40\344\0\10\71\0\175\256\126\0\54\162\0\204\34\0" "\41\7\20\162\0\204\34\0\41\7\40\344\374\20\300\42" "\7\100\310\1\20\162\0\41\7\100\310\1\350\163\265\2" "\140\221\3\40\344\0\10\71\200\220\3\40\344\0\10\71" "\0\102\16\40\344\0\10\71\0\102\16\200\220\3\10\71" "\0\343\371\64\13\300\42\7\100\310\1\20\162\0\41\7" "\100\310\1\20\162\0\102\316\17\1\54\162\0\204\34\0" "\41\7\20\162\0\204\34\200\76\127\53\0\26\71\0\102" "\16\200\220\3\10\71\0\102\16\200\220\3\20\162\176\10" "\140\221\3\40\344\0\10\71\200\220\3\40\344\0\364\271" "\132\1\260\310\1\20\162\0\204\34\100\310\1\20\162\0" "\372\134\255\0\130\344\0\10\71\0\102\16\40\344\0\10" "\71\0\102\16\200\220\3\10\71\0\102\16\200\220\3\40" "\344\0\102\16\300\170\76\315\2\260\310\1\20\162\0\204" "\34\100\310\1\20\162\0\204\34\200\220\363\103\0\213\34" "\0\41\7\100\310\1\204\34\0\41\7\240\317\325\12\200" "\105\16\200\220\3\40\344\0\102\16\200\220\3\40\344\0" "\204\234\37\2\130\344\0\10\71\0\102\16\40\344\0\10" "\71\0\175\256\126\0\54\162\0\204\34\0\41\7\20\162" "\0\204\34\200\76\127\53\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\200\220\3\40\344\0\102\16\200\220\3" "\40\344\0\10\71\200\220\3\60\236\117\263\0\54\162\0" "\204\34\0\41\7\20\162\0\204\34\0\41\7\40\344\374" "\20\300\42\7\100\310\1\20\162\0\41\7\100\310\1\350" "\163\265\2\140\221\3\40\344\0\10\71\200\220\3\40\344" "\0\10\71\0\41\347\207\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\100\237\253\25\0\213\34\0\41\7\100" "\310\1\204\34\0\41\7\100\310\1\10\71\77\4\260\310" "\1\20\162\0\204\34\100\310\1\20\162\0\204\34\0\41" "\7\20\162\0\204\34\0\41\7\100\310\1\376\300\137\53" "\0\26\71\0\102\16\200\220\3\10\71\0\102\16\200\220" "\3\20\162\176\10\140\221\3\40\344\0\10\71\200\220\3" "\40\344\0\364\271\132\1\260\310\1\20\162\0\204\34\100" "\310\1\20\162\0\204\34\200\220\363\103\0\213\34\0\41" "\7\100\310\1\204\34\0\41\7\240\317\325\12\200\105\16" "\200\220\3\40\344\0\102\16\200\220\3\40\344\0\204\234" "\37\2\130\344\0\10\71\0\102\16\40\344\0\10\71\0" "\102\16\200\220\3\10\71\0\102\16\200\220\3\40\344\0" "\177\340\257\25\0\213\34\0\41\7\100\310\1\204\34\0" "\41\7\100\310\1\10\71\77\4\260\310\1\20\162\0\204" "\34\100\310\1\20\162\0\372\134\255\0\130\344\0\10\71" "\0\102\16\40\344\0\10\71\0\102\16\100\310\371\41\200" "\105\16\200\220\3\40\344\0\102\16\200\220\3\320\347\152" "\5\300\42\7\100\310\1\20\162\0\41\7\100\310\1\20" "\162\0\102\316\17\1\54\162\0\204\34\0\41\7\20\162" "\0\204\34\200\76\127\53\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\200\220\3\40\344\0\102\16\200\220\3" "\40\344\0\10\71\200\220\3\60\236\117\263\0\54\162\0" "\204\34\0\41\7\20\162\0\204\34\200\76\127\53\0\26" "\71\0\102\16\200\220\3\10\71\0\102\16\200\220\3\20" "\162\176\10\140\221\3\40\344\0\10\71\200\220\3\40\344" "\0\364\271\132\1\260\310\1\20\162\0\204\34\100\310\1" "\20\162\0\204\34\200\220\363\103\0\213\34\200\67\75\173" "\113\211\365\123\166\223\131\0\0\0\0\111\105\116\104\256" "\102\140\202" }, { ":resources/bypass_button.png", 2146, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\140\0\0\0\20\10\2\0\0\0\146\330\355" "\256\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\7\364\111\104\101\124\170\332" "\264\127\113\157\33\107\22\356\156\16\337\57\211\242\136\224" "\114\156\162\120\244\215\251\134\144\73\200\1\1\76\372\340" "\333\236\27\310\177\310\376\214\354\161\163\61\20\337\367\144" "\350\340\203\341\10\10\154\54\254\50\221\142\46\261\127\62" "\5\275\42\211\244\44\122\224\50\221\63\335\63\371\272\173" "\330\236\310\12\240\4\310\150\320\352\256\372\130\323\125\135" "\125\135\105\237\76\175\72\62\62\102\256\367\324\353\365\345" "\345\345\363\363\363\153\342\23\211\304\334\334\334\137\52\277" "\120\50\144\62\231\153\342\333\355\366\326\326\226\155\333\327" "\304\107\42\21\372\345\177\276\114\45\23\224\120\112\74\220" "\230\142\370\13\217\172\152\360\344\102\122\316\72\162\353\311" "\144\2\20\20\74\375\57\200\127\77\366\260\120\63\322\121" "\370\114\66\315\102\41\146\121\214\41\213\21\106\31\123\222" "\135\274\236\53\204\340\302\343\256\53\334\366\311\351\37\225" "\177\326\71\213\106\243\152\317\324\214\346\321\133\367\25\40" "\244\327\353\141\324\370\353\74\300\133\2\373\162\75\106\134" "\45\133\155\306\363\376\373\331\147\140\377\343\253\107\114\152" "\241\224\301\127\50\201\72\370\230\160\101\220\170\322\307\77" "\122\370\177\176\365\110\113\320\366\244\175\274\307\50\11\21" "\32\206\215\324\113\151\173\112\32\42\275\226\46\60\213\372" "\215\360\244\332\277\47\377\160\256\11\174\156\71\167\265\174" "\154\215\122\143\5\74\117\236\74\301\170\377\376\375\240\165" "\214\261\202\110\375\54\54\54\140\174\360\340\301\373\66\142" "\56\314\43\4\66\105\204\240\134\354\74\177\16\112\234\20" "\274\304\25\333\57\136\20\301\61\361\134\171\302\134\300\232" "\230\50\253\12\271\336\170\376\34\147\217\23\301\13\122\365" "\305\13\370\203\204\372\174\71\221\7\313\30\13\61\270\17" "\315\303\122\154\160\50\207\67\24\146\144\204\262\60\143\240" "\207\30\264\274\54\37\22\206\35\210\33\54\344\360\202\344" "\214\162\315\63\362\275\300\203\17\355\355\355\141\22\122\17" "\46\130\32\243\110\323\53\274\33\170\166\166\166\60\152\274" "\131\232\7\170\206\317\170\122\177\70\71\377\371\361\343\225" "\207\17\141\51\246\143\115\10\54\101\4\213\10\151\107\371" "\13\271\101\65\343\174\365\361\343\377\75\174\210\251\66\66" "\46\130\202\10\226\2\371\170\2\335\55\102\103\204\217\12" "\161\303\243\176\220\341\217\210\111\17\104\260\130\10\121\356" "\375\106\276\20\27\23\335\336\214\23\224\337\233\166\100\354" "\203\24\320\165\265\316\30\327\327\327\53\225\112\320\145\260" "\4\61\150\104\215\324\223\265\265\265\127\257\136\5\361\130" "\202\150\60\170\54\171\340\152\7\277\54\55\155\57\54\144" "\262\131\54\165\34\143\7\130\202\230\310\347\307\157\337\166" "\25\205\364\307\355\245\245\267\12\57\372\12\160\205\7\61" "\225\317\27\157\337\66\110\151\154\110\34\242\311\251\44\343" "\314\46\75\246\162\10\107\272\211\45\335\51\367\334\356\170" "\7\36\140\101\371\136\201\244\76\115\223\36\271\20\35\253" "\57\77\225\114\221\117\311\171\257\103\367\374\35\152\145\60" "\337\337\337\337\334\334\214\307\343\332\147\245\101\21\12\361" "\270\46\216\215\215\151\212\31\201\337\330\330\210\305\142\101" "\74\226\40\42\367\217\217\217\153\212\14\61\231\43\205\250" "\257\256\42\254\46\356\336\15\236\30\226\40\66\126\126\245" "\167\12\337\267\71\227\363\75\205\57\336\275\153\14\204\111" "\121\341\367\127\126\125\346\365\361\320\0\6\141\103\241\164" "\74\355\66\340\344\52\277\310\254\341\142\11\42\130\0\310" "\224\35\220\117\13\54\233\315\362\267\116\120\76\226\40\202" "\145\344\233\300\151\64\32\10\23\50\26\364\10\54\101\4" "\313\104\226\306\143\122\253\325\300\232\230\230\10\32\10\113" "\20\301\322\361\45\15\244\254\203\157\361\166\265\352\40\21" "\316\316\142\65\112\10\136\316\171\356\223\131\20\117\66\252" "\52\152\44\116\310\44\40\361\255\152\25\267\145\136\341\13" "\204\24\24\176\370\223\131\20\233\12\57\372\170\271\67\317" "\265\262\226\55\154\273\336\303\174\74\61\206\27\37\266\33" "\75\20\301\322\351\66\50\337\32\261\272\116\367\142\375\34" "\253\17\163\37\340\205\374\356\333\163\20\301\62\362\115\210" "\341\12\307\44\237\317\153\107\320\256\201\45\210\140\31\353" "\230\361\344\344\104\3\56\341\15\313\17\61\256\76\25\122" "\161\40\203\110\132\216\117\175\361\205\366\40\231\101\24\113" "\250\163\304\216\264\253\373\104\205\207\204\217\25\136\153\247" "\131\32\243\361\312\371\4\62\264\366\20\214\353\137\257\371" "\207\54\244\333\200\45\21\330\110\100\276\25\261\144\222\226" "\366\22\337\375\173\331\307\73\330\225\13\226\221\257\65\67" "\267\273\136\336\272\165\313\314\15\135\333\305\204\130\20\177" "\347\316\235\367\361\176\210\51\167\26\216\340\351\122\11\244" "\332\312\212\360\67\53\37\54\345\175\134\52\71\232\304\175" "\72\124\311\226\112\330\324\336\157\361\130\202\10\26\177\17" "\317\117\70\56\62\222\41\132\47\35\176\136\32\351\231\361" "\66\277\2\137\167\102\341\20\31\43\101\371\336\50\1\221" "\67\34\203\327\201\40\323\245\52\27\121\152\6\257\41\54" "\145\41\226\311\30\330\225\170\103\17\342\365\143\251\300\341" "\314\43\3\63\63\335\112\245\366\362\45\256\325\341\162\31" "\270\303\37\53\207\113\337\342\376\6\113\250\43\23\312\256" "\370\5\302\174\150\146\346\274\122\331\177\371\322\161\335\261" "\162\31\166\71\370\261\322\130\372\26\71\150\110\341\111\37" "\357\70\66\11\321\136\275\227\57\346\243\205\230\335\153\273" "\155\131\363\321\14\115\116\104\243\54\172\124\73\164\154\7" "\117\120\176\157\253\67\66\233\110\225\323\207\235\206\273\357" "\112\374\70\33\234\115\45\103\211\243\315\206\221\257\375\2" "\36\64\60\60\320\154\66\165\372\100\244\200\173\164\164\4" "\205\65\313\4\227\361\216\134\56\327\152\265\16\16\16\140" "\205\341\341\141\251\357\341\41\360\310\101\140\231\242\311\222" "\356\303\345\275\236\276\171\223\64\32\27\213\213\265\147\317" "\176\171\366\114\26\332\52\23\305\357\335\3\13\56\146\156" "\61\256\66\67\160\363\46\22\143\147\161\21\340\35\205\207" "\51\47\160\61\335\273\7\26\224\64\367\221\335\165\220\222" "\133\353\115\334\101\305\231\33\265\114\275\163\162\46\53\346" "\154\152\324\32\331\175\275\333\134\157\72\75\307\101\72\12" "\310\157\376\160\234\311\146\376\76\77\263\71\232\150\35\264" "\344\27\307\6\376\26\55\125\277\251\36\377\160\154\322\166" "\120\141\364\20\320\20\265\317\356\356\256\214\164\306\120\64" "\343\376\2\53\210\14\342\141\320\40\36\231\10\275\13\130" "\6\251\14\244\12\37\20\22\363\363\221\301\301\314\233\67" "\336\316\216\54\125\157\24\351\364\264\125\56\333\256\254\155" "\105\340\232\327\115\100\146\176\76\66\70\70\370\346\215\253" "\360\354\106\221\115\117\107\312\145\370\40\15\50\140\167\155" "\335\124\154\175\277\145\267\355\321\311\321\311\41\130\222\264" "\152\255\215\335\215\375\267\373\160\37\336\165\234\256\163\111" "\376\306\142\325\76\262\47\77\232\374\250\70\45\117\270\172" "\370\372\377\257\167\137\355\150\256\106\102\53\171\345\251\34" "\204\246\17\26\71\73\73\273\270\270\300\341\343\266\116\245" "\122\331\176\41\142\212\111\355\112\370\211\301\353\356\317\340" "\115\122\223\260\317\77\377\127\52\36\103\141\202\366\210\171" "\375\136\214\370\315\27\121\65\277\253\132\15\174\4\137\6" "\63\36\217\111\210\352\211\256\172\124\117\244\72\251\13\205" "\37\30\312\132\221\260\25\263\254\60\136\24\324\262\116\224" "\362\165\165\16\347\264\271\200\7\331\274\165\324\372\243\362" "\21\21\150\51\165\27\146\122\265\121\357\122\223\241\333\324" "\160\70\174\315\136\14\121\157\311\133\10\333\204\201\124\223" "\303\250\157\31\275\101\24\60\332\354\102\65\152\110\144\50" "\137\240\226\157\103\377\50\165\127\251\333\113\131\336\350\116" "\211\366\361\216\155\253\104\310\271\145\131\221\220\54\232\31" "\125\205\263\53\233\34\130\307\101\162\166\135\351\100\177\102" "\76\325\7\256\255\160\251\131\275\144\46\23\70\357\34\44" "\360\303\367\173\64\31\142\355\366\151\243\336\320\247\242\276" "\117\374\121\375\51\73\275\333\133\64\32\231\233\273\125\234" "\234\124\236\206\42\23\161\113\374\121\375\201\316\134\246\112" "\6\111\335\336\336\132\136\376\356\57\225\377\323\117\77\237" "\236\236\32\15\203\343\73\227\353\23\161\100\245\122\11\51" "\346\112\177\321\230\40\345\370\370\370\127\1\6\0\226\216" "\161\33\174\205\303\132\0\0\0\0\111\105\116\104\256\102" "\140\202" }, { ":resources/font.png", 10827, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\7\135\0\0\0\20\10\6\0\0\0\135\214\146" "\362\0\0\0\11\160\110\131\163\0\0\16\304\0\0\16" "\304\1\225\53\16\33\0\0\40\0\111\104\101\124\170\234" "\355\235\171\364\135\125\225\347\77\277\220\164\244\222\212\61" "\222\230\212\241\142\14\105\112\245\54\151\225\106\27\315\212" "\24\5\313\201\106\12\225\5\55\266\245\250\215\226\224\55" "\113\104\50\64\42\112\251\5\132\245\245\122\22\324\202\122" "\24\107\304\221\166\142\24\54\73\316\212\20\10\140\200\200" "\214\11\146\370\15\257\377\370\356\363\273\347\236\167\316\35" "\336\273\357\375\136\222\273\327\172\353\275\167\366\76\373\354" "\63\355\263\367\31\41\1\35\72\235\26\327\342\132\334\160" "\160\356\167\214\276\210\107\23\162\364\103\137\127\356\176\145" "\254\222\136\212\117\31\377\136\312\176\117\301\227\225\155\125" "\176\375\362\250\333\216\173\211\327\104\36\206\111\323\204\176" "\10\151\232\250\203\246\344\256\112\73\210\162\30\26\257\141" "\322\64\21\247\116\334\101\321\124\325\363\115\215\71\375\362" "\33\46\256\137\176\275\216\335\115\365\351\141\341\6\115\137" "\5\67\214\64\352\332\113\375\366\331\26\327\342\132\334\314" "\343\232\262\333\7\351\267\225\361\252\153\237\64\75\46\206" "\64\115\311\123\205\146\20\161\7\145\37\125\251\273\141\214" "\237\303\240\257\22\47\202\337\4\234\124\203\327\153\54\116" "\21\355\7\200\216\175\316\257\300\167\55\260\5\370\2\60" "\131\101\206\50\14\212\266\227\270\1\115\264\214\43\174\272" "\312\266\112\271\326\220\147\132\16\373\77\235\236\375\357\342" "\337\217\356\13\350\326\22\251\343\252\355\261\112\131\105\350" "\222\355\260\212\154\211\164\243\320\204\236\30\321\66\123\47" "\255\252\174\152\321\354\52\270\121\220\241\16\256\352\70\330" "\213\16\230\351\274\65\201\33\105\231\206\136\6\243\44\114" "\213\153\161\273\73\256\216\343\322\264\34\375\320\327\225\173" "\30\16\136\257\16\154\323\3\336\356\204\57\53\333\252\374" "\372\345\321\253\3\327\264\223\70\112\64\115\350\207\220\146" "\0\216\115\317\174\252\322\16\242\34\206\305\153\230\64\115" "\304\251\23\167\120\64\125\365\174\323\216\300\250\332\20\115" "\362\353\165\354\156\252\117\17\13\67\150\372\52\270\141\244" "\121\327\136\352\267\317\266\270\26\327\342\146\36\327\224\335" "\76\110\277\255\214\127\135\373\244\351\61\61\244\151\112\236" "\52\64\203\210\73\50\373\250\112\335\15\143\374\34\6\175" "\225\70\21\174\164\361\252\200\127\331\142\320\21\300\243\300" "\331\366\171\324\302\122\174\147\1\123\300\5\300\375\300\31" "\45\62\164\202\357\42\332\257\3\23\366\135\106\133\31\172" "\150\377\125\26\10\41\122\266\125\312\65\340\23\55\37\243" "\11\27\131\303\105\330\56\376\26\236\343\331\203\37\232\254" "\343\252\355\261\112\131\5\164\205\355\260\212\154\211\164\213" "\312\67\12\75\224\27\214\116\233\251\232\126\22\366\24\273" "\175\24\144\250\203\253\72\16\366\142\377\314\164\336\232\300" "\215\242\114\103\57\203\121\22\246\305\265\270\335\35\127\307" "\161\151\132\216\176\350\353\312\75\14\7\257\127\7\266\351" "\1\157\167\302\227\225\155\125\176\375\362\350\325\201\253\23" "\157\30\306\155\223\64\115\350\207\220\146\0\216\115\317\174" "\252\322\16\242\34\206\305\153\230\64\115\304\251\23\167\120" "\64\125\365\174\323\216\300\250\332\20\115\362\353\165\354\156" "\252\117\17\13\67\150\372\52\270\141\244\121\327\136\352\267" "\317\266\270\26\327\342\146\36\127\242\227\147\125\341\325\217" "\34\51\171\352\360\252\153\237\64\75\46\206\64\75\312\123" "\364\351\111\346\62\232\141\333\107\125\352\156\30\343\347\60" "\350\253\304\151\332\277\31\161\332\11\340\55\366\335\63\337" "\136\342\216\72\115\257\176\113\325\364\172\225\153\167\244\33" "\166\171\355\156\64\63\210\373\26\322\35\227\127\211\67\3" "\362\365\205\33\244\16\230\351\274\65\201\33\105\231\6\205" "\233\225\102\266\320\102\13\103\207\116\342\333\207\247\1\177" "\260\337\373\1\333\2\374\131\150\67\131\7\355\266\72\51" "\202\233\2\316\364\302\137\214\166\236\305\340\4\140\253\245" "\363\352\22\271\1\376\16\330\350\375\277\335\302\142\60\236" "\10\157\22\326\0\217\170\377\227\2\267\240\1\176\34\370" "\5\52\107\37\366\41\53\143\200\303\120\236\306\201\235\300" "\172\140\271\207\77\0\370\215\341\46\200\137\1\117\111\310" "\363\52\272\353\165\77\22\316\270\301\102\340\153\46\323\44" "\160\17\360\2\17\37\213\73\345\341\127\3\277\64\371\166" "\2\77\3\126\171\370\305\300\217\14\267\35\370\41\260\42" "\41\377\260\140\25\160\33\52\317\73\201\247\107\150\146\1" "\247\2\267\242\266\76\211\312\150\75\160\114\11\377\323\120" "\71\235\232\300\207\345\71\156\351\34\32\320\75\17\330\140" "\162\76\12\374\133\11\237\260\357\305\150\142\155\240\14\17" "\371\276\337\101\345\361\206\110\132\251\374\66\101\263\16\370" "\162\5\72\7\367\3\357\115\340\336\107\136\57\165\200\367" "\227\310\5\360\54\324\37\135\177\375\31\352\243\141\234\260" "\176\327\223\357\27\0\7\42\35\341\367\235\62\136\23\250" "\255\370\72\140\51\160\55\352\137\123\350\212\245\57\2\163" "\12\370\244\332\101\14\374\360\267\2\73\200\5\11\332\171" "\110\237\237\343\205\75\2\34\34\320\235\141\174\117\17\302" "\17\46\257\123\67\240\376\344\303\337\43\75\353\340\116\272" "\307\217\127\133\270\17\261\274\377\277\10\336\301\26\244\343" "\103\210\365\217\176\40\171\65\134\42\355\46\240\16\37\327" "\367\177\335\0\357\20\127\245\375\225\341\166\145\130\75\323" "\2\64\10\357\46\157\33\270\72\233\62\134\13\55\264\260" "\147\300\46\144\337\370\260\6\371\27\223\300\357\201\243\153" "\360\72\45\10\73\205\374\11\42\177\174\170\77\262\247\376" "\0\274\51\210\227\362\177\103\373\266\310\246\176\13\262\161" "\306\201\53\52\346\241\56\324\221\147\254\340\343\340\315\46" "\363\66\144\77\325\201\123\221\155\71\1\174\333\13\177\203" "\361\233\0\276\353\205\47\117\135\106\340\100\340\146\124\137" "\105\376\107\12\316\42\177\225\350\221\300\146\13\333\14\34" "\336\43\37\37\176\212\374\205\52\364\163\200\273\321\334\206" "\17\251\262\52\112\243\16\224\371\234\273\62\355\243\250\154" "\36\256\100\13\232\363\230\244\232\317\3\365\375\354\72\76" "\364\40\150\210\304\11\241\212\57\227\112\63\65\217\320\224" "\177\274\53\320\25\301\201\310\27\162\74\276\143\174\375\166" "\63\350\271\220\272\64\125\174\344\72\72\327\215\115\261\266" "\342\240\310\257\115\215\21\105\127\232\257\45\161\175\164\11" "\34\16\274\15\170\176\215\70\275\100\231\37\337\113\236\253" "\246\25\362\256\313\363\4\64\306\137\200\332\104\70\127\265" "\226\164\331\17\42\337\105\351\15\22\206\131\207\105\74\173" "\232\357\30\103\306\335\22\57\154\22\170\173\207\116\147\214" "\261\67\265\270\26\327\342\6\212\33\3\260\337\164\350\60" "\306\330\44\60\33\31\230\263\175\72\144\10\237\4\354\217" "\234\325\67\142\312\327\350\72\150\300\75\7\170\73\162\76" "\27\4\270\131\300\73\311\166\72\157\100\306\310\364\342\207" "\227\346\203\300\173\54\370\14\340\161\136\76\34\335\144\207" "\316\136\106\377\173\144\50\174\305\160\57\106\13\61\373\170" "\364\167\240\101\343\57\201\377\4\126\2\117\12\362\31\5" "\107\23\243\115\340\56\1\226\1\207\131\370\227\114\226\277" "\261\374\377\7\62\312\136\150\370\77\41\133\164\164\274\36" "\2\76\1\234\13\74\306\342\74\26\370\113\303\157\6\256" "\104\213\35\0\237\104\13\56\373\106\344\334\0\74\31\163" "\266\15\377\132\64\200\75\61\221\337\33\321\344\304\233\321" "\102\344\171\46\377\343\22\145\166\241\361\177\265\341\157\7" "\276\202\352\36\340\37\321\325\47\373\31\376\133\250\216\177" "\204\352\367\43\300\63\175\371\213\312\75\126\7\51\174\25" "\32\303\377\47\252\207\263\201\317\241\105\356\77\363\342\356" "\15\334\10\374\61\360\357\300\227\120\331\76\3\365\213\27" "\241\166\167\162\42\315\133\120\333\176\34\301\242\273\353\213" "\144\23\42\263\121\335\134\150\345\262\310\150\236\212\26\204" "\76\214\34\316\3\201\317\2\227\2\47\107\370\200\352\140" "\55\352\233\357\116\320\304\312\43\111\143\370\267\33\337\265" "\300\273\14\365\136\344\60\277\16\130\127\302\247\103\326\336" "\235\36\12\351\162\64\21\76\353\200\307\243\115\34\125\345" "\6\351\214\3\201\337\171\350\175\221\263\265\60\110\363\41" "\340\317\54\116\114\256\47\1\137\105\345\374\75\264\360\370" "\12\340\130\340\50\340\256\204\134\113\121\235\254\1\236\152" "\64\117\104\216\333\47\200\217\42\75\161\226\361\132\15\334" "\223\340\265\4\31\306\373\3\117\63\232\137\3\77\107\365" "\261\31\265\347\213\214\347\221\221\366\331\11\313\255\106\375" "\215\241\305\352\113\351\136\164\7\31\237\257\102\165\65\341" "\351\200\115\344\235\276\153\321\46\237\137\0\207\170\341\353" "\220\176\74\334\342\76\27\370\206\345\151\53\352\57\167\241" "\11\333\353\215\346\177\42\103\167\251\307\347\156\53\217\117" "\47\164\302\42\340\46\340\57\210\224\265\375\377\76\152\67" "\47\6\345\64\26\51\223\143\201\317\3\57\101\216\102\35" "\175\65\255\243\213\342\24\325\121\205\170\105\375\255\54\336" "\24\152\233\37\4\36\355\127\306\202\361\265\50\136\112\157" "\104\241\207\362\150\34\127\221\176\7\60\167\120\162\65\305" "\247\42\156\33\232\364\276\52\250\263\147\243\276\361\244\252" "\362\216\240\55\335\342\132\134\213\363\174\313\2\175\276\32" "\155\62\373\43\310\365\367\315\350\212\320\377\203\46\101\137" "\113\332\317\300\213\373\132\344\127\74\1\363\133\201\373\220" "\377\171\141\144\174\330\11\274\314\350\317\107\33\301\212\164" "\164\314\276\165\20\263\251\335\142\356\355\310\66\331\253\137" "\375\34\224\145\135\171\252\360\336\216\371\53\310\336\334\273" "\106\334\255\150\156\340\167\330\146\276\116\346\273\236\213\154" "\255\13\201\271\26\176\27\360\16\262\272\51\52\227\337\221" "\337\144\74\155\133\105\312\45\126\167\67\2\7\221\331\62" "\367\1\227\241\205\200\163\221\57\373\204\12\162\114\363\11" "\320\357\106\266\346\1\25\351\277\212\354\245\243\3\372\256" "\262\252\220\106\35\137\270\314\347\334\123\150\101\175\362\21" "\340\70\42\276\116\20\267\27\77\73\306\147\230\64\241\377" "\61\35\47\304\247\342\25\321\222\236\107\150\312\77\36\165" "\272\242\366\262\4\371\215\37\6\76\144\74\336\211\26\255" "\216\3\56\53\251\307\262\171\216\101\321\124\361\221\123\174" "\374\374\207\143\323\131\170\363\275\101\371\275\6\157\356\61" "\300\155\302\306\10\17\167\44\232\153\73\317\150\116\5\216" "\351\320\371\326\30\143\173\241\261\377\343\310\307\76\17\170" "\117\244\15\307\332\367\167\321\201\206\157\240\172\256\345\63" "\225\321\173\270\134\176\33\310\163\121\276\302\71\203\160\314" "\375\103\202\47\76\77\117\276\375\321\206\252\25\300\277\140" "\33\263\14\137\126\366\115\347\273\237\272\116\302\10\326\141" "\21\117\210\364\305\362\62\320\344\330\147\275\70\377\213\154" "\122\371\356\26\327\342\132\334\100\161\176\7\167\116\351\157" "\221\123\174\23\260\72\350\374\137\101\16\303\61\150\342\370" "\277\220\37\244\40\350\350\21\34\36\376\245\150\221\155\261" "\47\237\257\70\46\221\321\62\7\31\162\263\43\164\33\72" "\164\126\215\61\166\42\360\117\230\321\340\361\270\7\55\30" "\72\303\341\317\321\102\306\263\321\102\337\53\201\337\106\24" "\156\152\341\241\316\242\353\264\262\264\360\315\150\321\332\355" "\176\76\30\71\200\156\201\361\76\253\237\257\223\236\360\136" "\206\234\371\71\11\374\122\113\67\164\364\137\6\374\3\132" "\104\360\353\175\35\162\124\326\4\174\174\147\360\122\62\207" "\274\53\317\136\320\11\310\20\377\163\17\77\205\234\41\167" "\72\155\41\126\227\206\337\206\115\276\170\362\377\316\303\227" "\55\272\236\204\214\272\302\5\211\100\346\151\3\44\201\337" "\201\372\300\355\310\341\337\110\176\3\302\65\300\17\110\357" "\340\73\14\31\160\177\113\367\242\316\63\200\353\321\204\317" "\146\340\71\300\117\202\364\241\173\100\135\210\46\222\134\275" "\137\145\377\137\342\321\234\0\374\63\260\270\200\317\264\21" "\334\204\243\147\170\267\241\42\74\255\364\176\64\161\366\330" "\72\16\102\47\276\170\122\344\104\344\26\134\153\310\15\72" "\31\373\0\371\5\277\213\120\375\274\40\110\363\343\150\101" "\366\371\71\126\31\315\225\300\247\321\306\7\37\346\240\205" "\320\127\25\310\265\300\344\160\355\354\12\264\331\341\270\200" "\356\42\244\57\217\52\340\265\4\351\200\71\136\37\134\212" "\332\213\203\247\240\166\67\67\322\157\372\135\164\75\3\235" "\120\135\110\376\144\333\54\313\343\277\142\175\307\342\34\207" "\46\64\236\344\321\76\202\332\323\231\344\117\315\156\104\106" "\357\47\275\364\56\107\106\370\337\30\357\345\330\244\226\107" "\263\1\370\30\152\223\157\6\136\217\115\320\44\364\306\327" "\121\377\367\67\116\114\347\77\164\154\202\162\212\71\55\67" "\242\166\260\23\370\157\5\351\6\5\233\247\251\340\30\114" "\313\130\304\247\2\256\316\242\153\152\2\247\47\31\13\306" "\327\242\170\51\275\21\205\36\312\243\161\134\335\262\35\204" "\134\115\361\251\221\227\275\200\251\110\235\215\143\47\357\153" "\364\213\121\262\245\133\134\213\153\161\236\157\131\240\317\317" "\107\33\251\16\202\56\177\57\264\123\252\352\226\115\310\117" "\71\25\155\376\171\51\371\311\134\137\327\154\105\23\342\157" "\53\113\47\260\157\335\206\341\61\144\327\334\211\154\316\243" "\310\333\324\37\103\266\343\243\310\316\252\72\216\46\41\50" "\113\337\336\356\344\310\202\215\315\65\170\157\107\266\72\150" "\23\164\154\321\65\351\23\243\215\250\377\27\370\55\360\267" "\101\334\161\344\347\236\320\203\75\63\211\306\14\7\321\61" "\261\144\174\365\155\231\51\344\53\74\204\66\326\335\107\365" "\105\361\60\377\7\242\11\373\277\300\333\264\131\100\377\162" "\144\347\256\300\273\151\313\350\237\214\66\65\117\227\225\241" "\237\211\312\65\225\106\24\172\360\71\367\4\132\220\157\164" "\33\72\54\160\17\221\66\35\304\355\325\317\16\371\14\223" "\46\154\363\323\161\52\330\354\125\26\135\41\76\217\320\224" "\177\74\352\164\105\355\305\235\274\363\375\366\37\240\303\16" "\267\1\207\226\324\343\114\55\272\126\361\221\303\370\343\350" "\4\376\113\200\333\43\143\23\150\234\377\42\266\71\153\24" "\374\256\176\161\243\40\103\35\134\325\61\267\144\14\135\217" "\306\272\45\250\177\57\45\333\64\77\222\371\256\212\53\241" "\231\315\150\346\23\172\230\347\201\374\125\240\323\377\15\331" "\342\132\134\213\33\54\16\357\167\307\17\13\161\45\37\237" "\156\215\13\13\170\270\323\60\147\222\115\304\337\106\344\372" "\30\117\216\273\221\201\173\31\132\4\216\322\331\367\125\170" "\306\222\307\343\123\206\163\141\317\100\306\371\101\366\375\254" "\260\74\246\131\24\247\127\206\333\227\340\224\212\375\367\167" "\206\57\102\127\66\70\374\51\323\354\22\351\40\147\141\153" "\4\77\13\355\106\372\24\272\316\67\304\337\214\46\10\302" "\172\277\236\304\165\7\206\37\47\161\315\127\300\177\36\132" "\114\175\172\200\337\204\46\101\346\33\315\371\26\346\360\73" "\261\223\310\6\373\143\355\43\150\227\141\373\74\311\370\154" "\102\273\217\252\264\125\107\363\32\57\156\356\252\210\110\231" "\237\214\55\30\33\356\105\250\314\40\333\261\77\216\352\366" "\122\254\76\321\102\340\115\21\236\227\43\47\32\264\163\354" "\53\221\364\303\172\135\216\26\7\77\343\321\74\202\256\75" "\12\141\226\107\23\153\77\220\57\213\24\115\112\236\72\370" "\131\330\202\131\35\171\22\355\76\45\363\72\362\127\12\327" "\225\173\15\332\45\355\303\3\310\260\14\323\234\203\34\160" "\377\52\134\237\346\141\140\145\42\111\277\315\307\344\132\114" "\136\27\74\110\274\176\17\162\362\226\360\332\351\321\74\204" "\26\21\347\104\150\353\350\276\52\365\7\252\367\373\311\116" "\337\73\70\25\225\321\354\54\142\247\143\364\133\220\76\4" "\115\64\75\152\277\267\330\177\14\277\315\305\367\322\133\200" "\362\370\72\113\167\172\221\326\243\71\312\160\356\24\314\121" "\21\32\7\7\43\135\66\47\240\11\165\347\134\324\357\227" "\7\341\141\231\54\106\72\173\221\175\57\116\244\333\5\41" "\215\375\77\36\215\135\23\250\315\234\27\310\170\64\52\347" "\333\321\70\344\160\313\221\116\232\104\155\350\245\36\156\25" "\232\104\36\107\23\322\276\374\113\55\336\70\232\124\135\22" "\244\27\53\233\225\250\315\157\107\223\270\141\137\72\27\265" "\321\351\353\247\22\375\77\325\357\57\103\33\133\272\306\11" "\164\232\172\207\175\116\107\273\162\335\325\332\147\6\374\76" "\202\352\44\304\255\100\223\20\343\350\44\305\276\101\274\17" "\131\371\337\205\306\54\207\133\155\371\336\206\116\373\207\362" "\137\214\135\133\156\141\356\52\256\51\244\167\136\225\52\333" "\104\37\364\161\133\200\347\132\370\163\354\277\303\155\305\154" "\35\324\366\73\144\23\273\207\4\264\267\221\75\313\360\146" "\313\277\317\347\140\57\336\303\11\171\335\30\345\367\361\260" "\215\164\202\376\342\217\135\205\60\202\266\164\213\153\161\55" "\56\303\305\372\270\177\355\340\357\261\161\335\303\157\102\33" "\266\162\140\370\313\221\256\166\327\173\376\32\333\124\146\144" "\257\101\233\324\126\40\335\173\122\20\337\311\361\64\344\127" "\116\242\215\303\205\157\313\6\72\327\277\52\161\61\32\177" "\356\231\46\315\350\47\220\375\170\132\20\36\205\32\176\113" "\154\14\360\177\273\362\15\345\51\4\243\161\127\42\157\103" "\72\77\26\67\125\76\253\221\175\160\152\20\276\25\325\303" "\361\330\42\143\302\236\51\32\323\356\240\333\306\10\307\221" "\242\272\13\371\335\213\116\362\56\104\13\51\233\123\361\123" "\174\14\146\43\173\351\65\25\351\227\240\361\375\71\11\372" "\255\250\334\247\313\312\322\370\35\221\353\14\143\66\122\1" "\276\212\317\271\47\320\202\174\350\157\345\110\22\140\161\373" "\361\263\231\41\32\310\267\371\256\376\22\362\211\205\247\150" "\163\321\362\151\64\345\37\217\72\335\225\310\307\0\335\352" "\167\67\266\111\5\345\337\157\57\47\243\47\277\216\40\157" "\367\127\55\323\141\321\100\271\217\34\362\131\216\16\256\374" "\274\200\346\172\344\53\371\174\212\374\327\121\302\275\10\325" "\273\273\46\372\7\350\100\305\275\26\266\1\273\236\336\350" "\213\374\353\42\37\172\20\70\110\264\201\36\165\200\263\55" "\266\30\376\354\200\167\57\176\364\260\161\371\354\166\5\164" "\72\150\223\301\106\124\337\237\100\67\36\126\261\123\6\201" "\53\363\265\277\153\371\74\63\213\134\32\157\244\234\204\26" "\327\342\366\64\34\336\357\216\37\26\340\34\154\47\273\276" "\145\33\162\140\175\272\357\242\211\316\16\162\150\346\172\70" "\177\162\361\54\64\341\267\71\114\57\110\363\337\54\315\273" "\60\345\31\243\263\357\334\33\100\36\217\143\14\27\123\274" "\251\174\102\132\51\107\371\104\160\377\210\31\43\136\370\24" "\371\323\272\263\311\57\60\346\322\116\310\373\257\330\111\331" "\0\357\336\212\235\300\46\123\75\374\13\220\363\232\313\227" "\341\67\241\66\341\46\251\257\303\273\216\331\344\173\37\32" "\154\335\316\266\145\221\364\327\241\53\131\302\62\171\236\311" "\344\6\212\11\354\124\255\341\327\43\107\150\21\152\133\353" "\303\374\7\337\135\213\255\101\172\205\20\320\164\55\276\6" "\370\327\241\366\367\172\17\167\55\162\216\127\132\231\134\206" "\166\263\257\66\331\157\267\270\7\240\362\364\171\316\101\23" "\103\153\354\377\241\366\77\266\270\23\373\274\337\243\231\304" "\256\105\53\310\147\252\74\302\101\77\365\51\242\251\222\116" "\114\236\322\264\22\365\30\63\124\326\121\254\103\312\372\273" "\303\337\217\116\202\203\166\250\76\74\115\326\115\173\62\172" "\363\45\46\327\44\211\205\115\362\223\116\241\134\113\320\16" "\333\153\74\232\11\202\33\0\14\346\31\56\306\153\16\62" "\266\276\212\332\242\243\71\226\354\155\354\253\221\221\366\242" "\54\3\225\165\137\225\366\344\340\54\244\267\175\330\204\26" "\333\102\276\240\274\273\105\332\17\41\75\4\322\51\316\151" "\173\253\313\127\44\275\267\232\34\271\367\135\3\232\137\241" "\153\243\177\131\100\3\162\144\376\76\102\23\266\173\320\365" "\307\347\106\302\375\62\371\50\360\175\13\277\12\71\50\275" "\350\53\367\377\141\164\122\177\1\332\161\357\353\31\247\123" "\367\101\172\352\72\17\167\3\162\226\366\266\157\177\361\376" "\107\150\107\362\102\373\355\313\377\3\64\206\314\105\165\361" "\235\130\136\3\31\157\100\247\262\227\241\353\331\302\276\164" "\65\322\371\323\23\305\211\376\37\353\203\27\131\174\42\361" "\72\226\347\45\350\24\362\375\150\42\156\161\54\55\324\356" "\366\211\340\256\105\116\327\76\126\306\327\5\361\176\142\171" "\373\24\172\246\300\341\176\202\364\364\62\324\326\102\371\57" "\300\333\75\156\151\136\200\372\356\132\362\213\237\271\262\255" "\340\244\135\155\274\260\357\253\75\334\365\310\166\0\75\173" "\340\26\35\134\171\136\353\321\36\116\266\171\341\101\362\343" "\365\365\110\357\272\170\337\13\344\165\160\253\225\251\303\55" "\44\70\335\103\276\256\307\261\115\27\26\346\336\11\334\146" "\262\35\211\46\65\374\172\330\30\244\271\261\305\265\270\26" "\67\22\270\360\373\54\244\163\316\106\343\325\27\320\170\134" "\144\33\342\341\117\101\372\154\11\362\107\276\346\247\141\260" "\11\155\276\312\275\177\25\350\232\173\55\376\211\110\347\334" "\206\167\73\122\220\237\120\347\26\215\327\241\36\236\104\13" "\146\223\1\357\263\55\337\356\273\314\16\210\225\145\327\370" "\210\306\346\67\223\155\126\213\331\144\211\4\342\64\65\354" "\302\173\11\352\315\302\337\212\164\270\73\275\231\262\147\212" "\306\264\325\310\347\334\101\244\36\302\266\226\220\337\247\71" "\222\374\233\256\107\172\270\137\243\172\161\337\121\76\6\237" "\43\377\176\155\62\135\203\237\220\135\57\30\243\357\52\53" "\164\345\376\67\113\322\210\102\17\76\347\356\116\13\362\235" "\266\242\66\225\221\44\164\217\347\323\125\361\263\313\370\14" "\223\206\110\234\260\74\142\375\220\10\155\122\57\47\322\150" "\302\77\36\165\272\167\43\273\175\43\322\113\276\16\31\47" "\363\333\227\241\305\313\125\26\346\217\5\251\376\233\322\363" "\203\246\161\120\344\43\307\370\254\44\75\37\1\52\217\375" "\3\76\105\376\353\50\341\36\104\276\334\2\64\137\322\101" "\363\254\7\40\37\372\15\110\337\70\372\42\377\272\310\207" "\36\4\16\22\155\240\7\35\340\154\267\263\320\246\377\273" "\310\157\304\355\320\233\37\75\154\134\41\30\315\317\321\174" "\301\12\324\26\56\216\225\241\137\116\3\304\25\371\332\35" "\124\337\347\242\272\71\263\142\274\221\162\22\132\134\213\333" "\323\160\170\277\73\176\130\200\3\55\260\376\301\176\357\217" "\46\303\142\164\47\42\205\260\1\233\164\117\50\274\333\221" "\43\355\57\306\372\212\343\357\220\23\162\23\231\2\1\317" "\0\16\34\256\161\274\367\10\274\64\227\221\77\365\25\205" "\72\6\155\121\71\171\270\330\144\174\270\350\72\213\156\247" "\234\60\75\17\126\243\301\156\136\2\77\7\71\374\17\6" "\370\137\140\273\227\35\157\17\277\3\55\12\314\107\223\236" "\347\243\111\167\277\114\176\216\14\215\205\150\161\350\307\1" "\177\347\374\114\237\162\365\360\267\240\53\310\26\42\303\363" "\313\344\47\33\226\43\43\157\34\115\30\270\23\104\135\145" "\352\311\223\333\315\32\244\127\10\11\232\313\351\56\363\223" "\254\154\302\35\363\217\240\276\160\75\371\253\325\100\33\3" "\334\256\333\205\164\327\355\351\164\57\104\335\205\267\120\24" "\31\210\335\111\327\165\344\167\54\115\132\32\105\371\114\225" "\107\321\240\137\207\117\221\341\20\353\73\225\344\111\324\121" "\310\147\35\232\170\273\236\154\241\241\127\271\77\207\256\177" "\305\276\277\74\115\26\347\165\23\132\220\17\151\46\311\277" "\305\344\40\266\120\352\177\266\133\272\376\11\310\324\242\353" "\174\272\235\67\377\63\201\26\335\302\135\217\263\321\146\214" "\317\243\15\30\123\330\25\100\221\362\116\351\267\52\365\347" "\140\26\322\103\156\61\373\245\250\357\164\135\21\157\77\117" "\306\166\25\42\207\357\55\366\373\44\114\137\30\376\254\110" "\134\120\37\232\242\170\321\365\171\46\353\232\2\232\327\241" "\211\130\42\64\241\356\204\370\346\32\310\227\311\375\144\273" "\206\217\246\302\46\240\204\154\261\70\173\7\151\165\310\166" "\71\56\44\357\24\156\43\73\115\34\362\334\116\246\277\17" "\16\170\76\112\326\256\367\243\373\246\205\230\214\333\310\116" "\0\207\374\72\344\67\121\25\365\377\60\336\7\321\351\242" "\360\204\122\307\243\161\116\376\134\373\277\242\200\337\376\11" "\334\243\236\214\113\54\77\176\74\367\316\360\12\362\47\324" "\167\220\335\334\260\246\50\75\13\273\3\215\221\157\300\253" "\233\130\331\126\160\322\336\204\166\74\203\167\362\310\160\147" "\240\311\144\220\15\370\55\262\353\12\157\305\66\74\170\351" "\136\203\46\245\277\27\244\177\46\231\115\171\233\311\35\266" "\313\17\220\365\131\207\73\333\362\231\313\213\27\357\146\164" "\152\300\341\176\203\312\352\10\144\323\354\100\345\374\31\217" "\306\311\341\140\143\213\153\161\55\156\44\160\141\37\167\376" "\335\253\321\242\350\74\154\361\303\323\1\53\361\66\146\70" "\60\374\135\344\257\255\334\6\54\350\301\157\33\47\323\335" "\107\33\237\337\4\162\204\151\107\307\271\56\322\4\17\57" "\174\77\144\303\37\141\337\373\25\305\211\361\215\214\1\176" "\136\267\20\267\113\13\241\104\346\112\145\133\223\147\54\215" "\174\160\234\107\162\114\54\250\273\122\231\74\134\325\372\71" "\6\215\215\173\333\377\127\340\75\243\21\241\237\136\140\107" "\175\300\55\256\236\223\240\7\331\313\176\32\307\46\322\230" "\347\207\107\360\125\175\316\335\235\26\264\351\354\372\200\276" "\254\115\364\343\147\317\24\15\344\373\120\330\137\40\340\123" "\140\157\166\321\346\242\305\345\352\327\77\36\165\72\320\342" "\116\7\315\235\341\341\246\310\374\366\237\222\265\305\105\24" "\57\116\146\154\146\206\306\101\221\217\34\343\263\232\274\377" "\23\322\374\20\55\374\370\174\174\10\375\327\121\302\55\107" "\163\46\67\220\235\360\74\320\243\337\307\302\146\173\76\157" "\312\277\56\362\241\7\201\203\104\33\350\101\7\370\67\174" "\200\354\260\260\316\173\361\243\207\215\253\142\313\354\100\163" "\65\27\243\61\373\321\130\31\106\362\71\10\134\221\257\335" "\41\233\147\10\27\272\13\175\164\207\160\260\321\103\266\270" "\26\327\342\6\213\303\373\135\344\270\124\125\130\131\264\342" "\301\355\104\262\153\231\234\102\17\25\307\303\310\160\233\203" "\46\5\117\104\247\320\266\4\262\371\3\303\334\20\147\141" "\261\323\244\261\174\346\203\22\64\221\62\11\161\163\221\362" "\336\67\210\273\203\374\240\74\237\356\323\220\323\151\7\141" "\363\320\342\151\170\272\70\204\345\344\363\173\50\132\374\230" "\65\35\255\70\376\174\362\213\324\223\150\247\236\203\360\352" "\122\320\202\356\35\4\140\370\11\362\127\52\57\243\333\200" "\365\341\150\362\3\135\370\135\166\65\160\235\166\232\272\242" "\30\124\146\271\253\316\274\374\354\215\214\16\337\0\3\135" "\337\370\136\373\175\74\335\213\337\33\22\162\155\210\344\41" "\204\175\350\356\37\207\7\64\13\311\73\362\251\366\136\64" "\350\7\204\305\64\25\170\124\111\53\107\223\150\27\41\237" "\153\55\174\157\164\315\327\211\175\310\175\60\232\4\331\17" "\325\357\141\45\262\37\214\275\257\33\320\74\104\374\172\242" "\375\50\277\22\70\224\55\165\275\360\41\344\215\153\307\153" "\66\331\356\312\120\357\304\340\225\344\27\344\362\42\304\145" "\332\111\367\4\304\42\322\233\132\326\222\115\66\375\12\55" "\120\306\370\202\312\322\135\155\344\73\57\163\220\76\130\210" "\164\377\342\110\134\167\275\360\353\355\73\166\275\160\131\336" "\174\31\216\110\320\304\164\147\354\32\371\351\164\152\216\71" "\245\64\366\177\45\72\225\172\23\52\233\260\235\272\211\272" "\331\344\27\350\247\360\26\53\3\236\123\136\274\171\1\317" "\111\362\372\52\34\117\143\62\116\221\355\32\17\371\105\353" "\44\321\377\303\170\277\104\213\367\317\312\10\162\361\72\101" "\36\13\323\52\300\371\273\336\347\320\175\102\326\155\376\12" "\355\13\177\143\125\54\337\341\142\361\176\150\242\160\12\351" "\236\143\75\134\116\376\12\62\57\100\343\322\174\373\366\117" "\216\56\101\355\164\41\352\257\373\42\235\267\334\376\207\127" "\136\37\152\274\17\12\322\137\152\162\256\64\176\363\203\170" "\117\107\372\51\134\134\236\302\353\127\221\272\76\224\174\133" "\365\235\370\56\30\101\133\272\305\265\270\26\227\341\142\172" "\171\76\332\354\161\251\37\311\323\1\253\320\370\115\4\357" "\116\272\56\46\175\322\25\12\306\167\373\276\36\351\247\103" "\15\275\206\304\325\267\176\36\354\257\273\245\11\344\307\134" "\112\266\350\123\70\336\133\170\331\111\312\170\324\356\74\204" "\343\343\176\150\362\177\75\231\17\134\152\177\224\245\137\323" "\166\352\51\334\313\217\33\63\103\233\72\226\176\70\46\26" "\325\135\251\114\1\256\354\44\362\42\144\43\72\37\141\5" "\332\274\324\45\223\301\201\310\46\167\33\320\36\104\33\312" "\217\40\77\161\355\303\76\226\306\32\373\77\37\265\263\130" "\32\307\340\315\211\104\360\125\175\316\335\235\166\66\262\33" "\143\364\121\260\270\375\370\331\314\20\15\216\256\300\157\111" "\365\215\122\332\134\264\270\134\375\372\307\243\116\167\16\32" "\13\156\245\373\244\253\133\264\131\213\35\136\60\70\64\340" "\121\305\227\36\46\215\17\145\343\40\250\77\75\13\351\310" "\153\22\64\40\177\347\32\164\232\324\321\24\371\257\243\204" "\73\23\335\342\360\31\262\247\331\242\372\303\363\161\122\376" "\165\221\17\75\10\34\201\154\375\350\200\260\116\347\246\170" "\107\322\55\362\243\207\215\53\4\257\16\17\107\175\165\5" "\305\247\323\253\226\101\257\270\42\137\173\147\57\361\272\32" "\147\13\55\264\60\222\60\206\234\334\57\330\357\257\330\147" "\214\374\143\316\343\144\106\113\356\44\154\0\357\41\163\72" "\307\320\211\253\167\5\274\346\131\172\343\300\137\241\153\36" "\116\40\133\154\11\141\34\273\366\66\200\345\104\166\117\67" "\0\143\164\347\337\301\53\320\151\246\73\203\360\373\311\117" "\46\76\321\302\312\340\71\150\262\340\24\202\153\77\42\60" "\227\354\135\121\320\211\100\167\352\262\314\210\6\170\14\260" "\227\367\177\47\331\225\271\20\277\176\345\245\44\256\132\102" "\312\377\336\340\377\104\101\372\7\41\143\66\5\37\107\345" "\266\26\170\47\335\213\257\143\5\37\7\156\261\365\235\306" "\347\211\306\327\301\54\124\146\377\222\310\317\66\124\106\353" "\3\334\5\144\327\210\236\216\275\71\150\360\114\324\76\377" "\70\220\351\261\26\36\56\340\206\360\170\362\3\355\172\340" "\177\7\64\157\42\362\376\117\0\147\121\342\270\365\0\316" "\100\155\62\255\77\220\115\124\114\357\22\365\340\277\333\367" "\66\144\44\235\217\267\41\241\46\374\220\354\335\323\107\320" "\65\351\145\364\77\6\76\34\204\137\107\66\31\343\303\32" "\262\353\162\253\302\65\350\364\247\203\233\320\51\352\327\341" "\235\42\363\140\2\170\73\272\232\354\73\1\156\47\146\170" "\171\160\71\351\253\224\122\260\11\351\142\37\376\212\154\3" "\115\10\147\3\117\100\233\145\226\1\377\120\300\173\34\351" "\231\365\150\207\377\3\136\370\55\250\374\176\217\234\371\20" "\56\101\375\356\43\350\372\336\213\213\263\221\204\17\243\223" "\202\51\135\26\203\73\115\256\23\313\10\33\204\353\220\336" "\130\207\367\356\216\7\117\266\157\267\10\347\300\55\310\305" "\140\7\360\124\373\35\56\170\355\4\376\210\114\147\125\261" "\335\267\223\235\60\175\112\5\372\252\360\54\244\147\327\25" "\320\164\235\374\350\1\166\222\335\234\21\352\136\310\66\42" "\55\43\137\306\333\310\166\240\306\26\16\103\331\156\61\36" "\13\321\304\371\177\324\220\161\125\360\377\21\64\71\173\45" "\371\76\4\32\203\357\7\76\146\270\73\55\354\102\373\16" "\373\325\173\120\277\176\137\20\176\217\321\176\302\170\154\15" "\360\137\106\47\112\176\33\204\277\7\357\155\247\10\134\102" "\376\352\361\60\176\13\55\264\260\353\302\166\164\102\342\40" "\340\337\355\373\221\200\346\114\272\155\52\7\177\215\156\224" "\330\210\164\345\52\62\373\45\134\100\211\55\250\270\337\107" "\32\217\53\201\227\43\275\164\163\211\354\316\276\175\7\362" "\31\72\150\223\351\177\105\366\317\40\154\152\7\61\377\62" "\264\267\157\41\273\51\344\373\3\226\147\120\340\66\12\376" "\351\214\112\121\16\137\103\267\305\70\37\341\233\300\33\23" "\264\263\221\235\175\32\331\255\22\217\3\76\211\154\341\217" "\44\342\175\35\55\350\177\337\376\137\216\306\351\30\34\215" "\332\162\14\352\370\234\273\63\55\310\67\272\203\364\234\100" "\12\172\365\263\167\167\50\322\61\375\372\307\243\116\367\74" "\324\177\237\14\374\23\172\142\304\155\130\275\15\170\33\72" "\135\366\102\57\316\253\261\305\111\203\52\276\364\60\151\252" "\202\33\127\307\121\176\266\242\215\37\41\70\37\161\12\55" "\130\372\7\30\212\374\327\121\302\255\5\236\215\16\120\270" "\71\227\77\41\323\35\173\221\75\267\7\305\376\165\221\17" "\75\10\134\223\20\332\33\323\157\325\127\200\42\77\172\330" "\70\37\122\362\357\104\375\371\64\264\201\170\173\202\56\364" "\275\7\201\53\362\265\147\223\35\56\10\165\161\241\217\276" "\61\110\144\43\114\257\326\266\270\26\327\342\6\213\303\377" "\135\262\133\164\3\331\73\167\67\223\135\377\350\323\335\202" "\166\5\71\45\35\333\145\362\52\362\127\302\270\335\303\41" "\375\115\310\361\130\204\116\60\355\100\13\61\147\143\273\142" "\3\271\357\103\223\373\241\334\307\31\256\160\267\113\235\135" "\275\105\345\144\337\337\43\230\370\267\360\57\33\156\137\244" "\60\57\102\16\134\310\323\347\165\12\232\74\355\132\224\63" "\374\3\250\114\346\241\135\340\337\264\164\122\371\15\353\375" "\101\124\366\363\320\144\306\5\330\144\210\327\176\76\210\46" "\222\227\32\357\360\236\374\7\211\30\136\206\277\332\362\271" "\302\370\177\216\374\133\163\17\241\353\10\347\243\335\277\167" "\21\274\111\133\124\356\144\47\137\353\354\146\352\172\17\66" "\300\27\305\275\37\225\363\317\320\242\352\162\264\50\176\43" "\52\333\147\240\62\274\227\374\65\320\127\140\127\43\106\340" "\62\364\16\147\152\367\323\52\113\353\373\36\315\101\250\117" "\274\33\325\315\53\120\377\70\275\200\317\231\144\157\277\31" "\212\240\0\0\11\361\111\104\101\124\63\244\150\142\171\56" "\53\23\367\346\203\157\230\325\111\53\267\363\313\276\67\243" "\162\131\202\256\161\276\275\204\317\361\144\327\326\125\225\333" "\307\137\142\377\57\313\221\245\171\55\106\355\336\247\161\357" "\127\36\205\332\363\174\373\275\236\374\73\310\125\312\174\11" "\152\153\147\243\372\175\37\62\236\46\311\277\261\30\343\165" "\47\371\162\377\61\152\177\207\240\362\171\72\322\255\251\367" "\56\122\372\355\225\300\335\150\221\173\201\345\355\36\244\243" "\122\175\347\154\264\20\365\336\10\56\214\163\272\245\375\211" "\10\217\16\301\65\322\26\367\71\150\67\272\63\100\27\330" "\377\203\153\346\155\71\52\357\25\5\162\166\215\231\6\227" "\140\223\160\211\135\246\121\250\241\257\302\377\343\350\104\344" "\162\364\236\150\330\116\335\273\334\147\4\162\271\367\250\347" "\243\335\332\376\316\353\353\320\51\244\371\150\203\217\317\363" "\207\144\155\372\243\330\73\312\45\73\146\257\102\143\333\122" "\164\75\123\121\137\212\365\377\50\316\302\146\243\272\72\72" "\22\257\254\276\253\312\161\3\371\267\141\326\7\361\256\105" "\175\364\22\362\343\331\267\255\214\226\320\135\216\261\162\172" "\30\265\357\271\164\337\366\201\375\177\212\27\346\354\245\105" "\150\74\10\333\331\205\26\366\251\40\35\120\175\354\44\323" "\161\137\104\372\344\322\200\326\177\323\365\1\354\304\275\307" "\347\113\144\157\321\372\361\76\100\176\167\277\217\233\336\131" "\357\227\107\220\317\205\101\72\111\30\101\133\272\305\265\270" "\26\227\341\302\76\176\65\322\45\333\220\75\173\13\322\253" "\216\356\154\244\213\46\220\115\161\34\25\336\76\257\61\276" "\207\343\312\247\221\316\271\221\356\133\52\302\270\61\373\326" "\101\314\316\115\311\331\313\365\302\176\374\306\344\211\361\256" "\20\236\52\237\236\171\172\343\342\225\150\214\270\312\245\123" "\220\176\227\35\126\120\167\245\62\171\270\262\372\71\15\357" "\212\174\117\26\377\343\323\307\336\175\75\20\315\155\34\237" "\220\353\114\272\67\34\245\322\70\14\155\120\336\233\256\10" "\235\16\365\174\316\335\231\26\64\7\164\164\204\266\254\115" "\364\342\147\307\370\14\223\6\362\355\244\253\277\204\174\142" "\341\51\132\252\371\366\375\370\307\243\116\27\5\303\275\303" "\362\374\15\264\11\174\21\322\33\367\221\177\73\374\225\224" "\373\322\303\244\311\147\45\236\267\72\355\363\101\262\133\41" "\302\271\335\42\377\165\224\160\133\220\277\274\30\351\224\35" "\310\347\72\10\371\167\127\220\177\102\257\310\277\56\362\241" "\7\201\43\310\113\77\72\300\267\67\252\364\175\77\335\42" "\77\172\330\270\102\60\232\117\242\265\216\171\310\137\276\301" "\303\25\371\336\203\300\101\332\327\356\240\15\140\316\156\16" "\355\275\124\274\221\162\22\132\134\213\333\323\160\170\277\103" "\247\224\200\156\73\331\256\236\155\4\247\312\74\47\340\176" "\244\20\306\311\277\51\346\40\134\360\362\337\164\365\25\307" "\12\164\252\163\334\322\373\64\32\374\176\205\355\354\14\34" "\256\357\341\55\164\172\151\136\214\275\263\131\301\140\52\204" "\12\345\344\160\133\210\277\211\360\64\264\333\322\235\366\274" "\205\274\41\226\221\147\141\356\312\213\360\343\360\207\240\72" "\165\47\60\257\240\140\22\301\305\365\360\153\320\202\326\4" "\52\353\137\222\137\324\71\32\31\150\156\102\144\75\335\127" "\21\116\20\71\145\154\370\105\150\102\177\207\175\256\43\177" "\355\341\213\321\2\345\44\132\354\15\337\154\354\24\225\173" "\44\275\102\250\301\43\125\307\127\240\201\156\5\162\236\235" "\334\157\101\213\135\23\150\101\66\274\342\365\41\362\327\54" "\373\260\14\71\371\163\274\1\325\377\70\143\317\57\67\220" "\3\270\331\144\330\202\46\275\375\64\303\217\177\75\132\212" "\46\326\306\252\364\33\327\217\313\322\212\263\361\150\354\373" "\50\244\113\46\121\373\130\123\201\317\77\223\67\222\352\344" "\353\100\373\377\334\224\134\221\364\316\13\150\100\13\232\77" "\107\13\14\73\355\367\364\133\307\65\234\27\320\142\313\117" "\214\317\66\144\4\136\102\136\207\307\170\271\205\310\105\106" "\263\12\355\300\35\67\372\355\110\137\56\10\322\313\345\73" "\41\323\271\150\361\167\312\276\317\213\320\370\60\33\365\223" "\331\21\134\30\147\1\352\77\207\4\144\113\120\73\210\275" "\31\275\201\340\35\127\364\76\345\206\204\114\251\274\375\214" "\32\355\45\340\273\206\374\106\25\350\156\27\135\320\213\276" "\262\377\357\260\364\266\241\361\55\224\361\64\64\156\334\104" "\376\155\337\345\26\66\101\367\242\345\62\324\256\266\221\55" "\162\373\143\361\315\136\274\43\142\171\15\144\134\211\306\372" "\155\150\302\52\274\236\67\37\305\303\25\214\205\176\370\51" "\330\225\366\341\70\21\343\135\201\137\210\133\205\46\64\47" "\254\134\126\5\361\56\66\334\315\344\307\360\175\310\354\226" "\317\27\245\147\141\47\240\305\210\230\15\204\361\362\257\70" "\162\172\166\47\162\250\302\166\346\336\317\235\336\261\357\341" "\216\65\234\173\147\371\345\366\377\250\200\366\66\164\5\42" "\250\234\157\15\370\34\147\361\302\53\236\267\222\356\73\263" "\350\176\223\256\23\153\103\65\372\305\306\40\170\143\213\153" "\161\55\156\44\160\141\37\137\102\166\105\352\103\330\165\203" "\36\335\117\221\56\334\27\335\160\264\223\364\25\302\4\161" "\363\101\161\232\230\377\160\16\336\151\333\2\277\16\272\355" "\133\367\211\331\271\105\162\226\135\137\33\205\240\114\373\226" "\47\41\133\54\274\350\123\45\277\205\341\136\32\77\102\343" "\334\365\5\274\223\143\105\111\335\25\312\344\341\212\256\177" "\136\215\46\321\123\327\336\207\62\205\357\276\72\270\227\164" "\31\76\315\322\110\235\206\11\323\270\217\310\123\30\36\276" "\216\317\271\73\323\276\201\156\135\345\240\112\333\256\353\147" "\307\370\14\223\206\110\34\142\370\242\360\40\254\114\307\304" "\372\126\257\376\361\256\100\327\5\206\273\25\335\2\270\31" "\371\0\216\307\1\21\36\125\174\351\141\322\144\101\361\274" "\25\216\45\1\215\77\76\205\176\315\73\110\373\257\243\204" "\173\75\331\106\367\133\220\277\163\30\272\331\152\2\325\365" "\1\36\175\221\177\275\202\264\17\75\10\34\101\136\372\325" "\1\135\363\364\61\336\221\164\213\374\350\141\343\12\301\150" "\156\104\67\305\355\64\76\176\374\42\337\173\20\70\110\373" "\332\35\264\310\77\101\334\336\113\305\343\16\64\301\346\76" "\376\256\201\26\327\342\132\334\140\161\370\277\253\70\56\51" "\10\350\122\312\274\22\324\115\323\276\137\201\167\215\255\307" "\343\76\154\127\151\5\203\251\112\172\67\24\225\123\135\47" "\264\10\337\113\234\335\21\137\124\356\165\370\365\53\223\341" "\126\242\135\203\213\123\164\6\237\3\176\123\125\256\252\362" "\215\32\115\217\372\241\220\246\337\176\132\205\156\46\352\244" "\101\136\105\47\113\7\221\136\243\145\320\157\234\72\161\33" "\246\211\71\43\51\136\215\264\345\220\246\127\176\303\304\105" "\302\127\21\177\273\74\32\57\146\113\364\20\257\20\372\314" "\163\235\61\276\47\333\252\11\372\52\270\36\371\270\311\341" "\272\361\46\203\260\216\175\317\242\102\337\212\360\34\45\133" "\272\305\265\270\26\227\341\302\76\16\262\207\375\153\6\361" "\351\123\320\320\30\352\344\170\30\335\32\62\17\55\306\354" "\50\342\125\327\76\351\305\377\153\312\66\356\227\367\60\342" "\46\354\231\252\74\72\301\167\130\56\207\243\372\134\131\220" "\126\255\174\224\341\146\202\336\213\63\116\366\224\1\150\1" "\340\321\272\74\133\332\112\161\163\155\253\16\377\231\244\251" "\332\7\372\321\175\115\372\206\273\62\235\341\312\346\205\106" "\276\315\314\24\315\256\202\53\241\357\322\23\63\55\373\40" "\165\300\114\347\255\11\334\50\312\344\341\122\276\166\131\35" "\106\343\215\241\35\215\117\364\302\47\200\103\204\34\373\142" "\213\153\161\55\156\240\270\61\160\235\161\154\314\17\163\20" "\13\213\101\21\135\125\36\275\246\351\321\77\200\336\74\274" "\314\302\136\206\336\60\173\174\23\62\32\315\267\73\164\216" "\110\225\123\212\117\31\377\136\312\176\117\301\27\225\173\35" "\176\375\312\344\341\216\107\273\344\327\241\353\73\177\213\234" "\335\47\3\377\3\355\220\353\240\135\106\277\257\323\376\233" "\310\303\60\151\232\320\17\41\115\23\272\244\51\271\253\322" "\16\242\34\206\305\153\230\64\115\304\151\132\246\32\64\140" "\357\100\125\320\363\35\240\357\266\34\322\364\312\157\230\70" "\13\337\211\336\66\272\10\135\315\364\247\300\352\52\374\354" "\173\76\272\252\351\235\300\254\32\361\372\356\323\25\160\20" "\171\17\54\21\57\331\16\352\312\60\210\72\354\201\317\142" "\262\253\330\237\137\63\375\173\201\27\1\67\272\162\354\320" "\141\214\261\347\241\147\21\36\123\125\336\21\264\245\133\134" "\213\153\161\236\157\31\364\361\307\240\23\45\373\342\155\216" "\205\306\154\362\44\4\162\274\4\371\204\213\114\236\167\1" "\347\247\170\325\265\117\172\361\377\232\262\215\373\345\75\214" "\270\11\173\6\252\215\247\35\243\163\337\141\271\314\101\276" "\327\173\201\275\207\141\73\315\4\275\27\347\247\350\106\227" "\67\242\23\131\227\240\167\6\137\330\264\177\263\47\320\226" "\304\235\215\327\266\352\360\237\111\232\252\175\240\37\335\327" "\244\157\270\53\323\15\273\274\166\67\232\135\5\127\102\337" "\245\47\146\132\366\101\352\200\231\316\133\23\270\121\224\311" "\160\105\276\66\244\155\246\144\274\130\132\245\310\26\327\342" "\132\134\263\70\367\73\106\137\330\121\33\220\243\37\372\210" "\334\157\42\177\345\340\35\144\357\320\366\55\143\225\162\112" "\361\51\343\337\113\331\357\51\370\262\262\255\312\257\137\36" "\1\156\5\172\23\357\136\264\343\170\12\355\160\333\210\26" "\144\147\45\342\365\45\337\250\321\64\241\37\102\232\46\164" "\111\123\162\127\245\35\104\71\14\213\327\60\151\232\210\123" "\47\156\303\64\323\73\14\113\364\174\51\135\204\66\366\351" "\212\77\252\66\104\44\374\54\262\253\231\356\104\157\135\127" "\342\147\337\237\45\176\335\156\131\274\112\320\147\236\353\214" "\361\75\331\126\115\320\127\301\365\300\147\2\135\33\275\264" "\207\364\77\104\360\146\255\175\117\141\357\73\126\225\167\124" "\332\172\213\153\161\55\56\216\163\272\322\276\227\343\75\377" "\122\225\127\77\162\44\344\251\225\116\135\373\244\27\377\257" "\311\74\364\303\173\30\161\23\366\114\337\351\173\174\306\201" "\257\27\244\125\310\247\127\71\206\111\357\305\131\206\336\41" "\164\117\367\134\205\116\160\67\66\346\357\111\264\45\161\163" "\155\253\16\377\231\244\251\332\7\372\321\175\115\372\206\273" "\62\335\260\313\153\167\243\331\125\160\45\364\135\172\142\246" "\145\37\244\16\230\351\274\65\201\33\105\231\14\127\344\153" "\27\325\141\62\336\377\7\17\40\0\77\147\261\65\312\0" "\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/fontemboss.png", 19286, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\7\135\0\0\0\21\10\6\0\0\0\226\320\265" "\127\0\0\0\11\160\110\131\163\0\0\16\304\0\0\16" "\304\1\225\53\16\33\0\0\40\0\111\104\101\124\170\234" "\355\135\151\170\24\305\326\176\173\146\62\223\215\231\144\262" "\1\331\111\40\100\330\41\201\310\22\370\56\102\100\202\202" "\242\27\101\26\27\100\121\331\67\131\104\104\145\23\101\21" "\121\21\21\104\166\10\273\134\274\42\210\54\262\57\11\141" "\15\20\40\310\222\20\110\40\373\371\176\164\167\254\351\164" "\317\164\222\111\214\336\251\347\231\147\146\352\175\353\324\251" "\123\325\125\165\272\253\253\0\205\100\40\162\140\16\314\201" "\125\16\46\376\226\343\133\223\141\17\75\312\303\57\255\336" "\345\325\121\115\176\112\162\154\311\57\213\355\377\127\160\133" "\266\125\53\257\274\62\112\333\216\313\222\316\36\145\250\114" "\216\75\372\7\51\307\36\165\140\57\275\325\162\53\302\16" "\225\45\253\62\71\366\110\123\232\264\25\305\121\333\317\333" "\153\314\51\257\274\312\304\312\53\257\254\143\267\275\256\351" "\312\302\52\232\257\6\253\214\74\112\73\137\52\357\65\353" "\300\34\230\3\373\353\61\173\315\333\53\322\157\263\45\253" "\264\363\23\173\217\211\122\216\275\364\121\303\251\210\264\25" "\65\77\122\123\167\225\61\176\126\6\137\115\32\31\374\6" "\200\127\113\41\353\65\41\215\65\356\47\0\110\370\314\125" "\41\167\52\200\207\0\326\3\50\124\241\203\154\250\50\156" "\131\322\112\70\262\66\226\221\123\302\266\152\354\132\12\175" "\212\365\20\376\27\347\47\374\57\41\277\74\175\237\204\67" "\25\62\165\254\266\75\252\261\225\14\117\261\35\252\321\115" "\41\137\331\140\217\176\242\212\266\231\322\344\245\126\116\251" "\70\177\27\254\52\350\120\32\114\355\70\130\226\76\340\257" "\56\233\75\260\252\250\123\245\333\240\52\51\343\300\34\330" "\77\35\53\215\343\142\157\75\312\303\57\255\336\225\341\340" "\225\325\201\265\367\200\367\117\302\155\331\126\255\274\362\312" "\50\253\3\147\157\47\261\52\161\354\321\77\110\71\25\340" "\330\224\131\216\132\156\105\330\241\262\144\125\46\307\36\151" "\112\223\266\242\70\152\373\171\173\73\2\125\165\16\141\117" "\171\145\35\273\355\165\115\127\26\126\321\174\65\130\145\344" "\121\332\371\122\171\257\131\7\346\300\34\330\137\217\331\153" "\336\136\221\176\233\55\131\245\235\237\330\173\114\224\162\354" "\245\217\32\116\105\244\255\250\371\221\232\272\253\214\361\263" "\62\370\152\322\110\361\131\263\146\155\363\363\363\373\103\255" "\54\137\137\337\333\163\346\314\331\152\205\333\311\305\305\45" "\147\354\330\261\311\143\307\216\115\166\161\161\171\14\240\223" "\25\271\32\216\343\212\372\366\355\233\350\351\351\371\160\322" "\244\111\247\154\350\100\222\157\153\334\355\0\12\204\157\233" "\145\123\33\112\333\376\225\154\54\225\43\147\133\65\166\225" "\310\221\265\17\201\210\325\203\100\304\346\107\40\222\223\57" "\310\266\220\131\6\77\124\261\216\325\266\107\65\266\222\360" "\254\266\103\65\272\51\224\125\321\276\122\135\324\140\112\274" "\252\322\146\112\221\227\252\162\225\205\363\167\301\252\202\16" "\245\301\324\216\203\145\231\377\374\325\145\263\7\126\25\165" "\252\164\33\124\45\145\34\230\3\373\247\143\245\161\134\354" "\255\107\171\370\245\325\273\62\34\274\262\72\260\366\36\360" "\376\111\270\55\333\252\225\127\136\31\145\165\340\112\223\256" "\62\46\267\366\344\330\243\177\220\162\354\355\330\224\107\216" "\132\156\105\330\241\262\144\125\46\307\36\151\112\223\266\242" "\70\152\373\171\173\73\2\125\165\16\141\117\171\145\35\273" "\355\165\115\127\26\126\321\174\65\130\145\344\121\332\371\122" "\171\257\131\7\346\300\34\330\137\217\331\350\227\65\152\144" "\225\107\17\45\175\112\43\253\264\363\23\173\217\211\122\116" "\31\365\261\366\51\223\316\266\70\225\75\77\122\123\167\225" "\61\176\126\6\137\115\232\22\145\47\152\100\104\357\253\225" "\105\104\323\211\50\122\211\113\104\201\104\364\25\21\75\41" "\174\276\44\242\100\45\271\104\304\21\321\72\42\212\43\242" "\217\211\50\332\206\276\33\331\157\153\134\255\126\133\370\336" "\173\357\35\327\152\265\205\266\270\245\11\245\155\377\112\66" "\226\51\133\11\333\252\261\253\44\57\131\373\20\210\130\75" "\204\377\305\371\11\377\113\310\27\342\55\144\226\326\17\265" "\126\307\152\333\243\32\133\251\265\227\132\335\24\362\125\264" "\257\55\73\330\12\125\261\315\250\315\113\155\271\312\302\371" "\13\261\235\340\27\155\154\126\223\356\57\320\257\134\230\332" "\161\260\54\363\237\277\272\154\366\300\252\242\116\225\156\203" "\252\244\214\3\163\140\377\164\114\164\314\30\7\15\342\267" "\104\106\44\200\107\302\357\160\0\217\45\62\46\3\50\22" "\322\146\303\162\213\23\21\53\2\60\221\221\371\14\200\173" "\12\272\275\10\40\113\310\347\25\205\62\20\303\177\23\300" "\25\6\273\52\304\225\50\63\200\174\45\173\50\5\65\16" "\236\4\153\17\340\1\23\137\35\300\105\360\3\174\76\200" "\63\340\355\310\246\363\206\140\143\41\356\377\204\62\345\3" "\310\3\160\34\100\0\203\67\0\220\54\140\5\0\222\0" "\324\123\320\363\145\374\131\277\42\36\56\304\111\77\42\356" "\1\140\233\240\123\41\200\133\0\272\62\270\334\247\210\301" "\43\0\44\12\372\345\1\70\5\40\214\301\175\0\34\26" "\260\34\0\7\1\4\313\331\264\74\23\0\265\34\1\17" "\3\220\2\336\236\251\0\32\311\244\325\0\30\5\340\62" "\370\266\136\10\336\106\307\1\364\260\221\347\130\360\166\32" "\245\220\277\364\223\57\344\323\116\42\257\3\200\113\202\236" "\331\0\276\262\41\307\342\332\263\122\177\322\66\140\13\7" "\54\257\175\22\354\61\124\46\57\271\140\221\227\102\35\111" "\365\221\13\337\0\110\120\301\23\361\173\0\146\52\120\146" "\11\70\53\153\266\15\275\0\240\5\370\353\121\274\136\117" "\201\277\106\331\174\345\352\367\70\54\257\13\0\150\12\276" "\217\310\53\205\254\2\360\155\205\355\3\252\3\370\15\374" "\365\125\4\176\213\245\15\0\234\254\310\121\152\7\162\201" "\345\214\3\220\13\300\250\300\165\3\337\237\117\147\322\74" "\0\320\112\302\173\107\220\73\136\22\337\12\226\175\352\45" "\360\327\23\33\206\201\357\147\105\116\52\112\216\37\257\10" "\361\254\275\345\312\176\214\341\110\355\361\20\174\37\317\30" "\102\226\47\33\112\321\137\111\267\13\263\306\225\305\313\240" "\107\151\364\27\257\375\263\166\320\121\172\375\333\154\177\66" "\372\15\133\272\377\145\230\112\176\104\105\352\145\57\71\52" "\261\17\140\71\67\20\353\254\110\300\124\353\133\25\352\317" "\201\71\60\7\246\214\131\233\267\173\173\173\247\201\237\337" "\260\170\173\360\376\105\41\200\273\0\236\126\231\327\15\0" "\157\113\240\267\141\271\245\46\73\76\314\6\77\237\172\4" "\140\270\104\26\73\27\220\33\343\244\363\3\271\71\365\30" "\360\163\234\174\0\133\45\162\224\312\140\65\310\330\122\265" "\76\104\264\121\351\303\310\34\51\350\374\30\374\374\251\64" "\172\215\2\77\267\54\0\360\37\46\176\250\40\257\0\300" "\317\114\274\164\273\123\153\262\233\2\270\0\276\276\224\346" "\245\326\306\327\311\20\266\22\25\376\167\6\360\207\20\367" "\7\200\216\52\365\50\226\43\23\116\202\367\27\324\360\235" "\0\244\201\277\267\301\362\113\330\112\105\36\212\241\14\76" "\347\337\226\153\64\32\363\0\220\207\207\107\256\12\271\0" "\177\317\243\20\45\333\223\154\333\102\351\375\154\71\71\225" "\311\201\114\32\251\75\54\354\42\27\157\305\57\122\272\217" "\140\57\377\370\357\300\223\51\150\61\326\24\274\57\44\312" "\370\257\40\367\53\206\247\44\107\266\336\52\201\243\306\107" "\126\333\347\260\143\223\134\133\21\203\305\326\312\22\314\142" "\213\143\6\263\266\65\366\124\110\266\217\126\123\137\32\215" "\246\350\275\367\336\73\256\323\351\12\24\164\261\31\124\266" "\213\22\133\111\333\241\314\112\371\331\173\213\361\27\301\217" "\361\137\202\157\23\322\173\125\123\241\154\373\212\50\267\265" "\374\224\154\142\65\124\301\72\264\46\123\66\255\32\231\303" "\300\73\333\342\147\32\3\72\60\7\346\300\52\26\3\363" "\233\10\104\132\255\266\10\0\304\157\226\327\257\137\277\167" "\153\325\252\225\11\0\57\277\374\362\370\220\220\220\7\254" "\14\216\343\212\46\116\234\170\6\0\215\35\73\366\260\233" "\233\133\226\24\233\60\141\102\42\307\161\105\142\272\200\200" "\200\253\357\274\363\316\136\60\101\314\323\144\62\145\116\231" "\62\345\300\324\251\123\17\31\215\306\7\220\4\121\137\221" "\357\351\351\231\261\164\351\322\37\104\354\273\357\276\373\301" "\323\323\63\103\42\367\52\200\175\156\156\156\371\0\166\303" "\362\41\255\325\240\302\301\263\300\72\166\354\270\276\165\353" "\326\327\305\370\326\255\133\157\212\216\216\116\271\165\353\326" "\206\353\327\257\257\157\323\246\315\271\226\55\133\356\144\322" "\125\257\131\263\346\125\60\223\41\243\321\230\371\312\53\257" "\354\277\171\363\346\272\113\227\56\255\213\212\212\272\30\36" "\36\176\132\304\275\275\275\157\77\363\314\63\307\256\134\271" "\262\56\45\45\45\241\155\333\266\347\375\374\374\256\113\165" "\21\154\235\52\312\26\361\301\203\7\277\125\243\106\215\307" "\112\316\170\375\372\365\177\157\331\262\145\322\276\175\373\326" "\337\275\173\167\303\13\57\274\160\322\150\64\146\212\270\64" "\135\337\276\175\257\364\351\323\247\330\246\65\153\326\274\326" "\277\177\377\137\323\323\323\127\245\247\247\257\354\323\247\317" "\157\201\201\201\227\105\274\105\213\26\377\331\260\141\303\334" "\254\254\254\37\122\122\122\126\167\354\330\361\244\124\177\153" "\166\227\253\203\362\160\10\104\365\352\325\73\332\277\177\377" "\3\67\157\336\134\37\23\23\223\22\24\24\164\131\222\326" "\245\126\255\132\247\375\375\375\157\16\33\66\154\367\276\175" "\373\326\147\144\144\154\334\276\175\373\226\316\235\73\237\324" "\351\164\371\0\276\120\312\63\50\50\50\265\111\223\46\31" "\101\101\101\251\12\372\25\333\65\77\77\177\323\271\163\347" "\22\332\264\151\163\321\144\62\335\147\70\365\234\235\235\37" "\277\366\332\153\373\156\336\274\271\176\343\306\215\333\114\46" "\323\103\61\137\251\34\42\332\70\141\302\204\104\215\106\123" "\10\141\22\54\307\121\270\41\43\313\141\360\311\32\215\246" "\160\302\204\11\147\104\354\355\267\337\76\253\325\152\13\40" "\114\344\113\343\40\50\324\221\55\47\342\233\366\355\333\37" "\40\242\347\125\344\127\214\233\315\346\373\20\26\61\60\41" "\120\260\245\105\236\102\234\267\25\275\202\303\303\303\23\227" "\54\131\362\135\106\106\306\232\113\227\56\255\37\75\172\364" "\266\210\210\210\223\0\152\132\224\361\117\73\156\270\166\355" "\332\206\27\137\174\361\327\320\320\320\144\206\123\263\132\265" "\152\17\6\14\30\260\367\344\311\223\233\222\223\223\67\366" "\352\325\353\120\265\152\325\36\200\177\210\52\133\67\67\156" "\334\330\320\251\123\247\244\320\320\320\342\7\140\241\241\241" "\311\135\272\164\71\174\361\342\305\325\271\271\271\353\23\23" "\23\277\217\216\216\76\323\274\171\363\342\276\107\122\257\322" "\377\252\353\217\210\242\74\75\75\163\272\164\351\362\205\34" "\261\133\267\156\363\252\125\253\226\373\370\361\343\366\142\232" "\16\35\72\134\215\213\213\373\201\345\65\151\322\344\244\321" "\150\314\153\332\264\351\11\66\76\56\56\356\207\166\355\332" "\25\73\202\333\267\157\377\322\150\64\76\4\340\56\120\164" "\146\263\71\175\333\266\155\213\104\316\347\237\177\276\301\307" "\307\347\56\53\307\307\307\347\316\347\237\177\276\201\51\33" "\330\62\337\271\163\147\253\331\154\316\275\170\361\142\211\153" "\105\374\337\272\165\353\353\35\73\166\134\147\151\210\342\25" "\343\322\76\353\131\41\356\131\226\253\140\117\13\171\322\355" "\302\254\161\241\120\107\145\160\110\154\366\271\42\46\214\355" "\247\323\323\323\47\252\114\243\250\43\21\155\264\230\233\250" "\150\177\66\372\15\253\272\377\225\230\32\276\223\223\123\136" "\105\352\145\57\71\152\60\203\301\220\273\163\347\316\75\114" "\34\21\210\366\355\333\367\337\232\65\153\246\225\106\337\52" "\70\227\166\140\16\314\201\375\211\131\233\267\107\70\73\73" "\347\23\221\67\213\173\173\173\337\351\325\253\327\251\273\167" "\357\156\170\343\215\67\176\27\175\76\133\175\313\254\131\263" "\266\171\170\170\144\2\320\11\321\72\223\311\364\200\335\122" "\23\314\370\340\344\344\224\277\142\305\212\137\346\314\231\363" "\253\253\253\353\43\126\226\302\333\136\45\346\267\326\346\324" "\56\56\56\217\347\316\235\273\57\41\41\341\147\215\106\123" "\302\217\226\53\203\22\46\345\224\105\37\65\262\15\6\103" "\316\202\5\13\366\54\130\260\140\217\263\263\163\116\151\322" "\272\271\271\145\317\236\75\173\377\252\125\253\366\350\164\272" "\342\33\240\106\243\361\301\224\51\123\176\137\264\150\321\1" "\47\47\247\2\61\136\272\335\251\65\331\176\176\176\67\300" "\217\373\354\374\213\44\365\243\70\276\66\150\320\40\21\314" "\134\306\154\66\337\35\60\140\300\321\273\167\357\256\357\333" "\267\357\161\263\331\174\127\215\36\254\34\111\370\40\42\42" "\42\215\210\142\325\360\133\266\154\271\365\311\47\237\74\117" "\104\165\130\276\234\255\154\345\241\244\257\34\256\302\347\374" "\333\162\103\102\102\356\67\151\322\44\43\44\44\44\303\26" "\27\0\132\266\154\271\353\231\147\236\271\46\347\353\310\370" "\74\245\366\263\113\343\103\127\20\207\377\311\244\221\261\207" "\205\135\344\342\331\70\65\367\21\354\350\37\127\165\236\154" "\20\60\37\223\311\224\361\326\133\157\355\272\171\363\346\272" "\244\244\244\15\361\361\361\373\71\216\53\232\73\167\356\7" "\162\165\142\305\136\225\306\121\351\43\253\351\163\54\306\46" "\351\375\136\326\176\322\255\225\131\114\272\305\261\200\311\156" "\243\54\140\262\333\107\313\264\353\22\355\273\155\333\266\177" "\150\265\332\302\116\235\72\135\227\323\105\115\120\63\276\313" "\155\45\135\316\62\53\226\313\336\133\214\157\331\262\245\123" "\140\140\340\103\0\64\140\300\200\103\104\144\144\160\253\266" "\257\200\162\227\271\256\255\205\252\126\207\66\144\312\352\152" "\113\46\347\353\353\173\347\137\377\372\127\361\252\256\355\333" "\267\167\311\314\314\64\22\210\374\174\375\356\72\60\7\346" "\300\52\16\343\300\161\200\160\61\202\3\201\120\73\274\366" "\203\213\27\57\232\302\303\303\63\57\136\274\150\142\171\355" "\332\265\333\143\60\30\274\167\355\332\25\331\241\103\207\237" "\64\32\115\300\177\377\373\337\272\26\62\210\132\161\34\167" "\220\210\142\0\274\304\161\334\120\26\3\300\161\34\167\0" "\0\7\240\227\227\227\327\322\273\167\357\266\347\70\356\260" "\250\243\230\247\106\243\51\272\176\375\172\273\354\354\154\155" "\335\272\165\167\27\26\26\26\157\111\45\362\302\152\205\145" "\135\272\174\311\235\3\367\222\217\217\317\227\267\157\337\156" "\300\161\134\12\201\10\204\132\176\176\176\247\157\337\276\75" "\10\300\17\4\242\43\207\217\54\30\74\170\160\227\123\247" "\116\205\66\152\324\350\362\342\305\213\267\67\153\326\154\30" "\133\316\142\361\274\216\220\352\45\303\225\305\374\374\374\356" "\275\365\326\133\233\46\115\232\364\62\201\310\327\307\67\163" "\306\214\31\313\136\176\371\345\261\0\270\55\133\266\214\37" "\62\144\310\233\67\157\336\364\42\20\231\75\315\167\77\373" "\354\263\37\373\366\355\333\27\0\47\224\141\76\200\115\0" "\16\0\320\45\47\47\17\151\330\260\341\314\202\202\2\255" "\200\317\20\260\237\0\40\71\71\371\225\310\310\310\371\105" "\105\105\32\211\236\317\327\253\127\357\323\263\147\317\372\211" "\345\42\20\165\217\357\276\341\316\235\73\55\16\36\74\30" "\14\111\40\20\171\230\74\36\167\351\322\345\320\312\225\53" "\173\201\177\303\254\43\200\116\34\307\15\227\261\303\213\265" "\152\325\232\171\351\322\245\301\34\307\155\47\20\151\65\132" "\112\115\115\175\272\146\315\232\77\2\300\325\253\127\343\303" "\302\302\326\26\26\26\152\11\104\56\316\56\171\217\37\77" "\16\1\160\33\200\41\71\71\271\157\203\6\15\276\20\161" "\326\246\162\166\7\277\352\350\75\0\376\12\170\211\62\161" "\340\156\2\170\27\300\142\71\334\331\340\134\360\313\57\277" "\14\150\325\252\325\372\63\147\316\14\155\322\244\311\54\126" "\237\106\215\32\355\153\323\246\115\316\347\237\177\276\127\260" "\373\171\0\231\340\35\216\66\333\266\155\173\255\107\217\36" "\35\362\363\363\373\103\150\167\214\136\115\234\235\235\17\137" "\275\172\165\174\160\160\360\107\71\71\71\321\0\116\260\371" "\163\174\365\360\165\104\304\1\160\273\161\343\106\337\220\220" "\220\317\305\172\157\332\244\351\176\177\177\377\232\133\267\156" "\35\10\376\355\140\237\57\276\370\342\253\111\223\46\75\221" "\236\236\156\222\312\21\144\265\172\347\235\167\276\236\61\143" "\106\44\21\151\344\70\12\366\122\344\20\210\64\234\206\336" "\171\347\235\63\323\247\117\37\304\161\334\101\41\257\166\157" "\276\371\346\242\145\313\226\5\76\174\370\260\232\15\71\4" "\241\275\213\375\220\114\75\132\160\44\162\276\151\337\276\175" "\375\335\273\167\177\302\161\334\32\265\172\163\340\20\27\27" "\167\261\250\250\150\377\177\376\363\237\376\42\366\344\223\117" "\56\53\54\54\154\373\363\317\77\207\260\171\366\351\323\347" "\314\205\13\27\156\376\376\373\357\235\345\364\152\321\274\305" "\317\275\173\367\376\143\324\250\121\23\1\134\7\240\7\20" "\231\233\233\33\23\37\37\337\174\327\256\135\375\24\352\305" "\65\55\55\255\123\140\140\340\172\261\235\305\264\212\331\341" "\353\353\33\276\151\323\246\327\1\34\5\277\232\257\135\357" "\336\275\147\137\271\162\345\312\301\203\7\273\52\310\162\71" "\177\376\174\337\310\310\310\105\142\133\321\152\264\164\376\374" "\371\227\303\302\302\326\202\137\115\357\266\167\357\336\267\237" "\174\362\311\251\171\171\171\116\245\350\373\224\354\311\326\15" "\67\176\374\370\137\27\54\130\320\54\53\53\253\32\204\67" "\333\204\240\61\32\215\17\6\16\34\170\166\336\274\171\321" "\34\307\21\201\350\263\117\77\133\60\163\346\314\347\157\334" "\270\341\47\22\335\335\335\37\17\37\76\374\350\274\171\363" "\232\147\145\145\271\210\361\376\376\376\177\274\375\366\333\233" "\307\215\33\367\232\320\377\125\357\334\271\363\201\254\254\254" "\123\373\367\357\177\246\153\327\256\237\27\24\24\164\332\271" "\163\147\33\216\343\376\20\70\21\41\41\41\207\256\136\275" "\372\41\370\325\330\43\103\102\102\46\245\244\244\264\342\70" "\356\274\134\277\21\25\25\365\143\335\272\165\253\57\133\266" "\354\11\216\343\36\225\270\56\101\364\301\364\17\276\133\260" "\140\101\374\255\133\267\274\44\166\342\244\66\211\214\214\74" "\251\325\152\203\13\13\13\257\44\46\46\66\221\160\25\203" "\240\177\103\0\57\160\34\67\331\132\32\153\165\244\42\235" "\265\353\315\126\72\22\306\366\243\34\307\25\224\127\107\53" "\343\253\265\164\112\375\206\154\50\203\75\354\216\251\265\55" "\230\66\147\157\275\354\45\107\155\131\36\75\172\24\340\352" "\352\172\203\255\63\20\174\235\234\234\156\25\24\24\150\325" "\352\133\325\346\322\16\314\201\71\60\113\337\122\251\77\177" "\346\231\147\76\277\172\365\152\257\343\307\217\373\2\226\376" "\136\162\162\162\237\332\265\153\257\7\277\243\305\263\34\307" "\311\371\146\305\101\34\37\153\324\250\161\60\72\72\372\313" "\315\233\67\217\352\326\255\333\374\43\107\216\274\234\226\226" "\326\212\343\270\104\351\370\340\346\346\226\37\37\37\277\170" "\345\312\225\13\1\14\345\70\156\10\253\207\124\276\70\277" "\275\163\347\316\201\257\276\372\352\65\360\375\161\21\200\324" "\365\353\327\117\76\162\344\310\130\166\116\75\240\377\200\244" "\135\273\166\171\72\73\73\147\137\276\174\71\34\352\307\121" "\305\300\332\122\62\337\76\300\322\6\15\32\364\225\227\227" "\127\153\311\34\337\246\154\27\147\227\302\321\243\107\117\4" "\200\71\163\346\174\220\223\223\243\123\73\57\4\341\213\264" "\264\264\45\161\161\161\213\42\43\43\75\127\256\134\31\46" "\304\317\7\360\275\223\223\323\301\356\335\273\137\333\260\141" "\103\55\41\376\3\0\53\231\272\121\264\213\116\253\53\222" "\370\375\262\143\242\122\335\201\360\6\307\161\13\41\324\201" "\126\243\245\313\227\57\77\33\34\34\274\55\45\45\245\173" "\170\170\370\32\31\137\271\204\36\254\34\6\152\152\62\231" "\366\36\70\160\140\136\375\372\365\47\253\340\367\365\365\365" "\375\354\352\325\253\103\135\134\134\176\140\371\311\147\223\277" "\255\133\267\356\102\326\126\2\334\334\144\62\375\42\227\207" "\265\172\225\340\152\174\316\377\5\56\0\370\272\270\270\244" "\36\71\162\344\365\310\310\310\45\220\151\323\154\332\262\370" "\331\12\165\121\231\34\251\377\121\234\106\156\136\251\24\257" "\310\125\270\217\140\57\377\270\252\363\254\365\23\155\333\264" "\115\60\233\315\365\67\155\332\64\20\374\56\111\372\250\250" "\250\375\151\151\151\265\174\174\174\22\117\234\70\21\145\243" "\36\255\335\347\250\60\216\112\37\131\232\76\37\374\33\370" "\317\1\270\52\63\66\35\134\262\144\311\340\261\143\307\316" "\277\173\367\256\263\150\243\342\373\316\104\15\40\370\265\62" "\330\164\10\143\204\210\201\20\4\376\55\332\245\102\376\375" "\1\114\7\207\153\40\150\0\254\5\177\117\357\111\0\253" "\71\216\373\275\170\174\40\332\310\161\134\17\361\233\315\217" "\210\6\200\337\1\141\63\307\161\53\245\272\250\11\152\306" "\167\151\171\313\133\146\153\345\222\336\63\220\216\271\40\174" "\255\140\307\4\126\236\250\137\235\72\165\116\265\153\327\56" "\353\301\203\7\1\273\166\355\62\145\144\144\170\1\50\20" "\144\331\262\275\135\313\135\236\272\56\103\35\352\304\162\126" "\166\35\132\223\151\363\36\212\122\273\10\14\14\274\117\104" "\377\47\176\2\2\2\212\127\66\72\60\7\346\300\52\26" "\143\57\124\0\104\40\42\242\161\302\205\76\216\305\154\174" "\130\136\173\61\316\242\43\340\70\2\337\361\114\24\176\303" "\337\337\77\165\312\224\51\277\310\165\34\0\340\347\347\367" "\170\310\220\41\57\265\151\323\146\175\170\170\270\354\233\256" "\104\64\201\100\324\264\151\323\43\275\172\365\72\45\225\361" "\354\263\317\236\156\322\244\311\141\61\156\376\374\371\155\274" "\275\275\37\354\331\263\347\107\157\157\357\7\263\147\317\156" "\57\265\107\261\10\5\275\144\270\162\130\240\136\257\57\270" "\175\373\166\361\15\166\275\136\137\360\353\257\277\66\27\323" "\354\333\267\57\102\257\327\27\257\0\236\66\155\332\117\104" "\24\44\261\251\105\130\260\140\101\244\253\253\153\276\14\256" "\1\120\347\377\376\357\377\126\104\104\104\144\112\361\340\340" "\340\53\213\27\57\376\206\55\27\201\250\161\343\306\147\373" "\367\357\277\123\232\217\210\353\164\272\302\371\363\347\117\125" "\302\231\277\156\236\236\236\31\173\367\356\375\204\305\153\324" "\250\361\50\76\76\376\123\360\157\242\271\305\307\307\317\257" "\121\243\106\361\366\311\116\116\116\205\140\126\107\316\233\67" "\257\221\330\76\330\166\311\174\213\341\125\0\67\174\175\175" "\157\317\234\71\323\142\105\273\225\17\10\104\63\147\316\334" "\352\353\353\173\33\12\133\105\20\321\22\42\162\7\200\327" "\136\173\155\230\273\273\73\153\357\156\115\232\64\271\104\104" "\155\300\157\375\170\34\374\344\63\27\300\52\0\71\104\344" "\377\342\213\57\136\10\11\11\111\221\332\51\46\46\146\107" "\333\266\155\157\20\221\123\373\366\355\257\267\156\335\172\207" "\214\115\245\365\32\20\23\23\263\271\107\217\36\127\104\216" "\273\273\373\343\345\313\227\133\324\13\21\325\311\317\317\237" "\255\40\107\344\264\202\145\373\122\263\172\321\326\12\60\42" "\242\226\122\54\77\77\377\377\322\323\323\27\261\74\105\61" "\50\121\337\126\71\114\274\305\33\256\245\325\173\305\212\25" "\123\205\25\272\305\301\303\303\343\341\222\45\113\146\112\363" "\314\316\316\356\146\66\233\245\133\341\26\163\252\125\253\366" "\150\347\316\235\117\226\310\213\110\123\275\172\165\166\105\175" "\11\275\276\374\362\313\32\6\203\241\370\55\1\17\17\217" "\254\145\313\226\115\221\362\22\22\22\106\170\170\170\24\357" "\40\40\47\153\345\312\225\201\302\165\5\2\221\321\150\314" "\213\216\216\336\11\141\73\141\101\47\17\42\372\216\221\143" "\151\236\22\21\252\353\17\171\171\171\255\74\74\74\162\136" "\170\341\5\213\255\201\137\174\361\305\321\354\133\256\142\232" "\234\234\234\72\156\156\156\271\0\314\102\164\163\27\27\227" "\174\42\212\162\167\167\317\3\40\366\231\146\147\147\347\374" "\254\254\254\206\154\176\151\151\151\3\215\106\143\66\200\301" "\236\236\236\17\322\322\322\6\110\364\306\167\337\175\267\334" "\303\303\343\76\0\235\247\247\147\306\167\337\175\267\134\312" "\141\102\53\117\117\317\207\331\331\331\135\225\312\117\40\272" "\175\373\166\123\241\377\16\220\360\244\66\361\161\165\165\315" "\275\171\363\346\170\127\127\327\134\360\133\252\313\366\357\45" "\15\153\311\21\376\367\6\277\65\136\1\370\55\177\76\226" "\350\370\64\370\105\40\127\1\260\147\373\4\0\70\7\376" "\1\176\6\200\136\14\26\6\176\333\240\174\0\237\111\364" "\257\56\244\313\7\277\300\304\127\222\137\11\333\0\10\5" "\337\277\346\200\337\126\113\172\375\176\4\176\353\255\342\355" "\247\24\256\177\245\353\176\55\200\35\62\351\10\374\126\76" "\271\302\147\74\370\67\262\304\255\265\47\112\344\55\4\177" "\204\201\24\13\6\277\245\134\76\370\255\252\3\45\351\76" "\23\354\177\23\100\35\6\213\20\312\375\30\374\326\345\122" "\375\227\303\162\333\162\366\330\205\164\360\107\0\310\332\126" "\341\32\144\261\207\0\236\20\342\143\204\377\42\226\5\176" "\213\63\0\210\27\322\211\133\34\266\221\160\123\360\347\261" "\14\43\141\271\125\167\26\376\354\377\332\200\157\147\112\143" "\57\73\327\324\200\37\47\70\226\57\271\136\64\14\146\65" "\124\265\271\264\3\163\140\16\314\322\267\224\271\306\213\267" "\35\64\233\315\131\20\306\165\21\257\121\243\306\243\76\175" "\372\224\230\363\10\370\146\360\175\265\270\275\347\131\0\116" "\142\332\131\263\146\155\23\336\320\14\66\30\14\271\162\157" "\6\10\337\221\176\176\176\331\302\233\132\353\141\343\154\131" "\166\176\53\356\326\104\104\33\157\336\274\271\61\66\66\366" "\274\267\267\367\37\322\71\265\126\253\55\134\261\142\305\367" "\343\306\215\333\312\306\113\145\113\363\260\362\51\151\323\77" "\347\333\104\314\33\150\34\307\25\311\314\361\255\6\2\321" "\324\251\123\17\31\14\206\34\203\301\220\63\155\332\264\203" "\12\151\225\354\23\21\34\34\174\156\334\270\161\153\211\350" "\51\46\76\13\300\253\213\27\57\336\47\354\172\243\64\237" "\121\34\323\374\375\375\263\245\266\140\371\22\273\310\351\146" "\41\317\333\333\73\247\113\227\56\137\1\360\350\334\271\363" "\327\76\76\76\66\337\352\225\312\21\202\316\317\317\357\306" "\234\71\163\166\21\221\233\12\276\257\311\144\312\334\261\143" "\307\122\42\52\261\170\334\325\325\65\33\300\110\326\126\102" "\36\67\347\316\235\153\55\17\151\76\45\160\225\76\347\77" "\236\13\0\261\261\261\153\332\267\157\237\112\104\256\112\266" "\143\323\226\325\317\226\321\241\62\71\0\323\346\331\64\12" "\155\123\66\136\211\13\0\62\175\214\335\374\343\252\316\3" "\260\13\274\217\1\360\307\344\244\1\160\41\20\231\315\346" "\7\22\277\375\365\332\265\153\337\134\275\172\365\367\236\236" "\236\126\375\166\251\275\52\231\243\306\107\56\36\153\210\150" "\303\245\113\227\326\67\154\330\360\152\130\130\130\242\204\123" "\174\57\250\101\203\6\107\6\16\34\170\124\42\307\232\377" "\132\225\260\156\340\175\71\161\233\350\75\340\217\173\273\55" "\304\135\202\345\366\364\326\374\153\153\76\164\105\140\322\372" "\55\127\37\60\154\330\260\155\34\307\25\271\272\272\76\6" "\100\75\173\366\144\167\65\41\224\315\217\256\154\314\262\270" "\45\42\210\300\157\75\177\5\174\175\177\133\277\176\175\166" "\56\244\70\117\251\40\314\226\257\375\263\120\116\351\366\335" "\312\351\2\3\3\55\266\203\20\377\13\23\172\7\346\300" "\34\130\5\142\142\234\214\163\14\26\23\7\132\203\301\120" "\230\224\224\264\213\210\66\72\73\73\27\34\75\172\364\277" "\304\154\153\322\266\155\333\73\302\166\170\4\176\357\167\203" "\210\211\16\41\307\161\105\23\46\114\70\3\340\105\157\157" "\357\54\42\152\56\227\47\0\274\370\342\213\307\15\6\103" "\256\237\237\137\372\331\263\147\77\124\342\11\223\235\207\237" "\175\366\331\164\51\66\177\376\374\17\315\146\163\361\15\105" "\42\362\42\242\231\104\344\53\174\53\335\0\127\164\144\254" "\71\170\342\167\217\36\75\346\326\257\137\77\203\210\376\174" "\173\203\343\50\71\71\271\232\230\346\344\311\223\156\354\3" "\106\42\152\302\346\55\227\117\267\156\335\276\352\330\261\343" "\125\51\36\30\30\170\121\253\325\26\150\265\332\302\371\363" "\347\257\220\340\135\375\375\375\357\23\121\55\266\134\4\42" "\77\77\277\373\1\1\1\151\370\363\46\365\176\10\17\101" "\105\235\137\170\341\205\57\301\337\224\25\127\266\225\330\152" "\245\143\307\216\113\236\170\342\211\153\104\144\361\326\327\306" "\215\33\227\13\116\44\1\40\255\126\133\270\171\363\346\145" "\42\336\260\141\303\173\261\261\261\253\301\77\160\11\257\123" "\247\316\51\266\374\44\154\67\51\176\103\362\260\225\210\246" "\23\277\372\310\242\255\312\175\30\116\3\42\232\56\367\360" "\125\142\363\301\172\275\76\167\306\214\31\173\104\254\121\243" "\106\107\336\171\347\235\265\0\102\135\135\135\263\272\164\351" "\162\374\370\361\343\133\116\234\70\261\261\156\335\272\51\1" "\1\1\131\0\260\163\347\316\327\331\7\352\202\74\47\147" "\147\347\334\125\253\126\175\4\0\153\327\256\375\300\331\331" "\71\27\354\303\260\77\7\324\22\237\176\375\372\25\237\127" "\252\321\150\212\22\23\23\303\245\355\203\44\67\265\245\170" "\161\66\66\362\122\301\221\352\133\62\23\42\216\210\234\112" "\233\227\134\273\227\321\7\0\276\361\362\362\312\40\311\3" "\127\25\345\377\63\57\242\232\236\236\236\217\1\210\62\136" "\250\126\255\132\56\225\134\374\100\104\244\231\61\143\306\256" "\340\340\340\13\162\172\151\64\232\242\324\324\124\63\144\2" "\273\355\232\214\136\276\355\333\267\137\325\262\145\313\133\42" "\107\253\325\26\355\335\273\267\221\124\316\261\143\307\202\45" "\133\277\263\262\234\0\264\152\325\252\325\266\206\15\33\246" "\213\234\157\277\375\166\233\253\253\153\216\301\140\170\14\340" "\127\360\223\264\156\22\133\130\232\107\301\136\162\145\203\245" "\235\100\104\334\330\261\143\177\363\365\365\275\303\222\374\374" "\374\156\277\365\326\133\107\304\66\52\246\41\42\56\72\72" "\72\255\117\237\76\23\1\240\173\367\356\213\243\242\242\156" "\1\100\353\326\255\257\167\357\336\175\61\0\364\351\323\147" "\142\203\6\15\356\112\332\70\210\310\151\322\244\111\373\0" "\320\244\111\223\366\212\155\116\302\11\251\123\247\316\275\260" "\260\260\123\165\352\324\271\113\104\41\112\345\17\16\16\276" "\70\155\332\264\237\331\233\143\162\216\13\21\151\43\42\42" "\62\172\366\354\71\107\106\126\261\115\342\342\342\276\176\342" "\211\47\156\22\221\241\145\313\226\151\135\272\164\371\122\56" "\137\171\303\226\274\111\131\255\132\265\207\243\106\215\372\65" "\43\43\143\335\153\257\275\226\350\344\344\304\56\12\241\72" "\165\352\44\335\270\161\343\353\51\123\246\374\330\260\141\303" "\142\247\241\136\275\172\207\337\172\353\255\237\262\263\263\327" "\216\30\61\342\20\273\175\143\275\172\365\216\305\305\305\235" "\275\167\357\336\232\310\310\310\163\254\376\215\33\67\376\165" "\305\212\25\113\36\75\172\264\262\137\277\176\373\233\66\155" "\272\233\261\201\305\166\177\214\274\43\317\77\377\374\211\224" "\224\224\325\365\353\327\277\10\313\66\102\315\232\65\73\171" "\353\326\255\325\354\366\123\12\327\277\334\165\277\244\131\263" "\146\111\104\324\107\46\35\65\151\322\344\314\215\33\67\126" "\217\35\73\366\204\207\207\107\146\333\266\155\177\271\171\363" "\346\17\162\171\65\155\332\364\314\215\33\67\276\225\142\15" "\33\66\74\320\253\127\257\243\151\151\151\353\6\16\34\270" "\237\265\43\0\212\210\210\270\224\222\222\262\361\271\347\236" "\73\125\257\136\275\343\42\126\273\166\355\323\203\7\17\76" "\220\222\222\262\262\116\235\72\227\244\372\77\373\354\263\77" "\236\72\165\152\211\30\307\161\134\121\277\176\375\56\347\346" "\346\156\30\65\152\324\1\341\346\253\254\155\155\71\151\321" "\321\321\67\273\166\355\272\34\0\272\166\355\272\54\72\72" "\372\246\210\265\150\321\342\126\174\174\374\22\0\350\330\261" "\143\202\106\243\51\212\215\215\335\11\0\161\161\161\53\243" "\243\243\323\104\356\272\165\353\226\12\333\165\32\115\46\323" "\203\204\204\204\257\131\71\342\126\340\161\161\161\53\331\343" "\23\330\261\66\70\70\70\173\334\270\161\305\66\133\270\160" "\241\247\116\247\223\156\63\126\134\327\72\235\256\150\301\202" "\5\136\14\46\236\23\370\30\374\171\324\235\301\337\324\330" "\57\162\252\322\134\332\201\71\60\7\146\351\133\112\346\355" "\223\65\32\115\341\230\61\143\222\364\172\175\141\327\256\135" "\317\207\206\206\236\143\370\126\347\230\23\46\114\130\332\264" "\151\323\63\251\251\251\313\373\367\357\277\256\175\373\366\147" "\111\170\313\12\0\210\250\101\365\352\325\263\215\106\143\146" "\215\32\65\262\211\50\222\115\17\241\257\61\233\315\167\136" "\177\375\365\203\213\26\55\72\250\323\351\12\153\326\254\231" "\2\313\343\32\54\202\244\317\55\276\241\114\104\316\104\324" "\207\210\76\52\246\12\374\126\255\132\335\326\150\64\205\325" "\253\127\377\103\243\321\110\175\271\151\0\222\230\357\22\175" "\247\304\147\261\234\133\225\34\3\304\337\206\141\303\206\315" "\167\161\161\51\140\343\325\316\61\210\250\71\21\55\26\76" "\315\24\322\312\332\307\323\323\363\56\44\365\106\40\232\74" "\171\362\101\275\136\237\247\323\351\362\343\343\343\257\311\311" "\264\65\246\35\76\174\370\263\310\310\310\114\275\136\137\310" "\360\244\376\207\265\272\263\220\267\146\315\232\265\136\136\136" "\31\32\215\246\320\313\313\53\143\355\332\265\153\30\356\131" "\360\365\42\176\313\312\1\200\66\155\332\254\151\333\266\355" "\45\321\367\264\226\57\0\204\207\207\237\32\64\150\320\121" "\42\362\223\343\313\331\252\165\353\326\353\333\267\157\177\221" "\155\313\62\171\200\235\173\311\340\152\175\316\177\72\27\0" "\334\134\135\135\163\176\373\355\267\261\26\246\122\350\32\336" "\345\327\0\0\40\0\111\104\101\124\173\104\237\116\245\237" "\155\323\257\255\104\16\144\322\110\355\41\167\35\102\206\253" "\330\57\113\363\260\227\177\134\325\171\203\6\15\332\54\334" "\267\273\242\327\353\363\126\257\136\275\222\210\264\4\376\45" "\5\306\157\257\151\66\233\323\117\234\70\61\343\267\337\176" "\153\42\331\152\136\251\137\126\352\347\53\232\3\25\76\262" "\145\233\41\162\73\161\342\304\144\255\126\253\170\157\103\247" "\323\25\356\331\263\247\77\53\307\232\377\132\225\60\223\311" "\224\71\170\360\340\3\31\31\31\153\326\254\131\263\33\0" "\5\5\5\245\34\74\170\160\111\126\126\326\252\351\323\247" "\157\166\166\166\176\54\362\255\371\327\326\174\350\212\300\254" "\265\201\62\364\1\305\133\106\357\336\275\173\135\365\352\325" "\37\7\5\5\261\107\300\225\311\217\256\154\114\322\166\145" "\307\314\360\360\360\304\47\237\174\362\354\271\163\347\66\350" "\365\372\274\247\237\176\372\220\122\333\126\262\257\275\60\153" "\276\66\0\212\211\211\111\32\76\174\370\31\351\126\357\126" "\323\125\45\47\301\201\71\260\377\65\114\214\143\235\122\110" "\2\23\27\351\342\342\122\100\374\136\356\165\14\6\103\1" "\21\171\262\74\42\32\260\150\321\242\137\1\120\140\140\140" "\232\217\217\117\32\203\265\42\242\165\302\247\125\315\232\65" "\157\114\233\66\355\47\130\276\351\301\256\220\171\323\140\60" "\344\205\207\207\147\276\360\302\13\47\110\170\363\20\200\33" "\233\247\370\55\114\166\242\245\330\117\77\375\24\43\171\340" "\41\33\112\63\241\265\146\47\361\273\166\355\332\227\207\14" "\31\362\23\213\163\34\107\137\176\371\145\261\103\260\146\315" "\32\255\214\123\16\151\176\114\210\10\12\12\272\171\367\356" "\335\1\122\234\210\46\344\346\346\256\156\325\252\325\155\351" "\131\110\141\141\141\347\247\114\231\362\43\53\133\304\235\234" "\234\12\372\364\351\363\373\375\373\367\177\270\175\373\366\252" "\201\3\7\356\252\133\267\356\21\326\46\165\352\324\271\164" "\370\360\341\125\367\356\335\133\23\37\37\177\64\42\42\342" "\270\44\177\47\27\27\227\234\237\177\376\331\142\225\72\201" "\50\50\50\50\345\231\147\236\271\172\357\336\275\255\151\151" "\151\333\273\164\351\222\132\253\126\255\363\42\176\366\354\331" "\51\21\21\21\127\264\132\155\276\213\213\113\166\277\176\375" "\366\110\317\23\226\174\323\223\117\76\171\216\175\330\52\255" "\3\153\101\142\263\6\104\64\275\143\307\216\26\17\31\4" "\370\125\275\136\237\67\157\336\274\337\210\250\221\210\271\273" "\273\77\336\260\141\103\257\310\310\310\103\335\273\167\277\100" "\104\317\22\377\326\240\107\142\142\342\273\155\332\264\271\4" "\0\273\167\357\16\221\236\347\324\273\167\357\11\176\176\176" "\331\104\124\123\310\277\206\237\237\137\366\277\377\375\357\161" "\22\375\212\157\302\24\24\24\154\274\174\371\362\217\175\372" "\364\271\142\64\32\213\127\112\152\64\232\242\37\176\370\101" "\172\176\212\264\234\252\46\344\266\36\122\313\161\154\344\243" "\350\60\252\270\261\244\366\241\353\67\155\332\264\71\334\274" "\171\363\33\340\27\170\224\246\374\26\170\267\156\335\316\105" "\106\106\236\4\200\310\310\310\123\161\161\161\227\24\362\4" "\21\65\14\13\13\273\15\140\260\224\243\321\150\212\326\254" "\131\343\202\222\301\115\346\101\151\361\107\257\327\347\66\154" "\330\360\102\112\112\312\10\221\243\325\152\213\276\377\376\173" "\351\131\263\330\270\161\243\207\244\317\260\370\150\265\332\202" "\372\365\353\247\134\271\162\345\35\221\103\104\141\171\171\171" "\137\175\365\325\127\277\164\356\334\371\110\215\32\65\156\11" "\23\143\366\214\231\22\266\56\205\75\113\364\127\371\371\371" "\117\230\114\46\366\141\166\57\167\167\367\334\307\217\37\167" "\220\221\213\367\337\177\377\373\206\15\33\236\6\200\260\260" "\260\53\343\306\215\133\7\0\323\247\117\377\66\54\54\354" "\52\0\64\154\330\360\364\360\341\303\267\113\323\2\300\353" "\257\277\376\51\307\161\364\372\353\257\177\52\47\37\0\326" "\255\133\367\5\0\132\277\176\375\102\45\16\200\301\201\201" "\201\351\104\324\324\132\371\305\64\203\7\17\376\257\360\160" "\115\52\253\330\46\236\236\236\17\276\376\372\353\117\1\340" "\313\57\277\134\340\351\351\131\142\47\2\245\120\302\131\340" "\353\363\63\42\212\41\42\247\364\364\364\256\260\264\77\155" "\333\266\155\56\21\71\237\77\177\276\235\263\263\163\236\210" "\31\14\206\374\344\344\344\70\42\322\22\321\23\104\64\237" "\305\166\356\334\71\232\210\364\333\267\157\237\315\312\164\161" "\161\311\275\176\375\172\35\42\322\356\331\263\247\277\253\253" "\253\364\355\220\22\72\32\14\206\274\343\307\217\367\47\42" "\327\155\333\266\175\54\325\61\51\51\151\14\21\31\110\146" "\305\274\225\261\220\0\314\363\366\366\116\57\54\54\34\44" "\255\33\361\373\367\337\177\237\104\104\56\31\31\31\261\0" "\350\350\321\243\157\12\67\311\113\344\165\350\320\241\211\162" "\230\213\213\113\356\321\243\107\7\20\221\163\142\142\342\163" "\254\35\1\320\346\315\233\347\23\221\353\341\303\207\137\61" "\30\14\305\216\272\136\257\57\270\160\341\102\167\42\162\335" "\260\141\303\2\151\176\173\366\354\171\205\230\363\160\2\2" "\2\36\5\5\5\335\354\327\257\337\233\102\335\54\124\262" "\255\55\47\155\302\204\11\253\102\102\102\156\0\100\150\150" "\150\352\370\361\343\213\157\50\217\34\71\62\241\126\255\132" "\327\0\176\213\356\16\35\72\244\125\257\136\375\36\0\4" "\6\6\336\32\75\172\364\172\246\175\5\104\105\105\335\360" "\362\362\372\43\46\46\46\265\170\274\2\321\360\341\303\67" "\371\373\373\377\41\310\271\365\356\273\357\56\227\350\13\0" "\237\204\207\207\337\26\154\12\2\121\317\236\75\77\10\15" "\15\55\336\255\104\132\327\265\152\325\172\320\253\127\257\217" "\104\54\64\64\364\312\351\323\247\327\157\334\270\361\307\346" "\315\233\137\160\162\162\312\323\353\365\271\135\273\166\375\135" "\344\124\245\271\264\3\163\140\16\314\322\267\144\257\161\341" "\55\321\123\23\47\116\374\250\172\365\352\217\356\334\271\323" "\347\320\241\103\263\104\36\21\155\74\177\376\374\116\235\116" "\127\44\67\307\364\365\365\275\263\164\351\322\371\104\344\102" "\104\261\6\203\41\17\200\121\255\337\46\76\374\325\351\164" "\205\313\227\57\177\223\210\352\376\360\303\17\173\234\235\235" "\363\103\102\102\330\207\277\26\101\322\347\132\33\257\331\274" "\136\45\242\125\104\64\215\210\330\207\172\341\106\243\61\153" "\325\252\125\137\33\215\306\254\143\307\216\315\120\312\127\116" "\256\214\76\42\116\0\310\325\325\365\321\234\71\163\176\225" "\113\147\55\50\161\112\141\333\131\162\176\3\21\105\21\321" "\267\104\364\75\21\75\53\227\227\255\61\115\360\255\206\23" "\277\53\213\342\230\150\245\356\40\321\51\210\370\305\326\253" "\204\357\40\21\73\166\354\330\14\266\176\300\277\365\122\102" "\16\200\36\336\336\336\367\37\74\170\360\262\360\277\37\230" "\143\64\144\370\323\302\303\303\157\21\121\7\360\367\70\162" "\300\57\140\236\156\305\126\275\274\275\275\357\147\144\144\210" "\171\74\53\227\7\370\373\41\354\21\36\26\170\51\174\316" "\177\64\27\0\272\164\351\262\260\105\213\26\267\210\310\203" "\65\225\65\337\127\255\237\135\26\37\272\2\71\374\117\46" "\215\214\75\344\256\103\110\271\304\54\374\223\366\313\162\171" "\220\35\374\343\252\316\43\242\66\55\133\266\274\13\200\6" "\14\30\220\314\366\41\34\307\221\350\267\207\207\207\237\236" "\70\161\342\36\42\62\56\137\276\274\206\225\305\322\154\120" "\352\347\53\232\3\300\246\217\134\102\316\302\205\13\233\13" "\13\142\144\71\315\233\67\277\333\251\123\247\357\131\71\144" "\305\177\255\112\330\305\213\27\277\376\340\203\17\246\327\257" "\137\377\167\67\67\267\54\0\264\173\367\356\317\210\310\114" "\104\332\123\247\116\305\12\174\235\340\363\52\372\327\326\174" "\350\212\300\254\265\201\322\366\1\342\334\215\370\173\370\276" "\253\126\255\132\51\171\241\244\114\176\164\145\143\120\236\307" "\24\353\353\344\344\124\260\150\321\242\131\377\372\327\277\126" "\326\256\135\373\276\213\213\113\216\44\275\245\311\52\20\263" "\341\153\323\265\153\327\206\22\121\333\11\23\46\234\146\37" "\164\133\115\127\225\234\4\7\346\300\376\327\60\61\116\205" "\343\242\252\303\2\0\42\252\13\200\36\76\174\370\236\24" "\143\302\113\276\276\276\17\211\250\211\270\145\223\164\205\114" "\265\152\325\36\176\374\361\307\277\345\346\346\276\23\30\30" "\170\13\300\113\0\136\160\165\165\315\222\350\126\74\331\71" "\165\352\224\247\24\73\165\352\224\247\144\273\132\331\40\116" "\60\231\211\145\211\211\246\214\343\133\262\374\374\267\101\257" "\327\27\34\74\170\360\131\126\276\136\257\57\24\337\346\0" "\200\157\276\371\246\232\144\302\362\47\275\144\234\133\255\132" "\265\316\356\337\277\177\36\21\351\344\312\103\104\232\244\244" "\244\61\222\267\171\332\231\114\246\107\171\171\171\55\130\331" "\114\231\277\43\242\316\104\344\104\104\206\264\264\264\256\116" "\116\116\305\3\252\106\243\51\72\176\374\370\164\141\242\241" "\277\170\361\142\77\26\7\200\276\175\373\216\364\367\367\317" "\42\346\55\127\21\327\152\265\205\347\317\237\37\110\104\172" "\141\40\34\314\256\214\43\42\67\42\32\101\104\53\210\150" "\321\274\171\363\246\270\272\272\132\310\147\277\347\315\233\167" "\274\172\365\352\351\120\330\32\130\122\57\212\365\44\204\127" "\1\334\250\136\275\172\372\274\171\363\216\263\270\311\144\312" "\234\70\161\342\61\222\254\230\327\152\265\105\311\311\311\65" "\365\172\175\376\326\255\133\107\263\371\317\231\63\247\335\253" "\257\276\272\15\0\206\16\35\372\222\311\144\142\7\174\4" "\6\6\336\220\323\53\60\60\60\125\246\14\142\235\162\104" "\344\166\356\334\271\177\263\365\152\64\32\363\306\217\37\37" "\7\313\340\1\306\221\147\345\110\202\232\11\271\254\76\152" "\160\351\165\124\132\175\24\256\123\13\116\323\246\115\223\210" "\350\305\314\314\314\67\153\324\250\161\7\174\377\120\46\275" "\23\22\22\306\11\13\63\302\265\132\155\341\362\345\313\247" "\25\323\144\144\355\330\261\343\163\263\331\234\16\176\105\165" "\61\307\150\64\346\175\364\321\107\45\126\105\317\233\67\57" "\302\144\62\345\132\224\221\331\246\207\370\233\55\157\20\121" "\361\271\47\46\223\51\367\235\167\336\351\54\225\65\176\374" "\370\366\156\156\156\371\122\131\371\371\371\233\306\216\35\233" "\154\64\32\363\22\23\23\337\45\42\27\206\43\266\243\72" "\104\364\34\21\115\135\270\160\341\21\141\73\76\271\176\121" "\166\34\20\266\54\366\220\100\146\47\47\47\213\305\5\142" "\176\243\106\215\72\120\253\126\255\213\0\120\253\126\255\213" "\157\276\371\346\121\142\336\162\145\323\144\144\144\64\365\364" "\364\314\6\240\163\166\166\316\113\116\116\356\40\304\67\166" "\161\161\311\3\340\341\346\346\226\223\230\230\30\47\115\13" "\300\150\64\32\37\316\236\75\373\270\321\150\174\10\300\50" "\303\1\21\371\13\366\252\51\247\3\0\47\17\17\217\373" "\253\127\257\136\52\127\176\326\56\142\232\203\7\17\76\47" "\70\40\6\211\54\326\261\373\230\204\125\303\104\24\112\104" "\163\244\272\51\205\22\175\74\377\77\24\300\6\0\347\134" "\134\134\304\355\367\212\165\74\173\366\154\10\0\34\71\162" "\304\225\135\370\301\161\34\245\246\246\226\270\251\40\142\27" "\56\134\10\0\200\343\307\217\207\260\62\5\31\305\375\225" "\314\170\132\102\107\216\343\50\45\45\305\103\116\36\157\206" "\342\105\124\50\201\51\217\205\24\26\26\166\305\335\335\75" "\167\374\370\361\121\22\233\210\351\350\376\375\373\236\340\63" "\321\332\314\213\310\44\207\151\64\232\242\253\127\257\172\2" "\300\205\13\27\214\322\55\357\117\235\72\125\13\0\316\236" "\75\353\305\142\34\307\121\142\142\242\73\0\234\76\175\72" "\114\232\237\250\233\30\167\362\344\311\371\176\176\176\17\70" "\216\53\22\166\204\220\336\234\56\61\117\203\145\50\226\177" "\351\322\245\66\302\3\140\167\341\6\100\7\21\73\163\346" "\114\147\241\235\172\70\71\71\25\234\74\171\162\270\320\347" "\5\350\164\272\302\323\247\117\167\142\363\135\267\156\335\54" "\0\264\145\313\226\367\331\374\17\37\76\334\125\30\277\103" "\365\172\175\301\365\353\327\143\44\372\66\162\165\165\175\174" "\364\350\321\231\154\72\216\343\212\126\257\136\375\215\102\235" "\141\323\246\115\137\262\155\365\350\321\243\263\210\310\104\104" "\201\304\77\304\370\116\350\47\237\21\71\125\151\56\355\300" "\34\230\3\263\364\55\245\375\162\152\152\152\373\126\255\132" "\375\326\275\173\367\104\42\322\221\360\360\103\344\57\134\270" "\260\221\321\150\314\203\44\20\210\246\115\233\266\263\161\343" "\306\277\203\337\232\177\126\307\216\35\257\21\221\123\151\375" "\266\26\55\132\334\21\166\23\150\107\104\241\333\267\157\337" "\146\155\121\56\333\347\62\107\344\0\374\156\77\253\300\157" "\57\17\221\243\64\246\23\210\102\103\103\317\217\30\61\342" "\120\110\110\310\305\21\43\106\34\42\146\361\215\134\32\71" "\271\62\143\0\45\45\45\355\32\60\140\300\345\6\15\32" "\334\271\163\347\116\63\65\372\310\224\121\66\136\255\155\113" "\43\123\346\77\201\77\73\15\220\314\251\113\44\267\374\376" "\123\107\345\272\263\251\23\43\307\70\142\304\210\103\265\152" "\325\272\60\142\304\210\103\222\67\261\305\140\366\360\360\310" "\110\110\110\130\45\314\57\202\375\374\374\156\111\165\142\370" "\115\115\46\323\303\244\244\244\351\0\140\62\231\36\174\364" "\321\107\7\23\22\22\176\326\353\365\171\62\174\0\360\366" "\360\360\270\277\171\363\346\37\204\74\334\175\175\175\377\220" "\313\343\255\267\336\172\116\364\7\344\312\132\12\237\363\37" "\315\5\240\163\163\163\173\44\307\227\332\216\115\133\116\77" "\33\177\21\7\42\117\311\157\221\312\261\62\337\54\301\265" "\110\46\223\107\171\375\343\252\316\3\60\235\343\70\12\16" "\16\316\26\256\341\316\42\246\327\353\13\307\214\31\363\54" "\200\251\215\32\65\272\106\104\55\0\140\312\224\51\377\142" "\145\250\361\245\53\223\43\106\332\360\221\331\166\240\3\320" "\42\64\64\64\231\335\241\113\302\101\141\141\341\33\315\232" "\65\113\4\360\56\303\261\346\277\126\31\254\167\357\336\357" "\231\315\346\364\247\236\172\352\360\362\345\313\167\100\276\357" "\40\42\342\104\337\117\311\277\266\346\103\127\4\126\234\265" "\114\275\224\241\17\40\142\266\214\116\115\115\255\55\225\135" "\26\77\272\262\61\166\356\42\375\210\34\216\343\150\316\234" "\71\175\114\46\123\126\142\142\342\207\66\336\116\227\265\257" "\275\60\153\276\266\223\223\123\121\361\375\102\311\203\156\153" "\351\64\160\4\107\160\204\52\37\210\50\241\123\247\116\177" "\304\307\307\337\44\242\204\256\135\273\336\352\332\265\353\55" "\42\112\40\242\4\206\232\317\161\134\56\0\270\273\273\117" "\123\20\207\352\325\253\317\32\76\174\370\176\216\343\116\20" "\21\67\175\372\364\127\76\374\360\303\127\330\33\362\217\36" "\75\162\353\330\261\343\170\275\136\77\143\307\216\35\53\174" "\174\174\346\266\156\335\172\120\164\164\164\272\234\114\235\116" "\127\264\155\333\66\57\151\374\326\255\133\175\304\311\205\255" "\300\161\134\17\361\43\367\137\152\23\231\362\3\0\6\16" "\34\70\300\313\313\53\267\145\313\226\26\147\245\232\315\346" "\334\364\364\364\372\342\377\133\267\156\5\233\315\346\134\25" "\252\305\204\205\205\35\234\65\153\326\57\61\61\61\357\161" "\34\127\40\107\342\70\256\150\317\236\75\73\234\235\235\213" "\313\33\24\24\264\64\63\63\323\105\257\327\37\306\237\35" "\74\61\151\372\163\34\267\223\343\270\174\216\343\162\67\154" "\330\160\254\260\260\260\270\157\326\353\365\105\336\336\336\163" "\71\216\113\347\70\56\157\357\336\275\373\40\71\300\373\324" "\251\123\3\332\264\151\163\216\343\270\173\122\235\164\72\35" "\325\256\135\173\25\307\161\171\34\307\345\234\70\161\342\107" "\255\126\313\352\234\315\161\334\47\34\307\365\341\70\156\310" "\341\303\207\375\202\202\202\62\225\14\61\154\330\260\227\322" "\322\322\26\316\234\71\363\270\257\257\357\207\220\74\174\145" "\353\105\372\141\304\210\133\24\177\70\163\346\314\343\151\151" "\151\13\207\15\33\306\76\264\323\144\146\146\32\207\14\31" "\62\122\74\274\134\14\132\255\226\42\42\42\376\50\52\52" "\322\76\365\324\123\113\131\354\353\257\277\376\254\111\223\46" "\277\0\300\256\135\273\46\166\350\320\341\62\3\67\277\163" "\347\216\157\146\146\346\126\126\247\364\364\364\155\267\157\337" "\256\16\300\342\315\72\306\76\304\161\134\366\346\315\233\223" "\364\172\175\161\275\105\106\106\336\336\277\177\377\133\54\367" "\371\347\237\37\345\355\355\375\272\222\355\204\60\231\263\176" "\236\174\251\203\40\157\42\363\137\274\156\216\225\43\257\107" "\370\363\254\114\263\116\247\263\230\234\34\71\162\344\123\216" "\343\176\60\32\215\137\154\331\262\145\215\247\247\347\174\0" "\45\266\341\122\23\236\176\372\351\245\36\36\36\371\101\101" "\101\77\126\253\126\255\240\157\337\276\45\336\234\145\103\134" "\134\334\264\106\215\32\145\166\352\324\351\163\66\276\171\363" "\346\67\257\135\273\126\342\101\351\271\163\347\72\65\157\336" "\374\46\33\307\330\250\47\307\161\3\71\216\133\310\161\134" "\216\210\107\107\107\337\330\277\177\377\233\254\30\0\77\35" "\71\162\344\315\72\165\352\244\113\145\351\164\272\147\146\316" "\234\371\162\174\174\374\371\56\135\272\274\304\161\334\143\206" "\222\307\161\234\33\307\161\347\71\216\133\307\161\334\324\330" "\330\330\241\5\5\5\116\50\105\250\121\243\306\343\141\303" "\206\131\224\157\330\260\141\161\276\276\276\217\244\134\216\343" "\150\306\214\31\143\62\62\62\152\2\170\341\356\335\273\376" "\263\147\317\36\55\116\202\245\301\303\303\343\144\100\100\100" "\126\130\130\330\161\157\157\357\334\210\210\210\375\102\374\351" "\320\320\320\207\41\41\41\7\274\274\274\362\352\327\257\377" "\213\64\155\114\114\314\212\47\236\170\342\366\350\321\243\373" "\267\152\325\352\116\114\114\314\12\271\74\70\216\273\41\174" "\337\224\303\73\165\352\364\171\130\130\330\243\347\237\177\176" "\262\34\56\27\132\266\154\371\243\331\154\316\173\365\325\127" "\373\53\161\70\216\33\305\161\334\25\341\167\12\307\161\243" "\225\270\152\202\217\217\317\201\126\255\132\325\36\77\176\374" "\245\325\253\127\377\54\305\127\257\136\155\4\200\203\7\17" "\272\260\143\201\263\263\163\341\366\355\333\365\162\62\15\6" "\103\341\322\245\113\153\2\300\206\15\33\174\130\114\257\327" "\27\145\147\147\157\21\373\254\242\242\242\165\266\164\164\166" "\166\56\134\271\162\245\57\0\154\332\264\251\272\24\347\70" "\56\253\144\52\333\341\370\361\343\213\136\172\351\245\244\365" "\353\327\57\125\342\230\114\246\373\102\36\205\266\362\342\70" "\116\166\254\321\353\365\105\153\327\256\65\2\300\206\15\33" "\334\245\163\210\155\333\266\231\0\40\41\41\301\323\331\331" "\271\120\214\167\161\161\51\114\110\110\250\6\0\153\326\254" "\51\261\125\231\250\233\30\32\65\152\64\371\326\255\133\237" "\246\247\247\157\36\60\140\300\145\275\136\377\203\222\256\62" "\41\214\375\123\253\126\255\103\176\176\176\71\365\353\327\377" "\311\307\307\47\107\274\206\0\40\62\62\162\257\331\154\316" "\153\327\256\335\127\276\276\276\271\215\32\65\132\354\343\343" "\223\33\25\25\365\255\257\257\157\116\203\6\15\366\262\262" "\336\177\377\375\366\176\176\176\71\123\246\114\371\27\33\337" "\242\105\213\137\274\275\275\363\32\67\156\274\334\337\337\377" "\221\277\277\377\21\26\367\367\367\337\62\160\340\300\344\146" "\315\232\131\34\7\61\162\344\310\163\143\307\216\155\257\124" "\220\301\203\7\167\33\76\174\170\262\370\277\131\263\146\37" "\160\34\227\311\161\134\52\307\161\213\205\171\312\100\216\343" "\112\314\267\34\301\21\34\241\152\7\203\301\120\64\173\366" "\354\352\311\311\311\115\236\172\352\251\215\34\307\65\343\70" "\356\32\313\111\110\110\30\363\362\313\57\237\220\113\277\153" "\327\56\347\372\365\353\147\73\73\73\137\355\321\243\107\275" "\313\227\57\353\304\271\45\307\161\317\210\37\271\377\102\40" "\0\330\271\163\347\7\101\101\101\71\116\116\116\77\161\34" "\327\172\334\270\161\176\265\152\325\262\72\26\211\363\333\361" "\343\307\47\161\34\367\36\0\322\152\265\327\102\102\102\332" "\35\72\164\150\63\124\316\251\265\132\255\107\146\146\146\242" "\116\247\63\146\146\146\46\162\34\367\300\126\32\71\377\122" "\72\337\256\127\257\336\263\337\176\373\355\353\215\32\65\72" "\27\33\33\373\271\132\175\324\204\322\370\304\345\11\37\175" "\364\121\20\0\274\377\376\373\41\145\321\321\36\72\160\34" "\367\40\63\63\63\121\243\321\30\63\63\63\23\265\132\255" "\364\101\5\42\43\43\167\164\353\326\355\332\323\117\77\75" "\212\343\270\302\320\320\320\377\314\230\61\143\257\234\74\360" "\147\262\156\235\74\171\362\301\172\365\352\175\4\0\367\357" "\337\377\346\245\227\136\32\61\165\352\124\267\201\3\7\136" "\220\113\124\257\136\275\37\237\176\372\351\224\370\370\370\321" "\34\307\25\66\151\322\144\113\357\336\275\317\313\161\317\237" "\77\337\73\66\66\66\125\16\103\351\174\316\177\62\27\75" "\173\366\234\22\20\20\360\330\312\75\1\331\120\16\77\373" "\237\36\24\373\230\362\372\307\125\235\327\264\151\323\356\223" "\46\115\112\274\162\345\312\107\157\274\361\106\262\217\217\317" "\162\0\56\0\20\24\24\364\360\307\37\177\174\307\154\66" "\17\337\270\161\343\102\216\343\216\0\300\201\3\7\206\104" "\107\107\337\20\145\250\361\245\53\223\43\6\133\76\62\376" "\174\310\227\257\327\353\177\63\32\215\256\253\126\255\232\51" "\303\323\0\200\106\243\371\142\375\372\365\213\365\172\175\361" "\170\145\315\177\255\112\330\332\265\153\47\356\337\277\177\315" "\326\255\133\77\160\163\163\233\15\0\251\251\251\73\304\276" "\243\240\240\40\341\354\331\263\273\304\173\32\326\374\153\153" "\76\164\105\140\366\14\34\307\201\343\270\216\342\377\321\243" "\107\367\226\136\373\145\361\243\53\33\143\347\56\302\374\260" "\304\134\106\257\327\27\315\232\65\353\343\167\337\175\367\320" "\267\337\176\173\302\140\60\50\75\73\10\123\210\267\33\146" "\315\327\56\50\50\340\70\216\323\13\345\172\222\255\17\253" "\76\172\125\132\231\351\300\34\330\377\32\46\306\251\131\55" "\32\24\24\364\307\270\161\343\276\5\200\220\220\220\264\121" "\243\106\175\57\345\205\206\206\76\150\337\276\375\132\360\203" "\362\104\231\225\67\0\360\262\237\237\337\103\22\266\154\145" "\126\17\133\360\303\303\303\37\304\306\306\256\5\140\176\355" "\265\327\106\352\365\372\2\27\27\227\334\327\137\177\175\43" "\204\125\261\354\352\137\57\57\257\234\21\43\106\364\147\365" "\1\200\221\43\107\16\360\366\366\176\54\243\207\154\71\55" "\242\24\70\326\354\104\40\152\321\242\305\357\75\172\364\70" "\45\305\73\167\356\174\256\151\323\246\373\0\4\2\60\166" "\352\324\351\373\256\135\273\236\225\221\311\346\363\266\311\144" "\312\370\357\177\377\73\107\130\205\46\315\63\35\374\371\63" "\156\0\174\242\242\242\176\212\213\213\273\42\342\104\64\101" "\156\265\62\223\76\3\274\3\357\6\300\43\56\56\156\261" "\273\273\173\361\233\164\1\1\1\17\273\165\353\66\37\374" "\71\257\325\143\142\142\266\104\105\105\335\146\165\66\231\114" "\331\237\176\372\351\373\220\4\2\221\260\12\156\11\370\3" "\316\75\332\265\153\267\136\262\62\356\76\200\117\0\270\3" "\350\344\347\347\167\367\323\117\77\375\136\316\336\222\25\171" "\322\163\131\255\326\57\253\223\334\171\260\54\116\374\133\201" "\33\210\71\33\122\304\74\75\75\163\0\370\104\106\106\146" "\0\330\1\376\301\140\14\200\337\1\320\267\337\176\33\7" "\340\113\57\57\257\254\333\267\157\277\40\246\153\325\252\325" "\177\172\364\350\161\261\204\114\42\247\370\370\370\313\117\74" "\361\304\116\246\14\322\162\204\265\154\331\162\127\114\114\114" "\361\166\335\333\266\155\173\137\257\327\347\203\337\42\326\33" "\100\77\147\147\347\234\11\23\46\374\142\105\316\104\361\154" "\6\53\234\22\366\262\306\41\360\347\65\263\347\12\224\41" "\57\313\125\163\40\362\361\361\171\324\266\155\333\215\0\174" "\143\143\143\327\212\147\345\62\53\353\376\74\27\224\310\143" "\321\242\105\133\174\175\175\157\102\330\176\134\215\336\54\336" "\243\107\217\44\0\324\255\133\267\363\26\64\5\131\51\51" "\51\257\233\114\246\207\54\347\354\331\263\157\326\253\127\57" "\11\100\74\370\366\354\16\40\76\42\42\42\71\51\51\151" "\250\32\275\104\316\371\363\347\7\173\172\172\76\0\177\155" "\173\17\32\64\150\217\253\253\153\216\106\243\51\132\273\166" "\355\47\112\262\210\250\213\277\277\377\175\10\157\144\20\210" "\32\65\152\164\257\145\313\226\333\0\264\21\354\323\50\66" "\66\166\155\124\124\324\35\106\216\245\12\62\72\315\235\73" "\167\203\217\217\317\155\0\35\301\277\115\32\357\343\343\163" "\147\332\264\151\73\344\344\20\21\67\174\370\360\203\6\203" "\41\367\215\67\336\260\70\313\225\225\53\376\36\75\172\364" "\146\0\364\334\163\317\35\147\71\157\275\365\326\116\0\324" "\273\167\357\303\62\151\143\214\106\143\166\132\132\132\177\0" "\110\113\113\33\150\64\32\263\1\264\142\70\66\313\6\40" "\300\303\303\343\341\311\223\47\337\221\342\14\107\156\265\50" "\172\364\350\161\272\105\213\26\322\263\103\24\307\12\71\31" "\152\71\4\176\213\304\317\77\377\374\263\337\176\373\355\251" "\272\165\353\236\224\344\105\15\32\64\70\4\300\273\167\357" "\336\123\132\267\156\175\103\304\242\243\243\157\365\353\327\157" "\14\370\166\71\35\174\337\17\2\121\124\124\324\37\121\121" "\121\273\1\270\67\150\320\340\60\53\263\131\263\146\267\337" "\176\373\355\247\205\164\137\0\370\103\256\254\254\216\55\133" "\266\114\153\333\266\155\2\200\352\365\353\327\77\52\325\261" "\104\61\31\314\312\130\110\104\244\175\370\360\341\377\231\315" "\346\154\0\117\313\244\263\125\337\252\364\150\326\254\331\355" "\216\35\73\176\17\300\73\76\76\176\141\303\206\15\357\311" "\330\330\267\103\207\16\253\133\266\154\131\334\57\307\306\306" "\246\306\305\305\175\15\300\127\152\107\71\73\1\310\4\60" "\155\367\356\335\356\103\206\14\131\52\235\63\11\377\353\211" "\161\314\174\311\334\270\161\343\175\22\371\370\367\277\377\175" "\4\0\365\354\331\363\204\44\37\164\355\332\365\254\223\223" "\123\101\327\256\135\223\0\40\56\56\356\254\106\243\51\212" "\217\217\77\43\341\166\364\364\364\314\272\167\357\336\307\36" "\36\36\331\0\72\260\162\72\167\356\174\216\343\270\242\27" "\137\174\361\220\44\335\47\215\33\67\276\116\104\355\244\345" "\74\167\356\134\361\16\32\254\75\330\162\246\244\244\304\261" "\371\130\13\125\155\56\355\300\34\230\3\263\364\55\331\153" "\274\145\313\226\267\114\46\123\246\301\140\50\130\277\176\175" "\273\300\300\300\224\127\136\171\345\44\303\233\246\321\150\12" "\205\267\375\157\1\170\1\100\361\126\353\104\324\233\210\72" "\21\321\127\104\324\205\210\306\222\160\246\253\234\177\43\175" "\203\101\324\203\370\35\175\106\365\354\331\363\62\307\161\105" "\215\32\65\112\311\312\312\32\317\352\315\6\166\176\73\150" "\320\240\105\304\37\217\263\221\210\176\40\242\361\175\372\364" "\231\56\63\317\55\21\10\266\267\257\265\26\130\233\262\363" "\155\261\214\340\13\336\171\370\360\341\233\324\350\43\47\133" "\105\274\242\337\133\326\170\261\156\232\67\157\376\63\370\61" "\355\67\61\37\53\371\227\230\207\51\325\235\32\235\30\314" "\326\366\317\143\203\203\203\157\23\121\147\213\244\226\237\142" "\276\302\271\257\115\203\202\202\316\317\235\73\367\53\342\267" "\33\226\352\65\61\64\64\364\17\42\172\122\105\36\377\27" "\30\30\170\53\75\75\275\217\134\171\112\343\163\376\223\271" "\0\140\66\233\357\177\363\315\67\113\244\166\2\323\226\344" "\154\130\106\77\273\204\234\112\346\0\226\355\104\316\157\121" "\272\66\154\162\241\302\267\57\217\177\134\325\171\104\64\210" "\210\242\1\200\210\332\20\321\107\44\234\351\72\174\370\360" "\377\0\240\366\355\333\137\376\344\223\117\232\1\60\3\30" "\153\66\233\63\223\223\223\137\27\145\250\361\245\53\223\43" "\251\137\245\276\224\35\133\145\167\350\22\323\232\114\246\14" "\10\367\40\376\375\357\177\277\313\372\65\326\374\327\252\204" "\271\271\271\345\17\34\70\160\2\0\237\166\355\332\45\350" "\365\372\302\306\215\33\357\5\20\15\300\67\72\72\172\253" "\257\257\157\261\357\147\315\277\266\346\103\127\4\306\326\143" "\171\373\0\311\375\75\65\367\365\124\371\321\225\215\131\50" "\250\160\246\353\13\57\274\160\41\70\70\70\375\332\265\153" "\121\261\261\261\73\232\65\153\126\174\157\331\232\357\135\21" "\30\140\325\327\246\226\55\133\156\207\60\157\226\316\367\24" "\323\125\45\47\301\201\71\260\377\65\114\214\143\235\122\110" "\202\30\147\60\30\362\377\363\237\377\164\7\0\147\147\347" "\274\115\233\66\365\222\362\326\255\133\267\130\170\120\100\132" "\255\266\340\375\367\337\147\235\152\0\200\237\237\337\37\263" "\147\317\56\76\227\117\334\126\230\343\270\42\266\343\70\163" "\346\314\214\360\360\360\124\235\116\227\157\60\30\162\172\366" "\354\171\71\55\55\155\131\130\130\130\112\263\146\315\166\261" "\162\11\104\117\74\361\304\265\116\235\72\45\260\372\0\100" "\247\116\235\22\332\266\155\173\105\252\207\122\71\213\377\53" "\164\312\66\354\104\302\140\375\170\305\212\25\357\110\361\335" "\273\167\217\252\131\263\346\75\255\126\133\240\325\152\13\202" "\203\203\157\46\45\45\275\52\223\177\161\271\134\134\134\36" "\13\377\145\35\257\35\73\166\254\251\131\263\146\232\126\253" "\55\60\30\14\217\333\267\157\177\74\53\53\253\217\225\362" "\132\324\373\226\55\133\326\212\351\165\72\135\176\170\170\370" "\325\255\133\267\46\210\370\322\245\113\177\360\366\366\116\27" "\157\210\10\347\105\216\144\345\153\265\332\242\237\176\372\51" "\106\316\46\251\251\251\303\232\66\155\232\244\327\353\163\365" "\172\175\156\223\46\115\222\123\123\123\207\211\370\262\145\313" "\266\230\315\346\373\32\215\246\320\335\335\375\341\230\61\143" "\176\41\242\72\62\366\226\267\273\360\360\325\112\171\113\350" "\44\367\260\225\305\245\166\142\261\216\35\73\136\172\356\271" "\347\76\74\163\346\314\264\320\320\320\233\242\336\343\306\215" "\333\340\357\357\377\110\253\325\26\104\104\104\244\44\47\47" "\57\42\146\33\150\243\321\230\175\366\354\331\1\162\171\236" "\71\163\346\265\152\325\252\75\2\340\304\114\142\212\77\116" "\116\116\271\121\121\121\147\123\123\123\337\142\312\340\273\160" "\341\302\137\275\274\274\322\65\32\115\241\253\253\153\366\340" "\301\203\117\27\73\3\62\162\204\153\354\64\61\147\355\111" "\71\222\217\322\244\112\152\317\126\314\271\2\266\362\222\27" "\303\160\10\104\313\227\57\137\347\351\351\371\100\243\321\24" "\172\171\171\145\156\334\270\361\133\153\162\210\250\316\300\201" "\3\177\257\137\277\376\357\22\236\252\162\155\333\266\155\4" "\0\132\263\146\15\373\340\130\321\6\104\344\74\150\320\40" "\213\207\111\104\344\272\147\317\236\217\302\302\302\316\71\71" "\71\345\351\164\272\274\260\260\260\163\173\366\354\231\101\104" "\256\152\354\311\310\162\71\162\344\310\322\272\165\353\136\160" "\162\162\312\63\30\14\271\117\75\365\324\245\347\236\173\356" "\252\277\277\177\252\65\131\77\376\370\343\222\152\325\252\145" "\1\60\23\210\216\37\77\76\65\40\40\340\266\116\247\313" "\7\370\63\144\243\243\243\117\337\275\173\367\155\106\116\211" "\372\220\321\251\336\320\241\103\367\273\272\272\146\163\34\127" "\344\352\352\232\375\332\153\257\35\42\242\46\12\162\360\370" "\361\343\330\260\260\260\114\351\131\256\254\134\361\367\225\53" "\127\72\150\265\332\242\125\253\126\215\141\71\247\117\237\176" "\112\243\321\320\226\55\133\206\110\323\6\4\4\134\231\74" "\171\362\76\361\346\13\21\71\115\232\64\351\267\200\200\200" "\53\245\51\133\170\170\370\31\224\242\275\260\162\277\377\376" "\373\211\156\156\156\322\205\75\44\345\131\53\273\132\16\201" "\150\334\270\161\247\334\334\334\262\14\6\303\343\356\335\273" "\377\56\325\161\354\330\261\353\135\134\134\262\103\102\102\256" "\136\274\170\261\270\216\223\222\222\306\205\204\204\134\321\152" "\265\5\36\36\36\17\226\57\137\276\231\301\306\6\4\4" "\334\61\30\14\217\337\170\343\215\155\254\314\223\47\117\116" "\14\16\16\116\321\152\265\5\236\236\236\17\326\256\135\273" "\132\256\254\254\216\47\116\234\30\137\275\172\365\164\203\301" "\220\63\144\310\220\37\45\17\23\25\235\64\224\354\347\113" "\244\43\176\167\214\237\153\326\254\171\103\46\235\255\372\126" "\245\307\221\43\107\246\4\6\6\336\322\152\265\5\376\376" "\376\267\116\234\70\361\36\233\256\173\367\356\7\305\61\374" "\342\305\213\243\104\354\332\265\153\257\207\207\207\137\325\351" "\164\371\235\73\167\76\146\55\77\2\321\242\105\213\166\232" "\114\246\7\162\163\40\0\210\210\210\310\24\34\136\20\170" "\7\230\343\270\42\235\116\227\367\374\363\317\377\42\221\217" "\325\253\127\217\0\100\313\226\55\233\310\346\3\0\363\347" "\317\237\15\200\76\371\344\223\217\1\140\326\254\131\237\2" "\240\205\13\27\176\310\162\375\375\375\257\175\360\301\7\77" "\23\221\323\364\351\323\167\373\373\373\137\143\345\314\235\73" "\167\36\0\332\270\161\343\233\154\72\127\127\127\271\271\212" "\70\17\160\141\337\162\227\251\153\42\42\75\233\217\265\120" "\325\346\322\16\314\201\71\60\113\337\222\275\306\57\134\270" "\60\322\317\317\57\13\0\31\215\306\314\21\43\106\374\104" "\104\377\22\171\165\352\324\271\370\365\327\137\37\270\174\371" "\162\102\227\56\135\222\165\72\135\176\333\266\155\17\261\362" "\344\202\332\361\135\324\243\70\216\350\231\121\243\106\235\165" "\167\167\317\41\176\13\127\331\174\224\346\267\342\107\141\236" "\53\253\47\251\333\276\326\152\71\355\245\217\234\154\205\170" "\65\363\350\322\312\54\221\107\303\206\15\57\153\64\232\302" "\46\115\232\134\262\42\273\304\174\103\322\326\324\344\45\33" "\10\66\267\177\216\60\231\114\17\216\35\73\366\261\105\72" "\345\305\314\322\163\137\1\0\146\263\371\16\224\155\30\151" "\62\231\36\36\77\176\174\266\44\217\246\167\63\273\0\0" "\12\360\111\104\101\124\15\162\171\170\172\172\336\133\275\172" "\365\122\261\375\112\313\123\32\237\363\237\314\5\60\64\60" "\60\60\223\210\102\145\350\126\333\166\131\374\154\71\71\225" "\314\201\114\32\310\341\326\342\45\161\266\372\30\113\171\345" "\360\217\253\72\17\12\101\360\107\157\166\351\322\45\315\333" "\333\73\123\270\247\226\127\273\166\355\13\7\17\36\374\126" "\222\227\115\137\272\62\71\45\212\42\123\66\271\170\45\316" "\230\61\143\366\213\343\223\324\257\261\346\277\126\45\154\346" "\314\231\173\135\135\135\37\151\64\232\302\340\340\340\133\173" "\367\356\335\272\162\345\312\331\236\236\236\367\264\132\155\101" "\140\140\340\355\3\7\16\174\45\362\255\371\327\326\174\350" "\212\300\330\172\54\157\37\300\316\67\124\336\327\53\316\327" "\232\37\135\331\230\162\313\375\263\254\15\32\64\70\337\272" "\165\353\113\116\116\116\171\1\1\1\177\34\71\162\144\212" "\210\131\363\275\53\2\3\224\175\155\0\324\274\171\363\163" "\132\255\266\100\156\276\247\230\256\146\315\232\231\340\337\276" "\150\3\240\215\237\237\337\3\21\164\140\16\314\201\125\54" "\6\41\10\35\253\325\67\135\211\150\111\261\23\102\264\230" "\210\74\245\74\42\362\47\242\217\171\12\255\40\242\346\45" "\362\42\172\237\175\340\105\374\341\334\353\204\117\53\106\226" "\73\21\215\42\242\357\205\374\236\41\376\240\356\321\104\324" "\317\102\67\176\200\134\154\66\233\63\131\175\0\300\154\66" "\147\316\233\67\357\13\251\36\112\345\264\26\10\104\315\232" "\65\113\127\262\223\150\103\42\132\110\62\147\42\20\221\47" "\21\115\45\176\225\364\112\342\337\102\55\61\231\143\35\53" "\342\127\166\53\356\101\117\104\65\210\150\212\40\157\61\361" "\53\302\225\157\42\260\53\243\371\364\65\211\350\135\41\375" "\367\202\315\153\62\170\50\361\53\371\126\11\234\267\311\162" "\145\33\204\170\127\5\233\30\210\137\31\270\124\370\14\42" "\42\3\203\327\42\242\131\104\264\206\210\26\210\155\100\152" "\123\45\273\113\363\263\206\253\341\60\145\222\175\350\176\344" "\310\221\267\175\175\175\357\255\137\277\76\230\210\306\21\321" "\152\42\372\234\210\232\23\321\64\301\26\43\332\265\153\267" "\1\100\62\123\216\371\44\234\263\131\102\56\221\53\21\175" "\112\62\53\367\211\167\270\277\43\242\227\131\273\11\351\352" "\22\321\114\241\156\26\22\321\377\261\272\312\264\233\342\153" "\314\12\107\256\215\225\260\205\214\275\304\353\330\152\136\12" "\345\267\310\113\370\16\41\376\54\314\65\102\31\153\252\220" "\363\57\42\172\335\102\226\312\162\21\221\267\140\353\352\114" "\234\125\33\20\121\7\226\43\304\171\21\321\110\42\132\56" "\174\106\22\163\326\261\55\173\112\144\171\20\321\60\42\132" "\106\104\337\20\177\36\353\323\323\246\115\333\146\103\57\77" "\42\372\214\210\14\2\307\110\104\223\211\277\276\305\25\252" "\3\111\174\120\51\271\46\224\332\276\200\265\45\242\57\210" "\150\255\360\335\101\312\221\310\342\210\277\116\144\367\242\222" "\364\173\116\304\137\77\65\44\62\134\204\166\120\342\314\150" "\42\232\110\302\271\71\14\77\212\210\46\226\246\154\304\237" "\53\155\265\275\0\262\216\13\210\357\103\77\227\304\53\336" "\14\224\223\241\226\43\350\32\103\174\137\271\230\210\272\227" "\270\176\210\132\20\321\227\202\335\135\30\314\115\210\133\51" "\134\133\241\14\346\112\374\70\262\230\210\132\113\144\272\23" "\77\126\211\351\2\131\335\244\66\25\322\124\43\176\161\313" "\67\173\366\354\171\236\75\273\274\4\137\346\372\267\20\47" "\223\216\210\232\20\321\124\151\72\45\331\112\171\131\301\214" "\104\64\111\50\363\24\262\274\1\113\202\335\113\214\341\304" "\317\121\106\21\77\377\171\116\111\177\46\256\16\21\175\102" "\62\163\40\101\247\121\104\264\212\341\213\375\354\162\342\317" "\142\227\366\77\176\102\33\360\147\363\21\260\60\1\13\27" "\376\107\10\377\103\44\72\115\46\242\306\214\235\47\261\162" "\126\255\132\325\305\144\62\345\21\221\217\44\335\42\245\153" "\207\210\70\361\174\34\13\73\362\337\32\321\116\154\76\326" "\102\125\233\113\73\60\7\346\300\54\175\113\366\32\47\42" "\227\360\360\360\273\223\47\117\116\44\176\56\134\274\110\123" "\300\207\13\175\241\73\361\363\234\345\104\364\42\53\117\56" "\224\142\356\42\366\65\231\0\146\1\160\33\63\146\314\134" "\341\234\153\131\131\26\145\51\71\277\125\234\347\132\323\223" "\210\236\40\242\61\342\267\255\362\225\110\157\47\175\344\144" "\313\305\313\310\257\220\63\135\211\150\50\361\176\314\20\53" "\262\25\37\14\11\337\35\1\344\202\77\247\117\51\57\331" "\40\224\165\14\133\77\22\314\203\210\346\221\345\331\165\177" "\246\57\351\127\327\42\336\157\321\112\170\63\225\154\110\374" "\375\201\171\342\134\303\126\36\72\235\256\360\327\137\177\155" "\314\120\32\0\310\146\164\50\215\317\371\117\346\66\46\242" "\51\12\134\233\155\233\210\352\156\334\270\161\225\223\223\123" "\141\142\142\342\367\144\333\317\226\365\65\53\213\43\226\213" "\115\303\352\313\342\326\342\331\70\311\107\225\157\117\145\364" "\217\377\16\74\271\100\40\272\176\375\372\207\104\364\2\361" "\327\371\12\101\306\10\42\62\113\145\220\12\137\272\62\71" "\114\275\51\371\310\66\357\133\24\327\267\345\370\44\275\267" "\153\315\177\255\112\130\43\342\175\232\325\104\364\16\21\371" "\20\177\217\173\16\361\276\337\44\261\136\5\276\333\352\325" "\253\277\166\162\162\52\114\112\112\372\232\54\375\153\105\37" "\272\42\60\266\36\355\324\7\224\270\117\257\324\56\44\371" "\52\372\321\225\215\131\153\273\114\372\67\210\250\77\361\367" "\334\46\111\144\53\372\336\25\201\1\312\276\66\157\146\32" "\104\374\263\204\22\363\75\245\164\134\227\56\135\222\122\123" "\123\213\317\36\163\161\161\361\71\174\370\160\20\201\250\153" "\227\256\147\35\230\3\163\140\25\207\161\340\67\2\27\177" "\263\161\142\220\213\223\13\26\362\210\66\262\373\244\253\225" "\121\326\74\11\104\40\324\63\233\315\307\63\62\62\372\1" "\130\53\140\317\233\315\346\145\367\356\335\153\314\161\334\171" "\153\162\325\344\111\40\152\327\266\335\331\275\277\356\255\247" "\144\47\45\71\266\344\227\305\366\377\53\270\65\273\227\106" "\136\171\165\22\332\231\161\321\242\105\313\77\370\340\203\106" "\327\257\137\137\14\340\147\0\347\301\73\273\265\0\164\7" "\360\206\277\277\277\313\301\203\7\277\10\14\14\174\267\64" "\355\337\36\145\250\114\116\131\372\7\133\234\362\136\247\366" "\324\133\55\267\42\354\240\210\23\65\341\70\356\104\125\152" "\7\152\71\366\110\143\157\235\112\301\1\204\363\254\125\364" "\363\4\240\334\155\131\312\51\253\274\312\304\204\370\74\0" "\23\0\54\151\336\274\371\206\314\314\314\346\27\57\136\64" "\251\221\47\174\273\3\30\311\161\334\64\42\122\145\107\173" "\135\323\52\60\100\162\256\271\225\164\212\355\240\264\72\124" "\104\35\226\101\216\117\124\124\324\152\167\167\367\260\335\273" "\167\207\224\46\177\37\37\237\234\73\167\356\264\3\360\273" "\150\107\2\141\314\350\61\35\76\373\354\263\377\346\346\346" "\152\155\311\142\145\126\245\271\264\3\163\140\16\314\322\267" "\144\257\161\16\234\263\136\257\317\76\166\354\330\123\15\32" "\64\330\11\46\224\167\116\256\166\354\46\20\276\133\372\335" "\216\221\43\107\76\161\377\376\375\152\356\356\356\331\243\107" "\217\116\236\62\145\112\264\222\254\322\316\117\312\342\377\331" "\153\156\134\136\331\225\221\126\141\76\3\250\33\117\111\340" "\211\337\26\166\271\237\161\77\164\321\242\105\153\336\173\357" "\275\206\71\71\71\56\225\61\167\372\53\370\142\232\206\15" "\32\146\170\170\170\354\331\267\157\337\120\0\131\61\61\61" "\253\335\334\334\352\377\364\323\117\301\366\366\157\376\27\270" "\326\322\146\144\144\204\260\155\253\64\362\377\112\216\332\153" "\240\74\175\237\75\175\303\277\63\217\100\4\202\13\307\161" "\71\345\315\353\177\221\363\167\301\254\361\345\372\211\277\132" "\367\212\354\3\376\352\262\331\3\253\212\72\11\230\65\137" "\33\120\236\63\51\247\43\176\45\270\67\223\246\220\343\270" "\257\205\316\253\227\3\163\140\16\254\342\60\361\202\27\177" "\127\324\304\253\254\3\230\132\236\370\375\336\173\357\355\371" "\342\213\57\152\337\272\165\253\46\201\250\106\365\32\151\103" "\207\16\75\67\171\362\344\16\366\320\121\260\147\77\160\130" "\246\144\247\322\14\150\266\360\362\14\170\377\44\334\232\335" "\113\43\257\274\72\25\353\103\124\47\51\51\151\320\320\241" "\103\233\237\72\165\252\341\203\7\17\114\205\205\205\132\235" "\116\227\357\343\343\223\376\334\163\317\235\377\344\223\117\166" "\153\64\232\31\34\307\345\224\246\375\333\243\14\225\311\261" "\107\377\40\345\330\243\57\261\227\336\152\271\25\141\207\312" "\222\125\231\34\173\244\261\267\116\245\340\210\177\155\365\363" "\66\171\62\134\271\120\42\175\131\257\215\312\304\10\104\23" "\306\117\70\376\351\247\237\326\315\311\311\61\370\371\371\335" "\137\265\152\325\362\330\330\330\341\252\372\127\20\305\266\213" "\135\373\353\257\277\76\67\176\374\370\244\217\76\372\250\201" "\332\164\366\270\246\125\326\231\332\61\376\37\365\320\125\247" "\325\25\172\173\173\77\334\273\167\357\244\210\210\210\317\113" "\223\377\300\201\3\217\56\135\272\264\51\11\157\240\200\220" "\0\16\317\150\70\15\275\362\312\53\311\213\27\57\256\257" "\126\337\252\66\227\166\140\16\314\201\131\372\226\142\137\111" "\40\174\74\347\343\220\203\7\17\376\274\166\355\332\6\34" "\307\75\146\322\330\145\116\256\224\126\344\210\175\15\10\341" "\0\206\0\10\2\177\166\354\167\34\307\35\123\222\125\332" "\371\211\215\171\101\271\157\10\332\113\237\362\352\134\326\264" "\12\363\31\100\305\170\52\56\346\146\27\165\113\333\232\126" "\253\55\214\215\215\115\373\371\347\237\3\53\143\356\364\127" "\360\305\64\27\316\137\230\322\263\147\317\1\347\316\235\13" "\4\100\215\33\67\276\274\163\347\316\131\136\136\136\337\332" "\153\314\377\137\342\332\110\113\154\333\52\215\374\277\222\243" "\366\32\50\117\337\147\57\335\377\356\274\312\266\327\77\215" "\363\167\301\154\360\113\364\23\177\265\356\25\331\7\374\325" "\145\263\7\126\25\165\42\330\364\265\1\205\71\223\265\164" "\162\171\331\4\35\230\3\163\140\366\305\304\337\162\174\253" "\27\252\35\364\50\17\137\252\67\21\65\45\313\55\7\247" "\22\121\123\173\351\250\306\116\112\162\154\311\57\213\355\377" "\127\160\133\266\125\53\257\274\62\54\256\31\176\153\217\136" "\304\157\43\363\275\260\105\304\167\302\226\26\155\210\210\223" "\113\127\136\375\252\32\307\36\375\203\224\143\217\276\304\136" "\172\253\345\126\204\35\52\113\126\145\162\354\221\246\64\151" "\355\311\41\225\333\352\251\341\111\271\162\37\271\364\125\165" "\16\41\215\27\266\315\131\104\374\266\320\323\110\330\242\113" "\215\74\41\175\117\342\267\302\262\171\66\235\332\361\101\215" "\356\152\60\42\371\155\266\144\307\160\53\355\240\264\72\124" "\104\35\226\126\216\260\155\323\164\222\34\47\240\252\176\210" "\72\22\321\72\213\70\136\346\72\22\316\167\124\253\157\125" "\151\353\16\314\201\71\60\171\254\170\174\343\277\335\210\250" "\173\151\145\225\107\17\71\175\112\233\117\151\347\47\145\361" "\377\354\131\206\362\310\256\214\264\162\363\231\322\214\247\112" "\34\146\56\265\202\210\372\50\345\145\113\116\131\365\250\114" "\276\230\206\370\155\164\337\24\374\316\357\210\350\125\42\322" "\225\126\246\203\153\73\255\264\155\225\106\376\137\311\121\173" "\15\224\247\357\263\247\157\370\167\346\125\266\275\376\151\234" "\277\13\146\215\57\327\117\374\325\272\127\144\37\360\127\227" "\315\36\130\125\324\111\30\337\25\175\155\153\163\46\153\351" "\376\37\266\206\174\254\347\114\277\367\0\0\0\0\111\105" "\116\104\256\102\140\202" }, { ":resources/help_button.png", 2196, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\40\0\0\0\20\10\6\0\0\0\167\0\175" "\131\0\0\5\110\172\124\130\164\122\141\167\40\160\162\157" "\146\151\154\145\40\164\171\160\145\40\145\170\151\146\0\0" "\170\332\255\127\133\222\344\50\14\374\347\24\173\4\4\10" "\301\161\304\53\142\157\60\307\337\24\320\125\335\325\65\23" "\63\33\143\167\331\30\13\75\62\45\231\166\363\307\277\313" "\375\203\203\162\51\56\261\224\134\163\366\70\122\115\65\50" "\6\305\237\343\334\311\247\175\335\107\270\257\360\374\145\336" "\321\307\213\200\251\210\173\74\217\171\136\171\305\74\77\27" "\110\272\363\355\353\274\223\176\365\224\253\350\103\363\125\30" "\315\262\271\161\345\312\125\24\303\231\247\373\354\352\135\247" "\351\123\70\367\267\172\330\257\271\235\127\257\317\111\0\306" "\140\350\213\301\205\31\51\172\134\203\131\211\360\40\326\250" "\270\363\276\326\160\146\25\317\347\132\336\143\347\36\303\27" "\360\312\117\260\363\172\45\342\127\50\234\317\127\40\277\140" "\164\347\211\337\143\267\21\172\141\215\256\345\57\57\312\341" "\344\171\174\306\156\215\262\326\74\321\151\312\100\52\273\33" "\224\277\52\366\10\202\200\63\305\275\54\343\24\374\30\143" "\331\147\305\131\20\142\7\143\3\154\66\234\335\121\245\0" "\264\27\45\32\244\264\150\356\173\247\16\27\123\230\101\160" "\17\241\207\270\347\112\224\120\103\337\244\44\73\151\5\1" "\75\303\305\2\126\72\130\213\230\16\17\137\150\333\255\333" "\136\247\2\313\203\40\31\10\312\10\53\276\235\356\335\344" "\377\71\37\212\326\262\324\45\62\60\313\301\12\176\5\313" "\151\270\141\314\331\25\122\40\204\326\305\224\67\276\373\164" "\17\132\237\207\21\33\301\40\157\230\13\2\124\337\216\212" "\306\364\314\255\270\171\216\220\143\237\234\77\245\101\62\256" "\2\100\4\333\14\147\50\202\1\237\51\62\145\362\22\202" "\20\1\307\2\176\24\236\207\230\102\3\3\304\34\6\271" "\5\156\142\314\40\247\4\263\215\65\102\133\66\160\70\323" "\150\55\40\202\143\216\2\152\120\100\40\53\45\106\376\110" "\52\310\41\345\310\311\61\163\146\341\302\225\65\307\234\62" "\347\234\45\133\217\122\211\222\204\45\213\110\221\52\132\142" "\111\205\113\56\122\112\251\105\153\250\21\55\214\153\256\342" "\152\251\265\252\302\250\102\265\142\265\102\102\265\205\26\133" "\152\334\162\223\126\132\155\332\221\76\75\165\356\271\113\57" "\275\166\35\141\304\201\362\37\171\210\33\145\324\241\223\46" "\122\151\246\311\63\117\231\145\326\251\13\271\266\342\112\213" "\127\136\262\312\252\113\37\254\135\126\277\262\106\57\314\375" "\232\65\272\254\31\143\151\313\311\223\65\114\213\174\250\40" "\153\47\154\234\201\261\220\10\214\213\61\200\204\16\306\31" "\352\71\245\140\314\31\147\276\6\24\5\7\260\106\154\344" "\14\62\306\300\140\232\24\170\321\203\273\47\163\277\344\315" "\161\372\43\336\302\317\230\163\106\335\337\140\316\31\165\227" "\271\357\274\275\141\155\350\376\242\304\115\220\125\241\141\352" "\343\102\143\133\211\165\104\235\61\153\37\370\160\161\304\107" "\63\214\304\177\64\166\357\136\160\105\266\106\146\55\76\124" "\40\250\43\153\213\311\3\376\304\171\15\172\63\164\357\247" "\337\14\101\101\143\340\6\133\333\167\116\133\271\237\32\152" "\113\214\320\42\100\235\332\206\24\65\207\224\206\304\306\175" "\261\244\265\163\160\170\26\244\112\237\26\170\153\43\27\226" "\276\52\317\321\140\102\21\107\314\305\251\5\303\262\111\62" "\143\372\335\330\157\331\162\277\141\314\154\15\40\5\36\165" "\174\4\6\335\274\155\341\173\144\351\345\174\354\232\55\105" "\26\23\162\10\352\241\77\60\122\166\342\201\221\24\31\63" "\332\43\236\26\251\256\44\272\142\321\71\146\361\161\240\146" "\64\33\212\316\233\31\216\203\371\30\106\210\2\353\330\233" "\14\333\56\131\33\365\202\255\2\162\234\47\32\234\171\52" "\271\231\33\263\216\35\127\307\333\354\32\27\154\171\150\202" "\355\131\26\117\41\36\315\2\325\314\224\206\332\166\307\254" "\40\333\25\112\174\65\243\27\303\5\165\333\35\214\334\163" "\150\43\40\202\326\213\366\244\10\163\1\15\144\157\103\266" "\266\152\101\65\213\234\155\53\263\365\57\330\206\230\32\336" "\313\155\10\31\21\31\173\141\307\374\175\124\217\137\35\330" "\317\326\15\35\217\345\123\47\22\325\4\175\350\356\271\144" "\130\22\330\33\333\50\151\347\67\111\160\201\335\270\200\172" "\260\33\155\53\310\42\344\270\2\230\52\47\372\17\262\77" "\243\63\321\15\14\35\164\51\56\252\25\31\276\231\170\221" "\105\253\315\255\200\315\32\132\317\333\347\71\321\75\146\33" "\1\117\24\240\346\170\361\311\61\170\215\346\142\245\110\15" "\172\15\232\233\331\337\261\261\164\13\15\60\140\127\353\321" "\352\352\216\364\50\344\115\350\327\221\272\205\200\0\316\56" "\224\272\75\337\204\74\251\371\30\5\30\267\14\343\144\300" "\15\344\270\25\325\103\332\275\210\77\120\61\116\73\174\260" "\56\262\355\40\276\176\145\371\170\75\221\230\240\260\15\2" "\225\156\342\135\154\140\262\315\126\26\156\371\263\354\247\345" "\47\151\312\61\226\3\352\141\27\354\2\164\25\320\241\326" "\146\71\221\22\112\127\52\112\134\43\356\335\112\3\51\201" "\106\54\320\202\216\354\237\242\217\345\230\72\310\243\372\117" "\71\343\103\62\222\151\153\202\146\26\166\63\3\336\30\2" "\177\300\75\230\270\324\135\151\147\32\205\155\323\3\323\15" "\270\140\127\173\127\336\171\40\322\47\232\23\300\235\226\67" "\3\177\226\365\323\262\161\166\335\330\130\6\115\374\27\60" "\54\14\44\7\217\302\16\2\76\26\0\335\32\241\334\114" "\154\232\30\144\361\51\357\310\67\36\225\315\214\300\27\236" "\255\341\243\144\235\142\341\213\202\177\50\334\177\31\325\70" "\206\6\73\373\175\0\0\0\6\142\113\107\104\0\377\0" "\377\0\377\240\275\247\223\0\0\0\11\160\110\131\163\0" "\0\56\43\0\0\56\43\1\170\245\77\166\0\0\0\7" "\164\111\115\105\7\343\5\11\22\62\72\335\62\371\253\0" "\0\2\315\111\104\101\124\110\307\245\225\277\116\34\111\20" "\207\277\236\151\233\77\66\153\54\220\61\27\355\111\210\5" "\211\5\207\150\341\71\160\310\23\234\37\303\176\1\137\106" "\304\63\20\370\204\203\111\10\40\270\135\113\100\166\143\316" "\301\6\34\213\11\14\3\142\252\312\101\357\16\263\336\275" "\73\201\107\32\225\324\277\372\272\246\253\152\272\334\336\336" "\36\123\123\123\306\3\236\116\247\343\16\17\17\311\262\354" "\101\374\330\330\230\363\137\376\376\142\377\234\236\2\16\260" "\173\331\54\313\254\62\121\141\346\305\213\356\226\367\333\43" "\313\256\315\213\12\242\6\150\127\120\316\316\72\264\132\115" "\322\64\145\144\144\204\152\365\127\126\126\226\231\234\174\336" "\347\247\246\230\131\227\247\320\316\316\116\151\265\76\221\246" "\177\165\371\52\53\53\257\230\234\174\126\260\316\201\232\342" "\266\267\267\155\174\154\274\110\113\273\335\346\375\357\357\1" "\250\325\152\334\336\336\222\246\51\336\173\336\374\366\206\351" "\351\351\302\367\62\273\302\1\17\342\35\134\136\135\341\125" "\15\121\1\300\314\370\360\307\7\0\66\67\67\231\233\233" "\303\314\70\70\70\140\147\147\207\243\343\43\326\327\327\213" "\140\246\212\341\176\212\367\42\71\252\12\300\315\315\15\365" "\172\235\345\345\145\252\325\152\261\76\73\73\13\300\305\305" "\105\261\6\40\22\2\377\14\357\315\214\74\27\234\203\70" "\366\324\353\165\314\302\151\362\134\0\343\363\347\23\0\146" "\146\146\20\21\314\300\71\60\13\65\17\176\340\275\147\151" "\251\36\352\253\206\231\240\152\234\234\334\361\275\130\106\340" "\275\344\202\76\222\241\277\211\251\322\154\65\371\370\161\227" "\305\305\105\152\363\363\305\251\1\162\21\234\271\177\347\115" "\151\376\331\144\167\267\313\327\346\121\355\347\303\137\40\62" "\4\66\366\367\367\111\222\204\325\325\125\32\215\6\261\367" "\175\276\52\332\127\212\377\345\343\101\336\347\42\250\52\206" "\341\160\205\355\234\167\110\222\204\332\102\215\265\265\65\242" "\70\32\360\223\74\307\234\53\352\132\326\276\236\177\45\111" "\22\26\26\26\150\254\65\360\261\107\124\12\35\163\110\236" "\343\125\4\221\274\124\327\140\343\50\346\365\353\15\306\307" "\237\0\206\364\152\127\362\23\355\145\40\357\236\372\116\213" "\343\210\215\215\15\236\76\175\2\306\100\14\160\210\52\136" "\125\21\321\201\24\172\357\231\230\250\340\275\37\252\227\273" "\177\230\36\307\236\112\45\360\345\316\377\221\217\104\102\17" "\344\77\330\64\115\331\332\332\342\370\370\170\250\336\263\345" "\267\254\225\371\377\142\303\105\44\62\160\117\133\310\123\270" "\152\207\350\320\253\275\53\65\326\235\126\346\103\263\16\316" "\2\125\305\275\173\367\326\106\107\107\37\70\214\256\161\316" "\10\374\75\207\221\101\166\175\215\377\366\355\322\235\167\316" "\15\107\367\313\373\233\61\164\154\140\234\271\356\36\101\174" "\374\370\221\133\132\252\363\313\313\227\106\4\20\241\12\121" "\304\235\105\303\214\212\40\322\10\42\12\261\335\156\273\357" "\61\116\163\12\122\305\101\35\0\0\0\0\111\105\116\104" "\256\102\140\202" }, { ":resources/knob.png", 3597, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\71\0\0\0\71\10\6\0\0\0\214\30\203" "\205\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\2\52\107\24\113\252\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\15\165\111\104\101\124\150\336\315\233\175\150\33\147" "\236\307\177\363\314\214\64\63\172\265\106\157\143\215\255\27" "\153\222\270\215\335\30\207\224\246\245\204\334\145\333\222\153" "\163\107\60\107\373\317\266\145\357\150\32\322\376\121\112\141" "\257\20\350\36\113\103\70\112\151\272\260\167\120\16\112\133" "\50\144\273\307\246\264\127\366\350\55\107\377\10\107\262\216" "\233\127\217\354\165\245\110\266\144\131\262\144\275\314\150\336" "\366\217\235\361\216\124\305\161\336\75\360\143\300\36\75\317" "\363\321\357\345\171\236\171\276\302\104\121\204\373\165\11\202" "\200\0\200\6\0\135\24\305\366\375\352\27\273\27\220\202" "\40\340\0\20\63\315\3\0\214\151\264\355\61\35\0\332" "\0\320\4\200\26\0\324\0\40\7\0\45\121\24\215\55" "\11\51\10\2\5\0\103\0\20\67\341\210\333\154\252\155" "\302\146\1\340\272\50\212\332\3\207\24\4\301\11\0\217" "\0\300\50\0\340\0\200\335\254\117\363\176\63\157\31\0" "\40\1\300\64\0\134\25\105\121\277\357\220\146\110\216\2" "\300\70\0\70\155\203\357\272\117\116\116\172\307\306\306\374" "\251\124\312\37\213\305\174\221\110\304\257\50\212\272\264\264" "\124\313\345\162\265\114\46\123\75\167\356\134\165\156\156\256" "\335\3\157\277\327\1\340\234\50\212\13\367\15\122\20\4" "\36\0\36\5\0\267\11\263\156\44\111\242\43\107\216\244" "\17\35\72\264\153\154\154\354\221\201\201\201\310\46\232\64" "\26\27\27\27\316\235\73\167\341\263\317\76\373\343\347\237" "\177\136\60\341\214\36\330\145\0\370\77\121\24\353\367\24" "\122\20\204\207\0\140\2\0\220\151\30\0\240\321\321\121" "\367\373\357\277\177\160\317\236\75\173\51\212\162\337\111\12" "\324\152\265\345\157\276\371\346\367\107\216\34\371\337\106\243" "\241\332\140\165\0\220\115\320\302\135\207\64\313\377\36\0" "\110\230\271\207\0\0\261\54\113\175\370\341\207\7\236\172" "\352\251\147\34\16\7\163\67\253\142\255\126\133\376\370\343" "\217\177\363\326\133\157\235\265\101\352\0\240\1\300\37\105" "\121\274\172\327\40\315\312\371\30\0\260\46\40\1\0\350" "\355\267\337\236\170\365\325\127\177\352\166\273\3\33\175\136" "\327\165\60\14\143\335\0\0\60\14\3\14\303\0\41\4" "\30\266\161\255\132\132\132\232\177\375\365\327\377\343\253\257" "\276\52\230\200\26\350\237\314\134\325\357\10\322\364\340\136" "\33\40\11\0\304\247\237\176\372\334\323\117\77\75\205\335" "\140\204\232\246\201\256\353\240\151\67\237\1\54\130\34\307" "\1\41\324\367\31\131\226\133\357\275\367\336\257\116\234\70" "\61\155\102\252\246\145\104\121\374\376\116\41\307\154\363\36" "\31\12\205\134\137\174\361\305\221\321\321\321\275\375\236\127" "\125\165\123\140\33\1\343\70\16\70\216\377\270\72\31\206" "\176\346\314\231\317\136\174\361\305\63\46\240\142\336\277\27" "\105\61\173\133\220\202\40\14\1\300\210\351\75\7\313\262" "\256\157\277\375\366\235\150\64\272\275\237\347\356\4\356\106" "\260\375\74\173\366\354\331\63\317\76\373\354\177\232\220\12" "\0\164\0\340\274\50\212\325\176\155\241\15\0\375\246\7" "\255\34\200\323\247\117\37\11\205\102\333\55\40\313\72\235" "\16\250\252\332\225\167\167\152\272\256\203\242\50\240\50\12" "\364\366\267\173\367\356\277\373\340\203\17\366\233\305\310\32" "\337\66\163\141\262\71\110\101\20\60\23\120\265\0\77\371" "\344\223\177\110\247\323\373\172\73\124\24\345\107\205\345\156" "\232\246\151\353\51\140\267\103\207\16\375\363\261\143\307\166" "\330\212\20\6\0\374\255\170\162\300\266\210\326\337\171\347" "\235\311\307\37\177\374\245\336\216\124\125\5\135\327\357\271" "\365\3\65\14\203\70\166\354\330\317\367\355\333\307\232\220" "\32\0\270\5\101\240\157\12\151\126\123\257\371\41\65\20" "\10\20\207\17\37\176\335\60\14\324\333\371\275\362\336\106" "\41\154\67\222\44\375\307\217\37\377\47\253\54\230\221\27" "\334\214\47\335\146\254\253\0\0\247\116\235\72\354\164\72" "\7\355\337\342\203\0\264\203\332\307\302\363\374\376\243\107" "\217\156\263\101\222\275\336\104\175\162\221\62\77\140\114\116" "\116\172\306\307\307\137\352\7\170\77\302\264\237\131\171\152" "\33\17\366\302\13\57\34\265\245\227\6\0\256\215\74\111" "\332\342\33\216\37\77\376\22\102\310\153\157\24\303\260\7" "\346\105\313\60\14\353\2\35\30\30\230\174\367\335\167\37" "\263\55\22\220\231\166\0\175\66\266\270\371\240\1\0\370" "\340\340\340\101\373\334\207\343\370\372\262\354\101\137\126\64" "\131\327\304\304\304\263\0\360\173\233\67\11\163\376\374\53" "\244\40\10\326\36\120\7\0\170\363\315\67\167\222\44\31" "\265\67\104\222\144\127\303\17\362\302\60\254\153\54\54\313" "\76\356\363\371\234\265\132\255\141\102\342\375\302\25\331\266" "\64\150\367\356\335\77\261\207\204\365\355\155\25\263\40\255" "\361\41\204\174\157\274\361\306\36\33\3\146\326\230\256\160" "\305\254\177\2\0\21\16\207\367\331\103\225\40\210\55\23" "\252\275\313\111\353\172\350\241\207\376\6\0\276\261\203\2" "\200\101\364\171\257\2\301\140\220\246\151\172\233\275\1\204" "\320\226\203\104\10\165\101\172\74\236\107\154\216\323\373\25" "\36\213\0\177\362\311\47\171\115\323\60\173\374\333\367\202" "\133\325\223\70\216\263\0\340\260\105\45\364\13\127\0\0" "\174\150\150\150\320\236\324\133\251\252\366\333\220\333\122\52" "\100\222\244\123\121\24\334\316\204\154\225\25\0\0\30\206" "\301\7\6\6\6\173\326\211\133\322\54\110\133\161\164\356" "\334\271\63\340\166\273\361\164\72\275\356\315\365\352\72\65" "\65\5\74\317\43\135\327\11\227\313\25\356\205\174\120\53" "\234\133\135\1\215\216\216\106\165\135\107\212\242\140\123\123" "\123\177\365\244\141\30\370\336\275\173\11\115\323\60\247\323" "\211\67\32\15\265\167\307\261\125\275\331\273\73\251\124\52" "\52\115\323\50\221\110\300\313\57\277\114\244\323\351\365\155" "\67\161\340\300\1\62\30\14\142\44\111\22\245\122\251\326" "\273\245\332\252\220\75\233\152\143\146\146\246\346\164\72\221" "\307\343\101\173\366\354\161\2\0\146\25\36\64\60\60\100" "\271\335\156\231\44\111\50\24\12\125\173\102\133\33\343\255" "\130\164\354\343\222\145\271\51\111\222\36\16\207\21\307\161" "\100\121\224\13\0\232\353\325\225\246\151\46\221\110\164\312" "\345\62\226\315\146\53\366\322\154\305\376\126\273\172\137\232" "\65\233\315\72\115\323\230\317\347\3\216\343\20\216\343\56" "\0\320\55\110\203\40\10\27\317\363\265\371\371\171\54\237" "\317\67\44\111\222\110\222\244\154\337\22\70\34\216\55\5" "\51\111\122\27\144\275\136\137\241\151\32\202\301\40\332\265" "\153\27\201\141\230\63\223\311\30\126\116\52\24\105\171\5" "\101\300\303\341\260\101\323\264\176\375\372\365\153\366\274\154" "\265\132\133\56\37\233\315\146\127\321\231\237\237\277\342\361" "\170\40\24\12\141\43\43\43\356\256\171\62\223\311\150\0" "\40\77\361\304\23\54\307\161\230\337\357\327\147\147\147\57" "\331\33\150\64\32\133\152\352\120\125\25\332\355\166\27\344" "\371\363\347\147\2\201\200\21\217\307\21\307\161\101\135\327" "\327\272\346\111\115\323\252\301\140\60\302\363\74\260\54\253" "\315\314\314\174\257\252\252\156\65\332\351\164\100\222\244\55" "\343\305\265\265\265\56\350\162\271\134\154\66\233\225\150\64" "\152\360\74\217\30\206\211\266\132\255\152\27\44\105\121\313" "\156\267\233\113\44\22\50\26\213\151\30\206\325\213\305\142" "\276\147\16\332\22\200\232\246\101\265\132\355\362\142\66\233" "\315\260\54\253\16\17\17\33\143\143\143\76\202\40\310\112" "\245\122\357\202\314\144\62\55\204\220\74\61\61\301\46\22" "\11\43\34\16\53\27\56\134\70\153\157\250\331\154\156\211" "\260\255\124\52\135\363\243\44\111\312\305\213\27\317\15\16" "\16\252\361\170\334\110\44\22\203\232\246\55\365\175\307\203" "\20\312\162\34\67\222\110\44\200\347\171\245\120\50\314\55" "\56\56\56\331\101\313\345\362\3\175\133\327\351\164\176\344" "\305\53\127\256\134\246\151\272\76\64\64\244\46\223\111\334" "\345\162\15\33\206\221\353\13\71\73\73\173\231\141\230\201" "\207\37\176\330\33\217\307\65\216\343\344\351\351\351\363\366" "\6\333\355\66\24\213\305\7\26\246\371\174\276\153\51\327" "\154\66\145\121\24\57\306\142\61\45\231\114\32\333\267\157" "\37\301\161\174\171\161\161\261\277\47\235\116\147\307\60\214" "\357\206\207\207\307\122\251\224\76\74\74\54\153\232\266\224" "\313\345\12\366\160\131\135\135\205\225\225\225\373\36\246\205" "\102\1\44\111\352\372\333\354\354\254\30\14\6\333\361\170" "\134\115\46\223\104\40\20\110\352\272\376\207\15\137\56\177" "\371\345\227\323\64\115\243\35\73\166\204\122\251\224\312\363" "\274\174\365\352\325\231\172\275\336\266\173\264\130\54\102\275" "\136\277\157\136\264\372\263\217\41\237\317\257\124\52\225\77" "\305\343\361\116\52\225\322\122\251\324\66\204\320\45\267\333" "\135\332\20\162\142\142\102\63\14\343\167\321\150\164\64\225" "\112\101\62\231\224\203\301\140\153\172\172\372\212\54\313\232" "\275\223\134\56\7\245\122\351\236\207\150\66\233\205\162\271" "\334\5\270\272\272\332\236\233\233\273\306\363\174\47\225\112" "\51\311\144\222\362\371\174\241\325\325\325\377\356\25\73\365" "\75\360\71\171\362\344\214\303\341\230\25\4\141\307\310\310" "\210\232\110\44\44\227\313\125\273\164\351\322\102\357\326\246" "\130\54\102\66\233\275\47\73\25\111\222\140\156\156\16\152" "\265\32\364\324\5\355\332\265\153\363\221\110\104\116\46\223" "\235\124\52\5\261\130\154\47\102\350\67\74\317\127\172\171" "\360\327\136\173\355\107\220\343\343\343\106\261\130\234\211\104" "\42\373\50\212\12\53\212\322\121\125\225\256\325\152\130\265" "\132\105\176\277\337\155\30\6\146\37\114\245\122\261\346\333" "\73\176\175\251\50\12\54\56\56\102\76\237\7\105\121\272" "\376\47\313\262\46\212\342\165\257\327\273\72\62\62\322\330" "\266\155\333\132\72\235\36\244\151\372\17\36\217\347\223\176" "\222\265\33\112\303\166\355\332\325\372\341\207\37\176\31\14" "\6\177\265\175\373\166\207\252\252\262\141\30\162\66\233\135" "\271\174\371\62\244\323\351\10\111\222\310\276\123\51\24\12" "\260\274\274\14\241\120\10\274\136\57\220\44\171\313\13\156" "\173\121\353\275\32\215\106\147\141\141\141\311\357\367\257\45" "\223\311\116\72\235\356\214\214\214\104\335\156\267\370\365\327" "\137\377\372\106\232\274\233\35\247\143\245\122\351\21\204\320" "\373\331\154\266\236\311\144\150\121\24\7\362\371\274\173\155" "\155\315\235\110\44\102\56\227\353\206\44\14\303\200\317\347" "\3\206\141\200\44\111\40\111\162\375\170\134\125\125\120\125" "\25\24\105\201\106\243\1\265\132\15\144\131\276\341\130\126" "\126\126\332\305\142\161\205\145\331\166\74\36\137\23\4\241" "\46\10\2\36\12\205\352\271\134\356\147\343\343\343\245\333" "\202\264\100\213\305\342\337\42\204\176\221\317\347\265\114\46" "\3\363\363\363\236\102\241\340\252\126\253\224\307\343\361\205" "\303\141\6\307\161\154\63\336\262\40\67\273\11\227\145\131" "\133\132\132\152\52\212\262\26\16\207\345\241\241\241\146\52" "\225\152\244\323\151\47\313\262\225\166\273\175\224\347\171\161" "\43\145\345\115\225\214\242\50\32\221\110\344\177\346\347\347" "\113\34\307\175\110\20\204\333\341\160\310\24\105\21\205\102" "\1\55\57\57\327\256\135\273\326\16\4\2\356\140\60\110" "\335\114\223\263\131\361\204\246\151\106\261\130\154\255\255\255" "\265\274\136\257\302\161\134\207\347\171\71\231\114\52\361\170" "\334\357\367\373\57\146\62\231\327\36\175\364\321\342\315\244" "\243\233\222\153\212\242\250\247\122\251\357\277\373\356\273\177" "\24\4\341\327\44\111\246\151\232\156\273\335\156\314\345\162" "\101\271\134\66\152\265\232\136\255\126\333\36\217\207\362\170" "\74\16\232\246\361\333\71\251\152\66\233\112\275\136\127\132" "\255\126\233\242\50\65\32\215\252\221\110\104\341\171\136\36" "\36\36\326\170\236\367\62\14\363\345\351\323\247\177\376\312" "\53\257\264\67\243\215\275\45\155\235\40\10\350\324\251\123" "\314\324\324\324\273\222\44\35\54\26\213\172\56\227\353\54" "\55\55\71\112\245\222\243\122\251\340\215\106\3\227\44\11" "\1\0\301\60\14\311\60\14\111\20\4\42\111\22\21\4" "\201\41\204\60\313\123\252\252\352\212\242\350\212\242\350\255" "\126\113\151\265\132\35\202\40\164\212\242\164\257\327\253\261" "\54\253\206\303\141\45\26\213\251\261\130\314\31\16\207\65" "\14\303\376\215\343\270\177\7\0\155\263\342\337\333\21\20" "\142\0\200\137\270\160\141\222\145\331\137\64\233\315\321\122" "\251\244\55\56\56\52\305\142\221\250\126\253\104\275\136\307" "\133\255\26\152\267\333\110\121\24\314\234\337\60\303\60\0" "\41\144\115\75\6\102\10\20\102\6\101\20\340\160\70\164" "\232\246\15\227\313\245\371\375\176\75\20\10\50\221\110\104" "\345\70\216\16\205\102\210\44\311\63\242\50\376\162\377\376" "\375\327\341\57\362\356\115\277\164\272\135\51\50\146\56\44" "\360\113\227\56\75\355\365\172\377\265\321\150\4\53\225\12" "\224\313\145\271\132\255\32\265\132\15\157\64\32\250\325\152" "\241\116\247\203\51\212\202\231\353\115\314\54\100\6\216\343" "\100\222\244\341\164\72\165\227\313\245\273\335\156\335\347\363" "\151\54\313\22\301\140\320\21\10\4\60\247\323\171\76\227" "\313\375\313\336\275\173\57\132\307\374\267\52\337\276\43\345" "\262\5\173\360\340\101\347\311\223\47\237\242\50\352\260\141" "\30\7\32\215\6\64\32\15\243\136\257\167\326\326\326\64" "\111\222\14\131\226\61\123\22\203\231\347\53\206\303\341\60" "\34\16\7\60\14\203\271\134\56\302\347\363\221\36\217\207" "\144\30\146\125\327\365\377\252\327\353\247\47\46\46\376\337" "\22\44\335\256\66\375\156\310\263\355\242\136\174\164\164\324" "\361\321\107\37\75\26\14\6\377\36\307\361\237\150\232\26" "\122\125\325\51\313\262\244\252\152\107\67\347\16\34\307\11" "\207\303\341\40\111\322\111\20\104\3\307\361\234\44\111\277" "\135\130\130\370\335\63\317\74\163\305\46\224\322\357\124\170" "\177\67\205\366\166\131\66\262\31\376\334\163\317\121\317\77" "\377\174\224\343\70\316\343\361\104\65\115\353\324\353\365\105" "\121\24\227\116\234\70\121\132\130\130\120\154\147\375\226\146" "\301\270\133\277\52\270\127\77\231\350\247\107\357\67\201\366" "\323\233\303\335\376\311\304\237\1\373\76\244\60\366\117\332" "\65\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/logo.png", 14190, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\302\0\0\0\252\10\6\0\0\0\377\106\220" "\6\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\13\15\2\345\152\254\315\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\40\0\111\104\101\124\170\332\355\175\147\167\343\110" "\266\144\200\236\24\145\313\166\317\316\173\377\377\77\355\356" "\171\263\323\335\345\345\351\111\140\77\360\306\144\60\225\11" "\200\44\100\226\252\231\347\350\224\221\4\46\62\257\215\353" "\22\234\326\261\126\13\100\333\376\276\2\260\264\277\247\247" "\243\71\374\112\116\107\160\260\325\0\320\1\60\0\320\7" "\320\5\320\264\257\6\200\31\200\147\0\43\0\343\23\103" "\234\30\341\127\134\135\0\27\0\56\215\21\132\71\147\77" "\5\360\0\340\316\30\42\73\35\337\211\21\136\373\152\3" "\270\2\160\15\340\314\44\177\231\225\1\230\0\370\146\14" "\261\72\35\345\211\21\136\253\31\164\6\340\235\151\201\306" "\216\317\131\1\370\16\340\13\200\305\351\130\353\133\315\323" "\21\324\42\134\56\0\374\16\140\270\7\23\220\241\206\146" "\112\115\305\241\76\255\23\43\374\364\353\32\300\157\246\21" "\252\322\270\175\273\253\23\63\234\30\341\125\254\53\323\4" "\203\32\264\314\300\174\216\23\63\324\144\313\236\126\65\353" "\14\300\107\223\336\125\256\14\300\34\153\4\51\261\347\237" "\174\273\212\127\353\164\4\225\254\56\200\367\306\14\125\255" "\231\21\377\330\376\276\60\115\260\300\11\122\75\61\302\117" "\152\136\136\143\215\16\125\261\122\0\117\130\103\247\243\223" "\31\164\142\204\327\262\6\0\336\124\350\157\75\0\370\154" "\232\340\264\116\76\302\253\71\277\267\0\172\25\75\217\101" "\264\23\23\234\30\341\125\255\253\12\115\42\140\215\10\115" "\116\307\172\62\215\136\333\331\135\126\150\22\245\346\24\127" "\355\23\64\340\120\246\114\374\232\206\375\73\265\77\371\163" "\51\134\112\107\323\276\267\72\61\302\151\305\126\267\102\223" "\210\4\273\250\340\76\73\366\325\66\302\156\300\245\174\267" "\204\330\63\141\10\30\3\246\302\20\13\323\120\143\163\332" "\127\47\106\70\55\177\45\306\4\125\7\316\126\366\354\254" "\44\343\264\155\37\114\353\46\261\267\340\122\274\223\35\367" "\101\330\66\305\337\0\256\75\61\302\356\353\254\342\347\145" "\45\356\203\65\15\144\102\145\200\135\211\136\327\2\353\232" "\210\133\254\41\334\277\115\326\353\211\21\166\67\143\172\65" "\74\267\33\221\276\115\143\274\163\254\223\360\372\250\76\75" "\146\12\340\7\200\173\323\4\177\253\240\335\337\225\21\222" "\75\57\272\213\172\362\264\272\306\144\251\60\333\271\175\25" "\25\364\354\243\211\36\261\116\365\176\372\73\43\37\277\372" "\152\212\3\311\367\125\273\167\145\322\60\225\177\227\171\146" "\243\6\346\154\213\175\177\151\137\175\324\227\34\231\141\135" "\370\363\31\177\163\330\266\365\213\276\123\327\114\211\201\60" "\100\303\276\232\42\165\227\160\20\342\314\210\141\46\177\137" "\345\20\120\273\206\275\167\0\374\323\376\74\104\162\335\30" "\353\0\336\337\76\166\361\53\61\102\333\10\377\334\230\240" "\133\140\112\320\361\344\352\143\35\40\133\332\327\334\114\205" "\221\375\175\346\375\156\35\104\332\264\75\34\142\245\346\24" "\237\242\330\277\0\43\44\160\205\361\127\330\256\56\70\357" "\114\132\146\237\137\30\23\114\14\115\171\66\302\351\377\2" "\316\344\330\174\203\123\267\214\127\316\10\15\43\324\33\270" "\162\306\72\244\64\375\213\163\143\212\105\215\316\362\41\27" "\65\235\177\246\231\60\271\37\221\376\245\321\223\327\270\347" "\41\326\31\237\127\107\44\310\24\256\132\214\201\255\327\162" "\236\53\254\241\322\47\143\162\145\200\206\234\51\315\104\256" "\205\61\17\301\206\305\211\21\216\347\7\134\141\335\35\342" "\230\204\267\60\373\372\316\174\207\26\326\325\151\157\136\321" "\131\246\142\26\45\236\100\111\105\103\360\337\32\365\236\211" "\166\144\143\262\245\200\17\47\323\250\146\46\170\207\165\332" "\163\373\310\173\371\212\165\233\225\245\110\316\247\55\65\224" "\242\126\11\34\262\165\110\323\262\221\363\275\274\237\155\213" "\311\224\331\173\214\305\207\32\343\225\105\245\133\257\160\257" "\117\166\21\304\327\17\255\25\156\261\206\34\127\1\355\232" "\226\144\204\251\75\343\321\10\211\160\357\65\252\257\171\256" "\333\242\110\304\217\272\64\15\61\65\155\371\364\132\264\304" "\153\162\370\50\165\237\114\362\74\210\263\327\70\320\273\144" "\246\11\236\3\347\170\155\16\165\21\143\22\266\144\323\256" "\225\230\27\123\143\204\66\136\347\242\146\353\232\166\354\333" "\335\254\176\166\15\361\32\221\17\252\342\271\21\317\23\326" "\360\46\63\102\353\366\15\356\214\140\165\135\155\151\262\335" "\7\230\11\342\210\252\51\322\170\245\14\301\373\140\156\124" "\142\357\227\235\30\241\76\4\144\152\204\265\260\303\257\343" "\275\346\346\33\334\12\201\166\114\23\154\323\306\45\201\113" "\163\136\105\314\246\7\321\20\163\271\253\344\25\2\34\314" "\231\72\263\77\331\211\343\304\10\65\242\40\314\241\247\315" "\132\245\46\370\212\65\344\230\32\61\336\230\26\170\263\203" "\46\142\332\207\316\105\150\170\16\350\34\153\254\177\44\214" "\261\24\346\171\155\61\240\246\11\213\41\134\341\317\352\304" "\10\365\255\271\35\160\277\42\142\131\141\235\224\366\103\210" "\366\55\134\157\323\135\316\260\41\146\303\300\154\352\241\151" "\227\36\66\313\43\123\361\43\36\341\42\334\254\32\143\14" "\340\65\334\145\42\357\336\66\146\130\374\54\33\173\355\253" "\211\315\252\54\72\316\157\215\270\252\60\207\276\171\232\340" "\367\12\65\116\346\335\3\35\113\202\2\23\373\112\43\167" "\307\12\65\176\235\41\37\32\75\244\206\136\10\212\104\15" "\220\210\171\370\34\360\267\116\214\120\122\222\262\56\267\13" "\127\233\333\226\377\157\211\224\114\366\144\202\317\236\71\304" "\6\277\275\3\22\23\63\141\11\14\370\321\136\75\33\246" "\234\253\246\251\313\147\212\151\317\31\34\272\67\265\377\313" "\274\57\245\277\354\304\10\345\45\176\133\56\265\357\61\101" "\35\357\60\203\13\232\221\11\316\1\374\57\34\47\242\235" "\311\276\64\150\25\322\24\172\156\335\0\143\324\25\270\133" "\231\351\366\135\200\200\127\23\145\376\231\31\241\5\227\126" "\75\64\2\74\204\203\270\60\115\160\53\222\167\10\340\37" "\25\230\132\125\22\335\334\44\356\43\134\153\310\105\316\75" "\67\5\271\241\11\325\106\165\51\345\13\323\236\17\310\257" "\345\320\2\44\6\41\227\342\27\145\47\106\130\137\26\323" "\237\317\53\164\170\267\145\202\357\42\151\207\146\16\135\374" "\204\302\202\346\337\30\16\102\36\331\337\263\10\121\45\342" "\127\235\301\325\156\124\21\310\143\36\322\30\353\130\211\246" "\171\153\303\201\236\370\163\104\317\350\13\61\75\374\157\313" "\10\75\270\316\161\165\226\47\346\231\103\364\11\110\100\147" "\246\11\316\137\211\206\47\34\373\54\66\372\24\371\60\245" "\246\110\14\214\361\265\65\314\256\213\231\0\367\160\5\107" "\203\202\147\62\243\225\46\126\236\351\367\313\61\2\63\112" "\157\120\355\224\231\155\231\340\23\326\121\143\36\374\300\64" "\301\25\136\347\112\205\21\10\271\316\113\60\105\42\176\330" "\300\356\244\57\32\173\27\346\364\273\355\261\342\157\141\337" "\243\357\242\376\13\363\261\356\160\0\210\365\230\214\120\325" "\300\275\52\230\340\213\240\103\324\116\37\15\45\372\25\372" "\303\256\104\102\217\345\13\5\66\71\243\331\147\236\131\323" "\333\222\176\62\101\223\236\75\64\211\147\316\140\333\205\10" "\304\324\356\345\53\152\206\131\223\43\62\301\45\326\303\65" "\6\107\44\266\205\151\202\133\154\106\154\377\141\32\352\330" "\114\220\325\160\107\53\173\357\261\20\346\252\244\324\45\124" "\335\23\37\256\215\374\230\12\321\244\37\160\101\300\74\346" "\353\303\105\355\151\106\375\0\360\147\235\232\341\30\214\300" "\140\327\73\123\211\307\132\63\161\214\365\242\77\32\203\36" "\203\350\231\114\270\300\146\37\322\26\252\217\7\220\311\46" "\106\240\23\221\326\131\1\261\222\156\72\142\106\235\231\104" "\157\173\202\206\371\131\363\55\5\345\33\63\115\333\266\227" "\77\355\256\126\277\2\43\164\214\310\336\342\270\51\1\23" "\143\202\73\271\360\16\200\17\266\267\103\153\202\324\210\220" "\120\350\34\256\51\157\113\10\356\322\114\207\72\316\216\132" "\141\4\227\321\313\175\224\41\334\4\353\126\64\67\202\144" "\175\201\113\122\334\145\275\63\301\324\261\347\375\201\232\232" "\220\35\222\30\273\106\150\357\216\310\4\231\150\202\173\141" "\202\226\61\350\66\223\157\150\167\163\246\131\163\307\375\74" "\1\370\313\366\364\44\16\155\46\114\262\20\247\167\11\27" "\101\257\122\220\21\312\34\30\303\21\132\155\43\34\25\366" "\337\343\215\235\141\103\300\207\7\354\27\27\130\330\271\16" "\305\114\172\106\15\261\206\103\21\144\147\7\102\253\323\61" "\126\164\250\51\227\330\56\220\332\23\373\135\106\235\357\215" "\170\37\114\232\317\205\70\233\45\30\211\135\346\236\121\16" "\46\114\105\122\127\235\141\353\133\12\155\161\140\57\341\2" "\232\215\200\226\350\233\137\325\205\113\122\274\303\376\320\47" "\205\300\231\275\153\23\56\335\376\325\61\102\142\352\115\235" "\237\143\372\4\267\330\154\127\362\106\324\157\21\321\176\65" "\342\147\272\67\141\100\46\226\75\300\341\367\51\134\207\210" "\220\4\375\141\373\331\26\15\241\126\143\355\105\335\325\154" "\252\51\330\207\225\22\232\176\306\133\254\141\346\304\316\351" "\113\205\266\374\22\56\73\267\5\67\263\341\125\61\102\303" "\314\241\217\107\326\4\143\141\202\230\15\32\133\123\123\363" "\137\260\331\43\65\217\151\350\170\216\341\22\341\22\221\162" "\267\266\237\371\236\214\315\34\250\103\371\172\72\223\341\102" "\230\202\116\362\314\234\332\131\15\302\364\34\16\316\145\333" "\231\312\146\67\324\111\234\224\266\37\216\254\11\350\30\253" "\275\332\100\271\164\152\302\253\273\250\171\146\216\162\316\0" "\203\106\367\266\237\52\210\145\156\104\331\75\60\360\221\210" "\371\244\71\140\337\366\164\216\363\264\340\100\336\365\122\120" "\252\156\340\147\177\52\106\270\64\46\70\146\127\206\251\60" "\201\366\360\271\262\275\365\12\16\377\73\134\55\302\276\210" "\320\114\210\245\52\325\236\12\221\34\273\340\237\232\163\131" "\23\43\164\341\122\135\174\37\346\32\56\2\336\26\315\334" "\50\313\30\165\111\352\236\151\203\301\21\57\46\4\221\302" "\16\363\103\211\275\115\115\272\125\225\353\302\254\314\252\35" "\75\302\235\307\156\3\63\106\175\303\321\63\73\73\215\175" "\54\340\246\7\261\375\347\5\134\14\206\145\256\23\361\347" "\16\312\10\64\73\56\161\274\310\365\4\153\110\362\336\373" "\177\146\222\236\225\70\370\207\32\234\262\171\15\357\312\324" "\211\143\304\77\102\16\174\135\317\137\301\365\215\272\203\113" "\346\143\76\324\0\256\166\5\246\101\156\204\11\350\267\115" "\20\50\156\252\203\21\256\114\33\34\353\122\106\160\161\2" "\170\232\340\67\224\253\51\140\132\300\153\130\231\61\354\34" "\207\253\234\13\231\150\165\147\211\262\274\223\351\333\63\221" "\374\337\340\322\274\65\335\233\305\111\104\235\336\12\352\304" "\164\361\61\200\264\152\106\350\333\207\165\42\27\226\211\243" "\345\167\134\256\202\40\150\247\372\321\307\263\55\230\200\32" "\145\376\223\21\174\136\147\352\205\355\371\320\116\263\132\1" "\207\142\70\377\363\62\271\263\11\66\313\171\331\123\251\47" "\46\324\300\276\250\141\246\0\106\125\62\102\23\56\225\132" "\67\311\374\31\246\4\57\304\371\121\56\256\312\131\173\364" "\210\205\231\244\303\55\210\344\147\152\65\302\54\335\163\173" "\227\61\326\61\210\105\100\53\34\313\34\245\363\332\250\121" "\63\60\172\117\141\232\346\60\313\34\256\1\234\326\270\17" "\355\54\331\215\217\246\324\171\225\214\100\357\275\141\233\320" "\354\306\231\107\130\324\10\155\254\353\200\367\225\144\143\143" "\2\337\34\142\132\307\5\266\113\31\136\325\350\370\155\253" "\141\337\30\201\363\214\172\46\371\36\2\202\340\230\65\302" "\44\262\247\232\30\255\51\246\374\66\276\10\375\1\146\5" "\60\157\253\57\250\123\263\52\106\150\331\3\331\22\121\235" "\222\64\102\154\11\252\51\306\31\231\143\354\333\364\314\44" "\335\45\235\372\330\332\100\323\324\207\201\263\316\42\32\361" "\21\233\221\340\103\152\207\1\326\161\231\257\166\47\32\153" "\110\214\101\166\145\324\314\103\305\50\104\27\133\76\3\242" "\55\36\205\271\206\255\12\71\166\144\52\273\314\214\336\26" "\326\121\335\17\330\57\226\361\14\227\254\246\113\63\111\167" "\165\312\352\124\363\145\230\340\167\204\323\324\47\21\64\153" "\12\340\337\160\231\240\147\246\115\252\30\247\265\215\126\30" "\300\101\251\154\346\225\1\370\277\173\240\160\115\117\140\336" "\330\331\214\20\357\373\124\206\61\250\55\246\125\5\324\10" "\237\55\113\276\324\173\373\332\207\21\47\342\30\147\36\23" "\274\263\257\144\17\6\33\35\311\324\270\62\307\76\64\125" "\163\145\10\311\50\307\76\136\211\51\60\26\344\344\120\314" "\300\32\350\236\330\341\55\270\226\234\151\100\50\322\171\315" "\162\316\104\123\367\165\160\44\323\74\32\1\247\172\53\116" "\73\344\142\246\347\307\75\231\140\204\160\232\57\231\154\337" "\4\277\151\300\351\346\45\263\343\103\307\223\342\125\60\315" "\205\151\202\101\104\330\334\143\163\100\111\31\373\170\42\204" "\163\314\325\11\0\21\155\270\64\234\176\104\230\166\215\136" "\6\106\340\314\362\155\212\263\313\306\17\324\110\155\171\377" "\122\302\360\220\71\100\15\333\354\276\232\340\11\141\210\224" "\271\115\125\114\324\11\71\357\114\315\270\261\347\123\210\50" "\36\115\144\154\327\317\174\157\177\352\105\53\363\323\364\334" "\146\315\215\171\206\70\156\105\40\315\325\41\34\64\315\312" "\66\266\361\151\333\73\116\5\30\140\160\226\167\377\377\214" "\221\56\340\240\120\76\203\377\276\204\153\51\131\252\233\307" "\41\31\201\271\107\335\34\107\206\152\55\213\354\155\145\132" "\140\24\140\62\112\226\52\162\156\250\322\127\201\317\270\364" "\176\266\147\377\267\20\115\262\155\151\42\333\111\166\340\6" "\210\134\303\365\122\232\41\74\240\44\217\350\10\123\147\102" "\20\35\34\267\141\103\313\316\52\305\313\26\367\154\371\162" "\16\227\116\321\225\373\144\331\47\317\225\321\145\232\141\54" "\374\327\326\237\135\73\307\51\134\111\352\23\2\360\370\241" "\114\243\363\210\312\147\17\236\73\263\175\71\351\161\342\71" "\134\164\0\231\6\334\262\227\241\352\173\213\342\164\352\62" "\176\316\302\30\355\66\340\43\144\160\235\342\32\21\263\217" "\211\141\147\162\171\151\111\306\173\143\114\304\314\324\13\61" "\27\374\72\212\62\317\362\123\306\233\42\71\217\275\362\346" "\74\160\356\4\205\121\42\147\111\1\251\150\344\112\120\240" "\107\117\53\67\345\171\354\331\164\45\332\207\300\110\166\210" "\103\351\341\145\273\104\302\254\237\341\146\211\161\50\6\71" "\167\4\67\42\152\351\275\24\273\263\255\4\266\333\267\132" "\153\12\127\171\66\212\20\160\231\121\262\144\336\241\355\151" "\126\2\216\355\233\163\377\315\176\377\332\276\30\37\271\333" "\102\342\376\146\147\362\214\160\45\131\17\257\163\151\161\320" "\231\275\333\54\140\61\114\355\376\264\25\46\341\372\266\74" "\347\2\22\140\153\36\140\363\37\314\316\123\264\347\213\175" "\345\301\136\14\154\55\340\372\361\254\104\365\261\207\347\105" "\5\266\357\24\353\130\304\155\1\172\301\124\6\232\37\315" "\300\367\377\155\304\73\203\13\204\25\325\331\62\65\205\321" "\317\163\270\342\367\321\26\100\304\73\363\63\62\43\204\105" "\100\50\15\361\172\127\42\232\167\0\127\41\30\243\235\231" "\60\304\10\256\230\251\201\315\42\243\253\72\31\241\141\122" "\355\203\230\22\132\350\262\155\320\152\41\57\303\252\257\116" "\5\176\316\12\156\32\316\66\110\314\134\56\105\57\212\131" "\253\23\333\337\15\212\163\227\330\350\212\261\213\373\55\35" "\143\12\234\367\266\47\76\303\117\303\350\5\174\234\237\161" "\371\171\150\376\277\125\272\77\225\60\77\251\75\106\166\56" "\23\61\133\133\0\32\165\62\2\115\26\45\24\277\301\356" "\56\7\304\372\340\26\252\111\62\143\335\302\66\214\311\144" "\255\47\333\117\103\10\262\57\227\164\41\227\65\55\140\106" "\246\115\334\243\174\200\210\355\31\225\11\270\176\4\64\102" "\327\366\324\370\11\11\237\332\237\255\357\11\72\334\301\145" "\327\362\214\23\171\237\245\70\327\145\76\107\357\216\346\367" "\274\56\324\210\152\132\235\343\7\154\66\330\335\147\215\315" "\224\141\33\221\175\326\63\166\313\64\145\17\117\366\347\144" "\362\240\242\30\113\63\157\236\75\342\15\111\274\155\65\44" "\243\307\357\43\304\235\344\20\334\317\62\146\212\104\254\265" "\2\212\350\350\371\44\166\246\277\173\346\335\215\21\366\375" "\16\367\107\307\372\261\56\106\270\362\124\360\322\30\241\312" "\302\15\16\363\140\356\371\56\53\105\70\202\334\260\147\256" "\120\56\56\260\24\324\102\63\44\23\317\347\340\100\275\61" "\134\60\151\34\161\154\213\340\321\153\43\202\101\344\275\232" "\221\377\77\146\142\36\333\263\360\235\107\2\46\144\71\46" "\22\377\116\133\177\30\0\32\146\342\277\155\55\324\352\140" "\4\332\305\55\317\276\37\327\360\131\143\270\214\302\135\244" "\134\136\272\65\235\326\257\50\337\167\10\5\222\235\301\76" "\365\31\176\207\13\226\225\115\353\270\104\176\164\76\326\63" "\165\205\343\126\15\216\4\370\230\357\140\42\307\140\327\241" "\11\225\77\366\101\165\252\366\352\331\346\303\267\353\307\65" "\35\360\263\111\307\135\264\102\126\160\31\227\106\270\267\246" "\172\367\351\74\301\206\1\137\341\2\135\337\4\124\140\327" "\213\62\132\63\55\260\363\143\371\372\351\1\315\242\114\4" "\40\265\345\276\235\73\30\13\11\1\63\67\306\144\217\273" "\150\275\252\31\241\5\327\350\111\57\145\134\343\201\57\114" "\272\354\302\10\215\210\111\222\212\55\77\60\215\163\141\314" "\160\17\127\335\124\166\365\214\11\126\36\312\261\200\353\227" "\244\243\126\65\10\324\261\317\124\23\155\136\102\40\55\43" "\367\163\10\323\210\235\73\356\341\352\121\252\310\344\75\107" "\34\52\157\233\306\235\141\207\64\227\252\31\141\20\261\131" "\27\65\113\236\135\245\134\122\342\102\233\202\0\121\5\77" "\12\352\220\156\101\30\151\340\222\226\106\60\155\273\150\215" "\221\60\212\75\366\176\57\55\320\12\61\233\273\116\106\40" "\170\360\44\14\120\145\135\107\333\64\164\63\140\352\65\204" "\121\156\260\103\247\275\252\31\141\30\170\346\52\340\370\124" "\151\212\355\23\55\315\143\242\125\304\211\146\163\334\76\326" "\301\263\271\167\131\204\364\64\75\4\202\230\61\376\301\322" "\106\146\120\352\310\334\106\200\10\174\264\151\225\163\177\213" "\10\223\327\65\177\231\214\176\13\227\313\123\365\175\323\344" "\326\224\213\7\73\277\153\61\235\30\267\271\73\26\43\60" "\75\71\251\120\142\27\255\63\354\227\162\315\264\352\120\364" "\166\136\160\231\176\316\121\142\332\360\37\102\264\14\357\223" "\340\33\36\121\66\113\22\46\353\11\126\5\76\200\236\371" "\52\300\4\315\212\357\202\31\236\167\10\107\262\253\244\255" "\67\336\75\23\65\144\326\151\127\300\232\113\154\166\73\77" "\50\43\64\43\222\271\121\341\341\23\176\144\210\375\2\373" "\345\316\260\210\44\264\212\354\132\277\55\73\313\7\353\230" "\303\34\12\34\66\13\0\200\105\340\377\253\112\303\116\5" "\261\273\107\275\35\77\130\143\162\356\61\340\55\34\134\172" "\157\77\103\124\211\155\50\27\207\146\204\104\324\172\214\21" "\252\50\175\354\303\25\151\224\225\246\105\207\34\43\216\145" "\301\176\231\253\342\27\315\63\61\257\312\325\336\342\356\22" "\204\13\371\33\250\46\341\156\151\14\160\213\160\305\131\225" "\213\150\220\37\64\275\367\114\237\111\340\334\217\302\10\54" "\256\216\341\327\114\71\250\102\162\364\53\44\64\152\204\126" "\0\145\141\133\220\230\204\247\177\362\124\302\111\255\2\215" "\363\65\104\336\232\172\76\5\177\147\337\161\261\17\342\7" "\34\2\175\72\307\313\301\62\154\305\271\364\350\17\71\377" "\56\305\161\125\22\124\222\243\332\273\25\175\116\325\376\106" "\7\361\142\241\111\301\136\374\374\376\72\321\261\206\347\237" "\344\61\101\310\277\331\65\350\310\163\370\214\165\132\313\241" "\230\140\140\376\137\317\143\306\37\330\114\131\341\170\332\266" "\167\67\331\61\30\241\205\374\142\13\326\20\124\201\34\124" "\315\10\255\310\336\130\331\265\54\270\254\216\347\140\327\141" "\52\150\176\120\33\371\305\370\313\200\346\155\344\230\256\105" "\237\373\303\320\261\157\45\0\204\52\205\323\7\154\66\54" "\323\254\134\277\340\350\74\0\144\14\217\301\10\61\347\55" "\23\324\150\133\42\366\231\352\132\140\262\252\235\261\141\344" "\54\246\5\122\236\14\236\10\341\54\153\40\26\235\137\326" "\315\321\10\164\142\147\21\246\335\346\363\36\1\374\13\353" "\32\341\47\34\256\265\215\366\243\122\32\170\62\146\364\357" "\343\52\40\310\70\271\265\164\220\265\112\37\41\364\254\7" "\221\270\147\160\321\331\254\200\270\256\304\324\320\1\167\165" "\314\0\240\211\323\15\230\102\114\344\352\347\370\11\27\366" "\236\324\6\323\212\264\237\57\260\226\342\227\164\163\356\41" "\324\151\256\267\305\236\126\166\107\234\343\160\310\44\75\66" "\60\360\373\121\261\141\303\70\340\57\306\206\302\23\132\377" "\122\306\67\155\125\114\120\172\41\267\130\217\21\32\302\15" "\232\143\312\154\236\355\335\23\156\116\305\1\257\63\207\236" "\15\143\103\220\351\23\134\304\27\221\3\277\300\272\316\202" "\31\222\127\25\237\55\43\311\11\362\373\233\76\41\134\340" "\77\50\251\215\147\146\172\334\242\372\361\117\145\64\301\373" "\200\46\240\177\62\12\110\375\233\2\115\167\5\27\157\70" "\210\151\64\224\203\326\31\141\13\270\42\13\332\370\157\163" "\210\212\46\124\137\366\327\304\141\12\111\142\304\76\102\176" "\271\44\323\251\171\41\165\14\314\240\104\273\314\221\354\204" "\65\227\1\141\67\54\140\314\324\176\367\177\340\312\114\17" "\271\132\302\4\241\240\331\123\304\137\274\56\140\160\346\37" "\15\353\146\4\366\372\371\315\44\76\35\32\235\21\266\20" "\117\237\55\121\102\243\134\233\166\321\67\70\316\72\213\34" "\330\14\56\321\56\317\151\276\226\237\237\326\300\10\355\2" "\77\353\61\242\15\72\5\266\62\213\213\376\104\371\166\61" "\125\153\343\217\130\303\244\55\157\137\34\5\234\105\20\245" "\156\11\372\144\43\345\306\266\16\356\66\114\160\1\67\201" "\206\123\146\102\43\123\231\367\317\1\326\103\101\76\230\324" "\166\143\207\161\254\46\124\154\31\23\32\222\315\121\256\375" "\234\263\350\212\331\307\166\367\125\150\262\24\16\262\214\65" "\107\143\103\204\120\226\357\65\342\75\140\71\167\372\7\216" "\63\17\242\157\364\363\316\73\253\5\342\145\275\155\373\35" "\65\21\63\344\107\363\331\347\51\332\227\167\37\73\366\34" "\233\143\230\176\300\245\24\307\16\235\163\257\22\361\366\231" "\213\163\314\311\233\44\146\26\343\334\7\314\216\37\310\117" "\360\243\215\73\207\253\274\32\124\304\10\44\350\220\220\140" "\52\367\123\304\371\214\41\155\17\246\11\36\216\164\326\314" "\22\270\14\40\165\137\214\11\102\277\307\231\316\4\20\246" "\302\304\355\210\77\324\262\337\233\107\316\151\147\215\160\215" "\165\145\325\31\134\336\307\137\71\122\205\135\26\374\332\332" "\346\1\175\200\262\132\201\176\101\32\261\323\373\71\347\306" "\240\325\104\30\253\12\106\130\40\334\336\236\216\344\217\34" "\223\303\167\256\311\324\237\120\276\125\114\35\146\50\245\172" "\103\244\372\14\256\313\111\26\141\2\126\346\75\233\71\307" "\237\177\366\314\303\226\167\117\214\165\5\253\15\233\73\20" "\312\225\241\100\175\161\214\277\26\60\301\73\354\337\230\367" "\220\216\333\42\202\154\261\276\266\27\171\27\232\110\314\367" "\251\142\30\170\212\227\221\123\316\170\13\15\107\41\362\366" "\133\200\171\350\257\175\75\202\103\314\305\371\326\376\360\26" "\152\202\373\0\241\162\226\6\273\31\316\344\147\63\71\47" "\355\145\264\300\146\56\31\357\46\130\66\334\334\201\11\76" "\302\345\25\335\25\230\103\15\270\246\123\155\274\216\325\24" "\251\276\10\20\45\115\274\66\136\146\240\362\235\173\160\205" "\63\373\62\277\237\275\73\23\142\36\107\244\355\77\114\153" "\47\1\273\73\324\346\345\20\213\246\343\307\200\257\65\22" "\246\16\151\202\153\143\354\236\370\242\137\20\217\161\60\55" "\204\63\325\6\162\226\55\270\16\170\73\61\2\35\343\201" "\175\120\221\117\220\310\213\277\26\46\320\113\103\304\236\144" "\33\20\6\233\232\201\367\323\144\276\52\122\262\331\115\203" "\14\160\33\41\346\163\61\71\164\261\165\344\76\75\245\366" "\131\75\243\205\167\336\131\221\250\377\212\234\65\347\47\377" "\356\61\117\14\30\10\371\117\154\210\300\372\221\216\230\225" "\253\155\31\341\332\143\202\157\36\104\32\222\252\157\354\167" "\132\170\175\213\204\314\212\56\226\4\146\336\41\77\143\63" "\245\241\51\277\337\330\223\11\130\374\376\50\14\160\27\101" "\76\130\24\304\236\77\212\246\160\264\326\303\221\316\162\0" "\227\62\321\362\174\25\366\277\215\5\130\151\201\14\74\137" "\355\333\26\132\115\313\143\173\42\270\126\352\43\225\41\122" "\22\164\127\66\377\11\361\240\321\76\163\20\62\371\223\5" "\46\113\270\364\146\35\115\253\303\46\22\371\235\226\174\56" "\45\366\56\4\331\66\7\237\351\330\124\265\163\371\223\211" "\171\154\307\302\336\245\54\305\244\155\237\171\16\233\166\317" "\320\177\263\227\47\141\130\232\141\105\1\72\302\220\27\336" "\131\352\150\255\103\367\63\142\55\301\273\0\172\226\232\166" "\372\36\21\246\276\71\344\113\371\155\337\145\141\314\3\273" "\323\216\371\254\354\257\224\113\250\14\160\151\260\354\26\256" "\143\163\236\11\365\1\345\212\100\224\330\331\215\142\12\67" "\55\75\365\314\203\225\20\67\13\175\224\310\32\330\354\174" "\334\26\251\316\164\353\206\70\116\115\344\27\301\353\124\226" "\63\221\322\113\71\304\251\354\235\132\102\175\203\26\136\146" "\213\222\71\123\171\136\52\357\267\102\371\146\134\203\210\71" "\364\154\2\353\371\300\114\240\3\76\102\0\311\304\150\350" "\26\341\40\45\255\211\367\250\66\246\104\230\231\340\15\3" "\155\143\0\151\222\363\62\67\266\31\365\11\76\27\240\15" "\27\346\250\15\112\60\300\104\244\351\30\57\133\375\145\25" "\113\247\114\114\36\45\360\256\330\363\35\141\340\262\132\144" "\42\266\350\223\330\236\131\316\331\126\365\156\135\161\214\165" "\75\231\71\164\214\110\61\323\150\316\75\46\340\330\247\130" "\312\4\205\306\215\110\355\330\171\377\157\354\36\0\354\141" "\75\322\370\302\366\364\157\0\167\255\34\333\354\203\100\244" "\337\121\234\305\167\51\176\104\336\32\301\25\173\307\352\202" "\253\226\140\251\347\350\372\104\251\76\1\43\310\135\221\346" "\135\304\243\227\72\257\367\35\134\143\131\62\372\252\246\167" "\353\230\240\362\231\340\121\64\301\241\141\147\232\102\276\65" "\100\223\372\133\16\270\302\176\271\171\271\150\330\303\324\125" "\230\366\53\134\360\355\55\200\131\150\116\330\33\61\155\126" "\306\4\237\13\314\241\241\161\331\300\173\26\2\222\352\117" "\34\57\220\123\126\265\147\142\116\221\31\330\302\245\114\27" "\156\277\313\133\225\115\256\224\150\76\170\122\167\154\22\356" "\220\23\101\233\102\120\127\1\63\163\136\200\164\321\274\173" "\147\264\127\104\344\13\0\377\247\200\206\264\155\315\62\362" "\175\6\205\333\0\156\233\1\163\350\167\161\214\157\115\23" "\24\125\151\375\46\150\305\203\135\170\333\173\251\324\16\344" "\36\257\143\261\35\13\375\226\7\270\246\136\43\270\131\314" "\300\313\352\74\226\224\366\340\106\240\166\304\57\330\227\41" "\150\103\167\74\111\367\351\300\216\161\33\156\6\306\271\307" "\4\234\167\367\311\350\50\215\20\44\307\212\151\207\104\15" "\150\206\320\267\330\254\351\104\204\362\173\21\130\276\203\115" "\101\305\314\334\256\302\175\72\344\72\63\115\360\255\300\34" "\142\276\10\203\67\367\46\361\127\170\131\365\265\102\161\112" "\363\317\276\126\202\32\261\237\347\104\40\315\126\204\51\230" "\150\170\46\132\163\327\262\307\41\334\34\146\56\106\132\357" "\16\304\4\232\165\374\316\323\220\332\56\77\26\364\123\164" "\361\203\7\371\256\354\135\376\64\246\156\341\145\3\5\302" "\312\41\355\364\26\256\331\262\236\367\70\140\56\317\51\244" "\232\36\374\166\46\76\301\347\2\254\266\153\277\243\114\240" "\230\360\71\136\26\124\67\21\210\352\275\322\105\215\241\135" "\236\351\23\44\162\61\276\35\315\251\65\75\321\16\351\26" "\22\330\207\111\71\204\374\7\352\17\226\61\112\313\100\351" "\131\100\132\77\13\123\56\162\374\11\346\15\15\20\56\304" "\231\213\146\350\170\176\107\26\141\372\6\136\116\156\155\11" "\342\347\17\24\141\67\302\1\57\212\120\27\260\131\124\123" "\304\4\264\351\236\354\167\306\302\155\103\117\152\45\142\56" "\215\160\234\10\147\235\114\101\155\301\361\267\123\270\136\73" "\252\336\31\154\363\347\277\25\341\343\364\337\374\224\145\336" "\327\252\346\167\144\153\305\367\10\127\340\321\11\245\243\236" "\26\150\64\77\312\254\322\376\233\234\5\333\147\236\171\32" "\367\41\40\120\33\21\147\233\40\310\22\57\3\222\113\152" "\4\126\130\235\211\143\63\56\140\202\367\302\4\23\201\352" "\62\317\216\355\6\314\4\72\234\223\3\134\336\261\326\122" "\120\243\147\361\47\174\304\103\207\144\267\220\77\257\201\21" "\332\256\207\300\375\205\172\153\11\70\33\371\243\335\173\77" "\140\362\162\54\356\155\216\266\157\11\262\230\67\276\52\15" "\370\24\163\321\106\164\204\307\1\242\156\12\250\21\142\344" "\16\136\16\40\374\317\170\131\72\311\75\270\240\103\232\43" "\25\76\30\221\63\61\355\23\136\206\357\331\253\262\23\221" "\154\334\354\22\365\64\214\375\231\64\305\134\234\354\271\247" "\31\225\110\70\371\147\205\227\261\232\206\240\62\211\60\133" "\235\60\51\333\244\160\76\333\131\4\21\142\372\107\36\122" "\325\201\113\276\34\224\100\334\102\343\274\130\313\302\106\12" "\53\1\55\164\21\240\210\275\123\63\240\261\226\144\4\226" "\275\261\266\140\25\261\17\171\50\55\101\51\356\43\322\353" "\32\233\251\16\176\4\227\220\144\263\100\22\376\52\213\101" "\67\136\162\333\323\20\214\166\63\263\227\322\216\165\334\357" "\74\301\362\3\365\45\321\261\3\304\73\204\313\103\311\0" "\177\331\237\105\231\6\277\243\174\32\176\2\67\120\320\7" "\52\226\160\163\352\32\2\124\204\234\360\130\327\21\246\161" "\253\325\223\161\336\27\355\371\46\134\256\213\257\162\336\13" "\156\115\46\270\313\121\343\132\47\312\74\370\6\136\366\247" "\124\317\176\366\13\153\7\275\320\261\110\320\226\107\40\104" "\73\316\340\312\54\157\74\147\221\366\370\244\242\75\45\2" "\45\276\207\113\331\360\65\27\7\235\160\34\357\54\347\171" "\135\143\244\217\330\276\100\211\346\126\26\60\71\131\42\314" "\66\235\217\1\323\352\2\361\214\147\372\30\33\301\116\205" "\117\7\160\371\71\314\201\151\210\231\303\232\202\31\134\256" "\110\26\371\240\13\270\336\104\264\145\377\145\27\350\267\130" "\344\241\135\10\222\262\313\224\311\327\252\41\146\330\214\154" "\363\136\172\366\325\365\44\62\123\227\253\232\120\232\210\340" "\172\233\103\104\143\70\110\75\317\31\46\226\377\116\374\104" "\175\347\173\261\72\102\263\40\10\46\204\32\46\120\123\366" "\304\127\171\362\176\56\25\315\332\310\361\127\346\52\110\232" "\302\201\164\64\72\202\171\237\31\101\137\303\245\256\122\32" "\24\15\315\323\246\130\72\102\210\210\121\150\276\200\42\51" "\164\36\323\137\230\31\230\362\101\340\240\347\21\175\314\226" "\56\2\64\312\300\240\135\270\130\0\333\53\372\204\311\316" "\171\114\273\277\57\60\203\70\42\353\67\263\323\233\1\310" "\223\176\315\235\330\375\355\300\376\236\42\40\0\205\344\231" "\175\136\310\202\141\123\352\116\316\373\263\31\132\252\214\300" "\312\253\206\20\41\73\61\220\140\27\166\1\337\12\230\200" "\351\267\352\271\77\211\51\300\314\315\51\134\342\233\217\244" "\364\355\105\231\270\105\55\361\253\232\115\104\231\322\210\123" "\252\213\301\263\135\64\46\63\103\57\305\344\212\65\377\232" "\303\345\7\75\344\40\123\324\146\144\252\33\304\313\130\277" "\170\350\242\126\221\165\75\177\111\213\237\102\332\224\232\207" "\10\344\42\140\102\345\225\312\222\331\26\300\313\171\124\314" "\263\147\127\65\136\320\235\300\143\131\211\303\36\170\166\41" "\347\31\57\75\111\370\144\377\27\143\210\256\275\314\120\30" "\362\127\65\233\130\104\223\40\277\25\314\324\354\342\262\101" "\111\42\122\214\342\176\20\101\345\303\271\251\335\67\63\215" "\131\57\220\247\225\31\140\363\255\0\12\256\304\63\221\175" "\351\315\234\254\25\66\133\327\257\20\237\303\306\24\11\366" "\172\132\142\63\243\225\337\357\42\336\202\247\151\277\63\105" "\100\22\220\31\36\215\370\37\260\333\150\320\246\207\25\267" "\21\36\356\315\377\33\11\126\354\227\67\46\342\100\16\305" "\227\140\142\334\257\306\24\63\270\106\277\111\316\317\314\42" "\122\216\111\201\44\376\67\106\370\227\160\361\212\44\142\242" "\335\141\263\22\56\117\330\235\171\216\265\76\227\276\0\237" "\323\26\132\33\343\145\260\126\205\160\133\114\264\247\34\115" "\264\262\347\234\33\261\373\235\313\131\337\61\314\321\120\43" "\373\334\54\157\374\20\341\252\242\311\61\261\115\236\211\243" "\304\140\110\212\360\64\27\152\36\276\70\45\125\63\300\140" "\364\141\56\5\173\157\243\170\146\362\153\131\51\334\24\317" "\44\42\144\206\2\72\120\100\120\163\136\301\115\231\271\202" "\153\135\37\112\137\146\41\321\67\344\227\202\372\300\6\153" "\6\256\360\262\273\6\233\274\161\120\73\11\237\75\241\226" "\10\307\76\350\10\323\124\352\31\255\214\12\0\207\246\355" "\43\303\313\11\76\174\227\130\327\21\6\75\263\146\315\227" "\251\211\167\15\221\162\213\10\42\300\40\311\23\134\231\142" "\53\162\211\264\53\207\366\305\241\343\135\221\116\113\34\157" "\322\374\256\213\332\364\334\63\63\324\171\246\140\271\20\46" "\270\260\257\201\40\115\171\32\345\321\30\340\33\134\373\223" "\74\263\267\55\346\325\33\117\143\321\214\371\12\127\130\257" "\155\126\50\374\56\214\51\107\210\247\360\60\277\210\351\360" "\223\202\175\261\13\41\63\43\146\1\137\47\15\60\3\115" "\321\7\240\336\51\354\54\126\151\172\227\314\213\132\346\34" "\6\125\45\67\272\20\102\150\346\230\4\44\216\63\323\30" "\347\242\226\133\242\65\176\126\346\150\301\345\23\265\74\260" "\141\31\360\243\370\356\171\215\101\353\202\141\0\0\26\312" "\111\104\101\124\2\50\140\110\374\337\5\376\36\225\0\76" "\330\55\357\67\63\205\174\264\217\76\305\267\0\224\251\173" "\140\53\314\241\20\141\126\160\377\163\24\217\343\242\345\162" "\156\367\357\233\136\251\74\213\243\175\31\361\377\317\100\302" "\272\10\42\61\311\361\173\201\124\372\121\102\35\163\61\274" "\76\20\163\240\250\135\174\46\32\150\341\61\330\102\354\314" "\45\66\33\0\34\232\370\325\334\13\41\35\377\266\75\206" "\212\331\375\367\325\306\7\13\61\67\130\137\135\166\220\111" "\307\366\302\16\334\155\117\3\214\115\110\335\157\341\77\136" "\0\370\247\275\363\37\45\301\227\262\160\360\133\243\267\133" "\173\166\32\201\167\257\214\216\306\220\250\170\122\343\345\376" "\156\222\315\347\114\35\103\113\54\367\176\13\207\274\41\246" "\1\321\244\36\312\217\165\315\104\245\56\260\231\116\115\11" "\104\11\312\224\352\24\325\324\123\67\305\324\323\32\351\201" "\250\356\44\340\77\375\33\156\204\252\137\225\246\320\153\206" "\315\116\30\123\224\117\310\143\164\271\57\246\131\154\100\312" "\275\230\100\351\226\164\361\321\336\201\55\33\237\167\24\264" "\131\340\331\377\155\373\376\3\341\336\251\10\230\233\377\371" "\345\272\240\300\136\0\373\276\267\377\277\206\13\341\323\256" "\275\64\11\163\127\240\16\231\277\117\64\113\247\326\63\125" "\244\205\160\324\122\17\202\152\222\373\275\22\330\15\42\121" "\27\330\354\266\241\360\262\202\12\114\350\322\372\202\26\134" "\107\274\246\20\133\333\363\145\212\374\55\166\265\270\263\367" "\363\133\347\263\241\357\256\32\115\315\312\163\274\214\146\373" "\167\373\274\43\1\163\62\47\343\27\157\260\333\210\332\66" "\66\7\272\363\331\337\341\312\76\231\354\130\152\342\146\135" "\214\240\151\24\51\334\24\226\225\340\306\17\166\20\14\232" "\321\54\270\261\13\37\211\244\103\201\263\304\147\336\141\263" "\63\5\235\50\226\111\166\12\244\204\377\63\275\300\1\372" "\32\242\41\357\231\211\344\117\74\54\275\271\205\20\361\261" "\375\251\10\224\357\202\32\361\16\317\221\137\23\34\172\337" "\216\147\146\366\2\173\244\151\245\165\332\331\236\164\103\315" "\313\134\252\47\333\373\266\232\165\0\227\255\240\276\324\167" "\270\302\241\264\54\303\326\345\54\323\336\145\252\366\67\157" "\303\204\312\306\242\75\232\162\101\164\170\31\130\332\146\100" "\237\226\123\262\143\6\333\306\74\13\202\101\151\136\266\43" "\135\342\61\214\166\362\156\310\277\233\362\314\6\66\13\311" "\143\204\117\355\103\147\123\355\161\66\17\313\4\5\151\141" "\63\350\106\241\63\215\234\123\123\4\303\271\300\253\67\242" "\1\32\1\46\370\23\256\340\52\205\313\337\311\120\74\13" "\57\117\303\235\213\323\335\302\366\123\206\164\356\335\330\73" "\113\246\155\134\301\145\232\56\216\305\10\347\160\251\260\317" "\160\363\305\102\104\73\26\346\121\102\153\213\37\60\14\340" "\325\145\245\53\17\207\41\373\147\270\241\331\43\63\257\170" "\21\113\161\242\125\322\47\25\371\123\231\230\116\144\130\42" "\143\77\354\153\340\331\346\17\170\131\364\304\250\251\366\140" "\352\113\314\100\141\145\102\253\32\134\273\360\174\222\54\240" "\35\27\130\247\131\123\53\214\204\0\111\274\273\26\4\61" "\376\341\367\42\115\267\70\107\326\70\114\274\175\320\204\35" "\302\5\20\307\105\64\123\207\151\304\124\153\166\242\233\27" "\154\202\65\267\75\273\250\220\75\110\137\202\10\310\130\142" "\15\253\55\17\320\317\163\201\110\71\115\365\150\210\37\321" "\360\354\373\246\60\10\35\137\335\107\123\342\30\113\154\326" "\46\263\241\57\273\371\51\176\337\366\264\101\354\374\246\166" "\146\64\157\370\231\227\366\225\172\373\213\331\353\332\203\251" "\143\246\312\231\247\345\26\362\363\137\154\177\67\366\65\331" "\221\31\10\161\222\21\257\344\235\174\311\357\373\135\274\307" "\61\134\355\263\372\31\231\230\133\37\340\372\76\175\106\116" "\242\142\135\76\202\112\252\62\71\363\54\10\72\53\200\7" "\331\154\353\102\244\301\110\20\222\351\216\16\143\52\227\275" "\54\320\236\251\20\77\104\173\64\204\371\127\236\71\225\242" "\134\204\276\355\335\311\52\147\77\43\323\264\277\7\356\261" "\310\34\233\330\357\76\302\165\323\40\1\161\250\37\341\323" "\271\167\76\144\300\113\270\272\210\242\130\104\32\140\344\31" "\134\36\20\207\376\75\173\364\222\301\345\13\335\171\237\303" "\66\233\227\106\354\167\336\347\334\12\0\300\241\203\14\36" "\356\75\50\244\254\107\317\332\5\246\155\227\161\342\26\42" "\341\222\2\350\223\322\112\223\362\374\0\132\23\233\343\151" "\253\60\153\62\117\375\152\317\322\245\304\44\126\362\265\104" "\161\120\210\114\376\26\233\235\353\226\166\176\313\310\176\46" "\302\210\355\222\357\71\303\146\145\231\137\310\76\306\313\332" "\162\77\263\63\203\13\140\55\21\357\61\304\112\305\45\136" "\326\14\350\360\106\232\302\151\300\14\134\231\306\70\307\146" "\20\66\23\250\67\266\317\25\134\12\116\107\174\321\27\132" "\266\16\106\320\62\315\61\212\163\330\175\102\213\45\111\161" "\20\66\363\330\265\30\236\22\272\147\7\103\246\70\27\233" "\226\116\354\312\263\205\217\275\32\160\11\154\376\204\33\252" "\370\254\300\314\30\211\237\323\51\270\127\372\43\151\216\166" "\324\51\236\241\41\346\63\101\372\330\2\150\46\102\207\235" "\357\76\12\62\64\17\40\213\176\357\253\120\161\175\46\314" "\160\51\373\43\172\165\41\316\276\337\35\305\117\307\156\213" "\17\246\120\174\55\214\300\304\57\326\224\336\155\141\303\257" "\274\215\352\342\10\324\47\161\60\147\342\200\152\156\15\45" "\144\117\140\72\152\16\306\55\332\42\51\150\276\64\120\175" "\3\342\220\26\156\333\73\136\301\25\265\373\235\35\70\136" "\265\314\250\332\245\370\116\54\260\112\162\204\311\143\111\344" "\215\350\335\324\333\7\1\210\201\234\161\133\374\7\246\172" "\123\113\215\361\262\266\240\41\320\266\236\115\23\256\303\270" "\276\137\152\367\170\41\26\4\73\355\321\237\133\4\120\44" "\232\140\75\371\334\236\150\264\76\200\101\253\6\351\106\73" "\67\23\214\37\133\60\302\30\57\173\150\116\260\331\124\200" "\317\145\236\13\43\313\44\364\116\0\5\321\146\276\20\147" "\166\41\246\316\114\120\43\112\236\145\100\335\46\142\373\246" "\362\356\211\347\163\264\74\7\273\41\161\16\46\10\66\43" "\146\342\127\204\353\166\213\314\313\357\142\62\304\114\243\262" "\16\355\275\21\365\133\274\54\224\347\331\267\5\301\111\275" "\330\12\127\137\114\125\145\364\51\136\16\120\77\63\320\144" "\342\71\300\217\160\355\105\177\23\32\151\310\131\277\201\324" "\30\310\235\361\114\72\236\177\174\151\347\224\126\315\10\331" "\16\216\62\2\216\324\2\233\265\256\23\344\47\350\215\4" "\12\175\266\113\71\313\301\240\341\21\52\74\137\142\45\32" "\42\25\346\240\266\120\233\127\313\135\63\61\323\32\342\54" "\67\20\317\242\365\327\34\361\176\241\15\154\346\366\353\360" "\24\246\205\260\246\174\20\60\61\23\154\127\277\361\44\304" "\162\203\227\263\61\230\51\360\16\371\171\137\264\323\27\1" "\177\344\115\100\143\336\10\314\255\46\333\17\321\354\303\300" "\131\236\331\136\374\6\165\217\366\254\167\1\301\223\0\150" "\326\241\21\172\262\361\151\204\20\263\2\102\230\141\63\62" "\75\335\302\341\146\53\300\177\346\370\32\363\0\102\223\4" "\124\264\232\62\105\2\40\331\122\140\254\2\360\46\141\301" "\37\1\154\237\331\274\14\44\51\104\115\7\226\151\5\34" "\265\352\153\326\144\113\244\220\71\113\114\353\230\171\304\251" "\32\350\274\0\10\350\170\146\113\52\360\167\250\356\204\351" "\27\123\157\77\337\104\253\206\326\245\150\53\5\67\156\155" "\237\227\171\220\140\325\216\162\133\374\203\105\0\132\35\40" "\36\55\146\320\146\40\204\173\267\205\166\141\265\25\73\35" "\44\336\101\176\262\257\261\110\252\42\163\55\53\200\43\267" "\141\2\26\257\260\137\51\344\135\23\317\206\247\63\370\21" "\156\16\131\137\34\342\206\60\52\121\221\53\171\357\126\140" "\337\123\154\227\47\164\51\246\15\347\33\257\2\50\122\136" "\367\72\72\262\223\200\237\160\36\271\203\216\10\301\324\143" "\276\106\216\37\324\22\372\363\323\261\331\354\72\71\24\43" "\320\341\361\261\337\6\334\114\266\125\116\200\103\241\265\155" "\40\330\20\32\243\146\304\127\223\140\234\330\256\155\4\103" "\16\50\233\25\314\3\366\74\233\134\175\23\47\265\314\364" "\320\157\160\235\34\146\2\105\362\331\337\355\22\333\342\110" "\17\121\276\71\26\211\250\213\160\104\234\16\163\136\25\32" "\321\225\53\271\117\246\277\154\14\341\23\1\103\106\314\113" "\273\17\45\330\365\21\36\56\223\210\71\65\361\10\172\41" "\176\141\14\302\147\117\336\314\323\302\327\41\272\257\322\64" "\242\4\352\140\163\266\0\2\1\22\366\117\175\16\230\117" "\32\205\155\330\1\356\322\75\173\2\327\107\11\160\171\107" "\53\317\41\134\5\316\201\35\301\77\331\337\37\340\72\375" "\361\373\176\133\233\31\200\377\52\20\56\154\202\260\364\10" "\223\105\67\152\26\376\36\60\155\62\211\133\254\174\73\27" "\341\61\267\10\230\130\355\34\247\231\263\305\206\1\346\147" "\43\342\221\107\144\251\200\26\303\34\41\331\106\270\150\46" "\266\70\364\157\344\321\311\324\356\347\14\361\172\344\153\361" "\63\64\103\165\212\100\362\145\325\76\202\357\50\147\1\15" "\324\227\3\367\43\227\176\114\1\330\275\373\35\363\213\56" "\344\300\103\145\174\61\46\372\346\241\26\43\261\147\71\362" "\165\351\71\144\243\2\264\346\153\1\123\57\105\110\134\7" "\316\144\54\360\361\114\160\362\216\110\361\13\304\353\10\40" "\320\355\74\162\77\34\337\224\147\357\277\13\110\152\106\272" "\273\21\315\110\1\350\373\11\343\210\237\100\72\32\32\363" "\375\345\355\367\301\210\374\115\344\167\371\56\354\232\227\12" "\114\376\342\276\353\140\204\114\270\326\167\214\375\124\337\41" "\302\75\163\174\164\141\27\215\260\222\347\262\143\101\250\237" "\176\310\54\272\17\230\142\231\134\130\250\315\10\115\206\120" "\205\31\233\133\215\162\210\123\41\275\53\357\373\317\306\170" "\17\21\23\161\56\304\161\147\276\304\65\302\151\347\264\313" "\103\165\303\155\344\317\57\323\173\273\361\210\223\31\251\154" "\357\22\22\272\235\210\200\230\43\336\166\5\366\131\214\35" "\351\347\335\26\70\352\147\146\206\267\5\176\355\5\140\342" "\57\125\62\102\127\154\63\342\361\241\52\42\277\21\160\53" "\300\10\114\33\130\141\367\311\62\231\147\152\115\43\173\16" "\21\125\110\233\45\362\156\241\357\147\202\175\67\3\32\46" "\66\315\106\43\301\176\367\12\246\34\174\102\271\271\150\224" "\260\204\121\337\105\10\354\334\10\343\41\360\373\253\34\155" "\245\220\363\33\333\333\203\167\157\204\70\175\177\101\47\232" "\256\274\337\231\26\370\27\64\221\346\236\106\141\27\276\116" "\16\212\64\300\172\224\24\73\221\167\75\23\353\13\200\373" "\106\205\214\240\370\366\62\160\240\111\100\342\264\43\166\254" "\117\104\41\265\327\336\142\157\263\310\5\207\52\304\142\101" "\100\372\100\253\34\373\172\22\320\136\204\356\46\71\66\271" "\237\103\245\232\340\63\266\237\225\114\202\374\234\43\0\56" "\42\304\76\213\230\231\137\260\56\31\145\7\156\46\312\265" "\3\22\366\173\104\213\367\2\132\41\324\357\212\15\273\324" "\132\240\26\362\175\46\366\340\52\3\353\167\275\263\375\323" "\356\246\322\200\132\123\136\62\166\240\335\300\357\204\44\53" "\377\177\21\261\343\31\175\144\67\344\161\204\170\265\170\177" "\25\70\234\166\300\117\12\21\172\42\50\314\54\307\267\230" "\303\165\113\40\203\75\345\240\64\114\34\14\11\44\72\204" "\117\73\336\7\113\73\333\130\317\142\116\274\167\277\24\204" "\312\47\312\245\167\56\17\346\337\244\366\56\43\203\163\57" "\354\36\174\302\277\27\247\73\361\44\173\57\40\24\370\231" "\154\352\165\153\367\312\74\241\17\342\53\74\143\163\24\1" "\63\227\257\120\176\310\375\243\150\331\377\34\110\125\210\221" "\136\350\64\340\224\44\1\230\54\157\40\11\237\223\105\44" "\313\225\331\242\377\215\227\343\224\174\315\22\223\362\275\55" "\264\107\137\244\176\222\103\174\272\147\6\370\346\45\264\250" "\377\234\207\200\351\262\213\171\170\33\61\253\330\4\270\31" "\40\112\137\3\145\330\114\103\377\141\204\264\20\204\311\27" "\10\337\2\76\121\73\347\314\251\375\376\202\233\314\112\250" "\367\57\173\26\353\17\72\1\115\374\210\342\250\71\231\346" "\57\177\157\125\61\102\346\251\370\151\200\130\102\171\65\213" "\34\242\112\42\216\62\315\42\155\47\171\31\41\50\232\136" "\323\34\165\31\62\157\222\200\215\112\130\270\250\27\250\372" "\17\117\310\37\367\232\104\154\333\245\20\303\276\153\141\317" "\12\21\311\25\136\246\242\204\230\167\340\21\37\35\343\357" "\160\361\216\20\161\372\131\256\115\117\133\352\147\376\1\227" "\144\350\237\27\147\62\314\114\13\205\206\216\74\243\270\0" "\214\363\346\306\41\142\250\142\165\344\5\27\21\107\71\44" "\375\322\210\311\322\20\311\222\226\224\344\131\304\24\133\105" "\354\363\130\261\372\74\147\357\145\46\373\114\304\311\277\105" "\176\5\127\47\342\353\124\75\206\167\24\331\7\315\27\177" "\17\217\236\371\301\16\332\76\141\321\164\143\35\164\10\51" "\273\367\356\260\215\370\20\301\274\305\364\161\300\225\234\66" "\74\255\222\346\370\210\237\114\23\114\143\116\104\25\113\321" "\240\105\100\212\47\1\370\54\213\370\22\231\374\334\64\142" "\66\365\162\244\260\17\5\306\112\105\103\355\136\226\221\237" "\245\26\132\241\270\64\221\210\131\231\164\347\30\144\70\106" "\265\313\157\32\234\311\173\204\340\132\146\154\76\313\373\137" "\7\114\133\376\234\232\110\111\200\131\46\1\77\141\27\70" "\374\316\30\257\3\67\320\122\313\112\103\201\321\47\321\66" "\313\74\157\272\52\107\131\223\344\142\216\262\17\247\205\372" "\337\323\144\231\107\30\301\227\344\154\52\233\6\76\257\125" "\200\140\265\3\7\27\163\224\251\21\212\322\230\311\4\337" "\120\74\56\66\144\46\150\37\243\252\226\137\46\232\210\357" "\300\41\335\375\200\263\376\125\336\267\27\101\211\236\304\104" "\172\37\60\365\330\205\143\41\2\252\277\7\103\77\312\375" "\376\303\174\304\267\366\331\376\230\203\173\103\206\212\4\122" "\145\221\345\216\74\53\226\22\321\307\146\226\146\254\53\62" "\237\25\63\213\332\202\75\263\146\331\317\333\47\361\266\43" "\146\101\254\307\121\250\365\107\346\71\312\145\326\217\22\252" "\276\35\201\217\353\350\315\232\172\50\32\337\205\71\102\254" "\50\363\323\227\357\341\46\251\22\240\230\172\114\256\215\307" "\56\340\6\206\353\367\211\42\275\313\361\315\312\372\242\104" "\10\151\256\336\4\314\62\316\354\373\201\162\205\115\225\61" "\302\100\16\231\155\275\323\202\113\177\216\110\127\72\302\313" "\34\377\341\121\124\162\254\36\230\335\30\102\316\127\22\221" "\112\241\275\267\104\312\225\115\367\50\223\40\330\100\74\362" "\133\65\43\44\10\27\16\335\11\201\336\10\332\223\172\166" "\176\146\314\320\207\53\322\171\362\4\310\127\371\376\310\223" "\302\114\327\146\240\55\24\130\333\306\104\232\107\374\14\226" "\225\162\312\117\351\330\113\25\246\221\42\1\253\210\44\367" "\353\150\211\144\314\43\46\13\13\254\227\201\27\115\355\105" "\31\274\312\42\214\311\172\333\111\4\301\152\107\16\70\266" "\367\45\266\153\64\126\106\10\165\43\167\322\254\230\31\102" "\263\321\230\373\303\367\42\64\171\31\261\315\231\61\333\15" "\300\325\154\3\171\13\27\150\153\5\374\236\357\160\5\365" "\203\75\350\55\104\267\163\173\376\37\333\62\101\125\32\101" "\321\240\105\304\54\152\172\227\376\220\143\267\365\105\222\207" "\366\273\50\241\356\56\344\147\103\304\33\262\315\227\71\173" "\147\372\361\242\102\342\364\307\54\1\233\145\245\155\354\336" "\100\253\210\351\232\142\127\267\74\377\353\3\136\316\41\246" "\371\63\203\253\167\70\17\230\244\267\160\345\262\67\170\71" "\164\122\173\267\322\314\132\154\361\16\14\340\365\3\232\374" "\273\231\140\363\135\17\150\337\245\52\76\213\110\171\205\102" "\237\315\203\237\107\210\356\54\7\362\44\161\347\125\271\261" "\241\160\43\7\61\12\45\200\305\42\312\364\131\146\145\355" "\315\222\113\301\205\61\66\253\256\6\366\125\25\43\370\375" "\242\362\372\300\236\31\63\374\25\70\17\346\61\265\42\2" "\206\25\144\314\15\232\141\63\50\110\251\335\67\24\152\54" "\220\150\236\6\30\300\215\277\152\7\200\211\357\373\42\155" "\125\60\202\166\225\16\245\37\60\244\375\57\361\41\226\5" "\27\66\57\100\115\262\234\367\141\267\66\104\340\316\6\342" "\101\235\42\107\71\215\330\337\131\201\32\367\211\246\55\220" "\63\313\53\225\21\330\273\363\261\2\364\210\163\262\213\234" "\120\255\177\276\266\263\373\22\140\206\125\201\155\317\114\331" "\217\342\117\314\75\146\372\201\165\42\334\73\344\217\207\322" "\316\351\72\67\171\45\317\171\300\156\331\311\225\63\102\337" "\163\224\103\204\221\241\270\74\220\16\154\63\142\142\61\67" "\50\217\350\56\345\322\131\262\271\212\20\267\137\147\74\211" "\150\273\256\110\263\230\131\30\143\134\6\314\36\13\120\253" "\147\270\72\135\72\266\304\367\157\367\270\233\4\341\14\124" "\35\352\276\24\123\250\141\204\327\23\44\346\13\266\33\44" "\271\64\2\145\323\65\132\0\276\231\165\3\227\46\375\131" "\230\241\1\127\133\34\312\37\142\344\373\26\333\365\113\255" "\225\21\164\142\174\126\102\222\27\355\205\1\231\74\351\34" "\113\102\273\206\353\260\307\275\205\152\42\72\1\215\300\275" "\147\21\50\67\346\110\263\45\373\217\10\143\136\345\230\200" "\75\271\330\221\235\341\130\264\131\313\336\147\206\335\242\314" "\254\46\273\361\336\225\155\132\246\142\243\23\171\143\66\356" "\107\217\61\77\157\311\14\104\211\10\313\262\371\262\346\140" "\75\11\301\267\114\262\117\340\162\240\372\1\200\205\335\50" "\236\120\161\357\251\175\31\101\123\4\312\244\37\24\331\261" "\103\221\344\241\213\75\213\60\102\337\210\246\357\35\134\214" "\270\33\21\263\50\213\70\312\151\304\251\153\346\110\155\326" "\374\376\117\16\40\300\317\356\11\63\352\367\316\260\16\32" "\175\301\166\75\216\164\26\133\333\263\341\363\2\114\214\24" "\263\135\112\103\64\303\247\55\175\26\246\151\260\343\335\47" "\317\52\320\166\225\332\254\41\124\143\75\266\63\176\250\30" "\260\250\124\43\250\4\336\125\33\64\304\301\315\42\146\112" "\127\354\350\161\100\133\54\3\304\35\163\224\333\201\337\217" "\231\76\355\34\107\271\57\373\132\172\357\303\206\127\253\34" "\107\231\317\370\57\304\163\160\316\215\31\325\34\10\231\237" "\114\143\31\10\52\323\360\316\343\13\212\243\254\34\106\242" "\55\143\10\207\176\336\102\73\61\203\226\155\351\1\327\170" "\170\205\227\265\27\41\270\230\5\115\324\26\265\165\40\254" "\312\64\342\345\357\312\10\354\123\232\104\354\172\225\344\355" "\310\241\57\2\377\27\213\50\307\46\303\304\40\316\330\236" "\70\354\302\317\261\147\153\302\207\210\226\121\310\271\133\322" "\341\175\157\302\202\175\213\346\170\71\117\102\247\337\370\355" "\43\277\226\100\150\24\336\346\150\47\356\223\203\67\276\33" "\161\226\161\120\211\62\261\47\55\133\317\57\341\2\236\10" "\150\200\251\151\223\373\212\221\272\132\235\145\155\363\327\302" "\366\275\103\331\277\262\53\352\71\57\151\57\326\264\313\357" "\237\237\347\147\204\34\345\220\204\325\111\64\241\175\163\77" "\75\171\157\216\143\155\106\366\20\143\146\37\301\311\74\206" "\245\23\311\316\162\163\221\254\255\310\271\360\34\310\4\145" "\5\25\35\336\56\66\3\154\3\254\273\153\14\121\256\150" "\150\345\235\263\126\211\45\21\155\304\111\235\223\52\320\240" "\103\61\2\261\367\216\330\360\317\330\156\226\227\146\77\306" "\332\300\250\343\332\310\141\4\205\0\147\1\55\245\203\100" "\374\13\10\25\256\164\204\230\102\351\36\115\41\20\62\2" "\307\61\245\221\367\150\170\276\14\367\355\217\203\245\343\374" "\26\233\45\245\111\111\115\302\316\33\337\167\204\30\47\342" "\360\266\75\232\271\61\146\140\232\365\334\173\127\12\255\163" "\274\214\40\373\40\5\143\106\14\262\116\160\204\265\57\43" "\260\124\162\0\67\61\336\57\245\53\162\220\375\176\224\261" "\252\264\276\107\114\151\204\31\264\156\72\344\334\246\1\46" "\230\344\70\312\253\34\107\271\47\357\361\336\366\305\77\143" "\15\314\264\100\151\146\147\305\326\206\376\200\355\107\223\272" "\234\102\331\103\176\132\14\333\77\216\205\260\166\15\312\145" "\160\135\61\336\41\134\254\364\301\204\330\30\233\301\313\266" "\370\117\255\34\41\312\175\262\161\157\212\43\255\175\31\201" "\231\205\304\214\173\130\7\112\350\334\55\12\374\202\217\236" "\304\210\305\42\264\350\77\211\60\202\42\104\53\221\262\105" "\176\303\50\40\205\22\321\10\13\24\27\366\264\215\50\264" "\227\351\34\361\362\320\104\10\375\163\216\264\146\22\331\10" "\322\302\134\220\45\235\357\306\62\321\147\361\41\366\45\254" "\14\156\256\333\60\307\177\351\312\171\307\222\6\63\261\377" "\331\40\154\134\27\12\164\14\37\201\151\271\135\261\1\377" "\151\332\341\326\163\354\350\324\135\230\344\354\5\244\363\262" "\0\362\214\115\206\121\106\210\215\217\142\263\47\266\130\244" "\372\17\371\22\103\61\261\142\35\31\362\316\62\144\156\151" "\67\353\24\345\173\66\61\65\145\204\315\66\350\55\154\6" "\306\126\65\320\310\330\320\246\6\362\23\345\362\346\265\261" "\15\13\231\164\327\356\205\77\65\43\20\145\340\124\165\22" "\10\247\251\214\105\365\67\21\236\222\31\163\172\175\63\5" "\71\216\246\62\102\43\102\24\124\367\53\173\336\4\361\166" "\47\203\34\107\331\257\233\216\231\215\171\216\162\266\203\331" "\222\311\173\345\265\225\251\172\321\307\170\57\102\44\57\73" "\226\204\117\204\353\250\146\317\41\31\1\330\314\133\37\310" "\363\57\20\356\376\206\34\224\43\144\246\64\267\330\163\42" "\146\103\110\63\24\245\173\364\260\31\50\14\65\20\150\25" "\110\360\31\362\353\40\262\143\71\206\73\232\110\34\364\167" "\41\347\103\255\104\277\204\43\254\126\170\145\253\112\106\140" "\16\311\324\64\303\245\110\314\262\271\365\41\333\77\303\146" "\341\117\202\315\261\247\352\107\250\151\324\300\156\1\230\6" "\334\144\373\145\304\206\55\252\262\212\15\111\321\72\210\122" "\203\260\177\262\305\332\4\336\101\366\32\211\76\166\351\125" "\113\216\61\326\231\246\321\216\1\5\373\151\5\320\42\177" "\322\146\73\142\256\370\315\244\166\131\204\375\24\106\14\375" "\114\273\300\64\230\107\30\41\317\207\170\55\53\253\321\47" "\171\365\32\301\227\34\137\114\125\62\334\337\52\241\31\132" "\346\127\50\221\370\203\44\102\123\137\24\345\331\227\21\316" "\105\332\307\10\272\250\370\74\106\344\332\131\157\327\346\306" "\247\365\212\30\101\155\161\6\113\156\304\111\216\61\4\133" "\171\23\12\144\230\277\345\151\215\146\100\223\234\171\377\356" "\140\267\50\267\166\177\233\104\314\236\66\362\347\40\204\142" "\17\254\22\323\222\326\354\104\202\177\17\106\40\121\74\230" "\166\30\212\363\34\263\261\7\130\47\241\115\21\156\123\36" "\162\124\65\261\113\315\220\356\226\346\331\265\307\120\41\251" "\335\52\60\213\164\370\240\317\254\203\2\37\342\264\176\141" "\106\120\242\272\207\313\103\277\20\4\242\31\60\175\206\71" "\216\50\303\376\72\130\243\31\261\365\313\6\226\374\44\63" "\126\142\205\142\1\375\2\77\47\144\362\134\170\46\327\342" "\104\176\177\117\106\120\15\361\14\127\152\247\32\242\154\343" "\47\166\110\46\234\167\26\41\310\33\373\231\42\270\264\213" "\160\224\73\344\14\16\121\334\227\207\250\125\52\317\327\26" "\205\223\137\311\321\374\25\126\363\210\237\115\350\115\307\41" "\115\204\210\223\34\137\202\76\301\125\0\121\362\31\235\203" "\15\227\21\355\62\304\272\134\360\72\360\75\266\234\127\55" "\303\146\127\111\201\171\104\142\357\332\357\160\232\343\22\256" "\355\371\151\235\30\341\5\341\60\32\311\131\144\32\206\157" "\11\161\52\241\26\241\120\14\140\321\111\155\210\264\146\272" "\64\173\357\47\21\355\305\164\140\72\362\327\45\316\215\14" "\330\206\103\315\230\126\301\321\262\47\215\360\23\255\344\47" "\337\37\341\106\16\333\356\303\345\377\357\342\243\20\251\321" "\51\224\171\261\224\5\134\125\30\65\120\173\307\167\341\254" "\202\257\250\276\311\357\151\375\342\214\240\373\144\321\13\347" "\145\61\320\326\102\274\60\245\112\277\46\301\156\1\110\232" "\177\54\265\74\151\202\237\160\375\177\245\167\327\120\325\233" "\303\223\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/png_error", 2608, "\101\0\0\0\12\0\0\0\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" }, { ":resources/progress.png", 605, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\34\0\0\0\13\10\6\0\0\0\154\336\355" "\267\0\0\0\6\142\113\107\104\0\0\0\0\0\0\371" "\103\273\177\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\10\21\7\11\273\35\213\111\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\1\301\111\104\101\124\70\313\245\223" "\117\213\122\121\30\306\177\157\367\340\134\257\245\150\42\126" "\272\14\134\66\213\246\30\30\146\71\264\154\325\107\220\140" "\26\203\40\4\335\345\15\202\340\62\13\41\374\10\175\200" "\310\131\112\20\131\233\226\61\301\254\142\26\42\332\37\320" "\253\336\163\116\13\115\147\6\152\314\236\335\373\234\347\345" "\167\316\373\162\204\271\202\40\330\6\352\300\26\160\223\245" "\116\201\17\300\13\337\367\337\261\246\202\40\110\372\276\77" "\22\200\60\14\237\0\317\200\53\177\351\61\300\323\132\255" "\366\174\135\150\30\206\11\151\66\233\333\300\333\113\140\147" "\241\73\325\152\165\255\227\66\32\215\353\312\363\274\372\212" "\60\346\271\72\360\320\202\305\161\100\153\4\4\340\101\173" "\317\272\5\227\250\33\361\146\367\110\0\366\202\266\165\63" "\5\242\357\135\366\367\167\105\245\122\251\173\377\170\321\55" "\0\34\7\16\16\340\360\20\264\6\300\55\270\144\52\231" "\163\141\67\123\40\163\253\262\250\125\72\235\46\216\343\225" "\151\112\51\1\146\220\50\132\300\0\214\61\150\255\61\306" "\54\75\75\367\364\314\123\305\142\361\170\60\30\334\130\25" "\230\315\146\217\27\105\263\171\356\54\236\114\371\166\62\300" "\114\226\300\351\164\302\340\364\4\63\235\314\200\345\162\271" "\55\42\73\121\24\135\272\107\327\165\115\251\124\152\3\263" "\275\135\230\314\353\315\226\134\354\151\325\67\5\240\323\351" "\44\132\200\130\153\113\303\341\360\125\257\327\273\77\32\215" "\376\10\115\46\223\46\237\317\277\367\74\357\221\210\174\135" "\367\153\10\200\265\366\266\326\372\145\34\307\225\361\170\234" "\326\132\137\373\35\160\34\347\347\306\306\306\17\245\324\147" "\307\161\36\213\310\227\165\100\375\176\77\221\313\345\46\213" "\21\130\153\25\160\7\270\13\24\316\144\273\300\107\340\223" "\210\304\374\207\254\265\127\177\1\277\357\245\376\331\316\240" "\232\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/pushbutton.png", 1408, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\55\0\0\0\33\10\6\0\0\0\350\71\6" "\52\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\5\22\111\104\101\124\170\332" "\244\130\277\157\333\106\24\276\23\51\112\221\145\133\161\73" "\30\110\32\164\153\267\16\135\362\247\64\213\201\32\150\200" "\16\315\340\321\113\321\177\301\113\201\6\360\340\245\371\107" "\2\164\351\320\55\335\212\64\1\74\264\262\176\132\22\311" "\343\365\175\217\357\310\223\114\213\26\173\366\121\42\171\337" "\175\337\275\367\356\335\235\264\252\50\306\30\253\265\56\356" "\255\265\52\10\2\255\352\113\230\120\331\304\266\251\54\227" "\313\224\212\352\367\373\367\202\211\367\144\23\233\145\331\25" "\76\243\50\52\236\257\11\131\255\126\54\226\300\134\321\130" "\267\132\52\100\15\2\276\357\164\72\125\342\103\22\225\344" "\304\31\325\124\131\372\323\272\304\242\164\273\335\66\175\244" "\233\140\342\75\171\0\357\325\35\321\67\303\241\15\302\20" "\43\123\111\34\253\224\310\255\315\24\72\3\20\43\15\132" "\201\112\322\104\35\35\35\371\302\103\302\46\55\152\3\302" "\64\111\224\311\154\201\155\21\61\31\132\205\101\110\175\246" "\300\256\11\47\354\311\16\274\54\74\24\154\67\46\327\51" "\252\40\305\310\350\77\37\21\135\100\26\323\363\250\335\166" "\134\135\252\113\371\336\1\326\102\54\76\53\260\11\75\157" "\223\60\161\175\307\23\35\354\310\13\227\31\176\377\376\357" "\367\266\35\266\151\264\226\360\111\216\262\236\57\54\135\264" "\125\41\21\267\310\345\30\365\263\317\236\341\115\370\341\343" "\207\4\226\160\141\161\37\26\126\343\166\231\121\117\237\74" "\145\153\23\357\111\3\336\53\130\272\173\63\34\251\303\303" "\3\156\17\327\160\343\2\135\226\314\344\156\33\217\307\316" "\332\301\144\74\125\275\336\243\7\141\123\235\252\333\333\133" "\147\155\333\220\67\200\350\301\174\76\243\100\217\212\11\163" "\137\261\334\201\121\363\371\34\267\3\252\213\333\333\71\341" "\132\34\273\165\130\113\161\53\242\301\33\65\344\215\330\322" "\46\315\147\255\337\110\27\337\151\46\173\111\6\41\40\155" "\141\351\205\303\42\36\353\260\131\266\306\23\64\344\145\113" "\163\300\247\62\211\252\13\301\165\76\111\70\103\244\145\326" "\162\330\373\55\135\142\221\41\252\260\273\362\262\150\114\216" "\224\106\235\117\135\55\235\140\234\266\30\72\217\233\236\163" "\56\315\314\6\261\241\111\226\325\142\131\264\51\105\67\345" "\315\55\215\224\143\22\276\145\230\200\145\362\312\102\241\13" "\67\61\121\271\212\61\326\332\240\26\233\207\107\126\16\270" "\41\157\156\351\124\106\234\271\240\52\243\113\272\51\356\171" "\304\236\213\35\326\152\133\213\205\245\253\260\273\362\206\153" "\17\2\133\273\271\160\113\255\157\55\136\124\152\262\207\23" "\355\307\164\123\336\142\42\32\157\102\150\111\227\326\137\354" "\155\231\1\374\270\164\330\114\104\157\303\42\27\127\141\167" "\345\225\230\66\274\324\42\52\265\170\304\55\247\326\135\165" "\376\235\135\232\370\326\202\20\103\270\254\26\153\151\345\63" "\251\357\245\146\274\54\72\343\174\231\112\166\124\145\176\264" "\162\321\272\210\61\210\314\274\354\141\222\224\261\72\323\265" "\330\74\165\225\3\156\312\133\204\107\202\311\144\267\257\113" "\30\161\146\314\132\366\160\330\226\326\265\130\20\124\141\167" "\345\55\46\42\217\332\272\165\310\112\50\351\42\266\264\370" "\55\345\215\221\147\151\304\63\147\17\125\213\245\350\270\223" "\56\233\360\262\150\354\7\260\223\242\115\372\326\75\4\146" "\77\155\366\335\376\201\313\202\356\261\141\247\115\272\322\133" "\254\215\311\106\233\175\302\57\212\147\115\171\131\364\315\315" "\15\247\42\332\144\253\10\344\56\75\312\112\345\334\264\132" "\305\152\70\34\252\351\164\132\164\210\235\27\260\7\7\7" "\52\244\175\357\175\330\204\142\177\62\231\270\115\217\372\77" "\274\74\274\363\363\363\157\47\343\274\303\374\344\141\144\331" "\314\212\374\10\122\274\7\61\332\273\260\74\73\73\373\142" "\66\235\251\305\142\301\241\122\205\105\110\340\375\154\66\123" "\150\357\16\1\324\317\333\35\171\337\72\113\343\4\62\32" "\117\306\324\40\126\203\307\217\331\152\70\346\264\150\323\156" "\251\243\25\35\203\0\202\145\226\13\166\357\110\160\53\30" "\173\72\233\62\166\237\160\275\136\217\261\70\37\22\230\261" "\160\53\360\361\152\305\316\21\34\16\2\361\216\274\261\73" "\271\140\213\371\45\325\347\247\247\247\77\3\64\30\14\162" "\167\123\274\301\175\0\216\106\43\25\123\47\227\227\227\337" "\123\333\337\250\276\23\341\173\124\237\274\172\365\303\237\121" "\324\121\373\375\175\265\327\337\343\75\262\221\75\60\334\12" "\354\305\305\5\254\374\221\352\134\216\116\207\124\77\45\336" "\347\17\340\5\347\77\30\264\13\234\143\210\26\361\335\27" "\57\276\371\221\55\45\61\105\336\122\157\336\374\372\223\210" "\174\47\242\257\335\301\126\310\77\241\332\177\371\362\273\337" "\327\166\305\224\126\136\277\376\345\153\272\231\121\375\127\54" "\355\222\365\43\210\26\174\100\274\137\125\360\376\1\353\12" "\16\242\27\332\73\250\176\56\242\217\345\124\322\365\46\360" "\122\102\342\132\104\377\345\35\154\235\160\34\241\372\42\140" "\23\73\26\321\253\215\237\20\2\301\34\310\0\42\171\126" "\144\105\11\11\304\306\104\372\60\176\216\352\212\330\143\31" "\300\300\173\67\22\241\327\136\74\127\376\130\43\342\103\357" "\131\132\41\126\155\10\217\104\364\236\174\167\45\226\120\132" "\270\170\276\363\143\315\206\370\52\113\57\67\163\157\323\122" "\221\323\203\55\226\66\176\303\377\4\30\0\333\74\15\207" "\241\352\301\365\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/sidebar.png", 464, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\20\0\0\0\35\10\2\0\0\0\54\17\173" "\350\0\0\0\11\160\110\131\163\0\0\13\23\0\0\13" "\23\1\0\232\234\30\0\0\0\7\164\111\115\105\7\340" "\13\23\15\32\46\205\24\224\67\0\0\1\157\111\104\101" "\124\70\313\355\222\277\212\362\100\24\305\317\354\144\34\42" "\4\41\26\202\22\37\300\106\110\247\202\215\57\40\226\276" "\220\257\43\372\6\12\212\215\140\143\45\166\22\13\63\142" "\206\314\20\143\62\133\54\354\367\341\146\301\255\266\331\323" "\335\77\77\356\275\334\103\46\223\111\273\335\306\153\332\355" "\166\244\327\353\61\306\136\4\322\64\175\303\17\145\375\37" "\20\102\372\375\176\267\333\155\265\132\0\366\373\375\152\265" "\132\54\26\306\230\2\200\20\62\34\16\307\343\61\347\374" "\43\323\351\164\174\337\167\135\167\72\235\176\62\264\331\154" "\122\112\1\370\276\77\32\215\50\245\122\312\365\172\175\74" "\36\35\307\311\363\274\136\257\237\317\347\40\10\0\344\171" "\376\157\202\347\171\121\24\145\131\226\44\311\146\263\1\320" "\150\64\70\347\161\34\173\236\267\335\156\237\127\72\235\116" "\313\345\62\111\222\64\115\225\122\0\346\363\71\143\214\163" "\176\271\134\12\156\220\122\62\306\264\326\204\220\70\216\1" "\130\226\145\214\261\155\133\112\131\0\60\306\152\265\132\245" "\122\51\225\112\263\331\14\300\140\60\270\337\357\267\333\255" "\30\10\202\300\266\155\245\224\343\70\256\353\2\20\102\110" "\51\257\327\353\307\305\317\100\30\206\306\230\152\265\132\56" "\227\35\307\1\160\70\34\224\122\141\30\12\41\212\37\47" "\204\320\132\123\112\55\313\2\360\170\74\262\54\323\132\177" "\373\151\0\117\345\257\372\261\227\376\314\367\147\276\137\63" "\237\25\105\121\222\44\57\166\163\316\337\1\376\203\110\232" "\177\337\264\357\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/slider.png", 1433, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\55\0\0\0\17\10\6\0\0\0\160\176\106" "\247\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\13\23\0" "\0\13\23\1\0\232\234\30\0\0\0\7\164\111\115\105" "\7\342\6\10\13\37\16\373\33\1\36\0\0\5\46\111" "\104\101\124\110\307\215\226\101\150\24\131\32\307\177\337\173" "\365\272\73\155\47\335\41\30\246\23\101\304\203\220\233\207" "\10\36\234\303\350\56\13\313\116\104\26\57\353\145\101\4" "\127\204\75\357\141\157\63\347\1\311\30\34\301\363\170\62" "\316\145\140\306\113\216\43\136\366\20\20\4\315\140\254\101" "\215\166\52\225\352\352\252\172\357\355\241\73\225\352\364\10" "\363\235\212\357\275\252\367\253\377\373\177\337\173\302\221\130" "\137\137\367\336\373\243\151\104\204\225\225\25\341\23\261\267" "\267\167\134\153\375\245\210\134\2\226\201\223\300\26\360\324" "\173\377\263\265\366\361\364\364\364\273\362\205\215\232\247\53" "\140\200\34\10\75\77\221\361\131\27\214\201\74\207\337\102" "\370\223\333\200\356\2\4\1\24\5\204\157\50\41\36\75" "\172\344\173\275\36\273\273\273\354\356\356\116\100\265\333\155" "\332\355\66\235\116\207\313\227\57\217\301\107\121\164\121\51" "\165\33\130\361\336\343\234\303\173\217\210\240\224\102\104\0" "\326\235\163\167\146\146\146\236\0\360\135\340\131\254\100\157" "\173\276\245\140\141\361\20\372\315\66\374\313\337\207\205\5" "\250\325\40\313\340\315\10\372\336\275\173\76\111\222\337\205" "\375\75\370\146\263\311\215\33\67\4\140\347\375\316\105\245" "\324\327\10\347\254\265\24\326\342\217\100\153\255\121\112\43" "\302\57\316\271\377\314\315\315\75\141\65\360\324\0\1\74" "\220\301\67\24\324\152\40\2\336\17\31\377\355\277\35\2" "\37\104\226\21\0\14\6\3\172\275\36\177\44\172\275\36" "\132\153\0\302\60\74\236\27\305\155\245\344\234\265\16\153" "\55\316\331\211\167\16\300\165\240\317\71\353\157\207\341\157" "\377\353\176\177\2\134\145\222\35\12\356\52\71\153\1\227" "\215\47\213\202\140\155\155\315\47\111\202\253\14\354\354\354" "\114\54\74\67\67\127\76\347\171\316\332\332\232\317\262\354" "\272\122\152\105\104\106\12\333\221\164\207\341\1\261\26\153" "\55\332\152\274\367\53\316\271\37\330\367\103\112\13\150\300" "\100\302\320\26\316\202\322\103\233\340\223\241\344\336\201\50" "\250\325\10\342\70\46\212\242\162\221\217\37\77\362\354\331" "\263\11\137\56\57\57\63\73\73\133\252\355\234\43\111\222" "\113\265\132\35\21\301\132\73\102\254\154\371\221\320\201\306" "\73\117\236\145\227\66\376\153\351\122\251\103\340\243\335\140" "\236\56\6\103\116\316\133\102\66\376\361\71\13\323\20\10" "\24\36\336\354\101\240\265\46\10\202\362\303\255\126\13\143" "\314\101\361\14\325\362\236\126\253\65\66\117\153\115\232\246" "\313\42\12\360\14\33\116\225\164\234\134\204\321\217\11\375" "\101\272\374\334\103\134\201\336\6\166\171\116\114\114\200\241" "\40\47\144\233\316\7\210\163\250\51\310\334\10\272\335\156" "\217\301\164\72\235\322\203\207\336\262\164\273\335\261\37\71" "\166\354\30\375\244\177\122\224\240\105\37\165\305\260\222\4" "\360\62\66\346\234\243\237\364\117\146\43\320\112\35\222\223" "\21\262\215\40\170\74\71\131\11\132\326\241\203\140\161\161" "\221\64\115\313\144\243\321\100\51\305\354\354\54\101\20\120" "\24\5\37\76\174\340\314\231\63\23\363\222\44\331\22\45" "\247\215\61\50\255\0\101\106\212\373\61\167\13\210\307\132" "\117\136\144\44\373\311\126\16\247\217\324\41\71\71\256\122" "\235\26\113\146\301\125\66\260\160\20\54\54\54\220\347\171" "\231\74\161\342\4\213\213\213\164\72\35\264\326\130\153\231" "\232\232\342\354\331\263\274\176\375\272\234\147\214\141\153\353" "\327\247\242\344\164\263\71\205\166\301\21\147\14\65\254\232" "\244\50\12\372\375\76\351\40\175\272\357\71\175\244\16\111" "\330\37\201\133\24\32\203\41\310\51\301\225\100\115\203\154" "\156\156\372\172\275\76\246\342\251\123\247\46\212\350\345\313" "\227\143\52\17\6\3\66\67\67\257\7\101\160\277\325\152" "\225\73\64\326\65\52\172\73\347\110\323\224\70\216\51\212" "\342\372\337\177\234\277\317\164\27\224\1\227\303\136\310\77" "\355\3\132\255\126\51\126\34\307\134\271\162\205\371\371\171" "\214\61\344\171\316\333\267\157\11\226\226\226\344\325\253\127" "\276\321\150\224\13\206\141\70\1\135\35\327\132\263\264\264" "\44\17\37\76\74\36\307\173\353\266\50\126\354\364\64\365" "\172\35\121\202\34\30\143\44\261\363\216\164\60\140\77\216" "\351\367\373\353\265\132\355\61\73\317\41\217\17\241\243\155" "\336\27\357\311\262\14\245\24\316\71\242\50\342\305\213\27" "\354\357\357\227\126\15\303\160\170\270\4\101\100\243\321\30" "\263\311\247\302\30\103\121\24\0\134\275\172\365\335\203\7" "\17\356\244\151\257\233\16\6\347\132\255\26\365\172\3\255" "\25\112\53\334\350\300\31\14\62\342\170\217\176\277\377\213" "\326\301\235\153\327\256\275\343\157\253\20\125\112\261\310\260" "\326\22\105\21\42\202\367\36\153\55\131\226\21\206\141\231" "\313\262\354\260\126\242\50\362\7\23\17\240\252\21\4\1" "\132\153\104\204\231\231\231\261\136\161\367\356\335\213\131\236" "\337\256\31\263\322\150\64\250\327\353\50\245\260\326\221\145" "\3\322\176\112\136\344\353\306\230\73\67\157\336\34\336\75" "\376\372\215\107\164\245\333\130\376\142\177\234\150\265\27\56" "\134\30\263\235\163\156\242\121\221\44\211\377\224\312\315\146" "\363\223\267\274\325\325\325\343\111\222\174\151\255\275\344\275" "\57\157\171\42\362\64\320\372\347\251\146\363\361\255\133\267" "\16\157\171\177\376\312\143\53\307\237\66\174\121\74\301\71" "\207\163\16\245\24\112\51\316\237\77\117\236\347\303\23\125" "\153\214\61\374\37\214\156\303\4\371\156\171\336\0\0\0" "\0\111\105\116\104\256\102\140\202" }, { ":resources/stddev_horizontal.png", 271, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\1\54\0\0\0\1\10\6\0\0\0\144\70\223" "\51\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\13\23\0" "\0\13\23\1\0\232\234\30\0\0\0\7\164\111\115\105" "\7\342\7\17\17\0\46\244\112\36\257\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\163\111\104\101\124\70\313\143\144" "\300\3\376\63\374\267\301\43\255\200\103\134\3\215\57\205" "\306\27\105\343\363\43\261\171\220\330\134\110\154\16\50\315" "\206\44\206\314\146\205\322\54\110\142\214\150\64\72\33\37" "\40\126\35\265\364\215\202\341\13\376\323\130\337\177\2\354" "\77\110\142\277\241\364\57\44\61\144\366\17\44\366\67\44" "\366\27\44\366\107\64\373\137\43\261\237\141\161\337\15\54" "\142\17\160\147\40\306\43\370\74\13\0\252\232\24\2\212" "\222\215\307\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/stddev_horizontal_disabled.png", 273, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\1\54\0\0\0\1\10\6\0\0\0\144\70\223" "\51\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\13\23\0" "\0\13\23\1\0\232\234\30\0\0\0\7\164\111\115\105" "\7\342\7\17\17\37\45\360\31\101\213\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\165\111\104\101\124\70\313\143\144" "\300\3\366\357\337\157\203\107\132\1\207\270\6\32\137\12" "\215\57\212\306\347\107\142\363\40\261\271\220\330\34\120\232" "\15\111\14\231\315\12\245\131\220\304\30\321\150\164\66\76" "\100\254\72\152\351\33\5\303\27\374\247\261\276\377\4\330" "\177\220\304\176\103\351\137\110\142\310\354\37\110\354\157\110" "\354\57\110\354\217\150\366\277\106\142\77\303\342\276\33\130" "\304\36\340\362\214\243\243\343\21\174\236\5\0\342\65\25" "\2\72\30\226\127\0\0\0\0\111\105\116\104\256\102\140" "\202" }, { ":resources/stddev_vertical.png", 277, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\1\0\0\1\54\10\6\0\0\0\2\120\331" "\325\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\13\23\0" "\0\13\23\1\0\232\234\30\0\0\0\7\164\111\115\105" "\7\342\7\17\17\1\0\157\134\252\23\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\171\111\104\101\124\70\313\143\140" "\40\14\376\63\374\267\141\142\140\140\140\300\113\50\340\225" "\325\300\42\46\205\105\114\24\213\30\77\52\227\7\225\313" "\205\312\345\200\263\330\120\45\320\270\254\160\26\13\252\4" "\43\26\26\66\56\21\4\351\72\150\147\312\50\61\112\120" "\231\370\77\100\246\374\47\222\373\7\125\342\67\234\365\13" "\125\2\215\373\3\225\373\15\225\373\5\225\373\21\213\373" "\136\243\162\237\341\362\307\15\134\22\17\360\207\1\261\0" "\0\63\213\25\163\50\221\42\315\0\0\0\0\111\105\116" "\104\256\102\140\202" }, { ":resources/stddev_vertical_disabled.png", 277, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\1\0\0\1\54\10\6\0\0\0\2\120\331" "\325\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\13\23\0" "\0\13\23\1\0\232\234\30\0\0\0\7\164\111\115\105" "\7\342\7\17\17\37\43\31\172\344\276\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\171\111\104\101\124\70\313\143\140" "\40\14\366\357\337\157\303\304\300\300\300\200\227\120\300\53" "\253\201\105\114\12\213\230\50\26\61\176\124\56\17\52\227" "\13\225\313\1\147\261\241\112\240\161\131\341\54\26\124\11" "\106\54\54\154\134\42\10\322\165\320\316\224\121\142\224\240" "\62\361\177\200\114\371\117\44\367\17\252\304\157\70\353\27" "\252\4\32\367\7\52\367\33\52\367\13\52\367\43\26\367" "\275\106\345\76\303\345\217\33\270\44\36\340\17\3\142\1" "\0\233\243\25\262\261\52\75\227\0\0\0\0\111\105\116" "\104\256\102\140\202" }, { ":resources/switch_back_off.png", 2263, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\73\0\0\0\41\10\6\0\0\0\147\150\323" "\116\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\5\60\365\67\44\27\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\10\77\111\104\101\124\130\303\335\231\115\214\34\107" "\25\307\377\357\125\325\314\316\170\146\147\327\316\172\277\262" "\366\332\323\275\174\44\33\333\132\213\34\42\73\310\22\50" "\227\110\310\27\214\20\160\341\224\173\220\162\343\300\71\12" "\342\222\23\50\102\134\220\20\7\44\100\102\101\71\200\117" "\61\121\210\145\24\272\263\33\7\47\166\354\144\147\35\257" "\167\147\266\253\352\161\160\365\320\323\236\331\170\55\263\174" "\224\124\252\232\356\236\356\372\325\377\275\372\170\105\111\222" "\340\141\122\34\307\14\240\6\240\12\200\260\77\311\2\330" "\112\222\44\173\230\77\323\203\302\306\161\134\1\60\17\340" "\10\200\31\0\7\366\21\262\234\62\0\353\0\376\1\340" "\203\44\111\72\217\4\66\216\143\3\140\31\300\23\0\364" "\10\300\375\202\226\21\327\76\6\360\146\222\44\67\37\32" "\66\216\343\143\0\236\56\231\52\15\203\144\146\172\304\35" "\160\37\230\367\136\106\334\317\353\357\3\270\230\44\311\316" "\3\303\306\161\114\0\116\1\370\162\150\164\37\224\231\171" "\4\14\1\0\321\243\25\131\104\106\301\113\350\0\137\370" "\55\0\356\0\170\43\111\222\215\317\205\15\240\317\0\130" "\50\300\121\111\131\12\120\3\52\17\121\27\50\74\374\200" "\140\243\24\225\301\107\7\236\315\357\113\200\317\0\274\236" "\44\311\172\361\75\172\310\67\237\140\346\131\0\16\0\207" "\227\344\40\44\42\124\350\204\342\75\210\210\224\201\211\210" "\367\250\244\224\101\265\326\375\216\55\52\231\327\211\110\362" "\16\141\146\37\332\375\114\34\307\177\110\222\244\73\24\66" "\216\343\31\146\156\207\41\76\7\342\102\335\50\245\346\152" "\265\332\102\263\331\214\215\61\207\105\144\100\321\262\342\173" "\65\353\22\353\0\273\367\36\336\373\255\136\257\267\266\261" "\261\221\172\357\157\70\347\66\210\110\230\131\274\367\56\10" "\340\275\367\106\51\165\32\300\237\356\203\215\343\230\224\122" "\113\314\234\5\100\146\146\25\324\342\261\261\261\346\343\217" "\77\376\374\334\334\334\331\132\255\66\141\214\201\61\6\314" "\14\42\272\257\54\346\62\164\136\57\202\210\310\310\354\275" "\357\227\326\132\130\153\237\356\365\172\266\323\351\374\175\155" "\155\355\227\267\157\337\176\327\173\357\231\331\173\357\75\21" "\171\42\162\0\132\161\34\317\44\111\162\143\300\147\237\172" "\352\251\171\347\334\27\231\131\345\240\1\226\247\247\247\27" "\332\355\366\367\46\46\46\126\162\300\42\134\371\167\31\266" "\10\75\112\315\34\174\30\140\136\226\263\163\16\335\156\367" "\223\353\327\257\377\152\165\165\365\215\136\257\327\363\336\173" "\21\161\101\135\307\314\233\133\133\133\27\223\44\221\276\262" "\112\251\31\255\165\46\42\76\200\172\146\366\315\146\263\171" "\352\324\251\157\127\253\325\25\245\324\0\334\260\134\6\316" "\7\357\121\300\145\310\42\354\156\240\171\326\132\77\166\374" "\370\361\357\152\255\257\45\111\362\127\153\255\43\42\347\275" "\167\376\136\62\215\106\343\20\200\117\64\0\234\75\173\266" "\136\255\126\65\63\333\0\51\104\244\210\210\126\126\126\126" "\32\215\306\127\302\134\212\42\360\156\360\105\325\107\51\134" "\4\55\203\355\246\146\261\36\276\121\153\267\333\337\330\334" "\334\174\267\323\351\334\21\21\147\255\265\71\260\210\114\364" "\141\215\61\343\306\230\314\30\343\211\110\347\40\163\163\163" "\315\203\7\17\176\323\132\113\371\265\34\260\134\226\257\225" "\73\142\67\330\62\134\16\344\234\33\12\227\137\43\242\176" "\11\140\145\171\171\171\345\255\267\336\372\43\0\347\234\363" "\71\264\265\266\31\307\61\151\0\150\265\132\25\143\214\43" "\42\30\143\210\231\111\51\345\147\147\147\47\0\34\55\103" "\14\203\322\132\17\334\57\77\127\64\357\322\324\2\21\31" "\0\314\113\153\155\37\330\71\67\0\347\234\33\30\354\234" "\163\150\66\233\117\114\117\117\277\176\117\124\357\234\163\316" "\132\353\211\10\215\106\303\150\0\230\235\235\125\132\153\257" "\224\142\245\224\317\115\271\331\154\36\311\262\154\250\311\226" "\241\264\326\175\340\42\170\136\57\253\134\366\315\42\224\265" "\366\76\377\337\145\172\52\372\372\374\302\302\2\155\157\157" "\213\265\126\0\170\347\356\271\156\267\333\275\7\333\156\267" "\225\210\210\326\132\302\140\5\21\241\54\313\216\210\310\256" "\43\354\60\123\56\102\346\235\120\354\0\146\356\253\131\4" "\34\6\225\177\77\377\117\61\227\333\342\234\133\74\174\370" "\60\131\153\311\132\13\245\24\71\347\304\71\107\132\153\243" "\243\50\122\313\313\313\225\315\315\115\6\300\104\244\0\50" "\42\342\365\365\365\312\315\233\67\361\277\222\264\326\324\156" "\267\315\346\346\146\26\70\174\140\221\50\212\252\32\200\136" "\131\131\251\257\255\255\171\42\122\42\242\105\304\0\60\7" "\17\36\374\244\323\351\300\132\273\353\204\137\364\247\274\136" "\36\155\13\43\347\3\231\161\171\160\52\347\141\155\231\235" "\235\375\150\176\176\276\266\275\275\235\205\357\11\21\111\255" "\126\63\117\76\371\144\105\3\300\374\374\374\170\257\327\273" "\113\104\332\71\127\1\240\105\244\122\255\126\327\257\134\271" "\202\116\247\63\260\372\31\345\103\305\306\347\46\33\314\351" "\221\14\120\345\221\271\334\31\121\24\335\156\265\132\150\64" "\32\325\260\371\40\146\246\126\253\65\166\350\320\41\255\1" "\354\114\114\114\34\230\236\236\46\153\55\0\30\21\251\70" "\347\52\255\126\353\356\322\322\322\255\213\27\57\116\225\227" "\166\301\257\373\76\225\3\376\273\247\236\121\345\344\344\44" "\226\226\226\256\33\143\252\141\255\316\104\244\211\110\117\115" "\115\115\216\217\217\367\164\232\246\262\270\270\370\351\324\324" "\124\274\265\265\265\56\42\106\104\52\42\142\234\163\167\236" "\175\366\331\277\134\273\166\355\353\127\257\136\245\141\160\336" "\373\76\120\331\124\367\143\121\221\117\105\317\75\367\334\265" "\371\371\371\267\273\335\156\55\207\44\242\214\231\115\263\331" "\234\4\360\251\16\216\375\301\201\3\7\276\12\240\347\275" "\257\170\357\15\21\31\21\61\132\353\67\317\237\77\177\362" "\325\127\137\235\276\173\367\356\110\270\377\324\162\321\71\207" "\63\147\316\144\47\116\234\270\354\275\357\326\353\365\6\63" "\357\20\221\41\242\254\122\251\214\33\143\156\245\151\332\313" "\327\306\37\152\255\273\365\172\375\150\226\145\237\5\123\66" "\336\373\252\210\144\213\213\213\177\176\361\305\27\317\275\366" "\332\153\23\151\232\376\327\154\4\252\325\52\56\134\270\320" "\75\175\372\364\373\225\112\345\212\210\34\140\346\214\210\14" "\200\12\21\331\132\255\26\51\245\176\63\260\353\211\242\250" "\355\234\373\241\265\366\235\60\32\153\357\175\105\104\52\0" "\64\63\317\164\273\335\257\135\272\164\151\374\362\345\313\346" "\352\325\253\270\165\353\126\137\265\375\332\342\325\353\165\54" "\54\54\340\330\261\143\376\334\271\163\275\311\311\311\167\274" "\367\227\0\144\104\144\231\171\107\104\62\146\316\264\326\323" "\314\274\272\272\272\372\362\175\141\231\166\273\375\222\210\234" "\364\336\277\227\117\77\336\173\23\224\326\104\124\143\346\143" "\275\136\157\6\300\143\265\132\255\276\357\61\324\54\163\73" "\73\73\33\143\143\143\67\104\344\103\357\375\55\42\262\0" "\34\21\145\0\154\330\223\127\264\326\107\210\350\373\151\232" "\336\274\57\122\101\104\257\0\370\31\63\177\101\104\156\206" "\373\375\54\42\112\104\76\64\306\174\14\100\131\153\111\104" "\24\0\362\336\163\10\67\221\367\276\34\263\102\10\347\354" "\32\244\10\212\367\343\112\314\54\41\124\41\314\54\141\221" "\340\253\325\252\27\21\117\104\126\51\125\313\141\1\30\146" "\316\243\54\137\42\242\227\162\320\241\1\267\50\212\146\0" "\374\132\104\66\104\344\323\240\260\12\300\34\340\30\200\12" "\0\34\140\251\20\230\243\2\334\347\305\231\207\106\15\211" "\150\40\230\126\200\25\42\362\71\70\200\74\52\341\202\272" "\104\104\113\104\364\323\64\115\137\371\334\120\152\24\105\213" "\42\362\213\160\274\361\101\200\125\336\173\25\352\134\200\52" "\106\37\313\52\322\36\143\310\62\102\351\176\16\240\50\302" "\62\163\16\133\43\242\243\0\176\222\246\351\217\37\70\110" "\36\105\121\23\300\317\105\344\44\200\217\0\154\345\261\251" "\320\370\262\242\50\205\134\21\72\2\173\124\66\127\125\112" "\367\245\244\162\137\351\340\76\63\0\52\0\136\110\323\364" "\367\173\76\21\210\242\210\0\174\13\300\217\202\31\167\104" "\144\263\4\106\243\116\13\376\25\365\334\173\12\100\30\1" "\234\327\15\21\115\2\150\2\370\35\200\37\24\175\364\241" "\16\266\242\50\252\3\170\1\300\167\302\301\326\147\1\314" "\2\260\245\375\345\156\46\113\173\74\307\31\270\36\326\273" "\225\360\36\15\300\0\370\55\200\227\323\64\175\373\221\235" "\342\25\300\217\3\70\3\140\21\100\14\140\172\37\17\266" "\266\1\274\27\362\337\0\274\221\246\251\175\344\107\226\377" "\17\351\237\124\265\242\365\167\377\134\106\0\0\0\0\111" "\105\116\104\256\102\140\202" }, { ":resources/switch_back_on.png", 2504, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\73\0\0\0\41\10\6\0\0\0\147\150\323" "\116\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\6\31\234\250\357\270\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\11\60\111\104\101\124\130\303\335\231\135\154\34\127" "\25\307\377\347\334\73\263\136\147\327\353\270\161\374\205\123" "\267\236\111\77\122\367\103\256\32\240\45\102\225\370\350\103" "\21\342\205\357\57\211\7\124\361\132\104\45\36\170\340\271" "\52\342\205\47\20\102\110\10\251\352\3\25\40\241\322\74" "\100\45\244\176\250\37\12\52\63\115\332\64\315\107\223\70" "\116\342\332\136\357\275\347\360\60\167\166\147\327\166\33\207" "\64\24\106\272\276\327\63\273\263\363\73\377\163\356\271\163" "\56\145\131\206\253\71\322\64\145\0\165\0\65\0\204\353" "\163\70\0\253\131\226\165\256\346\313\164\245\260\151\232\306" "\0\146\0\354\3\60\11\140\327\165\204\34\74\72\0\226" "\0\274\15\340\170\226\145\27\256\11\154\232\246\21\200\5" "\0\7\0\330\155\0\257\27\264\156\163\356\14\200\347\263" "\54\173\367\252\141\323\64\275\11\300\301\1\127\245\255\40" "\231\231\256\261\1\66\201\211\210\156\163\275\34\277\11\340" "\271\54\313\66\256\30\66\115\123\2\160\17\200\333\303\103" "\167\101\231\231\267\201\41\0\40\272\266\42\253\352\166\360" "\32\14\40\225\377\25\300\145\0\207\263\54\133\376\100\330" "\0\172\77\200\331\12\34\15\50\113\1\252\117\345\55\324" "\5\52\37\276\102\260\355\24\325\376\217\366\175\266\274\256" "\1\276\3\340\231\54\313\226\252\367\261\133\374\346\1\146" "\236\2\340\1\160\270\111\11\102\252\112\25\43\124\257\101" "\125\165\20\230\210\170\207\112\352\40\250\265\266\153\330\252" "\222\345\230\210\264\64\10\63\113\170\356\373\323\64\375\113" "\226\145\353\133\302\246\151\72\311\314\363\141\212\57\201\270" "\62\216\214\61\323\276\276\147\226\232\123\51\114\175\57\21" "\210\30\104\245\370\305\210\52\216\15\176\337\60\326\76\37" "\255\262\52\124\131\273\376\32\264\163\253\130\133\76\106\227" "\336\312\215\270\323\336\373\145\42\122\146\126\21\361\341\126" "\42\42\221\61\346\136\0\177\333\4\233\246\51\31\143\366" "\63\163\47\0\62\63\233\240\26\17\15\15\65\243\217\55" "\76\334\236\376\344\41\63\64\76\212\270\1\104\165\60\33" "\20\63\230\31\114\14\142\352\366\104\241\365\214\260\211\267" "\364\106\325\2\264\150\2\125\205\210\102\105\40\52\105\57" "\2\165\33\100\147\345\40\265\57\271\150\351\310\277\350\255" "\303\277\137\273\170\366\165\21\21\146\26\21\21\42\22\42" "\362\0\132\151\232\116\146\131\166\272\57\146\357\274\363\316" "\31\357\375\255\314\154\112\320\0\313\143\23\123\263\74\377" "\320\267\57\216\336\265\350\242\46\230\31\206\115\1\150\2" "\150\27\226\301\134\312\115\175\255\220\234\266\210\323\52\254" "\24\220\145\37\140\105\4\342\213\336\213\17\340\35\14\257" "\37\77\267\353\324\263\117\136\76\372\342\341\166\273\335\26" "\21\121\125\37\324\365\314\274\262\272\272\372\134\226\145\332" "\125\326\30\63\151\255\355\250\252\4\120\141\146\151\66\233" "\315\241\173\276\366\365\63\265\333\26\141\42\304\306\24\240" "\206\273\75\227\340\225\106\104\335\276\7\113\233\34\131\125" "\13\357\54\25\25\15\112\152\1\330\155\36\342\3\150\331" "\33\213\365\50\331\143\352\143\337\232\266\70\161\52\173\351" "\25\347\234\47\42\57\42\136\212\43\152\64\32\67\0\70" "\147\1\340\320\241\103\303\265\132\315\62\263\13\220\112\104" "\206\210\150\172\361\341\305\67\233\267\337\307\250\301\260\201" "\61\6\154\212\336\4\120\143\52\260\325\61\21\150\0\270" "\33\321\12\150\361\7\212\122\301\136\137\50\351\273\260\336" "\173\210\170\170\137\234\367\342\341\275\7\173\306\72\357\251" "\313\374\103\137\234\132\71\375\372\205\13\27\56\253\252\167" "\316\271\22\130\125\107\273\260\121\24\215\104\121\324\211\242" "\110\210\310\62\63\214\61\230\236\236\156\236\270\341\340\227" "\67\334\20\131\143\3\340\346\306\306\300\204\357\364\301\16" "\50\135\144\40\102\231\210\252\256\253\72\250\144\11\25\372" "\320\330\170\210\147\260\57\302\206\211\341\211\161\36\373\26" "\367\57\74\274\350\136\172\352\257\0\274\367\136\112\150\347" "\134\63\115\123\262\0\320\152\265\342\50\212\74\21\41\212" "\42\142\146\62\306\110\74\165\307\350\12\232\67\132\143\141" "\154\11\127\201\266\3\377\227\255\342\336\306\224\260\225\111" "\13\375\260\345\4\344\175\160\327\240\144\241\234\207\124\15" "\347\31\56\204\104\71\373\203\0\347\200\265\346\115\7\46" "\46\46\236\51\104\25\357\275\367\316\71\41\42\64\32\215" "\310\2\300\324\324\224\261\326\212\61\206\215\61\122\272\362" "\271\126\262\117\66\154\45\56\213\207\357\201\131\330\322\0" "\326\364\235\357\67\100\57\256\211\13\127\356\306\151\305\115" "\213\170\14\220\345\204\107\4\337\205\353\246\244\42\301\230" "\162\46\67\120\243\270\104\255\231\133\147\147\151\155\155\115" "\235\163\12\100\274\57\102\267\126\253\305\26\0\346\347\347" "\215\252\252\265\126\303\144\5\125\245\254\63\266\117\24\60" "\301\5\273\263\54\123\260\64\365\322\16\367\342\267\124\275" "\337\20\75\3\224\13\252\252\173\22\23\310\21\174\320\135" "\25\120\243\60\152\172\51\211\31\242\12\26\206\260\200\244" "\177\266\277\354\342\271\275\173\367\222\163\216\234\163\60\306" "\220\367\136\275\367\144\255\265\66\111\22\263\260\260\20\257" "\254\254\60\0\46\42\3\300\20\21\217\57\15\307\147\316" "\342\177\346\250\131\103\363\363\363\321\312\312\112\47\160\110" "\140\321\44\111\152\26\200\135\134\134\34\76\166\354\230\20" "\221\121\125\253\252\21\200\350\343\143\273\317\345\313\253\150" "\173\355\46\171\146\201\12\103\110\100\302\140\222\60\46\20" "\171\170\137\131\71\150\31\227\105\216\364\73\160\343\276\124" "\123\231\264\172\213\14\255\54\102\212\166\313\164\375\344\314" "\314\114\175\155\155\255\23\102\101\211\110\353\365\172\264\260" "\260\120\263\0\60\63\63\63\322\156\267\337\43\42\353\275" "\217\1\130\125\215\157\250\355\131\172\372\310\111\234\132\336" "\0\221\7\21\340\75\205\145\163\37\123\221\76\312\37\26" "\15\151\342\77\237\240\274\367\175\356\336\155\122\216\173\71" "\370\340\315\243\27\133\55\213\106\243\121\13\57\37\304\314" "\324\152\265\206\306\306\306\214\5\260\61\72\72\272\153\142" "\142\202\234\163\0\20\251\152\354\275\217\133\255\306\173\367" "\337\62\172\366\167\317\235\34\327\356\303\241\337\242\122\311" "\211\306\300\177\310\251\247\252\276\167\275\363\63\273\143\174" "\142\377\356\123\255\310\324\302\313\10\23\221\45\42\73\76" "\76\276\173\144\144\244\155\363\74\327\271\271\271\363\343\343" "\343\351\352\352\352\222\252\106\252\32\253\152\344\275\277\374" "\335\103\263\57\36\171\173\345\263\57\37\277\110\52\275\65" "\152\271\252\51\324\63\360\377\245\105\205\367\36\114\212\37" "\174\356\346\23\13\63\103\57\257\257\243\136\102\22\121\207" "\231\243\146\263\271\33\300\171\13\0\326\332\343\273\166\355" "\372\64\200\266\210\304\42\22\21\121\244\252\321\250\265\317" "\377\350\113\373\357\376\376\57\136\230\270\360\336\6\274\30" "\30\157\340\77\12\313\305\320\177\343\201\331\316\347\357\32" "\177\215\144\175\175\170\170\270\301\314\33\104\24\21\121\47" "\216\343\221\50\212\316\346\171\336\56\327\306\357\130\153\327" "\207\207\207\157\354\164\72\227\202\53\107\42\122\123\325\316" "\175\163\255\277\77\371\350\3\17\76\372\353\27\107\377\221" "\57\175\144\136\4\32\61\343\307\137\271\143\375\13\367\316" "\274\331\210\345\210\352\320\56\146\356\20\121\4\40\46\42" "\127\257\327\23\143\314\37\372\336\172\222\44\231\367\336\377" "\304\71\367\152\230\215\255\210\304\252\32\3\260\314\74\171" "\151\35\237\171\372\205\23\43\317\276\172\46\172\355\370\62" "\216\235\135\55\142\360\72\276\342\265\206\55\16\314\266\160" "\317\334\250\174\347\301\244\75\75\126\173\225\304\275\0\240" "\103\104\216\231\67\124\265\303\314\35\153\355\4\63\37\75" "\172\364\350\343\233\312\62\363\363\363\217\251\352\335\42\362" "\106\231\176\104\44\12\112\133\42\252\63\363\115\253\155\231" "\364\300\236\221\172\74\274\165\301\357\303\73\332\35\361\353" "\33\156\271\61\304\247\241\372\216\210\234\45\42\7\300\23" "\121\7\200\13\357\344\261\265\166\37\21\175\57\317\363\167" "\67\125\52\210\350\11\0\277\142\346\133\124\365\335\160\275" "\333\124\325\250\352\73\103\21\316\0\60\336\155\220\252\32" "\0\44\42\34\312\115\44\42\203\65\53\204\162\316\373\126" "\144\302\312\252\133\264\140\146\15\145\32\145\146\5\40\6" "\220\106\215\4\252\102\104\316\30\123\57\141\1\104\314\134" "\126\131\156\43\242\307\112\320\55\13\156\111\222\114\2\170" "\112\125\227\125\365\174\120\330\4\140\16\160\14\300\4\0" "\16\260\124\51\314\121\5\356\203\352\314\133\126\15\211\250" "\257\230\126\302\6\243\110\30\13\200\262\52\341\203\272\104" "\104\373\211\350\227\171\236\77\361\201\245\324\44\111\346\124" "\365\267\141\173\343\170\200\65\42\142\302\230\53\120\325\352" "\343\240\212\264\303\32\262\156\243\164\267\5\120\124\141\231" "\271\204\255\23\321\215\0\176\236\347\371\317\256\270\110\236" "\44\111\23\300\157\124\365\156\0\47\1\254\226\265\251\360" "\360\203\212\142\240\344\212\140\10\354\120\331\122\125\35\270" "\256\3\52\167\225\16\341\63\11\40\6\360\110\236\347\177" "\336\361\216\100\222\44\4\340\253\0\176\32\334\370\202\252" "\256\14\200\321\166\273\5\275\252\347\316\217\0\204\155\200" "\313\161\104\104\273\1\64\1\374\11\300\17\253\61\172\125" "\33\133\111\222\14\3\170\4\300\67\303\306\326\245\0\346" "\0\270\201\122\357\373\271\54\355\160\37\247\357\174\130\357" "\306\341\76\26\100\4\340\217\0\36\317\363\374\345\153\266" "\213\127\1\277\31\300\247\0\314\1\110\1\114\134\307\215" "\255\65\0\157\204\366\117\0\207\363\74\167\327\174\313\362" "\377\341\370\67\174\303\225\57\357\342\274\12\0\0\0\0" "\111\105\116\104\256\102\140\202" }, { ":resources/switch_front.png", 1776, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\46\0\0\0\50\10\6\0\0\0\222\67\210" "\336\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\3\30\226\330\53\153\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\6\130\111\104\101\124\130\303\305\230\117\154\224\171" "\31\307\77\357\77\246\63\155\146\136\313\224\55\255\245\135" "\310\30\332\144\265\222\170\321\304\222\220\364\40\342\36\210" "\211\7\344\242\27\75\250\7\215\341\300\245\106\23\23\116" "\172\221\243\7\40\54\211\51\161\223\135\44\203\40\64\270" "\20\110\355\132\322\362\132\244\355\266\165\246\35\246\323\371" "\373\276\357\357\367\216\7\176\157\63\314\266\313\266\54\303" "\223\74\311\144\16\235\117\277\317\237\337\363\74\232\343\70" "\354\326\122\251\224\26\176\176\372\364\151\304\266\355\66\333" "\266\13\341\167\216\343\324\167\373\267\315\335\300\314\316\316" "\166\366\366\366\36\257\126\253\337\63\14\143\20\350\326\64" "\255\23\300\363\274\52\260\22\4\301\47\102\210\353\225\112" "\145\174\337\276\175\323\73\5\325\167\0\244\307\343\361\257" "\227\112\245\277\366\367\367\257\230\246\371\147\115\323\116\6" "\101\60\24\4\101\247\20\2\41\4\101\20\104\203\40\70" "\10\174\333\64\315\337\304\343\361\217\53\225\312\354\263\147" "\317\176\164\341\302\5\263\121\345\317\62\355\145\241\124\12" "\35\350\352\352\372\335\236\75\173\176\20\376\63\122\112\204" "\20\110\51\251\327\137\24\102\323\64\164\135\307\60\14\114" "\323\104\323\236\263\110\51\247\313\345\362\257\173\172\172\76" "\160\34\47\330\65\130\52\225\322\35\307\31\331\273\167\357" "\173\272\256\47\1\204\20\370\276\277\243\360\33\206\201\145" "\131\233\200\225\112\345\367\47\116\234\70\373\340\301\3\261" "\135\170\267\5\113\245\122\306\334\334\334\217\343\361\370\37" "\65\115\263\202\40\100\10\361\51\165\166\12\150\232\317\323" "\332\165\335\367\323\351\364\17\117\237\76\135\330\12\116\337" "\16\152\152\152\352\124\173\173\373\237\244\224\226\353\272\270" "\256\213\224\222\40\10\166\355\276\357\123\253\325\360\175\37" "\303\60\276\73\62\62\162\371\350\321\243\221\255\362\356\123" "\212\245\122\51\375\346\315\233\337\74\164\350\320\337\64\115" "\213\326\353\365\127\122\151\333\252\323\237\153\262\261\261\361" "\207\241\241\241\137\2\57\204\125\157\206\32\33\33\113\366" "\365\365\275\47\245\214\206\311\375\52\52\155\347\141\25\307" "\142\261\237\335\276\175\373\373\200\321\250\234\336\324\54\315" "\321\321\321\137\1\373\137\27\120\263\113\51\111\46\223\277" "\35\36\36\356\0\264\255\24\323\317\236\75\333\237\110\44" "\176\32\46\171\253\300\164\135\37\70\167\356\334\117\200\315" "\76\247\67\250\145\215\214\214\374\42\10\202\130\20\4\204" "\271\365\272\75\154\101\311\144\362\347\266\155\307\102\325\364" "\6\345\142\35\35\35\307\205\20\0\55\121\53\24\100\112" "\211\246\151\157\215\215\215\215\204\317\144\50\235\161\346\314" "\231\257\131\226\325\57\245\334\4\153\245\11\41\70\160\340" "\300\273\100\72\225\112\11\123\111\147\15\15\15\175\107\10" "\201\145\131\55\207\322\64\15\41\4\361\170\174\4\210\2" "\325\20\254\315\64\315\267\245\224\157\4\54\174\173\115\323" "\334\17\264\3\5\135\345\127\233\256\353\335\141\65\276\11" "\127\51\24\75\174\370\360\136\300\60\25\130\304\64\315\256" "\306\66\321\152\13\133\307\221\43\107\372\146\146\146\146\302" "\120\232\256\353\6\152\236\172\43\140\341\53\223\317\347\1" "\364\20\314\50\24\12\105\333\266\361\175\177\363\35\153\245" "\171\236\107\275\136\347\376\375\373\371\20\14\240\276\276\276" "\236\357\355\355\305\367\175\54\313\152\51\124\275\136\307\367" "\175\134\327\255\256\255\255\371\141\143\255\3\101\66\233\135" "\21\102\120\253\325\132\236\370\236\347\41\204\40\237\317\257" "\2\2\10\102\60\77\235\116\177\44\204\240\134\56\267\254" "\353\207\136\56\227\221\122\362\370\361\343\217\1\17\220\46" "\20\0\356\324\324\324\102\46\223\131\116\46\223\75\325\152" "\225\110\44\322\262\120\26\213\105\204\20\114\114\114\174\4" "\270\241\142\1\120\3\12\323\323\323\223\112\322\226\251\125" "\52\225\250\325\152\344\162\271\265\273\167\357\76\2\312\215" "\140\56\260\176\371\362\345\17\212\305\142\145\143\143\203\112" "\245\322\22\260\325\325\125\204\20\134\277\176\375\32\220\3" "\52\200\324\325\70\353\3\205\174\76\277\170\347\316\235\133" "\102\10\62\231\14\257\173\374\311\345\162\124\253\125\126\126" "\126\376\167\365\352\325\133\12\254\12\324\303\206\45\200\42" "\260\162\345\312\225\17\263\331\354\132\271\134\146\151\151\351" "\265\51\125\54\26\311\144\62\170\236\27\214\217\217\277\17" "\54\1\317\0\317\161\234\40\4\253\53\322\214\357\373\363" "\347\317\237\277\120\52\225\152\371\174\176\123\271\57\322\53" "\225\12\213\213\213\141\10\377\176\357\336\275\177\2\237\0" "\33\200\334\34\24\33\302\271\16\314\57\54\54\114\135\272" "\164\151\334\367\375\40\223\311\260\270\270\370\205\55\45\353" "\353\353\314\315\315\341\171\36\123\123\123\377\36\37\37\377" "\20\370\57\220\125\105\130\157\76\252\324\125\342\255\0\316" "\303\207\17\333\201\75\47\117\236\74\56\204\210\124\52\25" "\172\172\172\210\305\142\273\36\153\62\231\14\271\134\16\200" "\311\311\311\177\135\274\170\361\57\200\3\314\53\265\66\127" "\270\27\366\112\65\315\106\200\56\340\60\360\116\137\137\337" "\127\117\235\72\365\156\42\221\260\1\22\211\4\335\335\335" "\264\265\265\175\156\240\134\56\107\66\233\105\112\211\224\62" "\110\247\323\267\156\334\270\361\17\340\21\60\15\54\2\145" "\307\161\344\147\56\274\100\33\260\17\370\12\60\30\215\106" "\17\215\216\216\176\153\170\170\370\35\113\75\244\221\110\4" "\333\266\351\350\350\300\262\54\114\323\104\327\365\315\333\106" "\265\132\245\120\50\120\52\225\66\227\216\205\205\205\205\153" "\327\256\115\314\317\317\77\2\146\201\31\225\133\105\100\66" "\56\274\133\336\56\32\340\222\300\333\100\12\350\267\155\373" "\313\307\216\35\373\306\301\203\7\7\332\333\333\333\77\247" "\142\162\171\171\171\171\142\142\142\162\146\146\346\261\252\276" "\377\50\137\1\112\315\120\57\73\252\350\52\254\11\240\7" "\30\0\16\0\157\1\211\201\201\201\375\203\203\203\3\235" "\235\235\166\64\32\215\306\142\261\250\141\30\106\125\131\251" "\124\52\77\171\362\144\151\172\172\172\336\363\274\2\260\252" "\240\236\252\320\255\251\116\40\267\72\252\274\364\14\245\12" "\44\6\164\2\335\300\176\5\367\45\240\103\51\153\1\106" "\70\214\252\276\350\252\142\52\50\210\145\245\320\232\12\235" "\7\4\73\76\103\65\25\204\256\176\74\6\304\1\133\201" "\45\232\340\264\55\240\326\225\27\124\330\334\355\124\332\21" "\330\26\200\246\202\150\123\253\126\244\101\61\115\51\346\53" "\105\252\252\67\171\352\273\340\145\227\304\35\203\65\1\206" "\36\156\131\132\343\101\44\34\76\33\274\276\323\13\266\366" "\52\347\364\346\223\172\263\275\312\71\375\377\277\113\265\60" "\205\220\343\373\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/tab.png", 499, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\26\0\0\0\23\10\6\0\0\0\224\171\375" "\210\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\1\205\111\104\101\124\170\332" "\244\223\335\216\202\60\20\205\147\112\3\211\106\67\131\56" "\274\203\247\320\144\275\362\135\335\304\347\202\56\211\76\200" "\46\376\304\331\236\112\261\260\304\135\330\111\300\366\164\370" "\346\164\152\271\50\12\232\114\46\224\44\11\151\255\311\206" "\60\63\211\10\306\174\273\335\350\174\76\323\351\164\242\54" "\313\50\214\262\54\45\216\143\272\134\56\56\27\71\373\375" "\236\66\233\15\151\100\225\122\200\112\10\251\213\11\212\135" "\257\127\306\334\207\61\106\216\307\43\35\16\7\202\261\74" "\317\151\261\130\310\164\72\245\44\216\31\71\32\325\54\120" "\356\367\273\3\372\300\330\27\260\277\50\340\76\370\334\156" "\45\263\40\353\226\260\51\354\316\230\222\112\143\50\267\73" "\52\212\122\76\326\153\326\160\11\127\41\64\14\350\130\107" "\36\142\66\177\203\143\7\144\127\312\275\334\33\372\174\76" "\163\163\205\236\242\117\257\242\136\227\335\156\47\151\372\116" "\212\225\153\37\36\126\317\61\364\64\115\11\171\332\273\172" "\25\176\135\51\246\252\372\42\25\251\146\115\234\133\151\234" "\127\125\345\212\151\32\20\112\105\75\252\324\33\157\153\3" "\301\36\140\335\261\70\46\327\350\256\66\10\34\171\60\116" "\15\14\13\142\117\356\150\303\34\107\201\143\11\132\240\344" "\207\66\256\307\215\313\326\11\266\264\141\255\210\36\340\307" "\305\220\272\3\334\253\215\74\274\337\143\34\370\371\127\170" "\106\107\33\17\366\275\365\304\216\66\272\25\16\307\341\254" "\255\375\253\307\334\223\303\143\132\301\65\230\205\232\133\206" "\333\40\75\332\40\360\152\271\374\163\356\267\0\3\0\231" "\367\265\366\253\127\66\350\0\0\0\0\111\105\116\104\256" "\102\140\202" }, { ":resources/thinlistbox.png", 188, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\3\0\0\0\3\10\6\0\0\0\126\50\265" "\277\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\7\24\21\57\53\40\151\336\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\40\111\104\101\124\10\327\143\334" "\176\373\377\177\6\50\140\142\140\140\140\360\54\232\313\300" "\300\300\300\300\210\54\3\0\301\217\10\175\16\116\61\171" "\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/topbar.png", 201, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\3\0\0\0\23\10\2\0\0\0\332\234\40" "\163\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\0\133\111\104\101\124\170\332" "\104\116\111\22\300\60\10\2\305\377\77\67\107\213\111\332" "\162\321\141\123\126\25\32\115\50\63\261\41\303\34\320\303" "\221\354\206\112\365\252\225\46\114\313\331\166\322\76\175\352" "\346\300\333\362\367\115\140\262\65\376\335\47\237\340\271\161" "\175\231\342\226\275\305\174\20\255\210\70\352\35\6\327\132" "\147\173\4\30\0\153\30\30\355\172\257\227\165\0\0\0" "\0\111\105\116\104\256\102\140\202" }, { ":resources/toplogo.png", 672, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\137\0\0\0\21\10\6\0\0\0\273\36\160" "\351\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\2\62\111\104\101\124\170\332" "\334\130\213\155\302\60\20\75\120\6\250\73\102\126\60\43" "\204\21\140\204\62\102\72\2\31\201\254\300\10\315\10\365" "\10\365\10\270\33\264\66\272\124\346\164\376\44\20\10\75" "\351\204\270\130\366\371\371\376\213\323\311\110\0\250\200\247" "\243\145\15\363\45\201\272\227\314\267\316\262\262\134\23\171" "\63\27\345\27\26\174\247\334\76\262\306\135\140\207\277\163" "\242\32\131\4\276\257\361\1\176\74\231\261\374\72\227\13" "\54\63\326\70\317\370\10\130\327\43\201\337\107\200\217\171" "\12\74\23\370\275\322\365\214\102\315\36\376\1\25\3\326" "\226\236\47\10\317\215\65\312\64\376\227\304\315\65\43\123" "\144\237\24\165\214\36\311\107\22\342\5\214\371\136\137\12" "\317\262\62\261\217\362\356\232\103\72\222\33\53\157\237\316" "\17\337\41\360\133\313\157\314\46\216\76\11\220\275\65\66" "\370\237\132\345\73\43\133\220\175\122\144\160\237\66\120\34" "\264\130\34\134\0\150\101\6\14\231\177\373\130\231\213\371" "\207\110\221\321\353\14\3\75\314\1\273\365\60\221\170\216" "\14\255\53\42\57\71\64\206\232\211\103\315\41\162\206\46" "\336\361\210\230\137\341\103\257\274\320\50\143\353\12\170\56" "\332\104\252\256\232\130\263\101\13\273\47\111\344\52\341\131" "\156\315\333\362\306\326\171\15\351\100\270\31\162\106\345\361" "\46\262\256\301\122\164\313\234\21\363\42\235\320\17\2\300" "\53\306\150\252\133\200\257\360\22\355\4\340\117\325\20\165" "\310\134\322\157\43\336\245\231\273\167\1\313\246\315\52\315" "\111\372\26\141\147\216\15\130\156\214\256\231\107\151\46\212" "\2\24\243\140\302\225\3\55\377\321\44\7\46\174\256\127" "\320\150\110\123\21\55\155\313\42\222\330\270\71\317\30\272" "\165\103\244\62\365\115\165\310\222\1\347\213\224\232\327\204" "\265\212\234\147\306\166\270\60\243\320\322\301\365\303\276\372" "\16\72\122\117\243\226\337\55\7\0\237\223\120\333\73\75" "\322\16\346\115\155\242\357\160\337\216\71\340\367\145\231\311" "\154\264\326\231\15\317\230\304\45\74\345\127\43\36\172\212" "\106\120\4\316\331\6\160\350\73\334\363\110\131\104\22\154" "\250\214\22\211\65\20\231\335\204\146\73\212\321\103\5\346" "\102\64\126\227\231\347\344\316\225\270\331\216\101\56\111\222" "\26\314\75\114\100\277\13\375\177\5\30\0\103\235\241\210" "\115\202\14\167\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/vertline.png", 170, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\1\0\0\0\2\10\6\0\0\0\231\201\266" "\47\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\12\41\20\56\40\334\34\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\0\22\111\104\101\124\10\327\143\140\140\140\250\141" "\370\377\377\377\17\0\14\341\4\162\2\246\161\372\0\0" "\0\0\111\105\116\104\256\102\140\202" }, { ":resources/widget.png", 994, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\17\0\0\0\115\10\6\0\0\0\171\106\76" "\55\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\7\20\31\66\200\233\343\312\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\3\106\111\104\101\124\130\303\275\230" "\277\156\53\105\24\207\277\163\146\146\23\231\134\102\212\360" "\137\124\227\12\256\224\6\42\41\41\52\32\112\52\36\200" "\47\100\242\61\242\135\41\361\14\24\274\0\217\221\202\64" "\221\42\136\1\104\156\221\110\327\130\261\354\354\241\360\330" "\236\335\235\365\356\6\21\113\326\172\366\314\157\176\337\234" "\71\63\273\62\374\207\217\244\215\351\164\172\6\374\10\234" "\3\357\45\241\77\201\337\201\237\313\262\274\150\211\247\323" "\351\67\300\257\100\261\307\254\2\176\50\313\362\247\255\170" "\72\235\176\0\134\3\257\17\240\255\200\317\313\262\274\320" "\170\343\273\201\102\0\5\276\7\360\361\306\127\151\164\271" "\134\162\173\173\273\155\237\234\234\20\102\110\273\174\232\212" "\77\114\43\167\167\167\374\362\307\33\330\301\63\144\361\212" "\157\77\276\343\364\364\64\355\362\356\126\54\42\165\56\125" "\70\74\206\243\167\100\376\102\365\125\253\317\126\254\252\265" "\233\316\71\104\4\213\3\73\347\132\175\366\212\331\70\365" "\211\163\330\42\32\265\32\333\362\77\70\167\315\231\41\163" "\156\42\255\333\262\255\140\21\31\213\35\357\211\76\41\366" "\272\343\16\373\351\262\255\252\65\261\252\216\54\222\210\55" "\117\217\335\150\217\313\166\143\316\343\260\223\245\172\332\154" "\77\272\110\106\45\54\67\147\303\0\60\4\347\164\344\226" "\24\210\207\330\43\266\44\253\132\173\334\1\310\303\260\245" "\312\237\44\365\366\140\154\63\303\342\122\31\62\56\333\315" "\317\150\354\324\171\24\166\353\231\72\276\74\233\117\220\121" "\11\213\277\37\47\256\147\73\47\126\63\363\233\340\346\253" "\252\244\326\271\270\231\171\17\170\347\34\125\125\325\335\33" "\330\231\234\254\305\336\173\126\253\125\15\133\5\52\3\225" "\166\205\171\357\167\342\334\234\366\211\153\316\316\71\36\36" "\36\166\57\132\125\205\23\143\205\340\304\166\171\250\155\234" "\304\271\65\57\331\135\233\361\232\163\16\333\105\365\346\272" "\27\73\35\331\314\160\272\31\244\355\134\303\316\212\243\221" "\223\36\161\67\266\365\142\273\334\310\76\212\275\266\217\241" "\370\333\145\261\253\252\252\45\254\167\251\122\54\21\301\307" "\111\173\47\373\213\44\207\235\72\167\140\167\147\73\165\336" "\233\355\46\326\32\133\243\130\311\305\73\235\67\216\233\153" "\63\336\133\333\41\266\103\214\165\316\71\227\115\357\43\266" "\157\277\62\357\305\66\63\102\304\16\256\175\206\365\142\247" "\11\213\235\207\141\213\10\301\257\5\301\273\315\201\227\305" "\156\325\266\210\20\242\163\210\157\5\251\270\126\333\271\154" "\206\230\260\340\327\330\351\351\332\233\355\241\330\331\332\116" "\305\316\271\34\366\160\361\140\154\347\34\105\24\27\121\234" "\76\24\152\330\271\315\136\204\50\16\256\125\333\275\163\156" "\72\17\256\355\234\163\147\155\347\260\277\74\173\237\42\170" "\276\370\350\355\275\330\57\103\10\163\125\235\154\202\213\305" "\202\363\347\307\234\77\77\6\140\76\237\327\304\41\204\71" "\360\322\3\227\105\121\254\122\254\252\252\230\315\146\235\57" "\166\105\121\254\200\113\17\134\251\352\315\144\62\171\166\177" "\177\57\175\377\66\34\36\36\232\252\336\0\127\22\367\357" "\13\63\273\230\315\146\257\55\26\213\316\1\16\16\16\354" "\350\350\350\37\21\371\114\104\256\45\71\0\136\230\331\157" "\146\366\346\162\271\364\125\125\115\222\245\231\207\20\126\42" "\162\43\42\137\213\310\165\353\357\35\63\363\300\31\360\11" "\360\126\22\372\33\270\4\256\104\144\133\152\377\2\13\162" "\326\53\202\277\76\356\0\0\0\0\111\105\116\104\256\102" "\140\202" }, { ":../ABOUT", 292, "\104\162\165\155\107\151\172\155\157\40\151\163\40\141\156\40" "\157\160\145\156\40\163\157\165\162\143\145\54\40\155\165\154" "\164\151\143\150\141\156\156\145\154\54\40\155\165\154\164\151" "\154\141\171\145\162\145\144\54\40\143\162\157\163\163\55\160" "\154\141\164\146\157\162\155\40\144\162\165\155\12\160\154\165" "\147\151\156\40\141\156\144\40\163\164\141\156\144\55\141\154" "\157\156\145\40\141\160\160\154\151\143\141\164\151\157\156\56" "\40\111\164\40\145\156\141\142\154\145\163\40\171\157\165\40" "\164\157\40\143\157\155\160\157\163\145\40\144\162\165\155\163" "\40\151\156\40\155\151\144\151\40\141\156\144\12\155\151\170" "\40\164\150\145\155\40\167\151\164\150\40\141\40\155\165\154" "\164\151\143\150\141\156\156\145\154\40\141\160\160\162\157\141" "\143\150\56\40\111\164\40\151\163\40\143\157\155\160\141\162" "\141\142\154\145\40\164\157\40\164\150\141\164\40\157\146\40" "\155\151\170\151\156\147\40\141\12\162\145\141\154\40\144\162" "\165\155\153\151\164\40\164\150\141\164\40\150\141\163\40\142" "\145\145\156\40\162\145\143\157\162\144\145\144\40\167\151\164" "\150\40\141\40\155\165\154\164\151\155\151\143\40\163\145\164" "\165\160\56\12" }, { ":../AUTHORS", 418, "\106\157\165\156\144\145\162\40\141\156\144\40\154\145\141\144" "\40\144\145\166\145\154\157\160\145\162\72\12\40\102\145\156" "\164\40\102\151\163\142\141\154\154\145\40\116\171\145\156\147" "\40\133\144\145\166\141\135\40\50\144\145\166\141\100\141\141" "\163\151\155\157\156\56\157\162\147\51\12\12\104\145\166\145" "\154\157\160\145\162\72\12\40\112\157\156\141\163\40\123\165" "\150\162\40\103\150\162\151\163\164\145\156\163\145\156\40\133" "\163\165\150\162\135\40\50\152\163\143\100\165\155\142\162\141" "\143\165\154\165\155\56\157\162\147\51\12\12\104\145\166\145" "\154\157\160\145\162\72\12\40\101\156\144\162\303\251\40\116" "\165\163\163\145\162\40\133\143\150\141\157\164\64\135\12\12" "\104\145\166\145\154\157\160\145\162\72\12\40\103\150\162\151" "\163\164\151\141\156\40\107\154\303\266\143\153\156\145\162\40" "\133\143\147\154\157\143\153\145\135\12\12\104\145\166\145\154" "\157\160\145\162\54\40\107\162\141\160\150\151\143\163\54\40" "\107\125\111\40\144\145\163\151\147\156\40\141\156\144\40\154" "\157\147\157\72\12\40\114\141\162\163\40\115\165\154\144\152" "\157\162\144\40\133\155\165\154\144\152\157\162\144\135\40\50" "\155\165\154\144\152\157\162\144\154\141\162\163\100\147\155\141" "\151\154\56\143\157\155\51\12\12\104\145\166\145\154\157\160" "\145\162\72\12\40\107\157\162\141\156\40\115\145\153\151\304" "\207\40\133\155\145\153\141\135\40\50\155\145\153\141\100\164" "\151\154\144\141\56\143\145\156\164\145\162\51\12\12\120\141" "\164\143\150\145\163\72\12\40\112\157\150\156\40\110\141\155" "\155\145\156\40\50\163\141\155\160\154\145\40\155\165\154\164" "\151\143\150\141\156\156\145\154\40\163\165\160\160\157\162\164" "\51\12" }, { ":../BUGS", 251, "\111\146\40\163\157\155\145\164\150\151\156\147\40\151\163\40" "\156\157\164\40\167\157\162\153\151\156\147\40\141\163\40\145" "\170\160\145\143\164\145\144\54\40\151\164\47\163\40\160\162" "\157\142\141\142\154\171\40\157\165\162\40\146\141\165\154\164" "\40\141\156\144\40\167\145\40\144\157\156\47\164\12\153\156" "\157\167\40\141\142\157\165\164\40\151\164\40\171\145\164\56" "\40\123\157\54\40\151\146\40\171\157\165\40\150\141\160\160" "\145\156\40\164\157\40\146\151\156\144\40\141\40\142\165\147" "\54\40\160\154\145\141\163\145\40\162\145\160\157\162\164\40" "\151\164\40\164\157\40\165\163\12\142\171\40\145\151\164\150" "\145\162\40\167\162\151\164\151\156\147\40\141\156\40\145\155" "\141\151\154\40\157\162\40\152\157\151\156\151\156\147\40\165" "\163\40\157\156\40\111\122\103\72\12\150\164\164\160\163\72" "\57\57\167\145\142\143\150\141\164\56\146\162\145\145\156\157" "\144\145\56\156\145\164\57\77\143\150\141\156\156\145\154\163" "\75\144\162\165\155\147\151\172\155\157\12" }, { ":../COPYING", 7651, "\40\40\40\40\40\40\40\40\40\40\40\40\40\40\40\40" "\40\40\40\107\116\125\40\114\105\123\123\105\122\40\107\105" "\116\105\122\101\114\40\120\125\102\114\111\103\40\114\111\103" "\105\116\123\105\12\40\40\40\40\40\40\40\40\40\40\40" "\40\40\40\40\40\40\40\40\40\40\40\40\126\145\162\163" "\151\157\156\40\63\54\40\62\71\40\112\165\156\145\40\62" "\60\60\67\12\12\40\103\157\160\171\162\151\147\150\164\40" "\50\103\51\40\62\60\60\67\40\106\162\145\145\40\123\157" "\146\164\167\141\162\145\40\106\157\165\156\144\141\164\151\157" "\156\54\40\111\156\143\56\40\74\150\164\164\160\72\57\57" "\146\163\146\56\157\162\147\57\76\12\40\105\166\145\162\171" "\157\156\145\40\151\163\40\160\145\162\155\151\164\164\145\144" "\40\164\157\40\143\157\160\171\40\141\156\144\40\144\151\163" "\164\162\151\142\165\164\145\40\166\145\162\142\141\164\151\155" "\40\143\157\160\151\145\163\12\40\157\146\40\164\150\151\163" "\40\154\151\143\145\156\163\145\40\144\157\143\165\155\145\156" "\164\54\40\142\165\164\40\143\150\141\156\147\151\156\147\40" "\151\164\40\151\163\40\156\157\164\40\141\154\154\157\167\145" "\144\56\12\12\12\40\40\124\150\151\163\40\166\145\162\163" "\151\157\156\40\157\146\40\164\150\145\40\107\116\125\40\114" "\145\163\163\145\162\40\107\145\156\145\162\141\154\40\120\165" "\142\154\151\143\40\114\151\143\145\156\163\145\40\151\156\143" "\157\162\160\157\162\141\164\145\163\12\164\150\145\40\164\145" "\162\155\163\40\141\156\144\40\143\157\156\144\151\164\151\157" "\156\163\40\157\146\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\12\114\151\143\145\156\163" "\145\54\40\163\165\160\160\154\145\155\145\156\164\145\144\40" "\142\171\40\164\150\145\40\141\144\144\151\164\151\157\156\141" "\154\40\160\145\162\155\151\163\163\151\157\156\163\40\154\151" "\163\164\145\144\40\142\145\154\157\167\56\12\12\40\40\60" "\56\40\101\144\144\151\164\151\157\156\141\154\40\104\145\146" "\151\156\151\164\151\157\156\163\56\12\12\40\40\101\163\40" "\165\163\145\144\40\150\145\162\145\151\156\54\40\42\164\150" "\151\163\40\114\151\143\145\156\163\145\42\40\162\145\146\145" "\162\163\40\164\157\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\114\145\163\163\145" "\162\12\107\145\156\145\162\141\154\40\120\165\142\154\151\143" "\40\114\151\143\145\156\163\145\54\40\141\156\144\40\164\150" "\145\40\42\107\116\125\40\107\120\114\42\40\162\145\146\145" "\162\163\40\164\157\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\12\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156\163" "\145\56\12\12\40\40\42\124\150\145\40\114\151\142\162\141" "\162\171\42\40\162\145\146\145\162\163\40\164\157\40\141\40" "\143\157\166\145\162\145\144\40\167\157\162\153\40\147\157\166" "\145\162\156\145\144\40\142\171\40\164\150\151\163\40\114\151" "\143\145\156\163\145\54\12\157\164\150\145\162\40\164\150\141" "\156\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156" "\40\157\162\40\141\40\103\157\155\142\151\156\145\144\40\127" "\157\162\153\40\141\163\40\144\145\146\151\156\145\144\40\142" "\145\154\157\167\56\12\12\40\40\101\156\40\42\101\160\160" "\154\151\143\141\164\151\157\156\42\40\151\163\40\141\156\171" "\40\167\157\162\153\40\164\150\141\164\40\155\141\153\145\163" "\40\165\163\145\40\157\146\40\141\156\40\151\156\164\145\162" "\146\141\143\145\40\160\162\157\166\151\144\145\144\12\142\171" "\40\164\150\145\40\114\151\142\162\141\162\171\54\40\142\165" "\164\40\167\150\151\143\150\40\151\163\40\156\157\164\40\157" "\164\150\145\162\167\151\163\145\40\142\141\163\145\144\40\157" "\156\40\164\150\145\40\114\151\142\162\141\162\171\56\12\104" "\145\146\151\156\151\156\147\40\141\40\163\165\142\143\154\141" "\163\163\40\157\146\40\141\40\143\154\141\163\163\40\144\145" "\146\151\156\145\144\40\142\171\40\164\150\145\40\114\151\142" "\162\141\162\171\40\151\163\40\144\145\145\155\145\144\40\141" "\40\155\157\144\145\12\157\146\40\165\163\151\156\147\40\141" "\156\40\151\156\164\145\162\146\141\143\145\40\160\162\157\166" "\151\144\145\144\40\142\171\40\164\150\145\40\114\151\142\162" "\141\162\171\56\12\12\40\40\101\40\42\103\157\155\142\151" "\156\145\144\40\127\157\162\153\42\40\151\163\40\141\40\167" "\157\162\153\40\160\162\157\144\165\143\145\144\40\142\171\40" "\143\157\155\142\151\156\151\156\147\40\157\162\40\154\151\156" "\153\151\156\147\40\141\156\12\101\160\160\154\151\143\141\164" "\151\157\156\40\167\151\164\150\40\164\150\145\40\114\151\142" "\162\141\162\171\56\40\40\124\150\145\40\160\141\162\164\151" "\143\165\154\141\162\40\166\145\162\163\151\157\156\40\157\146" "\40\164\150\145\40\114\151\142\162\141\162\171\12\167\151\164" "\150\40\167\150\151\143\150\40\164\150\145\40\103\157\155\142" "\151\156\145\144\40\127\157\162\153\40\167\141\163\40\155\141" "\144\145\40\151\163\40\141\154\163\157\40\143\141\154\154\145" "\144\40\164\150\145\40\42\114\151\156\153\145\144\12\126\145" "\162\163\151\157\156\42\56\12\12\40\40\124\150\145\40\42" "\115\151\156\151\155\141\154\40\103\157\162\162\145\163\160\157" "\156\144\151\156\147\40\123\157\165\162\143\145\42\40\146\157" "\162\40\141\40\103\157\155\142\151\156\145\144\40\127\157\162" "\153\40\155\145\141\156\163\40\164\150\145\12\103\157\162\162" "\145\163\160\157\156\144\151\156\147\40\123\157\165\162\143\145" "\40\146\157\162\40\164\150\145\40\103\157\155\142\151\156\145" "\144\40\127\157\162\153\54\40\145\170\143\154\165\144\151\156" "\147\40\141\156\171\40\163\157\165\162\143\145\40\143\157\144" "\145\12\146\157\162\40\160\157\162\164\151\157\156\163\40\157" "\146\40\164\150\145\40\103\157\155\142\151\156\145\144\40\127" "\157\162\153\40\164\150\141\164\54\40\143\157\156\163\151\144" "\145\162\145\144\40\151\156\40\151\163\157\154\141\164\151\157" "\156\54\40\141\162\145\12\142\141\163\145\144\40\157\156\40" "\164\150\145\40\101\160\160\154\151\143\141\164\151\157\156\54" "\40\141\156\144\40\156\157\164\40\157\156\40\164\150\145\40" "\114\151\156\153\145\144\40\126\145\162\163\151\157\156\56\12" "\12\40\40\124\150\145\40\42\103\157\162\162\145\163\160\157" "\156\144\151\156\147\40\101\160\160\154\151\143\141\164\151\157" "\156\40\103\157\144\145\42\40\146\157\162\40\141\40\103\157" "\155\142\151\156\145\144\40\127\157\162\153\40\155\145\141\156" "\163\40\164\150\145\12\157\142\152\145\143\164\40\143\157\144" "\145\40\141\156\144\57\157\162\40\163\157\165\162\143\145\40" "\143\157\144\145\40\146\157\162\40\164\150\145\40\101\160\160" "\154\151\143\141\164\151\157\156\54\40\151\156\143\154\165\144" "\151\156\147\40\141\156\171\40\144\141\164\141\12\141\156\144" "\40\165\164\151\154\151\164\171\40\160\162\157\147\162\141\155" "\163\40\156\145\145\144\145\144\40\146\157\162\40\162\145\160" "\162\157\144\165\143\151\156\147\40\164\150\145\40\103\157\155" "\142\151\156\145\144\40\127\157\162\153\40\146\162\157\155\40" "\164\150\145\12\101\160\160\154\151\143\141\164\151\157\156\54" "\40\142\165\164\40\145\170\143\154\165\144\151\156\147\40\164" "\150\145\40\123\171\163\164\145\155\40\114\151\142\162\141\162" "\151\145\163\40\157\146\40\164\150\145\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\56\12\12\40\40\61\56\40" "\105\170\143\145\160\164\151\157\156\40\164\157\40\123\145\143" "\164\151\157\156\40\63\40\157\146\40\164\150\145\40\107\116" "\125\40\107\120\114\56\12\12\40\40\131\157\165\40\155\141" "\171\40\143\157\156\166\145\171\40\141\40\143\157\166\145\162" "\145\144\40\167\157\162\153\40\165\156\144\145\162\40\163\145" "\143\164\151\157\156\163\40\63\40\141\156\144\40\64\40\157" "\146\40\164\150\151\163\40\114\151\143\145\156\163\145\12\167" "\151\164\150\157\165\164\40\142\145\151\156\147\40\142\157\165" "\156\144\40\142\171\40\163\145\143\164\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\107\120\114\56\12" "\12\40\40\62\56\40\103\157\156\166\145\171\151\156\147\40" "\115\157\144\151\146\151\145\144\40\126\145\162\163\151\157\156" "\163\56\12\12\40\40\111\146\40\171\157\165\40\155\157\144" "\151\146\171\40\141\40\143\157\160\171\40\157\146\40\164\150" "\145\40\114\151\142\162\141\162\171\54\40\141\156\144\54\40" "\151\156\40\171\157\165\162\40\155\157\144\151\146\151\143\141" "\164\151\157\156\163\54\40\141\12\146\141\143\151\154\151\164" "\171\40\162\145\146\145\162\163\40\164\157\40\141\40\146\165" "\156\143\164\151\157\156\40\157\162\40\144\141\164\141\40\164" "\157\40\142\145\40\163\165\160\160\154\151\145\144\40\142\171" "\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156\12" "\164\150\141\164\40\165\163\145\163\40\164\150\145\40\146\141" "\143\151\154\151\164\171\40\50\157\164\150\145\162\40\164\150" "\141\156\40\141\163\40\141\156\40\141\162\147\165\155\145\156" "\164\40\160\141\163\163\145\144\40\167\150\145\156\40\164\150" "\145\12\146\141\143\151\154\151\164\171\40\151\163\40\151\156" "\166\157\153\145\144\51\54\40\164\150\145\156\40\171\157\165" "\40\155\141\171\40\143\157\156\166\145\171\40\141\40\143\157" "\160\171\40\157\146\40\164\150\145\40\155\157\144\151\146\151" "\145\144\12\166\145\162\163\151\157\156\72\12\12\40\40\40" "\141\51\40\165\156\144\145\162\40\164\150\151\163\40\114\151" "\143\145\156\163\145\54\40\160\162\157\166\151\144\145\144\40" "\164\150\141\164\40\171\157\165\40\155\141\153\145\40\141\40" "\147\157\157\144\40\146\141\151\164\150\40\145\146\146\157\162" "\164\40\164\157\12\40\40\40\145\156\163\165\162\145\40\164" "\150\141\164\54\40\151\156\40\164\150\145\40\145\166\145\156" "\164\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156" "\40\144\157\145\163\40\156\157\164\40\163\165\160\160\154\171" "\40\164\150\145\12\40\40\40\146\165\156\143\164\151\157\156" "\40\157\162\40\144\141\164\141\54\40\164\150\145\40\146\141" "\143\151\154\151\164\171\40\163\164\151\154\154\40\157\160\145" "\162\141\164\145\163\54\40\141\156\144\40\160\145\162\146\157" "\162\155\163\12\40\40\40\167\150\141\164\145\166\145\162\40" "\160\141\162\164\40\157\146\40\151\164\163\40\160\165\162\160" "\157\163\145\40\162\145\155\141\151\156\163\40\155\145\141\156" "\151\156\147\146\165\154\54\40\157\162\12\12\40\40\40\142" "\51\40\165\156\144\145\162\40\164\150\145\40\107\116\125\40" "\107\120\114\54\40\167\151\164\150\40\156\157\156\145\40\157" "\146\40\164\150\145\40\141\144\144\151\164\151\157\156\141\154" "\40\160\145\162\155\151\163\163\151\157\156\163\40\157\146\12" "\40\40\40\164\150\151\163\40\114\151\143\145\156\163\145\40" "\141\160\160\154\151\143\141\142\154\145\40\164\157\40\164\150" "\141\164\40\143\157\160\171\56\12\12\40\40\63\56\40\117" "\142\152\145\143\164\40\103\157\144\145\40\111\156\143\157\162" "\160\157\162\141\164\151\156\147\40\115\141\164\145\162\151\141" "\154\40\146\162\157\155\40\114\151\142\162\141\162\171\40\110" "\145\141\144\145\162\40\106\151\154\145\163\56\12\12\40\40" "\124\150\145\40\157\142\152\145\143\164\40\143\157\144\145\40" "\146\157\162\155\40\157\146\40\141\156\40\101\160\160\154\151" "\143\141\164\151\157\156\40\155\141\171\40\151\156\143\157\162" "\160\157\162\141\164\145\40\155\141\164\145\162\151\141\154\40" "\146\162\157\155\12\141\40\150\145\141\144\145\162\40\146\151" "\154\145\40\164\150\141\164\40\151\163\40\160\141\162\164\40" "\157\146\40\164\150\145\40\114\151\142\162\141\162\171\56\40" "\40\131\157\165\40\155\141\171\40\143\157\156\166\145\171\40" "\163\165\143\150\40\157\142\152\145\143\164\12\143\157\144\145" "\40\165\156\144\145\162\40\164\145\162\155\163\40\157\146\40" "\171\157\165\162\40\143\150\157\151\143\145\54\40\160\162\157" "\166\151\144\145\144\40\164\150\141\164\54\40\151\146\40\164" "\150\145\40\151\156\143\157\162\160\157\162\141\164\145\144\12" "\155\141\164\145\162\151\141\154\40\151\163\40\156\157\164\40" "\154\151\155\151\164\145\144\40\164\157\40\156\165\155\145\162" "\151\143\141\154\40\160\141\162\141\155\145\164\145\162\163\54" "\40\144\141\164\141\40\163\164\162\165\143\164\165\162\145\12" "\154\141\171\157\165\164\163\40\141\156\144\40\141\143\143\145" "\163\163\157\162\163\54\40\157\162\40\163\155\141\154\154\40" "\155\141\143\162\157\163\54\40\151\156\154\151\156\145\40\146" "\165\156\143\164\151\157\156\163\40\141\156\144\40\164\145\155" "\160\154\141\164\145\163\12\50\164\145\156\40\157\162\40\146" "\145\167\145\162\40\154\151\156\145\163\40\151\156\40\154\145" "\156\147\164\150\51\54\40\171\157\165\40\144\157\40\142\157" "\164\150\40\157\146\40\164\150\145\40\146\157\154\154\157\167" "\151\156\147\72\12\12\40\40\40\141\51\40\107\151\166\145" "\40\160\162\157\155\151\156\145\156\164\40\156\157\164\151\143" "\145\40\167\151\164\150\40\145\141\143\150\40\143\157\160\171" "\40\157\146\40\164\150\145\40\157\142\152\145\143\164\40\143" "\157\144\145\40\164\150\141\164\40\164\150\145\12\40\40\40" "\114\151\142\162\141\162\171\40\151\163\40\165\163\145\144\40" "\151\156\40\151\164\40\141\156\144\40\164\150\141\164\40\164" "\150\145\40\114\151\142\162\141\162\171\40\141\156\144\40\151" "\164\163\40\165\163\145\40\141\162\145\12\40\40\40\143\157" "\166\145\162\145\144\40\142\171\40\164\150\151\163\40\114\151" "\143\145\156\163\145\56\12\12\40\40\40\142\51\40\101\143" "\143\157\155\160\141\156\171\40\164\150\145\40\157\142\152\145" "\143\164\40\143\157\144\145\40\167\151\164\150\40\141\40\143" "\157\160\171\40\157\146\40\164\150\145\40\107\116\125\40\107" "\120\114\40\141\156\144\40\164\150\151\163\40\154\151\143\145" "\156\163\145\12\40\40\40\144\157\143\165\155\145\156\164\56" "\12\12\40\40\64\56\40\103\157\155\142\151\156\145\144\40" "\127\157\162\153\163\56\12\12\40\40\131\157\165\40\155\141" "\171\40\143\157\156\166\145\171\40\141\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\40\165\156\144\145\162\40\164" "\145\162\155\163\40\157\146\40\171\157\165\162\40\143\150\157" "\151\143\145\40\164\150\141\164\54\12\164\141\153\145\156\40" "\164\157\147\145\164\150\145\162\54\40\145\146\146\145\143\164" "\151\166\145\154\171\40\144\157\40\156\157\164\40\162\145\163" "\164\162\151\143\164\40\155\157\144\151\146\151\143\141\164\151" "\157\156\40\157\146\40\164\150\145\12\160\157\162\164\151\157" "\156\163\40\157\146\40\164\150\145\40\114\151\142\162\141\162" "\171\40\143\157\156\164\141\151\156\145\144\40\151\156\40\164" "\150\145\40\103\157\155\142\151\156\145\144\40\127\157\162\153" "\40\141\156\144\40\162\145\166\145\162\163\145\12\145\156\147" "\151\156\145\145\162\151\156\147\40\146\157\162\40\144\145\142" "\165\147\147\151\156\147\40\163\165\143\150\40\155\157\144\151" "\146\151\143\141\164\151\157\156\163\54\40\151\146\40\171\157" "\165\40\141\154\163\157\40\144\157\40\145\141\143\150\40\157" "\146\12\164\150\145\40\146\157\154\154\157\167\151\156\147\72" "\12\12\40\40\40\141\51\40\107\151\166\145\40\160\162\157" "\155\151\156\145\156\164\40\156\157\164\151\143\145\40\167\151" "\164\150\40\145\141\143\150\40\143\157\160\171\40\157\146\40" "\164\150\145\40\103\157\155\142\151\156\145\144\40\127\157\162" "\153\40\164\150\141\164\12\40\40\40\164\150\145\40\114\151" "\142\162\141\162\171\40\151\163\40\165\163\145\144\40\151\156" "\40\151\164\40\141\156\144\40\164\150\141\164\40\164\150\145" "\40\114\151\142\162\141\162\171\40\141\156\144\40\151\164\163" "\40\165\163\145\40\141\162\145\12\40\40\40\143\157\166\145" "\162\145\144\40\142\171\40\164\150\151\163\40\114\151\143\145" "\156\163\145\56\12\12\40\40\40\142\51\40\101\143\143\157" "\155\160\141\156\171\40\164\150\145\40\103\157\155\142\151\156" "\145\144\40\127\157\162\153\40\167\151\164\150\40\141\40\143" "\157\160\171\40\157\146\40\164\150\145\40\107\116\125\40\107" "\120\114\40\141\156\144\40\164\150\151\163\40\154\151\143\145" "\156\163\145\12\40\40\40\144\157\143\165\155\145\156\164\56" "\12\12\40\40\40\143\51\40\106\157\162\40\141\40\103\157" "\155\142\151\156\145\144\40\127\157\162\153\40\164\150\141\164" "\40\144\151\163\160\154\141\171\163\40\143\157\160\171\162\151" "\147\150\164\40\156\157\164\151\143\145\163\40\144\165\162\151" "\156\147\12\40\40\40\145\170\145\143\165\164\151\157\156\54" "\40\151\156\143\154\165\144\145\40\164\150\145\40\143\157\160" "\171\162\151\147\150\164\40\156\157\164\151\143\145\40\146\157" "\162\40\164\150\145\40\114\151\142\162\141\162\171\40\141\155" "\157\156\147\12\40\40\40\164\150\145\163\145\40\156\157\164" "\151\143\145\163\54\40\141\163\40\167\145\154\154\40\141\163" "\40\141\40\162\145\146\145\162\145\156\143\145\40\144\151\162" "\145\143\164\151\156\147\40\164\150\145\40\165\163\145\162\40" "\164\157\40\164\150\145\12\40\40\40\143\157\160\151\145\163" "\40\157\146\40\164\150\145\40\107\116\125\40\107\120\114\40" "\141\156\144\40\164\150\151\163\40\154\151\143\145\156\163\145" "\40\144\157\143\165\155\145\156\164\56\12\12\40\40\40\144" "\51\40\104\157\40\157\156\145\40\157\146\40\164\150\145\40" "\146\157\154\154\157\167\151\156\147\72\12\12\40\40\40\40" "\40\40\40\60\51\40\103\157\156\166\145\171\40\164\150\145" "\40\115\151\156\151\155\141\154\40\103\157\162\162\145\163\160" "\157\156\144\151\156\147\40\123\157\165\162\143\145\40\165\156" "\144\145\162\40\164\150\145\40\164\145\162\155\163\40\157\146" "\40\164\150\151\163\12\40\40\40\40\40\40\40\114\151\143" "\145\156\163\145\54\40\141\156\144\40\164\150\145\40\103\157" "\162\162\145\163\160\157\156\144\151\156\147\40\101\160\160\154" "\151\143\141\164\151\157\156\40\103\157\144\145\40\151\156\40" "\141\40\146\157\162\155\12\40\40\40\40\40\40\40\163\165" "\151\164\141\142\154\145\40\146\157\162\54\40\141\156\144\40" "\165\156\144\145\162\40\164\145\162\155\163\40\164\150\141\164" "\40\160\145\162\155\151\164\54\40\164\150\145\40\165\163\145" "\162\40\164\157\12\40\40\40\40\40\40\40\162\145\143\157" "\155\142\151\156\145\40\157\162\40\162\145\154\151\156\153\40" "\164\150\145\40\101\160\160\154\151\143\141\164\151\157\156\40" "\167\151\164\150\40\141\40\155\157\144\151\146\151\145\144\40" "\166\145\162\163\151\157\156\40\157\146\12\40\40\40\40\40" "\40\40\164\150\145\40\114\151\156\153\145\144\40\126\145\162" "\163\151\157\156\40\164\157\40\160\162\157\144\165\143\145\40" "\141\40\155\157\144\151\146\151\145\144\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\54\40\151\156\40\164\150\145" "\12\40\40\40\40\40\40\40\155\141\156\156\145\162\40\163" "\160\145\143\151\146\151\145\144\40\142\171\40\163\145\143\164" "\151\157\156\40\66\40\157\146\40\164\150\145\40\107\116\125" "\40\107\120\114\40\146\157\162\40\143\157\156\166\145\171\151" "\156\147\12\40\40\40\40\40\40\40\103\157\162\162\145\163" "\160\157\156\144\151\156\147\40\123\157\165\162\143\145\56\12" "\12\40\40\40\40\40\40\40\61\51\40\125\163\145\40\141" "\40\163\165\151\164\141\142\154\145\40\163\150\141\162\145\144" "\40\154\151\142\162\141\162\171\40\155\145\143\150\141\156\151" "\163\155\40\146\157\162\40\154\151\156\153\151\156\147\40\167" "\151\164\150\40\164\150\145\12\40\40\40\40\40\40\40\114" "\151\142\162\141\162\171\56\40\40\101\40\163\165\151\164\141" "\142\154\145\40\155\145\143\150\141\156\151\163\155\40\151\163" "\40\157\156\145\40\164\150\141\164\40\50\141\51\40\165\163" "\145\163\40\141\164\40\162\165\156\40\164\151\155\145\12\40" "\40\40\40\40\40\40\141\40\143\157\160\171\40\157\146\40" "\164\150\145\40\114\151\142\162\141\162\171\40\141\154\162\145" "\141\144\171\40\160\162\145\163\145\156\164\40\157\156\40\164" "\150\145\40\165\163\145\162\47\163\40\143\157\155\160\165\164" "\145\162\12\40\40\40\40\40\40\40\163\171\163\164\145\155" "\54\40\141\156\144\40\50\142\51\40\167\151\154\154\40\157" "\160\145\162\141\164\145\40\160\162\157\160\145\162\154\171\40" "\167\151\164\150\40\141\40\155\157\144\151\146\151\145\144\40" "\166\145\162\163\151\157\156\12\40\40\40\40\40\40\40\157" "\146\40\164\150\145\40\114\151\142\162\141\162\171\40\164\150" "\141\164\40\151\163\40\151\156\164\145\162\146\141\143\145\55" "\143\157\155\160\141\164\151\142\154\145\40\167\151\164\150\40" "\164\150\145\40\114\151\156\153\145\144\12\40\40\40\40\40" "\40\40\126\145\162\163\151\157\156\56\12\12\40\40\40\145" "\51\40\120\162\157\166\151\144\145\40\111\156\163\164\141\154" "\154\141\164\151\157\156\40\111\156\146\157\162\155\141\164\151" "\157\156\54\40\142\165\164\40\157\156\154\171\40\151\146\40" "\171\157\165\40\167\157\165\154\144\40\157\164\150\145\162\167" "\151\163\145\12\40\40\40\142\145\40\162\145\161\165\151\162" "\145\144\40\164\157\40\160\162\157\166\151\144\145\40\163\165" "\143\150\40\151\156\146\157\162\155\141\164\151\157\156\40\165" "\156\144\145\162\40\163\145\143\164\151\157\156\40\66\40\157" "\146\40\164\150\145\12\40\40\40\107\116\125\40\107\120\114" "\54\40\141\156\144\40\157\156\154\171\40\164\157\40\164\150" "\145\40\145\170\164\145\156\164\40\164\150\141\164\40\163\165" "\143\150\40\151\156\146\157\162\155\141\164\151\157\156\40\151" "\163\12\40\40\40\156\145\143\145\163\163\141\162\171\40\164" "\157\40\151\156\163\164\141\154\154\40\141\156\144\40\145\170" "\145\143\165\164\145\40\141\40\155\157\144\151\146\151\145\144" "\40\166\145\162\163\151\157\156\40\157\146\40\164\150\145\12" "\40\40\40\103\157\155\142\151\156\145\144\40\127\157\162\153" "\40\160\162\157\144\165\143\145\144\40\142\171\40\162\145\143" "\157\155\142\151\156\151\156\147\40\157\162\40\162\145\154\151" "\156\153\151\156\147\40\164\150\145\12\40\40\40\101\160\160" "\154\151\143\141\164\151\157\156\40\167\151\164\150\40\141\40" "\155\157\144\151\146\151\145\144\40\166\145\162\163\151\157\156" "\40\157\146\40\164\150\145\40\114\151\156\153\145\144\40\126" "\145\162\163\151\157\156\56\40\50\111\146\12\40\40\40\171" "\157\165\40\165\163\145\40\157\160\164\151\157\156\40\64\144" "\60\54\40\164\150\145\40\111\156\163\164\141\154\154\141\164" "\151\157\156\40\111\156\146\157\162\155\141\164\151\157\156\40" "\155\165\163\164\40\141\143\143\157\155\160\141\156\171\12\40" "\40\40\164\150\145\40\115\151\156\151\155\141\154\40\103\157" "\162\162\145\163\160\157\156\144\151\156\147\40\123\157\165\162" "\143\145\40\141\156\144\40\103\157\162\162\145\163\160\157\156" "\144\151\156\147\40\101\160\160\154\151\143\141\164\151\157\156" "\12\40\40\40\103\157\144\145\56\40\111\146\40\171\157\165" "\40\165\163\145\40\157\160\164\151\157\156\40\64\144\61\54" "\40\171\157\165\40\155\165\163\164\40\160\162\157\166\151\144" "\145\40\164\150\145\40\111\156\163\164\141\154\154\141\164\151" "\157\156\12\40\40\40\111\156\146\157\162\155\141\164\151\157" "\156\40\151\156\40\164\150\145\40\155\141\156\156\145\162\40" "\163\160\145\143\151\146\151\145\144\40\142\171\40\163\145\143" "\164\151\157\156\40\66\40\157\146\40\164\150\145\40\107\116" "\125\40\107\120\114\12\40\40\40\146\157\162\40\143\157\156" "\166\145\171\151\156\147\40\103\157\162\162\145\163\160\157\156" "\144\151\156\147\40\123\157\165\162\143\145\56\51\12\12\40" "\40\65\56\40\103\157\155\142\151\156\145\144\40\114\151\142" "\162\141\162\151\145\163\56\12\12\40\40\131\157\165\40\155" "\141\171\40\160\154\141\143\145\40\154\151\142\162\141\162\171" "\40\146\141\143\151\154\151\164\151\145\163\40\164\150\141\164" "\40\141\162\145\40\141\40\167\157\162\153\40\142\141\163\145" "\144\40\157\156\40\164\150\145\12\114\151\142\162\141\162\171" "\40\163\151\144\145\40\142\171\40\163\151\144\145\40\151\156" "\40\141\40\163\151\156\147\154\145\40\154\151\142\162\141\162" "\171\40\164\157\147\145\164\150\145\162\40\167\151\164\150\40" "\157\164\150\145\162\40\154\151\142\162\141\162\171\12\146\141" "\143\151\154\151\164\151\145\163\40\164\150\141\164\40\141\162" "\145\40\156\157\164\40\101\160\160\154\151\143\141\164\151\157" "\156\163\40\141\156\144\40\141\162\145\40\156\157\164\40\143" "\157\166\145\162\145\144\40\142\171\40\164\150\151\163\12\114" "\151\143\145\156\163\145\54\40\141\156\144\40\143\157\156\166" "\145\171\40\163\165\143\150\40\141\40\143\157\155\142\151\156" "\145\144\40\154\151\142\162\141\162\171\40\165\156\144\145\162" "\40\164\145\162\155\163\40\157\146\40\171\157\165\162\12\143" "\150\157\151\143\145\54\40\151\146\40\171\157\165\40\144\157" "\40\142\157\164\150\40\157\146\40\164\150\145\40\146\157\154" "\154\157\167\151\156\147\72\12\12\40\40\40\141\51\40\101" "\143\143\157\155\160\141\156\171\40\164\150\145\40\143\157\155" "\142\151\156\145\144\40\154\151\142\162\141\162\171\40\167\151" "\164\150\40\141\40\143\157\160\171\40\157\146\40\164\150\145" "\40\163\141\155\145\40\167\157\162\153\40\142\141\163\145\144" "\12\40\40\40\157\156\40\164\150\145\40\114\151\142\162\141" "\162\171\54\40\165\156\143\157\155\142\151\156\145\144\40\167" "\151\164\150\40\141\156\171\40\157\164\150\145\162\40\154\151" "\142\162\141\162\171\40\146\141\143\151\154\151\164\151\145\163" "\54\12\40\40\40\143\157\156\166\145\171\145\144\40\165\156" "\144\145\162\40\164\150\145\40\164\145\162\155\163\40\157\146" "\40\164\150\151\163\40\114\151\143\145\156\163\145\56\12\12" "\40\40\40\142\51\40\107\151\166\145\40\160\162\157\155\151" "\156\145\156\164\40\156\157\164\151\143\145\40\167\151\164\150" "\40\164\150\145\40\143\157\155\142\151\156\145\144\40\154\151" "\142\162\141\162\171\40\164\150\141\164\40\160\141\162\164\40" "\157\146\40\151\164\12\40\40\40\151\163\40\141\40\167\157" "\162\153\40\142\141\163\145\144\40\157\156\40\164\150\145\40" "\114\151\142\162\141\162\171\54\40\141\156\144\40\145\170\160" "\154\141\151\156\151\156\147\40\167\150\145\162\145\40\164\157" "\40\146\151\156\144\40\164\150\145\12\40\40\40\141\143\143" "\157\155\160\141\156\171\151\156\147\40\165\156\143\157\155\142" "\151\156\145\144\40\146\157\162\155\40\157\146\40\164\150\145" "\40\163\141\155\145\40\167\157\162\153\56\12\12\40\40\66" "\56\40\122\145\166\151\163\145\144\40\126\145\162\163\151\157" "\156\163\40\157\146\40\164\150\145\40\107\116\125\40\114\145" "\163\163\145\162\40\107\145\156\145\162\141\154\40\120\165\142" "\154\151\143\40\114\151\143\145\156\163\145\56\12\12\40\40" "\124\150\145\40\106\162\145\145\40\123\157\146\164\167\141\162" "\145\40\106\157\165\156\144\141\164\151\157\156\40\155\141\171" "\40\160\165\142\154\151\163\150\40\162\145\166\151\163\145\144" "\40\141\156\144\57\157\162\40\156\145\167\40\166\145\162\163" "\151\157\156\163\12\157\146\40\164\150\145\40\107\116\125\40" "\114\145\163\163\145\162\40\107\145\156\145\162\141\154\40\120" "\165\142\154\151\143\40\114\151\143\145\156\163\145\40\146\162" "\157\155\40\164\151\155\145\40\164\157\40\164\151\155\145\56" "\40\123\165\143\150\40\156\145\167\12\166\145\162\163\151\157" "\156\163\40\167\151\154\154\40\142\145\40\163\151\155\151\154" "\141\162\40\151\156\40\163\160\151\162\151\164\40\164\157\40" "\164\150\145\40\160\162\145\163\145\156\164\40\166\145\162\163" "\151\157\156\54\40\142\165\164\40\155\141\171\12\144\151\146" "\146\145\162\40\151\156\40\144\145\164\141\151\154\40\164\157" "\40\141\144\144\162\145\163\163\40\156\145\167\40\160\162\157" "\142\154\145\155\163\40\157\162\40\143\157\156\143\145\162\156" "\163\56\12\12\40\40\105\141\143\150\40\166\145\162\163\151" "\157\156\40\151\163\40\147\151\166\145\156\40\141\40\144\151" "\163\164\151\156\147\165\151\163\150\151\156\147\40\166\145\162" "\163\151\157\156\40\156\165\155\142\145\162\56\40\111\146\40" "\164\150\145\12\114\151\142\162\141\162\171\40\141\163\40\171" "\157\165\40\162\145\143\145\151\166\145\144\40\151\164\40\163" "\160\145\143\151\146\151\145\163\40\164\150\141\164\40\141\40" "\143\145\162\164\141\151\156\40\156\165\155\142\145\162\145\144" "\40\166\145\162\163\151\157\156\12\157\146\40\164\150\145\40" "\107\116\125\40\114\145\163\163\145\162\40\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156\163" "\145\40\42\157\162\40\141\156\171\40\154\141\164\145\162\40" "\166\145\162\163\151\157\156\42\12\141\160\160\154\151\145\163" "\40\164\157\40\151\164\54\40\171\157\165\40\150\141\166\145" "\40\164\150\145\40\157\160\164\151\157\156\40\157\146\40\146" "\157\154\154\157\167\151\156\147\40\164\150\145\40\164\145\162" "\155\163\40\141\156\144\12\143\157\156\144\151\164\151\157\156" "\163\40\145\151\164\150\145\162\40\157\146\40\164\150\141\164" "\40\160\165\142\154\151\163\150\145\144\40\166\145\162\163\151" "\157\156\40\157\162\40\157\146\40\141\156\171\40\154\141\164" "\145\162\40\166\145\162\163\151\157\156\12\160\165\142\154\151" "\163\150\145\144\40\142\171\40\164\150\145\40\106\162\145\145" "\40\123\157\146\164\167\141\162\145\40\106\157\165\156\144\141" "\164\151\157\156\56\40\111\146\40\164\150\145\40\114\151\142" "\162\141\162\171\40\141\163\40\171\157\165\12\162\145\143\145" "\151\166\145\144\40\151\164\40\144\157\145\163\40\156\157\164" "\40\163\160\145\143\151\146\171\40\141\40\166\145\162\163\151" "\157\156\40\156\165\155\142\145\162\40\157\146\40\164\150\145" "\40\107\116\125\40\114\145\163\163\145\162\12\107\145\156\145" "\162\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156" "\163\145\54\40\171\157\165\40\155\141\171\40\143\150\157\157" "\163\145\40\141\156\171\40\166\145\162\163\151\157\156\40\157" "\146\40\164\150\145\40\107\116\125\40\114\145\163\163\145\162" "\12\107\145\156\145\162\141\154\40\120\165\142\154\151\143\40" "\114\151\143\145\156\163\145\40\145\166\145\162\40\160\165\142" "\154\151\163\150\145\144\40\142\171\40\164\150\145\40\106\162" "\145\145\40\123\157\146\164\167\141\162\145\40\106\157\165\156" "\144\141\164\151\157\156\56\12\12\40\40\111\146\40\164\150" "\145\40\114\151\142\162\141\162\171\40\141\163\40\171\157\165" "\40\162\145\143\145\151\166\145\144\40\151\164\40\163\160\145" "\143\151\146\151\145\163\40\164\150\141\164\40\141\40\160\162" "\157\170\171\40\143\141\156\40\144\145\143\151\144\145\12\167" "\150\145\164\150\145\162\40\146\165\164\165\162\145\40\166\145" "\162\163\151\157\156\163\40\157\146\40\164\150\145\40\107\116" "\125\40\114\145\163\163\145\162\40\107\145\156\145\162\141\154" "\40\120\165\142\154\151\143\40\114\151\143\145\156\163\145\40" "\163\150\141\154\154\12\141\160\160\154\171\54\40\164\150\141" "\164\40\160\162\157\170\171\47\163\40\160\165\142\154\151\143" "\40\163\164\141\164\145\155\145\156\164\40\157\146\40\141\143" "\143\145\160\164\141\156\143\145\40\157\146\40\141\156\171\40" "\166\145\162\163\151\157\156\40\151\163\12\160\145\162\155\141" "\156\145\156\164\40\141\165\164\150\157\162\151\172\141\164\151" "\157\156\40\146\157\162\40\171\157\165\40\164\157\40\143\150" "\157\157\163\145\40\164\150\141\164\40\166\145\162\163\151\157" "\156\40\146\157\162\40\164\150\145\12\114\151\142\162\141\162" "\171\56\12" }, { ":locale/da.mo", 948, "\336\22\4\225\0\0\0\0\15\0\0\0\34\0\0\0" "\204\0\0\0\21\0\0\0\354\0\0\0\0\0\0\0" "\60\1\0\0\5\0\0\0\61\1\0\0\15\0\0\0" "\67\1\0\0\16\0\0\0\105\1\0\0\13\0\0\0" "\124\1\0\0\7\0\0\0\140\1\0\0\4\0\0\0" "\150\1\0\0\12\0\0\0\155\1\0\0\20\0\0\0" "\170\1\0\0\6\0\0\0\211\1\0\0\20\0\0\0" "\220\1\0\0\22\0\0\0\241\1\0\0\12\0\0\0" "\264\1\0\0\141\1\0\0\277\1\0\0\2\0\0\0" "\41\3\0\0\17\0\0\0\44\3\0\0\16\0\0\0" "\64\3\0\0\1\0\0\0\103\3\0\0\11\0\0\0" "\105\3\0\0\11\0\0\0\117\3\0\0\12\0\0\0" "\131\3\0\0\21\0\0\0\144\3\0\0\10\0\0\0" "\166\3\0\0\17\0\0\0\177\3\0\0\26\0\0\0" "\217\3\0\0\15\0\0\0\246\3\0\0\1\0\0\0" "\14\0\0\0\0\0\0\0\15\0\0\0\11\0\0\0" "\0\0\0\0\5\0\0\0\0\0\0\0\7\0\0\0" "\2\0\0\0\12\0\0\0\0\0\0\0\3\0\0\0" "\10\0\0\0\6\0\0\0\13\0\0\0\4\0\0\0" "\0\101\142\157\165\164\0\102\154\145\145\144\40\103\157\156" "\164\162\157\154\0\104\151\163\153\40\123\164\162\145\141\155" "\151\156\147\0\104\162\165\155\107\151\172\155\157\40\166\0" "\104\162\165\155\153\151\164\0\115\141\151\156\0\122\145\163" "\141\155\160\154\151\156\147\0\123\141\155\160\154\145\40\123" "\145\154\145\143\164\151\157\156\0\123\164\141\164\165\163\0" "\124\151\155\151\156\147\40\110\165\155\141\156\151\172\145\162" "\0\126\145\154\157\143\151\164\171\40\110\165\155\141\156\151" "\172\145\162\0\126\151\163\165\141\154\151\172\145\162\0\120" "\162\157\152\145\143\164\55\111\144\55\126\145\162\163\151\157" "\156\72\40\144\162\165\155\147\151\172\155\157\40\60\56\71" "\56\61\67\12\122\145\160\157\162\164\55\115\163\147\151\144" "\55\102\165\147\163\55\124\157\72\40\12\120\117\124\55\103" "\162\145\141\164\151\157\156\55\104\141\164\145\72\40\62\60" "\61\71\55\60\71\55\61\63\40\62\61\72\60\67\53\60" "\62\60\60\12\120\117\55\122\145\166\151\163\151\157\156\55" "\104\141\164\145\72\40\62\60\61\71\55\60\71\55\61\63" "\40\61\71\72\64\62\53\60\62\60\60\12\114\141\163\164" "\55\124\162\141\156\163\154\141\164\157\162\72\40\101\165\164" "\157\155\141\164\151\143\141\154\154\171\40\147\145\156\145\162" "\141\164\145\144\12\114\141\156\147\165\141\147\145\55\124\145" "\141\155\72\40\156\157\156\145\12\114\141\156\147\165\141\147" "\145\72\40\144\141\12\115\111\115\105\55\126\145\162\163\151" "\157\156\72\40\61\56\60\12\103\157\156\164\145\156\164\55" "\124\171\160\145\72\40\164\145\170\164\57\160\154\141\151\156" "\73\40\143\150\141\162\163\145\164\75\111\123\117\55\70\70" "\65\71\55\61\12\103\157\156\164\145\156\164\55\124\162\141" "\156\163\146\145\162\55\105\156\143\157\144\151\156\147\72\40" "\70\142\151\164\12\120\154\165\162\141\154\55\106\157\162\155" "\163\72\40\156\160\154\165\162\141\154\163\75\62\73\40\160" "\154\165\162\141\154\75\50\156\40\41\75\40\61\51\73\12" "\0\117\155\0\117\166\145\162\150\370\162\40\153\157\156\164" "\162\157\154\0\104\151\163\153\40\163\164\162\145\141\155\151" "\156\147\0\130\0\124\162\157\155\155\145\163\346\164\0\110" "\157\166\145\144\146\141\156\145\0\122\145\163\141\155\160\154" "\151\156\147\0\114\171\144\142\151\144\40\165\144\166\346\154" "\147\145\154\163\145\0\124\151\154\163\164\141\156\144\0\124" "\151\144\163\150\165\155\141\156\151\163\141\164\157\162\0\123" "\154\141\147\163\164\171\162\153\145\40\150\165\155\141\156\151" "\163\141\164\157\162\0\126\151\163\165\141\154\151\163\145\162" "\151\156\147\0" }, { ":locale/fr.mo", 411, "\336\22\4\225\0\0\0\0\1\0\0\0\34\0\0\0" "\44\0\0\0\3\0\0\0\54\0\0\0\0\0\0\0" "\70\0\0\0\141\1\0\0\71\0\0\0\1\0\0\0" "\0\0\0\0\0\0\0\0\0\120\162\157\152\145\143\164" "\55\111\144\55\126\145\162\163\151\157\156\72\40\144\162\165" "\155\147\151\172\155\157\40\60\56\71\56\61\67\12\122\145" "\160\157\162\164\55\115\163\147\151\144\55\102\165\147\163\55" "\124\157\72\40\12\120\117\124\55\103\162\145\141\164\151\157" "\156\55\104\141\164\145\72\40\62\60\61\71\55\60\71\55" "\61\63\40\62\61\72\60\67\53\60\62\60\60\12\120\117" "\55\122\145\166\151\163\151\157\156\55\104\141\164\145\72\40" "\62\60\61\71\55\60\71\55\60\71\40\61\66\72\62\61" "\53\60\62\60\60\12\114\141\163\164\55\124\162\141\156\163" "\154\141\164\157\162\72\40\101\165\164\157\155\141\164\151\143" "\141\154\154\171\40\147\145\156\145\162\141\164\145\144\12\114" "\141\156\147\165\141\147\145\55\124\145\141\155\72\40\156\157" "\156\145\12\114\141\156\147\165\141\147\145\72\40\144\141\12" "\115\111\115\105\55\126\145\162\163\151\157\156\72\40\61\56" "\60\12\103\157\156\164\145\156\164\55\124\171\160\145\72\40" "\164\145\170\164\57\160\154\141\151\156\73\40\143\150\141\162" "\163\145\164\75\111\123\117\55\70\70\65\71\55\61\12\103" "\157\156\164\145\156\164\55\124\162\141\156\163\146\145\162\55" "\105\156\143\157\144\151\156\147\72\40\70\142\151\164\12\120" "\154\165\162\141\154\55\106\157\162\155\163\72\40\156\160\154" "\165\162\141\154\163\75\62\73\40\160\154\165\162\141\154\75" "\50\156\40\41\75\40\61\51\73\12\0" }, { "", 0, 0 } }; drumgizmo-0.9.18.1/plugingui/nativewindow_win32.h0000644000076400007640000000507213551153106016636 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_win32.h * * Fri Dec 28 18:45:51 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "nativewindow.h" #define WIN32_LEAN_AND_MEAN #include typedef HWND WNDID; namespace GUI { class Window; class Event; class NativeWindowWin32 : public NativeWindow { public: NativeWindowWin32(void* native_window, Window& window); ~NativeWindowWin32(); void setFixedSize(std::size_t width, std::size_t height) override; void setAlwaysOnTop(bool always_on_top) override; void resize(std::size_t width, std::size_t height) override; std::pair getSize() const override; void move(int x, int y) override; std::pair getPosition() const override; void show() override; bool visible() const override; void hide() override; void redraw(const Rect& dirty_rect) override; void setCaption(const std::string &caption) override; void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; Point translateToScreen(const Point& point) override; private: static LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp); static LRESULT CALLBACK subClassProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, UINT_PTR id, DWORD_PTR data); HWND parent_window; Window& window; WNDID m_hwnd = 0; bool mouse_in_window{false}; std::pair last_mouse_position{0, 0}; char* m_className = nullptr; EventQueue event_queue; bool always_on_top{false}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/statusframecontent.h0000644000076400007640000000433013551153106017023 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * statusframecontent.h * * Fri Mar 24 21:49:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "settings.h" #include "textedit.h" #include "widget.h" class SettingsNotifier; namespace GUI { class StatusframeContent : public Widget { public: StatusframeContent(Widget* parent, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void updateContent(); void updateDrumkitLoadStatus(LoadStatus load_status); void updateDrumkitName(const std::string& drumkit_name); void updateDrumkitDescription(const std::string& drumkit_description); void updateDrumkitVersion(const std::string& drumkit_version); void updateMidimapLoadStatus(LoadStatus load_status); void updateBufferSize(std::size_t buffer_size); void updateNumberOfUnderruns(std::size_t number_of_underruns); void loadStatusTextChanged(const std::string& text); private: TextEdit text_field{this}; SettingsNotifier& settings_notifier; std::string drumkit_load_status; std::string drumkit_name; std::string drumkit_description; std::string drumkit_version; std::string midimap_load_status; std::string buffer_size; std::string number_of_underruns; std::string messages; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/humaniservisualiser.h0000644000076400007640000000556413340266453017214 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humaniservisualiser.h * * Fri Jun 15 19:09:18 CEST 2018 * Copyright 2018 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "texturedbox.h" #include "texture.h" struct Settings; class SettingsNotifier; class HumaniserVisualiser : public GUI::Widget { public: HumaniserVisualiser(GUI::Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget: virtual void repaintEvent(GUI::RepaintEvent *repaintEvent) override; virtual void resize(std::size_t width, std::size_t height) override; private: GUI::TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 class Canvas : public GUI::Widget { public: Canvas(GUI::Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget: virtual void repaintEvent(GUI::RepaintEvent *repaintEvent) override; void latencyEnabledChanged(bool enabled); void velocityEnabledChanged(bool enabled); void latencyOffsetChanged(float offset); void velocityOffsetChanged(float offset); void latencyStddevChanged(float stddev); void latencyLaidbackChanged(float laidback); void velocityStddevChanged(float stddev); GUI::Texture stddev_h{getImageCache(), ":resources/stddev_horizontal.png"}; GUI::Texture stddev_h_disabled{getImageCache(), ":resources/stddev_horizontal_disabled.png"}; GUI::Texture stddev_v{getImageCache(), ":resources/stddev_vertical.png"}; GUI::Texture stddev_v_disabled{getImageCache(), ":resources/stddev_vertical_disabled.png"}; bool latency_enabled{false}; bool velocity_enabled{false}; float latency_offset; float velocity_offset; float latency_stddev; int laidback; float velocity_stddev; SettingsNotifier& settings_notifier; const float latency_max_ms; Settings& settings; }; Canvas canvas; }; drumgizmo-0.9.18.1/plugingui/window.h0000644000076400007640000000622313551153106014404 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * window.h * * Sun Oct 9 13:11:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "pixelbuffer.h" #include "nativewindow.h" #include "image.h" #include "eventhandler.h" #include "imagecache.h" namespace GUI { class Window : public Widget { public: Window(void* native_window = nullptr); ~Window(); void setFixedSize(int width, int height); void setAlwaysOnTop(bool always_on_top); void setCaption(const std::string& caption); // From Widget: void resize(std::size_t width, std::size_t height) override; void move(int x, int y) override; void show() override; void hide() override; Window* window() override; Size getNativeSize(); ImageCache& getImageCache() override; EventHandler* eventHandler(); Widget* keyboardFocus(); void setKeyboardFocus(Widget* widget); Widget* buttonDownFocus(); void setButtonDownFocus(Widget* widget); Widget* mouseFocus(); void setMouseFocus(Widget* widget); //! Tag the window buffer dirty to be rendered. void needsRedraw(); // \returns the native window handle, it HWND on Win32 or Window id on X11 void* getNativeWindowHandle() const; //! Translate a local window coordinate to a global screen coordinate. Point translateToScreen(const Point& point); protected: // For the EventHandler friend class EventHandler; // From Widget: std::size_t translateToWindowX() override; std::size_t translateToWindowY() override; void resized(std::size_t width, std::size_t height); void moved(int x, int y); //! Returns true if window pixel buffer changed and needs to be copied to //! native window. bool updateBuffer(); // For the Painter friend class Widget; // For the NativeWindow implementations: friend class NativeWindowX11; friend class NativeWindowWin32; friend class NativeWindowPugl; friend class NativeWindowCocoa; PixelBuffer wpixbuf; size_t refcount{0}; Widget* _keyboardFocus{nullptr}; Widget* _buttonDownFocus{nullptr}; Widget* _mouseFocus{nullptr}; NativeWindow* native{nullptr}; EventHandler* eventhandler{nullptr}; size_t maxRefcount{0}; bool needs_redraw{false}; ImageCache image_cache; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/tabbutton.cc0000644000076400007640000000546213511117026015236 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabbutton.cc * * Thu Nov 24 18:52:26 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "tabbutton.h" #include "painter.h" namespace GUI { static TabID getNextTabID() { static TabID next{0}; next++; return next; } TabButton::TabButton(Widget* parent, Widget* tab_widget) : ButtonBase(parent) , tab_widget(tab_widget) { tab_id = getNextTabID(); CONNECT(this, clickNotifier, this, &TabButton::clickHandler); } TabButton::~TabButton() { } Widget* TabButton::getTabWidget() { return tab_widget; } std::size_t TabButton::getMinimalWidth() const { std::size_t padding = 15; auto font_width = font.textWidth(text); return font_width + padding; } std::size_t TabButton::getMinimalHeight() const { std::size_t padding = 10; auto font_height= font.textHeight(text); return font_height + padding; } void TabButton::setActive(bool active) { this->active = active; if (active) { draw_state = State::Down; } else { draw_state = State::Up; } redraw(); } TabID TabButton::getID() const { return tab_id; } void TabButton::repaintEvent(RepaintEvent* e) { Painter p(*this); int padTop = 3; int padLeft = 0; int padTextTop = 3; int w = width(); int h = height(); if(w == 0 || h == 0) { return; } if (draw_state == State::Up && !active) { tab_passive.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, tab_passive); } else { tab_active.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, tab_active); } auto x = padLeft + (width() - font.textWidth(text)) / 2; auto y = padTop + padTextTop + font.textHeight(text); p.drawText(x, y, font, text, true); } void TabButton::scrollEvent(ScrollEvent* scroll_event) { scrollNotifier(scroll_event->delta); } void TabButton::clickHandler() { switchTabNotifier(tab_widget); } } // GUI:: drumgizmo-0.9.18.1/plugingui/abouttab.cc0000644000076400007640000000466213340266453015047 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * abouttab.cc * * Fri Apr 21 18:51:13 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "abouttab.h" #include #include "utf8.h" namespace GUI { AboutTab::AboutTab(Widget* parent) : Widget(parent) { text_edit.setText(getAboutText()); text_edit.setReadOnly(true); text_edit.resize(std::max((int)width() - 2*margin,0), std::max((int)height() - 2*margin, 0)); text_edit.move(margin, margin); } void AboutTab::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_edit.resize(std::max((int)width - 2*margin, 0), std::max((int)height - 2*margin, 0)); } std::string AboutTab::getAboutText() { std::string about_text; // About about_text.append( "=============\n" " About\n" "=============\n" "\n"); about_text.append(about.data()); // Version about_text.append( "\n" "=============\n" " Version\n" "=============\n" "\n"); about_text.append(std::string(VERSION) + "\n"); // Bugs about_text.append( "\n" "=============\n" " Bugs\n" "=============\n" "\n"); about_text.append(bugs.data()); // Authors about_text.append( "\n" "=============\n" " Authors\n" "=============\n" "\n"); about_text.append(UTF8().toLatin1(authors.data())); // GPL about_text.append( "\n" "=============\n" " License\n" "=============\n" "\n"); about_text.append(gpl.data()); return about_text; } } // GUI:: drumgizmo-0.9.18.1/plugingui/timingframecontent.cc0000644000076400007640000001004413340266454017133 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * timingframecontent.cc * * Sat Oct 14 19:39:33 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "timingframecontent.h" #include #include #include "painter.h" namespace GUI { TimingframeContent::TimingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) { layout.setResizeChildren(false); tightness.resize(80, 80); tightness_knob.resize(30, 30); tightness_knob.showValue(false); tightness_knob.setDefaultValue(tightnessSettingsToKnob(Settings::latency_stddev_default)); tightness.setControl(&tightness_knob); layout.addItem(&tightness); regain.resize(80, 80); regain_knob.resize(30, 30); regain_knob.showValue(false); regain_knob.setDefaultValue(Settings::latency_regain_default); regain.setControl(®ain_knob); layout.addItem(®ain); laidback.resize(80, 80); laidback_knob.resize(30, 30); laidback_knob.showValue(false); laidback_knob.setDefaultValue(Settings::latency_laid_back_ms_default); laidback_knob.setRange(-100.0f, 100.0f); // +/- 100 ms range laidback.setControl(&laidback_knob); layout.addItem(&laidback); layout.setPosition(&tightness, GridLayout::GridRange{0, 1, 0, 1}); layout.setPosition(®ain, GridLayout::GridRange{1, 2, 0, 1}); layout.setPosition(&laidback, GridLayout::GridRange{2, 3, 0, 1}); CONNECT(this, settings_notifier.latency_stddev, this, &TimingframeContent::tightnessSettingsValueChanged); CONNECT(this, settings_notifier.latency_regain, this, &TimingframeContent::regainSettingsValueChanged); CONNECT(this, settings_notifier.latency_laid_back_ms, this, &TimingframeContent::laidbackSettingsValueChanged); CONNECT(&tightness_knob, valueChangedNotifier, this, &TimingframeContent::tightnessKnobValueChanged); CONNECT(®ain_knob, valueChangedNotifier, this, &TimingframeContent::regainKnobValueChanged); CONNECT(&laidback_knob, valueChangedNotifier, this, &TimingframeContent::laidbackKnobValueChanged); } float TimingframeContent::thightnessKnobToSettings(float value) const { return (1.f - value) * 20.f; } float TimingframeContent::tightnessSettingsToKnob(float value) const { return 1.f - (value / 20.f); } void TimingframeContent::tightnessKnobValueChanged(float value) { auto settings_value = thightnessKnobToSettings(value); settings.latency_stddev.store(settings_value); } void TimingframeContent::tightnessSettingsValueChanged(float value) { auto knob_value = tightnessSettingsToKnob(value); tightness_knob.setValue(knob_value); } void TimingframeContent::regainKnobValueChanged(float value) { settings.latency_regain.store(value); } void TimingframeContent::regainSettingsValueChanged(float value) { regain_knob.setValue(value); } void TimingframeContent::laidbackKnobValueChanged(float value) { settings.latency_laid_back_ms.store(value); } void TimingframeContent::laidbackSettingsValueChanged(float value) { laidback_knob.setValue(value); } } // GUI:: drumgizmo-0.9.18.1/plugingui/drumkittab.h0000644000076400007640000000615613515375734015265 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkittab.h * * Fri Jun 8 21:50:03 CEST 2018 * Copyright 2018 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "image.h" #include "label.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class Config; class DrumkitTab : public Widget { public: DrumkitTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget: void resize(std::size_t width, std::size_t height) override; void buttonEvent(ButtonEvent* buttonEvent) override; void scrollEvent(ScrollEvent* scrollEvent) override; void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; void mouseLeaveEvent() override; void init(std::string const& image_file, std::string const& map_file); Notifier imageChangeNotifier; // bool has_valid_image private: float current_velocity{.5}; std::string current_instrument{""}; int current_index{-1}; using IndexGrid = Grid; using Position = IndexGrid::Pos; using Positions = std::vector; std::vector colours; IndexGrid pos_to_colour_index; std::vector colour_index_to_positions; std::vector to_instrument_name; struct ColourInstrumentPair { Colour colour; std::string instrument; }; // FIXME: load this from instrument file std::vector colour_instrument_pairs = { {Colour(0), "Snare"}, {Colour(255./255, 15./255, 55./255), "KdrumL"}, {Colour(154./255, 153./255, 33./255), "HihatClosed"}, {Colour(248./255, 221./255, 37./255), "Tom4"} }; bool shows_overlay{false}; bool shows_instrument_overlay{false}; std::unique_ptr drumkit_image; std::unique_ptr map_image; int drumkit_image_x; int drumkit_image_y; Label velocity_label{this}; Label instrument_name_label{this}; Settings& settings; SettingsNotifier& settings_notifier; // Config& config; void triggerAudition(int x, int y); void highlightInstrument(int index); void updateVelocityLabel(); void updateInstrumentLabel(int index); void drumkitFileChanged(const std::string& drumkit_file); }; } // GUI:: drumgizmo-0.9.18.1/plugingui/resource_data.h0000644000076400007640000000240313153056417015716 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource_data.h * * Sun Mar 17 20:25:24 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once typedef struct { const char *name; unsigned int size; const char *data; } rc_data_t; extern const rc_data_t rc_data[]; drumgizmo-0.9.18.1/plugingui/listboxthin.h0000644000076400007640000000414413443403213015441 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxthin.h * * Sun Apr 7 19:39:35 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "widget.h" #include "painter.h" #include "listboxbasic.h" #include "texturedbox.h" namespace GUI { class ListBoxThin : public Widget { public: ListBoxThin(Widget *parent); virtual ~ListBoxThin(); void addItem(std::string name, std::string value); void addItems(std::vector &items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); // From Widget: virtual void repaintEvent(GUI::RepaintEvent* repaintEvent) override; virtual void resize(std::size_t height, std::size_t width) override; // Forwarded notifier from ListBoxBasic::basic Notifier<>& selectionNotifier; Notifier<>& clickNotifier; Notifier<>& valueChangedNotifier; private: ListBoxBasic basic; TexturedBox box{getImageCache(), ":resources/thinlistbox.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 1, 1, 1}; // dy1, dy2, dy3 }; } // GUI:: drumgizmo-0.9.18.1/plugingui/tabbutton.h0000644000076400007640000000434213511117026015074 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabbutton.h * * Thu Nov 24 18:52:26 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "button_base.h" #include "font.h" #include "texturedbox.h" namespace GUI { class ScrollEvent; using TabID = int; class TabButton : public ButtonBase { public: TabButton(Widget* parent, Widget* tab_widget); virtual ~TabButton(); Widget* getTabWidget(); std::size_t getMinimalWidth() const; std::size_t getMinimalHeight() const; void setActive(bool active); TabID getID() const; Notifier switchTabNotifier; Notifier scrollNotifier; // float delta protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; virtual void scrollEvent(ScrollEvent* scroll_event) override; private: TabID tab_id; void clickHandler(); Widget* tab_widget; bool active{false}; TexturedBox tab_active{getImageCache(), ":resources/tab.png", 0, 0, // atlas offset (x, y) 5, 1, 5, // dx1, dx2, dx3 5, 13, 1}; // dy1, dy2, dy3 TexturedBox tab_passive{getImageCache(), ":resources/tab.png", 11, 0, // atlas offset (x, y) 5, 1, 5, // dx1, dx2, dx3 5, 13, 1}; // dy1, dy2, dy3 Font font{":resources/fontemboss.png"}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/tabwidget.cc0000644000076400007640000001110713511117026015177 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabwidget.cc * * Thu Nov 24 17:46:22 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "tabwidget.h" #include "painter.h" namespace GUI { TabWidget::TabWidget(Widget *parent) : Widget(parent) , stack(this) { CONNECT(this, sizeChangeNotifier, this, &TabWidget::sizeChanged); CONNECT(&stack, currentChanged, this, &TabWidget::setActiveButtons); } TabID TabWidget::addTab(const std::string& title, Widget* widget) { buttons.emplace_back(this, widget); auto& button = buttons.back(); button.setText(title); stack.addWidget(widget); CONNECT(&button, switchTabNotifier, this, &TabWidget::switchTab); CONNECT(&button, scrollNotifier, this, &TabWidget::rotateTab); sizeChanged(width(), height()); return button.getID(); } void TabWidget::setTabWidth(std::size_t width) { tab_width = width; relayout(); } std::size_t TabWidget::getTabWidth() const { return tab_width; } void TabWidget::setVisible(TabID tab_id, bool visible) { for (auto& button : buttons) { if(button.getID() == tab_id) { button.setVisible(visible); relayout(); return; } } } std::size_t TabWidget::getBarHeight() const { return topbar.height(); } void TabWidget::rotateTab(float delta) { Widget* widget{nullptr}; Widget* current = stack.getCurrentWidget(); if(delta > 0.0f) { while((widget = stack.getWidgetAfter(current)) != nullptr) { auto button = getButtonFromWidget(widget); if(!button || !button->visible()) { current = widget; continue; } break; } } else { while((widget = stack.getWidgetBefore(current)) != nullptr) { auto button = getButtonFromWidget(widget); if(!button || !button->visible()) { current = widget; continue; } break; } } if(widget) { switchTab(widget); } } void TabWidget::switchTab(Widget* tab_widget) { stack.setCurrentWidget(tab_widget); } void TabWidget::setActiveButtons(Widget* current_widget) { for (auto& button : buttons) { if (button.getTabWidget() == current_widget) { button.setActive(true); } else { button.setActive(false); } } } void TabWidget::sizeChanged(int width, int height) { std::size_t pos = 0; int button_width = tab_width; int bar_height = 25; int button_border_width = 10; int button_padding_left = 25; int button_padding_inner = 3; int logo_padding_right = button_padding_left / 2; Painter p(*this); if(buttons.size() > 0) { for(auto& button : buttons) { if(!button.visible()) { continue; } int min_width = button.getMinimalWidth(); button_width = std::max(button_width, min_width + button_border_width); } button_width = std::min(button_width, width / (int)buttons.size()); } // draw the upper bar topbar.setSize(width, bar_height); p.drawImage(0, 0, topbar); auto x_logo = width - toplogo.width() - logo_padding_right; auto y_logo = (bar_height - toplogo.height()) / 2; p.drawImage(x_logo, y_logo, toplogo); // place the buttons pos = button_padding_left; for(auto& button : buttons) { if(!button.visible()) { continue; } button.resize(button_width, bar_height); button.move(pos, 0); pos += button_width + button_padding_inner; } stack.move(0, bar_height); stack.resize(width, std::max((int)height - bar_height, 0)); } void TabWidget::relayout() { sizeChanged(TabWidget::width(), TabWidget::height()); // Force re-layout } const TabButton* TabWidget::getButtonFromWidget(const Widget* tab_widget) { if(tab_widget == nullptr) { return nullptr; } for(auto& button : buttons) { if(button.getTabWidget() == tab_widget) { return &button; } } return nullptr; } } // GUI:: drumgizmo-0.9.18.1/plugingui/textedit.cc0000644000076400007640000001040713511117026015061 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.cc * * Tue Oct 21 11:25:26 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "textedit.h" #include "painter.h" namespace GUI { TextEdit::TextEdit(Widget* parent) : Widget(parent), scroll(this) { setReadOnly(true); scroll.move(width() - 2*x_border - 3, y_border - 1); scroll.resize(16, 100); CONNECT(&scroll, valueChangeNotifier, this, &TextEdit::scrolled); } TextEdit::~TextEdit() { } void TextEdit::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); needs_preprocessing = true; scroll.move(width - 2*x_border - 3, y_border - 1); scroll.resize(scroll.width(), std::max((int)height - 2*(y_border - 1), 0)); } void TextEdit::setReadOnly(bool readonly) { this->readonly = readonly; } bool TextEdit::readOnly() { return readonly; } void TextEdit::setText(const std::string& text) { this->text = text; needs_preprocessing = true; redraw(); textChangedNotifier(); } std::string TextEdit::getText() { return text; } void TextEdit::preprocessText() { std::vector lines; preprocessed_text.clear(); std::string text = this->text; // Handle tab characters for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\t') { text.erase(i, 1); text.insert(i, 4, ' '); } } // Handle "\r" for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\r') { text.erase(i, 1); } } // Handle new line characters std::size_t pos = 0; do { pos = text.find("\n"); lines.push_back(text.substr(0, pos)); text = text.substr(pos + 1); } while(pos != std::string::npos); // Wrap long lines auto const max_width = width() - 2*x_border - 10 - scroll.width(); for(auto const& line: lines) { std::string valid; std::string current; for(auto c: line) { current += c; if(c == ' ') { valid.append(current.substr(valid.size())); } if(font.textWidth(current) >= max_width) { if(valid.empty()) { current.pop_back(); preprocessed_text.push_back(current); current = c; } else { current = current.substr(valid.size()); valid.pop_back(); preprocessed_text.push_back(valid); valid.clear(); } } } preprocessed_text.push_back(current); } } void TextEdit::repaintEvent(RepaintEvent* repaintEvent) { if(needs_preprocessing) { preprocessText(); } Painter p(*this); // update values of scroll bar scroll.setRange(height() / font.textHeight()); scroll.setMaximum(preprocessed_text.size()); if((width() == 0) || (height() == 0)) { return; } box.setSize(width(), height()); p.drawImage(0, 0, box); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); int ypos = font.textHeight() + y_border; auto scroll_value = scroll.value(); for(std::size_t i = 0; i < preprocessed_text.size() - scroll_value; ++i) { if(i * font.textHeight() >= (height() - y_border - font.textHeight())) { break; } auto const& line = preprocessed_text[scroll_value + i]; p.drawText(x_border, ypos, font, line); ypos += font.textHeight(); } } void TextEdit::scrollEvent(ScrollEvent* scrollEvent) { scroll.setValue(scroll.value() + scrollEvent->delta); } void TextEdit::scrolled(int value) { (void)value; redraw(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/diskstreamingframecontent.h0000644000076400007640000000410613340266453020353 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * diskstreamingframecontent.h * * Fri Mar 24 21:50:07 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "button.h" #include "label.h" #include "slider.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class DiskstreamingframeContent : public Widget { public: DiskstreamingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; private: void limitSettingsValueChanged(std::size_t value); void limitValueChanged(float value); void reloadClicked(); void reloaded(std::size_t); // For now the maximum disk streaming limit is 4GB static constexpr std::size_t min_limit = 1024.0 * 1024.0 * 32; static constexpr std::size_t max_limit = 1024.0 * 1024.0 * 1024.0 * 4.0 - 1; Label label_text{this}; Label label_value{this}; Slider slider{this}; Button button{this}; int slider_width; int button_width; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/nativewindow_x11.cc0000644000076400007640000004263713551153106016453 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_x11.cc * * Fri Dec 28 18:45:57 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "nativewindow_x11.h" //http://www.mesa3d.org/brianp/xshm.c #include #include #include #include #include #include #include #include #include "window.h" namespace GUI { #define _NET_WM_STATE_REMOVE 0 // remove/unset property #define _NET_WM_STATE_ADD 1 // add/set property void setWindowFront(Display *disp, ::Window wind, bool enable) { Atom wm_state, wm_state_above; XEvent event; if((wm_state = XInternAtom(disp, "_NET_WM_STATE", False)) == None) { return; } if((wm_state_above = XInternAtom(disp, "_NET_WM_STATE_ABOVE", False)) == None) { return; } // //window = the respective client window //message_type = _NET_WM_STATE //format = 32 //data.l[0] = the action, as listed below //data.l[1] = first property to alter //data.l[2] = second property to alter //data.l[3] = source indication (0-unk,1-normal app,2-pager) //other data.l[] elements = 0 // // sending a ClientMessage event.xclient.type = ClientMessage; // value unimportant in this case event.xclient.serial = 0; // coming from a SendEvent request, so True event.xclient.send_event = True; // the event originates from disp event.xclient.display = disp; // the window whose state will be modified event.xclient.window = wind; // the component Atom being modified in the window event.xclient.message_type = wm_state; // specifies that data.l will be used event.xclient.format = 32; // 0 is _NET_WM_STATE_REMOVE, 1 is _NET_WM_STATE_ADD event.xclient.data.l[0] = enable ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE; // the atom being added event.xclient.data.l[1] = wm_state_above; // unused event.xclient.data.l[2] = 0; event.xclient.data.l[3] = 0; event.xclient.data.l[4] = 0; // actually send the event XSendEvent(disp, DefaultRootWindow(disp), False, SubstructureRedirectMask | SubstructureNotifyMask, &event); } NativeWindowX11::NativeWindowX11(void* native_window, Window& window) : window(window) { display = XOpenDisplay(nullptr); if(display == nullptr) { ERR(X11, "XOpenDisplay failed"); return; } screen = DefaultScreen(display); visual = DefaultVisual(display, screen); depth = DefaultDepth(display, screen); if(native_window) { parent_window = (::Window)native_window; // Track size changes on the parent window XSelectInput(display, parent_window, StructureNotifyMask); } else { parent_window = DefaultRootWindow(display); } // Create the window XSetWindowAttributes swa; swa.backing_store = Always; xwindow = XCreateWindow(display, parent_window, 0, 0, //window.x(), window.y(), 1, 1, //window.width(), window.height(), 0, // border CopyFromParent, // depth CopyFromParent, // class CopyFromParent, // visual 0,//CWBackingStore, &swa); long mask = (StructureNotifyMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | KeyPressMask | KeyReleaseMask| ExposureMask | StructureNotifyMask | SubstructureNotifyMask | EnterWindowMask | LeaveWindowMask); XSelectInput(display, xwindow, mask); // Register the delete window message: wmDeleteMessage = XInternAtom(display, "WM_DELETE_WINDOW", false); Atom protocols[] = { wmDeleteMessage }; XSetWMProtocols(display, xwindow, protocols, sizeof(protocols) / sizeof(*protocols)); // Create a "Graphics Context" gc = XCreateGC(display, xwindow, 0, nullptr); } NativeWindowX11::~NativeWindowX11() { if(display == nullptr) { return; } deallocateShmImage(); XFreeGC(display, gc); XDestroyWindow(display, xwindow); XCloseDisplay(display); } void NativeWindowX11::setFixedSize(std::size_t width, std::size_t height) { if(display == nullptr) { return; } resize(width, height); XSizeHints size_hints; memset(&size_hints, 0, sizeof(size_hints)); size_hints.flags = PMinSize|PMaxSize; size_hints.min_width = size_hints.max_width = (int)width; size_hints.min_height = size_hints.max_height = (int)height; XSetNormalHints(display, xwindow, &size_hints); } void NativeWindowX11::setAlwaysOnTop(bool always_on_top) { setWindowFront(display, xwindow, always_on_top); } void NativeWindowX11::resize(std::size_t width, std::size_t height) { if(display == nullptr) { return; } XResizeWindow(display, xwindow, width, height); } std::pair NativeWindowX11::getSize() const { // XWindowAttributes attributes; // XGetWindowAttributes(display, xwindow, &attributes); // return std::make_pair(attributes.width, attributes.height); ::Window root_window; int x, y; unsigned int width, height, border, depth; XGetGeometry(display, xwindow, &root_window, &x, &y, &width, &height, &border, &depth); return {width, height}; } void NativeWindowX11::move(int x, int y) { if(display == nullptr) { return; } XMoveWindow(display, xwindow, x, y); } std::pair NativeWindowX11::getPosition() const { ::Window root_window; ::Window child_window; int x, y; unsigned int width, height, border, depth; XGetGeometry(display, xwindow, &root_window, &x, &y, &width, &height, &border, &depth); XTranslateCoordinates(display, xwindow, root_window, 0, 0, &x, &y, &child_window); return std::make_pair(x, y); } void NativeWindowX11::show() { if(display == nullptr) { return; } XMapWindow(display, xwindow); } void NativeWindowX11::hide() { if(display == nullptr) { return; } XUnmapWindow(display, xwindow); } bool NativeWindowX11::visible() const { if(display == nullptr) { return false; } XWindowAttributes xwa; XGetWindowAttributes(display, xwindow, &xwa); return (xwa.map_state == IsViewable); } void NativeWindowX11::redraw(const Rect& dirty_rect) { if(display == nullptr) { return; } auto x1 = dirty_rect.x1; auto y1 = dirty_rect.y1; auto x2 = dirty_rect.x2; auto y2 = dirty_rect.y2; // Assert that we don't try to paint a backwards rect. assert(x1 <= x2); assert(y1 <= y2); updateImageFromBuffer(x1, y1, x2, y2); XShmPutImage(display, xwindow, gc, image, x1, y1, x1, y1, std::min((std::size_t)image->width, (x2 - x1)), std::min((std::size_t)image->height, (y2 - y1)), false); XFlush(display); } void NativeWindowX11::setCaption(const std::string &caption) { if(display == nullptr) { return; } XStoreName(display, xwindow, caption.c_str()); } void NativeWindowX11::grabMouse(bool grab) { (void)grab; // Don't need to do anything on this platform... } EventQueue NativeWindowX11::getEvents() { while(XPending(display)) { XEvent xEvent; XNextEvent(display, &xEvent); translateXMessage(xEvent); } EventQueue events; std::swap(events, event_queue); return events; } void* NativeWindowX11::getNativeWindowHandle() const { return (void*)xwindow; } Point NativeWindowX11::translateToScreen(const Point& point) { ::Window child_window; Point p; XTranslateCoordinates(display, xwindow, DefaultRootWindow(display), point.x, point.y, &p.x, &p.y, &child_window); return p; } void NativeWindowX11::translateXMessage(XEvent& xevent) { switch(xevent.type) { case MotionNotify: //DEBUG(x11, "MotionNotify"); { auto mouseMoveEvent = std::make_shared(); mouseMoveEvent->x = xevent.xmotion.x; mouseMoveEvent->y = xevent.xmotion.y; event_queue.push_back(mouseMoveEvent); } break; case Expose: //DEBUG(x11, "Expose"); if(xevent.xexpose.count == 0) { auto repaintEvent = std::make_shared(); repaintEvent->x = xevent.xexpose.x; repaintEvent->y = xevent.xexpose.y; repaintEvent->width = xevent.xexpose.width; repaintEvent->height = xevent.xexpose.height; event_queue.push_back(repaintEvent); if(image) { // Redraw the entire window. Rect rect{0, 0, window.wpixbuf.width, window.wpixbuf.height}; redraw(rect); } } break; case ConfigureNotify: //DEBUG(x11, "ConfigureNotify"); // The parent window size changed, reflect the new size in our own window. if(xevent.xconfigure.window == parent_window) { resize(xevent.xconfigure.width, xevent.xconfigure.height); return; } { if((window.width() != (std::size_t)xevent.xconfigure.width) || (window.height() != (std::size_t)xevent.xconfigure.height)) { auto resizeEvent = std::make_shared(); resizeEvent->width = xevent.xconfigure.width; resizeEvent->height = xevent.xconfigure.height; event_queue.push_back(resizeEvent); } if((window.x() != xevent.xconfigure.x) || (window.y() != xevent.xconfigure.y)) { auto moveEvent = std::make_shared(); moveEvent->x = xevent.xconfigure.x; moveEvent->y = xevent.xconfigure.y; event_queue.push_back(moveEvent); } } break; case ButtonPress: case ButtonRelease: //DEBUG(x11, "ButtonPress"); { if((xevent.xbutton.button == 4) || (xevent.xbutton.button == 5)) { if(xevent.type == ButtonPress) { int scroll = 1; auto scrollEvent = std::make_shared(); scrollEvent->x = xevent.xbutton.x; scrollEvent->y = xevent.xbutton.y; scrollEvent->delta = scroll * ((xevent.xbutton.button == 4) ? -1 : 1); event_queue.push_back(scrollEvent); } } else if ((xevent.xbutton.button == 6) || (xevent.xbutton.button == 7)) { // Horizontal scrolling case // FIXME Introduce horizontal scrolling event to handle this. } else { auto buttonEvent = std::make_shared(); buttonEvent->x = xevent.xbutton.x; buttonEvent->y = xevent.xbutton.y; switch(xevent.xbutton.button) { case 1: buttonEvent->button = MouseButton::left; break; case 2: buttonEvent->button = MouseButton::middle; break; case 3: buttonEvent->button = MouseButton::right; break; default: WARN(X11, "Unknown button %d, setting to MouseButton::left\n", xevent.xbutton.button); buttonEvent->button = MouseButton::left; break; } buttonEvent->direction = (xevent.type == ButtonPress) ? Direction::down : Direction::up; // This is a fix for hosts (e.g. those using JUCE) that set the // event time to '0'. if(xevent.xbutton.time == 0) { auto now = std::chrono::system_clock::now().time_since_epoch(); xevent.xbutton.time = std::chrono::duration_cast(now).count(); } buttonEvent->doubleClick = (xevent.type == ButtonPress) && ((xevent.xbutton.time - last_click) < 200); if(xevent.type == ButtonPress) { last_click = xevent.xbutton.time; } event_queue.push_back(buttonEvent); } } break; case KeyPress: case KeyRelease: //DEBUG(x11, "KeyPress"); { auto keyEvent = std::make_shared(); switch(xevent.xkey.keycode) { case 113: keyEvent->keycode = Key::left; break; case 114: keyEvent->keycode = Key::right; break; case 111: keyEvent->keycode = Key::up; break; case 116: keyEvent->keycode = Key::down; break; case 119: keyEvent->keycode = Key::deleteKey; break; case 22: keyEvent->keycode = Key::backspace; break; case 110: keyEvent->keycode = Key::home; break; case 115: keyEvent->keycode = Key::end; break; case 117: keyEvent->keycode = Key::pageDown; break; case 112: keyEvent->keycode = Key::pageUp; break; case 36: keyEvent->keycode = Key::enter; break; default: keyEvent->keycode = Key::unknown; break; } char stringBuffer[1024]; int size = XLookupString(&xevent.xkey, stringBuffer, sizeof(stringBuffer), nullptr, nullptr); if(size && keyEvent->keycode == Key::unknown) { keyEvent->keycode = Key::character; } keyEvent->text.append(stringBuffer, size); keyEvent->direction = (xevent.type == KeyPress) ? Direction::down : Direction::up; event_queue.push_back(keyEvent); } break; case ClientMessage: //DEBUG(x11, "ClientMessage"); if(((unsigned int)xevent.xclient.data.l[0] == wmDeleteMessage)) { auto closeEvent = std::make_shared(); event_queue.push_back(closeEvent); } break; case EnterNotify: //DEBUG(x11, "EnterNotify"); { auto enterEvent = std::make_shared(); enterEvent->x = xevent.xcrossing.x; enterEvent->y = xevent.xcrossing.y; event_queue.push_back(enterEvent); } break; case LeaveNotify: //DEBUG(x11, "LeaveNotify"); { auto leaveEvent = std::make_shared(); leaveEvent->x = xevent.xcrossing.x; leaveEvent->y = xevent.xcrossing.y; event_queue.push_back(leaveEvent); } break; case MapNotify: case MappingNotify: //DEBUG(x11, "EnterNotify"); // There's nothing to do here atm. break; default: WARN(X11, "Unhandled xevent.type: %d\n", xevent.type); break; } } void NativeWindowX11::allocateShmImage(std::size_t width, std::size_t height) { DEBUG(x11, "(Re)alloc XShmImage (%d, %d)", (int)width, (int)height); if(image) { deallocateShmImage(); } if(!XShmQueryExtension(display)) { ERR(x11, "XShmExtension not available"); return; } image = XShmCreateImage(display, visual, depth, ZPixmap, nullptr, &shm_info, width, height); if(image == nullptr) { ERR(x11, "XShmCreateImage failed!\n"); return; } std::size_t byte_size = image->bytes_per_line * image->height; // Allocate shm buffer int shm_id = shmget(IPC_PRIVATE, byte_size, IPC_CREAT|0777); if(shm_id == -1) { ERR(x11, "shmget failed: %s", strerror(errno)); return; } shm_info.shmid = shm_id; // Attach share memory bufer void* shm_addr = shmat(shm_id, nullptr, 0); if(reinterpret_cast(shm_addr) == -1) { ERR(x11, "shmat failed: %s", strerror(errno)); return; } shm_info.shmaddr = reinterpret_cast(shm_addr); image->data = shm_info.shmaddr; shm_info.readOnly = false; // This may trigger the X protocol error we're ready to catch: XShmAttach(display, &shm_info); XSync(display, false); // Make the shm id unavailable to others shmctl(shm_id, IPC_RMID, 0); } void NativeWindowX11::deallocateShmImage() { if(image == nullptr) { return; } XFlush(display); XShmDetach(display, &shm_info); XDestroyImage(image); image = nullptr; shmdt(shm_info.shmaddr); } void NativeWindowX11::updateImageFromBuffer(std::size_t x1, std::size_t y1, std::size_t x2, std::size_t y2) { //DEBUG(x11, "depth: %d", depth); auto width = window.wpixbuf.width; auto height = window.wpixbuf.height; // If image hasn't been allocated yet or if the image backbuffer is // too small, (re)allocate with a suitable size. if((image == nullptr) || ((int)width > image->width) || ((int)height > image->height)) { constexpr std::size_t step_size = 128; // size increments std::size_t new_width = ((width / step_size) + 1) * step_size; std::size_t new_height = ((height / step_size) + 1) * step_size; allocateShmImage(new_width, new_height); x1 = 0; y1 = 0; x2 = width; y2 = height; } auto stride = image->width; std::uint8_t* pixel_buffer = (std::uint8_t*)window.wpixbuf.buf; if(depth >= 24) // RGB 888 format { std::uint32_t* shm_addr = (std::uint32_t*)shm_info.shmaddr; for(std::size_t y = y1; y < y2; ++y) { for(std::size_t x = x1; x < x2; ++x) { const std::size_t pin = y * width + x; const std::size_t pout = y * stride + x; const std::uint8_t red = pixel_buffer[pin * 3]; const std::uint8_t green = pixel_buffer[pin * 3 + 1]; const std::uint8_t blue = pixel_buffer[pin * 3 + 2]; shm_addr[pout] = (red << 16) | (green << 8) | blue; } } } else if(depth >= 15) // RGB 565 format { std::uint16_t* shm_addr = (std::uint16_t*)shm_info.shmaddr; for(std::size_t y = y1; y < y2; ++y) { for(std::size_t x = x1; x < x2; ++x) { const std::size_t pin = y * width + x; const std::size_t pout = y * stride + x; const std::uint8_t red = pixel_buffer[pin * 3]; const std::uint8_t green = pixel_buffer[pin * 3 + 1]; const std::uint8_t blue = pixel_buffer[pin * 3 + 2]; shm_addr[pout] = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3); } } } } } // GUI:: drumgizmo-0.9.18.1/plugingui/painter.h0000644000076400007640000000557613515375734014566 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * painter.h * * Wed Oct 12 19:48:45 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "colour.h" #include "pixelbuffer.h" namespace GUI { class Font; class Drawable; class Image; class Canvas; class Painter { public: Painter(Canvas& canvas); ~Painter(); void setColour(const Colour& colour); void drawLine(int x1, int y1, int x2, int y2); void drawText(int x, int y, const Font& font, const std::string& text, bool nocolour = false); void drawRectangle(int x1, int y1, int x2, int y2); void drawFilledRectangle(int x1, int y1, int x2, int y2); void drawPoint(int x, int y); void drawCircle(int x, int y, double r); void drawFilledCircle(int x, int y, int r); void drawImage(int x, int y, const Drawable& image); void drawRestrictedImage(int x0, int y0, Colour const& colour, const Drawable& image); void drawImageStretched(int x, int y, const Drawable& image, int width, int height); template void draw(Iterator begin, Iterator end, int x_offset, int y_offset, Colour const& colour); typedef struct { Image* topLeft; Image* top; Image* topRight; Image* left; Image* right; Image* bottomLeft; Image* bottom; Image* bottomRight; Image* center; } Box; void drawBox(int x, int y, const Box& box, int width, int height); typedef struct { Image* left; Image* right; Image* center; } Bar; void drawBar(int x, int y, const Bar& bar, int width, int height); void clear(); private: bool has_restriction{false}; Colour restriction_colour; PixelBufferAlpha& pixbuf; Colour colour; }; template void Painter::draw(Iterator begin, Iterator end, int x_offset, int y_offset, Colour const& colour) { for (auto it = begin; it != end; ++it) { pixbuf.addPixel(x_offset + it->x, y_offset + it->y, colour); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/toggle.cc0000644000076400007640000000412613340266454014523 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * toggle.cc * * Wed Mar 22 22:58:57 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "toggle.h" namespace GUI { Toggle::Toggle(Widget* parent) : Widget(parent) { } void Toggle::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->direction == Direction::up) || buttonEvent->doubleClick) { buttonDown = false; clicked = false; if(inCheckbox) { internalSetChecked(!state); } } else { buttonDown = true; clicked = true; } redraw(); } void Toggle::setText(std::string text) { _text = text; redraw(); } bool Toggle::checked() { return state; } void Toggle::setChecked(bool c) { internalSetChecked(c); } void Toggle::mouseLeaveEvent() { inCheckbox = false; if(buttonDown) { clicked = false; redraw(); } } void Toggle::mouseEnterEvent() { inCheckbox = true; if(buttonDown) { clicked = true; redraw(); } } void Toggle::internalSetChecked(bool checked) { if(state == checked) { return; } state = checked; stateChangedNotifier(state); redraw(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/utf8.h0000644000076400007640000000307213340266454013771 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * utf8.h * * Tue Feb 27 19:18:23 CET 2007 * Copyright 2006 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include // Class to convert utf8 to latin1 and the other way around. class UTF8 { public: UTF8(); // Encode a string from latin1 to UTF-8. std::string fromLatin1(std::string const& s); // Decode a string from UTF-8 to latin1. std::string toLatin1(std::string const& s); private: std::unordered_map map_encode; std::unordered_map map_decode; }; drumgizmo-0.9.18.1/plugingui/resource.cc0000644000076400007640000000741713544125501015070 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource.cc * * Sun Mar 17 19:38:04 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "resource.h" #include #include #include #include #if DG_PLATFORM != DG_PLATFORM_WINDOWS #include #include #include #endif // rcgen generated file containing rc_data declaration. #include "resource_data.h" namespace GUI { // TODO: Replace with std::filesystem::is_regular_file once we update the // compiler to require C++17 static bool pathIsFile(const std::string& path) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS return (GetFileAttributesA(path.data()) & FILE_ATTRIBUTE_DIRECTORY) == 0; #else struct stat s; if(stat(path.data(), &s) != 0) { return false; // error } return (s.st_mode & S_IFREG) != 0; // s.st_mode & S_IFDIR => dir #endif } // Internal resources start with a colon. static bool nameIsInternal(const std::string& name) { return name.size() && (name[0] == ':'); } Resource::Resource(const std::string& name) { isValid = false; if(nameIsInternal(name)) { // Use internal resource: // Find internal resource in rc_data. const rc_data_t* p = rc_data; while(p->name) // last entry in rc_data has the name := "" { if(name == p->name) { internalData = p->data; internalSize = p->size; break; } ++p; } // We did not find the named resource. if(internalData == nullptr) { ERR(rc, "Could not find '%s'\n", name.c_str()); return; } isInternal = true; } else { if(!pathIsFile(name)) { return; } // Read from file: std::FILE *fp = std::fopen(name.data(), "rb"); if(!fp) { return; } // Get the file size if(std::fseek(fp, 0, SEEK_END) == -1) { std::fclose(fp); return; } long filesize = std::ftell(fp); // Apparently fseek doesn't fail if fp points to a directory that has been // opened (which doesn't fail either!!) and ftell will then fail by either // returning -1 or LONG_MAX if(filesize == -1L || filesize == LONG_MAX) { std::fclose(fp); return; } // Reserve space in the string for the data. externalData.reserve(filesize); // Rewind and read... std::rewind(fp); char buffer[32]; while(!std::feof(fp)) { size_t size = std::fread(buffer, 1, sizeof(buffer), fp); externalData.append(buffer, size); } std::fclose(fp); isInternal = false; } isValid = true; } const char *Resource::data() { if(isValid == false) { return nullptr; } if(isInternal) { return internalData; } else { return externalData.data(); } } size_t Resource::size() { if(isValid == false) { return 0; } if(isInternal) { return internalSize; } else { return externalData.length(); } } bool Resource::valid() { return isValid; } } // GUI:: drumgizmo-0.9.18.1/plugingui/slider.h0000644000076400007640000001030013340266454014355 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * slider.h * * Sat Nov 26 18:10:22 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "texture.h" #include "texturedbox.h" #include "widget.h" namespace GUI { class Slider : public Widget { public: Slider(Widget* parent); virtual ~Slider() = default; // From Widget: bool catchMouse() override { return true; } bool isFocusable() override { return true; } void setValue(float new_value); float value() const; enum class Colour { Green, Red, Blue, Yellow, Purple, Grey }; // Changes the colour of the inner bar void setColour(Colour colour); void setEnabled(bool enabled); Notifier<> clickNotifier; Notifier valueChangedNotifier; // (float value) protected: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; bool enabled = true;; private: enum class State { up, down }; float current_value; float maximum; float minimum; State state; TexturedBox bar{getImageCache(), ":resources/slider.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 1, 7 // dy1, dy2, dy3 }; Texture button{ getImageCache(), ":resources/slider.png", 15, 0, // atlas offset (x, y) 15, 15 // width, height }; TexturedBox inner_bar_green{getImageCache(), ":resources/slider.png", 30, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_red{getImageCache(), ":resources/slider.png", 30, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_blue{getImageCache(), ":resources/slider.png", 30, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_yellow{getImageCache(), ":resources/slider.png", 35, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_purple{getImageCache(), ":resources/slider.png", 35, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_grey{getImageCache(), ":resources/slider.png", 35, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_turquoise{getImageCache(), ":resources/slider.png", 40, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_orange{getImageCache(), ":resources/slider.png", 40, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_light_grey{getImageCache(), ":resources/slider.png", 40, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; // This points to the inner_bar_* of the current color. // It should never be a nullptr! TexturedBox* inner_bar{&inner_bar_blue}; TexturedBox* active_inner_bar = inner_bar; std::size_t bar_boundary{5}; std::size_t button_offset{7}; std::size_t getControlWidth() const; void recomputeCurrentValue(float x); }; } // GUI:: drumgizmo-0.9.18.1/plugingui/scrollbar.cc0000644000076400007640000001030313340266454015217 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * scrollbar.cc * * Sun Apr 14 12:54:58 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "scrollbar.h" #include #include "painter.h" namespace GUI { ScrollBar::ScrollBar(Widget *parent) : Widget(parent) { } void ScrollBar::setRange(int r) { rangeValue = r; setValue(value()); redraw(); } int ScrollBar::range() { return rangeValue; } void ScrollBar::setMaximum(int m) { maxValue = m; if(maxValue < rangeValue) { rangeValue = maxValue; } setValue(value()); redraw(); } int ScrollBar::maximum() { return maxValue; } void ScrollBar::addValue(int delta) { setValue(value() + delta); } void ScrollBar::setValue(int value) { if(value > (maxValue - rangeValue)) { value = maxValue - rangeValue; } if(value < 0) { value = 0; } if(currentValue == value) { return; } currentValue = value; valueChangeNotifier(value); redraw(); } int ScrollBar::value() { return currentValue; } //! Draw an up/down arrow at (x,y) with the bounding box size (w,h) //! If h is negative the arrow will point down, if positive it will point up. static void drawArrow(Painter &p, int x, int y, int w, int h) { if(h < 0) { y -= h; } p.drawLine(x, y, x + (w / 2), y + h); p.drawLine(x + (w / 2), y + h, x + w, y); ++y; p.drawLine(x, y, x + (w / 2), y + h); p.drawLine(x + (w / 2), y + h, x + w, y); } void ScrollBar::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); p.drawImageStretched(0, 0, bg_img, width(), height()); p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); if(!maxValue) { return; } { int h = height() - 2 * width() - 3; int offset = width() + 2; int y_val1 = (currentValue * h) / maxValue; int y_val2 = ((currentValue + rangeValue) * h) / maxValue - 1; p.drawFilledRectangle(2, y_val1 + offset, width() - 1, y_val2 + offset); } p.drawLine(0, 0, 0, height()); drawArrow(p, width()/4, width()/4, width()/2, -1 * (width()/3)); p.drawLine(0, width(), width(), width()); drawArrow(p, width()/4, height() - width() + width()/4, width()/2, width()/3); p.drawLine(0, height() - width(), width(), height() - width()); } void ScrollBar::scrollEvent(ScrollEvent* scrollEvent) { setValue(value() + scrollEvent->delta); } void ScrollBar::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(!dragging) { return; } float delta = yOffset - mouseMoveEvent->y; int h = height() - 2 * width() - 3; delta /= (float)h / (float)maxValue; int newval = valueOffset - delta; if(newval != value()) { setValue(newval); } } void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->y < (int)width()) && buttonEvent->y > 0) { if(buttonEvent->direction == Direction::down) { addValue(-1); } return; } if((buttonEvent->y > ((int)height() - (int)width())) && (buttonEvent->y < (int)height())) { if(buttonEvent->direction == Direction::down) { addValue(1); } return; } if(buttonEvent->direction == Direction::down) { yOffset = buttonEvent->y; valueOffset = value(); } dragging = (buttonEvent->direction == Direction::down); } } // GUI:: drumgizmo-0.9.18.1/plugingui/resamplingframecontent.cc0000644000076400007640000000531113331526613020002 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * resamplingframecontent.cc * * Fri May 5 23:43:28 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "resamplingframecontent.h" #include namespace GUI { ResamplingframeContent::ResamplingframeContent( Widget* parent, SettingsNotifier& settings_notifier) : Widget(parent) , settings_notifier(settings_notifier) { CONNECT(this, settings_notifier.drumkit_samplerate, this, &ResamplingframeContent::updateDrumkitSamplerate); CONNECT(this, settings_notifier.samplerate, this, &ResamplingframeContent::updateSessionSamplerate); CONNECT(this, settings_notifier.resamplig_recommended, this, &ResamplingframeContent::updateResamplingRecommended); text_field.move(0, 0); text_field.setReadOnly(true); updateContent(); text_field.show(); } void ResamplingframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_field.resize(width, height); } void ResamplingframeContent::updateContent() { text_field.setText( "Session samplerate: " + session_samplerate + "\n" "Drumkit samplerate: " + drumkit_samplerate + "\n" "Resampling recommended: " + resamplig_recommended + "\n" ); } void ResamplingframeContent::updateDrumkitSamplerate(std::size_t drumkit_samplerate) { this->drumkit_samplerate = drumkit_samplerate == 0 ? "" : std::to_string(drumkit_samplerate); updateContent(); } void ResamplingframeContent::updateSessionSamplerate(double samplerate) { this->session_samplerate = std::to_string((std::size_t)samplerate); updateContent(); } void ResamplingframeContent::updateResamplingRecommended(bool resamplig_recommended) { this->resamplig_recommended = resamplig_recommended ? "Yes" : "No"; updateContent(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/listboxbasic.h0000644000076400007640000000472613331526613015574 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxbasic.h * * Thu Apr 4 20:28:10 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "widget.h" #include "font.h" #include "painter.h" #include "scrollbar.h" namespace GUI { class ListBoxBasic : public Widget { public: class Item { public: std::string name; std::string value; }; ListBoxBasic(Widget *parent); virtual ~ListBoxBasic(); void addItem(const std::string& name, const std::string& value); void addItems(const std::vector& items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); void clearSelectedValue(); Notifier<> selectionNotifier; Notifier<> clickNotifier; Notifier<> valueChangedNotifier; // From Widget: virtual void resize(std::size_t width, std::size_t height) override; protected: void onScrollBarValueChange(int value); // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; ScrollBar scroll; Texture bg_img{getImageCache(), ":resources/widget.png", 7, 7, 1, 63}; void setSelection(int index); std::vector items; int selected; int marked; Font font; int padding; int btn_size; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/imagecache.cc0000644000076400007640000000517313331526613015307 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * imagecache.cc * * Thu Jun 2 17:12:05 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "imagecache.h" #include #include "image.h" namespace GUI { ScopedImageBorrower::ScopedImageBorrower(ImageCache& imageCache, const std::string& filename) : imageCache(imageCache) , filename(filename) , image(imageCache.borrow(filename)) { } ScopedImageBorrower::ScopedImageBorrower(ScopedImageBorrower&& other) : imageCache(other.imageCache) , filename(other.filename) , image(other.image) { other.filename.clear(); } ScopedImageBorrower::~ScopedImageBorrower() { if(!filename.empty()) { imageCache.giveBack(filename); } } Image& ScopedImageBorrower::operator*() { return image; } Image& ScopedImageBorrower::operator()() { return image; } ScopedImageBorrower ImageCache::getImage(const std::string& filename) { return ScopedImageBorrower(*this, filename); } Image& ImageCache::borrow(const std::string& filename) { auto cacheIterator = imageCache.find(filename); if(cacheIterator == imageCache.end()) { Image image(filename); auto insertValue = imageCache.emplace(filename, std::make_pair(0, std::move(image))); cacheIterator = insertValue.first; } auto& cacheEntry = cacheIterator->second; ++cacheEntry.first; return cacheEntry.second; } void ImageCache::giveBack(const std::string& filename) { auto cacheIterator = imageCache.find(filename); assert(cacheIterator != imageCache.end()); auto& cacheEntry = cacheIterator->second; --cacheEntry.first; if(cacheEntry.first == 0) { imageCache.erase(cacheIterator); } } } // GUI:: drumgizmo-0.9.18.1/plugingui/listboxthin.cc0000644000076400007640000000445213443403213015601 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxthin.cc * * Sun Apr 7 19:39:36 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listboxthin.h" #include "painter.h" #include "font.h" namespace GUI { ListBoxThin::ListBoxThin(Widget *parent) : Widget(parent) , selectionNotifier(basic.selectionNotifier) , clickNotifier(basic.clickNotifier) , valueChangedNotifier(basic.valueChangedNotifier) , basic(this) { basic.move(1, 1); } ListBoxThin::~ListBoxThin() { } void ListBoxThin::addItem(std::string name, std::string value) { basic.addItem(name, value); } void ListBoxThin::addItems(std::vector &items) { basic.addItems(items); } void ListBoxThin::clear() { basic.clear(); } bool ListBoxThin::selectItem(int index) { return basic.selectItem(index); } std::string ListBoxThin::selectedName() { return basic.selectedName(); } std::string ListBoxThin::selectedValue() { return basic.selectedValue(); } void ListBoxThin::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w,h); p.drawImage(0, 0, box); } void ListBoxThin::resize(std::size_t height, std::size_t width) { Widget::resize(width, height); basic.resize(width - (1 + 1), height - (1 + 1)); } } // GUI:: drumgizmo-0.9.18.1/plugingui/progressbar.cc0000644000076400007640000000443713331526613015574 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * progressbar.cc * * Fri Mar 22 22:07:57 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "progressbar.h" namespace GUI { ProgressBar::ProgressBar(Widget *parent) : Widget(parent) { } ProgressBar::~ProgressBar() { } void ProgressBar::setState(ProgressBarState state) { if(this->state != state) { this->state = state; redraw(); } } void ProgressBar::setTotal(std::size_t total) { if(this->total != total) { this->total = total; redraw(); } } void ProgressBar::setValue(std::size_t value) { if(this->value != value) { this->value = value; redraw(); } } void ProgressBar::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); float progress = 0.0f; if(total != 0) { progress = (float)value / (float)total; } int brd = 4; int val = (width() - (2 * brd)) * progress; bar_bg.setSize(width(), height()); p.drawImage(0, 0, bar_bg); switch(state) { case ProgressBarState::Red: bar_red.setSize(val, height()); p.drawImage(brd, 0, bar_red); break; case ProgressBarState::Green: bar_green.setSize(val, height()); p.drawImage(brd, 0, bar_green); break; case ProgressBarState::Blue: bar_blue.setSize(val, height()); p.drawImage(brd, 0, bar_blue); break; case ProgressBarState::Off: return; } } } // GUI:: drumgizmo-0.9.18.1/plugingui/tabwidget.h0000644000076400007640000000470413511117026015046 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabwidget.h * * Thu Nov 24 17:46:22 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "tabbutton.h" #include "stackedwidget.h" #include "texture.h" namespace GUI { class TabWidget : public Widget { public: TabWidget(Widget *parent); //! Add new tab to the tab widget. //! \param title The title to display on the tab button. //! \param widget The widget to show in the tab. //! \returns The TabID of the newly added tab. TabID addTab(const std::string& title, Widget* widget); std::size_t getBarHeight() const; void setTabWidth(std::size_t width); std::size_t getTabWidth() const; void setVisible(TabID tab_id, bool visible); private: //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: void relayout(); //! Switch to the next tab if delta is > 0 or previous tab if delta is <= 0. void rotateTab(float delta); void switchTab(Widget* tabWidget); void setActiveButtons(Widget* current_widget); const TabButton* getButtonFromWidget(const Widget* tab_widget); std::list buttons; StackedWidget stack; TexturedBox topbar{getImageCache(), ":resources/topbar.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 17, 1, 1}; // dy1, dy2, dy3 Texture toplogo{getImageCache(), ":resources/toplogo.png", 0, 0, // atlas offset (x, y) 95, 17}; // width, height std::size_t tab_width{64}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/drawable.h0000644000076400007640000000263413331526613014663 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drawable.h * * Sat Jun 4 21:39:38 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Colour; class Drawable { public: virtual ~Drawable() = default; virtual std::size_t width() const = 0; virtual std::size_t height() const = 0; virtual const Colour& getPixel(std::size_t x, std::size_t y) const = 0; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/bleedcontrolframecontent.h0000644000076400007640000000350013340266453020160 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bleedcontrolframecontent.h * * Wed May 24 14:40:16 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "label.h" #include "slider.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class BleedcontrolframeContent : public Widget { public: BleedcontrolframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void setEnabled(bool enabled); private: void bleedSettingsValueChanged(float value); void bleedValueChanged(float value); bool enabled = true; Label label_text{this}; Label label_value{this}; Slider slider{this}; int slider_width; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: #pragma once drumgizmo-0.9.18.1/plugingui/helpbutton.cc0000644000076400007640000000333713511117026015417 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * helpbutton.cc * * Wed May 8 17:10:08 CEST 2019 * Copyright 2019 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "helpbutton.h" #include "painter.h" #include namespace GUI { HelpButton::HelpButton(Widget* parent) : ButtonBase(parent) , tip(this) { CONNECT(this, clickNotifier, this, &HelpButton::showHelpText); tip.hide(); } void HelpButton::setHelpText(const std::string& help_text) { tip.setText(help_text); } void HelpButton::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); bool state = true; // enabled and on if(state) { if(button_state == ButtonBase::State::Down) { p.drawImage(0, 0, pushed); } else { p.drawImage(0, 0, normal); } return; } } void HelpButton::showHelpText() { tip.show(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/label.h0000644000076400007640000000347313331526613014163 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * label.h * * Sun Oct 9 13:02:17 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "font.h" #include #include namespace GUI { enum class TextAlignment { left, center, right, }; class Label : public Widget { public: Label(Widget *parent); virtual ~Label() = default; void setText(const std::string& text); void setAlignment(TextAlignment alignment); void setColour(Colour colour); void resetColour(); void resizeToText(); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: std::string _text; Font font{":resources/fontemboss.png"}; TextAlignment alignment{TextAlignment::left}; int border{0}; // optional colour std::unique_ptr colour; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/sampleselectionframecontent.h0000644000076400007640000000410213551153106020664 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * sampleselectionframecontent.h * * Sat May 11 15:29:25 CEST 2019 * Copyright 2019 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "knob.h" #include "labeledcontrol.h" #include "layout.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class SampleselectionframeContent : public Widget { public: SampleselectionframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); private: void fCloseKnobValueChanged(float value); void fDiverseKnobValueChanged(float value); void fRandomKnobValueChanged(float value); void fCloseSettingsValueChanged(float value); void fDiverseSettingsValueChanged(float value); void fRandomSettingsValueChanged(float value); GridLayout layout{this, 3, 1}; LabeledControl f_close{this, "pClose"}; LabeledControl f_diverse{this, "pDiverse"}; LabeledControl f_random{this, "pRandom"}; Knob f_close_knob{&f_close}; Knob f_diverse_knob{&f_diverse}; Knob f_random_knob{&f_random}; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/texture.h0000644000076400007640000000347313153056417014606 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texture.h * * Sat Jun 4 21:18:11 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "imagecache.h" #include "image.h" namespace GUI { class Texture : public ScopedImageBorrower , public Drawable { public: Texture(ImageCache& image_cache, const std::string& filename, std::size_t x = 0, std::size_t y = 0, std::size_t width = std::numeric_limits::max(), std::size_t height = std::numeric_limits::max()); size_t width() const override; size_t height() const override; const Colour& getPixel(size_t x, size_t y) const override; private: std::size_t _x; std::size_t _y; std::size_t _width; std::size_t _height; Colour outOfRange{0.0f, 0.0f, 0.0f, 0.0f}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/listbox.h0000644000076400007640000000412013331526613014556 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listbox.h * * Mon Feb 25 21:21:40 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" #include "painter.h" #include "listboxbasic.h" #include "texturedbox.h" namespace GUI { class ListBox : public Widget { public: ListBox(Widget *parent); virtual ~ListBox(); void addItem(std::string name, std::string value); void addItems(std::vector &items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); void clearSelectedValue(); // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void resize(std::size_t width, std::size_t height) override; // Forwarded notifiers from ListBoxBasic::basic Notifier<>& selectionNotifier; Notifier<>& clickNotifier; Notifier<>& valueChangedNotifier; private: ListBoxBasic basic; TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 }; } // GUI:: drumgizmo-0.9.18.1/plugingui/led.h0000644000076400007640000000267113153056416013650 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * led.h * * Sat Oct 15 19:12:33 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" namespace GUI { class LED : public Widget { public: typedef enum { Red, Green, Blue, Off } state_t; LED(Widget *parent); void setState(state_t state); protected: // From Widget: void repaintEvent(RepaintEvent* repaintEvent) override; private: state_t state; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/font.cc0000644000076400007640000000645713340266453014220 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * font.cc * * Sat Nov 12 11:13:41 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "font.h" #include namespace GUI { Font::Font(const std::string& fontfile) : img_font(fontfile) { std::size_t px = 0; std::size_t c; for(c = 0; c < characters.size() && px < img_font.width(); ++c) { auto& character = characters[c]; character.offset = px + 1; if(c > 0) { assert(character.offset >= characters[c - 1].offset); characters[c - 1].width = character.offset - characters[c - 1].offset; if(characters[c].offset != characters[c - 1].offset) { --characters[c - 1].width; } } ++px; while(px < img_font.width()) { auto& pixel = img_font.getPixel(px, 0); // Find next purple pixel in top row: if((pixel.red() == 1.0f) && (pixel.green() == 0.0f) && (pixel.blue() == 1.0f) && (pixel.alpha() == 1.0f)) { break; } ++px; } characters[c] = character; } --c; assert(characters[c].offset >= characters[c - 1].offset); characters[c - 1].width = characters[c].offset - characters[c - 1].offset; if(characters[c].offset != characters[c - 1].offset) { --characters[c - 1].width; } } size_t Font::textWidth(const std::string& text) const { size_t len = 0; for(unsigned char cha : text) { auto& character = characters[cha]; len += character.width + spacing + character.post_bias; } return len; } size_t Font::textHeight(const std::string& text) const { return img_font.height(); } void Font::setLetterSpacing(int letterSpacing) { spacing = letterSpacing; } int Font::letterSpacing() const { return spacing; } PixelBufferAlpha *Font::render(const std::string& text) const { PixelBufferAlpha *pb = new PixelBufferAlpha(textWidth(text), textHeight(text)); int x_offset = 0; for(std::size_t i = 0; i < text.length(); ++i) { unsigned char cha = text[i]; auto& character = characters.at(cha); for(size_t x = 0; x < character.width; ++x) { for(size_t y = 0; y < img_font.height(); ++y) { auto& c = img_font.getPixel(x + character.offset, y); pb->setPixel(x + x_offset + character.pre_bias, y, c.red() * 255, c.green() * 255, c.blue() * 255, c.alpha() * 255); } } x_offset += character.width + spacing + character.post_bias; } return pb; } } // GUI:: drumgizmo-0.9.18.1/plugingui/powerbutton.h0000644000076400007640000000363513340266454015500 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * powerbutton.h * * Thu Mar 23 12:30:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "texture.h" #include "toggle.h" namespace GUI { class PowerButton : public Toggle { public: PowerButton(Widget* parent); virtual ~PowerButton() = default; void setEnabled(bool enabled); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; bool enabled = true; private: Texture on{getImageCache(), ":resources/bypass_button.png", 32, 0, 16, 16}; Texture on_clicked{getImageCache(), ":resources/bypass_button.png", 48, 0, 16, 16}; Texture off{getImageCache(), ":resources/bypass_button.png", 0, 0, 16, 16}; Texture off_clicked{getImageCache(), ":resources/bypass_button.png", 16, 0, 16, 16}; Texture disabled{getImageCache(), ":resources/bypass_button.png", 64, 0, 16, 16}; Texture disabled_clicked{getImageCache(), ":resources/bypass_button.png", 80, 0, 16, 16}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/texturedbox.h0000644000076400007640000001016313331526614015454 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texturedbox.h * * Sun Jun 5 12:22:14 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "drawable.h" #include "imagecache.h" #include "texture.h" namespace GUI { class TexturedBox : public Drawable { public: //! Draw a box from 9 image segments nested inside the same image. //! An image says more than a thousand words: //! .----------------------------------------. //! | (x0, y0) | //! | \ dx1 dx2 dx3 | //! | .-----+-----------+-----. \ | //! | dy1 | A | <--B--> | C | | | //! | +-----+-----------+-----+ | | //! | | /|\ | /|\ | /|\ | | h | //! | | | | | | | | | e | //! | dy2 | D | <--E--> | F | > i | //! | | | | | | | | | g | //! | | \|/ | \|/ | \|/ | | h | //! | +-----+-----------+-----+ | t | //! | dy3 | G | <--H--> | I | | | //! | `-----+-----------+-----` / | //! | | //! | \___________ ___________/ | //! | V | //! | width | //! `----------------------------------------` //! //! \param image_cache A reference to the image cache object. //! \param filename The filename of the texture image to use. //! \param (x0, y0) is coordinate of the upper left corner of the A segment. //! \param (width, height) is the total rendered size of the Box. //! \param dx1 is the width of the A, C and F segments. //! \param dx2 is the width of the B, E and H segments. //! \param dx3 is the width of the C, F and I segments. //! \param dy1 is the height of the A, B and C segments. //! \param dy2 is the height of the D, E and F segments. //! \param dy3 is the height of the G, G and I segments. //! //! Segments A, C, G and I are drawn with no stretch. //! Segments B and H are stretched horizontally to fill the //! gaps between A, C and G, I so that resulting width is 'width' //! Segments D and F are stretched vertically to fill the //! gaps between A, G and C, I so that resulting height is 'height' //! Segment E will be stretched both horizontally and vertically //! to fill the inner space between B, H and D, F. TexturedBox(ImageCache& image_cache, const std::string& filename, std::size_t x0, std::size_t y0, std::size_t dx1, std::size_t dx2, std::size_t dx3, std::size_t dy1, std::size_t dy2, std::size_t dy3); // From Drawable: std::size_t width() const override; std::size_t height() const override; void setSize(std::size_t width, std::size_t height); const Colour& getPixel(std::size_t x, std::size_t y) const override; private: Texture seg_a; Texture seg_b; Texture seg_c; Texture seg_d; Texture seg_e; Texture seg_f; Texture seg_g; Texture seg_h; Texture seg_i; std::size_t dx1; std::size_t dx2; std::size_t dx3; std::size_t dy1; std::size_t dy2; std::size_t dy3; std::size_t _width{100}; std::size_t _height{100}; Colour outOfRange{0.0f, 0.0f, 0.0f, 0.0f}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/resamplingframecontent.h0000644000076400007640000000343513331526613017651 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * resamplingframecontent.h * * Fri May 5 23:43:28 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "textedit.h" class SettingsNotifier; namespace GUI { class ResamplingframeContent : public Widget { public: ResamplingframeContent(Widget* parent, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void updateContent(); void updateDrumkitSamplerate(std::size_t drumkit_samplerate); void updateSessionSamplerate(double samplerate); void updateResamplingRecommended(bool resamplig_recommended); private: TextEdit text_field{this}; SettingsNotifier& settings_notifier; std::string drumkit_samplerate; std::string session_samplerate; std::string resamplig_recommended; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/pluginconfig.cc0000644000076400007640000000312613511117026015713 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginconfig.cc * * Tue Jun 3 13:54:05 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginconfig.h" #include #define CONFIGFILENAME "plugingui.conf" namespace GUI { Config::Config() : ConfigFile(CONFIGFILENAME) { load(); } Config::~Config() { save(); } bool Config::load() { defaultKitPath.clear(); if(!ConfigFile::load()) { return false; } defaultKitPath = getValue("defaultKitPath"); return true; } bool Config::save() { setValue("defaultKitPath", defaultKitPath); return ConfigFile::save(); } } // GUI:: drumgizmo-0.9.18.1/plugingui/textedit.h0000644000076400007640000000441313340266454014735 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * textedit.h * * Tue Oct 21 11:23:58 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "font.h" #include "notifier.h" #include "scrollbar.h" #include "texturedbox.h" #include "widget.h" namespace GUI { class TextEdit : public Widget { public: TextEdit(Widget* parent); virtual ~TextEdit(); // From Widget bool isFocusable() override { return true; } void resize(std::size_t width, std::size_t height) override; std::string getText(); void setText(const std::string& text); void setReadOnly(bool readonly); bool readOnly(); void preprocessText(); Notifier<> textChangedNotifier; protected: // From Widget virtual void repaintEvent(RepaintEvent* repaintEvent) override; void scrollEvent(ScrollEvent* scrollEvent) override; private: void scrolled(int value); TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 static constexpr int x_border{10}; static constexpr int y_border{8}; ScrollBar scroll; Font font; std::string text; bool readonly{true}; bool needs_preprocessing{false}; std::vector preprocessed_text; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/eventhandler.cc0000644000076400007640000001453513546152171015724 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * eventhandler.cc * * Sun Oct 9 18:58:29 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "eventhandler.h" #include "window.h" #include "painter.h" #include "dialog.h" namespace GUI { EventHandler::EventHandler(NativeWindow& nativeWindow, Window& window) : window(window) , nativeWindow(nativeWindow) , lastWasDoubleClick(false) {} bool EventHandler::hasEvent() { return !events.empty(); } bool EventHandler::queryNextEventType(EventType type) { return !events.empty() && (events.front()->type() == type); } std::shared_ptr EventHandler::getNextEvent() { if(events.empty()) { return nullptr; } auto event = events.front(); events.pop_front(); return event; } void EventHandler::processEvents() { bool block_interaction{false}; for(auto dialog : dialogs) { // Check if the dialog nativewindow (not the contained widget) is visible if(dialog->native->visible()) { block_interaction |= dialog->isModal(); dialog->eventHandler()->processEvents(); } } events = nativeWindow.getEvents(); while(hasEvent()) { auto event = getNextEvent(); if(event == nullptr) { continue; } switch(event->type()) { case EventType::repaint: break; case EventType::move: { auto moveEvent = static_cast(event.get()); window.moved(moveEvent->x, moveEvent->y); } break; case EventType::resize: { auto resizeEvent = static_cast(event.get()); if((resizeEvent->width != window.width()) || (resizeEvent->height != window.height())) { window.resized(resizeEvent->width, resizeEvent->height); } } break; case EventType::mouseMove: { // Skip all consecutive mouse move events and handle only the last one. while(queryNextEventType(EventType::mouseMove)) { event = getNextEvent(); } auto moveEvent = static_cast(event.get()); auto widget = window.find(moveEvent->x, moveEvent->y); auto oldwidget = window.mouseFocus(); if(widget != oldwidget) { // Send focus leave to oldwidget if(oldwidget) { oldwidget->mouseLeaveEvent(); } // Send focus enter to widget if(widget) { widget->mouseEnterEvent(); } window.setMouseFocus(widget); } if(window.buttonDownFocus()) { auto widget = window.buttonDownFocus(); moveEvent->x -= widget->translateToWindowX(); moveEvent->y -= widget->translateToWindowY(); window.buttonDownFocus()->mouseMoveEvent(moveEvent); break; } if(widget) { moveEvent->x -= widget->translateToWindowX(); moveEvent->y -= widget->translateToWindowY(); widget->mouseMoveEvent(moveEvent); } } break; case EventType::button: { if(block_interaction) { continue; } auto buttonEvent = static_cast(event.get()); if(lastWasDoubleClick && (buttonEvent->direction == Direction::down)) { lastWasDoubleClick = false; continue; } lastWasDoubleClick = buttonEvent->doubleClick; auto widget = window.find(buttonEvent->x, buttonEvent->y); if(window.buttonDownFocus()) { if(buttonEvent->direction == Direction::up) { auto widget = window.buttonDownFocus(); buttonEvent->x -= widget->translateToWindowX(); buttonEvent->y -= widget->translateToWindowY(); widget->buttonEvent(buttonEvent); window.setButtonDownFocus(nullptr); break; } } if(widget) { buttonEvent->x -= widget->translateToWindowX(); buttonEvent->y -= widget->translateToWindowY(); widget->buttonEvent(buttonEvent); if((buttonEvent->direction == Direction::down) && widget->catchMouse()) { window.setButtonDownFocus(widget); } if(widget->isFocusable()) { window.setKeyboardFocus(widget); } } } break; case EventType::scroll: { if(block_interaction) { continue; } auto scrollEvent = static_cast(event.get()); auto widget = window.find(scrollEvent->x, scrollEvent->y); if(widget) { scrollEvent->x -= widget->translateToWindowX(); scrollEvent->y -= widget->translateToWindowY(); widget->scrollEvent(scrollEvent); } } break; case EventType::key: { if(block_interaction) { continue; } // TODO: Filter out multiple arrow events. auto keyEvent = static_cast(event.get()); if(window.keyboardFocus()) { window.keyboardFocus()->keyEvent(keyEvent); } } break; case EventType::close: if(block_interaction) { continue; } closeNotifier(); break; case EventType::mouseEnter: { auto enterEvent = static_cast(event.get()); auto widget = window.find(enterEvent->x, enterEvent->y); if(widget) { widget->mouseEnterEvent(); } } break; case EventType::mouseLeave: { auto widget = window.mouseFocus(); if(widget) { widget->mouseLeaveEvent(); } } break; } } // Probe window and children to redraw as needed. // NOTE: This method will invoke native->redraw() if a redraw is needed. window.updateBuffer(); } void EventHandler::registerDialog(Dialog* dialog) { dialogs.push_back(dialog); } void EventHandler::unregisterDialog(Dialog* dialog) { dialogs.remove(dialog); } } // GUI:: drumgizmo-0.9.18.1/plugingui/button_base.h0000644000076400007640000000364113331526613015406 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * button_base.h * * Sat Apr 15 21:45:30 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" namespace GUI { class ButtonBase : public Widget { public: ButtonBase(Widget* parent); virtual ~ButtonBase(); // From Widget: bool isFocusable() override { return true; } bool catchMouse() override { return true; } void setText(const std::string& text); void setEnabled(bool enabled); bool isEnabled() const; Notifier<> clickNotifier; protected: virtual void clicked() {} // From Widget: virtual void repaintEvent(RepaintEvent* e) override {}; virtual void buttonEvent(ButtonEvent* e) override; virtual void mouseLeaveEvent() override; virtual void mouseEnterEvent() override; bool enabled{true}; bool in_button{false}; enum class State { Up, Down }; std::string text; State draw_state{State::Up}; State button_state{State::Up}; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/texture.cc0000644000076400007640000000341713153056417014742 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texture.cc * * Sat Jun 4 21:18:11 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "texture.h" namespace GUI { Texture::Texture(ImageCache& image_cache, const std::string& filename, std::size_t x, std::size_t y, std::size_t width, std::size_t height) : ScopedImageBorrower(image_cache, filename) , _x(x) , _y(y) , _width(width>image.width()?image.width():width) , _height(height>image.height()?image.height():height) { } size_t Texture::width() const { return _width; } size_t Texture::height() const { return _height; } const Colour& Texture::getPixel(size_t x, size_t y) const { if(x > _width || y > _height) { return outOfRange; } return image.getPixel(x + _x, y + _y); } } // GUI:: drumgizmo-0.9.18.1/plugingui/texturedbox.cc0000644000076400007640000000763413331526614015623 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texturedbox.cc * * Sun Jun 5 12:22:15 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "texturedbox.h" #include namespace GUI { TexturedBox::TexturedBox(ImageCache& image_cache, const std::string& filename, std::size_t x0, std::size_t y0, std::size_t dx1, std::size_t dx2, std::size_t dx3, std::size_t dy1, std::size_t dy2, std::size_t dy3) : seg_a(image_cache, filename, x0 , y0 , dx1, dy1) , seg_b(image_cache, filename, x0 + dx1 , y0 , dx2, dy1) , seg_c(image_cache, filename, x0 + dx1 + dx2, y0 , dx3, dy1) , seg_d(image_cache, filename, x0 , y0 + dy1 , dx1, dy2) , seg_e(image_cache, filename, x0 + dx1 , y0 + dy1 , dx2, dy2) , seg_f(image_cache, filename, x0 + dx1 + dx2, y0 + dy1 , dx3, dy2) , seg_g(image_cache, filename, x0 , y0 + dy1 + dy2, dx1, dy3) , seg_h(image_cache, filename, x0 + dx1 , y0 + dy1 + dy2, dx2, dy3) , seg_i(image_cache, filename, x0 + dx1 + dx2, y0 + dy1 + dy2, dx3, dy3) , dx1(dx1) , dx2(dx2) , dx3(dx3) , dy1(dy1) , dy2(dy2) , dy3(dy3) , _width(dx1 + dx2 + dx3) , _height(dy1 + dy2 + dy3) { } std::size_t TexturedBox::width() const { return _width; } std::size_t TexturedBox::height() const { return _height; } void TexturedBox::setSize(std::size_t width, std::size_t height) { _width = width; _height = height; } const Colour& TexturedBox::getPixel(std::size_t x, std::size_t y) const { assert(x < _width); assert(y < _height); if(y < dy1) // row 1 { if(x < dx1) // col 1 { return seg_a.getPixel(x, y); } else if(x < (_width - dx3)) // col 2 { float scale = (float)(x - dx1) / (float)(_width - dx1 - dx3); assert(seg_b.width() == dx2); return seg_b.getPixel(scale * dx2, y); } else // col 3 { return seg_c.getPixel(x - (_width - dx3), y); } } else if(y < (_height - dy3)) // row 2 { if(x < dx1) // col 1 { // TODO: Apply vertical scale float scale = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_d.getPixel(x, scale * dy2); } else if(x < (_width - dx3)) // col 2 { float scale_x = (float)(x - dx1) / (float)(_width - dx1 - dx3); float scale_y = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_e.getPixel(scale_x * dx2, scale_y * dy2); } else // col 3 { float scale = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_f.getPixel(x - (_width - dx3), scale * dy2); } } else // row 3 { if(x < dx1) // col 1 { return seg_g.getPixel(x, y - (_height - dy3)); } else if(x < (_width - dx3)) // col 2 { float scale = (float)(x - dx1) / (float)(_width - dx1 - dx3); return seg_h.getPixel(scale * dx2, y - (_height - dy3)); } else // col 3 { return seg_i.getPixel(x - (_width - dx3), y - (_height - dy3)); } } return outOfRange; } } // GUI:: drumgizmo-0.9.18.1/plugingui/lodepng/0000755000076400007640000000000013554101261014427 500000000000000drumgizmo-0.9.18.1/plugingui/lodepng/lodepng.cpp0000644000076400007640000065610213077162062016523 00000000000000/* LodePNG version 20160501 Copyright (c) 2005-2016 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /* The manual and changelog are in the header file "lodepng.h" Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for C. */ #include "lodepng.h" #include #include #include #if defined(_MSC_VER) && (_MSC_VER >= 1310) /*Visual Studio: A few warning types are not desired here.*/ #pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requires too much casts*/ #pragma warning( disable : 4996 ) /*VS does not like fopen, but fopen_s is not standard C so unusable here*/ #endif /*_MSC_VER */ const char* LODEPNG_VERSION_STRING = "20160501"; /* This source file is built up in the following large parts. The code sections with the "LODEPNG_COMPILE_" #defines divide this up further in an intermixed way. -Tools for C and common code for PNG and Zlib -C Code for Zlib (huffman, deflate, ...) -C Code for PNG (file format chunks, adam7, PNG filters, color conversions, ...) -The C++ wrapper around all of the above */ /*The malloc, realloc and free functions defined here with "lodepng_" in front of the name, so that you can easily change them to others related to your platform if needed. Everything else in the code calls these. Pass -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out #define LODEPNG_COMPILE_ALLOCATORS in the header, to disable the ones here and define them in your own project's source files without needing to change lodepng source code. Don't forget to remove "static" if you copypaste them from here.*/ #ifdef LODEPNG_COMPILE_ALLOCATORS static void* lodepng_malloc(size_t size) { return malloc(size); } static void* lodepng_realloc(void* ptr, size_t new_size) { return realloc(ptr, new_size); } static void lodepng_free(void* ptr) { free(ptr); } #else /*LODEPNG_COMPILE_ALLOCATORS*/ void* lodepng_malloc(size_t size); void* lodepng_realloc(void* ptr, size_t new_size); void lodepng_free(void* ptr); #endif /*LODEPNG_COMPILE_ALLOCATORS*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // Tools for C, and common code for PNG and Zlib. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* Often in case of an error a value is assigned to a variable and then it breaks out of a loop (to go to the cleanup phase of a function). This macro does that. It makes the error handling code shorter and more readable. Example: if(!uivector_resizev(&frequencies_ll, 286, 0)) ERROR_BREAK(83); */ #define CERROR_BREAK(errorvar, code)\ {\ errorvar = code;\ break;\ } /*version of CERROR_BREAK that assumes the common case where the error variable is named "error"*/ #define ERROR_BREAK(code) CERROR_BREAK(error, code) /*Set error var to the error code, and return it.*/ #define CERROR_RETURN_ERROR(errorvar, code)\ {\ errorvar = code;\ return code;\ } /*Try the code, if it returns error, also return the error.*/ #define CERROR_TRY_RETURN(call)\ {\ unsigned error = call;\ if(error) return error;\ } /*Set error var to the error code, and return from the void function.*/ #define CERROR_RETURN(errorvar, code)\ {\ errorvar = code;\ return;\ } /* About uivector, ucvector and string: -All of them wrap dynamic arrays or text strings in a similar way. -LodePNG was originally written in C++. The vectors replace the std::vectors that were used in the C++ version. -The string tools are made to avoid problems with compilers that declare things like strncat as deprecated. -They're not used in the interface, only internally in this file as static functions. -As with many other structs in this file, the init and cleanup functions serve as ctor and dtor. */ #ifdef LODEPNG_COMPILE_ZLIB /*dynamic vector of unsigned ints*/ typedef struct uivector { unsigned* data; size_t size; /*size in number of unsigned longs*/ size_t allocsize; /*allocated size in bytes*/ } uivector; static void uivector_cleanup(void* p) { ((uivector*)p)->size = ((uivector*)p)->allocsize = 0; lodepng_free(((uivector*)p)->data); ((uivector*)p)->data = NULL; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_reserve(uivector* p, size_t allocsize) { if(allocsize > p->allocsize) { size_t newsize = (allocsize > p->allocsize * 2) ? allocsize : (allocsize * 3 / 2); void* data = lodepng_realloc(p->data, newsize); if(data) { p->allocsize = newsize; p->data = (unsigned*)data; } else return 0; /*error: not enough memory*/ } return 1; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_resize(uivector* p, size_t size) { if(!uivector_reserve(p, size * sizeof(unsigned))) return 0; p->size = size; return 1; /*success*/ } /*resize and give all new elements the value*/ static unsigned uivector_resizev(uivector* p, size_t size, unsigned value) { size_t oldsize = p->size, i; if(!uivector_resize(p, size)) return 0; for(i = oldsize; i < size; ++i) p->data[i] = value; return 1; } static void uivector_init(uivector* p) { p->data = NULL; p->size = p->allocsize = 0; } #ifdef LODEPNG_COMPILE_ENCODER /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_push_back(uivector* p, unsigned c) { if(!uivector_resize(p, p->size + 1)) return 0; p->data[p->size - 1] = c; return 1; } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ /* /////////////////////////////////////////////////////////////////////////// */ /*dynamic vector of unsigned chars*/ typedef struct ucvector { unsigned char* data; size_t size; /*used size*/ size_t allocsize; /*allocated size*/ } ucvector; /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_reserve(ucvector* p, size_t allocsize) { if(allocsize > p->allocsize) { size_t newsize = (allocsize > p->allocsize * 2) ? allocsize : (allocsize * 3 / 2); void* data = lodepng_realloc(p->data, newsize); if(data) { p->allocsize = newsize; p->data = (unsigned char*)data; } else return 0; /*error: not enough memory*/ } return 1; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_resize(ucvector* p, size_t size) { if(!ucvector_reserve(p, size * sizeof(unsigned char))) return 0; p->size = size; return 1; /*success*/ } #ifdef LODEPNG_COMPILE_PNG static void ucvector_cleanup(void* p) { ((ucvector*)p)->size = ((ucvector*)p)->allocsize = 0; lodepng_free(((ucvector*)p)->data); ((ucvector*)p)->data = NULL; } static void ucvector_init(ucvector* p) { p->data = NULL; p->size = p->allocsize = 0; } #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ZLIB /*you can both convert from vector to buffer&size and vica versa. If you use init_buffer to take over a buffer and size, it is not needed to use cleanup*/ static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size) { p->data = buffer; p->allocsize = p->size = size; } #endif /*LODEPNG_COMPILE_ZLIB*/ #if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER) /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_push_back(ucvector* p, unsigned char c) { if(!ucvector_resize(p, p->size + 1)) return 0; p->data[p->size - 1] = c; return 1; } #endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_PNG #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned string_resize(char** out, size_t size) { char* data = (char*)lodepng_realloc(*out, size + 1); if(data) { data[size] = 0; /*null termination char*/ *out = data; } return data != 0; } /*init a {char*, size_t} pair for use as string*/ static void string_init(char** out) { *out = NULL; string_resize(out, 0); } /*free the above pair again*/ static void string_cleanup(char** out) { lodepng_free(*out); *out = NULL; } static void string_set(char** out, const char* in) { size_t insize = strlen(in), i; if(string_resize(out, insize)) { for(i = 0; i != insize; ++i) { (*out)[i] = in[i]; } } } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ #endif /*LODEPNG_COMPILE_PNG*/ /* ////////////////////////////////////////////////////////////////////////// */ unsigned lodepng_read32bitInt(const unsigned char* buffer) { return (unsigned)((buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]); } #if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER) /*buffer must have at least 4 allocated bytes available*/ static void lodepng_set32bitInt(unsigned char* buffer, unsigned value) { buffer[0] = (unsigned char)((value >> 24) & 0xff); buffer[1] = (unsigned char)((value >> 16) & 0xff); buffer[2] = (unsigned char)((value >> 8) & 0xff); buffer[3] = (unsigned char)((value ) & 0xff); } #endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/ #ifdef LODEPNG_COMPILE_ENCODER static void lodepng_add32bitInt(ucvector* buffer, unsigned value) { ucvector_resize(buffer, buffer->size + 4); /*todo: give error if resize failed*/ lodepng_set32bitInt(&buffer->data[buffer->size - 4], value); } #endif /*LODEPNG_COMPILE_ENCODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / File IO / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_DISK /* returns negative value on error. This should be pure C compatible, so no fstat. */ static long lodepng_filesize(const char* filename) { FILE* file; long size; file = fopen(filename, "rb"); if(!file) return -1; if(fseek(file, 0, SEEK_END) != 0) { fclose(file); return -1; } size = ftell(file); /* It may give LONG_MAX as directory size, this is invalid for us. */ if(size == LONG_MAX) size = -1; fclose(file); return size; } /* load file into buffer that already has the correct allocated size. Returns error code.*/ static unsigned lodepng_buffer_file(unsigned char* out, size_t size, const char* filename) { FILE* file; size_t readsize; file = fopen(filename, "rb"); if(!file) return 78; readsize = fread(out, 1, size, file); fclose(file); if (readsize != size) return 78; return 0; } unsigned lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename) { long size = lodepng_filesize(filename); if (size < 0) return 78; *outsize = (size_t)size; *out = (unsigned char*)lodepng_malloc((size_t)size); if(!(*out) && size > 0) return 83; /*the above malloc failed*/ return lodepng_buffer_file(*out, (size_t)size, filename); } /*write given buffer to the file, overwriting the file, it doesn't append to it.*/ unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename) { FILE* file; file = fopen(filename, "wb" ); if(!file) return 79; fwrite((char*)buffer , 1 , buffersize, file); fclose(file); return 0; } #endif /*LODEPNG_COMPILE_DISK*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // End of common code and tools. Begin of Zlib related code. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_ENCODER /*TODO: this ignores potential out of memory errors*/ #define addBitToStream(/*size_t**/ bitpointer, /*ucvector**/ bitstream, /*unsigned char*/ bit)\ {\ /*add a new byte at the end*/\ if(((*bitpointer) & 7) == 0) ucvector_push_back(bitstream, (unsigned char)0);\ /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/\ (bitstream->data[bitstream->size - 1]) |= (bit << ((*bitpointer) & 0x7));\ ++(*bitpointer);\ } static void addBitsToStream(size_t* bitpointer, ucvector* bitstream, unsigned value, size_t nbits) { size_t i; for(i = 0; i != nbits; ++i) addBitToStream(bitpointer, bitstream, (unsigned char)((value >> i) & 1)); } static void addBitsToStreamReversed(size_t* bitpointer, ucvector* bitstream, unsigned value, size_t nbits) { size_t i; for(i = 0; i != nbits; ++i) addBitToStream(bitpointer, bitstream, (unsigned char)((value >> (nbits - 1 - i)) & 1)); } #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DECODER #define READBIT(bitpointer, bitstream) ((bitstream[bitpointer >> 3] >> (bitpointer & 0x7)) & (unsigned char)1) static unsigned char readBitFromStream(size_t* bitpointer, const unsigned char* bitstream) { unsigned char result = (unsigned char)(READBIT(*bitpointer, bitstream)); ++(*bitpointer); return result; } static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) { unsigned result = 0, i; for(i = 0; i != nbits; ++i) { result += ((unsigned)READBIT(*bitpointer, bitstream)) << i; ++(*bitpointer); } return result; } #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / Deflate - Huffman / */ /* ////////////////////////////////////////////////////////////////////////// */ #define FIRST_LENGTH_CODE_INDEX 257 #define LAST_LENGTH_CODE_INDEX 285 /*256 literals, the end code, some length codes, and 2 unused codes*/ #define NUM_DEFLATE_CODE_SYMBOLS 288 /*the distance codes have their own symbols, 30 used, 2 unused*/ #define NUM_DISTANCE_SYMBOLS 32 /*the code length codes. 0-15: code lengths, 16: copy previous 3-6 times, 17: 3-10 zeros, 18: 11-138 zeros*/ #define NUM_CODE_LENGTH_CODES 19 /*the base lengths represented by codes 257-285*/ static const unsigned LENGTHBASE[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; /*the extra bits used by codes 257-285 (added to base length)*/ static const unsigned LENGTHEXTRA[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; /*the base backwards distances (the bits of distance codes appear after length codes and use their own huffman tree)*/ static const unsigned DISTANCEBASE[30] = {1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; /*the extra bits of backwards distances (added to base)*/ static const unsigned DISTANCEEXTRA[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; /*the order in which "code length alphabet code lengths" are stored, out of this the huffman tree of the dynamic huffman tree lengths is generated*/ static const unsigned CLCL_ORDER[NUM_CODE_LENGTH_CODES] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; /* ////////////////////////////////////////////////////////////////////////// */ /* Huffman tree struct, containing multiple representations of the tree */ typedef struct HuffmanTree { unsigned* tree2d; unsigned* tree1d; unsigned* lengths; /*the lengths of the codes of the 1d-tree*/ unsigned maxbitlen; /*maximum number of bits a single code can get*/ unsigned numcodes; /*number of symbols in the alphabet = number of codes*/ } HuffmanTree; /*function used for debug purposes to draw the tree in ascii art with C++*/ /* static void HuffmanTree_draw(HuffmanTree* tree) { std::cout << "tree. length: " << tree->numcodes << " maxbitlen: " << tree->maxbitlen << std::endl; for(size_t i = 0; i != tree->tree1d.size; ++i) { if(tree->lengths.data[i]) std::cout << i << " " << tree->tree1d.data[i] << " " << tree->lengths.data[i] << std::endl; } std::cout << std::endl; }*/ static void HuffmanTree_init(HuffmanTree* tree) { tree->tree2d = 0; tree->tree1d = 0; tree->lengths = 0; } static void HuffmanTree_cleanup(HuffmanTree* tree) { lodepng_free(tree->tree2d); lodepng_free(tree->tree1d); lodepng_free(tree->lengths); } /*the tree representation used by the decoder. return value is error*/ static unsigned HuffmanTree_make2DTree(HuffmanTree* tree) { unsigned nodefilled = 0; /*up to which node it is filled*/ unsigned treepos = 0; /*position in the tree (1 of the numcodes columns)*/ unsigned n, i; tree->tree2d = (unsigned*)lodepng_malloc(tree->numcodes * 2 * sizeof(unsigned)); if(!tree->tree2d) return 83; /*alloc fail*/ /* convert tree1d[] to tree2d[][]. In the 2D array, a value of 32767 means uninited, a value >= numcodes is an address to another bit, a value < numcodes is a code. The 2 rows are the 2 possible bit values (0 or 1), there are as many columns as codes - 1. A good huffman tree has N * 2 - 1 nodes, of which N - 1 are internal nodes. Here, the internal nodes are stored (what their 0 and 1 option point to). There is only memory for such good tree currently, if there are more nodes (due to too long length codes), error 55 will happen */ for(n = 0; n < tree->numcodes * 2; ++n) { tree->tree2d[n] = 32767; /*32767 here means the tree2d isn't filled there yet*/ } for(n = 0; n < tree->numcodes; ++n) /*the codes*/ { for(i = 0; i != tree->lengths[n]; ++i) /*the bits for this code*/ { unsigned char bit = (unsigned char)((tree->tree1d[n] >> (tree->lengths[n] - i - 1)) & 1); /*oversubscribed, see comment in lodepng_error_text*/ if(treepos > 2147483647 || treepos + 2 > tree->numcodes) return 55; if(tree->tree2d[2 * treepos + bit] == 32767) /*not yet filled in*/ { if(i + 1 == tree->lengths[n]) /*last bit*/ { tree->tree2d[2 * treepos + bit] = n; /*put the current code in it*/ treepos = 0; } else { /*put address of the next step in here, first that address has to be found of course (it's just nodefilled + 1)...*/ ++nodefilled; /*addresses encoded with numcodes added to it*/ tree->tree2d[2 * treepos + bit] = nodefilled + tree->numcodes; treepos = nodefilled; } } else treepos = tree->tree2d[2 * treepos + bit] - tree->numcodes; } } for(n = 0; n < tree->numcodes * 2; ++n) { if(tree->tree2d[n] == 32767) tree->tree2d[n] = 0; /*remove possible remaining 32767's*/ } return 0; } /* Second step for the ...makeFromLengths and ...makeFromFrequencies functions. numcodes, lengths and maxbitlen must already be filled in correctly. return value is error. */ static unsigned HuffmanTree_makeFromLengths2(HuffmanTree* tree) { uivector blcount; uivector nextcode; unsigned error = 0; unsigned bits, n; uivector_init(&blcount); uivector_init(&nextcode); tree->tree1d = (unsigned*)lodepng_malloc(tree->numcodes * sizeof(unsigned)); if(!tree->tree1d) error = 83; /*alloc fail*/ if(!uivector_resizev(&blcount, tree->maxbitlen + 1, 0) || !uivector_resizev(&nextcode, tree->maxbitlen + 1, 0)) error = 83; /*alloc fail*/ if(!error) { /*step 1: count number of instances of each code length*/ for(bits = 0; bits != tree->numcodes; ++bits) ++blcount.data[tree->lengths[bits]]; /*step 2: generate the nextcode values*/ for(bits = 1; bits <= tree->maxbitlen; ++bits) { nextcode.data[bits] = (nextcode.data[bits - 1] + blcount.data[bits - 1]) << 1; } /*step 3: generate all the codes*/ for(n = 0; n != tree->numcodes; ++n) { if(tree->lengths[n] != 0) tree->tree1d[n] = nextcode.data[tree->lengths[n]]++; } } uivector_cleanup(&blcount); uivector_cleanup(&nextcode); if(!error) return HuffmanTree_make2DTree(tree); else return error; } /* given the code lengths (as stored in the PNG file), generate the tree as defined by Deflate. maxbitlen is the maximum bits that a code in the tree can have. return value is error. */ static unsigned HuffmanTree_makeFromLengths(HuffmanTree* tree, const unsigned* bitlen, size_t numcodes, unsigned maxbitlen) { unsigned i; tree->lengths = (unsigned*)lodepng_malloc(numcodes * sizeof(unsigned)); if(!tree->lengths) return 83; /*alloc fail*/ for(i = 0; i != numcodes; ++i) tree->lengths[i] = bitlen[i]; tree->numcodes = (unsigned)numcodes; /*number of symbols*/ tree->maxbitlen = maxbitlen; return HuffmanTree_makeFromLengths2(tree); } #ifdef LODEPNG_COMPILE_ENCODER /*BPM: Boundary Package Merge, see "A Fast and Space-Economical Algorithm for Length-Limited Coding", Jyrki Katajainen, Alistair Moffat, Andrew Turpin, 1995.*/ /*chain node for boundary package merge*/ typedef struct BPMNode { int weight; /*the sum of all weights in this chain*/ unsigned index; /*index of this leaf node (called "count" in the paper)*/ struct BPMNode* tail; /*the next nodes in this chain (null if last)*/ int in_use; } BPMNode; /*lists of chains*/ typedef struct BPMLists { /*memory pool*/ unsigned memsize; BPMNode* memory; unsigned numfree; unsigned nextfree; BPMNode** freelist; /*two heads of lookahead chains per list*/ unsigned listsize; BPMNode** chains0; BPMNode** chains1; } BPMLists; /*creates a new chain node with the given parameters, from the memory in the lists */ static BPMNode* bpmnode_create(BPMLists* lists, int weight, unsigned index, BPMNode* tail) { unsigned i; BPMNode* result; /*memory full, so garbage collect*/ if(lists->nextfree >= lists->numfree) { /*mark only those that are in use*/ for(i = 0; i != lists->memsize; ++i) lists->memory[i].in_use = 0; for(i = 0; i != lists->listsize; ++i) { BPMNode* node; for(node = lists->chains0[i]; node != 0; node = node->tail) node->in_use = 1; for(node = lists->chains1[i]; node != 0; node = node->tail) node->in_use = 1; } /*collect those that are free*/ lists->numfree = 0; for(i = 0; i != lists->memsize; ++i) { if(!lists->memory[i].in_use) lists->freelist[lists->numfree++] = &lists->memory[i]; } lists->nextfree = 0; } result = lists->freelist[lists->nextfree++]; result->weight = weight; result->index = index; result->tail = tail; return result; } /*sort the leaves with stable mergesort*/ static void bpmnode_sort(BPMNode* leaves, size_t num) { BPMNode* mem = (BPMNode*)lodepng_malloc(sizeof(*leaves) * num); size_t width, counter = 0; for(width = 1; width < num; width *= 2) { BPMNode* a = (counter & 1) ? mem : leaves; BPMNode* b = (counter & 1) ? leaves : mem; size_t p; for(p = 0; p < num; p += 2 * width) { size_t q = (p + width > num) ? num : (p + width); size_t r = (p + 2 * width > num) ? num : (p + 2 * width); size_t i = p, j = q, k; for(k = p; k < r; k++) { if(i < q && (j >= r || a[i].weight <= a[j].weight)) b[k] = a[i++]; else b[k] = a[j++]; } } counter++; } if(counter & 1) memcpy(leaves, mem, sizeof(*leaves) * num); lodepng_free(mem); } /*Boundary Package Merge step, numpresent is the amount of leaves, and c is the current chain.*/ static void boundaryPM(BPMLists* lists, BPMNode* leaves, size_t numpresent, int c, int num) { unsigned lastindex = lists->chains1[c]->index; if(c == 0) { if(lastindex >= numpresent) return; lists->chains0[c] = lists->chains1[c]; lists->chains1[c] = bpmnode_create(lists, leaves[lastindex].weight, lastindex + 1, 0); } else { /*sum of the weights of the head nodes of the previous lookahead chains.*/ int sum = lists->chains0[c - 1]->weight + lists->chains1[c - 1]->weight; lists->chains0[c] = lists->chains1[c]; if(lastindex < numpresent && sum > leaves[lastindex].weight) { lists->chains1[c] = bpmnode_create(lists, leaves[lastindex].weight, lastindex + 1, lists->chains1[c]->tail); return; } lists->chains1[c] = bpmnode_create(lists, sum, lastindex, lists->chains1[c - 1]); /*in the end we are only interested in the chain of the last list, so no need to recurse if we're at the last one (this gives measurable speedup)*/ if(num + 1 < (int)(2 * numpresent - 2)) { boundaryPM(lists, leaves, numpresent, c - 1, num); boundaryPM(lists, leaves, numpresent, c - 1, num); } } } unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequencies, size_t numcodes, unsigned maxbitlen) { unsigned error = 0; unsigned i; size_t numpresent = 0; /*number of symbols with non-zero frequency*/ BPMNode* leaves; /*the symbols, only those with > 0 frequency*/ if(numcodes == 0) return 80; /*error: a tree of 0 symbols is not supposed to be made*/ if((1u << maxbitlen) < numcodes) return 80; /*error: represent all symbols*/ leaves = (BPMNode*)lodepng_malloc(numcodes * sizeof(*leaves)); if(!leaves) return 83; /*alloc fail*/ for(i = 0; i != numcodes; ++i) { if(frequencies[i] > 0) { leaves[numpresent].weight = (int)frequencies[i]; leaves[numpresent].index = i; ++numpresent; } } for(i = 0; i != numcodes; ++i) lengths[i] = 0; /*ensure at least two present symbols. There should be at least one symbol according to RFC 1951 section 3.2.7. Some decoders incorrectly require two. To make these work as well ensure there are at least two symbols. The Package-Merge code below also doesn't work correctly if there's only one symbol, it'd give it the theoritical 0 bits but in practice zlib wants 1 bit*/ if(numpresent == 0) { lengths[0] = lengths[1] = 1; /*note that for RFC 1951 section 3.2.7, only lengths[0] = 1 is needed*/ } else if(numpresent == 1) { lengths[leaves[0].index] = 1; lengths[leaves[0].index == 0 ? 1 : 0] = 1; } else { BPMLists lists; BPMNode* node; bpmnode_sort(leaves, numpresent); lists.listsize = maxbitlen; lists.memsize = 2 * maxbitlen * (maxbitlen + 1); lists.nextfree = 0; lists.numfree = lists.memsize; lists.memory = (BPMNode*)lodepng_malloc(lists.memsize * sizeof(*lists.memory)); lists.freelist = (BPMNode**)lodepng_malloc(lists.memsize * sizeof(BPMNode*)); lists.chains0 = (BPMNode**)lodepng_malloc(lists.listsize * sizeof(BPMNode*)); lists.chains1 = (BPMNode**)lodepng_malloc(lists.listsize * sizeof(BPMNode*)); if(!lists.memory || !lists.freelist || !lists.chains0 || !lists.chains1) error = 83; /*alloc fail*/ if(!error) { for(i = 0; i != lists.memsize; ++i) lists.freelist[i] = &lists.memory[i]; bpmnode_create(&lists, leaves[0].weight, 1, 0); bpmnode_create(&lists, leaves[1].weight, 2, 0); for(i = 0; i != lists.listsize; ++i) { lists.chains0[i] = &lists.memory[0]; lists.chains1[i] = &lists.memory[1]; } /*each boundaryPM call adds one chain to the last list, and we need 2 * numpresent - 2 chains.*/ for(i = 2; i != 2 * numpresent - 2; ++i) boundaryPM(&lists, leaves, numpresent, (int)maxbitlen - 1, (int)i); for(node = lists.chains1[maxbitlen - 1]; node; node = node->tail) { for(i = 0; i != node->index; ++i) ++lengths[leaves[i].index]; } } lodepng_free(lists.memory); lodepng_free(lists.freelist); lodepng_free(lists.chains0); lodepng_free(lists.chains1); } lodepng_free(leaves); return error; } /*Create the Huffman tree given the symbol frequencies*/ static unsigned HuffmanTree_makeFromFrequencies(HuffmanTree* tree, const unsigned* frequencies, size_t mincodes, size_t numcodes, unsigned maxbitlen) { unsigned error = 0; while(!frequencies[numcodes - 1] && numcodes > mincodes) --numcodes; /*trim zeroes*/ tree->maxbitlen = maxbitlen; tree->numcodes = (unsigned)numcodes; /*number of symbols*/ tree->lengths = (unsigned*)lodepng_realloc(tree->lengths, numcodes * sizeof(unsigned)); if(!tree->lengths) return 83; /*alloc fail*/ /*initialize all lengths to 0*/ memset(tree->lengths, 0, numcodes * sizeof(unsigned)); error = lodepng_huffman_code_lengths(tree->lengths, frequencies, numcodes, maxbitlen); if(!error) error = HuffmanTree_makeFromLengths2(tree); return error; } static unsigned HuffmanTree_getCode(const HuffmanTree* tree, unsigned index) { return tree->tree1d[index]; } static unsigned HuffmanTree_getLength(const HuffmanTree* tree, unsigned index) { return tree->lengths[index]; } #endif /*LODEPNG_COMPILE_ENCODER*/ /*get the literal and length code tree of a deflated block with fixed tree, as per the deflate specification*/ static unsigned generateFixedLitLenTree(HuffmanTree* tree) { unsigned i, error = 0; unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); if(!bitlen) return 83; /*alloc fail*/ /*288 possible codes: 0-255=literals, 256=endcode, 257-285=lengthcodes, 286-287=unused*/ for(i = 0; i <= 143; ++i) bitlen[i] = 8; for(i = 144; i <= 255; ++i) bitlen[i] = 9; for(i = 256; i <= 279; ++i) bitlen[i] = 7; for(i = 280; i <= 287; ++i) bitlen[i] = 8; error = HuffmanTree_makeFromLengths(tree, bitlen, NUM_DEFLATE_CODE_SYMBOLS, 15); lodepng_free(bitlen); return error; } /*get the distance code tree of a deflated block with fixed tree, as specified in the deflate specification*/ static unsigned generateFixedDistanceTree(HuffmanTree* tree) { unsigned i, error = 0; unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); if(!bitlen) return 83; /*alloc fail*/ /*there are 32 distance codes, but 30-31 are unused*/ for(i = 0; i != NUM_DISTANCE_SYMBOLS; ++i) bitlen[i] = 5; error = HuffmanTree_makeFromLengths(tree, bitlen, NUM_DISTANCE_SYMBOLS, 15); lodepng_free(bitlen); return error; } #ifdef LODEPNG_COMPILE_DECODER /* returns the code, or (unsigned)(-1) if error happened inbitlength is the length of the complete buffer, in bits (so its byte length times 8) */ static unsigned huffmanDecodeSymbol(const unsigned char* in, size_t* bp, const HuffmanTree* codetree, size_t inbitlength) { unsigned treepos = 0, ct; for(;;) { if(*bp >= inbitlength) return (unsigned)(-1); /*error: end of input memory reached without endcode*/ /* decode the symbol from the tree. The "readBitFromStream" code is inlined in the expression below because this is the biggest bottleneck while decoding */ ct = codetree->tree2d[(treepos << 1) + READBIT(*bp, in)]; ++(*bp); if(ct < codetree->numcodes) return ct; /*the symbol is decoded, return it*/ else treepos = ct - codetree->numcodes; /*symbol not yet decoded, instead move tree position*/ if(treepos >= codetree->numcodes) return (unsigned)(-1); /*error: it appeared outside the codetree*/ } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_DECODER /* ////////////////////////////////////////////////////////////////////////// */ /* / Inflator (Decompressor) / */ /* ////////////////////////////////////////////////////////////////////////// */ /*get the tree of a deflated block with fixed tree, as specified in the deflate specification*/ static void getTreeInflateFixed(HuffmanTree* tree_ll, HuffmanTree* tree_d) { /*TODO: check for out of memory errors*/ generateFixedLitLenTree(tree_ll); generateFixedDistanceTree(tree_d); } /*get the tree of a deflated block with dynamic tree, the tree itself is also Huffman compressed with a known tree*/ static unsigned getTreeInflateDynamic(HuffmanTree* tree_ll, HuffmanTree* tree_d, const unsigned char* in, size_t* bp, size_t inlength) { /*make sure that length values that aren't filled in will be 0, or a wrong tree will be generated*/ unsigned error = 0; unsigned n, HLIT, HDIST, HCLEN, i; size_t inbitlength = inlength * 8; /*see comments in deflateDynamic for explanation of the context and these variables, it is analogous*/ unsigned* bitlen_ll = 0; /*lit,len code lengths*/ unsigned* bitlen_d = 0; /*dist code lengths*/ /*code length code lengths ("clcl"), the bit lengths of the huffman tree used to compress bitlen_ll and bitlen_d*/ unsigned* bitlen_cl = 0; HuffmanTree tree_cl; /*the code tree for code length codes (the huffman tree for compressed huffman trees)*/ if((*bp) + 14 > (inlength << 3)) return 49; /*error: the bit pointer is or will go past the memory*/ /*number of literal/length codes + 257. Unlike the spec, the value 257 is added to it here already*/ HLIT = readBitsFromStream(bp, in, 5) + 257; /*number of distance codes. Unlike the spec, the value 1 is added to it here already*/ HDIST = readBitsFromStream(bp, in, 5) + 1; /*number of code length codes. Unlike the spec, the value 4 is added to it here already*/ HCLEN = readBitsFromStream(bp, in, 4) + 4; if((*bp) + HCLEN * 3 > (inlength << 3)) return 50; /*error: the bit pointer is or will go past the memory*/ HuffmanTree_init(&tree_cl); while(!error) { /*read the code length codes out of 3 * (amount of code length codes) bits*/ bitlen_cl = (unsigned*)lodepng_malloc(NUM_CODE_LENGTH_CODES * sizeof(unsigned)); if(!bitlen_cl) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != NUM_CODE_LENGTH_CODES; ++i) { if(i < HCLEN) bitlen_cl[CLCL_ORDER[i]] = readBitsFromStream(bp, in, 3); else bitlen_cl[CLCL_ORDER[i]] = 0; /*if not, it must stay 0*/ } error = HuffmanTree_makeFromLengths(&tree_cl, bitlen_cl, NUM_CODE_LENGTH_CODES, 7); if(error) break; /*now we can use this tree to read the lengths for the tree that this function will return*/ bitlen_ll = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); bitlen_d = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); if(!bitlen_ll || !bitlen_d) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != NUM_DEFLATE_CODE_SYMBOLS; ++i) bitlen_ll[i] = 0; for(i = 0; i != NUM_DISTANCE_SYMBOLS; ++i) bitlen_d[i] = 0; /*i is the current symbol we're reading in the part that contains the code lengths of lit/len and dist codes*/ i = 0; while(i < HLIT + HDIST) { unsigned code = huffmanDecodeSymbol(in, bp, &tree_cl, inbitlength); if(code <= 15) /*a length code*/ { if(i < HLIT) bitlen_ll[i] = code; else bitlen_d[i - HLIT] = code; ++i; } else if(code == 16) /*repeat previous*/ { unsigned replength = 3; /*read in the 2 bits that indicate repeat length (3-6)*/ unsigned value; /*set value to the previous code*/ if(i == 0) ERROR_BREAK(54); /*can't repeat previous if i is 0*/ if((*bp + 2) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 2); if(i < HLIT + 1) value = bitlen_ll[i - 1]; else value = bitlen_d[i - HLIT - 1]; /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(13); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = value; else bitlen_d[i - HLIT] = value; ++i; } } else if(code == 17) /*repeat "0" 3-10 times*/ { unsigned replength = 3; /*read in the bits that indicate repeat length*/ if((*bp + 3) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 3); /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(14); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = 0; else bitlen_d[i - HLIT] = 0; ++i; } } else if(code == 18) /*repeat "0" 11-138 times*/ { unsigned replength = 11; /*read in the bits that indicate repeat length*/ if((*bp + 7) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 7); /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(15); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = 0; else bitlen_d[i - HLIT] = 0; ++i; } } else /*if(code == (unsigned)(-1))*/ /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { if(code == (unsigned)(-1)) { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = (*bp) > inbitlength ? 10 : 11; } else error = 16; /*unexisting code, this can never happen*/ break; } } if(error) break; if(bitlen_ll[256] == 0) ERROR_BREAK(64); /*the length of the end code 256 must be larger than 0*/ /*now we've finally got HLIT and HDIST, so generate the code trees, and the function is done*/ error = HuffmanTree_makeFromLengths(tree_ll, bitlen_ll, NUM_DEFLATE_CODE_SYMBOLS, 15); if(error) break; error = HuffmanTree_makeFromLengths(tree_d, bitlen_d, NUM_DISTANCE_SYMBOLS, 15); break; /*end of error-while*/ } lodepng_free(bitlen_cl); lodepng_free(bitlen_ll); lodepng_free(bitlen_d); HuffmanTree_cleanup(&tree_cl); return error; } /*inflate a block with dynamic of fixed Huffman tree*/ static unsigned inflateHuffmanBlock(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength, unsigned btype) { unsigned error = 0; HuffmanTree tree_ll; /*the huffman tree for literal and length codes*/ HuffmanTree tree_d; /*the huffman tree for distance codes*/ size_t inbitlength = inlength * 8; HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); if(btype == 1) getTreeInflateFixed(&tree_ll, &tree_d); else if(btype == 2) error = getTreeInflateDynamic(&tree_ll, &tree_d, in, bp, inlength); while(!error) /*decode all symbols until end reached, breaks at end code*/ { /*code_ll is literal, length or end code*/ unsigned code_ll = huffmanDecodeSymbol(in, bp, &tree_ll, inbitlength); if(code_ll <= 255) /*literal symbol*/ { /*ucvector_push_back would do the same, but for some reason the two lines below run 10% faster*/ if(!ucvector_resize(out, (*pos) + 1)) ERROR_BREAK(83 /*alloc fail*/); out->data[*pos] = (unsigned char)code_ll; ++(*pos); } else if(code_ll >= FIRST_LENGTH_CODE_INDEX && code_ll <= LAST_LENGTH_CODE_INDEX) /*length code*/ { unsigned code_d, distance; unsigned numextrabits_l, numextrabits_d; /*extra bits for length and distance*/ size_t start, forward, backward, length; /*part 1: get length base*/ length = LENGTHBASE[code_ll - FIRST_LENGTH_CODE_INDEX]; /*part 2: get extra bits and add the value of that to length*/ numextrabits_l = LENGTHEXTRA[code_ll - FIRST_LENGTH_CODE_INDEX]; if((*bp + numextrabits_l) > inbitlength) ERROR_BREAK(51); /*error, bit pointer will jump past memory*/ length += readBitsFromStream(bp, in, numextrabits_l); /*part 3: get distance code*/ code_d = huffmanDecodeSymbol(in, bp, &tree_d, inbitlength); if(code_d > 29) { if(code_ll == (unsigned)(-1)) /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = (*bp) > inlength * 8 ? 10 : 11; } else error = 18; /*error: invalid distance code (30-31 are never used)*/ break; } distance = DISTANCEBASE[code_d]; /*part 4: get extra bits from distance*/ numextrabits_d = DISTANCEEXTRA[code_d]; if((*bp + numextrabits_d) > inbitlength) ERROR_BREAK(51); /*error, bit pointer will jump past memory*/ distance += readBitsFromStream(bp, in, numextrabits_d); /*part 5: fill in all the out[n] values based on the length and dist*/ start = (*pos); if(distance > start) ERROR_BREAK(52); /*too long backward distance*/ backward = start - distance; if(!ucvector_resize(out, (*pos) + length)) ERROR_BREAK(83 /*alloc fail*/); if (distance < length) { for(forward = 0; forward < length; ++forward) { out->data[(*pos)++] = out->data[backward++]; } } else { memcpy(out->data + *pos, out->data + backward, length); *pos += length; } } else if(code_ll == 256) { break; /*end code, break the loop*/ } else /*if(code == (unsigned)(-1))*/ /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = ((*bp) > inlength * 8) ? 10 : 11; break; } } HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); return error; } static unsigned inflateNoCompression(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength) { size_t p; unsigned LEN, NLEN, n, error = 0; /*go to first boundary of byte*/ while(((*bp) & 0x7) != 0) ++(*bp); p = (*bp) / 8; /*byte position*/ /*read LEN (2 bytes) and NLEN (2 bytes)*/ if(p + 4 >= inlength) return 52; /*error, bit pointer will jump past memory*/ LEN = in[p] + 256u * in[p + 1]; p += 2; NLEN = in[p] + 256u * in[p + 1]; p += 2; /*check if 16-bit NLEN is really the one's complement of LEN*/ if(LEN + NLEN != 65535) return 21; /*error: NLEN is not one's complement of LEN*/ if(!ucvector_resize(out, (*pos) + LEN)) return 83; /*alloc fail*/ /*read the literal data: LEN bytes are now stored in the out buffer*/ if(p + LEN > inlength) return 23; /*error: reading outside of in buffer*/ for(n = 0; n < LEN; ++n) out->data[(*pos)++] = in[p++]; (*bp) = p * 8; return error; } static unsigned lodepng_inflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { /*bit pointer in the "in" data, current byte is bp >> 3, current bit is bp & 0x7 (from lsb to msb of the byte)*/ size_t bp = 0; unsigned BFINAL = 0; size_t pos = 0; /*byte position in the out buffer*/ unsigned error = 0; (void)settings; while(!BFINAL) { unsigned BTYPE; if(bp + 2 >= insize * 8) return 52; /*error, bit pointer will jump past memory*/ BFINAL = readBitFromStream(&bp, in); BTYPE = 1u * readBitFromStream(&bp, in); BTYPE += 2u * readBitFromStream(&bp, in); if(BTYPE == 3) return 20; /*error: invalid BTYPE*/ else if(BTYPE == 0) error = inflateNoCompression(out, in, &bp, &pos, insize); /*no compression*/ else error = inflateHuffmanBlock(out, in, &bp, &pos, insize, BTYPE); /*compression, BTYPE 01 or 10*/ if(error) return error; } return error; } unsigned lodepng_inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { unsigned error; ucvector v; ucvector_init_buffer(&v, *out, *outsize); error = lodepng_inflatev(&v, in, insize, settings); *out = v.data; *outsize = v.size; return error; } static unsigned inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(settings->custom_inflate) { return settings->custom_inflate(out, outsize, in, insize, settings); } else { return lodepng_inflate(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* ////////////////////////////////////////////////////////////////////////// */ /* / Deflator (Compressor) / */ /* ////////////////////////////////////////////////////////////////////////// */ static const size_t MAX_SUPPORTED_DEFLATE_LENGTH = 258; /*bitlen is the size in bits of the code*/ static void addHuffmanSymbol(size_t* bp, ucvector* compressed, unsigned code, unsigned bitlen) { addBitsToStreamReversed(bp, compressed, code, bitlen); } /*search the index in the array, that has the largest value smaller than or equal to the given value, given array must be sorted (if no value is smaller, it returns the size of the given array)*/ static size_t searchCodeIndex(const unsigned* array, size_t array_size, size_t value) { /*binary search (only small gain over linear). TODO: use CPU log2 instruction for getting symbols instead*/ size_t left = 1; size_t right = array_size - 1; while(left <= right) { size_t mid = (left + right) >> 1; if (array[mid] >= value) right = mid - 1; else left = mid + 1; } if(left >= array_size || array[left] > value) left--; return left; } static void addLengthDistance(uivector* values, size_t length, size_t distance) { /*values in encoded vector are those used by deflate: 0-255: literal bytes 256: end 257-285: length/distance pair (length code, followed by extra length bits, distance code, extra distance bits) 286-287: invalid*/ unsigned length_code = (unsigned)searchCodeIndex(LENGTHBASE, 29, length); unsigned extra_length = (unsigned)(length - LENGTHBASE[length_code]); unsigned dist_code = (unsigned)searchCodeIndex(DISTANCEBASE, 30, distance); unsigned extra_distance = (unsigned)(distance - DISTANCEBASE[dist_code]); uivector_push_back(values, length_code + FIRST_LENGTH_CODE_INDEX); uivector_push_back(values, extra_length); uivector_push_back(values, dist_code); uivector_push_back(values, extra_distance); } /*3 bytes of data get encoded into two bytes. The hash cannot use more than 3 bytes as input because 3 is the minimum match length for deflate*/ static const unsigned HASH_NUM_VALUES = 65536; static const unsigned HASH_BIT_MASK = 65535; /*HASH_NUM_VALUES - 1, but C90 does not like that as initializer*/ typedef struct Hash { int* head; /*hash value to head circular pos - can be outdated if went around window*/ /*circular pos to prev circular pos*/ unsigned short* chain; int* val; /*circular pos to hash value*/ /*TODO: do this not only for zeros but for any repeated byte. However for PNG it's always going to be the zeros that dominate, so not important for PNG*/ int* headz; /*similar to head, but for chainz*/ unsigned short* chainz; /*those with same amount of zeros*/ unsigned short* zeros; /*length of zeros streak, used as a second hash chain*/ } Hash; static unsigned hash_init(Hash* hash, unsigned windowsize) { unsigned i; hash->head = (int*)lodepng_malloc(sizeof(int) * HASH_NUM_VALUES); hash->val = (int*)lodepng_malloc(sizeof(int) * windowsize); hash->chain = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); hash->zeros = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); hash->headz = (int*)lodepng_malloc(sizeof(int) * (MAX_SUPPORTED_DEFLATE_LENGTH + 1)); hash->chainz = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); if(!hash->head || !hash->chain || !hash->val || !hash->headz|| !hash->chainz || !hash->zeros) { return 83; /*alloc fail*/ } /*initialize hash table*/ for(i = 0; i != HASH_NUM_VALUES; ++i) hash->head[i] = -1; for(i = 0; i != windowsize; ++i) hash->val[i] = -1; for(i = 0; i != windowsize; ++i) hash->chain[i] = i; /*same value as index indicates uninitialized*/ for(i = 0; i <= MAX_SUPPORTED_DEFLATE_LENGTH; ++i) hash->headz[i] = -1; for(i = 0; i != windowsize; ++i) hash->chainz[i] = i; /*same value as index indicates uninitialized*/ return 0; } static void hash_cleanup(Hash* hash) { lodepng_free(hash->head); lodepng_free(hash->val); lodepng_free(hash->chain); lodepng_free(hash->zeros); lodepng_free(hash->headz); lodepng_free(hash->chainz); } static unsigned getHash(const unsigned char* data, size_t size, size_t pos) { unsigned result = 0; if(pos + 2 < size) { /*A simple shift and xor hash is used. Since the data of PNGs is dominated by zeroes due to the filters, a better hash does not have a significant effect on speed in traversing the chain, and causes more time spend on calculating the hash.*/ result ^= (unsigned)(data[pos + 0] << 0u); result ^= (unsigned)(data[pos + 1] << 4u); result ^= (unsigned)(data[pos + 2] << 8u); } else { size_t amount, i; if(pos >= size) return 0; amount = size - pos; for(i = 0; i != amount; ++i) result ^= (unsigned)(data[pos + i] << (i * 8u)); } return result & HASH_BIT_MASK; } static unsigned countZeros(const unsigned char* data, size_t size, size_t pos) { const unsigned char* start = data + pos; const unsigned char* end = start + MAX_SUPPORTED_DEFLATE_LENGTH; if(end > data + size) end = data + size; data = start; while(data != end && *data == 0) ++data; /*subtracting two addresses returned as 32-bit number (max value is MAX_SUPPORTED_DEFLATE_LENGTH)*/ return (unsigned)(data - start); } /*wpos = pos & (windowsize - 1)*/ static void updateHashChain(Hash* hash, size_t wpos, unsigned hashval, unsigned short numzeros) { hash->val[wpos] = (int)hashval; if(hash->head[hashval] != -1) hash->chain[wpos] = hash->head[hashval]; hash->head[hashval] = wpos; hash->zeros[wpos] = numzeros; if(hash->headz[numzeros] != -1) hash->chainz[wpos] = hash->headz[numzeros]; hash->headz[numzeros] = wpos; } /* LZ77-encode the data. Return value is error code. The input are raw bytes, the output is in the form of unsigned integers with codes representing for example literal bytes, or length/distance pairs. It uses a hash table technique to let it encode faster. When doing LZ77 encoding, a sliding window (of windowsize) is used, and all past bytes in that window can be used as the "dictionary". A brute force search through all possible distances would be slow, and this hash technique is one out of several ways to speed this up. */ static unsigned encodeLZ77(uivector* out, Hash* hash, const unsigned char* in, size_t inpos, size_t insize, unsigned windowsize, unsigned minmatch, unsigned nicematch, unsigned lazymatching) { size_t pos; unsigned i, error = 0; /*for large window lengths, assume the user wants no compression loss. Otherwise, max hash chain length speedup.*/ unsigned maxchainlength = windowsize >= 8192 ? windowsize : windowsize / 8; unsigned maxlazymatch = windowsize >= 8192 ? MAX_SUPPORTED_DEFLATE_LENGTH : 64; unsigned usezeros = 1; /*not sure if setting it to false for windowsize < 8192 is better or worse*/ unsigned numzeros = 0; unsigned offset; /*the offset represents the distance in LZ77 terminology*/ unsigned length; unsigned lazy = 0; unsigned lazylength = 0, lazyoffset = 0; unsigned hashval; unsigned current_offset, current_length; unsigned prev_offset; const unsigned char *lastptr, *foreptr, *backptr; unsigned hashpos; if(windowsize == 0 || windowsize > 32768) return 60; /*error: windowsize smaller/larger than allowed*/ if((windowsize & (windowsize - 1)) != 0) return 90; /*error: must be power of two*/ if(nicematch > MAX_SUPPORTED_DEFLATE_LENGTH) nicematch = MAX_SUPPORTED_DEFLATE_LENGTH; for(pos = inpos; pos < insize; ++pos) { size_t wpos = pos & (windowsize - 1); /*position for in 'circular' hash buffers*/ unsigned chainlength = 0; hashval = getHash(in, insize, pos); if(usezeros && hashval == 0) { if(numzeros == 0) numzeros = countZeros(in, insize, pos); else if(pos + numzeros > insize || in[pos + numzeros - 1] != 0) --numzeros; } else { numzeros = 0; } updateHashChain(hash, wpos, hashval, numzeros); /*the length and offset found for the current position*/ length = 0; offset = 0; hashpos = hash->chain[wpos]; lastptr = &in[insize < pos + MAX_SUPPORTED_DEFLATE_LENGTH ? insize : pos + MAX_SUPPORTED_DEFLATE_LENGTH]; /*search for the longest string*/ prev_offset = 0; for(;;) { if(chainlength++ >= maxchainlength) break; current_offset = hashpos <= wpos ? wpos - hashpos : wpos - hashpos + windowsize; if(current_offset < prev_offset) break; /*stop when went completely around the circular buffer*/ prev_offset = current_offset; if(current_offset > 0) { /*test the next characters*/ foreptr = &in[pos]; backptr = &in[pos - current_offset]; /*common case in PNGs is lots of zeros. Quickly skip over them as a speedup*/ if(numzeros >= 3) { unsigned skip = hash->zeros[hashpos]; if(skip > numzeros) skip = numzeros; backptr += skip; foreptr += skip; } while(foreptr != lastptr && *backptr == *foreptr) /*maximum supported length by deflate is max length*/ { ++backptr; ++foreptr; } current_length = (unsigned)(foreptr - &in[pos]); if(current_length > length) { length = current_length; /*the longest length*/ offset = current_offset; /*the offset that is related to this longest length*/ /*jump out once a length of max length is found (speed gain). This also jumps out if length is MAX_SUPPORTED_DEFLATE_LENGTH*/ if(current_length >= nicematch) break; } } if(hashpos == hash->chain[hashpos]) break; if(numzeros >= 3 && length > numzeros) { hashpos = hash->chainz[hashpos]; if(hash->zeros[hashpos] != numzeros) break; } else { hashpos = hash->chain[hashpos]; /*outdated hash value, happens if particular value was not encountered in whole last window*/ if(hash->val[hashpos] != (int)hashval) break; } } if(lazymatching) { if(!lazy && length >= 3 && length <= maxlazymatch && length < MAX_SUPPORTED_DEFLATE_LENGTH) { lazy = 1; lazylength = length; lazyoffset = offset; continue; /*try the next byte*/ } if(lazy) { lazy = 0; if(pos == 0) ERROR_BREAK(81); if(length > lazylength + 1) { /*push the previous character as literal*/ if(!uivector_push_back(out, in[pos - 1])) ERROR_BREAK(83 /*alloc fail*/); } else { length = lazylength; offset = lazyoffset; hash->head[hashval] = -1; /*the same hashchain update will be done, this ensures no wrong alteration*/ hash->headz[numzeros] = -1; /*idem*/ --pos; } } } if(length >= 3 && offset > windowsize) ERROR_BREAK(86 /*too big (or overflown negative) offset*/); /*encode it as length/distance pair or literal value*/ if(length < 3) /*only lengths of 3 or higher are supported as length/distance pair*/ { if(!uivector_push_back(out, in[pos])) ERROR_BREAK(83 /*alloc fail*/); } else if(length < minmatch || (length == 3 && offset > 4096)) { /*compensate for the fact that longer offsets have more extra bits, a length of only 3 may be not worth it then*/ if(!uivector_push_back(out, in[pos])) ERROR_BREAK(83 /*alloc fail*/); } else { addLengthDistance(out, length, offset); for(i = 1; i < length; ++i) { ++pos; wpos = pos & (windowsize - 1); hashval = getHash(in, insize, pos); if(usezeros && hashval == 0) { if(numzeros == 0) numzeros = countZeros(in, insize, pos); else if(pos + numzeros > insize || in[pos + numzeros - 1] != 0) --numzeros; } else { numzeros = 0; } updateHashChain(hash, wpos, hashval, numzeros); } } } /*end of the loop through each character of input*/ return error; } /* /////////////////////////////////////////////////////////////////////////// */ static unsigned deflateNoCompression(ucvector* out, const unsigned char* data, size_t datasize) { /*non compressed deflate block data: 1 bit BFINAL,2 bits BTYPE,(5 bits): it jumps to start of next byte, 2 bytes LEN, 2 bytes NLEN, LEN bytes literal DATA*/ size_t i, j, numdeflateblocks = (datasize + 65534) / 65535; unsigned datapos = 0; for(i = 0; i != numdeflateblocks; ++i) { unsigned BFINAL, BTYPE, LEN, NLEN; unsigned char firstbyte; BFINAL = (i == numdeflateblocks - 1); BTYPE = 0; firstbyte = (unsigned char)(BFINAL + ((BTYPE & 1) << 1) + ((BTYPE & 2) << 1)); ucvector_push_back(out, firstbyte); LEN = 65535; if(datasize - datapos < 65535) LEN = (unsigned)datasize - datapos; NLEN = 65535 - LEN; ucvector_push_back(out, (unsigned char)(LEN & 255)); ucvector_push_back(out, (unsigned char)(LEN >> 8)); ucvector_push_back(out, (unsigned char)(NLEN & 255)); ucvector_push_back(out, (unsigned char)(NLEN >> 8)); /*Decompressed data*/ for(j = 0; j < 65535 && datapos < datasize; ++j) { ucvector_push_back(out, data[datapos++]); } } return 0; } /* write the lz77-encoded data, which has lit, len and dist codes, to compressed stream using huffman trees. tree_ll: the tree for lit and len codes. tree_d: the tree for distance codes. */ static void writeLZ77data(size_t* bp, ucvector* out, const uivector* lz77_encoded, const HuffmanTree* tree_ll, const HuffmanTree* tree_d) { size_t i = 0; for(i = 0; i != lz77_encoded->size; ++i) { unsigned val = lz77_encoded->data[i]; addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_ll, val), HuffmanTree_getLength(tree_ll, val)); if(val > 256) /*for a length code, 3 more things have to be added*/ { unsigned length_index = val - FIRST_LENGTH_CODE_INDEX; unsigned n_length_extra_bits = LENGTHEXTRA[length_index]; unsigned length_extra_bits = lz77_encoded->data[++i]; unsigned distance_code = lz77_encoded->data[++i]; unsigned distance_index = distance_code; unsigned n_distance_extra_bits = DISTANCEEXTRA[distance_index]; unsigned distance_extra_bits = lz77_encoded->data[++i]; addBitsToStream(bp, out, length_extra_bits, n_length_extra_bits); addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_d, distance_code), HuffmanTree_getLength(tree_d, distance_code)); addBitsToStream(bp, out, distance_extra_bits, n_distance_extra_bits); } } } /*Deflate for a block of type "dynamic", that is, with freely, optimally, created huffman trees*/ static unsigned deflateDynamic(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, unsigned final) { unsigned error = 0; /* A block is compressed as follows: The PNG data is lz77 encoded, resulting in literal bytes and length/distance pairs. This is then huffman compressed with two huffman trees. One huffman tree is used for the lit and len values ("ll"), another huffman tree is used for the dist values ("d"). These two trees are stored using their code lengths, and to compress even more these code lengths are also run-length encoded and huffman compressed. This gives a huffman tree of code lengths "cl". The code lenghts used to describe this third tree are the code length code lengths ("clcl"). */ /*The lz77 encoded data, represented with integers since there will also be length and distance codes in it*/ uivector lz77_encoded; HuffmanTree tree_ll; /*tree for lit,len values*/ HuffmanTree tree_d; /*tree for distance codes*/ HuffmanTree tree_cl; /*tree for encoding the code lengths representing tree_ll and tree_d*/ uivector frequencies_ll; /*frequency of lit,len codes*/ uivector frequencies_d; /*frequency of dist codes*/ uivector frequencies_cl; /*frequency of code length codes*/ uivector bitlen_lld; /*lit,len,dist code lenghts (int bits), literally (without repeat codes).*/ uivector bitlen_lld_e; /*bitlen_lld encoded with repeat codes (this is a rudemtary run length compression)*/ /*bitlen_cl is the code length code lengths ("clcl"). The bit lengths of codes to represent tree_cl (these are written as is in the file, it would be crazy to compress these using yet another huffman tree that needs to be represented by yet another set of code lengths)*/ uivector bitlen_cl; size_t datasize = dataend - datapos; /* Due to the huffman compression of huffman tree representations ("two levels"), there are some anologies: bitlen_lld is to tree_cl what data is to tree_ll and tree_d. bitlen_lld_e is to bitlen_lld what lz77_encoded is to data. bitlen_cl is to bitlen_lld_e what bitlen_lld is to lz77_encoded. */ unsigned BFINAL = final; size_t numcodes_ll, numcodes_d, i; unsigned HLIT, HDIST, HCLEN; uivector_init(&lz77_encoded); HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); HuffmanTree_init(&tree_cl); uivector_init(&frequencies_ll); uivector_init(&frequencies_d); uivector_init(&frequencies_cl); uivector_init(&bitlen_lld); uivector_init(&bitlen_lld_e); uivector_init(&bitlen_cl); /*This while loop never loops due to a break at the end, it is here to allow breaking out of it to the cleanup phase on error conditions.*/ while(!error) { if(settings->use_lz77) { error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, settings->minmatch, settings->nicematch, settings->lazymatching); if(error) break; } else { if(!uivector_resize(&lz77_encoded, datasize)) ERROR_BREAK(83 /*alloc fail*/); for(i = datapos; i < dataend; ++i) lz77_encoded.data[i - datapos] = data[i]; /*no LZ77, but still will be Huffman compressed*/ } if(!uivector_resizev(&frequencies_ll, 286, 0)) ERROR_BREAK(83 /*alloc fail*/); if(!uivector_resizev(&frequencies_d, 30, 0)) ERROR_BREAK(83 /*alloc fail*/); /*Count the frequencies of lit, len and dist codes*/ for(i = 0; i != lz77_encoded.size; ++i) { unsigned symbol = lz77_encoded.data[i]; ++frequencies_ll.data[symbol]; if(symbol > 256) { unsigned dist = lz77_encoded.data[i + 2]; ++frequencies_d.data[dist]; i += 3; } } frequencies_ll.data[256] = 1; /*there will be exactly 1 end code, at the end of the block*/ /*Make both huffman trees, one for the lit and len codes, one for the dist codes*/ error = HuffmanTree_makeFromFrequencies(&tree_ll, frequencies_ll.data, 257, frequencies_ll.size, 15); if(error) break; /*2, not 1, is chosen for mincodes: some buggy PNG decoders require at least 2 symbols in the dist tree*/ error = HuffmanTree_makeFromFrequencies(&tree_d, frequencies_d.data, 2, frequencies_d.size, 15); if(error) break; numcodes_ll = tree_ll.numcodes; if(numcodes_ll > 286) numcodes_ll = 286; numcodes_d = tree_d.numcodes; if(numcodes_d > 30) numcodes_d = 30; /*store the code lengths of both generated trees in bitlen_lld*/ for(i = 0; i != numcodes_ll; ++i) uivector_push_back(&bitlen_lld, HuffmanTree_getLength(&tree_ll, (unsigned)i)); for(i = 0; i != numcodes_d; ++i) uivector_push_back(&bitlen_lld, HuffmanTree_getLength(&tree_d, (unsigned)i)); /*run-length compress bitlen_ldd into bitlen_lld_e by using repeat codes 16 (copy length 3-6 times), 17 (3-10 zeroes), 18 (11-138 zeroes)*/ for(i = 0; i != (unsigned)bitlen_lld.size; ++i) { unsigned j = 0; /*amount of repititions*/ while(i + j + 1 < (unsigned)bitlen_lld.size && bitlen_lld.data[i + j + 1] == bitlen_lld.data[i]) ++j; if(bitlen_lld.data[i] == 0 && j >= 2) /*repeat code for zeroes*/ { ++j; /*include the first zero*/ if(j <= 10) /*repeat code 17 supports max 10 zeroes*/ { uivector_push_back(&bitlen_lld_e, 17); uivector_push_back(&bitlen_lld_e, j - 3); } else /*repeat code 18 supports max 138 zeroes*/ { if(j > 138) j = 138; uivector_push_back(&bitlen_lld_e, 18); uivector_push_back(&bitlen_lld_e, j - 11); } i += (j - 1); } else if(j >= 3) /*repeat code for value other than zero*/ { size_t k; unsigned num = j / 6, rest = j % 6; uivector_push_back(&bitlen_lld_e, bitlen_lld.data[i]); for(k = 0; k < num; ++k) { uivector_push_back(&bitlen_lld_e, 16); uivector_push_back(&bitlen_lld_e, 6 - 3); } if(rest >= 3) { uivector_push_back(&bitlen_lld_e, 16); uivector_push_back(&bitlen_lld_e, rest - 3); } else j -= rest; i += j; } else /*too short to benefit from repeat code*/ { uivector_push_back(&bitlen_lld_e, bitlen_lld.data[i]); } } /*generate tree_cl, the huffmantree of huffmantrees*/ if(!uivector_resizev(&frequencies_cl, NUM_CODE_LENGTH_CODES, 0)) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != bitlen_lld_e.size; ++i) { ++frequencies_cl.data[bitlen_lld_e.data[i]]; /*after a repeat code come the bits that specify the number of repetitions, those don't need to be in the frequencies_cl calculation*/ if(bitlen_lld_e.data[i] >= 16) ++i; } error = HuffmanTree_makeFromFrequencies(&tree_cl, frequencies_cl.data, frequencies_cl.size, frequencies_cl.size, 7); if(error) break; if(!uivector_resize(&bitlen_cl, tree_cl.numcodes)) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != tree_cl.numcodes; ++i) { /*lenghts of code length tree is in the order as specified by deflate*/ bitlen_cl.data[i] = HuffmanTree_getLength(&tree_cl, CLCL_ORDER[i]); } while(bitlen_cl.data[bitlen_cl.size - 1] == 0 && bitlen_cl.size > 4) { /*remove zeros at the end, but minimum size must be 4*/ if(!uivector_resize(&bitlen_cl, bitlen_cl.size - 1)) ERROR_BREAK(83 /*alloc fail*/); } if(error) break; /* Write everything into the output After the BFINAL and BTYPE, the dynamic block consists out of the following: - 5 bits HLIT, 5 bits HDIST, 4 bits HCLEN - (HCLEN+4)*3 bits code lengths of code length alphabet - HLIT + 257 code lenghts of lit/length alphabet (encoded using the code length alphabet, + possible repetition codes 16, 17, 18) - HDIST + 1 code lengths of distance alphabet (encoded using the code length alphabet, + possible repetition codes 16, 17, 18) - compressed data - 256 (end code) */ /*Write block type*/ addBitToStream(bp, out, BFINAL); addBitToStream(bp, out, 0); /*first bit of BTYPE "dynamic"*/ addBitToStream(bp, out, 1); /*second bit of BTYPE "dynamic"*/ /*write the HLIT, HDIST and HCLEN values*/ HLIT = (unsigned)(numcodes_ll - 257); HDIST = (unsigned)(numcodes_d - 1); HCLEN = (unsigned)bitlen_cl.size - 4; /*trim zeroes for HCLEN. HLIT and HDIST were already trimmed at tree creation*/ while(!bitlen_cl.data[HCLEN + 4 - 1] && HCLEN > 0) --HCLEN; addBitsToStream(bp, out, HLIT, 5); addBitsToStream(bp, out, HDIST, 5); addBitsToStream(bp, out, HCLEN, 4); /*write the code lenghts of the code length alphabet*/ for(i = 0; i != HCLEN + 4; ++i) addBitsToStream(bp, out, bitlen_cl.data[i], 3); /*write the lenghts of the lit/len AND the dist alphabet*/ for(i = 0; i != bitlen_lld_e.size; ++i) { addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_cl, bitlen_lld_e.data[i]), HuffmanTree_getLength(&tree_cl, bitlen_lld_e.data[i])); /*extra bits of repeat codes*/ if(bitlen_lld_e.data[i] == 16) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 2); else if(bitlen_lld_e.data[i] == 17) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 3); else if(bitlen_lld_e.data[i] == 18) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 7); } /*write the compressed data symbols*/ writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d); /*error: the length of the end code 256 must be larger than 0*/ if(HuffmanTree_getLength(&tree_ll, 256) == 0) ERROR_BREAK(64); /*write the end code*/ addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256)); break; /*end of error-while*/ } /*cleanup*/ uivector_cleanup(&lz77_encoded); HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); HuffmanTree_cleanup(&tree_cl); uivector_cleanup(&frequencies_ll); uivector_cleanup(&frequencies_d); uivector_cleanup(&frequencies_cl); uivector_cleanup(&bitlen_lld_e); uivector_cleanup(&bitlen_lld); uivector_cleanup(&bitlen_cl); return error; } static unsigned deflateFixed(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, unsigned final) { HuffmanTree tree_ll; /*tree for literal values and length codes*/ HuffmanTree tree_d; /*tree for distance codes*/ unsigned BFINAL = final; unsigned error = 0; size_t i; HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); generateFixedLitLenTree(&tree_ll); generateFixedDistanceTree(&tree_d); addBitToStream(bp, out, BFINAL); addBitToStream(bp, out, 1); /*first bit of BTYPE*/ addBitToStream(bp, out, 0); /*second bit of BTYPE*/ if(settings->use_lz77) /*LZ77 encoded*/ { uivector lz77_encoded; uivector_init(&lz77_encoded); error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, settings->minmatch, settings->nicematch, settings->lazymatching); if(!error) writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d); uivector_cleanup(&lz77_encoded); } else /*no LZ77, but still will be Huffman compressed*/ { for(i = datapos; i < dataend; ++i) { addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, data[i]), HuffmanTree_getLength(&tree_ll, data[i])); } } /*add END code*/ if(!error) addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256)); /*cleanup*/ HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); return error; } static unsigned lodepng_deflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { unsigned error = 0; size_t i, blocksize, numdeflateblocks; size_t bp = 0; /*the bit pointer*/ Hash hash; if(settings->btype > 2) return 61; else if(settings->btype == 0) return deflateNoCompression(out, in, insize); else if(settings->btype == 1) blocksize = insize; else /*if(settings->btype == 2)*/ { /*on PNGs, deflate blocks of 65-262k seem to give most dense encoding*/ blocksize = insize / 8 + 8; if(blocksize < 65536) blocksize = 65536; if(blocksize > 262144) blocksize = 262144; } numdeflateblocks = (insize + blocksize - 1) / blocksize; if(numdeflateblocks == 0) numdeflateblocks = 1; error = hash_init(&hash, settings->windowsize); if(error) return error; for(i = 0; i != numdeflateblocks && !error; ++i) { unsigned final = (i == numdeflateblocks - 1); size_t start = i * blocksize; size_t end = start + blocksize; if(end > insize) end = insize; if(settings->btype == 1) error = deflateFixed(out, &bp, &hash, in, start, end, settings, final); else if(settings->btype == 2) error = deflateDynamic(out, &bp, &hash, in, start, end, settings, final); } hash_cleanup(&hash); return error; } unsigned lodepng_deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { unsigned error; ucvector v; ucvector_init_buffer(&v, *out, *outsize); error = lodepng_deflatev(&v, in, insize, settings); *out = v.data; *outsize = v.size; return error; } static unsigned deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(settings->custom_deflate) { return settings->custom_deflate(out, outsize, in, insize, settings); } else { return lodepng_deflate(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / Adler32 */ /* ////////////////////////////////////////////////////////////////////////// */ static unsigned update_adler32(unsigned adler, const unsigned char* data, unsigned len) { unsigned s1 = adler & 0xffff; unsigned s2 = (adler >> 16) & 0xffff; while(len > 0) { /*at least 5550 sums can be done before the sums overflow, saving a lot of module divisions*/ unsigned amount = len > 5550 ? 5550 : len; len -= amount; while(amount > 0) { s1 += (*data++); s2 += s1; --amount; } s1 %= 65521; s2 %= 65521; } return (s2 << 16) | s1; } /*Return the adler32 of the bytes data[0..len-1]*/ static unsigned adler32(const unsigned char* data, unsigned len) { return update_adler32(1L, data, len); } /* ////////////////////////////////////////////////////////////////////////// */ /* / Zlib / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_DECODER unsigned lodepng_zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { unsigned error = 0; unsigned CM, CINFO, FDICT; if(insize < 2) return 53; /*error, size of zlib data too small*/ /*read information from zlib header*/ if((in[0] * 256 + in[1]) % 31 != 0) { /*error: 256 * in[0] + in[1] must be a multiple of 31, the FCHECK value is supposed to be made that way*/ return 24; } CM = in[0] & 15; CINFO = (in[0] >> 4) & 15; /*FCHECK = in[1] & 31;*/ /*FCHECK is already tested above*/ FDICT = (in[1] >> 5) & 1; /*FLEVEL = (in[1] >> 6) & 3;*/ /*FLEVEL is not used here*/ if(CM != 8 || CINFO > 7) { /*error: only compression method 8: inflate with sliding window of 32k is supported by the PNG spec*/ return 25; } if(FDICT != 0) { /*error: the specification of PNG says about the zlib stream: "The additional flags shall not specify a preset dictionary."*/ return 26; } error = inflate(out, outsize, in + 2, insize - 2, settings); if(error) return error; if(!settings->ignore_adler32) { unsigned ADLER32 = lodepng_read32bitInt(&in[insize - 4]); unsigned checksum = adler32(*out, (unsigned)(*outsize)); if(checksum != ADLER32) return 58; /*error, adler checksum not correct, data must be corrupted*/ } return 0; /*no error*/ } static unsigned zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(settings->custom_zlib) { return settings->custom_zlib(out, outsize, in, insize, settings); } else { return lodepng_zlib_decompress(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { /*initially, *out must be NULL and outsize 0, if you just give some random *out that's pointing to a non allocated buffer, this'll crash*/ ucvector outv; size_t i; unsigned error; unsigned char* deflatedata = 0; size_t deflatesize = 0; /*zlib data: 1 byte CMF (CM+CINFO), 1 byte FLG, deflate data, 4 byte ADLER32 checksum of the Decompressed data*/ unsigned CMF = 120; /*0b01111000: CM 8, CINFO 7. With CINFO 7, any window size up to 32768 can be used.*/ unsigned FLEVEL = 0; unsigned FDICT = 0; unsigned CMFFLG = 256 * CMF + FDICT * 32 + FLEVEL * 64; unsigned FCHECK = 31 - CMFFLG % 31; CMFFLG += FCHECK; /*ucvector-controlled version of the output buffer, for dynamic array*/ ucvector_init_buffer(&outv, *out, *outsize); ucvector_push_back(&outv, (unsigned char)(CMFFLG >> 8)); ucvector_push_back(&outv, (unsigned char)(CMFFLG & 255)); error = deflate(&deflatedata, &deflatesize, in, insize, settings); if(!error) { unsigned ADLER32 = adler32(in, (unsigned)insize); for(i = 0; i != deflatesize; ++i) ucvector_push_back(&outv, deflatedata[i]); lodepng_free(deflatedata); lodepng_add32bitInt(&outv, ADLER32); } *out = outv.data; *outsize = outv.size; return error; } /* compress using the default or custom zlib function */ static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(settings->custom_zlib) { return settings->custom_zlib(out, outsize, in, insize, settings); } else { return lodepng_zlib_compress(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_ENCODER*/ #else /*no LODEPNG_COMPILE_ZLIB*/ #ifdef LODEPNG_COMPILE_DECODER static unsigned zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(!settings->custom_zlib) return 87; /*no custom zlib function provided */ return settings->custom_zlib(out, outsize, in, insize, settings); } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(!settings->custom_zlib) return 87; /*no custom zlib function provided */ return settings->custom_zlib(out, outsize, in, insize, settings); } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_ENCODER /*this is a good tradeoff between speed and compression ratio*/ #define DEFAULT_WINDOWSIZE 2048 void lodepng_compress_settings_init(LodePNGCompressSettings* settings) { /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/ settings->btype = 2; settings->use_lz77 = 1; settings->windowsize = DEFAULT_WINDOWSIZE; settings->minmatch = 3; settings->nicematch = 128; settings->lazymatching = 1; settings->custom_zlib = 0; settings->custom_deflate = 0; settings->custom_context = 0; } const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0}; #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DECODER void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings) { settings->ignore_adler32 = 0; settings->custom_zlib = 0; settings->custom_inflate = 0; settings->custom_context = 0; } const LodePNGDecompressSettings lodepng_default_decompress_settings = {0, 0, 0, 0}; #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // End of Zlib related code. Begin of PNG related code. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_PNG /* ////////////////////////////////////////////////////////////////////////// */ /* / CRC32 / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifndef LODEPNG_NO_COMPILE_CRC /* CRC polynomial: 0xedb88320 */ static unsigned lodepng_crc32_table[256] = { 0u, 1996959894u, 3993919788u, 2567524794u, 124634137u, 1886057615u, 3915621685u, 2657392035u, 249268274u, 2044508324u, 3772115230u, 2547177864u, 162941995u, 2125561021u, 3887607047u, 2428444049u, 498536548u, 1789927666u, 4089016648u, 2227061214u, 450548861u, 1843258603u, 4107580753u, 2211677639u, 325883990u, 1684777152u, 4251122042u, 2321926636u, 335633487u, 1661365465u, 4195302755u, 2366115317u, 997073096u, 1281953886u, 3579855332u, 2724688242u, 1006888145u, 1258607687u, 3524101629u, 2768942443u, 901097722u, 1119000684u, 3686517206u, 2898065728u, 853044451u, 1172266101u, 3705015759u, 2882616665u, 651767980u, 1373503546u, 3369554304u, 3218104598u, 565507253u, 1454621731u, 3485111705u, 3099436303u, 671266974u, 1594198024u, 3322730930u, 2970347812u, 795835527u, 1483230225u, 3244367275u, 3060149565u, 1994146192u, 31158534u, 2563907772u, 4023717930u, 1907459465u, 112637215u, 2680153253u, 3904427059u, 2013776290u, 251722036u, 2517215374u, 3775830040u, 2137656763u, 141376813u, 2439277719u, 3865271297u, 1802195444u, 476864866u, 2238001368u, 4066508878u, 1812370925u, 453092731u, 2181625025u, 4111451223u, 1706088902u, 314042704u, 2344532202u, 4240017532u, 1658658271u, 366619977u, 2362670323u, 4224994405u, 1303535960u, 984961486u, 2747007092u, 3569037538u, 1256170817u, 1037604311u, 2765210733u, 3554079995u, 1131014506u, 879679996u, 2909243462u, 3663771856u, 1141124467u, 855842277u, 2852801631u, 3708648649u, 1342533948u, 654459306u, 3188396048u, 3373015174u, 1466479909u, 544179635u, 3110523913u, 3462522015u, 1591671054u, 702138776u, 2966460450u, 3352799412u, 1504918807u, 783551873u, 3082640443u, 3233442989u, 3988292384u, 2596254646u, 62317068u, 1957810842u, 3939845945u, 2647816111u, 81470997u, 1943803523u, 3814918930u, 2489596804u, 225274430u, 2053790376u, 3826175755u, 2466906013u, 167816743u, 2097651377u, 4027552580u, 2265490386u, 503444072u, 1762050814u, 4150417245u, 2154129355u, 426522225u, 1852507879u, 4275313526u, 2312317920u, 282753626u, 1742555852u, 4189708143u, 2394877945u, 397917763u, 1622183637u, 3604390888u, 2714866558u, 953729732u, 1340076626u, 3518719985u, 2797360999u, 1068828381u, 1219638859u, 3624741850u, 2936675148u, 906185462u, 1090812512u, 3747672003u, 2825379669u, 829329135u, 1181335161u, 3412177804u, 3160834842u, 628085408u, 1382605366u, 3423369109u, 3138078467u, 570562233u, 1426400815u, 3317316542u, 2998733608u, 733239954u, 1555261956u, 3268935591u, 3050360625u, 752459403u, 1541320221u, 2607071920u, 3965973030u, 1969922972u, 40735498u, 2617837225u, 3943577151u, 1913087877u, 83908371u, 2512341634u, 3803740692u, 2075208622u, 213261112u, 2463272603u, 3855990285u, 2094854071u, 198958881u, 2262029012u, 4057260610u, 1759359992u, 534414190u, 2176718541u, 4139329115u, 1873836001u, 414664567u, 2282248934u, 4279200368u, 1711684554u, 285281116u, 2405801727u, 4167216745u, 1634467795u, 376229701u, 2685067896u, 3608007406u, 1308918612u, 956543938u, 2808555105u, 3495958263u, 1231636301u, 1047427035u, 2932959818u, 3654703836u, 1088359270u, 936918000u, 2847714899u, 3736837829u, 1202900863u, 817233897u, 3183342108u, 3401237130u, 1404277552u, 615818150u, 3134207493u, 3453421203u, 1423857449u, 601450431u, 3009837614u, 3294710456u, 1567103746u, 711928724u, 3020668471u, 3272380065u, 1510334235u, 755167117u }; /*Return the CRC of the bytes buf[0..len-1].*/ unsigned lodepng_crc32(const unsigned char* data, size_t length) { unsigned r = 0xffffffffu; size_t i; for(i = 0; i < length; ++i) { r = lodepng_crc32_table[(r ^ data[i]) & 0xff] ^ (r >> 8); } return r ^ 0xffffffffu; } #else /* !LODEPNG_NO_COMPILE_CRC */ unsigned lodepng_crc32(const unsigned char* data, size_t length); #endif /* !LODEPNG_NO_COMPILE_CRC */ /* ////////////////////////////////////////////////////////////////////////// */ /* / Reading and writing single bits and bytes from/to stream for LodePNG / */ /* ////////////////////////////////////////////////////////////////////////// */ static unsigned char readBitFromReversedStream(size_t* bitpointer, const unsigned char* bitstream) { unsigned char result = (unsigned char)((bitstream[(*bitpointer) >> 3] >> (7 - ((*bitpointer) & 0x7))) & 1); ++(*bitpointer); return result; } static unsigned readBitsFromReversedStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) { unsigned result = 0; size_t i; for(i = 0 ; i < nbits; ++i) { result <<= 1; result |= (unsigned)readBitFromReversedStream(bitpointer, bitstream); } return result; } #ifdef LODEPNG_COMPILE_DECODER static void setBitOfReversedStream0(size_t* bitpointer, unsigned char* bitstream, unsigned char bit) { /*the current bit in bitstream must be 0 for this to work*/ if(bit) { /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/ bitstream[(*bitpointer) >> 3] |= (bit << (7 - ((*bitpointer) & 0x7))); } ++(*bitpointer); } #endif /*LODEPNG_COMPILE_DECODER*/ static void setBitOfReversedStream(size_t* bitpointer, unsigned char* bitstream, unsigned char bit) { /*the current bit in bitstream may be 0 or 1 for this to work*/ if(bit == 0) bitstream[(*bitpointer) >> 3] &= (unsigned char)(~(1 << (7 - ((*bitpointer) & 0x7)))); else bitstream[(*bitpointer) >> 3] |= (1 << (7 - ((*bitpointer) & 0x7))); ++(*bitpointer); } /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG chunks / */ /* ////////////////////////////////////////////////////////////////////////// */ unsigned lodepng_chunk_length(const unsigned char* chunk) { return lodepng_read32bitInt(&chunk[0]); } void lodepng_chunk_type(char type[5], const unsigned char* chunk) { unsigned i; for(i = 0; i != 4; ++i) type[i] = (char)chunk[4 + i]; type[4] = 0; /*null termination char*/ } unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type) { if(strlen(type) != 4) return 0; return (chunk[4] == type[0] && chunk[5] == type[1] && chunk[6] == type[2] && chunk[7] == type[3]); } unsigned char lodepng_chunk_ancillary(const unsigned char* chunk) { return((chunk[4] & 32) != 0); } unsigned char lodepng_chunk_private(const unsigned char* chunk) { return((chunk[6] & 32) != 0); } unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk) { return((chunk[7] & 32) != 0); } unsigned char* lodepng_chunk_data(unsigned char* chunk) { return &chunk[8]; } const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk) { return &chunk[8]; } unsigned lodepng_chunk_check_crc(const unsigned char* chunk) { unsigned length = lodepng_chunk_length(chunk); unsigned CRC = lodepng_read32bitInt(&chunk[length + 8]); /*the CRC is taken of the data and the 4 chunk type letters, not the length*/ unsigned checksum = lodepng_crc32(&chunk[4], length + 4); if(CRC != checksum) return 1; else return 0; } void lodepng_chunk_generate_crc(unsigned char* chunk) { unsigned length = lodepng_chunk_length(chunk); unsigned CRC = lodepng_crc32(&chunk[4], length + 4); lodepng_set32bitInt(chunk + 8 + length, CRC); } unsigned char* lodepng_chunk_next(unsigned char* chunk) { unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; return &chunk[total_chunk_length]; } const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk) { unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; return &chunk[total_chunk_length]; } unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk) { unsigned i; unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; unsigned char *chunk_start, *new_buffer; size_t new_length = (*outlength) + total_chunk_length; if(new_length < total_chunk_length || new_length < (*outlength)) return 77; /*integer overflow happened*/ new_buffer = (unsigned char*)lodepng_realloc(*out, new_length); if(!new_buffer) return 83; /*alloc fail*/ (*out) = new_buffer; (*outlength) = new_length; chunk_start = &(*out)[new_length - total_chunk_length]; for(i = 0; i != total_chunk_length; ++i) chunk_start[i] = chunk[i]; return 0; } unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data) { unsigned i; unsigned char *chunk, *new_buffer; size_t new_length = (*outlength) + length + 12; if(new_length < length + 12 || new_length < (*outlength)) return 77; /*integer overflow happened*/ new_buffer = (unsigned char*)lodepng_realloc(*out, new_length); if(!new_buffer) return 83; /*alloc fail*/ (*out) = new_buffer; (*outlength) = new_length; chunk = &(*out)[(*outlength) - length - 12]; /*1: length*/ lodepng_set32bitInt(chunk, (unsigned)length); /*2: chunk name (4 letters)*/ chunk[4] = (unsigned char)type[0]; chunk[5] = (unsigned char)type[1]; chunk[6] = (unsigned char)type[2]; chunk[7] = (unsigned char)type[3]; /*3: the data*/ for(i = 0; i != length; ++i) chunk[8 + i] = data[i]; /*4: CRC (of the chunkname characters and the data)*/ lodepng_chunk_generate_crc(chunk); return 0; } /* ////////////////////////////////////////////////////////////////////////// */ /* / Color types and such / */ /* ////////////////////////////////////////////////////////////////////////// */ /*return type is a LodePNG error code*/ static unsigned checkColorValidity(LodePNGColorType colortype, unsigned bd) /*bd = bitdepth*/ { switch(colortype) { case 0: if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 || bd == 16)) return 37; break; /*grey*/ case 2: if(!( bd == 8 || bd == 16)) return 37; break; /*RGB*/ case 3: if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 )) return 37; break; /*palette*/ case 4: if(!( bd == 8 || bd == 16)) return 37; break; /*grey + alpha*/ case 6: if(!( bd == 8 || bd == 16)) return 37; break; /*RGBA*/ default: return 31; } return 0; /*allowed color type / bits combination*/ } static unsigned getNumColorChannels(LodePNGColorType colortype) { switch(colortype) { case 0: return 1; /*grey*/ case 2: return 3; /*RGB*/ case 3: return 1; /*palette*/ case 4: return 2; /*grey + alpha*/ case 6: return 4; /*RGBA*/ } return 0; /*unexisting color type*/ } static unsigned lodepng_get_bpp_lct(LodePNGColorType colortype, unsigned bitdepth) { /*bits per pixel is amount of channels * bits per channel*/ return getNumColorChannels(colortype) * bitdepth; } /* ////////////////////////////////////////////////////////////////////////// */ void lodepng_color_mode_init(LodePNGColorMode* info) { info->key_defined = 0; info->key_r = info->key_g = info->key_b = 0; info->colortype = LCT_RGBA; info->bitdepth = 8; info->palette = 0; info->palettesize = 0; } void lodepng_color_mode_cleanup(LodePNGColorMode* info) { lodepng_palette_clear(info); } unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source) { size_t i; lodepng_color_mode_cleanup(dest); *dest = *source; if(source->palette) { dest->palette = (unsigned char*)lodepng_malloc(1024); if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ for(i = 0; i != source->palettesize * 4; ++i) dest->palette[i] = source->palette[i]; } return 0; } static int lodepng_color_mode_equal(const LodePNGColorMode* a, const LodePNGColorMode* b) { size_t i; if(a->colortype != b->colortype) return 0; if(a->bitdepth != b->bitdepth) return 0; if(a->key_defined != b->key_defined) return 0; if(a->key_defined) { if(a->key_r != b->key_r) return 0; if(a->key_g != b->key_g) return 0; if(a->key_b != b->key_b) return 0; } /*if one of the palette sizes is 0, then we consider it to be the same as the other: it means that e.g. the palette was not given by the user and should be considered the same as the palette inside the PNG.*/ if(1/*a->palettesize != 0 && b->palettesize != 0*/) { if(a->palettesize != b->palettesize) return 0; for(i = 0; i != a->palettesize * 4; ++i) { if(a->palette[i] != b->palette[i]) return 0; } } return 1; } void lodepng_palette_clear(LodePNGColorMode* info) { if(info->palette) lodepng_free(info->palette); info->palette = 0; info->palettesize = 0; } unsigned lodepng_palette_add(LodePNGColorMode* info, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { unsigned char* data; /*the same resize technique as C++ std::vectors is used, and here it's made so that for a palette with the max of 256 colors, it'll have the exact alloc size*/ if(!info->palette) /*allocate palette if empty*/ { /*room for 256 colors with 4 bytes each*/ data = (unsigned char*)lodepng_realloc(info->palette, 1024); if(!data) return 83; /*alloc fail*/ else info->palette = data; } info->palette[4 * info->palettesize + 0] = r; info->palette[4 * info->palettesize + 1] = g; info->palette[4 * info->palettesize + 2] = b; info->palette[4 * info->palettesize + 3] = a; ++info->palettesize; return 0; } unsigned lodepng_get_bpp(const LodePNGColorMode* info) { /*calculate bits per pixel out of colortype and bitdepth*/ return lodepng_get_bpp_lct(info->colortype, info->bitdepth); } unsigned lodepng_get_channels(const LodePNGColorMode* info) { return getNumColorChannels(info->colortype); } unsigned lodepng_is_greyscale_type(const LodePNGColorMode* info) { return info->colortype == LCT_GREY || info->colortype == LCT_GREY_ALPHA; } unsigned lodepng_is_alpha_type(const LodePNGColorMode* info) { return (info->colortype & 4) != 0; /*4 or 6*/ } unsigned lodepng_is_palette_type(const LodePNGColorMode* info) { return info->colortype == LCT_PALETTE; } unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info) { size_t i; for(i = 0; i != info->palettesize; ++i) { if(info->palette[i * 4 + 3] < 255) return 1; } return 0; } unsigned lodepng_can_have_alpha(const LodePNGColorMode* info) { return info->key_defined || lodepng_is_alpha_type(info) || lodepng_has_palette_alpha(info); } size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp(color); size_t n = w * h; return ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8; } size_t lodepng_get_raw_size_lct(unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp_lct(colortype, bitdepth); size_t n = w * h; return ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8; } #ifdef LODEPNG_COMPILE_PNG #ifdef LODEPNG_COMPILE_DECODER /*in an idat chunk, each scanline is a multiple of 8 bits, unlike the lodepng output buffer*/ static size_t lodepng_get_raw_size_idat(unsigned w, unsigned h, const LodePNGColorMode* color) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp(color); size_t line = ((w / 8) * bpp) + ((w & 7) * bpp + 7) / 8; return h * line; } #endif /*LODEPNG_COMPILE_DECODER*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static void LodePNGUnknownChunks_init(LodePNGInfo* info) { unsigned i; for(i = 0; i != 3; ++i) info->unknown_chunks_data[i] = 0; for(i = 0; i != 3; ++i) info->unknown_chunks_size[i] = 0; } static void LodePNGUnknownChunks_cleanup(LodePNGInfo* info) { unsigned i; for(i = 0; i != 3; ++i) lodepng_free(info->unknown_chunks_data[i]); } static unsigned LodePNGUnknownChunks_copy(LodePNGInfo* dest, const LodePNGInfo* src) { unsigned i; LodePNGUnknownChunks_cleanup(dest); for(i = 0; i != 3; ++i) { size_t j; dest->unknown_chunks_size[i] = src->unknown_chunks_size[i]; dest->unknown_chunks_data[i] = (unsigned char*)lodepng_malloc(src->unknown_chunks_size[i]); if(!dest->unknown_chunks_data[i] && dest->unknown_chunks_size[i]) return 83; /*alloc fail*/ for(j = 0; j < src->unknown_chunks_size[i]; ++j) { dest->unknown_chunks_data[i][j] = src->unknown_chunks_data[i][j]; } } return 0; } /******************************************************************************/ static void LodePNGText_init(LodePNGInfo* info) { info->text_num = 0; info->text_keys = NULL; info->text_strings = NULL; } static void LodePNGText_cleanup(LodePNGInfo* info) { size_t i; for(i = 0; i != info->text_num; ++i) { string_cleanup(&info->text_keys[i]); string_cleanup(&info->text_strings[i]); } lodepng_free(info->text_keys); lodepng_free(info->text_strings); } static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source) { size_t i = 0; dest->text_keys = 0; dest->text_strings = 0; dest->text_num = 0; for(i = 0; i != source->text_num; ++i) { CERROR_TRY_RETURN(lodepng_add_text(dest, source->text_keys[i], source->text_strings[i])); } return 0; } void lodepng_clear_text(LodePNGInfo* info) { LodePNGText_cleanup(info); } unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str) { char** new_keys = (char**)(lodepng_realloc(info->text_keys, sizeof(char*) * (info->text_num + 1))); char** new_strings = (char**)(lodepng_realloc(info->text_strings, sizeof(char*) * (info->text_num + 1))); if(!new_keys || !new_strings) { lodepng_free(new_keys); lodepng_free(new_strings); return 83; /*alloc fail*/ } ++info->text_num; info->text_keys = new_keys; info->text_strings = new_strings; string_init(&info->text_keys[info->text_num - 1]); string_set(&info->text_keys[info->text_num - 1], key); string_init(&info->text_strings[info->text_num - 1]); string_set(&info->text_strings[info->text_num - 1], str); return 0; } /******************************************************************************/ static void LodePNGIText_init(LodePNGInfo* info) { info->itext_num = 0; info->itext_keys = NULL; info->itext_langtags = NULL; info->itext_transkeys = NULL; info->itext_strings = NULL; } static void LodePNGIText_cleanup(LodePNGInfo* info) { size_t i; for(i = 0; i != info->itext_num; ++i) { string_cleanup(&info->itext_keys[i]); string_cleanup(&info->itext_langtags[i]); string_cleanup(&info->itext_transkeys[i]); string_cleanup(&info->itext_strings[i]); } lodepng_free(info->itext_keys); lodepng_free(info->itext_langtags); lodepng_free(info->itext_transkeys); lodepng_free(info->itext_strings); } static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source) { size_t i = 0; dest->itext_keys = 0; dest->itext_langtags = 0; dest->itext_transkeys = 0; dest->itext_strings = 0; dest->itext_num = 0; for(i = 0; i != source->itext_num; ++i) { CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i], source->itext_transkeys[i], source->itext_strings[i])); } return 0; } void lodepng_clear_itext(LodePNGInfo* info) { LodePNGIText_cleanup(info); } unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, const char* transkey, const char* str) { char** new_keys = (char**)(lodepng_realloc(info->itext_keys, sizeof(char*) * (info->itext_num + 1))); char** new_langtags = (char**)(lodepng_realloc(info->itext_langtags, sizeof(char*) * (info->itext_num + 1))); char** new_transkeys = (char**)(lodepng_realloc(info->itext_transkeys, sizeof(char*) * (info->itext_num + 1))); char** new_strings = (char**)(lodepng_realloc(info->itext_strings, sizeof(char*) * (info->itext_num + 1))); if(!new_keys || !new_langtags || !new_transkeys || !new_strings) { lodepng_free(new_keys); lodepng_free(new_langtags); lodepng_free(new_transkeys); lodepng_free(new_strings); return 83; /*alloc fail*/ } ++info->itext_num; info->itext_keys = new_keys; info->itext_langtags = new_langtags; info->itext_transkeys = new_transkeys; info->itext_strings = new_strings; string_init(&info->itext_keys[info->itext_num - 1]); string_set(&info->itext_keys[info->itext_num - 1], key); string_init(&info->itext_langtags[info->itext_num - 1]); string_set(&info->itext_langtags[info->itext_num - 1], langtag); string_init(&info->itext_transkeys[info->itext_num - 1]); string_set(&info->itext_transkeys[info->itext_num - 1], transkey); string_init(&info->itext_strings[info->itext_num - 1]); string_set(&info->itext_strings[info->itext_num - 1], str); return 0; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ void lodepng_info_init(LodePNGInfo* info) { lodepng_color_mode_init(&info->color); info->interlace_method = 0; info->compression_method = 0; info->filter_method = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS info->background_defined = 0; info->background_r = info->background_g = info->background_b = 0; LodePNGText_init(info); LodePNGIText_init(info); info->time_defined = 0; info->phys_defined = 0; LodePNGUnknownChunks_init(info); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } void lodepng_info_cleanup(LodePNGInfo* info) { lodepng_color_mode_cleanup(&info->color); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS LodePNGText_cleanup(info); LodePNGIText_cleanup(info); LodePNGUnknownChunks_cleanup(info); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source) { lodepng_info_cleanup(dest); *dest = *source; lodepng_color_mode_init(&dest->color); CERROR_TRY_RETURN(lodepng_color_mode_copy(&dest->color, &source->color)); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS CERROR_TRY_RETURN(LodePNGText_copy(dest, source)); CERROR_TRY_RETURN(LodePNGIText_copy(dest, source)); LodePNGUnknownChunks_init(dest); CERROR_TRY_RETURN(LodePNGUnknownChunks_copy(dest, source)); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ return 0; } void lodepng_info_swap(LodePNGInfo* a, LodePNGInfo* b) { LodePNGInfo temp = *a; *a = *b; *b = temp; } /* ////////////////////////////////////////////////////////////////////////// */ /*index: bitgroup index, bits: bitgroup size(1, 2 or 4), in: bitgroup value, out: octet array to add bits to*/ static void addColorBits(unsigned char* out, size_t index, unsigned bits, unsigned in) { unsigned m = bits == 1 ? 7 : bits == 2 ? 3 : 1; /*8 / bits - 1*/ /*p = the partial index in the byte, e.g. with 4 palettebits it is 0 for first half or 1 for second half*/ unsigned p = index & m; in &= (1u << bits) - 1u; /*filter out any other bits of the input value*/ in = in << (bits * (m - p)); if(p == 0) out[index * bits / 8] = in; else out[index * bits / 8] |= in; } typedef struct ColorTree ColorTree; /* One node of a color tree This is the data structure used to count the number of unique colors and to get a palette index for a color. It's like an octree, but because the alpha channel is used too, each node has 16 instead of 8 children. */ struct ColorTree { ColorTree* children[16]; /*up to 16 pointers to ColorTree of next level*/ int index; /*the payload. Only has a meaningful value if this is in the last level*/ }; static void color_tree_init(ColorTree* tree) { int i; for(i = 0; i != 16; ++i) tree->children[i] = 0; tree->index = -1; } static void color_tree_cleanup(ColorTree* tree) { int i; for(i = 0; i != 16; ++i) { if(tree->children[i]) { color_tree_cleanup(tree->children[i]); lodepng_free(tree->children[i]); } } } /*returns -1 if color not present, its index otherwise*/ static int color_tree_get(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { int bit = 0; for(bit = 0; bit < 8; ++bit) { int i = 8 * ((r >> bit) & 1) + 4 * ((g >> bit) & 1) + 2 * ((b >> bit) & 1) + 1 * ((a >> bit) & 1); if(!tree->children[i]) return -1; else tree = tree->children[i]; } return tree ? tree->index : -1; } #ifdef LODEPNG_COMPILE_ENCODER static int color_tree_has(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { return color_tree_get(tree, r, g, b, a) >= 0; } #endif /*LODEPNG_COMPILE_ENCODER*/ /*color is not allowed to already exist. Index should be >= 0 (it's signed to be compatible with using -1 for "doesn't exist")*/ static void color_tree_add(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a, unsigned index) { int bit; for(bit = 0; bit < 8; ++bit) { int i = 8 * ((r >> bit) & 1) + 4 * ((g >> bit) & 1) + 2 * ((b >> bit) & 1) + 1 * ((a >> bit) & 1); if(!tree->children[i]) { tree->children[i] = (ColorTree*)lodepng_malloc(sizeof(ColorTree)); color_tree_init(tree->children[i]); } tree = tree->children[i]; } tree->index = (int)index; } /*put a pixel, given its RGBA color, into image of any color type*/ static unsigned rgba8ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, ColorTree* tree /*for palette*/, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { if(mode->colortype == LCT_GREY) { unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; if(mode->bitdepth == 8) out[i] = grey; else if(mode->bitdepth == 16) out[i * 2 + 0] = out[i * 2 + 1] = grey; else { /*take the most significant bits of grey*/ grey = (grey >> (8 - mode->bitdepth)) & ((1 << mode->bitdepth) - 1); addColorBits(out, i, mode->bitdepth, grey); } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { out[i * 3 + 0] = r; out[i * 3 + 1] = g; out[i * 3 + 2] = b; } else { out[i * 6 + 0] = out[i * 6 + 1] = r; out[i * 6 + 2] = out[i * 6 + 3] = g; out[i * 6 + 4] = out[i * 6 + 5] = b; } } else if(mode->colortype == LCT_PALETTE) { int index = color_tree_get(tree, r, g, b, a); if(index < 0) return 82; /*color not in palette*/ if(mode->bitdepth == 8) out[i] = index; else addColorBits(out, i, mode->bitdepth, (unsigned)index); } else if(mode->colortype == LCT_GREY_ALPHA) { unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; if(mode->bitdepth == 8) { out[i * 2 + 0] = grey; out[i * 2 + 1] = a; } else if(mode->bitdepth == 16) { out[i * 4 + 0] = out[i * 4 + 1] = grey; out[i * 4 + 2] = out[i * 4 + 3] = a; } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { out[i * 4 + 0] = r; out[i * 4 + 1] = g; out[i * 4 + 2] = b; out[i * 4 + 3] = a; } else { out[i * 8 + 0] = out[i * 8 + 1] = r; out[i * 8 + 2] = out[i * 8 + 3] = g; out[i * 8 + 4] = out[i * 8 + 5] = b; out[i * 8 + 6] = out[i * 8 + 7] = a; } } return 0; /*no error*/ } /*put a pixel, given its RGBA16 color, into image of any color 16-bitdepth type*/ static void rgba16ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, unsigned short r, unsigned short g, unsigned short b, unsigned short a) { if(mode->colortype == LCT_GREY) { unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; out[i * 2 + 0] = (grey >> 8) & 255; out[i * 2 + 1] = grey & 255; } else if(mode->colortype == LCT_RGB) { out[i * 6 + 0] = (r >> 8) & 255; out[i * 6 + 1] = r & 255; out[i * 6 + 2] = (g >> 8) & 255; out[i * 6 + 3] = g & 255; out[i * 6 + 4] = (b >> 8) & 255; out[i * 6 + 5] = b & 255; } else if(mode->colortype == LCT_GREY_ALPHA) { unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; out[i * 4 + 0] = (grey >> 8) & 255; out[i * 4 + 1] = grey & 255; out[i * 4 + 2] = (a >> 8) & 255; out[i * 4 + 3] = a & 255; } else if(mode->colortype == LCT_RGBA) { out[i * 8 + 0] = (r >> 8) & 255; out[i * 8 + 1] = r & 255; out[i * 8 + 2] = (g >> 8) & 255; out[i * 8 + 3] = g & 255; out[i * 8 + 4] = (b >> 8) & 255; out[i * 8 + 5] = b & 255; out[i * 8 + 6] = (a >> 8) & 255; out[i * 8 + 7] = a & 255; } } /*Get RGBA8 color of pixel with index i (y * width + x) from the raw image with given color type.*/ static void getPixelColorRGBA8(unsigned char* r, unsigned char* g, unsigned char* b, unsigned char* a, const unsigned char* in, size_t i, const LodePNGColorMode* mode) { if(mode->colortype == LCT_GREY) { if(mode->bitdepth == 8) { *r = *g = *b = in[i]; if(mode->key_defined && *r == mode->key_r) *a = 0; else *a = 255; } else if(mode->bitdepth == 16) { *r = *g = *b = in[i * 2 + 0]; if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; else *a = 255; } else { unsigned highest = ((1U << mode->bitdepth) - 1U); /*highest possible value for this bit depth*/ size_t j = i * mode->bitdepth; unsigned value = readBitsFromReversedStream(&j, in, mode->bitdepth); *r = *g = *b = (value * 255) / highest; if(mode->key_defined && value == mode->key_r) *a = 0; else *a = 255; } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { *r = in[i * 3 + 0]; *g = in[i * 3 + 1]; *b = in[i * 3 + 2]; if(mode->key_defined && *r == mode->key_r && *g == mode->key_g && *b == mode->key_b) *a = 0; else *a = 255; } else { *r = in[i * 6 + 0]; *g = in[i * 6 + 2]; *b = in[i * 6 + 4]; if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256U * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; else *a = 255; } } else if(mode->colortype == LCT_PALETTE) { unsigned index; if(mode->bitdepth == 8) index = in[i]; else { size_t j = i * mode->bitdepth; index = readBitsFromReversedStream(&j, in, mode->bitdepth); } if(index >= mode->palettesize) { /*This is an error according to the PNG spec, but common PNG decoders make it black instead. Done here too, slightly faster due to no error handling needed.*/ *r = *g = *b = 0; *a = 255; } else { *r = mode->palette[index * 4 + 0]; *g = mode->palette[index * 4 + 1]; *b = mode->palette[index * 4 + 2]; *a = mode->palette[index * 4 + 3]; } } else if(mode->colortype == LCT_GREY_ALPHA) { if(mode->bitdepth == 8) { *r = *g = *b = in[i * 2 + 0]; *a = in[i * 2 + 1]; } else { *r = *g = *b = in[i * 4 + 0]; *a = in[i * 4 + 2]; } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { *r = in[i * 4 + 0]; *g = in[i * 4 + 1]; *b = in[i * 4 + 2]; *a = in[i * 4 + 3]; } else { *r = in[i * 8 + 0]; *g = in[i * 8 + 2]; *b = in[i * 8 + 4]; *a = in[i * 8 + 6]; } } } /*Similar to getPixelColorRGBA8, but with all the for loops inside of the color mode test cases, optimized to convert the colors much faster, when converting to RGBA or RGB with 8 bit per cannel. buffer must be RGBA or RGB output with enough memory, if has_alpha is true the output is RGBA. mode has the color mode of the input buffer.*/ static void getPixelColorsRGBA8(unsigned char* buffer, size_t numpixels, unsigned has_alpha, const unsigned char* in, const LodePNGColorMode* mode) { unsigned num_channels = has_alpha ? 4 : 3; size_t i; if(mode->colortype == LCT_GREY) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i]; if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255; } } else if(mode->bitdepth == 16) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 2]; if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r ? 0 : 255; } } else { unsigned highest = ((1U << mode->bitdepth) - 1U); /*highest possible value for this bit depth*/ size_t j = 0; for(i = 0; i != numpixels; ++i, buffer += num_channels) { unsigned value = readBitsFromReversedStream(&j, in, mode->bitdepth); buffer[0] = buffer[1] = buffer[2] = (value * 255) / highest; if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255; } } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 3 + 0]; buffer[1] = in[i * 3 + 1]; buffer[2] = in[i * 3 + 2]; if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r && buffer[1]== mode->key_g && buffer[2] == mode->key_b ? 0 : 255; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 6 + 0]; buffer[1] = in[i * 6 + 2]; buffer[2] = in[i * 6 + 4]; if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256U * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b ? 0 : 255; } } } else if(mode->colortype == LCT_PALETTE) { unsigned index; size_t j = 0; for(i = 0; i != numpixels; ++i, buffer += num_channels) { if(mode->bitdepth == 8) index = in[i]; else index = readBitsFromReversedStream(&j, in, mode->bitdepth); if(index >= mode->palettesize) { /*This is an error according to the PNG spec, but most PNG decoders make it black instead. Done here too, slightly faster due to no error handling needed.*/ buffer[0] = buffer[1] = buffer[2] = 0; if(has_alpha) buffer[3] = 255; } else { buffer[0] = mode->palette[index * 4 + 0]; buffer[1] = mode->palette[index * 4 + 1]; buffer[2] = mode->palette[index * 4 + 2]; if(has_alpha) buffer[3] = mode->palette[index * 4 + 3]; } } } else if(mode->colortype == LCT_GREY_ALPHA) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 2 + 0]; if(has_alpha) buffer[3] = in[i * 2 + 1]; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 4 + 0]; if(has_alpha) buffer[3] = in[i * 4 + 2]; } } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 4 + 0]; buffer[1] = in[i * 4 + 1]; buffer[2] = in[i * 4 + 2]; if(has_alpha) buffer[3] = in[i * 4 + 3]; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 8 + 0]; buffer[1] = in[i * 8 + 2]; buffer[2] = in[i * 8 + 4]; if(has_alpha) buffer[3] = in[i * 8 + 6]; } } } } /*Get RGBA16 color of pixel with index i (y * width + x) from the raw image with given color type, but the given color type must be 16-bit itself.*/ static void getPixelColorRGBA16(unsigned short* r, unsigned short* g, unsigned short* b, unsigned short* a, const unsigned char* in, size_t i, const LodePNGColorMode* mode) { if(mode->colortype == LCT_GREY) { *r = *g = *b = 256 * in[i * 2 + 0] + in[i * 2 + 1]; if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; else *a = 65535; } else if(mode->colortype == LCT_RGB) { *r = 256u * in[i * 6 + 0] + in[i * 6 + 1]; *g = 256u * in[i * 6 + 2] + in[i * 6 + 3]; *b = 256u * in[i * 6 + 4] + in[i * 6 + 5]; if(mode->key_defined && 256u * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256u * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256u * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; else *a = 65535; } else if(mode->colortype == LCT_GREY_ALPHA) { *r = *g = *b = 256u * in[i * 4 + 0] + in[i * 4 + 1]; *a = 256u * in[i * 4 + 2] + in[i * 4 + 3]; } else if(mode->colortype == LCT_RGBA) { *r = 256u * in[i * 8 + 0] + in[i * 8 + 1]; *g = 256u * in[i * 8 + 2] + in[i * 8 + 3]; *b = 256u * in[i * 8 + 4] + in[i * 8 + 5]; *a = 256u * in[i * 8 + 6] + in[i * 8 + 7]; } } unsigned lodepng_convert(unsigned char* out, const unsigned char* in, const LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, unsigned w, unsigned h) { size_t i; ColorTree tree; size_t numpixels = w * h; if(lodepng_color_mode_equal(mode_out, mode_in)) { size_t numbytes = lodepng_get_raw_size(w, h, mode_in); for(i = 0; i != numbytes; ++i) out[i] = in[i]; return 0; } if(mode_out->colortype == LCT_PALETTE) { size_t palettesize = mode_out->palettesize; const unsigned char* palette = mode_out->palette; size_t palsize = 1u << mode_out->bitdepth; /*if the user specified output palette but did not give the values, assume they want the values of the input color type (assuming that one is palette). Note that we never create a new palette ourselves.*/ if(palettesize == 0) { palettesize = mode_in->palettesize; palette = mode_in->palette; } if(palettesize < palsize) palsize = palettesize; color_tree_init(&tree); for(i = 0; i != palsize; ++i) { const unsigned char* p = &palette[i * 4]; color_tree_add(&tree, p[0], p[1], p[2], p[3], i); } } if(mode_in->bitdepth == 16 && mode_out->bitdepth == 16) { for(i = 0; i != numpixels; ++i) { unsigned short r = 0, g = 0, b = 0, a = 0; getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in); rgba16ToPixel(out, i, mode_out, r, g, b, a); } } else if(mode_out->bitdepth == 8 && mode_out->colortype == LCT_RGBA) { getPixelColorsRGBA8(out, numpixels, 1, in, mode_in); } else if(mode_out->bitdepth == 8 && mode_out->colortype == LCT_RGB) { getPixelColorsRGBA8(out, numpixels, 0, in, mode_in); } else { unsigned char r = 0, g = 0, b = 0, a = 0; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode_in); CERROR_TRY_RETURN(rgba8ToPixel(out, i, mode_out, &tree, r, g, b, a)); } } if(mode_out->colortype == LCT_PALETTE) { color_tree_cleanup(&tree); } return 0; /*no error*/ } #ifdef LODEPNG_COMPILE_ENCODER void lodepng_color_profile_init(LodePNGColorProfile* profile) { profile->colored = 0; profile->key = 0; profile->alpha = 0; profile->key_r = profile->key_g = profile->key_b = 0; profile->numcolors = 0; profile->bits = 1; } /*function used for debug purposes with C++*/ /*void printColorProfile(LodePNGColorProfile* p) { std::cout << "colored: " << (int)p->colored << ", "; std::cout << "key: " << (int)p->key << ", "; std::cout << "key_r: " << (int)p->key_r << ", "; std::cout << "key_g: " << (int)p->key_g << ", "; std::cout << "key_b: " << (int)p->key_b << ", "; std::cout << "alpha: " << (int)p->alpha << ", "; std::cout << "numcolors: " << (int)p->numcolors << ", "; std::cout << "bits: " << (int)p->bits << std::endl; }*/ /*Returns how many bits needed to represent given value (max 8 bit)*/ static unsigned getValueRequiredBits(unsigned char value) { if(value == 0 || value == 255) return 1; /*The scaling of 2-bit and 4-bit values uses multiples of 85 and 17*/ if(value % 17 == 0) return value % 85 == 0 ? 2 : 4; return 8; } /*profile must already have been inited with mode. It's ok to set some parameters of profile to done already.*/ unsigned lodepng_get_color_profile(LodePNGColorProfile* profile, const unsigned char* in, unsigned w, unsigned h, const LodePNGColorMode* mode) { unsigned error = 0; size_t i; ColorTree tree; size_t numpixels = w * h; unsigned colored_done = lodepng_is_greyscale_type(mode) ? 1 : 0; unsigned alpha_done = lodepng_can_have_alpha(mode) ? 0 : 1; unsigned numcolors_done = 0; unsigned bpp = lodepng_get_bpp(mode); unsigned bits_done = bpp == 1 ? 1 : 0; unsigned maxnumcolors = 257; unsigned sixteen = 0; if(bpp <= 8) maxnumcolors = bpp == 1 ? 2 : (bpp == 2 ? 4 : (bpp == 4 ? 16 : 256)); color_tree_init(&tree); /*Check if the 16-bit input is truly 16-bit*/ if(mode->bitdepth == 16) { unsigned short r, g, b, a; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if((r & 255) != ((r >> 8) & 255) || (g & 255) != ((g >> 8) & 255) || (b & 255) != ((b >> 8) & 255) || (a & 255) != ((a >> 8) & 255)) /*first and second byte differ*/ { sixteen = 1; break; } } } if(sixteen) { unsigned short r = 0, g = 0, b = 0, a = 0; profile->bits = 16; bits_done = numcolors_done = 1; /*counting colors no longer useful, palette doesn't support 16-bit*/ for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if(!colored_done && (r != g || r != b)) { profile->colored = 1; colored_done = 1; } if(!alpha_done) { unsigned matchkey = (r == profile->key_r && g == profile->key_g && b == profile->key_b); if(a != 65535 && (a != 0 || (profile->key && !matchkey))) { profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } else if(a == 0 && !profile->alpha && !profile->key) { profile->key = 1; profile->key_r = r; profile->key_g = g; profile->key_b = b; } else if(a == 65535 && profile->key && matchkey) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } if(alpha_done && numcolors_done && colored_done && bits_done) break; } if(profile->key && !profile->alpha) { for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if(a != 0 && r == profile->key_r && g == profile->key_g && b == profile->key_b) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } } } else /* < 16-bit */ { unsigned char r = 0, g = 0, b = 0, a = 0; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode); if(!bits_done && profile->bits < 8) { /*only r is checked, < 8 bits is only relevant for greyscale*/ unsigned bits = getValueRequiredBits(r); if(bits > profile->bits) profile->bits = bits; } bits_done = (profile->bits >= bpp); if(!colored_done && (r != g || r != b)) { profile->colored = 1; colored_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no colored modes with less than 8-bit per channel*/ } if(!alpha_done) { unsigned matchkey = (r == profile->key_r && g == profile->key_g && b == profile->key_b); if(a != 255 && (a != 0 || (profile->key && !matchkey))) { profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } else if(a == 0 && !profile->alpha && !profile->key) { profile->key = 1; profile->key_r = r; profile->key_g = g; profile->key_b = b; } else if(a == 255 && profile->key && matchkey) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } } if(!numcolors_done) { if(!color_tree_has(&tree, r, g, b, a)) { color_tree_add(&tree, r, g, b, a, profile->numcolors); if(profile->numcolors < 256) { unsigned char* p = profile->palette; unsigned n = profile->numcolors; p[n * 4 + 0] = r; p[n * 4 + 1] = g; p[n * 4 + 2] = b; p[n * 4 + 3] = a; } ++profile->numcolors; numcolors_done = profile->numcolors >= maxnumcolors; } } if(alpha_done && numcolors_done && colored_done && bits_done) break; } if(profile->key && !profile->alpha) { for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode); if(a != 0 && r == profile->key_r && g == profile->key_g && b == profile->key_b) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } } /*make the profile's key always 16-bit for consistency - repeat each byte twice*/ profile->key_r += (profile->key_r << 8); profile->key_g += (profile->key_g << 8); profile->key_b += (profile->key_b << 8); } color_tree_cleanup(&tree); return error; } /*Automatically chooses color type that gives smallest amount of bits in the output image, e.g. grey if there are only greyscale pixels, palette if there are less than 256 colors, ... Updates values of mode with a potentially smaller color model. mode_out should contain the user chosen color model, but will be overwritten with the new chosen one.*/ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in) { LodePNGColorProfile prof; unsigned error = 0; unsigned i, n, palettebits, grey_ok, palette_ok; lodepng_color_profile_init(&prof); error = lodepng_get_color_profile(&prof, image, w, h, mode_in); if(error) return error; mode_out->key_defined = 0; if(prof.key && w * h <= 16) { prof.alpha = 1; /*too few pixels to justify tRNS chunk overhead*/ if(prof.bits < 8) prof.bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } grey_ok = !prof.colored && !prof.alpha; /*grey without alpha, with potentially low bits*/ n = prof.numcolors; palettebits = n <= 2 ? 1 : (n <= 4 ? 2 : (n <= 16 ? 4 : 8)); palette_ok = n <= 256 && (n * 2 < w * h) && prof.bits <= 8; if(w * h < n * 2) palette_ok = 0; /*don't add palette overhead if image has only a few pixels*/ if(grey_ok && prof.bits <= palettebits) palette_ok = 0; /*grey is less overhead*/ if(palette_ok) { unsigned char* p = prof.palette; lodepng_palette_clear(mode_out); /*remove potential earlier palette*/ for(i = 0; i != prof.numcolors; ++i) { error = lodepng_palette_add(mode_out, p[i * 4 + 0], p[i * 4 + 1], p[i * 4 + 2], p[i * 4 + 3]); if(error) break; } mode_out->colortype = LCT_PALETTE; mode_out->bitdepth = palettebits; if(mode_in->colortype == LCT_PALETTE && mode_in->palettesize >= mode_out->palettesize && mode_in->bitdepth == mode_out->bitdepth) { /*If input should have same palette colors, keep original to preserve its order and prevent conversion*/ lodepng_color_mode_cleanup(mode_out); lodepng_color_mode_copy(mode_out, mode_in); } } else /*8-bit or 16-bit per channel*/ { mode_out->bitdepth = prof.bits; mode_out->colortype = prof.alpha ? (prof.colored ? LCT_RGBA : LCT_GREY_ALPHA) : (prof.colored ? LCT_RGB : LCT_GREY); if(prof.key && !prof.alpha) { unsigned mask = (1u << mode_out->bitdepth) - 1u; /*profile always uses 16-bit, mask converts it*/ mode_out->key_r = prof.key_r & mask; mode_out->key_g = prof.key_g & mask; mode_out->key_b = prof.key_b & mask; mode_out->key_defined = 1; } } return error; } #endif /* #ifdef LODEPNG_COMPILE_ENCODER */ /* Paeth predicter, used by PNG filter type 4 The parameters are of type short, but should come from unsigned chars, the shorts are only needed to make the paeth calculation correct. */ static unsigned char paethPredictor(short a, short b, short c) { short pa = abs(b - c); short pb = abs(a - c); short pc = abs(a + b - c - c); if(pc < pa && pc < pb) return (unsigned char)c; else if(pb < pa) return (unsigned char)b; else return (unsigned char)a; } /*shared values used by multiple Adam7 related functions*/ static const unsigned ADAM7_IX[7] = { 0, 4, 0, 2, 0, 1, 0 }; /*x start values*/ static const unsigned ADAM7_IY[7] = { 0, 0, 4, 0, 2, 0, 1 }; /*y start values*/ static const unsigned ADAM7_DX[7] = { 8, 8, 4, 4, 2, 2, 1 }; /*x delta values*/ static const unsigned ADAM7_DY[7] = { 8, 8, 8, 4, 4, 2, 2 }; /*y delta values*/ /* Outputs various dimensions and positions in the image related to the Adam7 reduced images. passw: output containing the width of the 7 passes passh: output containing the height of the 7 passes filter_passstart: output containing the index of the start and end of each reduced image with filter bytes padded_passstart output containing the index of the start and end of each reduced image when without filter bytes but with padded scanlines passstart: output containing the index of the start and end of each reduced image without padding between scanlines, but still padding between the images w, h: width and height of non-interlaced image bpp: bits per pixel "padded" is only relevant if bpp is less than 8 and a scanline or image does not end at a full byte */ static void Adam7_getpassvalues(unsigned passw[7], unsigned passh[7], size_t filter_passstart[8], size_t padded_passstart[8], size_t passstart[8], unsigned w, unsigned h, unsigned bpp) { /*the passstart values have 8 values: the 8th one indicates the byte after the end of the 7th (= last) pass*/ unsigned i; /*calculate width and height in pixels of each pass*/ for(i = 0; i != 7; ++i) { passw[i] = (w + ADAM7_DX[i] - ADAM7_IX[i] - 1) / ADAM7_DX[i]; passh[i] = (h + ADAM7_DY[i] - ADAM7_IY[i] - 1) / ADAM7_DY[i]; if(passw[i] == 0) passh[i] = 0; if(passh[i] == 0) passw[i] = 0; } filter_passstart[0] = padded_passstart[0] = passstart[0] = 0; for(i = 0; i != 7; ++i) { /*if passw[i] is 0, it's 0 bytes, not 1 (no filtertype-byte)*/ filter_passstart[i + 1] = filter_passstart[i] + ((passw[i] && passh[i]) ? passh[i] * (1 + (passw[i] * bpp + 7) / 8) : 0); /*bits padded if needed to fill full byte at end of each scanline*/ padded_passstart[i + 1] = padded_passstart[i] + passh[i] * ((passw[i] * bpp + 7) / 8); /*only padded at end of reduced image*/ passstart[i + 1] = passstart[i] + (passh[i] * passw[i] * bpp + 7) / 8; } } #ifdef LODEPNG_COMPILE_DECODER /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG Decoder / */ /* ////////////////////////////////////////////////////////////////////////// */ /*read the information from the header and store it in the LodePNGInfo. return value is error*/ unsigned lodepng_inspect(unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { LodePNGInfo* info = &state->info_png; if(insize == 0 || in == 0) { CERROR_RETURN_ERROR(state->error, 48); /*error: the given data is empty*/ } if(insize < 33) { CERROR_RETURN_ERROR(state->error, 27); /*error: the data length is smaller than the length of a PNG header*/ } /*when decoding a new PNG image, make sure all parameters created after previous decoding are reset*/ lodepng_info_cleanup(info); lodepng_info_init(info); if(in[0] != 137 || in[1] != 80 || in[2] != 78 || in[3] != 71 || in[4] != 13 || in[5] != 10 || in[6] != 26 || in[7] != 10) { CERROR_RETURN_ERROR(state->error, 28); /*error: the first 8 bytes are not the correct PNG signature*/ } if(lodepng_chunk_length(in + 8) != 13) { CERROR_RETURN_ERROR(state->error, 94); /*error: header size must be 13 bytes*/ } if(!lodepng_chunk_type_equals(in + 8, "IHDR")) { CERROR_RETURN_ERROR(state->error, 29); /*error: it doesn't start with a IHDR chunk!*/ } /*read the values given in the header*/ *w = lodepng_read32bitInt(&in[16]); *h = lodepng_read32bitInt(&in[20]); info->color.bitdepth = in[24]; info->color.colortype = (LodePNGColorType)in[25]; info->compression_method = in[26]; info->filter_method = in[27]; info->interlace_method = in[28]; if(*w == 0 || *h == 0) { CERROR_RETURN_ERROR(state->error, 93); } if(!state->decoder.ignore_crc) { unsigned CRC = lodepng_read32bitInt(&in[29]); unsigned checksum = lodepng_crc32(&in[12], 17); if(CRC != checksum) { CERROR_RETURN_ERROR(state->error, 57); /*invalid CRC*/ } } /*error: only compression method 0 is allowed in the specification*/ if(info->compression_method != 0) CERROR_RETURN_ERROR(state->error, 32); /*error: only filter method 0 is allowed in the specification*/ if(info->filter_method != 0) CERROR_RETURN_ERROR(state->error, 33); /*error: only interlace methods 0 and 1 exist in the specification*/ if(info->interlace_method > 1) CERROR_RETURN_ERROR(state->error, 34); state->error = checkColorValidity(info->color.colortype, info->color.bitdepth); return state->error; } static unsigned unfilterScanline(unsigned char* recon, const unsigned char* scanline, const unsigned char* precon, size_t bytewidth, unsigned char filterType, size_t length) { /* For PNG filter method 0 unfilter a PNG image scanline by scanline. when the pixels are smaller than 1 byte, the filter works byte per byte (bytewidth = 1) precon is the previous unfiltered scanline, recon the result, scanline the current one the incoming scanlines do NOT include the filtertype byte, that one is given in the parameter filterType instead recon and scanline MAY be the same memory address! precon must be disjoint. */ size_t i; switch(filterType) { case 0: for(i = 0; i != length; ++i) recon[i] = scanline[i]; break; case 1: for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i]; for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + recon[i - bytewidth]; break; case 2: if(precon) { for(i = 0; i != length; ++i) recon[i] = scanline[i] + precon[i]; } else { for(i = 0; i != length; ++i) recon[i] = scanline[i]; } break; case 3: if(precon) { for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i] + (precon[i] >> 1); for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + ((recon[i - bytewidth] + precon[i]) >> 1); } else { for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i]; for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + (recon[i - bytewidth] >> 1); } break; case 4: if(precon) { for(i = 0; i != bytewidth; ++i) { recon[i] = (scanline[i] + precon[i]); /*paethPredictor(0, precon[i], 0) is always precon[i]*/ } for(i = bytewidth; i < length; ++i) { recon[i] = (scanline[i] + paethPredictor(recon[i - bytewidth], precon[i], precon[i - bytewidth])); } } else { for(i = 0; i != bytewidth; ++i) { recon[i] = scanline[i]; } for(i = bytewidth; i < length; ++i) { /*paethPredictor(recon[i - bytewidth], 0, 0) is always recon[i - bytewidth]*/ recon[i] = (scanline[i] + recon[i - bytewidth]); } } break; default: return 36; /*error: unexisting filter type given*/ } return 0; } static unsigned unfilter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { /* For PNG filter method 0 this function unfilters a single image (e.g. without interlacing this is called once, with Adam7 seven times) out must have enough bytes allocated already, in must have the scanlines + 1 filtertype byte per scanline w and h are image dimensions or dimensions of reduced image, bpp is bits per pixel in and out are allowed to be the same memory address (but aren't the same size since in has the extra filter bytes) */ unsigned y; unsigned char* prevline = 0; /*bytewidth is used for filtering, is 1 when bpp < 8, number of bytes per pixel otherwise*/ size_t bytewidth = (bpp + 7) / 8; size_t linebytes = (w * bpp + 7) / 8; for(y = 0; y < h; ++y) { size_t outindex = linebytes * y; size_t inindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ unsigned char filterType = in[inindex]; CERROR_TRY_RETURN(unfilterScanline(&out[outindex], &in[inindex + 1], prevline, bytewidth, filterType, linebytes)); prevline = &out[outindex]; } return 0; } /* in: Adam7 interlaced image, with no padding bits between scanlines, but between reduced images so that each reduced image starts at a byte. out: the same pixels, but re-ordered so that they're now a non-interlaced image with size w*h bpp: bits per pixel out has the following size in bits: w * h * bpp. in is possibly bigger due to padding bits between reduced images. out must be big enough AND must be 0 everywhere if bpp < 8 in the current implementation (because that's likely a little bit faster) NOTE: comments about padding bits are only relevant if bpp < 8 */ static void Adam7_deinterlace(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); if(bpp >= 8) { for(i = 0; i != 7; ++i) { unsigned x, y, b; size_t bytewidth = bpp / 8; for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { size_t pixelinstart = passstart[i] + (y * passw[i] + x) * bytewidth; size_t pixeloutstart = ((ADAM7_IY[i] + y * ADAM7_DY[i]) * w + ADAM7_IX[i] + x * ADAM7_DX[i]) * bytewidth; for(b = 0; b < bytewidth; ++b) { out[pixeloutstart + b] = in[pixelinstart + b]; } } } } else /*bpp < 8: Adam7 with pixels < 8 bit is a bit trickier: with bit pointers*/ { for(i = 0; i != 7; ++i) { unsigned x, y, b; unsigned ilinebits = bpp * passw[i]; unsigned olinebits = bpp * w; size_t obp, ibp; /*bit pointers (for out and in buffer)*/ for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { ibp = (8 * passstart[i]) + (y * ilinebits + x * bpp); obp = (ADAM7_IY[i] + y * ADAM7_DY[i]) * olinebits + (ADAM7_IX[i] + x * ADAM7_DX[i]) * bpp; for(b = 0; b < bpp; ++b) { unsigned char bit = readBitFromReversedStream(&ibp, in); /*note that this function assumes the out buffer is completely 0, use setBitOfReversedStream otherwise*/ setBitOfReversedStream0(&obp, out, bit); } } } } } static void removePaddingBits(unsigned char* out, const unsigned char* in, size_t olinebits, size_t ilinebits, unsigned h) { /* After filtering there are still padding bits if scanlines have non multiple of 8 bit amounts. They need to be removed (except at last scanline of (Adam7-reduced) image) before working with pure image buffers for the Adam7 code, the color convert code and the output to the user. in and out are allowed to be the same buffer, in may also be higher but still overlapping; in must have >= ilinebits*h bits, out must have >= olinebits*h bits, olinebits must be <= ilinebits also used to move bits after earlier such operations happened, e.g. in a sequence of reduced images from Adam7 only useful if (ilinebits - olinebits) is a value in the range 1..7 */ unsigned y; size_t diff = ilinebits - olinebits; size_t ibp = 0, obp = 0; /*input and output bit pointers*/ for(y = 0; y < h; ++y) { size_t x; for(x = 0; x < olinebits; ++x) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } ibp += diff; } } /*out must be buffer big enough to contain full image, and in must contain the full decompressed data from the IDAT chunks (with filter index bytes and possible padding bits) return value is error*/ static unsigned postProcessScanlines(unsigned char* out, unsigned char* in, unsigned w, unsigned h, const LodePNGInfo* info_png) { /* This function converts the filtered-padded-interlaced data into pure 2D image buffer with the PNG's colortype. Steps: *) if no Adam7: 1) unfilter 2) remove padding bits (= posible extra bits per scanline if bpp < 8) *) if adam7: 1) 7x unfilter 2) 7x remove padding bits 3) Adam7_deinterlace NOTE: the in buffer will be overwritten with intermediate data! */ unsigned bpp = lodepng_get_bpp(&info_png->color); if(bpp == 0) return 31; /*error: invalid colortype*/ if(info_png->interlace_method == 0) { if(bpp < 8 && w * bpp != ((w * bpp + 7) / 8) * 8) { CERROR_TRY_RETURN(unfilter(in, in, w, h, bpp)); removePaddingBits(out, in, w * bpp, ((w * bpp + 7) / 8) * 8, h); } /*we can immediately filter into the out buffer, no other steps needed*/ else CERROR_TRY_RETURN(unfilter(out, in, w, h, bpp)); } else /*interlace_method is 1 (Adam7)*/ { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); for(i = 0; i != 7; ++i) { CERROR_TRY_RETURN(unfilter(&in[padded_passstart[i]], &in[filter_passstart[i]], passw[i], passh[i], bpp)); /*TODO: possible efficiency improvement: if in this reduced image the bits fit nicely in 1 scanline, move bytes instead of bits or move not at all*/ if(bpp < 8) { /*remove padding bits in scanlines; after this there still may be padding bits between the different reduced images: each reduced image still starts nicely at a byte*/ removePaddingBits(&in[passstart[i]], &in[padded_passstart[i]], passw[i] * bpp, ((passw[i] * bpp + 7) / 8) * 8, passh[i]); } } Adam7_deinterlace(out, in, w, h, bpp); } return 0; } static unsigned readChunk_PLTE(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned pos = 0, i; if(color->palette) lodepng_free(color->palette); color->palettesize = chunkLength / 3; color->palette = (unsigned char*)lodepng_malloc(4 * color->palettesize); if(!color->palette && color->palettesize) { color->palettesize = 0; return 83; /*alloc fail*/ } if(color->palettesize > 256) return 38; /*error: palette too big*/ for(i = 0; i != color->palettesize; ++i) { color->palette[4 * i + 0] = data[pos++]; /*R*/ color->palette[4 * i + 1] = data[pos++]; /*G*/ color->palette[4 * i + 2] = data[pos++]; /*B*/ color->palette[4 * i + 3] = 255; /*alpha*/ } return 0; /* OK */ } static unsigned readChunk_tRNS(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned i; if(color->colortype == LCT_PALETTE) { /*error: more alpha values given than there are palette entries*/ if(chunkLength > color->palettesize) return 38; for(i = 0; i != chunkLength; ++i) color->palette[4 * i + 3] = data[i]; } else if(color->colortype == LCT_GREY) { /*error: this chunk must be 2 bytes for greyscale image*/ if(chunkLength != 2) return 30; color->key_defined = 1; color->key_r = color->key_g = color->key_b = 256u * data[0] + data[1]; } else if(color->colortype == LCT_RGB) { /*error: this chunk must be 6 bytes for RGB image*/ if(chunkLength != 6) return 41; color->key_defined = 1; color->key_r = 256u * data[0] + data[1]; color->key_g = 256u * data[2] + data[3]; color->key_b = 256u * data[4] + data[5]; } else return 42; /*error: tRNS chunk not allowed for other color models*/ return 0; /* OK */ } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*background color chunk (bKGD)*/ static unsigned readChunk_bKGD(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(info->color.colortype == LCT_PALETTE) { /*error: this chunk must be 1 byte for indexed color image*/ if(chunkLength != 1) return 43; info->background_defined = 1; info->background_r = info->background_g = info->background_b = data[0]; } else if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { /*error: this chunk must be 2 bytes for greyscale image*/ if(chunkLength != 2) return 44; info->background_defined = 1; info->background_r = info->background_g = info->background_b = 256u * data[0] + data[1]; } else if(info->color.colortype == LCT_RGB || info->color.colortype == LCT_RGBA) { /*error: this chunk must be 6 bytes for greyscale image*/ if(chunkLength != 6) return 45; info->background_defined = 1; info->background_r = 256u * data[0] + data[1]; info->background_g = 256u * data[2] + data[3]; info->background_b = 256u * data[4] + data[5]; } return 0; /* OK */ } /*text chunk (tEXt)*/ static unsigned readChunk_tEXt(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { unsigned error = 0; char *key = 0, *str = 0; unsigned i; while(!error) /*not really a while loop, only used to break on error*/ { unsigned length, string2_begin; length = 0; while(length < chunkLength && data[length] != 0) ++length; /*even though it's not allowed by the standard, no error is thrown if there's no null termination char, if the text is empty*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; string2_begin = length + 1; /*skip keyword null terminator*/ length = chunkLength < string2_begin ? 0 : chunkLength - string2_begin; str = (char*)lodepng_malloc(length + 1); if(!str) CERROR_BREAK(error, 83); /*alloc fail*/ str[length] = 0; for(i = 0; i != length; ++i) str[i] = (char)data[string2_begin + i]; error = lodepng_add_text(info, key, str); break; } lodepng_free(key); lodepng_free(str); return error; } /*compressed text chunk (zTXt)*/ static unsigned readChunk_zTXt(LodePNGInfo* info, const LodePNGDecompressSettings* zlibsettings, const unsigned char* data, size_t chunkLength) { unsigned error = 0; unsigned i; unsigned length, string2_begin; char *key = 0; ucvector decoded; ucvector_init(&decoded); while(!error) /*not really a while loop, only used to break on error*/ { for(length = 0; length < chunkLength && data[length] != 0; ++length) ; if(length + 2 >= chunkLength) CERROR_BREAK(error, 75); /*no null termination, corrupt?*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; if(data[length + 1] != 0) CERROR_BREAK(error, 72); /*the 0 byte indicating compression must be 0*/ string2_begin = length + 2; if(string2_begin > chunkLength) CERROR_BREAK(error, 75); /*no null termination, corrupt?*/ length = chunkLength - string2_begin; /*will fail if zlib error, e.g. if length is too small*/ error = zlib_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[string2_begin]), length, zlibsettings); if(error) break; ucvector_push_back(&decoded, 0); error = lodepng_add_text(info, key, (char*)decoded.data); break; } lodepng_free(key); ucvector_cleanup(&decoded); return error; } /*international text chunk (iTXt)*/ static unsigned readChunk_iTXt(LodePNGInfo* info, const LodePNGDecompressSettings* zlibsettings, const unsigned char* data, size_t chunkLength) { unsigned error = 0; unsigned i; unsigned length, begin, compressed; char *key = 0, *langtag = 0, *transkey = 0; ucvector decoded; ucvector_init(&decoded); while(!error) /*not really a while loop, only used to break on error*/ { /*Quick check if the chunk length isn't too small. Even without check it'd still fail with other error checks below if it's too short. This just gives a different error code.*/ if(chunkLength < 5) CERROR_BREAK(error, 30); /*iTXt chunk too short*/ /*read the key*/ for(length = 0; length < chunkLength && data[length] != 0; ++length) ; if(length + 3 >= chunkLength) CERROR_BREAK(error, 75); /*no null termination char, corrupt?*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; /*read the compression method*/ compressed = data[length + 1]; if(data[length + 2] != 0) CERROR_BREAK(error, 72); /*the 0 byte indicating compression must be 0*/ /*even though it's not allowed by the standard, no error is thrown if there's no null termination char, if the text is empty for the next 3 texts*/ /*read the langtag*/ begin = length + 3; length = 0; for(i = begin; i < chunkLength && data[i] != 0; ++i) ++length; langtag = (char*)lodepng_malloc(length + 1); if(!langtag) CERROR_BREAK(error, 83); /*alloc fail*/ langtag[length] = 0; for(i = 0; i != length; ++i) langtag[i] = (char)data[begin + i]; /*read the transkey*/ begin += length + 1; length = 0; for(i = begin; i < chunkLength && data[i] != 0; ++i) ++length; transkey = (char*)lodepng_malloc(length + 1); if(!transkey) CERROR_BREAK(error, 83); /*alloc fail*/ transkey[length] = 0; for(i = 0; i != length; ++i) transkey[i] = (char)data[begin + i]; /*read the actual text*/ begin += length + 1; length = chunkLength < begin ? 0 : chunkLength - begin; if(compressed) { /*will fail if zlib error, e.g. if length is too small*/ error = zlib_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[begin]), length, zlibsettings); if(error) break; if(decoded.allocsize < decoded.size) decoded.allocsize = decoded.size; ucvector_push_back(&decoded, 0); } else { if(!ucvector_resize(&decoded, length + 1)) CERROR_BREAK(error, 83 /*alloc fail*/); decoded.data[length] = 0; for(i = 0; i != length; ++i) decoded.data[i] = data[begin + i]; } error = lodepng_add_itext(info, key, langtag, transkey, (char*)decoded.data); break; } lodepng_free(key); lodepng_free(langtag); lodepng_free(transkey); ucvector_cleanup(&decoded); return error; } static unsigned readChunk_tIME(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(chunkLength != 7) return 73; /*invalid tIME chunk size*/ info->time_defined = 1; info->time.year = 256u * data[0] + data[1]; info->time.month = data[2]; info->time.day = data[3]; info->time.hour = data[4]; info->time.minute = data[5]; info->time.second = data[6]; return 0; /* OK */ } static unsigned readChunk_pHYs(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(chunkLength != 9) return 74; /*invalid pHYs chunk size*/ info->phys_defined = 1; info->phys_x = 16777216u * data[0] + 65536u * data[1] + 256u * data[2] + data[3]; info->phys_y = 16777216u * data[4] + 65536u * data[5] + 256u * data[6] + data[7]; info->phys_unit = data[8]; return 0; /* OK */ } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*read a PNG, the result will be in the same color type as the PNG (hence "generic")*/ static void decodeGeneric(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { unsigned char IEND = 0; const unsigned char* chunk; size_t i; ucvector idat; /*the data from idat chunks*/ ucvector scanlines; size_t predict; size_t numpixels; size_t outsize = 0; /*for unknown chunk order*/ unsigned unknown = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS unsigned critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*provide some proper output values if error will happen*/ *out = 0; state->error = lodepng_inspect(w, h, state, in, insize); /*reads header and resets other parameters in state->info_png*/ if(state->error) return; numpixels = *w * *h; /*multiplication overflow*/ if(*h != 0 && numpixels / *h != *w) CERROR_RETURN(state->error, 92); /*multiplication overflow possible further below. Allows up to 2^31-1 pixel bytes with 16-bit RGBA, the rest is room for filter bytes.*/ if(numpixels > 268435455) CERROR_RETURN(state->error, 92); ucvector_init(&idat); chunk = &in[33]; /*first byte of the first chunk after the header*/ /*loop through the chunks, ignoring unknown chunks and stopping at IEND chunk. IDAT data is put at the start of the in buffer*/ while(!IEND && !state->error) { unsigned chunkLength; const unsigned char* data; /*the data in the chunk*/ /*error: size of the in buffer too small to contain next chunk*/ if((size_t)((chunk - in) + 12) > insize || chunk < in) CERROR_BREAK(state->error, 30); /*length of the data of the chunk, excluding the length bytes, chunk type and CRC bytes*/ chunkLength = lodepng_chunk_length(chunk); /*error: chunk length larger than the max PNG chunk size*/ if(chunkLength > 2147483647) CERROR_BREAK(state->error, 63); if((size_t)((chunk - in) + chunkLength + 12) > insize || (chunk + chunkLength + 12) < in) { CERROR_BREAK(state->error, 64); /*error: size of the in buffer too small to contain next chunk*/ } data = lodepng_chunk_data_const(chunk); /*IDAT chunk, containing compressed image data*/ if(lodepng_chunk_type_equals(chunk, "IDAT")) { size_t oldsize = idat.size; if(!ucvector_resize(&idat, oldsize + chunkLength)) CERROR_BREAK(state->error, 83 /*alloc fail*/); for(i = 0; i != chunkLength; ++i) idat.data[oldsize + i] = data[i]; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS critical_pos = 3; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } /*IEND chunk*/ else if(lodepng_chunk_type_equals(chunk, "IEND")) { IEND = 1; } /*palette chunk (PLTE)*/ else if(lodepng_chunk_type_equals(chunk, "PLTE")) { state->error = readChunk_PLTE(&state->info_png.color, data, chunkLength); if(state->error) break; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS critical_pos = 2; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } /*palette transparency chunk (tRNS)*/ else if(lodepng_chunk_type_equals(chunk, "tRNS")) { state->error = readChunk_tRNS(&state->info_png.color, data, chunkLength); if(state->error) break; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*background color chunk (bKGD)*/ else if(lodepng_chunk_type_equals(chunk, "bKGD")) { state->error = readChunk_bKGD(&state->info_png, data, chunkLength); if(state->error) break; } /*text chunk (tEXt)*/ else if(lodepng_chunk_type_equals(chunk, "tEXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_tEXt(&state->info_png, data, chunkLength); if(state->error) break; } } /*compressed text chunk (zTXt)*/ else if(lodepng_chunk_type_equals(chunk, "zTXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_zTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); if(state->error) break; } } /*international text chunk (iTXt)*/ else if(lodepng_chunk_type_equals(chunk, "iTXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_iTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); if(state->error) break; } } else if(lodepng_chunk_type_equals(chunk, "tIME")) { state->error = readChunk_tIME(&state->info_png, data, chunkLength); if(state->error) break; } else if(lodepng_chunk_type_equals(chunk, "pHYs")) { state->error = readChunk_pHYs(&state->info_png, data, chunkLength); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ else /*it's not an implemented chunk type, so ignore it: skip over the data*/ { /*error: unknown critical chunk (5th bit of first byte of chunk type is 0)*/ if(!lodepng_chunk_ancillary(chunk)) CERROR_BREAK(state->error, 69); unknown = 1; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS if(state->decoder.remember_unknown_chunks) { state->error = lodepng_chunk_append(&state->info_png.unknown_chunks_data[critical_pos - 1], &state->info_png.unknown_chunks_size[critical_pos - 1], chunk); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } if(!state->decoder.ignore_crc && !unknown) /*check CRC if wanted, only on known chunk types*/ { if(lodepng_chunk_check_crc(chunk)) CERROR_BREAK(state->error, 57); /*invalid CRC*/ } if(!IEND) chunk = lodepng_chunk_next_const(chunk); } ucvector_init(&scanlines); /*predict output size, to allocate exact size for output buffer to avoid more dynamic allocation. If the decompressed size does not match the prediction, the image must be corrupt.*/ if(state->info_png.interlace_method == 0) { /*The extra *h is added because this are the filter bytes every scanline starts with*/ predict = lodepng_get_raw_size_idat(*w, *h, &state->info_png.color) + *h; } else { /*Adam-7 interlaced: predicted size is the sum of the 7 sub-images sizes*/ const LodePNGColorMode* color = &state->info_png.color; predict = 0; predict += lodepng_get_raw_size_idat((*w + 7) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3); if(*w > 4) predict += lodepng_get_raw_size_idat((*w + 3) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3); predict += lodepng_get_raw_size_idat((*w + 3) >> 2, (*h + 3) >> 3, color) + ((*h + 3) >> 3); if(*w > 2) predict += lodepng_get_raw_size_idat((*w + 1) >> 2, (*h + 3) >> 2, color) + ((*h + 3) >> 2); predict += lodepng_get_raw_size_idat((*w + 1) >> 1, (*h + 1) >> 2, color) + ((*h + 1) >> 2); if(*w > 1) predict += lodepng_get_raw_size_idat((*w + 0) >> 1, (*h + 1) >> 1, color) + ((*h + 1) >> 1); predict += lodepng_get_raw_size_idat((*w + 0), (*h + 0) >> 1, color) + ((*h + 0) >> 1); } if(!state->error && !ucvector_reserve(&scanlines, predict)) state->error = 83; /*alloc fail*/ if(!state->error) { state->error = zlib_decompress(&scanlines.data, &scanlines.size, idat.data, idat.size, &state->decoder.zlibsettings); if(!state->error && scanlines.size != predict) state->error = 91; /*decompressed size doesn't match prediction*/ } ucvector_cleanup(&idat); if(!state->error) { outsize = lodepng_get_raw_size(*w, *h, &state->info_png.color); *out = (unsigned char*)lodepng_malloc(outsize); if(!*out) state->error = 83; /*alloc fail*/ } if(!state->error) { for(i = 0; i < outsize; i++) (*out)[i] = 0; state->error = postProcessScanlines(*out, scanlines.data, *w, *h, &state->info_png); } ucvector_cleanup(&scanlines); } unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { *out = 0; decodeGeneric(out, w, h, state, in, insize); if(state->error) return state->error; if(!state->decoder.color_convert || lodepng_color_mode_equal(&state->info_raw, &state->info_png.color)) { /*same color type, no copying or converting of data needed*/ /*store the info_png color settings on the info_raw so that the info_raw still reflects what colortype the raw image has to the end user*/ if(!state->decoder.color_convert) { state->error = lodepng_color_mode_copy(&state->info_raw, &state->info_png.color); if(state->error) return state->error; } } else { /*color conversion needed; sort of copy of the data*/ unsigned char* data = *out; size_t outsize; /*TODO: check if this works according to the statement in the documentation: "The converter can convert from greyscale input color type, to 8-bit greyscale or greyscale with alpha"*/ if(!(state->info_raw.colortype == LCT_RGB || state->info_raw.colortype == LCT_RGBA) && !(state->info_raw.bitdepth == 8)) { return 56; /*unsupported color mode conversion*/ } outsize = lodepng_get_raw_size(*w, *h, &state->info_raw); *out = (unsigned char*)lodepng_malloc(outsize); if(!(*out)) { state->error = 83; /*alloc fail*/ } else state->error = lodepng_convert(*out, data, &state->info_raw, &state->info_png.color, *w, *h); lodepng_free(data); } return state->error; } unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) { unsigned error; LodePNGState state; lodepng_state_init(&state); state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; error = lodepng_decode(out, w, h, &state, in, insize); lodepng_state_cleanup(&state); return error; } unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) { return lodepng_decode_memory(out, w, h, in, insize, LCT_RGBA, 8); } unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) { return lodepng_decode_memory(out, w, h, in, insize, LCT_RGB, 8); } #ifdef LODEPNG_COMPILE_DISK unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer = 0; size_t buffersize; unsigned error; error = lodepng_load_file(&buffer, &buffersize, filename); if(!error) error = lodepng_decode_memory(out, w, h, buffer, buffersize, colortype, bitdepth); lodepng_free(buffer); return error; } unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) { return lodepng_decode_file(out, w, h, filename, LCT_RGBA, 8); } unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) { return lodepng_decode_file(out, w, h, filename, LCT_RGB, 8); } #endif /*LODEPNG_COMPILE_DISK*/ void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings) { settings->color_convert = 1; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS settings->read_text_chunks = 1; settings->remember_unknown_chunks = 0; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ settings->ignore_crc = 0; lodepng_decompress_settings_init(&settings->zlibsettings); } #endif /*LODEPNG_COMPILE_DECODER*/ #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) void lodepng_state_init(LodePNGState* state) { #ifdef LODEPNG_COMPILE_DECODER lodepng_decoder_settings_init(&state->decoder); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER lodepng_encoder_settings_init(&state->encoder); #endif /*LODEPNG_COMPILE_ENCODER*/ lodepng_color_mode_init(&state->info_raw); lodepng_info_init(&state->info_png); state->error = 1; } void lodepng_state_cleanup(LodePNGState* state) { lodepng_color_mode_cleanup(&state->info_raw); lodepng_info_cleanup(&state->info_png); } void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source) { lodepng_state_cleanup(dest); *dest = *source; lodepng_color_mode_init(&dest->info_raw); lodepng_info_init(&dest->info_png); dest->error = lodepng_color_mode_copy(&dest->info_raw, &source->info_raw); if(dest->error) return; dest->error = lodepng_info_copy(&dest->info_png, &source->info_png); if(dest->error) return; } #endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */ #ifdef LODEPNG_COMPILE_ENCODER /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG Encoder / */ /* ////////////////////////////////////////////////////////////////////////// */ /*chunkName must be string of 4 characters*/ static unsigned addChunk(ucvector* out, const char* chunkName, const unsigned char* data, size_t length) { CERROR_TRY_RETURN(lodepng_chunk_create(&out->data, &out->size, (unsigned)length, chunkName, data)); out->allocsize = out->size; /*fix the allocsize again*/ return 0; } static void writeSignature(ucvector* out) { /*8 bytes PNG signature, aka the magic bytes*/ ucvector_push_back(out, 137); ucvector_push_back(out, 80); ucvector_push_back(out, 78); ucvector_push_back(out, 71); ucvector_push_back(out, 13); ucvector_push_back(out, 10); ucvector_push_back(out, 26); ucvector_push_back(out, 10); } static unsigned addChunk_IHDR(ucvector* out, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth, unsigned interlace_method) { unsigned error = 0; ucvector header; ucvector_init(&header); lodepng_add32bitInt(&header, w); /*width*/ lodepng_add32bitInt(&header, h); /*height*/ ucvector_push_back(&header, (unsigned char)bitdepth); /*bit depth*/ ucvector_push_back(&header, (unsigned char)colortype); /*color type*/ ucvector_push_back(&header, 0); /*compression method*/ ucvector_push_back(&header, 0); /*filter method*/ ucvector_push_back(&header, interlace_method); /*interlace method*/ error = addChunk(out, "IHDR", header.data, header.size); ucvector_cleanup(&header); return error; } static unsigned addChunk_PLTE(ucvector* out, const LodePNGColorMode* info) { unsigned error = 0; size_t i; ucvector PLTE; ucvector_init(&PLTE); for(i = 0; i != info->palettesize * 4; ++i) { /*add all channels except alpha channel*/ if(i % 4 != 3) ucvector_push_back(&PLTE, info->palette[i]); } error = addChunk(out, "PLTE", PLTE.data, PLTE.size); ucvector_cleanup(&PLTE); return error; } static unsigned addChunk_tRNS(ucvector* out, const LodePNGColorMode* info) { unsigned error = 0; size_t i; ucvector tRNS; ucvector_init(&tRNS); if(info->colortype == LCT_PALETTE) { size_t amount = info->palettesize; /*the tail of palette values that all have 255 as alpha, does not have to be encoded*/ for(i = info->palettesize; i != 0; --i) { if(info->palette[4 * (i - 1) + 3] == 255) --amount; else break; } /*add only alpha channel*/ for(i = 0; i != amount; ++i) ucvector_push_back(&tRNS, info->palette[4 * i + 3]); } else if(info->colortype == LCT_GREY) { if(info->key_defined) { ucvector_push_back(&tRNS, (unsigned char)(info->key_r >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_r & 255)); } } else if(info->colortype == LCT_RGB) { if(info->key_defined) { ucvector_push_back(&tRNS, (unsigned char)(info->key_r >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_r & 255)); ucvector_push_back(&tRNS, (unsigned char)(info->key_g >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_g & 255)); ucvector_push_back(&tRNS, (unsigned char)(info->key_b >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_b & 255)); } } error = addChunk(out, "tRNS", tRNS.data, tRNS.size); ucvector_cleanup(&tRNS); return error; } static unsigned addChunk_IDAT(ucvector* out, const unsigned char* data, size_t datasize, LodePNGCompressSettings* zlibsettings) { ucvector zlibdata; unsigned error = 0; /*compress with the Zlib compressor*/ ucvector_init(&zlibdata); error = zlib_compress(&zlibdata.data, &zlibdata.size, data, datasize, zlibsettings); if(!error) error = addChunk(out, "IDAT", zlibdata.data, zlibdata.size); ucvector_cleanup(&zlibdata); return error; } static unsigned addChunk_IEND(ucvector* out) { unsigned error = 0; error = addChunk(out, "IEND", 0, 0); return error; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static unsigned addChunk_tEXt(ucvector* out, const char* keyword, const char* textstring) { unsigned error = 0; size_t i; ucvector text; ucvector_init(&text); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&text, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&text, 0); /*0 termination char*/ for(i = 0; textstring[i] != 0; ++i) ucvector_push_back(&text, (unsigned char)textstring[i]); error = addChunk(out, "tEXt", text.data, text.size); ucvector_cleanup(&text); return error; } static unsigned addChunk_zTXt(ucvector* out, const char* keyword, const char* textstring, LodePNGCompressSettings* zlibsettings) { unsigned error = 0; ucvector data, compressed; size_t i, textsize = strlen(textstring); ucvector_init(&data); ucvector_init(&compressed); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&data, 0); /*0 termination char*/ ucvector_push_back(&data, 0); /*compression method: 0*/ error = zlib_compress(&compressed.data, &compressed.size, (unsigned char*)textstring, textsize, zlibsettings); if(!error) { for(i = 0; i != compressed.size; ++i) ucvector_push_back(&data, compressed.data[i]); error = addChunk(out, "zTXt", data.data, data.size); } ucvector_cleanup(&compressed); ucvector_cleanup(&data); return error; } static unsigned addChunk_iTXt(ucvector* out, unsigned compressed, const char* keyword, const char* langtag, const char* transkey, const char* textstring, LodePNGCompressSettings* zlibsettings) { unsigned error = 0; ucvector data; size_t i, textsize = strlen(textstring); ucvector_init(&data); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&data, 0); /*null termination char*/ ucvector_push_back(&data, compressed ? 1 : 0); /*compression flag*/ ucvector_push_back(&data, 0); /*compression method*/ for(i = 0; langtag[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)langtag[i]); ucvector_push_back(&data, 0); /*null termination char*/ for(i = 0; transkey[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)transkey[i]); ucvector_push_back(&data, 0); /*null termination char*/ if(compressed) { ucvector compressed_data; ucvector_init(&compressed_data); error = zlib_compress(&compressed_data.data, &compressed_data.size, (unsigned char*)textstring, textsize, zlibsettings); if(!error) { for(i = 0; i != compressed_data.size; ++i) ucvector_push_back(&data, compressed_data.data[i]); } ucvector_cleanup(&compressed_data); } else /*not compressed*/ { for(i = 0; textstring[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)textstring[i]); } if(!error) error = addChunk(out, "iTXt", data.data, data.size); ucvector_cleanup(&data); return error; } static unsigned addChunk_bKGD(ucvector* out, const LodePNGInfo* info) { unsigned error = 0; ucvector bKGD; ucvector_init(&bKGD); if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); } else if(info->color.colortype == LCT_RGB || info->color.colortype == LCT_RGBA) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); ucvector_push_back(&bKGD, (unsigned char)(info->background_g >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_g & 255)); ucvector_push_back(&bKGD, (unsigned char)(info->background_b >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_b & 255)); } else if(info->color.colortype == LCT_PALETTE) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); /*palette index*/ } error = addChunk(out, "bKGD", bKGD.data, bKGD.size); ucvector_cleanup(&bKGD); return error; } static unsigned addChunk_tIME(ucvector* out, const LodePNGTime* time) { unsigned error = 0; unsigned char* data = (unsigned char*)lodepng_malloc(7); if(!data) return 83; /*alloc fail*/ data[0] = (unsigned char)(time->year >> 8); data[1] = (unsigned char)(time->year & 255); data[2] = (unsigned char)time->month; data[3] = (unsigned char)time->day; data[4] = (unsigned char)time->hour; data[5] = (unsigned char)time->minute; data[6] = (unsigned char)time->second; error = addChunk(out, "tIME", data, 7); lodepng_free(data); return error; } static unsigned addChunk_pHYs(ucvector* out, const LodePNGInfo* info) { unsigned error = 0; ucvector data; ucvector_init(&data); lodepng_add32bitInt(&data, info->phys_x); lodepng_add32bitInt(&data, info->phys_y); ucvector_push_back(&data, info->phys_unit); error = addChunk(out, "pHYs", data.data, data.size); ucvector_cleanup(&data); return error; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ static void filterScanline(unsigned char* out, const unsigned char* scanline, const unsigned char* prevline, size_t length, size_t bytewidth, unsigned char filterType) { size_t i; switch(filterType) { case 0: /*None*/ for(i = 0; i != length; ++i) out[i] = scanline[i]; break; case 1: /*Sub*/ for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - scanline[i - bytewidth]; break; case 2: /*Up*/ if(prevline) { for(i = 0; i != length; ++i) out[i] = scanline[i] - prevline[i]; } else { for(i = 0; i != length; ++i) out[i] = scanline[i]; } break; case 3: /*Average*/ if(prevline) { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i] - (prevline[i] >> 1); for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - ((scanline[i - bytewidth] + prevline[i]) >> 1); } else { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - (scanline[i - bytewidth] >> 1); } break; case 4: /*Paeth*/ if(prevline) { /*paethPredictor(0, prevline[i], 0) is always prevline[i]*/ for(i = 0; i != bytewidth; ++i) out[i] = (scanline[i] - prevline[i]); for(i = bytewidth; i < length; ++i) { out[i] = (scanline[i] - paethPredictor(scanline[i - bytewidth], prevline[i], prevline[i - bytewidth])); } } else { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; /*paethPredictor(scanline[i - bytewidth], 0, 0) is always scanline[i - bytewidth]*/ for(i = bytewidth; i < length; ++i) out[i] = (scanline[i] - scanline[i - bytewidth]); } break; default: return; /*unexisting filter type given*/ } } /* log2 approximation. A slight bit faster than std::log. */ static float flog2(float f) { float result = 0; while(f > 32) { result += 4; f /= 16; } while(f > 2) { ++result; f /= 2; } return result + 1.442695f * (f * f * f / 3 - 3 * f * f / 2 + 3 * f - 1.83333f); } static unsigned filter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, const LodePNGColorMode* info, const LodePNGEncoderSettings* settings) { /* For PNG filter method 0 out must be a buffer with as size: h + (w * h * bpp + 7) / 8, because there are the scanlines with 1 extra byte per scanline */ unsigned bpp = lodepng_get_bpp(info); /*the width of a scanline in bytes, not including the filter type*/ size_t linebytes = (w * bpp + 7) / 8; /*bytewidth is used for filtering, is 1 when bpp < 8, number of bytes per pixel otherwise*/ size_t bytewidth = (bpp + 7) / 8; const unsigned char* prevline = 0; unsigned x, y; unsigned error = 0; LodePNGFilterStrategy strategy = settings->filter_strategy; /* There is a heuristic called the minimum sum of absolute differences heuristic, suggested by the PNG standard: * If the image type is Palette, or the bit depth is smaller than 8, then do not filter the image (i.e. use fixed filtering, with the filter None). * (The other case) If the image type is Grayscale or RGB (with or without Alpha), and the bit depth is not smaller than 8, then use adaptive filtering heuristic as follows: independently for each row, apply all five filters and select the filter that produces the smallest sum of absolute values per row. This heuristic is used if filter strategy is LFS_MINSUM and filter_palette_zero is true. If filter_palette_zero is true and filter_strategy is not LFS_MINSUM, the above heuristic is followed, but for "the other case", whatever strategy filter_strategy is set to instead of the minimum sum heuristic is used. */ if(settings->filter_palette_zero && (info->colortype == LCT_PALETTE || info->bitdepth < 8)) strategy = LFS_ZERO; if(bpp == 0) return 31; /*error: invalid color type*/ if(strategy == LFS_ZERO) { for(y = 0; y != h; ++y) { size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ size_t inindex = linebytes * y; out[outindex] = 0; /*filter type byte*/ filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, 0); prevline = &in[inindex]; } } else if(strategy == LFS_MINSUM) { /*adaptive filtering*/ size_t sum[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ size_t smallest = 0; unsigned char type, bestType = 0; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } if(!error) { for(y = 0; y != h; ++y) { /*try the 5 filter types*/ for(type = 0; type != 5; ++type) { filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); /*calculate the sum of the result*/ sum[type] = 0; if(type == 0) { for(x = 0; x != linebytes; ++x) sum[type] += (unsigned char)(attempt[type][x]); } else { for(x = 0; x != linebytes; ++x) { /*For differences, each byte should be treated as signed, values above 127 are negative (converted to signed char). Filtertype 0 isn't a difference though, so use unsigned there. This means filtertype 0 is almost never chosen, but that is justified.*/ unsigned char s = attempt[type][x]; sum[type] += s < 128 ? s : (255U - s); } } /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || sum[type] < smallest) { bestType = type; smallest = sum[type]; } } prevline = &in[y * linebytes]; /*now fill the out values*/ out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else if(strategy == LFS_ENTROPY) { float sum[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ float smallest = 0; unsigned type, bestType = 0; unsigned count[256]; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } for(y = 0; y != h; ++y) { /*try the 5 filter types*/ for(type = 0; type != 5; ++type) { filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); for(x = 0; x != 256; ++x) count[x] = 0; for(x = 0; x != linebytes; ++x) ++count[attempt[type][x]]; ++count[type]; /*the filter type itself is part of the scanline*/ sum[type] = 0; for(x = 0; x != 256; ++x) { float p = count[x] / (float)(linebytes + 1); sum[type] += count[x] == 0 ? 0 : flog2(1 / p) * p; } /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || sum[type] < smallest) { bestType = type; smallest = sum[type]; } } prevline = &in[y * linebytes]; /*now fill the out values*/ out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else if(strategy == LFS_PREDEFINED) { for(y = 0; y != h; ++y) { size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ size_t inindex = linebytes * y; unsigned char type = settings->predefined_filters[y]; out[outindex] = type; /*filter type byte*/ filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, type); prevline = &in[inindex]; } } else if(strategy == LFS_BRUTE_FORCE) { /*brute force filter chooser. deflate the scanline after every filter attempt to see which one deflates best. This is very slow and gives only slightly smaller, sometimes even larger, result*/ size_t size[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ size_t smallest = 0; unsigned type = 0, bestType = 0; unsigned char* dummy; LodePNGCompressSettings zlibsettings = settings->zlibsettings; /*use fixed tree on the attempts so that the tree is not adapted to the filtertype on purpose, to simulate the true case where the tree is the same for the whole image. Sometimes it gives better result with dynamic tree anyway. Using the fixed tree sometimes gives worse, but in rare cases better compression. It does make this a bit less slow, so it's worth doing this.*/ zlibsettings.btype = 1; /*a custom encoder likely doesn't read the btype setting and is optimized for complete PNG images only, so disable it*/ zlibsettings.custom_zlib = 0; zlibsettings.custom_deflate = 0; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } for(y = 0; y != h; ++y) /*try the 5 filter types*/ { for(type = 0; type != 5; ++type) { unsigned testsize = linebytes; /*if(testsize > 8) testsize /= 8;*/ /*it already works good enough by testing a part of the row*/ filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); size[type] = 0; dummy = 0; zlib_compress(&dummy, &size[type], attempt[type], testsize, &zlibsettings); lodepng_free(dummy); /*check if this is smallest size (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || size[type] < smallest) { bestType = type; smallest = size[type]; } } prevline = &in[y * linebytes]; out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else return 88; /* unknown filter strategy */ return error; } static void addPaddingBits(unsigned char* out, const unsigned char* in, size_t olinebits, size_t ilinebits, unsigned h) { /*The opposite of the removePaddingBits function olinebits must be >= ilinebits*/ unsigned y; size_t diff = olinebits - ilinebits; size_t obp = 0, ibp = 0; /*bit pointers*/ for(y = 0; y != h; ++y) { size_t x; for(x = 0; x < ilinebits; ++x) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } /*obp += diff; --> no, fill in some value in the padding bits too, to avoid "Use of uninitialised value of size ###" warning from valgrind*/ for(x = 0; x != diff; ++x) setBitOfReversedStream(&obp, out, 0); } } /* in: non-interlaced image with size w*h out: the same pixels, but re-ordered according to PNG's Adam7 interlacing, with no padding bits between scanlines, but between reduced images so that each reduced image starts at a byte. bpp: bits per pixel there are no padding bits, not between scanlines, not between reduced images in has the following size in bits: w * h * bpp. out is possibly bigger due to padding bits between reduced images NOTE: comments about padding bits are only relevant if bpp < 8 */ static void Adam7_interlace(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); if(bpp >= 8) { for(i = 0; i != 7; ++i) { unsigned x, y, b; size_t bytewidth = bpp / 8; for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { size_t pixelinstart = ((ADAM7_IY[i] + y * ADAM7_DY[i]) * w + ADAM7_IX[i] + x * ADAM7_DX[i]) * bytewidth; size_t pixeloutstart = passstart[i] + (y * passw[i] + x) * bytewidth; for(b = 0; b < bytewidth; ++b) { out[pixeloutstart + b] = in[pixelinstart + b]; } } } } else /*bpp < 8: Adam7 with pixels < 8 bit is a bit trickier: with bit pointers*/ { for(i = 0; i != 7; ++i) { unsigned x, y, b; unsigned ilinebits = bpp * passw[i]; unsigned olinebits = bpp * w; size_t obp, ibp; /*bit pointers (for out and in buffer)*/ for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { ibp = (ADAM7_IY[i] + y * ADAM7_DY[i]) * olinebits + (ADAM7_IX[i] + x * ADAM7_DX[i]) * bpp; obp = (8 * passstart[i]) + (y * ilinebits + x * bpp); for(b = 0; b < bpp; ++b) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } } } } } /*out must be buffer big enough to contain uncompressed IDAT chunk data, and in must contain the full image. return value is error**/ static unsigned preProcessScanlines(unsigned char** out, size_t* outsize, const unsigned char* in, unsigned w, unsigned h, const LodePNGInfo* info_png, const LodePNGEncoderSettings* settings) { /* This function converts the pure 2D image with the PNG's colortype, into filtered-padded-interlaced data. Steps: *) if no Adam7: 1) add padding bits (= posible extra bits per scanline if bpp < 8) 2) filter *) if adam7: 1) Adam7_interlace 2) 7x add padding bits 3) 7x filter */ unsigned bpp = lodepng_get_bpp(&info_png->color); unsigned error = 0; if(info_png->interlace_method == 0) { *outsize = h + (h * ((w * bpp + 7) / 8)); /*image size plus an extra byte per scanline + possible padding bits*/ *out = (unsigned char*)lodepng_malloc(*outsize); if(!(*out) && (*outsize)) error = 83; /*alloc fail*/ if(!error) { /*non multiple of 8 bits per scanline, padding bits needed per scanline*/ if(bpp < 8 && w * bpp != ((w * bpp + 7) / 8) * 8) { unsigned char* padded = (unsigned char*)lodepng_malloc(h * ((w * bpp + 7) / 8)); if(!padded) error = 83; /*alloc fail*/ if(!error) { addPaddingBits(padded, in, ((w * bpp + 7) / 8) * 8, w * bpp, h); error = filter(*out, padded, w, h, &info_png->color, settings); } lodepng_free(padded); } else { /*we can immediately filter into the out buffer, no other steps needed*/ error = filter(*out, in, w, h, &info_png->color, settings); } } } else /*interlace_method is 1 (Adam7)*/ { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned char* adam7; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); *outsize = filter_passstart[7]; /*image size plus an extra byte per scanline + possible padding bits*/ *out = (unsigned char*)lodepng_malloc(*outsize); if(!(*out)) error = 83; /*alloc fail*/ adam7 = (unsigned char*)lodepng_malloc(passstart[7]); if(!adam7 && passstart[7]) error = 83; /*alloc fail*/ if(!error) { unsigned i; Adam7_interlace(adam7, in, w, h, bpp); for(i = 0; i != 7; ++i) { if(bpp < 8) { unsigned char* padded = (unsigned char*)lodepng_malloc(padded_passstart[i + 1] - padded_passstart[i]); if(!padded) ERROR_BREAK(83); /*alloc fail*/ addPaddingBits(padded, &adam7[passstart[i]], ((passw[i] * bpp + 7) / 8) * 8, passw[i] * bpp, passh[i]); error = filter(&(*out)[filter_passstart[i]], padded, passw[i], passh[i], &info_png->color, settings); lodepng_free(padded); } else { error = filter(&(*out)[filter_passstart[i]], &adam7[padded_passstart[i]], passw[i], passh[i], &info_png->color, settings); } if(error) break; } } lodepng_free(adam7); } return error; } /* palette must have 4 * palettesize bytes allocated, and given in format RGBARGBARGBARGBA... returns 0 if the palette is opaque, returns 1 if the palette has a single color with alpha 0 ==> color key returns 2 if the palette is semi-translucent. */ static unsigned getPaletteTranslucency(const unsigned char* palette, size_t palettesize) { size_t i; unsigned key = 0; unsigned r = 0, g = 0, b = 0; /*the value of the color with alpha 0, so long as color keying is possible*/ for(i = 0; i != palettesize; ++i) { if(!key && palette[4 * i + 3] == 0) { r = palette[4 * i + 0]; g = palette[4 * i + 1]; b = palette[4 * i + 2]; key = 1; i = (size_t)(-1); /*restart from beginning, to detect earlier opaque colors with key's value*/ } else if(palette[4 * i + 3] != 255) return 2; /*when key, no opaque RGB may have key's RGB*/ else if(key && r == palette[i * 4 + 0] && g == palette[i * 4 + 1] && b == palette[i * 4 + 2]) return 2; } return key; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static unsigned addUnknownChunks(ucvector* out, unsigned char* data, size_t datasize) { unsigned char* inchunk = data; while((size_t)(inchunk - data) < datasize) { CERROR_TRY_RETURN(lodepng_chunk_append(&out->data, &out->size, inchunk)); out->allocsize = out->size; /*fix the allocsize again*/ inchunk = lodepng_chunk_next(inchunk); } return 0; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ unsigned lodepng_encode(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGState* state) { LodePNGInfo info; ucvector outv; unsigned char* data = 0; /*uncompressed version of the IDAT chunk data*/ size_t datasize = 0; /*provide some proper output values if error will happen*/ *out = 0; *outsize = 0; state->error = 0; lodepng_info_init(&info); lodepng_info_copy(&info, &state->info_png); if((info.color.colortype == LCT_PALETTE || state->encoder.force_palette) && (info.color.palettesize == 0 || info.color.palettesize > 256)) { state->error = 68; /*invalid palette size, it is only allowed to be 1-256*/ return state->error; } if(state->encoder.auto_convert) { state->error = lodepng_auto_choose_color(&info.color, image, w, h, &state->info_raw); } if(state->error) return state->error; if(state->encoder.zlibsettings.btype > 2) { CERROR_RETURN_ERROR(state->error, 61); /*error: unexisting btype*/ } if(state->info_png.interlace_method > 1) { CERROR_RETURN_ERROR(state->error, 71); /*error: unexisting interlace mode*/ } state->error = checkColorValidity(info.color.colortype, info.color.bitdepth); if(state->error) return state->error; /*error: unexisting color type given*/ state->error = checkColorValidity(state->info_raw.colortype, state->info_raw.bitdepth); if(state->error) return state->error; /*error: unexisting color type given*/ if(!lodepng_color_mode_equal(&state->info_raw, &info.color)) { unsigned char* converted; size_t size = (w * h * (size_t)lodepng_get_bpp(&info.color) + 7) / 8; converted = (unsigned char*)lodepng_malloc(size); if(!converted && size) state->error = 83; /*alloc fail*/ if(!state->error) { state->error = lodepng_convert(converted, image, &info.color, &state->info_raw, w, h); } if(!state->error) preProcessScanlines(&data, &datasize, converted, w, h, &info, &state->encoder); lodepng_free(converted); } else preProcessScanlines(&data, &datasize, image, w, h, &info, &state->encoder); ucvector_init(&outv); while(!state->error) /*while only executed once, to break on error*/ { #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS size_t i; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*write signature and chunks*/ writeSignature(&outv); /*IHDR*/ addChunk_IHDR(&outv, w, h, info.color.colortype, info.color.bitdepth, info.interlace_method); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*unknown chunks between IHDR and PLTE*/ if(info.unknown_chunks_data[0]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[0], info.unknown_chunks_size[0]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*PLTE*/ if(info.color.colortype == LCT_PALETTE) { addChunk_PLTE(&outv, &info.color); } if(state->encoder.force_palette && (info.color.colortype == LCT_RGB || info.color.colortype == LCT_RGBA)) { addChunk_PLTE(&outv, &info.color); } /*tRNS*/ if(info.color.colortype == LCT_PALETTE && getPaletteTranslucency(info.color.palette, info.color.palettesize) != 0) { addChunk_tRNS(&outv, &info.color); } if((info.color.colortype == LCT_GREY || info.color.colortype == LCT_RGB) && info.color.key_defined) { addChunk_tRNS(&outv, &info.color); } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*bKGD (must come between PLTE and the IDAt chunks*/ if(info.background_defined) addChunk_bKGD(&outv, &info); /*pHYs (must come before the IDAT chunks)*/ if(info.phys_defined) addChunk_pHYs(&outv, &info); /*unknown chunks between PLTE and IDAT*/ if(info.unknown_chunks_data[1]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[1], info.unknown_chunks_size[1]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*IDAT (multiple IDAT chunks must be consecutive)*/ state->error = addChunk_IDAT(&outv, data, datasize, &state->encoder.zlibsettings); if(state->error) break; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*tIME*/ if(info.time_defined) addChunk_tIME(&outv, &info.time); /*tEXt and/or zTXt*/ for(i = 0; i != info.text_num; ++i) { if(strlen(info.text_keys[i]) > 79) { state->error = 66; /*text chunk too large*/ break; } if(strlen(info.text_keys[i]) < 1) { state->error = 67; /*text chunk too small*/ break; } if(state->encoder.text_compression) { addChunk_zTXt(&outv, info.text_keys[i], info.text_strings[i], &state->encoder.zlibsettings); } else { addChunk_tEXt(&outv, info.text_keys[i], info.text_strings[i]); } } /*LodePNG version id in text chunk*/ if(state->encoder.add_id) { unsigned alread_added_id_text = 0; for(i = 0; i != info.text_num; ++i) { if(!strcmp(info.text_keys[i], "LodePNG")) { alread_added_id_text = 1; break; } } if(alread_added_id_text == 0) { addChunk_tEXt(&outv, "LodePNG", LODEPNG_VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/ } } /*iTXt*/ for(i = 0; i != info.itext_num; ++i) { if(strlen(info.itext_keys[i]) > 79) { state->error = 66; /*text chunk too large*/ break; } if(strlen(info.itext_keys[i]) < 1) { state->error = 67; /*text chunk too small*/ break; } addChunk_iTXt(&outv, state->encoder.text_compression, info.itext_keys[i], info.itext_langtags[i], info.itext_transkeys[i], info.itext_strings[i], &state->encoder.zlibsettings); } /*unknown chunks between IDAT and IEND*/ if(info.unknown_chunks_data[2]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[2], info.unknown_chunks_size[2]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ addChunk_IEND(&outv); break; /*this isn't really a while loop; no error happened so break out now!*/ } lodepng_info_cleanup(&info); lodepng_free(data); /*instead of cleaning the vector up, give it to the output*/ *out = outv.data; *outsize = outv.size; return state->error; } unsigned lodepng_encode_memory(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned error; LodePNGState state; lodepng_state_init(&state); state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; state.info_png.color.colortype = colortype; state.info_png.color.bitdepth = bitdepth; lodepng_encode(out, outsize, image, w, h, &state); error = state.error; lodepng_state_cleanup(&state); return error; } unsigned lodepng_encode32(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_memory(out, outsize, image, w, h, LCT_RGBA, 8); } unsigned lodepng_encode24(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_memory(out, outsize, image, w, h, LCT_RGB, 8); } #ifdef LODEPNG_COMPILE_DISK unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode_memory(&buffer, &buffersize, image, w, h, colortype, bitdepth); if(!error) error = lodepng_save_file(buffer, buffersize, filename); lodepng_free(buffer); return error; } unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_file(filename, image, w, h, LCT_RGBA, 8); } unsigned lodepng_encode24_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_file(filename, image, w, h, LCT_RGB, 8); } #endif /*LODEPNG_COMPILE_DISK*/ void lodepng_encoder_settings_init(LodePNGEncoderSettings* settings) { lodepng_compress_settings_init(&settings->zlibsettings); settings->filter_palette_zero = 1; settings->filter_strategy = LFS_MINSUM; settings->auto_convert = 1; settings->force_palette = 0; settings->predefined_filters = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS settings->add_id = 0; settings->text_compression = 1; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ERROR_TEXT /* This returns the description of a numerical error code in English. This is also the documentation of all the error codes. */ const char* lodepng_error_text(unsigned code) { switch(code) { case 0: return "no error, everything went ok"; case 1: return "nothing done yet"; /*the Encoder/Decoder has done nothing yet, error checking makes no sense yet*/ case 10: return "end of input memory reached without huffman end code"; /*while huffman decoding*/ case 11: return "error in code tree made it jump outside of huffman tree"; /*while huffman decoding*/ case 13: return "problem while processing dynamic deflate block"; case 14: return "problem while processing dynamic deflate block"; case 15: return "problem while processing dynamic deflate block"; case 16: return "unexisting code while processing dynamic deflate block"; case 17: return "end of out buffer memory reached while inflating"; case 18: return "invalid distance code while inflating"; case 19: return "end of out buffer memory reached while inflating"; case 20: return "invalid deflate block BTYPE encountered while decoding"; case 21: return "NLEN is not ones complement of LEN in a deflate block"; /*end of out buffer memory reached while inflating: This can happen if the inflated deflate data is longer than the amount of bytes required to fill up all the pixels of the image, given the color depth and image dimensions. Something that doesn't happen in a normal, well encoded, PNG image.*/ case 22: return "end of out buffer memory reached while inflating"; case 23: return "end of in buffer memory reached while inflating"; case 24: return "invalid FCHECK in zlib header"; case 25: return "invalid compression method in zlib header"; case 26: return "FDICT encountered in zlib header while it's not used for PNG"; case 27: return "PNG file is smaller than a PNG header"; /*Checks the magic file header, the first 8 bytes of the PNG file*/ case 28: return "incorrect PNG signature, it's no PNG or corrupted"; case 29: return "first chunk is not the header chunk"; case 30: return "chunk length too large, chunk broken off at end of file"; case 31: return "illegal PNG color type or bpp"; case 32: return "illegal PNG compression method"; case 33: return "illegal PNG filter method"; case 34: return "illegal PNG interlace method"; case 35: return "chunk length of a chunk is too large or the chunk too small"; case 36: return "illegal PNG filter type encountered"; case 37: return "illegal bit depth for this color type given"; case 38: return "the palette is too big"; /*more than 256 colors*/ case 39: return "more palette alpha values given in tRNS chunk than there are colors in the palette"; case 40: return "tRNS chunk has wrong size for greyscale image"; case 41: return "tRNS chunk has wrong size for RGB image"; case 42: return "tRNS chunk appeared while it was not allowed for this color type"; case 43: return "bKGD chunk has wrong size for palette image"; case 44: return "bKGD chunk has wrong size for greyscale image"; case 45: return "bKGD chunk has wrong size for RGB image"; case 48: return "empty input buffer given to decoder. Maybe caused by non-existing file?"; case 49: return "jumped past memory while generating dynamic huffman tree"; case 50: return "jumped past memory while generating dynamic huffman tree"; case 51: return "jumped past memory while inflating huffman block"; case 52: return "jumped past memory while inflating"; case 53: return "size of zlib data too small"; case 54: return "repeat symbol in tree while there was no value symbol yet"; /*jumped past tree while generating huffman tree, this could be when the tree will have more leaves than symbols after generating it out of the given lenghts. They call this an oversubscribed dynamic bit lengths tree in zlib.*/ case 55: return "jumped past tree while generating huffman tree"; case 56: return "given output image colortype or bitdepth not supported for color conversion"; case 57: return "invalid CRC encountered (checking CRC can be disabled)"; case 58: return "invalid ADLER32 encountered (checking ADLER32 can be disabled)"; case 59: return "requested color conversion not supported"; case 60: return "invalid window size given in the settings of the encoder (must be 0-32768)"; case 61: return "invalid BTYPE given in the settings of the encoder (only 0, 1 and 2 are allowed)"; /*LodePNG leaves the choice of RGB to greyscale conversion formula to the user.*/ case 62: return "conversion from color to greyscale not supported"; case 63: return "length of a chunk too long, max allowed for PNG is 2147483647 bytes per chunk"; /*(2^31-1)*/ /*this would result in the inability of a deflated block to ever contain an end code. It must be at least 1.*/ case 64: return "the length of the END symbol 256 in the Huffman tree is 0"; case 66: return "the length of a text chunk keyword given to the encoder is longer than the maximum of 79 bytes"; case 67: return "the length of a text chunk keyword given to the encoder is smaller than the minimum of 1 byte"; case 68: return "tried to encode a PLTE chunk with a palette that has less than 1 or more than 256 colors"; case 69: return "unknown chunk type with 'critical' flag encountered by the decoder"; case 71: return "unexisting interlace mode given to encoder (must be 0 or 1)"; case 72: return "while decoding, unexisting compression method encountering in zTXt or iTXt chunk (it must be 0)"; case 73: return "invalid tIME chunk size"; case 74: return "invalid pHYs chunk size"; /*length could be wrong, or data chopped off*/ case 75: return "no null termination char found while decoding text chunk"; case 76: return "iTXt chunk too short to contain required bytes"; case 77: return "integer overflow in buffer size"; case 78: return "failed to open file for reading"; /*file doesn't exist or couldn't be opened for reading*/ case 79: return "failed to open file for writing"; case 80: return "tried creating a tree of 0 symbols"; case 81: return "lazy matching at pos 0 is impossible"; case 82: return "color conversion to palette requested while a color isn't in palette"; case 83: return "memory allocation failed"; case 84: return "given image too small to contain all pixels to be encoded"; case 86: return "impossible offset in lz77 encoding (internal bug)"; case 87: return "must provide custom zlib function pointer if LODEPNG_COMPILE_ZLIB is not defined"; case 88: return "invalid filter strategy given for LodePNGEncoderSettings.filter_strategy"; case 89: return "text chunk keyword too short or long: must have size 1-79"; /*the windowsize in the LodePNGCompressSettings. Requiring POT(==> & instead of %) makes encoding 12% faster.*/ case 90: return "windowsize must be a power of two"; case 91: return "invalid decompressed idat size"; case 92: return "too many pixels, not supported"; case 93: return "zero width or height is invalid"; case 94: return "header chunk must have a size of 13 bytes"; } return "unknown error code"; } #endif /*LODEPNG_COMPILE_ERROR_TEXT*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // C++ Wrapper // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_CPP namespace lodepng { #ifdef LODEPNG_COMPILE_DISK unsigned load_file(std::vector& buffer, const std::string& filename) { long size = lodepng_filesize(filename.c_str()); if(size < 0) return 78; buffer.resize((size_t)size); return size == 0 ? 0 : lodepng_buffer_file(&buffer[0], (size_t)size, filename.c_str()); } /*write given buffer to the file, overwriting the file, it doesn't append to it.*/ unsigned save_file(const std::vector& buffer, const std::string& filename) { return lodepng_save_file(buffer.empty() ? 0 : &buffer[0], buffer.size(), filename.c_str()); } #endif /* LODEPNG_COMPILE_DISK */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_DECODER unsigned decompress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings& settings) { unsigned char* buffer = 0; size_t buffersize = 0; unsigned error = zlib_decompress(&buffer, &buffersize, in, insize, &settings); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned decompress(std::vector& out, const std::vector& in, const LodePNGDecompressSettings& settings) { return decompress(out, in.empty() ? 0 : &in[0], in.size(), settings); } #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER unsigned compress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGCompressSettings& settings) { unsigned char* buffer = 0; size_t buffersize = 0; unsigned error = zlib_compress(&buffer, &buffersize, in, insize, &settings); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned compress(std::vector& out, const std::vector& in, const LodePNGCompressSettings& settings) { return compress(out, in.empty() ? 0 : &in[0], in.size(), settings); } #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_ZLIB */ #ifdef LODEPNG_COMPILE_PNG State::State() { lodepng_state_init(this); } State::State(const State& other) { lodepng_state_init(this); lodepng_state_copy(this, &other); } State::~State() { lodepng_state_cleanup(this); } State& State::operator=(const State& other) { lodepng_state_copy(this, &other); return *this; } #ifdef LODEPNG_COMPILE_DECODER unsigned decode(std::vector& out, unsigned& w, unsigned& h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; unsigned error = lodepng_decode_memory(&buffer, &w, &h, in, insize, colortype, bitdepth); if(buffer && !error) { State state; state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw); out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::vector& in, LodePNGColorType colortype, unsigned bitdepth) { return decode(out, w, h, in.empty() ? 0 : &in[0], (unsigned)in.size(), colortype, bitdepth); } unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const unsigned char* in, size_t insize) { unsigned char* buffer = NULL; unsigned error = lodepng_decode(&buffer, &w, &h, &state, in, insize); if(buffer && !error) { size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw); out.insert(out.end(), &buffer[0], &buffer[buffersize]); } lodepng_free(buffer); return error; } unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const std::vector& in) { return decode(out, w, h, state, in.empty() ? 0 : &in[0], in.size()); } #ifdef LODEPNG_COMPILE_DISK unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::string& filename, LodePNGColorType colortype, unsigned bitdepth) { std::vector buffer; unsigned error = load_file(buffer, filename); if(error) return error; return decode(out, w, h, buffer, colortype, bitdepth); } #endif /* LODEPNG_COMPILE_DECODER */ #endif /* LODEPNG_COMPILE_DISK */ #ifdef LODEPNG_COMPILE_ENCODER unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode_memory(&buffer, &buffersize, in, w, h, colortype, bitdepth); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { if(lodepng_get_raw_size_lct(w, h, colortype, bitdepth) > in.size()) return 84; return encode(out, in.empty() ? 0 : &in[0], w, h, colortype, bitdepth); } unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, State& state) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode(&buffer, &buffersize, in, w, h, &state); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, State& state) { if(lodepng_get_raw_size(w, h, &state.info_raw) > in.size()) return 84; return encode(out, in.empty() ? 0 : &in[0], w, h, state); } #ifdef LODEPNG_COMPILE_DISK unsigned encode(const std::string& filename, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { std::vector buffer; unsigned error = encode(buffer, in, w, h, colortype, bitdepth); if(!error) error = save_file(buffer, filename); return error; } unsigned encode(const std::string& filename, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { if(lodepng_get_raw_size_lct(w, h, colortype, bitdepth) > in.size()) return 84; return encode(filename, in.empty() ? 0 : &in[0], w, h, colortype, bitdepth); } #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_PNG */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ drumgizmo-0.9.18.1/plugingui/lodepng/lodepng.h0000644000076400007640000024035413077162062016166 00000000000000/* LodePNG version 20160501 Copyright (c) 2005-2016 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef LODEPNG_H #define LODEPNG_H #include /*for size_t*/ extern const char* LODEPNG_VERSION_STRING; /* The following #defines are used to create code sections. They can be disabled to disable code sections, which can give faster compile time and smaller binary. The "NO_COMPILE" defines are designed to be used to pass as defines to the compiler command to disable them without modifying this header, e.g. -DLODEPNG_NO_COMPILE_ZLIB for gcc. In addition to those below, you can also define LODEPNG_NO_COMPILE_CRC to allow implementing a custom lodepng_crc32. */ /*deflate & zlib. If disabled, you must specify alternative zlib functions in the custom_zlib field of the compress and decompress settings*/ #ifndef LODEPNG_NO_COMPILE_ZLIB #define LODEPNG_COMPILE_ZLIB #endif /*png encoder and png decoder*/ #ifndef LODEPNG_NO_COMPILE_PNG #define LODEPNG_COMPILE_PNG #endif /*deflate&zlib decoder and png decoder*/ #ifndef LODEPNG_NO_COMPILE_DECODER #define LODEPNG_COMPILE_DECODER #endif /*deflate&zlib encoder and png encoder*/ #ifndef LODEPNG_NO_COMPILE_ENCODER #define LODEPNG_COMPILE_ENCODER #endif /*the optional built in harddisk file loading and saving functions*/ #ifndef LODEPNG_NO_COMPILE_DISK #define LODEPNG_COMPILE_DISK #endif /*support for chunks other than IHDR, IDAT, PLTE, tRNS, IEND: ancillary and unknown chunks*/ #ifndef LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS #define LODEPNG_COMPILE_ANCILLARY_CHUNKS #endif /*ability to convert error numerical codes to English text string*/ #ifndef LODEPNG_NO_COMPILE_ERROR_TEXT #define LODEPNG_COMPILE_ERROR_TEXT #endif /*Compile the default allocators (C's free, malloc and realloc). If you disable this, you can define the functions lodepng_free, lodepng_malloc and lodepng_realloc in your source files with custom allocators.*/ #ifndef LODEPNG_NO_COMPILE_ALLOCATORS #define LODEPNG_COMPILE_ALLOCATORS #endif /*compile the C++ version (you can disable the C++ wrapper here even when compiling for C++)*/ #ifdef __cplusplus #ifndef LODEPNG_NO_COMPILE_CPP #define LODEPNG_COMPILE_CPP #endif #endif #ifdef LODEPNG_COMPILE_CPP #include #include #endif /*LODEPNG_COMPILE_CPP*/ #ifdef LODEPNG_COMPILE_PNG /*The PNG color types (also used for raw).*/ typedef enum LodePNGColorType { LCT_GREY = 0, /*greyscale: 1,2,4,8,16 bit*/ LCT_RGB = 2, /*RGB: 8,16 bit*/ LCT_PALETTE = 3, /*palette: 1,2,4,8 bit*/ LCT_GREY_ALPHA = 4, /*greyscale with alpha: 8,16 bit*/ LCT_RGBA = 6 /*RGB with alpha: 8,16 bit*/ } LodePNGColorType; #ifdef LODEPNG_COMPILE_DECODER /* Converts PNG data in memory to raw pixel data. out: Output parameter. Pointer to buffer that will contain the raw pixel data. After decoding, its size is w * h * (bytes per pixel) bytes larger than initially. Bytes per pixel depends on colortype and bitdepth. Must be freed after usage with free(*out). Note: for 16-bit per channel colors, uses big endian format like PNG does. w: Output parameter. Pointer to width of pixel data. h: Output parameter. Pointer to height of pixel data. in: Memory buffer with the PNG file. insize: size of the in buffer. colortype: the desired color type for the raw output image. See explanation on PNG color types. bitdepth: the desired bit depth for the raw output image. See explanation on PNG color types. Return value: LodePNG error code (0 means no error). */ unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_decode_memory, but always decodes to 32-bit RGBA raw image*/ unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize); /*Same as lodepng_decode_memory, but always decodes to 24-bit RGB raw image*/ unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize); #ifdef LODEPNG_COMPILE_DISK /* Load PNG from disk, from file with given name. Same as the other decode functions, but instead takes a filename as input. */ unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_decode_file, but always decodes to 32-bit RGBA raw image.*/ unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename); /*Same as lodepng_decode_file, but always decodes to 24-bit RGB raw image.*/ unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename); #endif /*LODEPNG_COMPILE_DISK*/ #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Converts raw pixel data into a PNG image in memory. The colortype and bitdepth of the output PNG image cannot be chosen, they are automatically determined by the colortype, bitdepth and content of the input pixel data. Note: for 16-bit per channel colors, needs big endian format like PNG does. out: Output parameter. Pointer to buffer that will contain the PNG image data. Must be freed after usage with free(*out). outsize: Output parameter. Pointer to the size in bytes of the out buffer. image: The raw pixel data to encode. The size of this buffer should be w * h * (bytes per pixel), bytes per pixel depends on colortype and bitdepth. w: width of the raw pixel data in pixels. h: height of the raw pixel data in pixels. colortype: the color type of the raw input image. See explanation on PNG color types. bitdepth: the bit depth of the raw input image. See explanation on PNG color types. Return value: LodePNG error code (0 means no error). */ unsigned lodepng_encode_memory(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_encode_memory, but always encodes from 32-bit RGBA raw image.*/ unsigned lodepng_encode32(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h); /*Same as lodepng_encode_memory, but always encodes from 24-bit RGB raw image.*/ unsigned lodepng_encode24(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h); #ifdef LODEPNG_COMPILE_DISK /* Converts raw pixel data into a PNG file on disk. Same as the other encode functions, but instead takes a filename as output. NOTE: This overwrites existing files without warning! */ unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_encode_file, but always encodes from 32-bit RGBA raw image.*/ unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h); /*Same as lodepng_encode_file, but always encodes from 24-bit RGB raw image.*/ unsigned lodepng_encode24_file(const char* filename, const unsigned char* image, unsigned w, unsigned h); #endif /*LODEPNG_COMPILE_DISK*/ #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_CPP namespace lodepng { #ifdef LODEPNG_COMPILE_DECODER /*Same as lodepng_decode_memory, but decodes to an std::vector. The colortype is the format to output the pixels to. Default is RGBA 8-bit per channel.*/ unsigned decode(std::vector& out, unsigned& w, unsigned& h, const unsigned char* in, size_t insize, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::vector& in, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #ifdef LODEPNG_COMPILE_DISK /* Converts PNG file from disk to raw pixel data in memory. Same as the other decode functions, but instead takes a filename as input. */ unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::string& filename, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER /*Same as lodepng_encode_memory, but encodes to an std::vector. colortype is that of the raw input data. The output PNG color type will be auto chosen.*/ unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #ifdef LODEPNG_COMPILE_DISK /* Converts 32-bit RGBA raw pixel data into a PNG file on disk. Same as the other encode functions, but instead takes a filename as output. NOTE: This overwrites existing files without warning! */ unsigned encode(const std::string& filename, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned encode(const std::string& filename, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_ENCODER */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ERROR_TEXT /*Returns an English description of the numerical error code.*/ const char* lodepng_error_text(unsigned code); #endif /*LODEPNG_COMPILE_ERROR_TEXT*/ #ifdef LODEPNG_COMPILE_DECODER /*Settings for zlib decompression*/ typedef struct LodePNGDecompressSettings LodePNGDecompressSettings; struct LodePNGDecompressSettings { unsigned ignore_adler32; /*if 1, continue and don't give an error message if the Adler32 checksum is corrupted*/ /*use custom zlib decoder instead of built in one (default: null)*/ unsigned (*custom_zlib)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGDecompressSettings*); /*use custom deflate decoder instead of built in one (default: null) if custom_zlib is used, custom_deflate is ignored since only the built in zlib function will call custom_deflate*/ unsigned (*custom_inflate)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGDecompressSettings*); const void* custom_context; /*optional custom settings for custom functions*/ }; extern const LodePNGDecompressSettings lodepng_default_decompress_settings; void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Settings for zlib compression. Tweaking these settings tweaks the balance between speed and compression ratio. */ typedef struct LodePNGCompressSettings LodePNGCompressSettings; struct LodePNGCompressSettings /*deflate = compress*/ { /*LZ77 related settings*/ unsigned btype; /*the block type for LZ (0, 1, 2 or 3, see zlib standard). Should be 2 for proper compression.*/ unsigned use_lz77; /*whether or not to use LZ77. Should be 1 for proper compression.*/ unsigned windowsize; /*must be a power of two <= 32768. higher compresses more but is slower. Default value: 2048.*/ unsigned minmatch; /*mininum lz77 length. 3 is normally best, 6 can be better for some PNGs. Default: 0*/ unsigned nicematch; /*stop searching if >= this length found. Set to 258 for best compression. Default: 128*/ unsigned lazymatching; /*use lazy matching: better compression but a bit slower. Default: true*/ /*use custom zlib encoder instead of built in one (default: null)*/ unsigned (*custom_zlib)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGCompressSettings*); /*use custom deflate encoder instead of built in one (default: null) if custom_zlib is used, custom_deflate is ignored since only the built in zlib function will call custom_deflate*/ unsigned (*custom_deflate)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGCompressSettings*); const void* custom_context; /*optional custom settings for custom functions*/ }; extern const LodePNGCompressSettings lodepng_default_compress_settings; void lodepng_compress_settings_init(LodePNGCompressSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_PNG /* Color mode of an image. Contains all information required to decode the pixel bits to RGBA colors. This information is the same as used in the PNG file format, and is used both for PNG and raw image data in LodePNG. */ typedef struct LodePNGColorMode { /*header (IHDR)*/ LodePNGColorType colortype; /*color type, see PNG standard or documentation further in this header file*/ unsigned bitdepth; /*bits per sample, see PNG standard or documentation further in this header file*/ /* palette (PLTE and tRNS) Dynamically allocated with the colors of the palette, including alpha. When encoding a PNG, to store your colors in the palette of the LodePNGColorMode, first use lodepng_palette_clear, then for each color use lodepng_palette_add. If you encode an image without alpha with palette, don't forget to put value 255 in each A byte of the palette. When decoding, by default you can ignore this palette, since LodePNG already fills the palette colors in the pixels of the raw RGBA output. The palette is only supported for color type 3. */ unsigned char* palette; /*palette in RGBARGBA... order. When allocated, must be either 0, or have size 1024*/ size_t palettesize; /*palette size in number of colors (amount of bytes is 4 * palettesize)*/ /* transparent color key (tRNS) This color uses the same bit depth as the bitdepth value in this struct, which can be 1-bit to 16-bit. For greyscale PNGs, r, g and b will all 3 be set to the same. When decoding, by default you can ignore this information, since LodePNG sets pixels with this key to transparent already in the raw RGBA output. The color key is only supported for color types 0 and 2. */ unsigned key_defined; /*is a transparent color key given? 0 = false, 1 = true*/ unsigned key_r; /*red/greyscale component of color key*/ unsigned key_g; /*green component of color key*/ unsigned key_b; /*blue component of color key*/ } LodePNGColorMode; /*init, cleanup and copy functions to use with this struct*/ void lodepng_color_mode_init(LodePNGColorMode* info); void lodepng_color_mode_cleanup(LodePNGColorMode* info); /*return value is error code (0 means no error)*/ unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source); void lodepng_palette_clear(LodePNGColorMode* info); /*add 1 color to the palette*/ unsigned lodepng_palette_add(LodePNGColorMode* info, unsigned char r, unsigned char g, unsigned char b, unsigned char a); /*get the total amount of bits per pixel, based on colortype and bitdepth in the struct*/ unsigned lodepng_get_bpp(const LodePNGColorMode* info); /*get the amount of color channels used, based on colortype in the struct. If a palette is used, it counts as 1 channel.*/ unsigned lodepng_get_channels(const LodePNGColorMode* info); /*is it a greyscale type? (only colortype 0 or 4)*/ unsigned lodepng_is_greyscale_type(const LodePNGColorMode* info); /*has it got an alpha channel? (only colortype 2 or 6)*/ unsigned lodepng_is_alpha_type(const LodePNGColorMode* info); /*has it got a palette? (only colortype 3)*/ unsigned lodepng_is_palette_type(const LodePNGColorMode* info); /*only returns true if there is a palette and there is a value in the palette with alpha < 255. Loops through the palette to check this.*/ unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info); /* Check if the given color info indicates the possibility of having non-opaque pixels in the PNG image. Returns true if the image can have translucent or invisible pixels (it still be opaque if it doesn't use such pixels). Returns false if the image can only have opaque pixels. In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque values, or if "key_defined" is true. */ unsigned lodepng_can_have_alpha(const LodePNGColorMode* info); /*Returns the byte size of a raw image buffer with given width, height and color mode*/ size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*The information of a Time chunk in PNG.*/ typedef struct LodePNGTime { unsigned year; /*2 bytes used (0-65535)*/ unsigned month; /*1-12*/ unsigned day; /*1-31*/ unsigned hour; /*0-23*/ unsigned minute; /*0-59*/ unsigned second; /*0-60 (to allow for leap seconds)*/ } LodePNGTime; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*Information about the PNG image, except pixels, width and height.*/ typedef struct LodePNGInfo { /*header (IHDR), palette (PLTE) and transparency (tRNS) chunks*/ unsigned compression_method;/*compression method of the original file. Always 0.*/ unsigned filter_method; /*filter method of the original file*/ unsigned interlace_method; /*interlace method of the original file*/ LodePNGColorMode color; /*color type and bits, palette and transparency of the PNG file*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /* suggested background color chunk (bKGD) This color uses the same color mode as the PNG (except alpha channel), which can be 1-bit to 16-bit. For greyscale PNGs, r, g and b will all 3 be set to the same. When encoding the encoder writes the red one. For palette PNGs: When decoding, the RGB value will be stored, not a palette index. But when encoding, specify the index of the palette in background_r, the other two are then ignored. The decoder does not use this background color to edit the color of pixels. */ unsigned background_defined; /*is a suggested background color given?*/ unsigned background_r; /*red component of suggested background color*/ unsigned background_g; /*green component of suggested background color*/ unsigned background_b; /*blue component of suggested background color*/ /* non-international text chunks (tEXt and zTXt) The char** arrays each contain num strings. The actual messages are in text_strings, while text_keys are keywords that give a short description what the actual text represents, e.g. Title, Author, Description, or anything else. A keyword is minimum 1 character and maximum 79 characters long. It's discouraged to use a single line length longer than 79 characters for texts. Don't allocate these text buffers yourself. Use the init/cleanup functions correctly and use lodepng_add_text and lodepng_clear_text. */ size_t text_num; /*the amount of texts in these char** buffers (there may be more texts in itext)*/ char** text_keys; /*the keyword of a text chunk (e.g. "Comment")*/ char** text_strings; /*the actual text*/ /* international text chunks (iTXt) Similar to the non-international text chunks, but with additional strings "langtags" and "transkeys". */ size_t itext_num; /*the amount of international texts in this PNG*/ char** itext_keys; /*the English keyword of the text chunk (e.g. "Comment")*/ char** itext_langtags; /*language tag for this text's language, ISO/IEC 646 string, e.g. ISO 639 language tag*/ char** itext_transkeys; /*keyword translated to the international language - UTF-8 string*/ char** itext_strings; /*the actual international text - UTF-8 string*/ /*time chunk (tIME)*/ unsigned time_defined; /*set to 1 to make the encoder generate a tIME chunk*/ LodePNGTime time; /*phys chunk (pHYs)*/ unsigned phys_defined; /*if 0, there is no pHYs chunk and the values below are undefined, if 1 else there is one*/ unsigned phys_x; /*pixels per unit in x direction*/ unsigned phys_y; /*pixels per unit in y direction*/ unsigned phys_unit; /*may be 0 (unknown unit) or 1 (metre)*/ /* unknown chunks There are 3 buffers, one for each position in the PNG where unknown chunks can appear each buffer contains all unknown chunks for that position consecutively The 3 buffers are the unknown chunks between certain critical chunks: 0: IHDR-PLTE, 1: PLTE-IDAT, 2: IDAT-IEND Do not allocate or traverse this data yourself. Use the chunk traversing functions declared later, such as lodepng_chunk_next and lodepng_chunk_append, to read/write this struct. */ unsigned char* unknown_chunks_data[3]; size_t unknown_chunks_size[3]; /*size in bytes of the unknown chunks, given for protection*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGInfo; /*init, cleanup and copy functions to use with this struct*/ void lodepng_info_init(LodePNGInfo* info); void lodepng_info_cleanup(LodePNGInfo* info); /*return value is error code (0 means no error)*/ unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS void lodepng_clear_text(LodePNGInfo* info); /*use this to clear the texts again after you filled them in*/ unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str); /*push back both texts at once*/ void lodepng_clear_itext(LodePNGInfo* info); /*use this to clear the itexts again after you filled them in*/ unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, const char* transkey, const char* str); /*push back the 4 texts of 1 chunk at once*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /* Converts raw buffer from one color type to another color type, based on LodePNGColorMode structs to describe the input and output color type. See the reference manual at the end of this header file to see which color conversions are supported. return value = LodePNG error code (0 if all went ok, an error if the conversion isn't supported) The out buffer must have size (w * h * bpp + 7) / 8, where bpp is the bits per pixel of the output color type (lodepng_get_bpp). For < 8 bpp images, there should not be padding bits at the end of scanlines. For 16-bit per channel colors, uses big endian format like PNG does. Return value is LodePNG error code */ unsigned lodepng_convert(unsigned char* out, const unsigned char* in, const LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, unsigned w, unsigned h); #ifdef LODEPNG_COMPILE_DECODER /* Settings for the decoder. This contains settings for the PNG and the Zlib decoder, but not the Info settings from the Info structs. */ typedef struct LodePNGDecoderSettings { LodePNGDecompressSettings zlibsettings; /*in here is the setting to ignore Adler32 checksums*/ unsigned ignore_crc; /*ignore CRC checksums*/ unsigned color_convert; /*whether to convert the PNG to the color type you want. Default: yes*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS unsigned read_text_chunks; /*if false but remember_unknown_chunks is true, they're stored in the unknown chunks*/ /*store all bytes from unknown chunks in the LodePNGInfo (off by default, useful for a png editor)*/ unsigned remember_unknown_chunks; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGDecoderSettings; void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /*automatically use color type with less bits per pixel if losslessly possible. Default: AUTO*/ typedef enum LodePNGFilterStrategy { /*every filter at zero*/ LFS_ZERO, /*Use filter that gives minimum sum, as described in the official PNG filter heuristic.*/ LFS_MINSUM, /*Use the filter type that gives smallest Shannon entropy for this scanline. Depending on the image, this is better or worse than minsum.*/ LFS_ENTROPY, /* Brute-force-search PNG filters by compressing each filter for each scanline. Experimental, very slow, and only rarely gives better compression than MINSUM. */ LFS_BRUTE_FORCE, /*use predefined_filters buffer: you specify the filter type for each scanline*/ LFS_PREDEFINED } LodePNGFilterStrategy; /*Gives characteristics about the colors of the image, which helps decide which color model to use for encoding. Used internally by default if "auto_convert" is enabled. Public because it's useful for custom algorithms.*/ typedef struct LodePNGColorProfile { unsigned colored; /*not greyscale*/ unsigned key; /*if true, image is not opaque. Only if true and alpha is false, color key is possible.*/ unsigned short key_r; /*these values are always in 16-bit bitdepth in the profile*/ unsigned short key_g; unsigned short key_b; unsigned alpha; /*alpha channel or alpha palette required*/ unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16.*/ unsigned char palette[1024]; /*Remembers up to the first 256 RGBA colors, in no particular order*/ unsigned bits; /*bits per channel (not for palette). 1,2 or 4 for greyscale only. 16 if 16-bit per channel required.*/ } LodePNGColorProfile; void lodepng_color_profile_init(LodePNGColorProfile* profile); /*Get a LodePNGColorProfile of the image.*/ unsigned lodepng_get_color_profile(LodePNGColorProfile* profile, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in); /*The function LodePNG uses internally to decide the PNG color with auto_convert. Chooses an optimal color model, e.g. grey if only grey pixels, palette if < 256 colors, ...*/ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in); /*Settings for the encoder.*/ typedef struct LodePNGEncoderSettings { LodePNGCompressSettings zlibsettings; /*settings for the zlib encoder, such as window size, ...*/ unsigned auto_convert; /*automatically choose output PNG color type. Default: true*/ /*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than 8 bit depth, set all filters to zero. Otherwise use the filter_strategy. Note that to completely follow the official PNG heuristic, filter_palette_zero must be true and filter_strategy must be LFS_MINSUM*/ unsigned filter_palette_zero; /*Which filter strategy to use when not using zeroes due to filter_palette_zero. Set filter_palette_zero to 0 to ensure always using your chosen strategy. Default: LFS_MINSUM*/ LodePNGFilterStrategy filter_strategy; /*used if filter_strategy is LFS_PREDEFINED. In that case, this must point to a buffer with the same length as the amount of scanlines in the image, and each value must <= 5. You have to cleanup this buffer, LodePNG will never free it. Don't forget that filter_palette_zero must be set to 0 to ensure this is also used on palette or low bitdepth images.*/ const unsigned char* predefined_filters; /*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette). If colortype is 3, PLTE is _always_ created.*/ unsigned force_palette; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*add LodePNG identifier and version as a text chunk, for debugging*/ unsigned add_id; /*encode text chunks as zTXt chunks instead of tEXt chunks, and use compression in iTXt chunks*/ unsigned text_compression; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGEncoderSettings; void lodepng_encoder_settings_init(LodePNGEncoderSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) /*The settings, state and information for extended encoding and decoding.*/ typedef struct LodePNGState { #ifdef LODEPNG_COMPILE_DECODER LodePNGDecoderSettings decoder; /*the decoding settings*/ #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER LodePNGEncoderSettings encoder; /*the encoding settings*/ #endif /*LODEPNG_COMPILE_ENCODER*/ LodePNGColorMode info_raw; /*specifies the format in which you would like to get the raw pixel buffer*/ LodePNGInfo info_png; /*info of the PNG image obtained after decoding*/ unsigned error; #ifdef LODEPNG_COMPILE_CPP /* For the lodepng::State subclass. */ virtual ~LodePNGState(){} #endif } LodePNGState; /*init, cleanup and copy functions to use with this struct*/ void lodepng_state_init(LodePNGState* state); void lodepng_state_cleanup(LodePNGState* state); void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source); #endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */ #ifdef LODEPNG_COMPILE_DECODER /* Same as lodepng_decode_memory, but uses a LodePNGState to allow custom settings and getting much more information about the PNG image and color mode. */ unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize); /* Read the PNG header, but not the actual data. This returns only the information that is in the header chunk of the PNG, such as width, height and color type. The information is placed in the info_png field of the LodePNGState. */ unsigned lodepng_inspect(unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /*This function allocates the out buffer with standard malloc and stores the size in *outsize.*/ unsigned lodepng_encode(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGState* state); #endif /*LODEPNG_COMPILE_ENCODER*/ /* The lodepng_chunk functions are normally not needed, except to traverse the unknown chunks stored in the LodePNGInfo struct, or add new ones to it. It also allows traversing the chunks of an encoded PNG file yourself. PNG standard chunk naming conventions: First byte: uppercase = critical, lowercase = ancillary Second byte: uppercase = public, lowercase = private Third byte: must be uppercase Fourth byte: uppercase = unsafe to copy, lowercase = safe to copy */ /* Gets the length of the data of the chunk. Total chunk length has 12 bytes more. There must be at least 4 bytes to read from. If the result value is too large, it may be corrupt data. */ unsigned lodepng_chunk_length(const unsigned char* chunk); /*puts the 4-byte type in null terminated string*/ void lodepng_chunk_type(char type[5], const unsigned char* chunk); /*check if the type is the given type*/ unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type); /*0: it's one of the critical chunk types, 1: it's an ancillary chunk (see PNG standard)*/ unsigned char lodepng_chunk_ancillary(const unsigned char* chunk); /*0: public, 1: private (see PNG standard)*/ unsigned char lodepng_chunk_private(const unsigned char* chunk); /*0: the chunk is unsafe to copy, 1: the chunk is safe to copy (see PNG standard)*/ unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk); /*get pointer to the data of the chunk, where the input points to the header of the chunk*/ unsigned char* lodepng_chunk_data(unsigned char* chunk); const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk); /*returns 0 if the crc is correct, 1 if it's incorrect (0 for OK as usual!)*/ unsigned lodepng_chunk_check_crc(const unsigned char* chunk); /*generates the correct CRC from the data and puts it in the last 4 bytes of the chunk*/ void lodepng_chunk_generate_crc(unsigned char* chunk); /*iterate to next chunks. don't use on IEND chunk, as there is no next chunk then*/ unsigned char* lodepng_chunk_next(unsigned char* chunk); const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk); /* Appends chunk to the data in out. The given chunk should already have its chunk header. The out variable and outlength are updated to reflect the new reallocated buffer. Returns error code (0 if it went ok) */ unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk); /* Appends new chunk to out. The chunk to append is given by giving its length, type and data separately. The type is a 4-letter string. The out variable and outlength are updated to reflect the new reallocated buffer. Returne error code (0 if it went ok) */ unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data); /*Calculate CRC32 of buffer*/ unsigned lodepng_crc32(const unsigned char* buf, size_t len); #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ZLIB /* This zlib part can be used independently to zlib compress and decompress a buffer. It cannot be used to create gzip files however, and it only supports the part of zlib that is required for PNG, it does not support dictionaries. */ #ifdef LODEPNG_COMPILE_DECODER /*Inflate a buffer. Inflate is the decompression step of deflate. Out buffer must be freed after use.*/ unsigned lodepng_inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings); /* Decompresses Zlib data. Reallocates the out buffer and appends the data. The data must be according to the zlib specification. Either, *out must be NULL and *outsize must be 0, or, *out must be a valid buffer and *outsize its size in bytes. out must be freed by user after usage. */ unsigned lodepng_zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Compresses data with Zlib. Reallocates the out buffer and appends the data. Zlib adds a small header and trailer around the deflate data. The data is output in the format of the zlib specification. Either, *out must be NULL and *outsize must be 0, or, *out must be a valid buffer and *outsize its size in bytes. out must be freed by user after usage. */ unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings); /* Find length-limited Huffman code for given frequencies. This function is in the public interface only for tests, it's used internally by lodepng_deflate. */ unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequencies, size_t numcodes, unsigned maxbitlen); /*Compress a buffer with deflate. See RFC 1951. Out buffer must be freed after use.*/ unsigned lodepng_deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ #ifdef LODEPNG_COMPILE_DISK /* Load a file from disk into buffer. The function allocates the out buffer, and after usage you should free it. out: output parameter, contains pointer to loaded buffer. outsize: output parameter, size of the allocated out buffer filename: the path to the file to load return value: error code (0 means ok) */ unsigned lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename); /* Save a file from buffer to disk. Warning, if it exists, this function overwrites the file without warning! buffer: the buffer to write buffersize: size of the buffer to write filename: the path to the file to save to return value: error code (0 means ok) */ unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename); #endif /*LODEPNG_COMPILE_DISK*/ #ifdef LODEPNG_COMPILE_CPP /* The LodePNG C++ wrapper uses std::vectors instead of manually allocated memory buffers. */ namespace lodepng { #ifdef LODEPNG_COMPILE_PNG class State : public LodePNGState { public: State(); State(const State& other); virtual ~State(); State& operator=(const State& other); }; #ifdef LODEPNG_COMPILE_DECODER /* Same as other lodepng::decode, but using a State for more settings and information. */ unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const unsigned char* in, size_t insize); unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const std::vector& in); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Same as other lodepng::encode, but using a State for more settings and information. */ unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, State& state); unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, State& state); #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DISK /* Load a file from disk into an std::vector. return value: error code (0 means ok) */ unsigned load_file(std::vector& buffer, const std::string& filename); /* Save the binary data in an std::vector to a file on disk. The file is overwritten without warning. */ unsigned save_file(const std::vector& buffer, const std::string& filename); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_PNG */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_DECODER /* Zlib-decompress an unsigned char buffer */ unsigned decompress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings& settings = lodepng_default_decompress_settings); /* Zlib-decompress an std::vector */ unsigned decompress(std::vector& out, const std::vector& in, const LodePNGDecompressSettings& settings = lodepng_default_decompress_settings); #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER /* Zlib-compress an unsigned char buffer */ unsigned compress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGCompressSettings& settings = lodepng_default_compress_settings); /* Zlib-compress an std::vector */ unsigned compress(std::vector& out, const std::vector& in, const LodePNGCompressSettings& settings = lodepng_default_compress_settings); #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_ZLIB */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ /* TODO: [.] test if there are no memory leaks or security exploits - done a lot but needs to be checked often [.] check compatibility with various compilers - done but needs to be redone for every newer version [X] converting color to 16-bit per channel types [ ] read all public PNG chunk types (but never let the color profile and gamma ones touch RGB values) [ ] make sure encoder generates no chunks with size > (2^31)-1 [ ] partial decoding (stream processing) [X] let the "isFullyOpaque" function check color keys and transparent palettes too [X] better name for the variables "codes", "codesD", "codelengthcodes", "clcl" and "lldl" [ ] don't stop decoding on errors like 69, 57, 58 (make warnings) [ ] make warnings like: oob palette, checksum fail, data after iend, wrong/unknown crit chunk, no null terminator in text, ... [ ] let the C++ wrapper catch exceptions coming from the standard library and return LodePNG error codes [ ] allow user to provide custom color conversion functions, e.g. for premultiplied alpha, padding bits or not, ... [ ] allow user to give data (void*) to custom allocator */ #endif /*LODEPNG_H inclusion guard*/ /* LodePNG Documentation --------------------- 0. table of contents -------------------- 1. about 1.1. supported features 1.2. features not supported 2. C and C++ version 3. security 4. decoding 5. encoding 6. color conversions 6.1. PNG color types 6.2. color conversions 6.3. padding bits 6.4. A note about 16-bits per channel and endianness 7. error values 8. chunks and PNG editing 9. compiler support 10. examples 10.1. decoder C++ example 10.2. decoder C example 11. state settings reference 12. changes 13. contact information 1. about -------- PNG is a file format to store raster images losslessly with good compression, supporting different color types and alpha channel. LodePNG is a PNG codec according to the Portable Network Graphics (PNG) Specification (Second Edition) - W3C Recommendation 10 November 2003. The specifications used are: *) Portable Network Graphics (PNG) Specification (Second Edition): http://www.w3.org/TR/2003/REC-PNG-20031110 *) RFC 1950 ZLIB Compressed Data Format version 3.3: http://www.gzip.org/zlib/rfc-zlib.html *) RFC 1951 DEFLATE Compressed Data Format Specification ver 1.3: http://www.gzip.org/zlib/rfc-deflate.html The most recent version of LodePNG can currently be found at http://lodev.org/lodepng/ LodePNG works both in C (ISO C90) and C++, with a C++ wrapper that adds extra functionality. LodePNG exists out of two files: -lodepng.h: the header file for both C and C++ -lodepng.c(pp): give it the name lodepng.c or lodepng.cpp (or .cc) depending on your usage If you want to start using LodePNG right away without reading this doc, get the examples from the LodePNG website to see how to use it in code, or check the smaller examples in chapter 13 here. LodePNG is simple but only supports the basic requirements. To achieve simplicity, the following design choices were made: There are no dependencies on any external library. There are functions to decode and encode a PNG with a single function call, and extended versions of these functions taking a LodePNGState struct allowing to specify or get more information. By default the colors of the raw image are always RGB or RGBA, no matter what color type the PNG file uses. To read and write files, there are simple functions to convert the files to/from buffers in memory. This all makes LodePNG suitable for loading textures in games, demos and small programs, ... It's less suitable for full fledged image editors, loading PNGs over network (it requires all the image data to be available before decoding can begin), life-critical systems, ... 1.1. supported features ----------------------- The following features are supported by the decoder: *) decoding of PNGs with any color type, bit depth and interlace mode, to a 24- or 32-bit color raw image, or the same color type as the PNG *) encoding of PNGs, from any raw image to 24- or 32-bit color, or the same color type as the raw image *) Adam7 interlace and deinterlace for any color type *) loading the image from harddisk or decoding it from a buffer from other sources than harddisk *) support for alpha channels, including RGBA color model, translucent palettes and color keying *) zlib decompression (inflate) *) zlib compression (deflate) *) CRC32 and ADLER32 checksums *) handling of unknown chunks, allowing making a PNG editor that stores custom and unknown chunks. *) the following chunks are supported (generated/interpreted) by both encoder and decoder: IHDR: header information PLTE: color palette IDAT: pixel data IEND: the final chunk tRNS: transparency for palettized images tEXt: textual information zTXt: compressed textual information iTXt: international textual information bKGD: suggested background color pHYs: physical dimensions tIME: modification time 1.2. features not supported --------------------------- The following features are _not_ supported: *) some features needed to make a conformant PNG-Editor might be still missing. *) partial loading/stream processing. All data must be available and is processed in one call. *) The following public chunks are not supported but treated as unknown chunks by LodePNG cHRM, gAMA, iCCP, sRGB, sBIT, hIST, sPLT Some of these are not supported on purpose: LodePNG wants to provide the RGB values stored in the pixels, not values modified by system dependent gamma or color models. 2. C and C++ version -------------------- The C version uses buffers allocated with alloc that you need to free() yourself. You need to use init and cleanup functions for each struct whenever using a struct from the C version to avoid exploits and memory leaks. The C++ version has extra functions with std::vectors in the interface and the lodepng::State class which is a LodePNGState with constructor and destructor. These files work without modification for both C and C++ compilers because all the additional C++ code is in "#ifdef __cplusplus" blocks that make C-compilers ignore it, and the C code is made to compile both with strict ISO C90 and C++. To use the C++ version, you need to rename the source file to lodepng.cpp (instead of lodepng.c), and compile it with a C++ compiler. To use the C version, you need to rename the source file to lodepng.c (instead of lodepng.cpp), and compile it with a C compiler. 3. Security ----------- Even if carefully designed, it's always possible that LodePNG contains possible exploits. If you discover one, please let me know, and it will be fixed. When using LodePNG, care has to be taken with the C version of LodePNG, as well as the C-style structs when working with C++. The following conventions are used for all C-style structs: -if a struct has a corresponding init function, always call the init function when making a new one -if a struct has a corresponding cleanup function, call it before the struct disappears to avoid memory leaks -if a struct has a corresponding copy function, use the copy function instead of "=". The destination must also be inited already. 4. Decoding ----------- Decoding converts a PNG compressed image to a raw pixel buffer. Most documentation on using the decoder is at its declarations in the header above. For C, simple decoding can be done with functions such as lodepng_decode32, and more advanced decoding can be done with the struct LodePNGState and lodepng_decode. For C++, all decoding can be done with the various lodepng::decode functions, and lodepng::State can be used for advanced features. When using the LodePNGState, it uses the following fields for decoding: *) LodePNGInfo info_png: it stores extra information about the PNG (the input) in here *) LodePNGColorMode info_raw: here you can say what color mode of the raw image (the output) you want to get *) LodePNGDecoderSettings decoder: you can specify a few extra settings for the decoder to use LodePNGInfo info_png -------------------- After decoding, this contains extra information of the PNG image, except the actual pixels, width and height because these are already gotten directly from the decoder functions. It contains for example the original color type of the PNG image, text comments, suggested background color, etc... More details about the LodePNGInfo struct are at its declaration documentation. LodePNGColorMode info_raw ------------------------- When decoding, here you can specify which color type you want the resulting raw image to be. If this is different from the colortype of the PNG, then the decoder will automatically convert the result. This conversion always works, except if you want it to convert a color PNG to greyscale or to a palette with missing colors. By default, 32-bit color is used for the result. LodePNGDecoderSettings decoder ------------------------------ The settings can be used to ignore the errors created by invalid CRC and Adler32 chunks, and to disable the decoding of tEXt chunks. There's also a setting color_convert, true by default. If false, no conversion is done, the resulting data will be as it was in the PNG (after decompression) and you'll have to puzzle the colors of the pixels together yourself using the color type information in the LodePNGInfo. 5. Encoding ----------- Encoding converts a raw pixel buffer to a PNG compressed image. Most documentation on using the encoder is at its declarations in the header above. For C, simple encoding can be done with functions such as lodepng_encode32, and more advanced decoding can be done with the struct LodePNGState and lodepng_encode. For C++, all encoding can be done with the various lodepng::encode functions, and lodepng::State can be used for advanced features. Like the decoder, the encoder can also give errors. However it gives less errors since the encoder input is trusted, the decoder input (a PNG image that could be forged by anyone) is not trusted. When using the LodePNGState, it uses the following fields for encoding: *) LodePNGInfo info_png: here you specify how you want the PNG (the output) to be. *) LodePNGColorMode info_raw: here you say what color type of the raw image (the input) has *) LodePNGEncoderSettings encoder: you can specify a few settings for the encoder to use LodePNGInfo info_png -------------------- When encoding, you use this the opposite way as when decoding: for encoding, you fill in the values you want the PNG to have before encoding. By default it's not needed to specify a color type for the PNG since it's automatically chosen, but it's possible to choose it yourself given the right settings. The encoder will not always exactly match the LodePNGInfo struct you give, it tries as close as possible. Some things are ignored by the encoder. The encoder uses, for example, the following settings from it when applicable: colortype and bitdepth, text chunks, time chunk, the color key, the palette, the background color, the interlace method, unknown chunks, ... When encoding to a PNG with colortype 3, the encoder will generate a PLTE chunk. If the palette contains any colors for which the alpha channel is not 255 (so there are translucent colors in the palette), it'll add a tRNS chunk. LodePNGColorMode info_raw ------------------------- You specify the color type of the raw image that you give to the input here, including a possible transparent color key and palette you happen to be using in your raw image data. By default, 32-bit color is assumed, meaning your input has to be in RGBA format with 4 bytes (unsigned chars) per pixel. LodePNGEncoderSettings encoder ------------------------------ The following settings are supported (some are in sub-structs): *) auto_convert: when this option is enabled, the encoder will automatically choose the smallest possible color mode (including color key) that can encode the colors of all pixels without information loss. *) btype: the block type for LZ77. 0 = uncompressed, 1 = fixed huffman tree, 2 = dynamic huffman tree (best compression). Should be 2 for proper compression. *) use_lz77: whether or not to use LZ77 for compressed block types. Should be true for proper compression. *) windowsize: the window size used by the LZ77 encoder (1 - 32768). Has value 2048 by default, but can be set to 32768 for better, but slow, compression. *) force_palette: if colortype is 2 or 6, you can make the encoder write a PLTE chunk if force_palette is true. This can used as suggested palette to convert to by viewers that don't support more than 256 colors (if those still exist) *) add_id: add text chunk "Encoder: LodePNG " to the image. *) text_compression: default 1. If 1, it'll store texts as zTXt instead of tEXt chunks. zTXt chunks use zlib compression on the text. This gives a smaller result on large texts but a larger result on small texts (such as a single program name). It's all tEXt or all zTXt though, there's no separate setting per text yet. 6. color conversions -------------------- An important thing to note about LodePNG, is that the color type of the PNG, and the color type of the raw image, are completely independent. By default, when you decode a PNG, you get the result as a raw image in the color type you want, no matter whether the PNG was encoded with a palette, greyscale or RGBA color. And if you encode an image, by default LodePNG will automatically choose the PNG color type that gives good compression based on the values of colors and amount of colors in the image. It can be configured to let you control it instead as well, though. To be able to do this, LodePNG does conversions from one color mode to another. It can convert from almost any color type to any other color type, except the following conversions: RGB to greyscale is not supported, and converting to a palette when the palette doesn't have a required color is not supported. This is not supported on purpose: this is information loss which requires a color reduction algorithm that is beyong the scope of a PNG encoder (yes, RGB to grey is easy, but there are multiple ways if you want to give some channels more weight). By default, when decoding, you get the raw image in 32-bit RGBA or 24-bit RGB color, no matter what color type the PNG has. And by default when encoding, LodePNG automatically picks the best color model for the output PNG, and expects the input image to be 32-bit RGBA or 24-bit RGB. So, unless you want to control the color format of the images yourself, you can skip this chapter. 6.1. PNG color types -------------------- A PNG image can have many color types, ranging from 1-bit color to 64-bit color, as well as palettized color modes. After the zlib decompression and unfiltering in the PNG image is done, the raw pixel data will have that color type and thus a certain amount of bits per pixel. If you want the output raw image after decoding to have another color type, a conversion is done by LodePNG. The PNG specification gives the following color types: 0: greyscale, bit depths 1, 2, 4, 8, 16 2: RGB, bit depths 8 and 16 3: palette, bit depths 1, 2, 4 and 8 4: greyscale with alpha, bit depths 8 and 16 6: RGBA, bit depths 8 and 16 Bit depth is the amount of bits per pixel per color channel. So the total amount of bits per pixel is: amount of channels * bitdepth. 6.2. color conversions ---------------------- As explained in the sections about the encoder and decoder, you can specify color types and bit depths in info_png and info_raw to change the default behaviour. If, when decoding, you want the raw image to be something else than the default, you need to set the color type and bit depth you want in the LodePNGColorMode, or the parameters colortype and bitdepth of the simple decoding function. If, when encoding, you use another color type than the default in the raw input image, you need to specify its color type and bit depth in the LodePNGColorMode of the raw image, or use the parameters colortype and bitdepth of the simple encoding function. If, when encoding, you don't want LodePNG to choose the output PNG color type but control it yourself, you need to set auto_convert in the encoder settings to false, and specify the color type you want in the LodePNGInfo of the encoder (including palette: it can generate a palette if auto_convert is true, otherwise not). If the input and output color type differ (whether user chosen or auto chosen), LodePNG will do a color conversion, which follows the rules below, and may sometimes result in an error. To avoid some confusion: -the decoder converts from PNG to raw image -the encoder converts from raw image to PNG -the colortype and bitdepth in LodePNGColorMode info_raw, are those of the raw image -the colortype and bitdepth in the color field of LodePNGInfo info_png, are those of the PNG -when encoding, the color type in LodePNGInfo is ignored if auto_convert is enabled, it is automatically generated instead -when decoding, the color type in LodePNGInfo is set by the decoder to that of the original PNG image, but it can be ignored since the raw image has the color type you requested instead -if the color type of the LodePNGColorMode and PNG image aren't the same, a conversion between the color types is done if the color types are supported. If it is not supported, an error is returned. If the types are the same, no conversion is done. -even though some conversions aren't supported, LodePNG supports loading PNGs from any colortype and saving PNGs to any colortype, sometimes it just requires preparing the raw image correctly before encoding. -both encoder and decoder use the same color converter. Non supported color conversions: -color to greyscale: no error is thrown, but the result will look ugly because only the red channel is taken -anything to palette when that palette does not have that color in it: in this case an error is thrown Supported color conversions: -anything to 8-bit RGB, 8-bit RGBA, 16-bit RGB, 16-bit RGBA -any grey or grey+alpha, to grey or grey+alpha -anything to a palette, as long as the palette has the requested colors in it -removing alpha channel -higher to smaller bitdepth, and vice versa If you want no color conversion to be done (e.g. for speed or control): -In the encoder, you can make it save a PNG with any color type by giving the raw color mode and LodePNGInfo the same color mode, and setting auto_convert to false. -In the decoder, you can make it store the pixel data in the same color type as the PNG has, by setting the color_convert setting to false. Settings in info_raw are then ignored. The function lodepng_convert does the color conversion. It is available in the interface but normally isn't needed since the encoder and decoder already call it. 6.3. padding bits ----------------- In the PNG file format, if a less than 8-bit per pixel color type is used and the scanlines have a bit amount that isn't a multiple of 8, then padding bits are used so that each scanline starts at a fresh byte. But that is NOT true for the LodePNG raw input and output. The raw input image you give to the encoder, and the raw output image you get from the decoder will NOT have these padding bits, e.g. in the case of a 1-bit image with a width of 7 pixels, the first pixel of the second scanline will the the 8th bit of the first byte, not the first bit of a new byte. 6.4. A note about 16-bits per channel and endianness ---------------------------------------------------- LodePNG uses unsigned char arrays for 16-bit per channel colors too, just like for any other color format. The 16-bit values are stored in big endian (most significant byte first) in these arrays. This is the opposite order of the little endian used by x86 CPU's. LodePNG always uses big endian because the PNG file format does so internally. Conversions to other formats than PNG uses internally are not supported by LodePNG on purpose, there are myriads of formats, including endianness of 16-bit colors, the order in which you store R, G, B and A, and so on. Supporting and converting to/from all that is outside the scope of LodePNG. This may mean that, depending on your use case, you may want to convert the big endian output of LodePNG to little endian with a for loop. This is certainly not always needed, many applications and libraries support big endian 16-bit colors anyway, but it means you cannot simply cast the unsigned char* buffer to an unsigned short* buffer on x86 CPUs. 7. error values --------------- All functions in LodePNG that return an error code, return 0 if everything went OK, or a non-zero code if there was an error. The meaning of the LodePNG error values can be retrieved with the function lodepng_error_text: given the numerical error code, it returns a description of the error in English as a string. Check the implementation of lodepng_error_text to see the meaning of each code. 8. chunks and PNG editing ------------------------- If you want to add extra chunks to a PNG you encode, or use LodePNG for a PNG editor that should follow the rules about handling of unknown chunks, or if your program is able to read other types of chunks than the ones handled by LodePNG, then that's possible with the chunk functions of LodePNG. A PNG chunk has the following layout: 4 bytes length 4 bytes type name length bytes data 4 bytes CRC 8.1. iterating through chunks ----------------------------- If you have a buffer containing the PNG image data, then the first chunk (the IHDR chunk) starts at byte number 8 of that buffer. The first 8 bytes are the signature of the PNG and are not part of a chunk. But if you start at byte 8 then you have a chunk, and can check the following things of it. NOTE: none of these functions check for memory buffer boundaries. To avoid exploits, always make sure the buffer contains all the data of the chunks. When using lodepng_chunk_next, make sure the returned value is within the allocated memory. unsigned lodepng_chunk_length(const unsigned char* chunk): Get the length of the chunk's data. The total chunk length is this length + 12. void lodepng_chunk_type(char type[5], const unsigned char* chunk): unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type): Get the type of the chunk or compare if it's a certain type unsigned char lodepng_chunk_critical(const unsigned char* chunk): unsigned char lodepng_chunk_private(const unsigned char* chunk): unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk): Check if the chunk is critical in the PNG standard (only IHDR, PLTE, IDAT and IEND are). Check if the chunk is private (public chunks are part of the standard, private ones not). Check if the chunk is safe to copy. If it's not, then, when modifying data in a critical chunk, unsafe to copy chunks of the old image may NOT be saved in the new one if your program doesn't handle that type of unknown chunk. unsigned char* lodepng_chunk_data(unsigned char* chunk): const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk): Get a pointer to the start of the data of the chunk. unsigned lodepng_chunk_check_crc(const unsigned char* chunk): void lodepng_chunk_generate_crc(unsigned char* chunk): Check if the crc is correct or generate a correct one. unsigned char* lodepng_chunk_next(unsigned char* chunk): const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk): Iterate to the next chunk. This works if you have a buffer with consecutive chunks. Note that these functions do no boundary checking of the allocated data whatsoever, so make sure there is enough data available in the buffer to be able to go to the next chunk. unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk): unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data): These functions are used to create new chunks that are appended to the data in *out that has length *outlength. The append function appends an existing chunk to the new data. The create function creates a new chunk with the given parameters and appends it. Type is the 4-letter name of the chunk. 8.2. chunks in info_png ----------------------- The LodePNGInfo struct contains fields with the unknown chunk in it. It has 3 buffers (each with size) to contain 3 types of unknown chunks: the ones that come before the PLTE chunk, the ones that come between the PLTE and the IDAT chunks, and the ones that come after the IDAT chunks. It's necessary to make the distionction between these 3 cases because the PNG standard forces to keep the ordering of unknown chunks compared to the critical chunks, but does not force any other ordering rules. info_png.unknown_chunks_data[0] is the chunks before PLTE info_png.unknown_chunks_data[1] is the chunks after PLTE, before IDAT info_png.unknown_chunks_data[2] is the chunks after IDAT The chunks in these 3 buffers can be iterated through and read by using the same way described in the previous subchapter. When using the decoder to decode a PNG, you can make it store all unknown chunks if you set the option settings.remember_unknown_chunks to 1. By default, this option is off (0). The encoder will always encode unknown chunks that are stored in the info_png. If you need it to add a particular chunk that isn't known by LodePNG, you can use lodepng_chunk_append or lodepng_chunk_create to the chunk data in info_png.unknown_chunks_data[x]. Chunks that are known by LodePNG should not be added in that way. E.g. to make LodePNG add a bKGD chunk, set background_defined to true and add the correct parameters there instead. 9. compiler support ------------------- No libraries other than the current standard C library are needed to compile LodePNG. For the C++ version, only the standard C++ library is needed on top. Add the files lodepng.c(pp) and lodepng.h to your project, include lodepng.h where needed, and your program can read/write PNG files. It is compatible with C90 and up, and C++03 and up. If performance is important, use optimization when compiling! For both the encoder and decoder, this makes a large difference. Make sure that LodePNG is compiled with the same compiler of the same version and with the same settings as the rest of the program, or the interfaces with std::vectors and std::strings in C++ can be incompatible. CHAR_BITS must be 8 or higher, because LodePNG uses unsigned chars for octets. *) gcc and g++ LodePNG is developed in gcc so this compiler is natively supported. It gives no warnings with compiler options "-Wall -Wextra -pedantic -ansi", with gcc and g++ version 4.7.1 on Linux, 32-bit and 64-bit. *) Clang Fully supported and warning-free. *) Mingw The Mingw compiler (a port of gcc for Windows) should be fully supported by LodePNG. *) Visual Studio and Visual C++ Express Edition LodePNG should be warning-free with warning level W4. Two warnings were disabled with pragmas though: warning 4244 about implicit conversions, and warning 4996 where it wants to use a non-standard function fopen_s instead of the standard C fopen. Visual Studio may want "stdafx.h" files to be included in each source file and give an error "unexpected end of file while looking for precompiled header". This is not standard C++ and will not be added to the stock LodePNG. You can disable it for lodepng.cpp only by right clicking it, Properties, C/C++, Precompiled Headers, and set it to Not Using Precompiled Headers there. NOTE: Modern versions of VS should be fully supported, but old versions, e.g. VS6, are not guaranteed to work. *) Compilers on Macintosh LodePNG has been reported to work both with gcc and LLVM for Macintosh, both for C and C++. *) Other Compilers If you encounter problems on any compilers, feel free to let me know and I may try to fix it if the compiler is modern and standards complient. 10. examples ------------ This decoder example shows the most basic usage of LodePNG. More complex examples can be found on the LodePNG website. 10.1. decoder C++ example ------------------------- #include "lodepng.h" #include int main(int argc, char *argv[]) { const char* filename = argc > 1 ? argv[1] : "test.png"; //load and decode std::vector image; unsigned width, height; unsigned error = lodepng::decode(image, width, height, filename); //if there's an error, display it if(error) std::cout << "decoder error " << error << ": " << lodepng_error_text(error) << std::endl; //the pixels are now in the vector "image", 4 bytes per pixel, ordered RGBARGBA..., use it as texture, draw it, ... } 10.2. decoder C example ----------------------- #include "lodepng.h" int main(int argc, char *argv[]) { unsigned error; unsigned char* image; size_t width, height; const char* filename = argc > 1 ? argv[1] : "test.png"; error = lodepng_decode32_file(&image, &width, &height, filename); if(error) printf("decoder error %u: %s\n", error, lodepng_error_text(error)); / * use image here * / free(image); return 0; } 11. state settings reference ---------------------------- A quick reference of some settings to set on the LodePNGState For decoding: state.decoder.zlibsettings.ignore_adler32: ignore ADLER32 checksums state.decoder.zlibsettings.custom_...: use custom inflate function state.decoder.ignore_crc: ignore CRC checksums state.decoder.color_convert: convert internal PNG color to chosen one state.decoder.read_text_chunks: whether to read in text metadata chunks state.decoder.remember_unknown_chunks: whether to read in unknown chunks state.info_raw.colortype: desired color type for decoded image state.info_raw.bitdepth: desired bit depth for decoded image state.info_raw....: more color settings, see struct LodePNGColorMode state.info_png....: no settings for decoder but ouput, see struct LodePNGInfo For encoding: state.encoder.zlibsettings.btype: disable compression by setting it to 0 state.encoder.zlibsettings.use_lz77: use LZ77 in compression state.encoder.zlibsettings.windowsize: tweak LZ77 windowsize state.encoder.zlibsettings.minmatch: tweak min LZ77 length to match state.encoder.zlibsettings.nicematch: tweak LZ77 match where to stop searching state.encoder.zlibsettings.lazymatching: try one more LZ77 matching state.encoder.zlibsettings.custom_...: use custom deflate function state.encoder.auto_convert: choose optimal PNG color type, if 0 uses info_png state.encoder.filter_palette_zero: PNG filter strategy for palette state.encoder.filter_strategy: PNG filter strategy to encode with state.encoder.force_palette: add palette even if not encoding to one state.encoder.add_id: add LodePNG identifier and version as a text chunk state.encoder.text_compression: use compressed text chunks for metadata state.info_raw.colortype: color type of raw input image you provide state.info_raw.bitdepth: bit depth of raw input image you provide state.info_raw: more color settings, see struct LodePNGColorMode state.info_png.color.colortype: desired color type if auto_convert is false state.info_png.color.bitdepth: desired bit depth if auto_convert is false state.info_png.color....: more color settings, see struct LodePNGColorMode state.info_png....: more PNG related settings, see struct LodePNGInfo 12. changes ----------- The version number of LodePNG is the date of the change given in the format yyyymmdd. Some changes aren't backwards compatible. Those are indicated with a (!) symbol. *) 18 apr 2016: Changed qsort to custom stable sort (for platforms w/o qsort). *) 09 apr 2016: Fixed colorkey usage detection, and better file loading (within the limits of pure C90). *) 08 dec 2015: Made load_file function return error if file can't be opened. *) 24 okt 2015: Bugfix with decoding to palette output. *) 18 apr 2015: Boundary PM instead of just package-merge for faster encoding. *) 23 aug 2014: Reduced needless memory usage of decoder. *) 28 jun 2014: Removed fix_png setting, always support palette OOB for simplicity. Made ColorProfile public. *) 09 jun 2014: Faster encoder by fixing hash bug and more zeros optimization. *) 22 dec 2013: Power of two windowsize required for optimization. *) 15 apr 2013: Fixed bug with LAC_ALPHA and color key. *) 25 mar 2013: Added an optional feature to ignore some PNG errors (fix_png). *) 11 mar 2013 (!): Bugfix with custom free. Changed from "my" to "lodepng_" prefix for the custom allocators and made it possible with a new #define to use custom ones in your project without needing to change lodepng's code. *) 28 jan 2013: Bugfix with color key. *) 27 okt 2012: Tweaks in text chunk keyword length error handling. *) 8 okt 2012 (!): Added new filter strategy (entropy) and new auto color mode. (no palette). Better deflate tree encoding. New compression tweak settings. Faster color conversions while decoding. Some internal cleanups. *) 23 sep 2012: Reduced warnings in Visual Studio a little bit. *) 1 sep 2012 (!): Removed #define's for giving custom (de)compression functions and made it work with function pointers instead. *) 23 jun 2012: Added more filter strategies. Made it easier to use custom alloc and free functions and toggle #defines from compiler flags. Small fixes. *) 6 may 2012 (!): Made plugging in custom zlib/deflate functions more flexible. *) 22 apr 2012 (!): Made interface more consistent, renaming a lot. Removed redundant C++ codec classes. Reduced amount of structs. Everything changed, but it is cleaner now imho and functionality remains the same. Also fixed several bugs and shrunk the implementation code. Made new samples. *) 6 nov 2011 (!): By default, the encoder now automatically chooses the best PNG color model and bit depth, based on the amount and type of colors of the raw image. For this, autoLeaveOutAlphaChannel replaced by auto_choose_color. *) 9 okt 2011: simpler hash chain implementation for the encoder. *) 8 sep 2011: lz77 encoder lazy matching instead of greedy matching. *) 23 aug 2011: tweaked the zlib compression parameters after benchmarking. A bug with the PNG filtertype heuristic was fixed, so that it chooses much better ones (it's quite significant). A setting to do an experimental, slow, brute force search for PNG filter types is added. *) 17 aug 2011 (!): changed some C zlib related function names. *) 16 aug 2011: made the code less wide (max 120 characters per line). *) 17 apr 2011: code cleanup. Bugfixes. Convert low to 16-bit per sample colors. *) 21 feb 2011: fixed compiling for C90. Fixed compiling with sections disabled. *) 11 dec 2010: encoding is made faster, based on suggestion by Peter Eastman to optimize long sequences of zeros. *) 13 nov 2010: added LodePNG_InfoColor_hasPaletteAlpha and LodePNG_InfoColor_canHaveAlpha functions for convenience. *) 7 nov 2010: added LodePNG_error_text function to get error code description. *) 30 okt 2010: made decoding slightly faster *) 26 okt 2010: (!) changed some C function and struct names (more consistent). Reorganized the documentation and the declaration order in the header. *) 08 aug 2010: only changed some comments and external samples. *) 05 jul 2010: fixed bug thanks to warnings in the new gcc version. *) 14 mar 2010: fixed bug where too much memory was allocated for char buffers. *) 02 sep 2008: fixed bug where it could create empty tree that linux apps could read by ignoring the problem but windows apps couldn't. *) 06 jun 2008: added more error checks for out of memory cases. *) 26 apr 2008: added a few more checks here and there to ensure more safety. *) 06 mar 2008: crash with encoding of strings fixed *) 02 feb 2008: support for international text chunks added (iTXt) *) 23 jan 2008: small cleanups, and #defines to divide code in sections *) 20 jan 2008: support for unknown chunks allowing using LodePNG for an editor. *) 18 jan 2008: support for tIME and pHYs chunks added to encoder and decoder. *) 17 jan 2008: ability to encode and decode compressed zTXt chunks added Also various fixes, such as in the deflate and the padding bits code. *) 13 jan 2008: Added ability to encode Adam7-interlaced images. Improved filtering code of encoder. *) 07 jan 2008: (!) changed LodePNG to use ISO C90 instead of C++. A C++ wrapper around this provides an interface almost identical to before. Having LodePNG be pure ISO C90 makes it more portable. The C and C++ code are together in these files but it works both for C and C++ compilers. *) 29 dec 2007: (!) changed most integer types to unsigned int + other tweaks *) 30 aug 2007: bug fixed which makes this Borland C++ compatible *) 09 aug 2007: some VS2005 warnings removed again *) 21 jul 2007: deflate code placed in new namespace separate from zlib code *) 08 jun 2007: fixed bug with 2- and 4-bit color, and small interlaced images *) 04 jun 2007: improved support for Visual Studio 2005: crash with accessing invalid std::vector element [0] fixed, and level 3 and 4 warnings removed *) 02 jun 2007: made the encoder add a tag with version by default *) 27 may 2007: zlib and png code separated (but still in the same file), simple encoder/decoder functions added for more simple usage cases *) 19 may 2007: minor fixes, some code cleaning, new error added (error 69), moved some examples from here to lodepng_examples.cpp *) 12 may 2007: palette decoding bug fixed *) 24 apr 2007: changed the license from BSD to the zlib license *) 11 mar 2007: very simple addition: ability to encode bKGD chunks. *) 04 mar 2007: (!) tEXt chunk related fixes, and support for encoding palettized PNG images. Plus little interface change with palette and texts. *) 03 mar 2007: Made it encode dynamic Huffman shorter with repeat codes. Fixed a bug where the end code of a block had length 0 in the Huffman tree. *) 26 feb 2007: Huffman compression with dynamic trees (BTYPE 2) now implemented and supported by the encoder, resulting in smaller PNGs at the output. *) 27 jan 2007: Made the Adler-32 test faster so that a timewaste is gone. *) 24 jan 2007: gave encoder an error interface. Added color conversion from any greyscale type to 8-bit greyscale with or without alpha. *) 21 jan 2007: (!) Totally changed the interface. It allows more color types to convert to and is more uniform. See the manual for how it works now. *) 07 jan 2007: Some cleanup & fixes, and a few changes over the last days: encode/decode custom tEXt chunks, separate classes for zlib & deflate, and at last made the decoder give errors for incorrect Adler32 or Crc. *) 01 jan 2007: Fixed bug with encoding PNGs with less than 8 bits per channel. *) 29 dec 2006: Added support for encoding images without alpha channel, and cleaned out code as well as making certain parts faster. *) 28 dec 2006: Added "Settings" to the encoder. *) 26 dec 2006: The encoder now does LZ77 encoding and produces much smaller files now. Removed some code duplication in the decoder. Fixed little bug in an example. *) 09 dec 2006: (!) Placed output parameters of public functions as first parameter. Fixed a bug of the decoder with 16-bit per color. *) 15 okt 2006: Changed documentation structure *) 09 okt 2006: Encoder class added. It encodes a valid PNG image from the given image buffer, however for now it's not compressed. *) 08 sep 2006: (!) Changed to interface with a Decoder class *) 30 jul 2006: (!) LodePNG_InfoPng , width and height are now retrieved in different way. Renamed decodePNG to decodePNGGeneric. *) 29 jul 2006: (!) Changed the interface: image info is now returned as a struct of type LodePNG::LodePNG_Info, instead of a vector, which was a bit clumsy. *) 28 jul 2006: Cleaned the code and added new error checks. Corrected terminology "deflate" into "inflate". *) 23 jun 2006: Added SDL example in the documentation in the header, this example allows easy debugging by displaying the PNG and its transparency. *) 22 jun 2006: (!) Changed way to obtain error value. Added loadFile function for convenience. Made decodePNG32 faster. *) 21 jun 2006: (!) Changed type of info vector to unsigned. Changed position of palette in info vector. Fixed an important bug that happened on PNGs with an uncompressed block. *) 16 jun 2006: Internally changed unsigned into unsigned where needed, and performed some optimizations. *) 07 jun 2006: (!) Renamed functions to decodePNG and placed them in LodePNG namespace. Changed the order of the parameters. Rewrote the documentation in the header. Renamed files to lodepng.cpp and lodepng.h *) 22 apr 2006: Optimized and improved some code *) 07 sep 2005: (!) Changed to std::vector interface *) 12 aug 2005: Initial release (C++, decoder only) 13. contact information ----------------------- Feel free to contact me with suggestions, problems, comments, ... concerning LodePNG. If you encounter a PNG image that doesn't work properly with this decoder, feel free to send it and I'll use it to find and fix the problem. My email address is (puzzle the account and domain together with an @ symbol): Domain: gmail dot com. Account: lode dot vandevenne. Copyright (c) 2005-2016 Lode Vandevenne */ drumgizmo-0.9.18.1/plugingui/pluginconfig.h0000644000076400007640000000250413511117026015554 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginconfig.h * * Tue Jun 3 13:51:29 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Config : public ConfigFile { public: Config(); ~Config(); bool load(); bool save(); std::string defaultKitPath; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/directory.cc0000644000076400007640000002404213331526613015241 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * directory.cc * * Tue Apr 23 22:01:07 CEST 2013 * Copyright 2013 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "directory.h" #include #include #include #include #include #include #include #include #if DG_PLATFORM == DG_PLATFORM_WINDOWS #include #include #endif #include #define DRUMKIT_SUFFIX ".xml" // http://en.wikipedia.org/wiki/Path_(computing) #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define SEP "\\" #else #define SEP "/" #endif namespace GUI { Directory::Directory(std::string path) { setPath(path); } Directory::~Directory() { } std::string Directory::seperator() { return SEP; } void Directory::setPath(std::string path) { //DEBUG(directory, "Setting path to '%s'\n", path.c_str()); this->_path = cleanPath(path); refresh(); } size_t Directory::count() { return _files.size(); } void Directory::refresh() { _files = listFiles(_path, DIRECTORY_HIDDEN); //_files = listFiles(_path); } bool Directory::cd(std::string dir) { //TODO: Should this return true or false? if(dir.empty() || dir == ".") { return true; } //DEBUG(directory, "Changing to '%s'\n", dir.c_str()); if(exists(_path + SEP + dir)) { std::string path = _path + SEP + dir; setPath(path); refresh(); return true; } else { return false; } } bool Directory::cdUp() { return this->cd(".."); } std::string Directory::path() { return cleanPath(_path); } Directory::EntryList Directory::entryList() { return _files; } #define MAX_FILE_LENGTH 1024 std::string Directory::cwd() { char path[MAX_FILE_LENGTH]; char* c = getcwd(path, MAX_FILE_LENGTH); if(c) { return c; } else { return ""; } } std::string Directory::cleanPath(std::string path) { //DEBUG(directory, "Cleaning path '%s'\n", path.c_str()); Directory::Path pathlst = parsePath(path); return Directory::pathToStr(pathlst); } Directory::EntryList Directory::listFiles(std::string path, unsigned char filter) { DEBUG(directory, "Listing files in '%s'\n", path.c_str()); Directory::EntryList entries; DIR *dir = opendir(path.c_str()); if(!dir) { //DEBUG(directory, "Couldn't open directory '%s\n", path.c_str()); return entries; } std::vector directories; std::vector files; struct dirent *entry; while((entry = readdir(dir)) != nullptr) { std::string name = entry->d_name; if(name == ".") { continue; } if(Directory::isRoot(path) && name == "..") { continue; } unsigned char entryinfo = 0; if(isHidden(path + SEP + name)) { entryinfo |= DIRECTORY_HIDDEN; } std::string entrypath = path; entrypath += SEP; entrypath += entry->d_name; if(Directory::isDir(entrypath)) { if(!(entryinfo && filter)) { if(name == "..") { directories.push_back(entry->d_name); } else { directories.push_back(std::string(SEP) + entry->d_name); } } } else { int drumkit_suffix_length = strlen(DRUMKIT_SUFFIX); if((int)name.size() < drumkit_suffix_length) { continue; } if(name.substr(name.length() - drumkit_suffix_length, drumkit_suffix_length) != DRUMKIT_SUFFIX) { continue; } //if(!(entryinfo && filter)) { files.push_back(entry->d_name); //} } } #if DG_PLATFORM == DG_PLATFORM_WINDOWS //DEBUG(directory, "Root is %s\n", Directory::root(path).c_str()); //DEBUG(directory, "Current path %s is root? %d", path.c_str(), // Directory::isRoot(path)); if(Directory::isRoot(path)) { entries.push_back(".."); } #endif // sort for(int x = 0; x < (int)directories.size(); x++) { for(int y = 0; y < (int)directories.size(); y++) { if(directories[x] < directories[y]) { std::string tmp = directories[x]; directories[x] = directories[y]; directories[y] = tmp; } } } for(int x = 0; x < (int)files.size(); x++) { for(int y = 0; y < (int)files.size(); y++) { if(files[x] < files[y]) { std::string tmp = files[x]; files[x] = files[y]; files[y] = tmp; } } } for(auto directory : directories) { entries.push_back(directory); } for(auto file : files) { entries.push_back(file); } closedir(dir); return entries; } bool Directory::isRoot(std::string path) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS std::transform(path.begin(), path.end(), path.begin(), ::tolower); std::string root_str = Directory::root(path); std::transform(root_str.begin(), root_str.end(), root_str.begin(), ::tolower); // TODO: This is not a correct root calculation, but works with partitions if(path.size() == 2) { if(path == root_str) { return true; } else { return false; } } else { if (path.size() == 3) { if(path == root_str + SEP) { return true; } return false; } else { return false; } } #else if(path == SEP) { return true; } else { return false; } #endif } std::string Directory::root() { return root(cwd()); } std::string Directory::root(std::string path) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(path.size() < 2) { return "c:"; // just something default when input is bad } else { return path.substr(0, 2); } #else return SEP; #endif } Directory::DriveList Directory::drives() { Directory::DriveList drives; #if DG_PLATFORM == DG_PLATFORM_WINDOWS unsigned int d = GetLogicalDrives(); for(int i = 0; i < 32; ++i) { if(d & (1 << i)) { drive_t drive; char name[] = "x:"; name[0] = i + 'a'; drive.name = name; drive.number = i; drives.push_back(drive); } } #endif return drives; } bool Directory::isDir() { return isDir(_path); } bool Directory::isDir(std::string path) { //DEBUG(directory, "Is '%s' a directory?\n", path.c_str()); struct stat st; if(stat(path.c_str(), &st) == 0) { if((st.st_mode & S_IFDIR) != 0) { //DEBUG(directory, "\t...yes!\n"); return true; } } //DEBUG(directory, "\t...no!\n"); return false; } bool Directory::fileExists(std::string filename) { return !isDir(_path + SEP + filename); } bool Directory::exists(std::string path) { struct stat st; if(stat(path.c_str(), &st) == 0) { return true; } else { return false; } } bool Directory::isHidden(std::string path) { //DEBUG(directory, "Is '%s' hidden?\n", path.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS // We dont want to filter out '..' pointing to root of a partition unsigned pos = path.find_last_of("/\\"); std::string entry = path.substr(pos+1); if(entry == "..") { return false; } DWORD fattribs = GetFileAttributes(path.c_str()); if(fattribs & FILE_ATTRIBUTE_HIDDEN) { //DEBUG(directory, "\t...yes!\n"); return true; } else { if(fattribs & FILE_ATTRIBUTE_SYSTEM) { //DEBUG(directory, "\t...yes!\n"); return true; } else { //DEBUG(directory, "\t...no!\n"); return false; } } #else unsigned pos = path.find_last_of("/\\"); std::string entry = path.substr(pos+1); if(entry.size() > 1 && entry.at(0) == '.' && entry.at(1) != '.') { //DEBUG(directory, "\t...yes!\n"); return true; } else { //DEBUG(directory, "\t...no!\n"); return false; } #endif } Directory::Path Directory::parsePath(std::string path_str) { //TODO: Handle "." input and propably other special cases //DEBUG(directory, "Parsing path '%s'", path_str.c_str()); Directory::Path path; std::string current_char; std::string prev_char; std::string dir; for(size_t c = 0; c < path_str.size(); ++c) { current_char = path_str.at(c); if(current_char == SEP) { if(prev_char == SEP) { dir.clear(); prev_char = current_char; continue; } else { if(prev_char == ".") { prev_char = current_char; continue; } } if(!dir.empty()) { path.push_back(dir); } dir.clear(); continue; } else { if(current_char == ".") { if(prev_char == ".") { dir.clear(); if(!path.empty()) { path.pop_back(); } continue; } } } dir += current_char; prev_char = current_char; } if(!dir.empty()) { path.push_back(dir); } return path; } std::string Directory::pathToStr(Directory::Path& path) { std::string cleaned_path; //DEBUG(directory, "Number of directories in path is %d\n", (int)path.size()); for(auto it = path.begin(); it != path.end(); ++it) { std::string dir = *it; //DEBUG(directory, "\tDir '%s'\n", dir.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(it != path.begin()) { cleaned_path += SEP; } cleaned_path += dir; #else cleaned_path += SEP + dir; #endif } //DEBUG(directory, "Cleaned path '%s'\n", cleaned_path.c_str()); if(cleaned_path.empty()) { cleaned_path = Directory::root(); #if DG_PLATFORM == DG_PLATFORM_WINDOWS cleaned_path += SEP; #endif } #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(cleaned_path.size() == 2) { cleaned_path += SEP; } #endif return cleaned_path; } std::string Directory::pathDirectory(std::string filepath) { if(Directory::isDir(filepath)) { return filepath; } Directory::Path path = parsePath(filepath); if(path.size() > 0) { path.pop_back(); } return Directory::pathToStr(path); } } // GUI:: drumgizmo-0.9.18.1/plugingui/mainwindow.h0000644000076400007640000000461513544125501015254 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * mainwindow.h * * Sat Nov 26 14:27:28 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "abouttab.h" #include "drumkittab.h" #include "image.h" #include "tabwidget.h" #include "texturedbox.h" #include "window.h" #include "maintab.h" #include "pluginconfig.h" namespace GUI { class MainWindow : public Window { public: MainWindow(Settings& settings, void* native_window); ~MainWindow(); //! Process all events and messages in queue //! \return true if not closing, returns false if closing. bool processEvents(); //! Notify when window is closing. Notifier<> closeNotifier; void closeEventHandler(); private: void sizeChanged(std::size_t width, std::size_t height); void changeDrumkitTabVisibility(bool visible); // From Widget void repaintEvent(RepaintEvent* repaintEvent) override final; Config config; SettingsNotifier settings_notifier; TabWidget tabs{this}; MainTab main_tab; DrumkitTab drumkit_tab; AboutTab about_tab{&tabs}; Image back{":resources/bg.png"}; TexturedBox sidebar{getImageCache(), ":resources/sidebar.png", 0, 0, // offset 16, 0, 0, // delta-x 14, 1, 14}; // delta-y TexturedBox topbar{getImageCache(), ":resources/topbar.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 17, 1, 1}; // dy1, dy2, dy3 bool closing{false}; TabID drumkit_tab_id; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/labeledcontrol.h0000644000076400007640000000416613340266453016100 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * labeledcontrol.h * * Fri Jun 8 11:56:50 CEST 2018 * Copyright 2018 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "label.h" #include "widget.h" #include #include namespace GUI { class LabeledControl : public Widget { public: LabeledControl(Widget* parent, const std::string& name) : Widget(parent) { layout.setResizeChildren(false); layout.setHAlignment(HAlignment::center); layout.setSpacing(2); caption.setText(name); caption.resize(100, 20); caption.setAlignment(TextAlignment::center); layout.addItem(&caption); } void setControl(Knob* control) { layout.addItem(control); CONNECT(control, valueChangedNotifier, this, &LabeledControl::setValue); setValue(control->value()); value.resize(100, 20); value.setAlignment(TextAlignment::center); layout.addItem(&value); } float offset{0.0f}; float scale{1.0f}; private: VBoxLayout layout{this}; Label caption{this}; Label value{this}; void setValue(float new_value) { new_value *= scale; new_value += offset; std::stringstream stream; stream << std::fixed << std::setprecision(2) << new_value; value.setText(stream.str()); } }; } drumgizmo-0.9.18.1/plugingui/checkbox.h0000644000076400007640000000271113331526613014664 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * checkbox.h * * Sat Nov 26 15:07:44 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "toggle.h" #include "texture.h" namespace GUI { class CheckBox : public Toggle { public: CheckBox(Widget *parent); virtual ~CheckBox() = default; protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: Texture bg_on; Texture bg_off; Texture knob; }; } // GUI:: drumgizmo-0.9.18.1/plugingui/filebrowser.h0000644000076400007640000000510413546711256015427 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * filebrowser.h * * Mon Feb 25 21:09:43 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "dialog.h" #include "button.h" #include "listbox.h" #include "lineedit.h" #include "label.h" #include "image.h" #include "directory.h" namespace GUI { class FileBrowser : public Dialog { public: FileBrowser(Widget* parent); void setPath(const std::string& path); Notifier fileSelectNotifier; // (const std::string& path) Notifier<> fileSelectCancelNotifier; Notifier defaultPathChangedNotifier; // (const std::string& path) // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void resize(std::size_t width, std::size_t height) override; //! Return the filename selected in the browser. std::string getFilename() const; //! Returns true if the filebrowser has a selection, false if the window was //! closed or the cancel button was clicked. bool hasFilename() const; private: void listSelectionChanged(); void selectButtonClicked(); void setDefaultPath(); void cancelButtonClicked(); void handleKeyEvent(); Directory dir; #if DG_PLATFORM == DG_PLATFORM_WINDOWS bool above_root; bool in_root; #endif void cancel(); void select(const std::string& file); void changeDir(); Label lbl_path; LineEdit lineedit; ListBox listbox; Button btn_sel; Button btn_def; Button btn_esc; Image back; bool has_filename{false}; std::string filename; }; } // GUI:: drumgizmo-0.9.18.1/Makefile.in0000644000076400007640000006443013554101142012766 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README \ compile config.guess config.rpath config.sub depcomp \ install-sh ltmain.sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = gnu SUBDIRS = tools src plugingui plugin drumgizmo man test DISTDIRS = tools src plugingui plugin drumgizmo man test EXTRA_DIST = \ version.h \ \ hugin/hugin.h \ hugin/hugin.hpp \ hugin/hugin.c \ hugin/hugin_util.h \ hugin/hugin_syslog.h \ hugin/hugin_syslog.c \ hugin/hugin_filter.h \ hugin/hugin_filter.c \ \ getoptpp/getoptpp.hpp \ \ plugingui/lodepng/lodepng.h \ \ pugixml/src/pugixml.hpp \ pugixml/src/pugiconfig.hpp \ pugixml/src/pugixml.cpp all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/plugin/0000755000076400007640000000000013554101262012273 500000000000000drumgizmo-0.9.18.1/plugin/manifest.ttl0000644000076400007640000001121413554101206014543 00000000000000# LV2 Plugin # Copyright 2019 Bent Bisballe Nyeng # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @prefix doap: . @prefix foaf: . @prefix lv2: . @prefix atom: . @prefix ui: . @prefix state: . @prefix pprops: . @prefix idpy: . @prefix time: . @prefix lv2: . @prefix rdfs: . a ui:X11UI ; lv2:requiredFeature ui:resize ; lv2:extensionData ui:resize ; lv2:requiredFeature ui:idleInterface ; lv2:extensionData ui:idleInterface ; lv2:requiredFeature ; ui:binary . a lv2:Plugin ; lv2:binary ; a lv2:InstrumentPlugin ; doap:name "DrumGizmo" ; doap:maintainer [ foaf:name "DrumGizmo Team" ; foaf:homepage ; ] ; doap:license ; ui:ui ; doap:license ; lv2:optionalFeature ; lv2:optionalFeature ; lv2:optionalFeature idpy:queue_draw ; lv2:extensionData state:interface ; lv2:port [ a lv2:InputPort, lv2:ControlPort ; lv2:index 0 ; lv2:symbol "lv2_freewheel" ; lv2:name "Freewheel" ; lv2:default 0.0 ; lv2:minimum 0.0 ; lv2:maximum 1.0 ; lv2:designation ; lv2:portProperty ; lv2:portProperty lv2:toggled ; lv2:portProperty pprops:hasStrictBounds; ] , [ a lv2:OutputPort, lv2:ControlPort ; lv2:designation ; lv2:index 1; lv2:symbol "latency"; lv2:name "Latency"; lv2:minimum 0; lv2:maximum 192000; lv2:portProperty lv2:reportsLatency, lv2:integer; ] , [ a atom:AtomPort , lv2:InputPort; atom:bufferType atom:Sequence ; atom:supports ; lv2:index 2 ; lv2:symbol "control" ; lv2:name "Control" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 3 ; lv2:symbol "out1" ; lv2:name "Out1" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 4 ; lv2:symbol "out2" ; lv2:name "Out2" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 5 ; lv2:symbol "out3" ; lv2:name "Out3" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 6 ; lv2:symbol "out4" ; lv2:name "Out4" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 7 ; lv2:symbol "out5" ; lv2:name "Out5" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 8 ; lv2:symbol "out6" ; lv2:name "Out6" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 9 ; lv2:symbol "out7" ; lv2:name "Out7" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 10 ; lv2:symbol "out8" ; lv2:name "Out8" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 11 ; lv2:symbol "out9" ; lv2:name "Out9" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 12 ; lv2:symbol "out10" ; lv2:name "Out10" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 13 ; lv2:symbol "out11" ; lv2:name "Out11" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 14 ; lv2:symbol "out12" ; lv2:name "Out12" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 15 ; lv2:symbol "out13" ; lv2:name "Out13" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 16 ; lv2:symbol "out14" ; lv2:name "Out14" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 17 ; lv2:symbol "out15" ; lv2:name "Out15" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 18 ; lv2:symbol "out16" ; lv2:name "Out16" ] . drumgizmo-0.9.18.1/plugin/Makefile.mingw32.in0000644000076400007640000001400113544125501015542 00000000000000# -*- Makefile -*- VST_BASE=@VST_SOURCE_PATH@ VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/ VST_SRC = \ ${VST_SRC_BASE}/audioeffectx.cpp \ ${VST_SRC_BASE}/audioeffect.cpp \ ${VST_SRC_BASE}/vstplugmain.cpp VST_CFLAGS=-I$(VST_BASE) DG_SRC = \ @top_srcdir@/pugixml/src/pugixml.cpp \ @top_srcdir@/src/audiocachefile.cc \ @top_srcdir@/src/audiocache.cc \ @top_srcdir@/src/audiocacheeventhandler.cc \ @top_srcdir@/src/audiocacheidmanager.cc \ @top_srcdir@/src/audioinputenginemidi.cc \ @top_srcdir@/src/audiofile.cc \ @top_srcdir@/src/channel.cc \ @top_srcdir@/src/channelmixer.cc \ @top_srcdir@/src/configfile.cc \ @top_srcdir@/src/configparser.cc \ @top_srcdir@/src/dgxmlparser.cc \ @top_srcdir@/src/domloader.cc \ @top_srcdir@/src/drumgizmo.cc \ @top_srcdir@/src/drumkit.cc \ @top_srcdir@/src/drumkitloader.cc \ @top_srcdir@/src/events.cc \ @top_srcdir@/src/inputprocessor.cc \ @top_srcdir@/src/instrument.cc \ @top_srcdir@/src/latencyfilter.cc \ @top_srcdir@/src/midimapparser.cc \ @top_srcdir@/src/midimapper.cc \ @top_srcdir@/src/path.cc \ @top_srcdir@/src/powerlist.cc \ @top_srcdir@/src/random.cc \ @top_srcdir@/src/sample.cc \ @top_srcdir@/src/sample_selection.cc \ @top_srcdir@/src/sem.cc \ @top_srcdir@/src/staminafilter.cc \ @top_srcdir@/src/thread.cc \ @top_srcdir@/src/velocityfilter.cc \ @top_srcdir@/src/versionstr.cc DG_CFLAGS = -I@top_srcdir@ -I@top_srcdir@/src \ -I@top_srcdir@/pugixml/src \ -I@top_srcdir@/plugin/plugingizmo -DVST -DSSE -msse -msse2 # -DDISABLE_HUGIN GUI_SRC = \ @top_srcdir@/plugingui/abouttab.cc \ @top_srcdir@/plugingui/bleedcontrolframecontent.cc \ @top_srcdir@/plugingui/button.cc \ @top_srcdir@/plugingui/button_base.cc \ @top_srcdir@/plugingui/checkbox.cc \ @top_srcdir@/plugingui/colour.cc \ @top_srcdir@/plugingui/combobox.cc \ @top_srcdir@/plugingui/dialog.cc \ @top_srcdir@/plugingui/directory.cc \ @top_srcdir@/plugingui/diskstreamingframecontent.cc \ @top_srcdir@/plugingui/drumkitframecontent.cc \ @top_srcdir@/plugingui/drumkittab.cc \ @top_srcdir@/plugingui/eventhandler.cc \ @top_srcdir@/plugingui/filebrowser.cc \ @top_srcdir@/plugingui/font.cc \ @top_srcdir@/plugingui/frame.cc \ @top_srcdir@/plugingui/helpbutton.cc \ @top_srcdir@/plugingui/humanizerframecontent.cc \ @top_srcdir@/plugingui/humaniservisualiser.cc \ @top_srcdir@/plugingui/image.cc \ @top_srcdir@/plugingui/imagecache.cc \ @top_srcdir@/plugingui/knob.cc \ @top_srcdir@/plugingui/label.cc \ @top_srcdir@/plugingui/layout.cc \ @top_srcdir@/plugingui/led.cc \ @top_srcdir@/plugingui/lineedit.cc \ @top_srcdir@/plugingui/listbox.cc \ @top_srcdir@/plugingui/listboxbasic.cc \ @top_srcdir@/plugingui/listboxthin.cc \ @top_srcdir@/plugingui/maintab.cc \ @top_srcdir@/plugingui/mainwindow.cc \ @top_srcdir@/plugingui/nativewindow_win32.cc \ @top_srcdir@/plugingui/painter.cc \ @top_srcdir@/plugingui/pixelbuffer.cc \ @top_srcdir@/plugingui/pluginconfig.cc \ @top_srcdir@/plugingui/powerbutton.cc \ @top_srcdir@/plugingui/progressbar.cc \ @top_srcdir@/plugingui/resamplingframecontent.cc \ @top_srcdir@/plugingui/resource.cc \ @top_srcdir@/plugingui/sampleselectionframecontent.cc \ @top_srcdir@/plugingui/scrollbar.cc \ @top_srcdir@/plugingui/slider.cc \ @top_srcdir@/plugingui/stackedwidget.cc \ @top_srcdir@/plugingui/statusframecontent.cc \ @top_srcdir@/plugingui/tabbutton.cc \ @top_srcdir@/plugingui/tabwidget.cc \ @top_srcdir@/plugingui/textedit.cc \ @top_srcdir@/plugingui/texture.cc \ @top_srcdir@/plugingui/texturedbox.cc \ @top_srcdir@/plugingui/timingframecontent.cc \ @top_srcdir@/plugingui/toggle.cc \ @top_srcdir@/plugingui/tooltip.cc \ @top_srcdir@/plugingui/utf8.cc \ @top_srcdir@/plugingui/verticalline.cc \ @top_srcdir@/plugingui/visualizerframecontent.cc \ @top_srcdir@/plugingui/widget.cc \ @top_srcdir@/plugingui/window.cc \ @top_srcdir@/plugingui/lodepng/lodepng.cpp GUI_CPPFLAGS=-I@top_srcdir@/plugingui/ -DUSE_THREAD @GUI_CPPFLAGS@ GUI_LIBS=@GUI_LIBS@ DBG_SRC = \ @top_srcdir@/hugin/hugin.c \ @top_srcdir@/hugin/hugin_syslog.c DBG_CFLAGS=-I../hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX # -DDISABLE_HUGIN # # http://old.nabble.com/using-VC%2B%2B-.lib-with-mingw-td23151303.html # Given `-lfoo', the win32 build of GNU ld will search for libfoo.a and foo.lib # SNDFILE_CFLAGS=@SNDFILE_CFLAGS@ SNDFILE_LIBS=@SNDFILE_LIBS@ ZITA_CXXFLAGS=@ZITA_CPPFLAGS@ ZITA_LIBS=@ZITA_LIBS@ CXXFLAGS += -fvisibility=hidden CFLAGS += -fvisibility=hidden SRC = \ @top_srcdir@/plugin/plugingizmo/midievent.cc \ @top_srcdir@/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/help_button.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/stddev_horizontal.png \ resources/stddev_horizontal_disabled.png \ resources/stddev_vertical.png \ resources/stddev_vertical_disabled.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../BUGS \ ../COPYING all: g++ @top_srcdir@/plugingui/rcgen.cc -o @top_srcdir@/plugingui/rcgen (cd @top_srcdir@/plugingui; ./rcgen $(RES) > resource_data.cc) g++ $(CXXFLAGS) @top_srcdir@/plugingui/resource_data.cc -c gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c gcc $(CFLAGS) $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o resource_data.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(GUI_LIBS) $(ZITA_CXXFLAGS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(ZITA_LIBS) -latomic -shared -Wl,-retain-symbols-file -Wl,drumgizmo_vst.sym -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a clean: del -f drumgizmo_vst.dll libdrumgizmo_vst.a drumgizmo-0.9.18.1/plugin/drumgizmo_plugin.h0000644000076400007640000001320313511117026015754 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo_lv2.h * * Wed Mar 2 17:31:31 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #ifdef LV2 #include #endif #ifdef VST #include #endif #include #include #include #include #include #include #include class DrumGizmoPlugin #ifdef LV2 : public PluginLV2 #endif #ifdef VST : public PluginVST #endif { public: #ifdef VST DrumGizmoPlugin(audioMasterCallback audioMaster); #else DrumGizmoPlugin(); #endif void onFramesizeChange(size_t framesize) override; void onSamplerateChange(float samplerate) override; void onActiveChange(bool active) override; std::string onStateSave() override; void onStateRestore(const std::string& config) override; size_t getNumberOfMidiInputs() override; size_t getNumberOfMidiOutputs() override; size_t getNumberOfAudioInputs() override; size_t getNumberOfAudioOutputs() override; // Functions used to set VST plugin information std::string getId() override; std::string getURI() override; std::string getEffectName() override; std::string getVendorString() override; std::string getProductString() override; std::string getHomepage() override; PluginCategory getPluginCategory() override; void process(size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, size_t count) override; // // Inline GUI // bool hasInlineGUI() override; void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) override; // // GUI // bool hasGUI() override; void* createWindow(void *parent) override; void onDestroyWindow() override; void onShowWindow() override; void onHideWindow() override; void onIdle() override; void closeWindow() override; private: class Input : public AudioInputEngineMidi { public: Input(DrumGizmoPlugin& plugin); bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; bool isFreewheeling() const override; bool loadMidiMap(const std::string& file, const Instruments& i) override; protected: DrumGizmoPlugin& plugin; const Instruments* instruments{nullptr}; }; class Output : public AudioOutputEngine { public: Output(DrumGizmoPlugin& plugin); bool init(const Channels& channels) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t *samples, size_t nsamples) override; void post(size_t nsamples) override; sample_t *getBuffer(int ch) const override; std::size_t getBufferSize() const override; std::size_t getSamplerate() const override; bool isFreewheeling() const override; protected: DrumGizmoPlugin& plugin; }; class ConfigStringIO { public: ConfigStringIO(Settings& settings); std::string get(); bool set(std::string config_string); private: Settings& settings; }; Input input{*this}; const std::vector* input_events{nullptr}; Output output{*this}; const std::vector* output_samples{nullptr}; Settings settings; ConfigStringIO config_string_io; SettingsGetter settingsGetter{settings}; GUI::ImageCache imageCache; GUI::TexturedBox box{imageCache, ":resources/progress.png", 0, 0, // atlas offset (x, y) 6, 1, 6, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_red{imageCache, ":resources/progress.png", 13, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_green{imageCache, ":resources/progress.png", 18, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_blue{imageCache, ":resources/progress.png", 23, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 std::shared_ptr plugin_gui; std::shared_ptr drumgizmo; std::uint32_t inlineDisplayBuffer[1024*1024]; GUI::Image inline_display_image{":resources/logo.png"}; bool inline_image_first_draw{true}; static constexpr std::size_t width{750}; static constexpr std::size_t height{613}; }; drumgizmo-0.9.18.1/plugin/Makefile.in0000644000076400007640000014061213554101142014261 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = $(am__EXEEXT_1) @ENABLE_LV2_TRUE@am__append_1 = ttlgen subdir = plugin ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = Makefile.mingw32 CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(lv2plugindir)" \ "$(DESTDIR)$(vstplugindir)" "$(DESTDIR)$(lv2plugindir)" \ "$(DESTDIR)$(vstplugindir)" LTLIBRARIES = $(lv2plugin_LTLIBRARIES) $(vstplugin_LTLIBRARIES) am__DEPENDENCIES_1 = drumgizmo_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(top_srcdir)/plugingui/libdggui.la $(top_srcdir)/src/libdg.la am_drumgizmo_la_OBJECTS = drumgizmo_la-hugin.lo \ drumgizmo_la-midievent.lo drumgizmo_la-pluginlv2.lo \ drumgizmo_la-drumgizmo_plugin.lo drumgizmo_la_OBJECTS = $(am_drumgizmo_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = drumgizmo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(drumgizmo_la_CXXFLAGS) \ $(CXXFLAGS) $(drumgizmo_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_LV2_TRUE@am_drumgizmo_la_rpath = -rpath $(lv2plugindir) drumgizmo_vst_la_DEPENDENCIES = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la $(top_srcdir)/src/libdg.la am_drumgizmo_vst_la_OBJECTS = drumgizmo_vst_la-hugin.lo \ drumgizmo_vst_la-midievent.lo drumgizmo_vst_la-pluginvst.lo \ drumgizmo_vst_la-drumgizmo_plugin.lo drumgizmo_vst_la_OBJECTS = $(am_drumgizmo_vst_la_OBJECTS) drumgizmo_vst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) \ $(drumgizmo_vst_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_VST_TRUE@am_drumgizmo_vst_la_rpath = -rpath $(vstplugindir) @ENABLE_LV2_TRUE@am__EXEEXT_1 = ttlgen$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am_ttlgen_OBJECTS = ttlgen-ttlgen.$(OBJEXT) ttlgen_OBJECTS = $(am_ttlgen_OBJECTS) ttlgen_LDADD = $(LDADD) ttlgen_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(ttlgen_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(drumgizmo_la_SOURCES) $(drumgizmo_vst_la_SOURCES) \ $(ttlgen_SOURCES) DIST_SOURCES = $(drumgizmo_la_SOURCES) $(drumgizmo_vst_la_SOURCES) \ $(ttlgen_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(lv2plugin_DATA) $(vstplugin_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.mingw32.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = vst ####### # LV2 ### @ENABLE_LV2_TRUE@lv2plugindir = @LV2DIR@/drumgizmo.lv2 @ENABLE_LV2_TRUE@lv2plugin_LTLIBRARIES = drumgizmo.la @ENABLE_LV2_TRUE@lv2plugin_DATA = manifest.ttl drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \ -fvisibility=hidden \ $(LV2_CFLAGS) \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin drumgizmo_la_CFLAGS = -fvisibility=hidden drumgizmo_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \ drumgizmo_plugin.cc drumgizmo_la_LDFLAGS = -shared -module -avoid-version \ -export-symbols drumgizmo_lv2.sym drumgizmo_la_LIBADD = $(LV2_LIBS) \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la ttlgen_CPPFLAGS = $(DL_CFLAGS) -I$(top_srcdir)/plugin/plugingizmo ttlgen_LDFLAGS = $(DL_LIBS) ttlgen_SOURCES = \ $(top_srcdir)/plugin/plugingizmo/ttlgen.cc @ENABLE_COCOA_TRUE@UITYPE = CocoaUI @ENABLE_PUGL_COCOA_TRUE@UITYPE = CocoaUI @ENABLE_PUGL_WIN32_TRUE@UITYPE = WindowsUI @ENABLE_PUGL_X11_TRUE@UITYPE = X11UI @ENABLE_WIN32_TRUE@UITYPE = WindowsUI @ENABLE_X11_TRUE@UITYPE = X11UI ####### # VST ### @ENABLE_VST_TRUE@vstplugindir = $(libdir)/vst @ENABLE_VST_TRUE@vstplugin_LTLIBRARIES = drumgizmo_vst.la @ENABLE_VST_TRUE@vstplugin_DATA = drumgizmo_vst_la_CXXFLAGS = -DVST \ -fvisibility=hidden \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin \ $(VST_CPPFLAGS) -Ivst drumgizmo_vst_la_CFLAGS = -fvisibility=hidden drumgizmo_vst_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version \ -export-symbols drumgizmo_vst.sym drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la EXTRA_DIST = \ $(lv2plugin_DATA) \ $(vstplugin_DATA) \ drumgizmo_plugin.h \ drumgizmo_lv2.sym \ drumgizmo_vst.sym \ $(top_srcdir)/plugin/plugingizmo/plugin.h \ $(top_srcdir)/plugin/plugingizmo/midievent.h \ $(top_srcdir)/plugin/plugingizmo/midnam_lv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginvst.h \ $(top_srcdir)/plugin/plugingizmo/inline-display.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugin/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): Makefile.mingw32: $(top_builddir)/config.status $(srcdir)/Makefile.mingw32.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-lv2pluginLTLIBRARIES: $(lv2plugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lv2plugin_LTLIBRARIES)'; test -n "$(lv2plugindir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(lv2plugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lv2plugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(lv2plugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(lv2plugindir)"; \ } uninstall-lv2pluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lv2plugin_LTLIBRARIES)'; test -n "$(lv2plugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(lv2plugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(lv2plugindir)/$$f"; \ done clean-lv2pluginLTLIBRARIES: -test -z "$(lv2plugin_LTLIBRARIES)" || rm -f $(lv2plugin_LTLIBRARIES) @list='$(lv2plugin_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } install-vstpluginLTLIBRARIES: $(vstplugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(vstplugin_LTLIBRARIES)'; test -n "$(vstplugindir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(vstplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(vstplugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(vstplugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(vstplugindir)"; \ } uninstall-vstpluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(vstplugin_LTLIBRARIES)'; test -n "$(vstplugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(vstplugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(vstplugindir)/$$f"; \ done clean-vstpluginLTLIBRARIES: -test -z "$(vstplugin_LTLIBRARIES)" || rm -f $(vstplugin_LTLIBRARIES) @list='$(vstplugin_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } drumgizmo.la: $(drumgizmo_la_OBJECTS) $(drumgizmo_la_DEPENDENCIES) $(EXTRA_drumgizmo_la_DEPENDENCIES) $(AM_V_CXXLD)$(drumgizmo_la_LINK) $(am_drumgizmo_la_rpath) $(drumgizmo_la_OBJECTS) $(drumgizmo_la_LIBADD) $(LIBS) drumgizmo_vst.la: $(drumgizmo_vst_la_OBJECTS) $(drumgizmo_vst_la_DEPENDENCIES) $(EXTRA_drumgizmo_vst_la_DEPENDENCIES) $(AM_V_CXXLD)$(drumgizmo_vst_la_LINK) $(am_drumgizmo_vst_la_rpath) $(drumgizmo_vst_la_OBJECTS) $(drumgizmo_vst_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ttlgen$(EXEEXT): $(ttlgen_OBJECTS) $(ttlgen_DEPENDENCIES) $(EXTRA_ttlgen_DEPENDENCIES) @rm -f ttlgen$(EXEEXT) $(AM_V_CXXLD)$(ttlgen_LINK) $(ttlgen_OBJECTS) $(ttlgen_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-hugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-midievent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-pluginlv2.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-hugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-midievent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-pluginvst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ttlgen-ttlgen.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< drumgizmo_la-hugin.lo: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CFLAGS) $(CFLAGS) -MT drumgizmo_la-hugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-hugin.Tpo -c -o drumgizmo_la-hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-hugin.Tpo $(DEPDIR)/drumgizmo_la-hugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='drumgizmo_la-hugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CFLAGS) $(CFLAGS) -c -o drumgizmo_la-hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c drumgizmo_vst_la-hugin.lo: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CFLAGS) $(CFLAGS) -MT drumgizmo_vst_la-hugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-hugin.Tpo -c -o drumgizmo_vst_la-hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-hugin.Tpo $(DEPDIR)/drumgizmo_vst_la-hugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='drumgizmo_vst_la-hugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CFLAGS) $(CFLAGS) -c -o drumgizmo_vst_la-hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< drumgizmo_la-midievent.lo: $(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-midievent.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-midievent.Tpo -c -o drumgizmo_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-midievent.Tpo $(DEPDIR)/drumgizmo_la-midievent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/midievent.cc' object='drumgizmo_la-midievent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc drumgizmo_la-pluginlv2.lo: $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-pluginlv2.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-pluginlv2.Tpo -c -o drumgizmo_la-pluginlv2.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-pluginlv2.Tpo $(DEPDIR)/drumgizmo_la-pluginlv2.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' object='drumgizmo_la-pluginlv2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-pluginlv2.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc drumgizmo_la-drumgizmo_plugin.lo: drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-drumgizmo_plugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Tpo -c -o drumgizmo_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Tpo $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo_plugin.cc' object='drumgizmo_la-drumgizmo_plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc drumgizmo_vst_la-midievent.lo: $(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-midievent.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-midievent.Tpo -c -o drumgizmo_vst_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-midievent.Tpo $(DEPDIR)/drumgizmo_vst_la-midievent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/midievent.cc' object='drumgizmo_vst_la-midievent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc drumgizmo_vst_la-pluginvst.lo: $(top_srcdir)/plugin/plugingizmo/pluginvst.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-pluginvst.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-pluginvst.Tpo -c -o drumgizmo_vst_la-pluginvst.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginvst.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-pluginvst.Tpo $(DEPDIR)/drumgizmo_vst_la-pluginvst.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' object='drumgizmo_vst_la-pluginvst.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-pluginvst.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginvst.cc drumgizmo_vst_la-drumgizmo_plugin.lo: drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-drumgizmo_plugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Tpo -c -o drumgizmo_vst_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Tpo $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo_plugin.cc' object='drumgizmo_vst_la-drumgizmo_plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc ttlgen-ttlgen.o: $(top_srcdir)/plugin/plugingizmo/ttlgen.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ttlgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ttlgen-ttlgen.o -MD -MP -MF $(DEPDIR)/ttlgen-ttlgen.Tpo -c -o ttlgen-ttlgen.o `test -f '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/ttlgen.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ttlgen-ttlgen.Tpo $(DEPDIR)/ttlgen-ttlgen.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/ttlgen.cc' object='ttlgen-ttlgen.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ttlgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ttlgen-ttlgen.o `test -f '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/ttlgen.cc ttlgen-ttlgen.obj: $(top_srcdir)/plugin/plugingizmo/ttlgen.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ttlgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ttlgen-ttlgen.obj -MD -MP -MF $(DEPDIR)/ttlgen-ttlgen.Tpo -c -o ttlgen-ttlgen.obj `if test -f '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ttlgen-ttlgen.Tpo $(DEPDIR)/ttlgen-ttlgen.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/ttlgen.cc' object='ttlgen-ttlgen.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ttlgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ttlgen-ttlgen.obj `if test -f '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugin/plugingizmo/ttlgen.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-lv2pluginDATA: $(lv2plugin_DATA) @$(NORMAL_INSTALL) @list='$(lv2plugin_DATA)'; test -n "$(lv2plugindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lv2plugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lv2plugindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lv2plugindir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lv2plugindir)" || exit $$?; \ done uninstall-lv2pluginDATA: @$(NORMAL_UNINSTALL) @list='$(lv2plugin_DATA)'; test -n "$(lv2plugindir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lv2plugindir)'; $(am__uninstall_files_from_dir) install-vstpluginDATA: $(vstplugin_DATA) @$(NORMAL_INSTALL) @list='$(vstplugin_DATA)'; test -n "$(vstplugindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(vstplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(vstplugindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(vstplugindir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(vstplugindir)" || exit $$?; \ done uninstall-vstpluginDATA: @$(NORMAL_UNINSTALL) @list='$(vstplugin_DATA)'; test -n "$(vstplugindir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(vstplugindir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(lv2plugindir)" "$(DESTDIR)$(vstplugindir)" "$(DESTDIR)$(lv2plugindir)" "$(DESTDIR)$(vstplugindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-lv2pluginLTLIBRARIES \ clean-noinstPROGRAMS clean-vstpluginLTLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-lv2pluginDATA install-lv2pluginLTLIBRARIES \ install-vstpluginDATA install-vstpluginLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-lv2pluginDATA uninstall-lv2pluginLTLIBRARIES \ uninstall-vstpluginDATA uninstall-vstpluginLTLIBRARIES .MAKE: $(am__recursive_targets) install-am install-data-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool \ clean-lv2pluginLTLIBRARIES clean-noinstPROGRAMS \ clean-vstpluginLTLIBRARIES cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-hook install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-lv2pluginDATA \ install-lv2pluginLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ install-vstpluginDATA install-vstpluginLTLIBRARIES \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-lv2pluginDATA uninstall-lv2pluginLTLIBRARIES \ uninstall-vstpluginDATA uninstall-vstpluginLTLIBRARIES .PRECIOUS: Makefile manifest.ttl : ttlgen drumgizmo.la ./ttlgen .libs/drumgizmo.so manifest.ttl $(UITYPE) install-data-hook: rm -f $(DESTDIR)/$(lv2plugindir)/drumgizmo.la rm -f $(DESTDIR)/$(vstplugindir)/drumgizmo_vst.la # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/plugin/drumgizmo_lv2.sym0000644000076400007640000000006413511117026015543 00000000000000lv2_descriptor lv2ui_descriptor createEffectInstancedrumgizmo-0.9.18.1/plugin/plugingizmo/0000755000076400007640000000000013554101262014637 500000000000000drumgizmo-0.9.18.1/plugin/plugingizmo/midnam_lv2.h0000644000076400007640000000207213366640430016767 00000000000000#define LV2_MIDNAM_URI "http://ardour.org/lv2/midnam" #define LV2_MIDNAM_PREFIX LV2_MIDNAM_URI "#" #define LV2_MIDNAM__interface LV2_MIDNAM_PREFIX "interface" #define LV2_MIDNAM__update LV2_MIDNAM_PREFIX "update" typedef void* LV2_Midnam_Handle; /** a LV2 Feature provided by the Host to the plugin */ typedef struct { /** Opaque host data */ LV2_Midnam_Handle handle; /** Request from run() that the host should re-read the midnam */ void (*update)(LV2_Midnam_Handle handle); } LV2_Midnam; typedef struct { /** Query midnam document. The plugin * is expected to return a null-terminated XML * text which is a valid midnam desciption * (or NULL in case of error). * * The midnam must be unique and * specific for the given plugin-instance. */ char* (*midnam)(LV2_Handle instance); /** The unique model id used ith the midnam, * (or NULL). */ char* (*model)(LV2_Handle instance); /** free allocated strings. The host * calls this for every value returned by * \ref midnam and \ref model. */ void (*free)(char*); } LV2_Midnam_Interface; drumgizmo-0.9.18.1/plugin/plugingizmo/pluginvst.h0000644000076400007640000001600413366640430016772 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginvst.h * * Mon Feb 8 19:24:39 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #if defined(WIN32) #define WIN32_LEAN_AND_MEAN #include #endif // defined(WIN32) class PluginVST : public Plugin , public AudioEffectX { public: //! Call this to set up number of inputs/outpus, unique id etc... //! IMPORTANT: This must be called form the constructor. void init() override; //! Get current free-wheel mode. bool getFreeWheel() const override; //! Call this to get current samplerate. float getSamplerate() override; //! This method is called by the host when the free-wheel mode changes. virtual void onSamplerateChange(float samplerate) override = 0; //! Call this to get current frame-size. std::size_t getFramesize() override; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) override = 0; //! Call this to get current active state bool getActive() override; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) override = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() override = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) override = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. float getLatency() override; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. void setLatency(float latency) override; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() override = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() override = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() override = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() override = 0; // VST plugin information //! Get unique plugin id. std::string getId() override = 0; // Functions used to set plugin information for VST //! Returns value which is then used by getEffectName std::string getEffectName() override = 0; //! Returns value which is then used by getVendorString std::string getVendorString() override = 0; //! Returns value which is then used by getProductString std::string getProductString() override = 0; //! Returns value which is then used by getPlugCategory PluginCategory getPluginCategory() override = 0; //! Fill \e text with a string identifying the effect bool getEffectName(char* name) override; //! Fill \e text with a string identifying the vendor bool getVendorString(char* text) override; //! Fill \e text with a string identifying the product name bool getProductString(char* text) override; //! Specify a category that fits the plug (#VstPlugCategory) virtual VstPlugCategory getPlugCategory() override; virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) override = 0; // // GUI // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() override { return false; } //! Create new window. virtual void* createWindow(void *parent) override { return nullptr; } //! Destroy window. virtual void onDestroyWindow() override {} //! Show window. virtual void onShowWindow() override {} //! Hide window. virtual void onHideWindow() override {} //! Called regularly by host; process ui events. virtual void onIdle() override {} //! Signal new window size to host. void resizeWindow(std::size_t width, std::size_t height) override; //! Signal close window event to the host. void closeWindow() override; protected: bool active{false}; void updateLatency(); float current_latency{0.0f}; float update_latency{0.0f}; bool free_wheel{true}; std::vector input_events; std::size_t pos{0}; public: PluginVST(audioMasterCallback audioMaster); virtual ~PluginVST(); // From AudioEffect: void open() override; void close() override; void suspend() override; void resume() override; bool getInputProperties(VstInt32 index, VstPinProperties* props) override; bool getOutputProperties(VstInt32 index, VstPinProperties* props) override; // Callbacks: void setSampleRate(float sampleRate) override; void setBlockSize(VstInt32 blockSize) override; VstInt32 getChunk(void **data, bool isPreset) override; VstInt32 setChunk(void *data, VstInt32 byteSize, bool isPreset) override; // From AudioEffectX: VstInt32 canDo(char* text) override; void processReplacing(float** inputs, float** outputs, VstInt32 sampleFrames) override; VstInt32 processEvents(VstEvents *events) override; // UI class UI : public AEffEditor { public: UI(PluginVST& plugin_vst); bool open(void* ptr) override; void close() override; bool isOpen() override; void idle() override; bool getRect(ERect** rect) override; PluginVST& plugin_vst; bool is_open{false}; ERect rect{0,0,100,100}; }; private: std::shared_ptr editor; }; AudioEffect* createEffectInstance(audioMasterCallback audioMaster); drumgizmo-0.9.18.1/plugin/plugingizmo/midievent.h0000644000076400007640000000313113450453331016714 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midievent.h * * Sun Feb 7 15:09:01 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include enum class MidiEventType { Unknown, NoteOn, NoteOff, Aftertouch, }; class MidiEvent { public: MidiEvent() = default; MidiEvent(int64_t time, const char* data, std::size_t size); int64_t getTime() const; const char* getData() const; std::size_t getSize() const; MidiEventType type{MidiEventType::Unknown}; int key{0}; int velocity{0}; private: int64_t time; std::vector data; }; drumgizmo-0.9.18.1/plugin/plugingizmo/pluginlv2.h0000644000076400007640000002152213514401343016653 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginlv2.h * * Sun Feb 7 15:15:23 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include #include #include #define DISPLAY_INTERFACE #define MIDNAM_INTERFACE #ifdef DISPLAY_INTERFACE #include "inline-display.h" #endif #ifdef MIDNAM_INTERFACE #include "midnam_lv2.h" #endif enum class LV2Ports { FreeWheel = 0, Latency = 1, PortOffset = 2, }; class PluginLV2 : public Plugin { public: virtual ~PluginLV2() = default; //! Not used in LV2 void init() override; //! Get current free-wheel mode. bool getFreeWheel() const override; //! Call this to get current samplerate. float getSamplerate() override; //! This method is called by the host when the samplerate changes. virtual void onSamplerateChange(float samplerate) override = 0; //! Call this to get current frame-size. std::size_t getFramesize() override; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) override = 0; //! Call this to get current active state bool getActive() override; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) override = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() override = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) override = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. float getLatency() override; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. void setLatency(float latency) override; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() override = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() override = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() override = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() override = 0; //! Call this method to set midnam data for midi input virtual void setMidnamData(const std::vector>& midnam) override; //! Get unique plugin id. std::string getId() override = 0; // Functions used to set plugin information. std::string getEffectName() override = 0; std::string getVendorString() override = 0; std::string getProductString() override = 0; PluginCategory getPluginCategory() override = 0; virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) override = 0; // // Inline GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasInlineGUI() override { return false; } //! Render call back. //! \param width The client area width as specified by the host. //! \param max_height The maximum allowed clieant area height as specified //! by the host. //! \param context The render context filled an maintained by the plugin. virtual void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) override {} // // GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() override { return false; } //! Create new window. virtual void* createWindow(void *parent) override { return nullptr; } //! Destroy window. virtual void onDestroyWindow() override {} //! Show window. virtual void onShowWindow() override {} //! Hide window. virtual void onHideWindow() override {} //! Called regularly by host; process ui events. virtual void onIdle() override {} //! Signal new window size to host. void resizeWindow(std::size_t width, std::size_t height) override; //! Signal close window event to the host. void closeWindow() override; public: static LV2_Handle instantiate(const struct _LV2_Descriptor* descriptor, double sample_rate, const char* bundle_path, const LV2_Feature* const * features); static void connectPort(LV2_Handle instance, uint32_t port, void *data_location); static void run(LV2_Handle instance, uint32_t sample_count); static void activate(LV2_Handle instance); static void deactivate(LV2_Handle instance); static void cleanup(LV2_Handle instance); static const void* extensionData(const char *uri); static LV2_State_Status save(LV2_Handle instance, LV2_State_Store_Function store, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features); static LV2_State_Status restore(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features); static LV2UI_Handle uiInstantiate(const struct _LV2UI_Descriptor * descriptor, const char * plugin_uri, const char * bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget * widget, const LV2_Feature * const * features); static void uiCleanup(LV2UI_Handle handle); static int uiIdle(LV2UI_Handle handle); static const void* uiExtensionData(const char* uri); private: float* free_wheel_port{nullptr}; bool free_wheel{false}; float sample_rate{0}; float* latency_port{nullptr}; std::size_t frame_size{0}; std::size_t pos{0}; std::vector input_event_ports; std::vector output_event_ports; std::vector input_audio_ports; std::vector output_audio_ports; LV2_URID_Map* map{nullptr}; #ifdef DISPLAY_INTERFACE LV2_Inline_Display_Image_Surface surf; LV2_Inline_Display* queue_draw{nullptr}; InlineDrawContext drawContext; static LV2_Inline_Display_Image_Surface *inlineRender(LV2_Handle instance, uint32_t w, uint32_t max_h); #endif #ifdef MIDNAM_INTERFACE LV2_Midnam* midnam{nullptr}; static char* MidnamFile (LV2_Handle instance); static char* MidnamModel (LV2_Handle instance); static void MidnamFree (char*); #endif std::atomic midnam_changed{false}; std::array, 127> midnamData; // At most 127 different midinotes. bool active{false}; // // GUI // LV2UI_Resize* resize{nullptr}; }; PG_EXPORT PluginLV2* createEffectInstance(); drumgizmo-0.9.18.1/plugin/plugingizmo/pluginlv2.cc0000644000076400007640000004644213376232126017030 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginlv2.cc * * Sun Feb 7 15:15:24 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginlv2.h" #include #include #include "midievent.h" #define LV2_PLUGIN_URI__atom LV2_PLUGIN_URI "/atom#" #define LV2_PLUGIN_URI__instance LV2_PLUGIN_URI "#plugin-instance" #define LV2_PLUGIN_URI__ui LV2_PLUGIN_URI "#ui" #include "lv2/lv2plug.in/ns/ext/atom/util.h" #include #include void PluginLV2::init() { for(auto& m : midnamData) { m.first = -1; // Mark midnam slot as unsued. m.second.reserve(64); // Reserve 64 characters for the midnam name. } } bool PluginLV2::getFreeWheel() const { return free_wheel; } float PluginLV2::getSamplerate() { return sample_rate; } std::size_t PluginLV2::getFramesize() { return frame_size; } bool PluginLV2::getActive() { return active; } float PluginLV2::getLatency() { if(latency_port) { return *latency_port; } return 0.0f; } void PluginLV2::setLatency(float latency) { if(latency_port) { *latency_port = latency; } } LV2_Handle PluginLV2::instantiate(const struct _LV2_Descriptor* descriptor, double sample_rate, const char* bundle_path, const LV2_Feature *const *features) { PluginLV2* plugin_lv2 = createEffectInstance(); plugin_lv2->sample_rate = sample_rate; plugin_lv2->input_event_ports.resize(plugin_lv2->getNumberOfMidiInputs(), nullptr); plugin_lv2->output_event_ports.resize(plugin_lv2->getNumberOfMidiOutputs(), nullptr); plugin_lv2->input_audio_ports.resize(plugin_lv2->getNumberOfAudioInputs()); plugin_lv2->output_audio_ports.resize(plugin_lv2->getNumberOfAudioOutputs()); for(auto& port : plugin_lv2->output_audio_ports) { port = nullptr; } for(auto& port : plugin_lv2->input_audio_ports) { port = nullptr; } while(*features != nullptr) { std::string uri = (*features)->URI; void* data = (*features)->data; if(uri == LV2_URID__map) { plugin_lv2->map = (LV2_URID_Map*)data; } #ifdef DISPLAY_INTERFACE if(uri == LV2_INLINEDISPLAY__queue_draw) { plugin_lv2->queue_draw = (LV2_Inline_Display*)data; } #endif #ifdef MIDNAM_INTERFACE if(uri == LV2_MIDNAM__update) { plugin_lv2->midnam = (LV2_Midnam*)data; } #endif ++features; } // Only reported on creation. plugin_lv2->onSamplerateChange(sample_rate); return (LV2_Handle)plugin_lv2; } void PluginLV2::connectPort(LV2_Handle instance, uint32_t port, void *data_location) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(port == static_cast(LV2Ports::FreeWheel)) { plugin_lv2->free_wheel_port = (float*)data_location; if(plugin_lv2->free_wheel_port) { plugin_lv2->free_wheel = (*plugin_lv2->free_wheel_port != 0.0f); // Signal first time. plugin_lv2->onFreeWheelChange(plugin_lv2->free_wheel); } } if(port == static_cast(LV2Ports::Latency)) { plugin_lv2->latency_port = (float*)data_location; } uint32_t port_offset = static_cast(LV2Ports::PortOffset); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfMidiInputs()))) { int port_index = port - port_offset; plugin_lv2->input_event_ports[port_index] = (LV2_Atom_Sequence*)data_location; } port_offset += plugin_lv2->getNumberOfMidiInputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfMidiOutputs()))) { int port_index = port - port_offset; plugin_lv2->output_event_ports[port_index] = (LV2_Atom_Sequence*)data_location; } port_offset += plugin_lv2->getNumberOfMidiOutputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfAudioInputs()))) { int port_index = port - port_offset; plugin_lv2->input_audio_ports[port_index] = (float*)data_location; } port_offset += plugin_lv2->getNumberOfAudioInputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfAudioOutputs()))) { int port_index = port - port_offset; plugin_lv2->output_audio_ports[port_index] = (float*)data_location; } } class Sequence { public: Sequence(LV2_URID_Map& map, void* buffer, std::size_t buffer_size); void clear(); void addMidiEvent(std::size_t pos, const char* data, std::size_t size); void* data(); private: void *buffer; std::size_t buffer_size; LV2_Atom_Sequence *seq; LV2_URID_Map& map; }; Sequence::Sequence(LV2_URID_Map& map, void* buffer, std::size_t buffer_size) : map(map) { this->buffer = buffer; this->buffer_size = buffer_size; seq = (LV2_Atom_Sequence*)buffer; seq->atom.size = sizeof(LV2_Atom_Sequence_Body); seq->atom.type = map.map(map.handle, LV2_ATOM__Sequence); seq->body.unit = 0; seq->body.pad = 0; } // Keep this to support atom extension from lv2 < 1.10 static inline void _lv2_atom_sequence_clear(LV2_Atom_Sequence* seq) { seq->atom.size = sizeof(LV2_Atom_Sequence_Body); } void Sequence::clear() { _lv2_atom_sequence_clear(seq); } // Keep this to support atom extension from lv2 < 1.10 static inline LV2_Atom_Event* _lv2_atom_sequence_append_event(LV2_Atom_Sequence* seq, uint32_t capacity, const LV2_Atom_Event* event) { const uint32_t total_size = (uint32_t)sizeof(*event) + event->body.size; if(capacity - seq->atom.size < total_size) { return nullptr; } LV2_Atom_Event* e = lv2_atom_sequence_end(&seq->body, seq->atom.size); memcpy(e, event, total_size); seq->atom.size += lv2_atom_pad_size(total_size); return e; } void Sequence::addMidiEvent(std::size_t pos, const char* data, std::size_t size) { struct MIDINoteEvent { LV2_Atom_Event event; uint8_t msg[6]; }; MIDINoteEvent ev; ev.event.time.frames = pos; ev.event.body.type = map.map(map.handle, LV2_MIDI__MidiEvent); ev.event.body.size = size; assert(size <= sizeof(ev.msg)); // Assert that we have room for the message memcpy(ev.msg, data, size); _lv2_atom_sequence_append_event(seq, this->buffer_size, &ev.event); } void* Sequence::data() { return buffer; } void PluginLV2::run(LV2_Handle instance, uint32_t sample_count) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; // Handle free-wheel state if(plugin_lv2->free_wheel_port != nullptr) { bool new_free_wheel = *plugin_lv2->free_wheel_port != 0.0f; if(new_free_wheel != plugin_lv2->free_wheel) { plugin_lv2->free_wheel = new_free_wheel; plugin_lv2->onFreeWheelChange(plugin_lv2->free_wheel); } } // Handle frame size if(plugin_lv2->frame_size != sample_count) { plugin_lv2->frame_size = sample_count; plugin_lv2->onFramesizeChange(plugin_lv2->frame_size); } // Convert input lv2 events to input events. std::vector input_events; for(std::size_t port = 0; port < plugin_lv2->getNumberOfMidiInputs(); ++port) { if(plugin_lv2->input_event_ports[port] == nullptr) { continue; // Not yet connected. } auto& event_port = plugin_lv2->input_event_ports[port]; for(LV2_Atom_Event* ev = lv2_atom_sequence_begin(&event_port->body); !lv2_atom_sequence_is_end(&event_port->body, event_port->atom.size, ev); ev = lv2_atom_sequence_next(ev)) { if(ev->body.type != plugin_lv2->map->map(plugin_lv2->map->handle, LV2_MIDI__MidiEvent)) { continue; // not a midi event. } const char* data = (char*)(ev + 1); input_events.emplace_back(ev->time.frames, data, ev->body.size); } } std::vector output_events; // Process events and audio plugin_lv2->process(plugin_lv2->pos, input_events, output_events, plugin_lv2->input_audio_ports, plugin_lv2->output_audio_ports, sample_count); // Convert output events to lv2 events if(plugin_lv2->getNumberOfMidiOutputs() > 0) { if(plugin_lv2->map != nullptr) { if(plugin_lv2->output_event_ports[0] != nullptr) // Not yet connected? { auto& event_port = plugin_lv2->output_event_ports[0]; // TODO: Split? Sequence seq(*plugin_lv2->map, &event_port->body + 1, event_port->atom.size); for(auto midi_event : output_events) { seq.addMidiEvent(midi_event.getTime(), midi_event.getData(), midi_event.getSize()); } } } } plugin_lv2->pos += sample_count; #ifdef MIDNAM_INTERFACE if(plugin_lv2->midnam && plugin_lv2->midnam_changed.load()) { plugin_lv2->midnam->update(plugin_lv2->midnam->handle); plugin_lv2->midnam_changed.store(false); } #endif #ifdef DISPLAY_INTERFACE if(plugin_lv2->queue_draw) { plugin_lv2->queue_draw->queue_draw(plugin_lv2->queue_draw->handle); } #endif } void PluginLV2::activate(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->active = true; plugin_lv2->onActiveChange(plugin_lv2->active); } void PluginLV2::deactivate(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->active = false; plugin_lv2->onActiveChange(plugin_lv2->active); } void PluginLV2::cleanup(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; delete plugin_lv2; } // // State handling // LV2_State_Status PluginLV2::save(LV2_Handle instance, LV2_State_Store_Function store, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(plugin_lv2->map == nullptr) { // Missing urid feature? return LV2_STATE_ERR_NO_FEATURE; } std::string config = plugin_lv2->onStateSave(); store(handle, plugin_lv2->map->map(plugin_lv2->map->handle, LV2_PLUGIN_URI__atom "config"), config.data(), config.length(), plugin_lv2->map->map(plugin_lv2->map->handle, LV2_ATOM__Chunk), LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE); return LV2_STATE_SUCCESS; } LV2_State_Status PluginLV2::restore(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(plugin_lv2->map == nullptr) { // Missing urid feature? return LV2_STATE_ERR_NO_FEATURE; } std::size_t size; uint32_t type; const char* data = (const char*)retrieve(handle, plugin_lv2->map->map(plugin_lv2->map->handle, LV2_PLUGIN_URI__atom "config"), &size, &type, &flags); if(data && size) { std::string config; config.append(data, size); plugin_lv2->onStateRestore(config); } return LV2_STATE_SUCCESS; } static LV2_State_Interface persist = { PluginLV2::save, PluginLV2::restore }; LV2_Inline_Display_Image_Surface* PluginLV2::inlineRender(LV2_Handle instance, uint32_t w, uint32_t max_h) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->onInlineRedraw(w, max_h, plugin_lv2->drawContext); plugin_lv2->surf.width = plugin_lv2->drawContext.width; plugin_lv2->surf.height = plugin_lv2->drawContext.height; plugin_lv2->surf.stride = plugin_lv2->surf.width * 4; // stride is in bytes plugin_lv2->surf.data = plugin_lv2->drawContext.data; return &plugin_lv2->surf; } void PluginLV2::setMidnamData(const std::vector>& midnam) { auto idx = 0u; for(const auto& m : midnam) { midnamData[idx].first = m.first; // Duplicate name making sure no reallocation is being performed. midnamData[idx].second = m.second.substr(0, midnamData[idx].second.capacity() - 1); idx++; } for(;idx < this->midnamData.size(); ++idx) { midnamData[idx].first = -1; // Mark as unused } midnam_changed.store(true); } #ifdef MIDNAM_INTERFACE char* PluginLV2::MidnamFile (LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; std::stringstream ss; ss << "\n" "\n" "\n" " \n" " \n" " " << plugin_lv2->getVendorString() << "\n" " " << plugin_lv2->getProductString() << ":" << ((const void *) instance) << "\n"; //<< needs to match MidnamModel() ss << " \n"; ss << " \n"; for (int c = 0; c < 16; ++c) { ss << " \n"; } ss << " \n"; ss << " \n"; ss << " \n" " \n"; for (int c = 0; c < 16; ++c) { ss << " \n"; } ss << " \n" " \n" " \n" " \n" " \n" " \n" " \n"; // TODO: Fill in empty slots for the notes that are not in the map // Does Ardour preserve the note names for the unspecified notes? // ... and is this a bug?? for(const auto& m : plugin_lv2->midnamData) { if(m.first == -1) { continue; } ss << " \n"; } ss << " \n" " \n" ""; return strdup (ss.str().c_str()); } char* PluginLV2::MidnamModel(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; char* rv = (char*) malloc (64 * sizeof (char)); snprintf(rv, 64, "%s:%p", plugin_lv2->getProductString().data(), (void*) instance); rv[63] = 0; return rv; } void PluginLV2::MidnamFree (char* v) { free (v); } #endif const void* PluginLV2::extensionData(const char *uri) { if(!strcmp(uri, LV2_STATE__interface)) { return &persist; } #ifdef DISPLAY_INTERFACE static const LV2_Inline_Display_Interface display = { inlineRender }; if(!strcmp(uri, LV2_INLINEDISPLAY__interface)) { return &display; } #endif #ifdef MIDNAM_INTERFACE static const LV2_Midnam_Interface midnam = { MidnamFile, MidnamModel, MidnamFree }; if (!strcmp (uri, LV2_MIDNAM__interface)) { return &midnam; } #endif return nullptr; } // // GUI // LV2UI_Handle PluginLV2::uiInstantiate(const struct _LV2UI_Descriptor*descriptor, const char * plugin_uri, const char * bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget* widget, const LV2_Feature * const * features) { LV2_Handle instance = nullptr; void* parent = nullptr; LV2UI_Resize* resize = nullptr; while(*features != nullptr) { std::string uri = (*features)->URI; void *data = (*features)->data; if(uri == LV2_INSTANCE_ACCESS_URI) { instance = (LV2_Handle)data; } if(uri == LV2_UI__parent) { parent = data; } if(uri == LV2_UI__resize) { resize = (LV2UI_Resize*)data; } features++; } if(instance == nullptr) { return nullptr; } PluginLV2* plugin_lv2 = (PluginLV2*)instance; // Do we have a GUI? if(plugin_lv2->hasGUI() == false) { return nullptr; } plugin_lv2->resize = resize; *widget = plugin_lv2->createWindow(parent); return plugin_lv2; } void PluginLV2::resizeWindow(std::size_t width, std::size_t height) { if(resize) { resize->ui_resize(resize->handle, width, height); } } void PluginLV2::closeWindow() { } static const LV2_Descriptor descriptor = { LV2_PLUGIN_URI, PluginLV2::instantiate, PluginLV2::connectPort, PluginLV2::activate, PluginLV2::run, PluginLV2::deactivate, PluginLV2::cleanup, PluginLV2::extensionData }; void PluginLV2::uiCleanup(LV2UI_Handle handle) { PluginLV2* plugin_lv2 = (PluginLV2*)handle; plugin_lv2->onDestroyWindow () ; } int PluginLV2::uiIdle(LV2UI_Handle handle) { PluginLV2* plugin_lv2 = (PluginLV2*)handle; plugin_lv2->onIdle(); return 0; } static const LV2UI_Idle_Interface idle_iface = { PluginLV2::uiIdle }; const void* PluginLV2::uiExtensionData(const char* uri) { if(!strcmp(uri, LV2_UI__idleInterface)) { return &idle_iface; } return NULL; } static LV2UI_Descriptor ui_descriptor = { LV2_PLUGIN_URI__ui, PluginLV2::uiInstantiate, PluginLV2::uiCleanup, nullptr,//PluginLV2::ui_port_event, PluginLV2::uiExtensionData }; #ifdef __cplusplus extern "C" { #endif LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor(uint32_t index) { switch (index) { case 0: return &descriptor; default: return nullptr; } } LV2_SYMBOL_EXPORT const LV2UI_Descriptor *lv2ui_descriptor(uint32_t index) { switch(index) { case 0: return &ui_descriptor; default: return nullptr; } } // // DynManifest experiments failed, but the code is kept here for nostalgic // reasons :-) // // //int lv2_dyn_manifest_open(LV2_Dyn_Manifest_Handle* handle, // const LV2_Feature* const* features) //{ // *handle = createEffectInstance(); // return 0; //} // //int lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle, FILE* fp) //{ //// PluginLV2* plugin_lv2 = (PluginLV2*)handle; // // fprintf(fp, "@prefix lv2: .\n"); // fprintf(fp, "<" LV2_PLUGIN_URI "> a lv2:Plugin .\n"); // return 0; //} // //int lv2_dyn_manifest_get_data(LV2_Dyn_Manifest_Handle handle, FILE* fp, // const char* uri) //{ // //PluginLV2* plugin_lv2 = (PluginLV2*)handle; // printf("%s '%s'\n", __PRETTY_FUNCTION__, uri); // return 0; //} // //void lv2_dyn_manifest_close(LV2_Dyn_Manifest_Handle handle) //{ // PluginLV2* plugin_lv2 = (PluginLV2*)handle; // delete plugin_lv2; //} #ifdef __cplusplus } #endif drumgizmo-0.9.18.1/plugin/plugingizmo/ttlgen.cc0000644000076400007640000002226113514402155016367 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * ttlgen.cc * * Fri Jul 15 09:27:19 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include "pluginlv2.h" typedef PluginLV2* create_t(); enum class UIType { CocoaUI, Gtk3UI, GtkUI, Qt4UI, Qt5UI, WindowsUI, X11UI, }; static void header(std::ostream& output) { output << "\ # LV2 Plugin\n\ # Copyright 2019 Bent Bisballe Nyeng \n\ #\n\ # Permission to use, copy, modify, and/or distribute this software for any\n\ # purpose with or without fee is hereby granted, provided that the above\n\ # copyright notice and this permission notice appear in all copies.\n\ #\n\ # THIS SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n\ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n\ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n\ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n\ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n\ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n\ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\ "; } static void includes(std::ostream& output) { output << "\ @prefix doap: .\n\ @prefix foaf: .\n\ @prefix lv2: .\n\ @prefix atom: .\n\ @prefix ui: .\n\ @prefix state: .\n\ @prefix pprops: .\n\ @prefix idpy: .\n\ @prefix time: .\n\ @prefix lv2: .\n\ @prefix rdfs: .\n\ "; } // If UIClass was not explicitly set already, try to autodetect it based on // operating system. #ifndef UIClass #ifdef __linux__ #define UIClass "X11UI" #elif _WIN32 #define UIClass "WindowsUI" #elif __APPLE__ #define UIClass "CocoaUI" #elif __FreeBSD__ #define UIClass "X11UI" #elif __unix__ // All other unices (*BSD etc) #define UIClass "X11UI" #endif #endif static void ui(Plugin& plugin, const std::string& pluginfile, UIType uitype, std::ostream& output) { if(!plugin.hasGUI()) { return; } output << "<" << plugin.getURI() << "/lv2#ui>\n"; switch(uitype) { case UIType::CocoaUI: output << " a ui:CocoaUI ;\n"; break; case UIType::Gtk3UI: output << " a ui:Gtk3UI ;\n"; break; case UIType::GtkUI: output << " a ui:GtkUI ;\n"; break; case UIType::Qt4UI: output << " a ui:Qt4UI ;\n"; break; case UIType::Qt5UI: output << " a ui:Qt5UI ;\n"; break; case UIType::WindowsUI: output << " a ui:WindowsUI ;\n"; break; case UIType::X11UI: output << " a ui:X11UI ;\n"; break; } output << "\ lv2:requiredFeature ui:resize ;\n\ lv2:extensionData ui:resize ;\n\ lv2:requiredFeature ui:idleInterface ;\n\ lv2:extensionData ui:idleInterface ;\n\ lv2:requiredFeature ;\n\ ui:binary <" << pluginfile << "> .\n"; } static void ports(Plugin& plugin, std::ostream& output) { std::size_t port_index = 2; for(std::size_t i = 0; i < plugin.getNumberOfMidiInputs(); ++i) { output << "\ , [\n\ a atom:AtomPort ,\n\ lv2:InputPort;\n\ atom:bufferType atom:Sequence ;\n\ atom:supports ;\n\ lv2:index " << port_index << " ;\n\ lv2:symbol \"control\" ;\n\ lv2:name \"Control\"\n\ ]"; ++port_index; } for(std::size_t i = 0; i < plugin.getNumberOfMidiOutputs(); ++i) { output << "\ , [\n\ a atom:AtomPort ,\n\ lv2:OutputPort;\n\ atom:bufferType atom:Sequence ;\n\ atom:supports ;\n\ lv2:index " << port_index << " ;\n\ lv2:symbol \"control\" ;\n\ lv2:name \"Control\"\n\ ]"; ++port_index; } std::size_t input_port_index = 1; for(std::size_t i = 0; i < plugin.getNumberOfAudioInputs(); ++i) { output << "\ , [\n\ a lv2:AudioPort ,\n\ lv2:InputPort ;\n\ lv2:index " << port_index << " ;\n\ lv2:symbol \"in" << input_port_index << "\" ;\n\ lv2:name \"In" << input_port_index << "\"\n\ ]"; ++port_index; ++input_port_index; } std::size_t output_port_index = 1; for(std::size_t i = 0; i < plugin.getNumberOfAudioOutputs(); ++i) { output << "\ , [\n\ a lv2:AudioPort ,\n\ lv2:OutputPort ;\n\ lv2:index " << port_index << " ;\n\ lv2:symbol \"out" << output_port_index << "\" ;\n\ lv2:name \"Out" << output_port_index << "\"\n\ ]"; ++port_index; ++output_port_index; } } void usage(const char* app) { std::cout << "Usage: " << app << " [uitype]\n"; std::cout << "where uitype can be one of:\n"; std::cout << " CocoaUI\n"; std::cout << " Gtk3UI\n"; std::cout << " GtkUI\n"; std::cout << " Qt4UI\n"; std::cout << " Qt5UI\n"; std::cout << " WindowsUI\n"; std::cout << " X11UI\n"; std::cout << "default is " UIClass "\n"; } UIType fromString(const std::string& t) { if(t == "CocoaUI") { return UIType::CocoaUI; } if(t == "Gtk3UI") { return UIType::Gtk3UI; } if(t == "GtkUI") { return UIType::GtkUI; } if(t == "Qt4UI") { return UIType::Qt4UI; } if(t == "Qt5UI") { return UIType::Qt5UI; } if(t == "WindowsUI") { return UIType::WindowsUI; } if(t == "X11UI") { return UIType::X11UI; } std::cerr << "Bad uitype: '" << t << "'\n"; exit(1); } int main(int argc, char* argv[]) { if(argc < 3 || argc > 4) { std::cerr << "Missing argument.\n"; usage(argv[0]); return 1; } UIType uitype = UIType::X11UI; if(argc == 4) { uitype = fromString(argv[3]); } std::string library = argv[1]; auto seppos = library.rfind("/"); std::string binary = library; if(seppos != std::string::npos) { binary = library.substr(seppos + 1); } // load the plugin library void* plugin = dlopen(library.data(), RTLD_LAZY); if(!plugin) { std::cerr << "Cannot load library: " << dlerror() << std::endl; std::cerr << "Library must have absolute path or prefix ./myplugin.so.\n"; return 1; } // reset errors dlerror(); // load the symbols create_t* create_plugin = (create_t*) dlsym(plugin, "createEffectInstance"); const char* dlsym_error = dlerror(); if(dlsym_error) { std::cerr << "Cannot load symbol create: " << dlsym_error << '\n'; return 1; } std::ofstream output(argv[2]); // create an instance of the class Plugin* p = create_plugin(); header(output); output << std::endl; includes(output); output << std::endl; ui(*p, binary, uitype, output); output << std::endl; output << "\ <" << p->getURI() << "/lv2>\n\ a lv2:Plugin ;\n\ lv2:binary <" << binary << "> ;\n \ a lv2:InstrumentPlugin ;\n\ doap:name \"" << p->getEffectName() << "\" ;\n\ doap:maintainer [\n\ foaf:name \"" << p->getVendorString() << "\" ;\n\ foaf:homepage <" << p->getHomepage() << "> ;\n\ ] ;\n\ doap:license ;\n\ ui:ui <" << p->getURI() << "/lv2#ui> ;\n\ doap:license ;\n\ lv2:optionalFeature ;\n\ lv2:optionalFeature ;\n\ lv2:optionalFeature idpy:queue_draw ;\n\ lv2:extensionData state:interface ;\n\ lv2:port [\n\ a lv2:InputPort, lv2:ControlPort ;\n\ lv2:index 0 ;\n\ lv2:symbol \"lv2_freewheel\" ;\n\ lv2:name \"Freewheel\" ;\n\ lv2:default 0.0 ;\n\ lv2:minimum 0.0 ;\n\ lv2:maximum 1.0 ;\n\ lv2:designation ;\n\ lv2:portProperty ;\n\ lv2:portProperty lv2:toggled ;\n\ lv2:portProperty pprops:hasStrictBounds;\n\ ] , [\n\ a lv2:OutputPort, lv2:ControlPort ;\n\ lv2:designation ;\n\ lv2:index 1;\n\ lv2:symbol \"latency\";\n\ lv2:name \"Latency\";\n\ lv2:minimum 0;\n\ lv2:maximum 192000;\n\ lv2:portProperty lv2:reportsLatency, lv2:integer;\n\ ]"; ports(*p, output); output << " .\n"; // FIXME: The plugin is never deleted, but since we're terminating now anyway // it doesn't matter much... // unload the plugin library dlclose(plugin); return 0; } drumgizmo-0.9.18.1/plugin/plugingizmo/pluginvst.cc0000644000076400007640000002570513366640430017140 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginvst.cc * * Mon Feb 8 19:24:40 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginvst.h" #include "midievent.h" #include #include bool PluginVST::getFreeWheel() const { return free_wheel; } float PluginVST::getSamplerate() { return AudioEffectX::getSampleRate(); } std::size_t PluginVST::getFramesize() { return AudioEffectX::getBlockSize(); } bool PluginVST::getActive() { return active; } float PluginVST::getLatency() { return current_latency; } void PluginVST::setLatency(float latency) { update_latency = latency; } void PluginVST::updateLatency() { if(update_latency != current_latency) { AudioEffectX::setInitialDelay(update_latency); AudioEffectX::ioChanged(); current_latency = update_latency; } } static uint32_t sdbm_hash(std::string input) { unsigned long hash = 0; for(auto& cha : input) { hash = (unsigned char)cha + (hash << 6) + (hash << 16) - hash; } return hash; } // // VST AudioEffectX implementation: // PluginVST::PluginVST(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 0, 0) { } PluginVST::~PluginVST() { } void PluginVST::init() { // virtual void setUniqueID (VstInt32 iD) // Must be called to set the plug-ins unique ID! uint32_t hash = sdbm_hash(getId()); AudioEffect::setUniqueID(hash); // virtual void setNumInputs (VstInt32 inputs) // Set the number of inputs the plug-in will handle. For a plug-in which // could change its IO configuration, this number is the maximun available // inputs. AudioEffect::setNumInputs(getNumberOfAudioInputs()); // virtual void setNumOutputs (VstInt32 outputs) // Set the number of outputs the plug-in will handle. For a plug-in which // could change its IO configuration, this number is the maximun available // ouputs. AudioEffect::setNumOutputs(getNumberOfAudioOutputs()); // virtual void canProcessReplacing (bool state=true) // Tells that processReplacing() could be used. Mandatory in VST 2.4! AudioEffect::canProcessReplacing(true); // virtual void canDoubleReplacing (bool state=true) // Tells that processDoubleReplacing() is implemented. AudioEffect::canDoubleReplacing(false); // virtual void programsAreChunks (bool state=true) // Program data is handled in formatless chunks (using getChunk-setChunks). AudioEffect::programsAreChunks(true); // for generic config string support. // virtual void setInitialDelay (VstInt32 delay) // Use to report the plug-in's latency (Group Delay). AudioEffect::setInitialDelay(0); AudioEffectX::isSynth(getNumberOfMidiInputs() > 0); // We might produce output when there is no input. AudioEffectX::noTail(false); if(hasGUI()) { editor = std::make_shared(*this); setEditor(editor.get()); } } void PluginVST::open() { // Called when plug-in is initialized. } void PluginVST::close() { // Called when plug-in will be released. setEditor(nullptr); editor = nullptr; } void PluginVST::suspend() { // Called when plug-in is switched to off. active = false; onActiveChange(active); updateLatency(); } void PluginVST::resume() { updateLatency(); // Called when plug-in is switched to on. active = true; onActiveChange(active); } bool PluginVST::getInputProperties(VstInt32 index, VstPinProperties* props) { if(index < (VstInt32)getNumberOfAudioInputs()) { vst_strncpy(props->label, "Channel ", 63); char temp[11] = {0}; int2string(index + 1, temp, 10); vst_strncat(props->label, temp, 63); props->flags = kVstPinIsActive; return true; } return false; } bool PluginVST::getOutputProperties(VstInt32 index, VstPinProperties* props) { if(index < (VstInt32)getNumberOfAudioOutputs()) { vst_strncpy(props->label, "Channel ", 63); char temp[11] = {0}; int2string(index + 1, temp, 10); vst_strncat(props->label, temp, 63); props->flags = kVstPinIsActive; return true; } return false; } void PluginVST::setSampleRate(float sampleRate) { // Called when the sample rate changes (always in a suspend state). onSamplerateChange(sampleRate); } void PluginVST::setBlockSize(VstInt32 blockSize) { // Called when the Maximun block size changes (always in a suspend state). // Note that the sampleFrames in Process Calls could be smaller than this // block size, but NOT bigger. onFramesizeChange(blockSize); } bool PluginVST::getEffectName(char* name) { vst_strncpy (name, this->getEffectName().c_str(), kVstMaxEffectNameLen); return true; } bool PluginVST::getVendorString(char* text) { vst_strncpy (text, this->getVendorString().c_str(), kVstMaxVendorStrLen); return true; } bool PluginVST::getProductString(char* text) { vst_strncpy (text, this->getProductString().c_str(), kVstMaxProductStrLen); return true; } VstPlugCategory PluginVST::getPlugCategory() { switch(this->getPluginCategory()) { case PluginCategory::Unknown: return kPlugCategUnknown; case PluginCategory::Effect: return kPlugCategEffect; case PluginCategory::Synth: return kPlugCategSynth; case PluginCategory::Analysis: return kPlugCategAnalysis; case PluginCategory::Mastering: return kPlugCategMastering; case PluginCategory::Spacializer: return kPlugCategSpacializer; case PluginCategory::RoomFx: return kPlugCategRoomFx; case PluginCategory::SurroundFx: return kPlugSurroundFx; case PluginCategory::Restoration: return kPlugCategRestoration; case PluginCategory::OfflineProcess: return kPlugCategOfflineProcess; case PluginCategory::Shell: return kPlugCategShell; case PluginCategory::Generator: return kPlugCategGenerator; } return kPlugCategUnknown; } VstInt32 PluginVST::processEvents(VstEvents* events) { // For each process cycle, processEvents() is called once before a // processReplacing() call. for(VstInt32 i = 0; i < events->numEvents; ++i) { auto event = events->events[i]; if(event->type != kVstMidiType) { continue; } auto midi_event = (VstMidiEvent*)event; input_events.emplace_back(midi_event->deltaFrames, midi_event->midiData, midi_event->byteSize); } return 0; } void PluginVST::processReplacing(float** inputs, float** outputs, VstInt32 sampleFrames) { updateLatency(); // Process 32 bit (single precision) floats (always in a resume state). // 0 = realtime/normal // 1 = non-realtime/rendering // 2 = offline processing long lvl = AudioEffectX::getCurrentProcessLevel(); bool last_free_wheel = free_wheel; free_wheel = (lvl != 0); if(last_free_wheel != free_wheel) { onFreeWheelChange(free_wheel); } std::vector input_audio_ports; for(std::size_t i = 0; i < getNumberOfAudioInputs(); ++i) { input_audio_ports.emplace_back(inputs[i]); } std::vector output_audio_ports; output_audio_ports.resize(getNumberOfAudioOutputs()); for(std::size_t i = 0; i < getNumberOfAudioOutputs(); ++i) { output_audio_ports[i] = outputs[i]; } std::vector output_events; // Process events and audio process(pos, input_events, output_events, input_audio_ports, output_audio_ports, (std::size_t)sampleFrames); input_events.clear(); if(getNumberOfMidiOutputs()) { // Translate output_events to VST midi events. std::vector vst_output_event_list; vst_output_event_list.resize(output_events.size()); for(std::size_t i = 0; i < output_events.size(); ++i) { vst_output_event_list[i].deltaFrames = output_events[i].getTime(); vst_output_event_list[i].type = kVstMidiType; const char* data = output_events[i].getData(); for(std::size_t j = 0; j < output_events[i].getSize(); ++j) { vst_output_event_list[i].midiData[j] = data[j]; } vst_output_event_list[i].byteSize = output_events[i].getSize(); } if(!vst_output_event_list.empty()) { // Dispatch output events to host VstEvents vst_output_events; vst_output_events.numEvents = vst_output_event_list.size(); vst_output_events.events[0] = (VstEvent*)vst_output_event_list.data(); sendVstEventsToHost(&vst_output_events); } } pos += sampleFrames; } VstInt32 PluginVST::getChunk(void **data, bool isPreset) { std::string state = onStateSave(); char* chunk = (char*)malloc(state.size() + 1); memcpy(chunk, state.data(), state.size()); *data = chunk; return state.size(); } VstInt32 PluginVST::setChunk(void *data, VstInt32 byteSize, bool isPreset) { std::string state; state.append((const char*)data, (std::size_t)byteSize); onStateRestore(state); return 0; } VstInt32 PluginVST::canDo(char* text) { std::string feature = text; // Midi input if((feature == "receiveVstMidiEvent") &&//PlugCanDos::canDoReceiveVstMidiEvent (getNumberOfMidiInputs() > 0)) { return 1; } // Midi output if((feature == "sendVstMidiEvent") && // PlugCanDos::canDoSendVstMidiEvent (getNumberOfMidiOutputs() > 0)) { return 1; } // For FreeWheel functionality. if(feature == "offline") // PlugCanDos::canDoOffline { return 1; } // TODO: For soft-bypass state. //if(feature == "bypass") // PlugCanDos::canDoBypass) //{ // return 1; //} // TODO: For receiving metronome ticks? //if(feature == "receiveVstTimeInfo") // PlugCanDos::canDoReceiveVstTimeInfo) //{ // return 1; //} return 0; } void PluginVST::resizeWindow(std::size_t width, std::size_t height) { if(editor) { editor->rect.top = 0; editor->rect.left = 0; editor->rect.right = width; editor->rect.bottom = height; } } void PluginVST::closeWindow() { } PluginVST::UI::UI(PluginVST& plugin_vst) : AEffEditor(&plugin_vst) , plugin_vst(plugin_vst) { } bool PluginVST::UI::open(void* ptr) { plugin_vst.createWindow(ptr); AEffEditor::open(ptr); is_open = true; return true; } void PluginVST::UI::close() { is_open = false; plugin_vst.onDestroyWindow(); AEffEditor::close(); } bool PluginVST::UI::isOpen() { return is_open; } void PluginVST::UI::idle() { if(is_open) { plugin_vst.onIdle(); } AEffEditor::idle(); } bool PluginVST::UI::getRect(ERect** rect) { *rect = &this->rect; return true; } drumgizmo-0.9.18.1/plugin/plugingizmo/plugin.h0000644000076400007640000001511413460376022016234 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * plugin.h * * Sun Feb 7 14:11:40 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #if defined(WIN32) #define PG_EXPORT extern "C" __declspec(dllexport) #else #define PG_EXPORT extern "C" __attribute__((visibility("default"))) #endif class MidiEvent; //! Plugin categories. enum class PluginCategory { Unknown = 0, // Unknown, category not implemented Effect, // Simple Effect Synth, // Instrument (Synths, samplers,...) Analysis, // Scope, Tuner, ... Mastering, // Dynamics, ... Spacializer, // Panners, ... RoomFx, // Delays and Reverbs SurroundFx, // Dedicated surround processor Restoration, // Denoiser, ... OfflineProcess, // Offline Process Shell, // Plug-in is container of other plug-ins Generator // ToneGenerator, ... }; //! Abstract base-class for plugin implementations. class Plugin { public: //! Implement this to create a new plugin instance. static Plugin* create(); //! Init function for setting up plugin parameters. virtual void init() = 0; //! Get current free-wheel mode. virtual bool getFreeWheel() const = 0; //! This method is called by the host when the free-wheel mode changes. virtual void onFreeWheelChange(bool freewheel) {} //! Call this to get current samplerate. virtual float getSamplerate() = 0; //! This method is called by the host when the samplerate changes. virtual void onSamplerateChange(float samplerate) = 0; //! Call this to get current frame-size. virtual std::size_t getFramesize() = 0; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) = 0; //! Call this to get current active state virtual bool getActive() = 0; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. virtual float getLatency() = 0; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. virtual void setLatency(float latency) = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() = 0; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() = 0; //! Call this method to set midnam data for midi input virtual void setMidnamData(const std::vector>& midnam) {} //! Get unique plugin id. virtual std::string getId() = 0; // Functions used to set plugin information. virtual std::string getURI() = 0; virtual std::string getEffectName() = 0; virtual std::string getVendorString() = 0; virtual std::string getProductString() = 0; virtual std::string getHomepage() = 0; virtual PluginCategory getPluginCategory() = 0; //! Process callback. virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) = 0; // // Inline GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasInlineGUI() { return false; } struct InlineDrawContext { std::size_t width{0}; //< Width of the render buffer. std::size_t height{0}; //< Height of the render buffer. std::uint8_t* data{nullptr}; //< Allocated (or reused) RGBA buffer, filled by the plugin. }; #define pgzRGBA(r, g, b, a) ((b) | (g) << 8 | (r) << 16 | (a) << 24) //! Render call back. //! \param width The client area width as specified by the host. //! \param max_height The maximum allowed clieant area height as specified //! by the host. //! \param context The render context filled an maintained by the plugin. virtual void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) {} // // GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() { return false; } //! Create new window. virtual void* createWindow(void *parent) { return nullptr; } //! Destroy window. virtual void onDestroyWindow() {} //! Show window. virtual void onShowWindow() {} //! Hide window. virtual void onHideWindow() {} //! Called regularly by host; process ui events. virtual void onIdle() {} //! Signal new window size to host. virtual void resizeWindow(std::size_t width, std::size_t height) = 0; //! Signal close window event to the host. virtual void closeWindow() = 0; }; drumgizmo-0.9.18.1/plugin/plugingizmo/midievent.cc0000644000076400007640000000377513450453331017070 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midievent.cc * * Sun Feb 7 15:09:01 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midievent.h" #include MidiEvent::MidiEvent(int64_t time, const char* data, std::size_t size) : time(time) { //std::cout << __PRETTY_FUNCTION__ << // " data: " << (void*)data << // " size: " << size << // std::endl; this->data.resize(size); for(std::size_t i = 0; i < size; ++i) { this->data[i] = data[i]; } if((data[0] & 0xF0) == 0x80) // note off { type = MidiEventType::NoteOff; key = data[1]; velocity = data[2]; } if((data[0] & 0xF0) == 0x90) // note on { type = MidiEventType::NoteOn; key = data[1]; velocity = data[2]; } if((data[0] & 0xF0) == 0xA0) // aftertouch { type = MidiEventType::Aftertouch; key = data[1]; velocity = data[2]; } } int64_t MidiEvent::getTime() const { return time; } const char* MidiEvent::getData() const { return data.data(); } std::size_t MidiEvent::getSize() const { return data.size(); } drumgizmo-0.9.18.1/plugin/plugingizmo/inline-display.h0000644000076400007640000000627212754064354017673 00000000000000/* Copyright 2012 David Robillard Copyright 2016 Robin Gareus Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** @defgroup inlinedisplay Inline-Display Support for displaying a miniaturized, non-interactive view in the host's mixer strip. @{ */ #ifndef LV2_INLINE_DISPLAY_H #define LV2_INLINE_DISPLAY_H #include #include "lv2/lv2plug.in/ns/lv2core/lv2.h" #define LV2_INLINEDISPLAY_URI "http://harrisonconsoles.com/lv2/inlinedisplay" #define LV2_INLINEDISPLAY_PREFIX LV2_INLINEDISPLAY_URI "#" #define LV2_INLINEDISPLAY__interface LV2_INLINEDISPLAY_PREFIX "interface" #define LV2_INLINEDISPLAY__queue_draw LV2_INLINEDISPLAY_PREFIX "queue_draw" #ifdef __cplusplus extern "C" { #endif /** Opaque handle for LV2_Inline_Display::queue_draw() */ typedef void* LV2_Inline_Display_Handle; /** raw image pixmap format is ARGB32, * the data pointer is owned by the plugin and must be valid * from the first call to render until cleanup. */ typedef struct { unsigned char *data; int width; int height; int stride; } LV2_Inline_Display_Image_Surface; /** a LV2 Feature provided by the Host to the plugin * * This allows a the plugin during in realtime context to * invalidate the currently displayed data and request from * the host to call render() as soon as feasible. */ typedef struct { /** Opaque host data */ LV2_Inline_Display_Handle handle; /** Request from run() that the host should call render() at a later * time to update the inline display */ void (*queue_draw)(LV2_Inline_Display_Handle handle); } LV2_Inline_Display; /** * Plugin Inline-Display Interface. */ typedef struct { /** * The render method. This is called by the host in the main GUI thread * (non realtime, the context with access to graphics drawing APIs). * * The data pointer is owned by the plugin and must be valid * from the first call to render until cleanup. * * The host specifies a maxium available area for the plugin to draw. * the returned Image Surface contains the actual area which * the plugin allocated. * * @param instance The LV2 instance * @param w the max available width * @param h the max available height * @return pointer to a LV2_Inline_Display_Image_Surface or NULL */ LV2_Inline_Display_Image_Surface* (*render)( LV2_Handle instance, uint32_t w, uint32_t h); } LV2_Inline_Display_Interface; #ifdef __cplusplus } /* extern "C" */ #endif #endif /* LV2_INLINE_DISPLAY_H */ /** @} */ drumgizmo-0.9.18.1/plugin/Makefile.am0000644000076400007640000000515513551153106014256 00000000000000SUBDIRS = vst noinst_PROGRAMS = ####### # LV2 ### if ENABLE_LV2 lv2plugindir = @LV2DIR@/drumgizmo.lv2 lv2plugin_LTLIBRARIES = drumgizmo.la noinst_PROGRAMS += ttlgen lv2plugin_DATA = manifest.ttl endif drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \ -fvisibility=hidden \ $(LV2_CFLAGS) \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin drumgizmo_la_CFLAGS = -fvisibility=hidden drumgizmo_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \ drumgizmo_plugin.cc drumgizmo_la_LDFLAGS = -shared -module -avoid-version \ -export-symbols drumgizmo_lv2.sym drumgizmo_la_LIBADD = $(LV2_LIBS) \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la ttlgen_CPPFLAGS = $(DL_CFLAGS) -I$(top_srcdir)/plugin/plugingizmo ttlgen_LDFLAGS = $(DL_LIBS) ttlgen_SOURCES = \ $(top_srcdir)/plugin/plugingizmo/ttlgen.cc if ENABLE_X11 UITYPE=X11UI endif if ENABLE_WIN32 UITYPE=WindowsUI endif if ENABLE_COCOA UITYPE=CocoaUI endif if ENABLE_PUGL_X11 UITYPE=X11UI endif if ENABLE_PUGL_WIN32 UITYPE=WindowsUI endif if ENABLE_PUGL_COCOA UITYPE=CocoaUI endif manifest.ttl : ttlgen drumgizmo.la ./ttlgen .libs/drumgizmo.so manifest.ttl $(UITYPE) ####### # VST ### if ENABLE_VST vstplugindir = $(libdir)/vst vstplugin_LTLIBRARIES = drumgizmo_vst.la vstplugin_DATA = endif drumgizmo_vst_la_CXXFLAGS = -DVST \ -fvisibility=hidden \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin \ $(VST_CPPFLAGS) -Ivst drumgizmo_vst_la_CFLAGS = -fvisibility=hidden drumgizmo_vst_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version \ -export-symbols drumgizmo_vst.sym drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la install-data-hook: rm -f $(DESTDIR)/$(lv2plugindir)/drumgizmo.la rm -f $(DESTDIR)/$(vstplugindir)/drumgizmo_vst.la EXTRA_DIST = \ $(lv2plugin_DATA) \ $(vstplugin_DATA) \ drumgizmo_plugin.h \ drumgizmo_lv2.sym \ drumgizmo_vst.sym \ $(top_srcdir)/plugin/plugingizmo/plugin.h \ $(top_srcdir)/plugin/plugingizmo/midievent.h \ $(top_srcdir)/plugin/plugingizmo/midnam_lv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginvst.h \ $(top_srcdir)/plugin/plugingizmo/inline-display.h drumgizmo-0.9.18.1/plugin/vst/0000755000076400007640000000000013554101262013107 500000000000000drumgizmo-0.9.18.1/plugin/vst/Makefile.in0000644000076400007640000006253013554101142015077 00000000000000# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = plugin/vst ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libvstsdk_la_LIBADD = nodist_libvstsdk_la_OBJECTS = libvstsdk_la-audioeffectx.lo \ libvstsdk_la-audioeffect.lo libvstsdk_la-vstplugmain.lo libvstsdk_la_OBJECTS = $(nodist_libvstsdk_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libvstsdk_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libvstsdk_la_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_VST_TRUE@am_libvstsdk_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(nodist_libvstsdk_la_SOURCES) DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ # We know there are warnings in the VSTSDK code, so don't consider them errors. CXXFLAGS := $(filter-out -Werror -Wall ,$(CXXFLAGS)) CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DL_CFLAGS = @DL_CFLAGS@ DL_LIBS = @DL_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJCXX = @OBJCXX@ OBJCXXDEPMODE = @OBJCXXDEPMODE@ OBJCXXFLAGS = @OBJCXXFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJCXX = @ac_ct_OBJCXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dgplugindir = @dgplugindir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @ENABLE_VST_TRUE@noinst_LTLIBRARIES = libvstsdk.la # Hack to compile vst sources without -Wall -Werror libvstsdk_la_CXXFLAGS = -w $(VST_CPPFLAGS) -Ipublic.sdk/source/vst2.x -I. nodist_libvstsdk_la_SOURCES = \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/vstplugmain.cpp CLEANFILES = \ pluginterfaces/vst2.x/aeffect.h \ pluginterfaces/vst2.x/aeffectx.h \ public.sdk/source/vst2.x/audioeffectx.h \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.h \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/aeffeditor.h \ public.sdk/source/vst2.x/vstplugmain.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugin/vst/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugin/vst/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libvstsdk.la: $(libvstsdk_la_OBJECTS) $(libvstsdk_la_DEPENDENCIES) $(EXTRA_libvstsdk_la_DEPENDENCIES) $(AM_V_CXXLD)$(libvstsdk_la_LINK) $(am_libvstsdk_la_rpath) $(libvstsdk_la_OBJECTS) $(libvstsdk_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-audioeffect.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-audioeffectx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-vstplugmain.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libvstsdk_la-audioeffectx.lo: public.sdk/source/vst2.x/audioeffectx.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-audioeffectx.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-audioeffectx.Tpo -c -o libvstsdk_la-audioeffectx.lo `test -f 'public.sdk/source/vst2.x/audioeffectx.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffectx.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-audioeffectx.Tpo $(DEPDIR)/libvstsdk_la-audioeffectx.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/audioeffectx.cpp' object='libvstsdk_la-audioeffectx.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-audioeffectx.lo `test -f 'public.sdk/source/vst2.x/audioeffectx.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffectx.cpp libvstsdk_la-audioeffect.lo: public.sdk/source/vst2.x/audioeffect.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-audioeffect.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-audioeffect.Tpo -c -o libvstsdk_la-audioeffect.lo `test -f 'public.sdk/source/vst2.x/audioeffect.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffect.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-audioeffect.Tpo $(DEPDIR)/libvstsdk_la-audioeffect.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/audioeffect.cpp' object='libvstsdk_la-audioeffect.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-audioeffect.lo `test -f 'public.sdk/source/vst2.x/audioeffect.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffect.cpp libvstsdk_la-vstplugmain.lo: public.sdk/source/vst2.x/vstplugmain.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-vstplugmain.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-vstplugmain.Tpo -c -o libvstsdk_la-vstplugmain.lo `test -f 'public.sdk/source/vst2.x/vstplugmain.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/vstplugmain.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-vstplugmain.Tpo $(DEPDIR)/libvstsdk_la-vstplugmain.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/vstplugmain.cpp' object='libvstsdk_la-vstplugmain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-vstplugmain.lo `test -f 'public.sdk/source/vst2.x/vstplugmain.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/vstplugmain.cpp mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-local clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Targets to copy vst source files pluginterfaces/vst2.x: $(MKDIR_P) pluginterfaces/vst2.x pluginterfaces/vst2.x/aeffect.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h $@ pluginterfaces/vst2.x/aeffectx.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h $@ #pluginterfaces/vst2.x/vstfxstore.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h # cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h $@ public.sdk/source/vst2.x: $(MKDIR_P) public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffectx.h: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h pluginterfaces/vst2.x/aeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h $@ public.sdk/source/vst2.x/audioeffectx.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/aeffeditor.h pluginterfaces/vst2.x/aeffectx.h public.sdk/source/vst2.x/audioeffectx.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp $@ public.sdk/source/vst2.x/audioeffect.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h $@ public.sdk/source/vst2.x/audioeffect.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp $@ public.sdk/source/vst2.x/aeffeditor.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h $@ public.sdk/source/vst2.x/vstplugmain.cpp: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp $@ clean-local: -rm -rf public.sdk pluginterfaces #pluginterfaces/vst2.x/vstfxstore.h # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: drumgizmo-0.9.18.1/plugin/vst/Makefile.am0000644000076400007640000000556213331526613015077 00000000000000if ENABLE_VST noinst_LTLIBRARIES = libvstsdk.la endif # We know there are warnings in the VSTSDK code, so don't consider them errors. CXXFLAGS:=$(filter-out -Werror -Wall ,$(CXXFLAGS)) # Targets to copy vst source files pluginterfaces/vst2.x: $(MKDIR_P) pluginterfaces/vst2.x pluginterfaces/vst2.x/aeffect.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h $@ pluginterfaces/vst2.x/aeffectx.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h $@ #pluginterfaces/vst2.x/vstfxstore.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h # cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h $@ public.sdk/source/vst2.x: $(MKDIR_P) public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffectx.h: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h pluginterfaces/vst2.x/aeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h $@ public.sdk/source/vst2.x/audioeffectx.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/aeffeditor.h pluginterfaces/vst2.x/aeffectx.h public.sdk/source/vst2.x/audioeffectx.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp $@ public.sdk/source/vst2.x/audioeffect.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h $@ public.sdk/source/vst2.x/audioeffect.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp $@ public.sdk/source/vst2.x/aeffeditor.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h $@ public.sdk/source/vst2.x/vstplugmain.cpp: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp $@ # Hack to compile vst sources without -Wall -Werror libvstsdk_la_CXXFLAGS = -w $(VST_CPPFLAGS) -Ipublic.sdk/source/vst2.x -I. nodist_libvstsdk_la_SOURCES = \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/vstplugmain.cpp CLEANFILES = \ pluginterfaces/vst2.x/aeffect.h \ pluginterfaces/vst2.x/aeffectx.h \ public.sdk/source/vst2.x/audioeffectx.h \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.h \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/aeffeditor.h \ public.sdk/source/vst2.x/vstplugmain.cpp clean-local: -rm -rf public.sdk pluginterfaces #pluginterfaces/vst2.x/vstfxstore.hdrumgizmo-0.9.18.1/plugin/drumgizmo_vst.sym0000644000076400007640000000003513340266453015663 00000000000000VSTPluginMain _VSTPluginMain drumgizmo-0.9.18.1/plugin/drumgizmo_plugin.cc0000644000076400007640000004235313515375734016142 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo_lv2.cc * * Wed Mar 2 17:31:32 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumgizmo_plugin.h" #include #include #include #include #include #include #include "configparser.h" #include "nolocale.h" #ifdef LV2 // Entry point for lv2 plugin instantiation. PG_EXPORT PluginLV2* createEffectInstance() { return new DrumGizmoPlugin(); } #endif #ifdef VST // Entry point for vst plugin instantiation. AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { return new DrumGizmoPlugin(audioMaster); } DrumGizmoPlugin::DrumGizmoPlugin(audioMasterCallback audioMaster) : PluginVST(audioMaster), #else DrumGizmoPlugin::DrumGizmoPlugin() : #endif config_string_io(settings) { init(); drumgizmo = std::make_shared(settings, output, input); resizeWindow(width, height); drumgizmo->setFreeWheel(true); drumgizmo->setSamplerate(44100); drumgizmo->setFrameSize(2048); } void DrumGizmoPlugin::onSamplerateChange(float samplerate) { drumgizmo->setSamplerate(samplerate); } void DrumGizmoPlugin::onFramesizeChange(size_t framesize) { drumgizmo->setFrameSize(framesize); } void DrumGizmoPlugin::onActiveChange(bool active) { } std::string DrumGizmoPlugin::onStateSave() { return config_string_io.get(); } void DrumGizmoPlugin::onStateRestore(const std::string& config) { config_string_io.set(config); } size_t DrumGizmoPlugin::getNumberOfMidiInputs() { return 1; } size_t DrumGizmoPlugin::getNumberOfMidiOutputs() { return 0; } size_t DrumGizmoPlugin::getNumberOfAudioInputs() { return 0; } size_t DrumGizmoPlugin::getNumberOfAudioOutputs() { return NUM_CHANNELS; } std::string DrumGizmoPlugin::getId() { return "DrumGizmo"; } std::string DrumGizmoPlugin::getURI() { return "http://drumgizmo.org"; } std::string DrumGizmoPlugin::getEffectName() { return "DrumGizmo"; } std::string DrumGizmoPlugin::getVendorString() { return "DrumGizmo Team"; } std::string DrumGizmoPlugin::getProductString() { return "DrumGizmo"; } std::string DrumGizmoPlugin::getHomepage() { return "https://www.drumgizmo.org"; } PluginCategory DrumGizmoPlugin::getPluginCategory() { return PluginCategory::Synth; } static float g_samples[NUM_CHANNELS * 4096]; void DrumGizmoPlugin::process(size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, size_t count) { setLatency(drumgizmo->getLatency()); this->input_events = &input_events; this->output_samples = &output_samples; drumgizmo->run(pos, g_samples, count); this->input_events = nullptr; this->output_samples = nullptr; } bool DrumGizmoPlugin::hasInlineGUI() { return true; } class InlinePixelBufferAlpha : public GUI::PixelBufferAlpha { public: InlinePixelBufferAlpha(Plugin::InlineDrawContext& context) { buf = context.data; width = context.width; height = context.height; x = 0; y = 0; } }; class InlineCanvas : public GUI::Canvas { public: InlineCanvas(Plugin::InlineDrawContext& context) : pixbuf(context) { } // From Canvas: GUI::PixelBufferAlpha& GetPixelBuffer() override { return pixbuf; } private: InlinePixelBufferAlpha pixbuf; }; void DrumGizmoPlugin::onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) { std::size_t bar_height = bar_red.height(); std::size_t image_height = ((double)width / inline_display_image.width()) * inline_display_image.height(); bool show_bar{false}; bool show_image{false}; std::size_t height = 0; if(bar_height <= max_height) { show_bar = true; height += bar_height; } if(bar_height + image_height <= max_height) { show_image = true; height += image_height; } // They have to be called seperately to avoid lazy evaluation bool nof_changed = settingsGetter.number_of_files.hasChanged(); bool nofl_changed = settingsGetter.number_of_files_loaded.hasChanged(); bool dls_changed = settingsGetter.drumkit_load_status.hasChanged(); bool context_needs_update = !context.data || context.width != width || context.height != height; bool bar_needs_update = nof_changed || nofl_changed || dls_changed || context_needs_update; bool image_needs_update = inline_image_first_draw || context_needs_update; // TODO: settingsGetter.inline_image_filename.hasChanged(); bool something_needs_update = context_needs_update || bar_needs_update || image_needs_update; if (something_needs_update) { context.width = width; context.height = height; assert(context.width * context.height <= sizeof(inlineDisplayBuffer)); context.data = (unsigned char*)inlineDisplayBuffer; InlineCanvas canvas(context); GUI::Painter painter(canvas); if(show_bar && bar_needs_update) { box.setSize(context.width, bar_height); painter.drawImage(0, height - bar_height, box); double progress = (double)settingsGetter.number_of_files_loaded.getValue() / (double)settingsGetter.number_of_files.getValue(); int brd = 4; int val = (width - (2 * brd)) * progress; switch(settingsGetter.drumkit_load_status.getValue()) { case LoadStatus::Error: bar_red.setSize(val, bar_height); painter.drawImage(brd, height - bar_height, bar_red); break; case LoadStatus::Done: bar_green.setSize(val, bar_height); painter.drawImage(brd, height - bar_height, bar_green); break; case LoadStatus::Loading: case LoadStatus::Idle: bar_blue.setSize(val, bar_height); painter.drawImage(brd, height - bar_height, bar_blue); break; } } if(show_image && image_needs_update) { // TODO: load new image and remove the bool inline_image_first_draw = false; painter.setColour(.5); painter.drawFilledRectangle(0, 0, width, image_height); painter.drawImageStretched(0, 0, inline_display_image, width, image_height); } // Convert to correct pixel format for(std::size_t i = 0; i < context.height * context.width; ++i) { std::uint32_t pixel = inlineDisplayBuffer[i]; unsigned char* p = (unsigned char*)&pixel; inlineDisplayBuffer[i] = pgzRGBA(p[0], p[1], p[2], p[3]); } } } bool DrumGizmoPlugin::hasGUI() { return true; } void* DrumGizmoPlugin::createWindow(void* parent) { plugin_gui = std::make_shared(settings, parent); resizeWindow(width, height); onShowWindow(); return plugin_gui->getNativeWindowHandle(); } void DrumGizmoPlugin::onDestroyWindow() { plugin_gui = nullptr; } void DrumGizmoPlugin::onShowWindow() { plugin_gui->show(); } void DrumGizmoPlugin::onHideWindow() { plugin_gui->hide(); } void DrumGizmoPlugin::onIdle() { plugin_gui->processEvents(); } void DrumGizmoPlugin::closeWindow() { } // // Input Engine // DrumGizmoPlugin::Input::Input(DrumGizmoPlugin& plugin) : plugin(plugin) { } bool DrumGizmoPlugin::Input::init(const Instruments &instruments) { this->instruments = &instruments; return true; } void DrumGizmoPlugin::Input::setParm(const std::string& parm, const std::string& value) { } bool DrumGizmoPlugin::Input::start() { return true; } void DrumGizmoPlugin::Input::stop() { } void DrumGizmoPlugin::Input::pre() { } void DrumGizmoPlugin::Input::run(size_t pos, size_t len, std::vector& events) { assert(events.empty()); assert(plugin.input_events); events.reserve(plugin.input_events->size()); for(auto& event : *plugin.input_events) { processNote((const std::uint8_t*)event.getData(), event.getSize(), event.getTime(), events); } } void DrumGizmoPlugin::Input::post() { } bool DrumGizmoPlugin::Input::isFreewheeling() const { return plugin.getFreeWheel(); } bool DrumGizmoPlugin::Input::loadMidiMap(const std::string& file, const Instruments& i) { bool result = AudioInputEngineMidi::loadMidiMap(file, i); std::vector> midnam; const auto& map = mmap.getMap(); midnam.reserve(map.size()); for(const auto& m : map) { midnam.push_back(std::make_pair(m.first, m.second)); } if(midnam.size() > 0) { plugin.setMidnamData(midnam); } return result; } // // Output Engine // DrumGizmoPlugin::Output::Output(DrumGizmoPlugin& plugin) : plugin(plugin) { } bool DrumGizmoPlugin::Output::init(const Channels& channels) { return true; } void DrumGizmoPlugin::Output::setParm(const std::string& parm, const std::string& value) { } bool DrumGizmoPlugin::Output::start() { return true; } void DrumGizmoPlugin::Output::stop() { } void DrumGizmoPlugin::Output::pre(size_t nsamples) { // Clear all channels for(auto& channel : *plugin.output_samples) { if(channel) { std::memset(channel, 0, nsamples * sizeof(sample_t)); } } } void DrumGizmoPlugin::Output::run(int ch, sample_t* samples, size_t nsamples) { assert(plugin.output_samples); assert(sizeof(float) == sizeof(sample_t)); if((std::size_t)ch >= plugin.output_samples->size()) { return; } if((*plugin.output_samples)[ch] == nullptr) { // Port not connected. return; } // We are not running directly on the internal buffer: do a copy. if((*plugin.output_samples)[ch] != samples) { memcpy((*plugin.output_samples)[ch], samples, nsamples * sizeof(sample_t)); } } void DrumGizmoPlugin::Output::post(size_t nsamples) { } sample_t* DrumGizmoPlugin::Output::getBuffer(int ch) const { assert(plugin.output_samples); if((std::size_t)ch >= plugin.output_samples->size()) { return nullptr; } return (*plugin.output_samples)[ch]; } size_t DrumGizmoPlugin::Output::getBufferSize() const { return plugin.getFramesize(); } std::size_t DrumGizmoPlugin::Output::getSamplerate() const { return plugin.drumgizmo->samplerate(); } bool DrumGizmoPlugin::Output::isFreewheeling() const { return plugin.getFreeWheel(); } // // ConfigStringIO // // anonymous namespace for helper furnctions of ConfigStringIO namespace { std::string float2str(float a) { char buf[256]; snprintf_nol(buf, sizeof(buf) - 1, "%f", a); return buf; } std::string bool2str(bool a) { return a?"true":"false"; } std::string int2str(int a) { char buf[256]; snprintf(buf, sizeof(buf) - 1, "%d", a); return buf; } float str2float(std::string a) { if(a == "") { return 0.0; } return atof_nol(a.c_str()); } int str2int(std::string a) { try { return std::stoi(a); } catch(...) { return 0; } } long long str2ll(std::string a) { try { return std::stoll(a); } catch(...) { return 0; } } } // end anonymous namespace DrumGizmoPlugin::ConfigStringIO::ConfigStringIO(Settings& settings) : settings(settings) { } std::string DrumGizmoPlugin::ConfigStringIO::get() { return "\n" " " + settings.drumkit_file.load() + "\n" " " + settings.midimap_file.load() + "\n" " " + bool2str(settings.enable_velocity_modifier.load()) + "\n" " " + float2str(settings.velocity_modifier_falloff.load()) + "\n" " " + float2str(settings.velocity_modifier_weight.load()) + "\n" " " + float2str(settings.velocity_stddev.load()) + "\n" " " + float2str(settings.sample_selection_f_close.load()) + "\n" " " + float2str(settings.sample_selection_f_diverse.load()) + "\n" " " + float2str(settings.sample_selection_f_random.load()) + "\n" " " + bool2str(settings.enable_velocity_randomiser.load()) + "\n" " " + float2str(settings.velocity_randomiser_weight.load()) + "\n" " " + bool2str(settings.enable_resampling.load()) + "\n" " " + int2str(settings.disk_cache_upper_limit.load()) + "\n" " " + int2str(settings.disk_cache_chunk_size.load()) + "\n" " " + bool2str(settings.disk_cache_enable.load()) + "\n" " " + bool2str(settings.enable_bleed_control.load()) + "\n" " " + float2str(settings.master_bleed.load()) + "\n" " " + bool2str(settings.enable_latency_modifier.load()) + "\n" // Do not store/reload this value //" " + //int2str(settings.latency_max.load()) + "\n" " " + float2str(settings.latency_laid_back_ms.load()) + "\n" " " + float2str(settings.latency_stddev.load()) + "\n" " " + float2str(settings.latency_regain.load()) + "\n" ""; } bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) { DEBUG(config, "Load config: %s\n", config_string.c_str()); ConfigParser p; if(!p.parseString(config_string)) { ERR(config, "Config parse error.\n"); return false; } if(p.value("enable_velocity_modifier") != "") { settings.enable_velocity_modifier.store(p.value("enable_velocity_modifier") == "true"); } if(p.value("velocity_modifier_falloff") != "") { settings.velocity_modifier_falloff.store(str2float(p.value("velocity_modifier_falloff"))); } if(p.value("velocity_modifier_weight") != "") { settings.velocity_modifier_weight.store(str2float(p.value("velocity_modifier_weight"))); } if(p.value("velocity_stddev") != "") { settings.velocity_stddev.store(str2float(p.value("velocity_stddev"))); } if(p.value("sample_selection_f_close") != "") { settings.sample_selection_f_close.store(str2float(p.value("sample_selection_f_close"))); } if(p.value("sample_selection_f_diverse") != "") { settings.sample_selection_f_diverse.store(str2float(p.value("sample_selection_f_diverse"))); } if(p.value("sample_selection_f_random") != "") { settings.sample_selection_f_random.store(str2float(p.value("sample_selection_f_random"))); } if(p.value("enable_velocity_randomiser") != "") { settings.enable_velocity_randomiser.store(p.value("enable_velocity_randomiser") == "true"); } if(p.value("velocity_randomiser_weight") != "") { settings.velocity_randomiser_weight.store(str2float(p.value("velocity_randomiser_weight"))); } if(p.value("enable_resampling") != "") { settings.enable_resampling.store(p.value("enable_resampling") == "true"); } if(p.value("disk_cache_upper_limit") != "") { settings.disk_cache_upper_limit.store(str2ll(p.value("disk_cache_upper_limit"))); } if(p.value("disk_cache_chunk_size") != "") { settings.disk_cache_chunk_size.store(str2int(p.value("disk_cache_chunk_size"))); } if(p.value("disk_cache_enable") != "") { settings.disk_cache_enable.store(p.value("disk_cache_enable") == "true"); } if(p.value("enable_bleed_control") != "") { settings.enable_bleed_control.store(p.value("enable_bleed_control") == "true"); } if(p.value("master_bleed") != "") { settings.master_bleed.store(str2float(p.value("master_bleed"))); } if(p.value("enable_latency_modifier") != "") { settings.enable_latency_modifier.store(p.value("enable_latency_modifier") == "true"); } // Do not store/reload this value //if(p.value("latency_max") != "") //{ // settings.latency_max.store(str2int(p.value("latency_max"))); //} if(p.value("latency_laid_back_ms") != "") { settings.latency_laid_back_ms.store(str2float(p.value("latency_laid_back_ms"))); } if(p.value("latency_stddev") != "") { settings.latency_stddev.store(str2float(p.value("latency_stddev"))); } if(p.value("latency_regain") != "") { settings.latency_regain.store(str2float(p.value("latency_regain"))); } std::string newkit = p.value("drumkitfile"); if(newkit != "") { settings.drumkit_file.store(newkit); } std::string newmidimap = p.value("midimapfile"); if(newmidimap != "") { settings.midimap_file.store(newmidimap); } return true; } drumgizmo-0.9.18.1/getoptpp/0000755000076400007640000000000013554101260012635 500000000000000drumgizmo-0.9.18.1/getoptpp/getoptpp.hpp0000644000076400007640000000556113111365371015143 00000000000000#pragma once #include #include #include #include #include #include #include namespace dg { using Handle = std::function; class Options { public: Options(); /// @param name name of the option /// @param has_arg kind of arguments that are used (no_argument, required_argument, optional_argument) /// @param val identifies the option (see getopt documentation) /// @param handle lambda that is invoked when the option occures void add(std::string const & name, int has_arg, int val, Handle handle); /// @param name name of the option /// @param has_arg kind of arguments that are used (no_argument, required_argument, optional_argument) /// @param flag pointer that is set after the option occured /// @param val value for the flag to be set /// @param handle lambda that is invoked when the option occures void add(std::string const & name, int has_arg, int* flag, int val, Handle handle); bool process(int argc, char* argv[]); const std::vector arguments() const { return args; } private: std::size_t num_flags; std::vector