Skip to content

Commit 4a9d0a1

Browse files
committed
copied from Patreon
0 parents  commit 4a9d0a1

File tree

2,064 files changed

+404773
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,064 files changed

+404773
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SimulIDE 0.3.10
2+
3+
Electronic Circuit Simulator
4+
5+
6+
SimulIDE is a simple real time electronic circuit simulator.
7+
8+
It's intended for general purpose electronics and microcontroller simulation, supporting PIC, AVR and Arduino.
9+
10+
PIC simulation is provided by gpsim and avr simulation by simavr.
11+
12+
This is not an accurate simulator for circuit analisis, it aims to be the fast, simple and easy to use, so this means simple and not very accurate electronic models and limited features.
13+
14+
Intended for hobbist or students to learn and experiment with simple circuits.
15+
16+
17+
SimulIDE also features a code Editor and Debugger for GcBasic, Arduino, PIC asm and AVR asm.
18+
Editor/Debugger is still in it's firsts stages of development, with basic functionalities, but it is possible to write, compile and basic debugging with breakpoints, watch registers and global variables.
19+
20+
21+
## Building SimulIDE:
22+
23+
Build dependencies:
24+
25+
- Qt5 dev packages
26+
- Qt5Core
27+
- Qt5Gui
28+
- Qt5Xml
29+
- Qt5Widgets
30+
- Qt5Concurrent
31+
- Qt5svg dev
32+
- Qt5 Multimedia dev
33+
- Qt5 Serialport dev
34+
- Qt5 Script
35+
- Qt5 qmake
36+
- libelf dev
37+
- gcc-avr
38+
- avr-libc
39+
40+
41+
Once installed go to build_XX folder, then:
42+
43+
```
44+
$ qmake
45+
$ make
46+
```
47+
48+
In folder build_XX/release/SimulIDE_x.x.x you will find executable and all files needed to run SimulIDE.
49+
50+
51+
52+
## Running SimulIDE:
53+
54+
Run time dependencies:
55+
56+
- Qt5Core
57+
- Qt5Gui
58+
- Qt5Xml
59+
- Qt5svg
60+
- Qt5Widgets
61+
- Qt5Concurrent
62+
- Qt5 Multimedia
63+
- Qt5 Multimedia Plugins
64+
- Qt5 Serialport
65+
- Qt5 Script
66+
- libelf
67+
68+
69+
SimuliDE executable is in bin folder.
70+
No need for installation, place SimulIDE folder wherever you want and run the executable.

