This repository was archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSConscript
More file actions
executable file
·193 lines (173 loc) · 5.97 KB
/
SConscript
File metadata and controls
executable file
·193 lines (173 loc) · 5.97 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# -*- Python -*-
import os
Import('*')
from CXL_init import *
libName = "CXLApplicationComponents"
env = CXL_env.Clone()
env.Append( CPPPATH = [
"./",
"./inc",
env['CXL_commonproj_dir'],
env['CXL_commonproj_dir'] + "/AMDTOSAPIWrappers/Include",
env['CXL_commonproj_dir'] + '/../../CodeXL',
"/usr/include/gdk-pixbuf-2.0/", # [Suravee] Needed for Ubuntu-11.10
])
UseGtk(env)
UseQScintilla(env)
UseQt4(env)
UseAPPSDK(env)
UseQCustomPlot(env)
moc_files = Split(
" Include/acListCtrl.h"
+ " Include/acBarsGraph.h"
+ " Include/acChartWindow.h"
+ " Include/acCustomPlot.h"
+ " Include/acDataView.h"
+ " Include/acDataViewGridTable.h"
+ " Include/acDoubleSlider.h"
+ " Include/acFrozenColumnTreeView.h"
+ " Include/acHeaderView.h"
+ " Include/acImageManager.h"
+ " Include/acImageManagerModel.h"
+ " Include/acImageView.h"
+ " Include/acLineEdit.h"
+ " Include/acFindWidget.h"
+ " Include/acSourceCodeView.h"
+ " Include/acSplitter.h"
+ " Include/acTabWidget.h"
+ " Include/acNavigationChart.h"
+ " Include/acMultiLinePlot.h"
+ " Include/acRibbonManager.h"
+ " Include/acToolBar.h"
+ " Include/acQHTMLWindow.h"
+ " Include/acQTextFilterCtrl.h"
+ " Include/acTreeCtrl.h"
+ " Include/Timeline/acTimeline.h"
+ " Include/Timeline/acTimelineBranch.h"
+ " Include/Timeline/acTimelineGrid.h"
+ " Include/Timeline/acTimelineItem.h"
+ " Include/Timeline/acTimelineItemCurve.h"
+ " Include/Timeline/acTimelineFiltersDialog.h"
+ " Include/acVectorLineGraph.h"
+ " Include/acVirtualListCtrl.h"
+ " Include/acVirtualListCtrlModel.h"
+ " Include/acProgressDlg.h"
+ " Include/acProgressAnimationWidget.h"
+ " Include/acSendErrorReportDialog.h"
+ " Include/acSoftwareUpdaterWindow.h"
+ " Include/acSoftwareUpdaterProxySetting.h"
+ " Include/acThumbnailView.h"
+ " Include/acHelpAboutDialog.h"
+ " Include/acEulaDialog.h"
+ " Include/acGoToLineDialog.h"
)
qrc_files = [ "Include/res/icons/acIcons.qrc" ]
# Source files:
sources = \
[
"src/acBarsGraph.cpp",
"src/acChartWindow.cpp",
"src/acColours.cpp",
"src/acColoredBarsGraph.cpp",
"src/acColorSampleBox.cpp",
"src/acCustomPlot.cpp",
"src/acDataView.cpp",
"src/acDataViewItem.cpp",
"src/acDataViewGridTable.cpp",
"src/acDialog.cpp",
"src/acDisplay.cpp",
"src/acDoubleSlider.cpp",
"src/acEulaDialog.cpp",
"src/acFindParameters.cpp",
"src/acFindWidget.cpp",
"src/acFrozenColumnTreeView.cpp",
"src/acFunctions.cpp",
"src/acGoToLineDialog.cpp",
"src/acGroupedBarsGraph.cpp",
"src/acHeaderView.cpp",
"src/acHelpAboutDialog.cpp",
"src/acIcons.cpp",
"src/acImageDataProxy.cpp",
"src/acImageItem.cpp",
"src/acImageItemDelegate.cpp",
"src/acImageManager.cpp",
"src/acImageManagerModel.cpp",
"src/acImageView.cpp",
"src/acItemDelegate.cpp",
"src/acLineEdit.cpp",
"src/acListCtrl.cpp",
"src/acMessageBox.cpp",
"src/acMultiLinePlot.cpp",
"src/acQCPColoredBars.cpp",
"src/acQHTMLWindow.cpp",
"src/acQMessageDialog.cpp",
"src/acNavigationChart.cpp",
"src/acProgressAnimationWidget.cpp",
"src/acProgressDlg.cpp",
"src/acQTextFilterCtrl.cpp",
"src/acRawDataExporter.cpp",
"src/acRawFileHandler.cpp",
"src/acRibbonManager.cpp",
"src/acSendErrorReportDialog.cpp",
"src/acSoftwareUpdaterProxySetting.cpp",
"src/acSoftwareUpdaterWindow.cpp",
"src/acSourceCodeLanguageHighlighter.cpp",
"src/acSourceCodeLexers.cpp",
"src/acSourceCodeView.cpp",
"src/acStackedBarGraph.cpp",
"src/acSplitter.cpp",
"src/acTabWidget.cpp",
"src/acThumbnailView.cpp",
"src/acTimeline.cpp",
"src/acTimelineBranch.cpp",
"src/acTimelineFiltersDialog.cpp",
"src/acTimelineGrid.cpp",
"src/acTimelineItem.cpp",
"src/acTimelineItemCurve.cpp",
"src/acToolBar.cpp",
"src/acTreeCtrl.cpp",
"src/acValidators.cpp",
"src/acVectorLineGraph.cpp",
"src/acVirtualListCtrl.cpp",
"src/acVirtualListCtrlModel.cpp",
]
commonLinkedLibraries = \
[
"CXLBaseTools",
"CXLOSWrappers",
"CXLOSAPIWrappers",
"CXLAPIClasses"
]
linuxVariantLinkedLibraries = \
[
"libGL", "libgtk-x11-2.0"
]
linkedLibraries = commonLinkedLibraries + linuxVariantLinkedLibraries
env.Prepend ( LIBS = linkedLibraries )
# Set the ELF hash generation mode:
# - When building on new systems, we would like to generate both sysv and gnu ELF hashes.
# This enables running the executable also on old systems, that support only the sysv ELF hash.
# - When building on old systems, we need to set the GR_GENERATE_ONLY_DEFAULT_ELF_HASH environment
# variable (preferably in the .bashrc file). Otherwise the link will fail when trying to
# generate an ELF hash type that the old linker does not recognize.
# [Yaki 7/7/2009]
linkerFlags = []
shouldGenerateOnlyDefaultELFHash = os.environ.get('GR_GENERATE_ONLY_DEFAULT_ELF_HASH')
if shouldGenerateOnlyDefaultELFHash is None:
linkerFlags += [ "-Wl,--hash-style=both" ]
MOC_Generated = []
for moc_file in moc_files:
MOC_Generated += env.MocBld(moc_file)
QRC_Generated = []
for qrc_file in qrc_files:
QRC_Generated += env.RccBld(qrc_file)
# Creating shared libraries
soFiles = env.SharedLibrary(
target = libName,
source = sources + MOC_Generated + QRC_Generated,
LINKFLAGS = linkerFlags)
# Installing libraries
libInstall = env.Install(
dir = env['CXL_lib_dir'],
source = (soFiles))
Return('libInstall')