This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
SConscript
executable file
·221 lines (208 loc) · 6.87 KB
/
SConscript
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# -*- Python -*-
from CXL_init import *
Import('*')
libName = "CXLAPIClasses"
env = CXL_env.Clone()
env.Append( CPPPATH = [
".",
env['CXL_commonproj_dir'],
env['CXL_commonproj_dir'] + "/AMDTOSWrappers/Include",
])
UseAPPSDK(env);
sources = \
[
"src/ap2DPoint.cpp",
"src/ap2DRectangle.cpp",
"src/apAPIFunctionId.cpp",
"src/apAIDFunctions.cpp",
"src/apAllocatedObject.cpp",
"src/apAPIConnectionType.cpp",
"src/apApiFunctionsInitializationData.cpp",
"src/apAPIVersion.cpp",
"src/apApplicationModesEventsType.cpp",
"src/apBasicParameters.cpp",
"src/apBreakPoint.cpp",
"src/apCLBuffer.cpp",
"src/apCLCommandQueue.cpp",
"src/apCLContext.cpp",
"src/apCLContextProperties.cpp",
"src/apCLDevice.cpp",
"src/apCLEnqueuedCommands.cpp",
"src/apCLEvent.cpp",
"src/apCLImage.cpp",
"src/apCLKernel.cpp",
"src/apCLMemObject.cpp",
"src/apCLObjectID.cpp",
"src/apCLPipe.cpp",
"src/apCLProgram.cpp",
"src/apCLSampler.cpp",
"src/apCLSubBuffer.cpp",
"src/apContextID.cpp",
"src/apCounterID.cpp",
"src/apCounterInfo.cpp",
"src/apCounterScope.cpp",
"src/apDebugProjectSettings.cpp",
"src/apDefaultTextureNames.cpp",
"src/apDetectedErrorParameters.cpp",
"src/apDisplayBuffer.cpp",
"src/apEnumeratorUsageStatistics.cpp",
"src/apErrorCode.cpp",
"src/apExpression.cpp",
"src/apFileType.cpp",
# "src/apFPSDisplayItem.cpp",
"src/apFunctionCall.cpp",
"src/apFunctionCallStatistics.cpp",
"src/apFunctionDeprecation.cpp",
"src/apGenericBreakpoint.cpp",
"src/apGLComputeShader.cpp",
"src/apGLDebugOutput.cpp",
"src/apGLDisplayList.cpp",
"src/apGLenumParameter.cpp",
"src/apGLFBO.cpp",
"src/apGLFragmentShader.cpp",
"src/apGLGeometryShader.cpp",
"src/apGLItemsCollection.cpp",
"src/apGLPipeline.cpp",
"src/apGLProgram.cpp",
"src/apGLRenderBuffer.cpp",
"src/apGLSampler.cpp",
"src/apGLShaderObject.cpp",
"src/apGLSync.cpp",
"src/apGLTessellationControlShader.cpp",
"src/apGLTessellationEvaluationShader.cpp",
"src/apGLTransformFeedbackObject.cpp",
"src/apGLTexture.cpp",
"src/apGLTextureMipLevel.cpp",
"src/apGLTextureMiplevelData.cpp",
"src/apGLTextureParameter.cpp",
"src/apGLTextureParams.cpp",
"src/apGLUnsupportedShader.cpp",
"src/apGLVBO.cpp",
"src/apGLVertexShader.cpp",
"src/apGLPixelInternalFormatParameter.cpp",
"src/apGLRenderContextInfo.cpp",
"src/apGLRenderContextGraphicsInfo.cpp",
"src/apGPUInfo.cpp",
# "src/apHeadsUpDisplayItem.cpp",
"src/apiClassesInitFunc.cpp",
"src/apInternalFormat.cpp",
# "src/apLoadedModule.cpp",
"src/apKernelFunctionNameBreakpoint.cpp",
"src/apKernelSourceCodeBreakpoint.cpp",
"src/apMonitoredFunctionBreakPoint.cpp",
"src/apMonitoredFunctionsManager.cpp",
"src/apOpenCLErrorParameters.cpp",
"src/apOpenCLParameters.cpp",
"src/apOpenCLQueueCommandsCategories.cpp",
"src/apOpenGLBuiltInUniformManager.cpp",
"src/apOpenGLESExtensionId.cpp",
"src/apOpenGLExtensionsId.cpp",
"src/apOpenGLParameters.cpp",
"src/apOpenGLStateVariablesManager.cpp",
"src/apOSRelatedParameters.cpp",
"src/apParameters.cpp",
"src/apPBuffer.cpp",
"src/apPointerParameterCreator.cpp",
"src/apProjectSettings.cpp",
"src/apRasterMode.cpp",
"src/apRenderPrimitivesStatistics.cpp",
"src/apSingeltonsDelete.cpp",
"src/apSourceCodeBreakpoint.cpp",
"src/apStateVariablesSnapShot.cpp",
"src/apStaticBuffer.cpp",
"src/apStatistics.cpp",
"src/apTextureType.cpp",
"src/apHostSourceBreakPoint.cpp",
# Events:
"Events/src/apAddWatchEvent.cpp",
"Events/src/apAfterKernelDebuggingEvent.cpp",
"Events/src/apApiConnectionEndedEvent.cpp",
"Events/src/apApiConnectionEstablishedEvent.cpp",
"Events/src/apBeforeDebuggedProcessRunResumedEvent.cpp",
"Events/src/apBeforeKernelDebuggingEvent.cpp",
"Events/src/apBreakpointHitEvent.cpp",
"Events/src/apBreakpointsUpdatedEvent.cpp",
"Events/src/apCallStackFrameSelectedEvent.cpp",
"Events/src/apComputeContextCreatedEvent.cpp",
"Events/src/apComputeContextDeletedEvent.cpp",
"Events/src/apContextDataSnapshotWasUpdatedEvent.cpp",
"Events/src/apHexChangedEvent.cpp",
"Events/src/apDebuggedProcessCreatedEvent.cpp",
"Events/src/apDebuggedProcessCreationFailureEvent.cpp",
"Events/src/apDebuggedProcessDetectedErrorEvent.cpp",
"Events/src/apDebuggedProcessIsDuringTerminationEvent.cpp",
"Events/src/apDebuggedProcessOutputStringEvent.cpp",
"Events/src/apDebuggedProcessRunResumedEvent.cpp",
"Events/src/apDebuggedProcessRunStartedEvent.cpp",
"Events/src/apDebuggedProcessRunStartedExternallyEvent.cpp",
"Events/src/apDebuggedProcessRunSuspendedEvent.cpp",
"Events/src/apDebuggedProcessTerminatedEvent.cpp",
"Events/src/apDeferredCommandEvent.cpp",
"Events/src/apFlushTextureImageEvent.cpp",
"Events/src/apKernelDebuggingFailedEvent.cpp",
"Events/src/apKernelDebuggingInterruptedEvent.cpp",
"Events/src/apKernelWorkItemChangedEvent.cpp",
"Events/src/apMDIViewActivatedEvent.cpp",
"Events/src/apMDIViewCreateEvent.cpp",
"Events/src/apMemoryAllocationFailureEvent.cpp",
"Events/src/apModuleLoadedEvent.cpp",
"Events/src/apModuleUnloadedEvent.cpp",
"Events/src/apEvent.cpp",
"Events/src/apEventsHandler.cpp",
"Events/src/apExecutionModeChangedEvent.cpp",
"Events/src/apExceptionEvent.cpp",
"Events/src/apGDBErrorEvent.cpp",
"Events/src/apGDBListenerThreadWasSuspendedEvent.cpp",
"Events/src/apGDBOutputStringEvent.cpp",
"Events/src/apGLDebugOutputMessageEvent.cpp",
"Events/src/apIEventsFiller.cpp",
"Events/src/apIEventsObserver.cpp",
"Events/src/apInfrastructureEndsBeingBusyEvent.cpp",
"Events/src/apInfrastructureFailureEvent.cpp",
"Events/src/apInfrastructureStartsBeingBusyEvent.cpp",
"Events/src/apKernelSourceBreakpointsUpdatedEvent.cpp",
"Events/src/apMemoryLeakEvent.cpp",
"Events/src/apMonitoredObjectsTreeEvent.cpp",
"Events/src/apSearchingForMemoryLeaksEvent.cpp",
"Events/src/apOpenCLErrorEvent.cpp",
"Events/src/apOpenCLProgramBuildEvent.cpp",
"Events/src/apOpenCLProgramBuildFailedWithDebugFlagsEvent.cpp",
"Events/src/apOpenCLProgramCreatedEvent.cpp",
"Events/src/apOpenCLProgramDeletedEvent.cpp",
"Events/src/apOpenCLQueueCreatedEvent.cpp",
"Events/src/apOpenCLQueueDeletedEvent.cpp",
"Events/src/apOutputDebugStringEvent.cpp",
"Events/src/apProfileProcessTerminatedEvent.cpp",
"Events/src/apProfileProgressEvent.cpp",
"Events/src/apRenderContextCreatedEvent.cpp",
"Events/src/apRenderContextDeletedEvent.cpp",
"Events/src/apSpyProgressEvent.cpp",
"Events/src/apTechnologyMonitorFailureEvent.cpp",
"Events/src/apThreadCreatedEvent.cpp",
"Events/src/apThreadTerminatedEvent.cpp",
"Events/src/apUserWarningEvent.cpp",
#linuVariantSource
"src/apGLXParameters.cpp",
]
env.Prepend( LIBS =
[
"CXLBaseTools",
"CXLOSWrappers",
"CXLOSAPIWrappers",
])
# Creating object files
objFiles = env.SharedObject(sources)
if (env['CXL_build_type'] == 'static'):
soFiles = env.StaticLibrary(
target = libName,
source = objFiles)
else:
# Creating shared libraries
soFiles = env.SharedLibrary(
target = libName,
source = objFiles)
# Installing libraries
libInstall = env.Install(
dir = env['CXL_lib_dir'],
source = (soFiles))
Return('libInstall')