aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/qtmips_gui.pro
blob: 0f8cab0d733ea5849f83ed66738bcce9683c2bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
QT += core gui widgets
qtHaveModule(printsupport): QT += printsupport
qtHaveModule(printsupport): DEFINES += QTMIPS_WITH_PRINTING=1

TARGET = qtmips_gui
CONFIG += c++11

TEMPLATE = app

win32:CONFIG(release, debug|release): LIBS_SUBDIR = release
else:win32:CONFIG(debug, debug|release): LIBS_SUBDIR = debug
else:unix: LIBS_SUBDIR = .

LIBS += -L$$OUT_PWD/../qtmips_osemu/$${LIBS_SUBDIR}  -lqtmips_osemu
LIBS += -L$$OUT_PWD/../qtmips_machine/$${LIBS_SUBDIR} -lqtmips_machine -lelf
LIBS += -L$$OUT_PWD/../qtmips_asm/$${LIBS_SUBDIR} -lqtmips_asm -lelf

PRE_TARGETDEPS += $$OUT_PWD/../qtmips_osemu/$${LIBS_SUBDIR}/libqtmips_osemu.a
PRE_TARGETDEPS += $$OUT_PWD/../qtmips_machine/$${LIBS_SUBDIR}/libqtmips_machine.a
PRE_TARGETDEPS += $$OUT_PWD/../qtmips_asm/$${LIBS_SUBDIR}/libqtmips_asm.a

DOLAR=$

unix: LIBS += \
        -Wl,-rpath,\'$${DOLAR}$${DOLAR}ORIGIN/../lib\' \
        # --enable-new-dtags \

INCLUDEPATH += $$PWD/../qtmips_machine $$PWD/../qtmips_osemu $$PWD/../qtmips_asm
DEPENDPATH += $$PWD/../qtmips_machine $$PWD/../qtmips_osemu $$PWD/../qtmips_asm
QMAKE_CXXFLAGS += -std=c++0x
QMAKE_CXXFLAGS_DEBUG += -ggdb

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
        main.cpp \
        mainwindow.cpp \
        newdialog.cpp \
        coreview.cpp \
        registersdock.cpp \
        programdock.cpp \
        memorydock.cpp \
        coreview/programcounter.cpp \
        coreview/multiplexer.cpp \
        coreview/connection.cpp \
        coreview/latch.cpp \
        coreview/alu.cpp \
        coreview/memory.cpp \
        coreview/instructionview.cpp \
        coreview/registers.cpp \
        coreview/adder.cpp \
        coreview/constant.cpp \
        coreview/junction.cpp \
        coreview/logicblock.cpp \
        coreview/and.cpp \
        statictable.cpp \
    cacheview.cpp \
    cachedock.cpp \
    graphicsview.cpp \
    coreview/value.cpp \
    memorymodel.cpp \
    memorytableview.cpp \
    hexlineedit.cpp \
    programmodel.cpp \
    programtableview.cpp \
    aboutdialog.cpp \
    peripheralsdock.cpp \
    terminaldock.cpp \
    peripheralsview.cpp \
    lcddisplaydock.cpp \
    lcddisplayview.cpp \
    coreview/multitext.cpp \
    fontsize.cpp \
    gotosymboldialog.cpp \
    cop0dock.cpp \
    hinttabledelegate.cpp \
    coreview/minimux.cpp \
    srceditor.cpp \
    highlighter.cpp \
    messagesdock.cpp \
    messagesmodel.cpp \
    messagesview.cpp

HEADERS += \
        mainwindow.h \
        newdialog.h \
        coreview.h \
        registersdock.h \
        programdock.h \
        memorydock.h \
        coreview/programcounter.h \
        coreview/multiplexer.h \
        coreview/connection.h \
        coreview/latch.h \
        coreview/alu.h \
        coreview/memory.h \
        coreview/instructionview.h \
        coreview/registers.h \
        coreview/adder.h \
        coreview/constant.h \
        coreview/junction.h \
        coreview/logicblock.h \
        coreview/and.h \
        statictable.h \
    cacheview.h \
    cachedock.h \
    graphicsview.h \
    coreview/value.h \
    memorymodel.h \
    memorytableview.h \
    hexlineedit.h \
    programmodel.h \
    programtableview.h \
    aboutdialog.h \
    peripheralsdock.h \
    terminaldock.h \
    peripheralsview.h \
    lcddisplaydock.h \
    lcddisplayview.h \
    coreview/multitext.h \
    fontsize.h \
    gotosymboldialog.h \
    cop0dock.h \
    hinttabledelegate.h \
    coreview/minimux.h \
    srceditor.h \
    highlighter.h \
    messagesdock.h \
    messagesmodel.h \
    messagesview.h

wasm: SOURCES += \
    qhtml5file_html5.cpp

wasm: HEADERS += \
    qhtml5file.h

FORMS += \
        NewDialog.ui \
        NewDialogCache.ui \
        MainWindow.ui \
    peripheralsview.ui \
    gotosymboldialog.ui

RESOURCES += \
        icons.qrc

# ICON is config specific to macOS
# see https://doc.qt.io/qt-5/appicon.html#setting-the-application-icon-on-macos
# see data/icons/macos/README.md
ICON = icons/qtmips_gui.icns