SimulIDE.pro

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
###########################################################################
2+
# Copyright (C) 2012 by santiago González #
3+
4+
# #
5+
# This program is free software; you can redistribute it and/or modify #
6+
# it under the terms of the GNU General Public License as published by #
7+
# the Free Software Foundation; either version 3 of the License, or #
8+
# (at your option) any later version. #
9+
# #
10+
# This program is distributed in the hope that it will be useful, #
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
13+
# GNU General Public License for more details. #
14+
# #
15+
# You should have received a copy of the GNU General Public License #
16+
# along with this program; if not, see <http://www.gnu.org/licenses/>. #
17+
# #
18+
###########################################################################
19+
20+
21+
win32 {
22+
VERSION = "0.4.13.10"
23+
}
24+
unix {
25+
VERSION = "0.4.13-F"
26+
}
27+
28+
TEMPLATE = app
29+
30+
QT += svg
31+
QT += xml
32+
QT += script
33+
QT += widgets
34+
QT += concurrent
35+
QT += serialport
36+
QT += multimedia widgets
37+
38+
SOURCES += ../src/*.cpp \
39+
../src/gui/*.cpp \
40+
../src/gui/circuitwidget/*.cpp \
41+
../src/gui/circuitwidget/components/*.cpp \
42+
../src/gui/circuitwidget/components/active/*.cpp \
43+
../src/gui/circuitwidget/components/logic/*.cpp \
44+
../src/gui/circuitwidget/components/mcu/*.cpp \
45+
../src/gui/circuitwidget/components/meters/*.cpp \
46+
../src/gui/circuitwidget/components/other/*.cpp \
47+
../src/gui/circuitwidget/components/outputs/*.cpp \
48+
../src/gui/circuitwidget/components/passive/*.cpp \
49+
../src/gui/circuitwidget/components/sources/*.cpp \
50+
../src/gui/circuitwidget/components/switches/*.cpp \
51+
../src/gui/oscopewidget/*.cpp \
52+
../src/gui/plotterwidget/*.cpp \
53+
../src/gui/terminalwidget/*.cpp \
54+
../src/gui/QPropertyEditor/*.cpp \
55+
../src/gui/componentselector/*.cpp \
56+
../src/gui/filebrowser/*.cpp \
57+
../src/gui/editorwidget/*.cpp \
58+
../src/gui/editorwidget/findreplacedialog/*.cpp \
59+
../src/simulator/*.cpp \
60+
../src/simulator/elements/*.cpp \
61+
../src/simulator/elements/active/*.cpp \
62+
../src/simulator/elements/logic/*.cpp \
63+
../src/simulator/elements/outputs/*.cpp \
64+
../src/simulator/elements/passive/*.cpp \
65+
../src/simulator/elements/processors/*.cpp \
66+
../src/simavr/sim/*.c \
67+
../src/simavr/cores/*.c \
68+
../src/gpsim/*.cc \
69+
../src/gpsim/devices/*.cc \
70+
../src/gpsim/modules/*.cc \
71+
../src/gpsim/registers/*.cc
72+
73+
HEADERS += ../src/*.h \
74+
../src/gui/*.h \
75+
../src/gui/circuitwidget/*.h \
76+
../src/gui/circuitwidget/components/*.h \
77+
../src/gui/circuitwidget/components/active/*.h \
78+
../src/gui/circuitwidget/components/logic/*.h \
79+
../src/gui/circuitwidget/components/mcu/*.h \
80+
../src/gui/circuitwidget/components/meters/*.h \
81+
../src/gui/circuitwidget/components/other/*.h \
82+
../src/gui/circuitwidget/components/outputs/*.h \
83+
../src/gui/circuitwidget/components/passive/*.h \
84+
../src/gui/circuitwidget/components/sources/*.h \
85+
../src/gui/circuitwidget/components/switches/*.h \
86+
../src/gui/oscopewidget/*.h \
87+
../src/gui/plotterwidget/*.h \
88+
../src/gui/terminalwidget/*.h \
89+
../src/gui/QPropertyEditor/*.h \
90+
../src/gui/componentselector/*.h \
91+
../src/gui/filebrowser/*.h \
92+
../src/gui/editorwidget/*.h \
93+
../src/gui/editorwidget/findreplacedialog/*.h \
94+
../src/simulator/*.h \
95+
../src/simulator/elements/*.h \
96+
../src/simulator/elements/active/*.h \
97+
../src/simulator/elements/logic/*.h \
98+
../src/simulator/elements/outputs/*.h \
99+
../src/simulator/elements/passive/*.h \
100+
../src/simulator/elements/processors/*.h \
101+
../src/simavr/sim/*.h \
102+
../src/simavr/sim/avr/*.h \
103+
../src/simavr/cores/*.h \
104+
../resources/data/*.xml \
105+
../src/gpsim/*.h \
106+
../src/gpsim/devices/*.h \
107+
../src/gpsim/modules/*.h \
108+
../src/gpsim/registers/*.h
109+
110+
INCLUDEPATH += ../src \
111+
../src/gui \
112+
../src/gui/circuitwidget \
113+
../src/gui/circuitwidget/components \
114+
../src/gui/circuitwidget/components/active \
115+
../src/gui/circuitwidget/components/logic \
116+
../src/gui/circuitwidget/components/mcu \
117+
../src/gui/circuitwidget/components/meters \
118+
../src/gui/circuitwidget/components/other \
119+
../src/gui/circuitwidget/components/outputs \
120+
../src/gui/circuitwidget/components/passive \
121+
../src/gui/circuitwidget/components/sources \
122+
../src/gui/circuitwidget/components/switches \
123+
../src/gui/oscopewidget \
124+
../src/gui/plotterwidget \
125+
../src/gui/terminalwidget \
126+
../src/gui/QPropertyEditor \
127+
../src/gui/componentselector \
128+
../src/gui/filebrowser \
129+
../src/gui/editorwidget \
130+
../src/gui/editorwidget/findreplacedialog \
131+
../src/simulator \
132+
../src/simulator/elements \
133+
../src/simulator/elements/active \
134+
../src/simulator/elements/logic \
135+
../src/simulator/elements/outputs \
136+
../src/simulator/elements/passive \
137+
../src/simulator/elements/processors \
138+
../src/simavr \
139+
../src/simavr/sim \
140+
../src/simavr/sim/avr \
141+
../src/simavr/cores \
142+
../src/gpsim \
143+
../src/gpsim/devices \
144+
../src/gpsim/modules \
145+
../src/gpsim/registers
146+
147+
TRANSLATIONS += \
148+
../resources/translations/simulide.ts \
149+
../resources/translations/simulide_en.ts \
150+
../resources/translations/simulide_es.ts \
151+
../resources/translations/simulide_ru.ts
152+
153+
RESOURCES = ../src/application.qrc
154+
155+
QMAKE_CXXFLAGS += -Wno-unused-parameter
156+
QMAKE_CXXFLAGS += -Wno-missing-field-initializers
157+
QMAKE_CXXFLAGS += -Wno-implicit-fallthrough
158+
QMAKE_CXXFLAGS -= -fPIC
159+
QMAKE_CXXFLAGS += -fno-pic
160+
161+
QMAKE_CFLAGS += --std=gnu11
162+
QMAKE_CFLAGS += -Wno-unused-result
163+
QMAKE_CFLAGS += -Wno-unused-parameter
164+
QMAKE_CFLAGS += -Wno-missing-field-initializers
165+
QMAKE_CFLAGS += -Wno-implicit-function-declaration
166+
QMAKE_CFLAGS += -Wno-implicit-fallthrough
167+
QMAKE_CFLAGS += -Wno-int-conversion
168+
QMAKE_CFLAGS += -Wno-sign-compare
169+
QMAKE_CFLAGS += -O2
170+
QMAKE_CFLAGS -= -fPIC
171+
QMAKE_CFLAGS += -fno-pic
172+
173+
174+
win32 {
175+
INCLUDEPATH += deps/libelf \
176+
deps
177+
QMAKE_LIBS += -lwsock32
178+
LIBS += deps/libelf.a
179+
LIBS += deps/libglibc_win.a
180+
RC_ICONS += ../src/icons/simulide.ico
181+
}
182+
unix {
183+
QMAKE_LIBS += -lelf
184+
QMAKE_LFLAGS += -no-pie
185+
}
186+
187+
CONFIG += qt
188+
CONFIG += warn_on
189+
CONFIG += no_qml_debug
190+
CONFIG *= c++11
191+
192+
DEFINES += MAINMODULE_EXPORT=
193+
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
194+
195+
TARGET_NAME = SimulIDE_$$VERSION$$
196+
197+
CONFIG( release, debug|release ) {
198+
TARGET_PREFIX = $$BUILD_DIR/release/$$TARGET_NAME
199+
_OBJECTS_DIR = $$OUT_PWD/build/release
200+
}
201+
202+
CONFIG( debug, debug|release ) {
203+
TARGET_PREFIX = $$BUILD_DIR/debug/$$TARGET_NAME
204+
_OBJECTS_DIR = $$OUT_PWD/build/debug
205+
}
206+
207+
OBJECTS_DIR *= $$_OBJECTS_DIR
208+
MOC_DIR *= $$_OBJECTS_DIR
209+
INCLUDEPATH += $$OBJECTS_DIR
210+
211+
DESTDIR = $$TARGET_PREFIX/bin
212+
213+
TARGET = simulide
214+
215+
mkpath( $$TARGET_PREFIX/bin )
216+
217+
218+
runLrelease.commands = lrelease ../resources/translations/*.ts;
219+
QMAKE_EXTRA_TARGETS += runLrelease
220+
POST_TARGETDEPS += runLrelease
221+
222+
copy2dest.commands = \
223+
$(MKDIR) $$TARGET_PREFIX/share/simulide/data ; \
224+
$(MKDIR) $$TARGET_PREFIX/share/simulide/examples ; \
225+
$(MKDIR) $$TARGET_PREFIX/share/simulide/translations ; \
226+
$(COPY_DIR) ../resources/data $$TARGET_PREFIX/share/simulide ; \
227+
$(COPY_DIR) ../resources/examples $$TARGET_PREFIX/share/simulide ; \
228+
$(COPY_DIR) ../resources/icons $$TARGET_PREFIX/share ; \
229+
$(MOVE) ../resources/translations/*.qm $$TARGET_PREFIX/share/simulide/translations ;
230+
231+
QMAKE_EXTRA_TARGETS += copy2dest
232+
POST_TARGETDEPS += copy2dest
233+
234+
235+
message( "-----------------------------" )
236+
message( " " $$TARGET_NAME )
237+
message( " TARGET_PREFIX=" $$TARGET_PREFIX )
238+
message( "-----------------------------" )
239+

build_XX/SimulIDE_Build.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
BUILD_DIR = $$PWD
3+
4+
5+
include(../SimulIDE.pro)

0 commit comments

Comments
 (0)