-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathVerilogCreator.pro
139 lines (117 loc) · 4.12 KB
/
VerilogCreator.pro
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
#/*
#* Copyright 2018 Rochus Keller <mailto:[email protected]>
#*
#* This file is part of the VerilogCreator plugin.
#*
#* The following is the license that applies to this copy of the
#* plugin. For a license to use the plugin under conditions
#* other than those described here, please email to [email protected].
#*
#* GNU General Public License Usage
#* This file may be used under the terms of the GNU General Public
#* License (GPL) versions 2.0 or 3.0 as published by the Free Software
#* Foundation and appearing in the file LICENSE.GPL included in
#* the packaging of this file. Please review the following information
#* to ensure GNU General Public Licensing requirements will be met:
#* http://www.fsf.org/licensing/licenses/info/GPLv2.html and
#* http://www.gnu.org/copyleft/gpl.html.
#*/
DEFINES += VERILOGCREATOR_LIBRARY
# Qt Creator linking
## set the QTC_SOURCE environment variable to override the setting here
QTCREATOR_SOURCES = $$(QTC_SOURCE)
isEmpty(QTCREATOR_SOURCES):QTCREATOR_SOURCES=../QtcVerilog
## set the QTC_BUILD environment variable to override the setting here
IDE_BUILD_TREE = $$(QTC_BUILD)
isEmpty(IDE_BUILD_TREE):IDE_BUILD_TREE=../QtcVerilogBuild
###### If the plugin can be depended upon by other plugins, this code needs to be outsourced to
###### <dirname>_dependencies.pri, where <dirname> is the name of the directory containing the
###### plugin's sources.
QTC_PLUGIN_NAME = VerilogCreator
QTC_LIB_DEPENDS += \
# nothing here at this time
QTC_PLUGIN_DEPENDS += \
coreplugin texteditor projectexplorer
QTC_PLUGIN_RECOMMENDS += \
# optional plugin dependencies. nothing here at this time
###### End _dependencies.pri contents ######
include($$QTCREATOR_SOURCES/src/qtcreatorplugin.pri)
## uncomment to build plugin into user config directory
## <localappdata>/plugins/<ideversion>
## where <localappdata> is e.g.
## "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
## "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
## "~/Library/Application Support/QtProject/Qt Creator" on Mac
isEmpty(QTC_VERILOG) {
message(Use user destdir)
USE_USER_DESTDIR = yes
}
VL_COMPAT_VERSION_LIST=$$split(QTCREATOR_COMPAT_VERSION,.)
VL_COMPAT_VER_MAJ=$$format_number($$member(VL_COMPAT_VERSION_LIST,0), width=2 zeropad)
VL_COMPAT_VER_MIN=$$format_number($$member(VL_COMPAT_VERSION_LIST,1), width=2 zeropad)
DEFINES += "VL_QTC_VER_MAJ=$$VL_COMPAT_VER_MAJ" # 03
DEFINES += "VL_QTC_VER_MIN=$$VL_COMPAT_VER_MIN" # 04
DEFINES += "VL_QTC_VER=$$VL_COMPAT_VER_MAJ$$VL_COMPAT_VER_MIN" # 0304
#message($$DEFINES)
DEFINES -= QT_NO_CAST_FROM_ASCII
# VerilogCreator files
CONFIG(debug, debug|release) {
DEFINES += _DEBUG
}
!win32 { QMAKE_CXXFLAGS += -Wno-reorder -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable }
INCLUDEPATH += ..
SOURCES += \
VlHighlighter.cpp \
VlPlugin.cpp \
VlIndenter.cpp \
VlModelManager.cpp \
VlProject.cpp \
VlProjectManager.cpp \
VlHoverHandler.cpp \
VlConfigurationFactory.cpp \
VlIcarusConfiguration.cpp \
VlVerilatorConfiguration.cpp \
VlYosysConfiguration.cpp \
VlOutlineMdl.cpp \
VlTclConfiguration.cpp \
VlTclEngine.cpp \
VlAutoCompleter.cpp \
VlCompletionAssistProvider.cpp \
VlOutlineWidget.cpp \
VlModuleLocator.cpp \
VlSymbolLocator.cpp \
VlVerilogEditor.cpp \
VlProjectEditor.cpp \
VlSdfEditor.cpp
HEADERS += \
verilogcreator_global.h \
VlHighlighter.h \
VlConstants.h \
VlPlugin.h \
VlIndenter.h \
VlModelManager.h \
VlProject.h \
VlProjectManager.h \
VlHoverHandler.h \
VlConfigurationFactory.h \
VlIcarusConfiguration.h \
VlVerilatorConfiguration.h \
VlYosysConfiguration.h \
VlOutlineMdl.h \
VlTclConfiguration.h \
VlTclEngine.h \
VlAutoCompleter.h \
VlCompletionAssistProvider.h \
VlOutlineWidget.h \
VlModuleLocator.h \
VlSymbolLocator.h \
VlVerilogEditor.h \
VlProjectEditor.h \
VlSdfEditor.h
include (../Verilog/Verilog.pri )
include (../Sdf/Sdf.pri )
OTHER_FILES +=
DISTFILES += \
VerilogCreator.json.in
RESOURCES += \
VerilogCreator.qrc