This repository was archived by the owner on Feb 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSConstruct
927 lines (768 loc) · 40.7 KB
/
SConstruct
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
#
# CodeXL SConstruct Template
#
import os
from CXL_init import *
###################################################
# Initialize CXL command line variables
#
# Note: DO NOT MODIFY THIS SECTION. Please see CXL_init.
#
CXL_vars = Variables(None)
# Initial CXL_vars scons construction variables
initCXLVars(CXL_vars)
###################################################
#
# Additional SConstruct variables can be added here
#
# Note: * These variables can be configured from the commandline arguments.
# * These will be included in the help "scons -h".
# * Customizable
# // Add more variables here
#++AT:LPGPU2
Help("""\nBuild single modules:
Build one only module or more by passing their name; see CodeXL/SConstruct
for possible aliases. By default build the whole project.\n""")
#--AT:LPGPU2
#++AT:LPGPU2
# Add ability to only build the remote agent and its dependencies;
# used mainly for cross compiling the remote agent
CXL_vars.Add(
key = 'CXL_build_only_remote_agent',
help = 'Build only the Remote Agent',
default = '',
allowed_values = ('true', ''))
#--AT:LPGPU2
###################################################
# Initialize CXL_env
#
# Note: DO NOT MODIFY THIS SECTION. Please see CXL_init.
#
CXL_env = Environment(
variables = CXL_vars,
ENV = {'PATH':os.environ['PATH']})
# CXL build initialization
initCXLBuild (CXL_env)
###################################################
# Initialize External library stuff
#
# Note: * This section is customizable.
#
#++AT:LPGPU2
initTinyXml(CXL_env)
initStdc(CXL_env)
initBoost(CXL_env)
if (CXL_env['CXL_build_only_remote_agent'] == ''):
# Only initialize the visualization libraries if not just building the
# remote agent.
# TODO Have GTK build ALWAYS no matter the architecture, i.e. move it above the
# if statement
initGtk (CXL_env)
initQt4 (CXL_env)
initQScintilla (CXL_env)
initQCustomPlot (CXL_env)
initJava(CXL_env)
#--AT:LPGPU2
# Set the debug/release variant data
if (CXL_env['CXL_build'] == 'debug'):
obj_variant_dir = 'variant_debug'
else:
obj_variant_dir = 'variant_release'
# Generate Help
Help(CXL_vars.GenerateHelpText(CXL_env))
###################################################
# Specify Depe!h!,<Mouse>C!k!,
#
# Note: This section is customizable.
#
CXL_lib_common_amd_deps = (
)
initCommonLibAmd (CXL_env, CXL_lib_common_amd_deps)
###################################################
# Any custom builders for this project
#
# UIC, MOC, RCC (for Qt)
# Custom ones are required because the default Qt ones are for Qt3, and
# there are no Qt4 ones which come with the scons rpm.
# rgorton note (7-Aug-2012):
# These need to be here - if they are in the CXL_init.py script, the values
# of SOURCES and TARGET are null, I think because we are outside of scons
# at that point. Spent multiple hours puzzling over that.
#
#++KB: LPGPU2
# If only building the remote agent, don't use any custom builders
if (CXL_env['CXL_build_only_remote_agent'] == ''):
uic_build = Builder(action = CXL_env['CXL_uic_tool'] + ' ${SOURCES[0]} -o $TARGET',
prefix='ui_', suffix='.h', src_suffix='.ui')
CXL_env.Append(BUILDERS = {'UicBld' : uic_build})
moc_build = Builder(action = CXL_env['CXL_moc_tool'] + ' ${SOURCES[0]} -o $TARGET',
prefix='moc_', suffix='.cpp', src_suffix='.h')
CXL_env.Append(BUILDERS = {'MocBld' : moc_build})
rcc_build = Builder(action = CXL_env['CXL_rcc_tool'] + ' ${SOURCES[0]} -name $TARGET.filebase -o $TARGET',
prefix='rcc_', suffix='.cpp', src_suffix='.qrc')
CXL_env.Append(BUILDERS = {'RccBld' : rcc_build})
#--KB: LPGPU2
#
# The documentation is generated from Doxygen
# We do not have an effective way to use the Doxygen builder tool, so
# we will sort of spoof it, and always run it
doxy_build = Builder(action = CXL_env['CXL_doxy_tool'] + ' ${SOURCES[0]}')
CXL_env.Append(BUILDERS = {'DoxyBld' : doxy_build})
##############################################################
# Print out all environment variables of CXL_env if verbose is specified
if CXL_env['CXL_build_verbose'] != 0 :
print CXL_env.Dump()
#++TLRS: LPGPU2: Exports the variable LPGPU2_BUILD_CCVG to build Environment
##############################################################
if (CXL_env['LPGPU2_BUILD_CCVG'] == 'true'):
CXL_env.Append(CPPDEFINES=['LPGPU2_CCVG_COMPILE_IN'])
#--TLRS: LPGPU2: Exports the variable LPGPU2_BUILD_CCVG to build Environment
#++AT:LPGPU2
if (CXL_env['LPGPU2_BUILD_ANDROID_PROTOCOL'] == 'false'):
CXL_env.Append(CPPDEFINES=['LPGPU2_ANDROID_REMOTE_PROTOCOL_COMPILE_OUT'])
#--AT:LPGPU2
##############################################################
# Export the CXL_env to all SConscripts
Export( 'CXL_env ')
##############################################################
# NOTE [Richard Gorton] :
# Specifically express _dynamic_ dependencies here. It is possible to have
# the individual components do this, but the relevant context would need to be
# exported globally, and then consumed. That is, we would need to export the
# BaseTools_Obj, via a global name, and then the downstream SCons files would
# need to import it and write the dependency rules.
# There is no need to write dependency rules for items which solely use the
# promotion model.
# No dynamic dependencies at all
############################################
#
# Framework Section
#
FrameworkComponents = []
BaseTools_Obj = SConscript('../Common/Src/AMDTBaseTools/SConscript', variant_dir=obj_variant_dir+'/AMDTBaseTools', duplicate=0)
FrameworkComponents += BaseTools_Obj
#++KB: LPGPU2
# Only build the assertion handlers component if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
Assertion_Obj = SConscript('../Common/Src/AMDTAssertionHandlers/SConscript', variant_dir=obj_variant_dir+'/AMDTAssertionHandlers', duplicate=0)
FrameworkComponents += Assertion_Obj
#--KB: LPGPU2
OSWrappers_Obj = SConscript('../Common/Src/AMDTOSWrappers/SConscript', variant_dir=obj_variant_dir+'/AMDTOSWrappers', duplicate=0)
CXL_env.Depends(OSWrappers_Obj, BaseTools_Obj)
FrameworkComponents += OSWrappers_Obj
OSAPIWrappers_Obj = SConscript('../Common/Src/AMDTOSAPIWrappers/SConscript', variant_dir=obj_variant_dir+'/AMDTOSAPIWrappers', duplicate=0)
CXL_env.Depends(OSAPIWrappers_Obj, BaseTools_Obj + OSWrappers_Obj)
FrameworkComponents += OSAPIWrappers_Obj
APIClasses_Obj = SConscript('../Common/Src/AMDTAPIClasses/SConscript', variant_dir=obj_variant_dir+'/AMDTAPIClasses', duplicate=0)
CXL_env.Depends(APIClasses_Obj, OSWrappers_Obj + OSAPIWrappers_Obj + BaseTools_Obj)
FrameworkComponents += APIClasses_Obj
#++ TLRS: LPGPU2: Adding LPGPU2InputOutput project
LPGPU2InputOutput_Obj = SConscript('../Common/Src/LPGPU2InputOutput/SConscript', variant_dir=obj_variant_dir+'/LPGPU2InputOutput', duplicate=0)
CXL_env.Depends(LPGPU2InputOutput_Obj, OSWrappers_Obj + BaseTools_Obj)
FrameworkComponents += LPGPU2InputOutput_Obj
#--TLRS: LPGPU2: Adding LPGPU2InputOutput project
#++KB: LPGPU2
# Only build these components if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
AppComponents_Obj = SConscript('../Common/Src/AMDTApplicationComponents/SConscript', variant_dir=obj_variant_dir+'/AMDTApplicationComponents', duplicate=0)
CXL_env.Depends(AppComponents_Obj, APIClasses_Obj + OSWrappers_Obj + OSAPIWrappers_Obj + BaseTools_Obj)
FrameworkComponents += AppComponents_Obj
AMDTRemoteClient_Obj = SConscript('Remote/AMDTRemoteClient/SConscript', variant_dir=obj_variant_dir+'/AMDTRemoteClient', duplicate=0)
CXL_env.Depends(AMDTRemoteClient_Obj, OSWrappers_Obj + BaseTools_Obj)
FrameworkComponents += AMDTRemoteClient_Obj
AppFramework_Obj = SConscript('AMDTApplicationFramework/SConscript', variant_dir=obj_variant_dir+'/AMDTApplicationFramework', duplicate=0)
CXL_env.Depends(AppFramework_Obj, APIClasses_Obj + OSWrappers_Obj + OSAPIWrappers_Obj + BaseTools_Obj + AMDTRemoteClient_Obj)
FrameworkComponents += AppFramework_Obj
# This depends upon everything built to date
Application_Obj = SConscript('../Common/Src/AMDTApplication/SConscript', variant_dir=obj_variant_dir+'/AMDTApplication', duplicate=0)
CXL_env.Depends(Application_Obj, FrameworkComponents)
FrameworkComponents += Application_Obj
# This depends upon everything built to date
Application_Obj = SConscript('App/SConscript', variant_dir=obj_variant_dir+'/AMDCodeXL', duplicate=0)
CXL_env.Depends(Application_Obj, FrameworkComponents)
FrameworkComponents += Application_Obj
SharedProf_Obj = SConscript('Components/AMDTSharedProfiling/SConscript', variant_dir=obj_variant_dir+'/AMDTSharedProfiling', duplicate=0)
CXL_env.Depends(SharedProf_Obj, FrameworkComponents)
FrameworkComponents += SharedProf_Obj
CXL_env.Depends(FrameworkComponents,
CXL_env['CXL_Images_install'] +
CXL_env['CXL_Legal_install']
)
##--KB:LPGPU2
AMDTRemoteAgent_Obj = SConscript('Remote/AMDTRemoteAgent/SConscript', variant_dir=obj_variant_dir+'/AMDTRemoteAgent', duplicate=0)
CXL_env.Depends(AMDTRemoteAgent_Obj, OSWrappers_Obj + BaseTools_Obj)
CXL_env.Depends(OSWrappers_Obj, BaseTools_Obj)
FrameworkComponents += AMDTRemoteAgent_Obj
#############################################
# Profiler Common Section
#############################################
ProfilerCommonPlugins = []
AMDTProfilerDAL_Obj = SConscript('Components/DatabaseLayer/AMDTProfilerDAL/SConscript', variant_dir=obj_variant_dir+'/AMDTProfilerDAL', duplicate=1)
CXL_env.Depends( AMDTProfilerDAL_Obj,
OSWrappers_Obj +
BaseTools_Obj)
ProfilerCommonPlugins += AMDTProfilerDAL_Obj
AMDTDbAdapter_Obj = SConscript('Components/DatabaseLayer/AMDTDbAdapter/SConscript', variant_dir=obj_variant_dir+'/AMDTDbAdapter', duplicate=1)
CXL_env.Depends( AMDTDbAdapter_Obj,
OSWrappers_Obj +
BaseTools_Obj +
AMDTProfilerDAL_Obj)
ProfilerCommonPlugins += AMDTDbAdapter_Obj
#++KB: LPGPU2
LPGPU2Database_Obj = SConscript('Components/DatabaseLayer/LPGPU2Database/LPGPU2Database/SConscript', variant_dir=obj_variant_dir+'/LPGPU2Database', duplicate=1)
LPGPU2FeedbackEngine_Obj = SConscript('Components/DatabaseLayer/LPGPU2Database/LPGPU2FeedbackEngine/SConscript', variant_dir=obj_variant_dir+'/LPGPU2FeedbackEngine', duplicate=1)
ProfilerCommonPlugins += LPGPU2Database_Obj
ProfilerCommonPlugins += LPGPU2FeedbackEngine_Obj
SQLite_Obj = SConscript('../Common/Src/sqlite/SConscript', variant_dir=obj_variant_dir+'/sqlite3', duplicate=1)
Lua_Obj = SConscript('../Common/Src/lua/SConscript', variant_dir=obj_variant_dir+'/lua', duplicate=1)
pcre_Obj = SConscript('../Common/Src/pcre/SConscript', variant_dir=obj_variant_dir+'/pcre', duplicate=1)
lpcre_Obj = SConscript('../Common/Src/lrexlib/SConscript', variant_dir=obj_variant_dir+'/lrexlib', duplicate=1)
LPGPU2DatabaseCLI_Obj = SConscript('Components/DatabaseLayer/LPGPU2Database/LPGPU2DatabaseCLI/SConscript', variant_dir=obj_variant_dir+'/LPGPU2DatabaseCLI', duplicate=1)
LPGPU2FeedbackEngineCLI_Obj = SConscript('Components/DatabaseLayer/LPGPU2Database/LPGPU2FeedbackEngineCLI/SConscript', variant_dir=obj_variant_dir+'/LPGPU2FeedbackEngineCLI', duplicate=1)
ProfilerCommonPlugins += LPGPU2DatabaseCLI_Obj
ProfilerCommonPlugins += LPGPU2FeedbackEngineCLI_Obj
CXL_env.Depends(lpcre_Obj, Lua_Obj + pcre_Obj)
CXL_env.Depends(LPGPU2Database_Obj, LPGPU2InputOutput_Obj + SQLite_Obj)
CXL_env.Depends(LPGPU2FeedbackEngine_Obj, LPGPU2Database_Obj + Lua_Obj + pcre_Obj + lpcre_Obj)
#--KB: LPGPU2
# LPGPU2 Power Model
# Only build the Power Model project if it isn't a remote-agent-only-build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
LPGPU2PowerModelsBase_Obj = SConscript('Components/PowerProfiling/LPGPU2PowerModeling/LPGPU2PowerModelsBase/SConscript', variant_dir=obj_variant_dir+'/LPGPU2PowerModelsBase', duplicate=1)
ProfilerCommonPlugins += LPGPU2PowerModelsBase_Obj
LPGPU2PowerModelsCli_Obj = SConscript('Components/PowerProfiling/LPGPU2PowerModeling/LPGPU2PowerModelsCLI/SConscript', variant_dir=obj_variant_dir+'/LPGPU2PowerModelsCLI', duplicate=1)
ProfilerCommonPlugins += LPGPU2PowerModelsCli_Obj
# LPGPU2 Power Model
############################################
#
# CPUProfiling Plugin Section
#
#++KB: LPGPU2
# Only build the GPUDebugging plugin if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
GpuDebuggingPlugins = []
GpuD_ProcessDbg_Obj = SConscript('Components/GpuDebugging/AMDTProcessDebugger/SConscript', variant_dir=obj_variant_dir+'/AMDTProcessDebugger', duplicate=1)
CXL_env.Depends(GpuD_ProcessDbg_Obj, APIClasses_Obj + OSWrappers_Obj + BaseTools_Obj)
GpuDebuggingPlugins += GpuD_ProcessDbg_Obj
GpuD_RmtDbgSrv_Obj = SConscript('Components/GpuDebugging/AMDTRemoteDebuggingServer/SConscript', variant_dir=obj_variant_dir+'/AMDTRemoteDebuggingServer', duplicate=1)
CXL_env.Depends(GpuD_RmtDbgSrv_Obj, GpuD_ProcessDbg_Obj + APIClasses_Obj + OSWrappers_Obj + BaseTools_Obj)
GpuDebuggingPlugins += GpuD_RmtDbgSrv_Obj
GpuD_ApiFunctions_Obj = SConscript('Components/GpuDebugging/AMDTApiFunctions/SConscript', variant_dir=obj_variant_dir+'/AMDTApiFunctions', duplicate=1)
CXL_env.Depends(GpuD_ApiFunctions_Obj, GpuD_ProcessDbg_Obj + APIClasses_Obj + OSWrappers_Obj + BaseTools_Obj)
GpuDebuggingPlugins += GpuD_ApiFunctions_Obj
GpuD_ServerUtils_Obj = SConscript('Components/GpuDebugging/AMDTServerUtilities/SConscript', variant_dir=obj_variant_dir+'/AMDTServerUtilities', duplicate=1)
CXL_env.Depends(GpuD_ServerUtils_Obj, APIClasses_Obj + OSWrappers_Obj + BaseTools_Obj)
GpuDebuggingPlugins += GpuD_ServerUtils_Obj
GDbg_Server_Core = GpuD_ServerUtils_Obj + APIClasses_Obj + OSWrappers_Obj + BaseTools_Obj
GpuD_OCL_Obj = SConscript('Components/GpuDebugging/AMDTOpenCLServer/SConscript', variant_dir=obj_variant_dir+'/AMDTOpenCLServer', duplicate=1)
CXL_env.Depends(GpuD_OCL_Obj, GDbg_Server_Core)
GpuDebuggingPlugins += GpuD_OCL_Obj
# The original library is build as libOpenCLTemp.so. from there it is copied to libOpenCL.so.1 (which can not be created)
# a link from libOpenCL.so to libOpenCL.so.1 is then created.
# Those two files are needed since some applications are linked to libOpenCL.so and some to libOpenCL.so.1
# In Linux the real file is usually the most "detailed" file -> yyy.so.1 and not the yyy.so hence the steps
CXL_env.AddPostAction (GpuD_OCL_Obj, "( cd " + CXL_env['CXL_spies_dir'] + " && mv libOpenCLTemp.so libOpenCL.so.1 && ln -s -f libOpenCL.so.1 libOpenCL.so )")
GpuD_OpenGL_Obj = SConscript('Components/GpuDebugging/AMDTOpenGLServer/SConscript', variant_dir=obj_variant_dir+'/AMDTOpenGLServer', duplicate=1)
CXL_env.Depends(GpuD_OpenGL_Obj, GDbg_Server_Core)
GpuDebuggingPlugins += GpuD_OpenGL_Obj
# The original library is build as libGLTemp.so. from there it is copied to libGL.so.1 (which can not be created)
# a link from libGL.so to libGL.so.1 is then created. Same logic applies here as in the CL spy
CXL_env.AddPostAction (GpuD_OpenGL_Obj, "( cd " + CXL_env['CXL_spies_dir'] + " && mv libGLTemp.so libGL.so.1 && ln -s -f libGL.so.1 libGL.so )")
allow_hsa = CXL_env['CXL_hsa']
if (allow_hsa == 'true'):
GpuD_HSASrv_Obj = SConscript('Components/GpuDebugging/AMDTHsaServer/SConscript', variant_dir=obj_variant_dir+'/AMDTHsaServer', duplicate=1)
CXL_env.Depends(GpuD_HSASrv_Obj, GDbg_Server_Core)
GpuDebuggingPlugins += GpuD_HSASrv_Obj
GpuD_Components_Obj = SConscript('Components/GpuDebugging/AMDTGpuDebuggingComponents/SConscript', variant_dir=obj_variant_dir+'/AMDTGpuDebuggingComponents', duplicate=1)
CXL_env.Depends(GpuD_Components_Obj,
GpuD_ApiFunctions_Obj
+ GpuD_ProcessDbg_Obj
+ AppComponents_Obj
+ APIClasses_Obj
+ OSWrappers_Obj
+ BaseTools_Obj)
GpuDebuggingPlugins += GpuD_Components_Obj
GpuDebugging_Obj = SConscript('Components/GpuDebugging/AMDTGpuDebugging/SConscript', variant_dir=obj_variant_dir+'/AMDTGpuDebugging', duplicate=1)
# All framework excepting Application and SharedProfiling
CXL_env.Depends(GpuDebugging_Obj,
# Gpu Debug items
GpuD_Components_Obj
+ GpuD_ApiFunctions_Obj
+ GpuD_ProcessDbg_Obj
# Framework items
+ AppFramework_Obj
+ AppComponents_Obj
+ APIClasses_Obj
+ Assertion_Obj
+ OSWrappers_Obj
+ BaseTools_Obj)
GpuDebuggingPlugins += GpuDebugging_Obj
# Make GpuDebuggingPlugins depending on Framework
CXL_env.Depends(GpuDebuggingPlugins , FrameworkComponents)
#--KB: LPGPU2
#############################################
##
## CPUProfiling Plugin Section
##
#++KB: LPGPU2
# Only build the CPUProfiling plugin if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
CpuProfilingPlugins = []
libDisassembler_Obj = SConscript('../Common/Src/AMDTDisassembler/SConscript', variant_dir=obj_variant_dir+'/AMDTDisassembler', duplicate=0)
CpuProfilingPlugins += libDisassembler_Obj
libExecutableFormat_Obj = SConscript('../Common/Src/AMDTExecutableFormat/SConscript', variant_dir=obj_variant_dir+'/AMDTExecutableFormat', duplicate=0)
CXL_env.Depends( libExecutableFormat_Obj,
OSWrappers_Obj +
BaseTools_Obj)
CpuProfilingPlugins += libExecutableFormat_Obj
libCpuCallstackSampling_Obj = SConscript('Components/CpuProfiling/AMDTCpuCallstackSampling/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuCallstackSampling', duplicate=0)
CXL_env.Depends( libCpuCallstackSampling_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libExecutableFormat_Obj +
libDisassembler_Obj)
CpuProfilingPlugins += libCpuCallstackSampling_Obj
libCpuPerfEventUtils_Obj = SConscript('Components/CpuProfiling/AMDTCpuPerfEventUtils/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuPerfEventUtils', duplicate=0)
CXL_env.Depends( libCpuPerfEventUtils_Obj,
OSWrappers_Obj +
BaseTools_Obj)
CpuProfilingPlugins += libCpuPerfEventUtils_Obj
libProfilingAgentsData_Obj = SConscript('Components/CpuProfiling/ProfilingAgents/AMDTProfilingAgentsData/SConscript', variant_dir=obj_variant_dir+'/AMDTProfilingAgentsData', duplicate=1)
CXL_env.Depends( libProfilingAgentsData_Obj,
OSWrappers_Obj +
BaseTools_Obj)
CpuProfilingPlugins += libProfilingAgentsData_Obj
if (CXL_env['CXL_use_java'] != ''):
libJvmtiProfileAgent_Obj = SConscript('Components/CpuProfiling/ProfilingAgents/AMDTJvmtiAgent/SConscript', variant_dir=obj_variant_dir+'/AMDTJvmtiAgent', duplicate=0)
CpuProfilingPlugins += libJvmtiProfileAgent_Obj
libCpuProfilingDataAccess_Obj = SConscript('Components/CpuProfiling/Backend/AMDTCpuProfilingRawData/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfilingRawData', duplicate=1)
CXL_env.Depends( libCpuProfilingDataAccess_Obj,
OSWrappers_Obj +
BaseTools_Obj)
CpuProfilingPlugins += libCpuProfilingDataAccess_Obj
libCpuProfilingTranslation_Obj = SConscript('Components/CpuProfiling/Backend/AMDTCpuProfilingTranslation/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfilingTranslation', duplicate=1)
CXL_env.Depends( libCpuProfilingTranslation_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libExecutableFormat_Obj +
libCpuCallstackSampling_Obj +
libCpuPerfEventUtils_Obj +
libCpuProfilingDataAccess_Obj)
CpuProfilingPlugins += libCpuProfilingTranslation_Obj
libCpuProfilingControl_Obj = SConscript('Components/CpuProfiling/Backend/AMDTCpuProfilingControl/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfilingControl', duplicate=1)
CXL_env.Depends( libCpuProfilingControl_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libExecutableFormat_Obj +
libCpuCallstackSampling_Obj +
libCpuPerfEventUtils_Obj +
libCpuProfilingDataAccess_Obj +
libCpuProfilingTranslation_Obj)
CpuProfilingPlugins += libCpuProfilingControl_Obj
ThreadProfilingPlugins = []
libThreadProfileAPI_Obj = SConscript('Components/ThreadProfiling/Backend/AMDTThreadProfileAPI/SConscript', variant_dir=obj_variant_dir+'/AMDTThreadProfileAPI', duplicate=1)
CXL_env.Depends( libThreadProfileAPI_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libCpuProfilingControl_Obj)
ThreadProfilingPlugins += libThreadProfileAPI_Obj
AMDTProfilingDataAccess_Obj = SConscript('Components/CpuProfiling/Backend/AMDTCpuProfilingDataAccess/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfilingDataAccess', duplicate=1)
CXL_env.Depends( AMDTProfilingDataAccess_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libDisassembler_Obj +
libExecutableFormat_Obj +
libCpuCallstackSampling_Obj +
libCpuPerfEventUtils_Obj +
libCpuProfilingDataAccess_Obj +
libCpuProfilingTranslation_Obj +
libProfilingAgentsData_Obj +
AMDTDbAdapter_Obj)
CpuProfilingPlugins += AMDTProfilingDataAccess_Obj
AMDTCpuProfilingCLI_Obj = SConscript('Components/CpuProfiling/Backend/AMDTCpuProfilingCLI/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfilingCLI', duplicate=1)
CXL_env.Depends( AMDTCpuProfilingCLI_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libDisassembler_Obj +
libExecutableFormat_Obj +
libCpuCallstackSampling_Obj +
libCpuPerfEventUtils_Obj +
libCpuProfilingDataAccess_Obj +
libCpuProfilingTranslation_Obj +
AMDTProfilingDataAccess_Obj +
libThreadProfileAPI_Obj)
CpuProfilingPlugins += AMDTCpuProfilingCLI_Obj
if (CXL_env['CXL_use_java'] != ''):
OverallCpuProf_Obj = SConscript('Components/CpuProfiling/AMDTCpuProfiling/SConscript', variant_dir=obj_variant_dir+'/AMDTCpuProfiling', duplicate=1)
CXL_env.Depends(OverallCpuProf_Obj,
CXL_env['CXL_CpuEventsData_install']
+ libCpuCallstackSampling_Obj
+ libCpuPerfEventUtils_Obj
+ libCpuProfilingDataAccess_Obj
+ libCpuProfilingTranslation_Obj
+ libCpuProfilingControl_Obj
+ libExecutableFormat_Obj
+ libDisassembler_Obj
+ AppFramework_Obj
+ SharedProf_Obj
+ AppComponents_Obj
+ APIClasses_Obj
+ OSWrappers_Obj
+ BaseTools_Obj)
CpuProfilingPlugins += OverallCpuProf_Obj
# Make CpuProfilingPlugins depending on Framework
CXL_env.Depends(CpuProfilingPlugins , FrameworkComponents)
#--KB: LPGPU2
##############################################
## Power Profling Section
##############################################
#++KB: LPGPU2
# Only build these components if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
PowerProfilingPlugins = []
libAMDTPowerProfilingDrivers_Obj = SConscript('Components/PowerProfiling/Backend/AMDTPowerProfilingDrivers/Linux/SConscript')
PowerProfilingPlugins += libAMDTPowerProfilingDrivers_Obj
#++AT:LPGPU2
libPowerProfileAPI_Obj = SConscript('Components/PowerProfiling/Backend/AMDTPowerProfileAPI/SConscript', variant_dir=obj_variant_dir+'/AMDTPowerProfileAPI', duplicate=1)
CXL_env.Depends( libPowerProfileAPI_Obj,
OSWrappers_Obj +
BaseTools_Obj)
#--AT:LPGPU2
#--KB: LPGPU2
#++KB: LPGPU2
# Only build these components if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
PowerProfilingPlugins += libPowerProfileAPI_Obj
AMDTPowerProfileCLI_Obj = SConscript('Components/PowerProfiling/Backend/AMDTPowerProfileCLI/SConscript', variant_dir=obj_variant_dir+'/AMDTPowerProfileCLI', duplicate=1)
CXL_env.Depends( AMDTPowerProfileCLI_Obj,
OSWrappers_Obj +
BaseTools_Obj +
libPowerProfileAPI_Obj)
PowerProfilingPlugins += AMDTPowerProfileCLI_Obj
AMDTPowerProfileMidTier_Obj = SConscript('Components/PowerProfiling/MiddleTier/AMDTPowerProfilingMidTier/SConscript', variant_dir=obj_variant_dir+'/AMDTPowerProfilingMidTier', duplicate=1)
CXL_env.Depends( AMDTPowerProfileMidTier_Obj,
OSWrappers_Obj +
BaseTools_Obj +
AMDTProfilerDAL_Obj +
AMDTRemoteClient_Obj)
PowerProfilingPlugins += AMDTPowerProfileMidTier_Obj
AMDTPowerProfiling_Obj = SConscript('Components/PowerProfiling/AMDTPowerProfiling/SConscript', variant_dir=obj_variant_dir+'/AMDTPowerProfiling', duplicate=0)
CXL_env.Depends(AMDTPowerProfiling_Obj,
OSWrappers_Obj +
BaseTools_Obj +
AMDTPowerProfileMidTier_Obj)
PowerProfilingPlugins += AMDTPowerProfiling_Obj
#--KB: LPGPU2
##############################################
## Profiler Common Section
##############################################
#++KB: LPGPU2
# Only build profiler common if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
# ProfilerCommonPlugins = []
##++AT:LPGPU2
pwrModelsXML = SConscript('Components/PowerProfiling/LPGPU2PowerModels/SConscript')
PowerProfilingPlugins += pwrModelsXML
##--AT:LPGPU2
libAMDTPowerProfilingDrivers_Obj = SConscript('Components/PowerProfiling/Backend/AMDTPowerProfilingDrivers/Linux/SConscript')
PowerProfilingPlugins += libAMDTPowerProfilingDrivers_Obj
AMDTProfilerDAL_Obj = SConscript('Components/DatabaseLayer/AMDTProfilerDAL/SConscript', variant_dir=obj_variant_dir+'/AMDTProfilerDAL', duplicate=1)
CXL_env.Depends( AMDTProfilerDAL_Obj,
OSWrappers_Obj +
BaseTools_Obj)
ProfilerCommonPlugins += AMDTProfilerDAL_Obj
#++TLRS: LPGPU2: Changing duplicate to 1 since we are now copying files when building AMDTPowerProfiling
AMDTPowerProfiling_Obj = SConscript('Components/PowerProfiling/AMDTPowerProfiling/SConscript', variant_dir=obj_variant_dir+'/AMDTPowerProfiling', duplicate=1)
#--TLRS: LPGPU2: Changing duplicate to 1 since we are now copying files when building AMDTPowerProfiling
CXL_env.Depends(AMDTPowerProfiling_Obj,
OSWrappers_Obj +
BaseTools_Obj +
AMDTPowerProfileMidTier_Obj)
ProfilerCommonPlugins += AMDTDbAdapter_Obj
#--KB: LPGPU2
#############################################
##
## GPUProfiling Plugin Section
##
#++KB: LPGPU2
# Only build the GPUProfiling plugin if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
GpuProfilingPlugins = []
GpuProfGraphics_Obj = SConscript('Components/Graphics/AMDTGraphicsServerInterface/SConscript', variant_dir=obj_variant_dir+'/AMDTGraphicsServerInterface', duplicate=1)
CXL_env.Depends( GpuProfGraphics_Obj,
OSWrappers_Obj +
BaseTools_Obj)
GpuProfilingPlugins += GpuProfGraphics_Obj
GpuProf_Obj = SConscript('Components/GpuProfiling/AMDTGpuProfiling/SConscript', variant_dir=obj_variant_dir+'/AMDTGpuProfiling', duplicate=1)
CXL_env.Depends(GpuProf_Obj,
SharedProf_Obj
+ GpuProfGraphics_Obj
+ AppFramework_Obj
+ AppComponents_Obj
+ APIClasses_Obj
+ OSWrappers_Obj
+ BaseTools_Obj
)
GpuProfilingPlugins += GpuProf_Obj
# Make GpuProfilingPlugins depending on Framework
CXL_env.Depends(GpuProfilingPlugins , FrameworkComponents)
#--KB: LPGPU2
#############################################
##
## Kernel Analyzer Section
##
#++KB: LPGPU2
# Only build the kernel analyzer if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
KernelAnalyzer = []
KernelAnalyzerBackend_Obj = SConscript('Components/ShaderAnalyzer/AMDTBackEnd/SConscript', variant_dir=obj_variant_dir+'/AMDTBackEnd', duplicate=0)
CXL_env.Depends(KernelAnalyzerBackend_Obj,
OSWrappers_Obj
+ BaseTools_Obj)
KernelAnalyzer += KernelAnalyzerBackend_Obj
KernelAnalyzerFrontEnd_Obj = SConscript('Components/ShaderAnalyzer/AMDTKernelAnalyzer/SConscript', variant_dir=obj_variant_dir+'/AMDTKernelAnalyzer', duplicate=1)
CXL_env.Depends(KernelAnalyzerFrontEnd_Obj,
BaseTools_Obj
+ OSWrappers_Obj
+ APIClasses_Obj
+ AppFramework_Obj
+ KernelAnalyzerBackend_Obj)
KernelAnalyzer += KernelAnalyzerFrontEnd_Obj
KernelAnalyzerCLI_Obj = SConscript('Components/ShaderAnalyzer/AMDTKernelAnalyzerCLI/SConscript', variant_dir=obj_variant_dir+'/AMDTKernelAnalyzerCLI', duplicate=1)
CXL_env.Depends(KernelAnalyzerCLI_Obj,
KernelAnalyzerBackend_Obj)
KernelAnalyzer += KernelAnalyzerCLI_Obj
#++ TLRS: LPGPU2: Building the Code Coverage Plugin
############################################
#
# LPGPU2: Code Coverage Section
#
LPGPU2_CCVG = []
LPGPU2_CCVG_Obj = SConscript('Components/LPGPU2_CCVG/CCVGCodeCoveragePlugin/SConscript', variant_dir=obj_variant_dir+'/LPGPU2_CCVG', duplicate=1)
CXL_env.Depends(LPGPU2_CCVG_Obj,
BaseTools_Obj
+ OSWrappers_Obj
+ APIClasses_Obj
+ AppFramework_Obj)
LPGPU2_CCVG += LPGPU2_CCVG_Obj
#-- TLRS: LPGPU2: Building the Code Coverage Plugin
#--KB: LPGPU2
#############################################
#############################################
##
## AMDTTeaPot Section
##
#++KB: LPGPU2
# Only build the AMDTTeaPot sample if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
AMDTTeaPot = []
AMDTTeaPotLib_Obj = SConscript('Examples/AMDTTeaPot/AMDTTeaPotLib/SConscript', variant_dir=obj_variant_dir+'/AMDTTeaPotLib', duplicate=0)
AMDTTeaPot += AMDTTeaPotLib_Obj
AMDTTeaPot_Obj = SConscript('Examples/AMDTTeaPot/AMDTTeaPot/SConscript', variant_dir=obj_variant_dir+'/AMDTTeaPot', duplicate=0)
CXL_env.Depends(AMDTTeaPot_Obj, AMDTTeaPotLib_Obj)
AMDTTeaPot += AMDTTeaPot_Obj
# copy the teapot libraries to the correct place
SConscript('Examples/AMDTTeaPot/AMDTTeaPot/Copy_SConscript', variant_dir=obj_variant_dir+'/AMDTTeaPot', duplicate=0)
#CXL_env.AddPostAction (AMDTTeaPot_Obj, SConscript('Examples/AMDTTeaPot/AMDTTeaPot/Copy_SConscript') )
#--KB: LPGPU2
#############################################
##
## AMDTSystemInformationHelper Section
##
#++KB: LPGPU2
# Only build the system information helper if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
AMDTSystemInformationHelper = []
AMDTSystemInformationHelper_Obj = SConscript('Utils/AMDTSystemInformationHelper/SConscript', variant_dir=obj_variant_dir+'/AMDTSystemInformationHelper', duplicate=0)
CXL_env.Depends(AMDTSystemInformationHelper_Obj, APIClasses_Obj + OSWrappers_Obj)
AMDTSystemInformationHelper += AMDTSystemInformationHelper_Obj
#--KB: LPGPU2
#############################################
##
## AMDTClassicMatMul Section
##
#++KB: LPGPU2
# Only build the AMDTClassicMatMul sample if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
AMDTClassicMatMul = []
AMDTClassicMatMul_Obj = SConscript('Examples/AMDTClassicMatMul/SConscript', variant_dir=obj_variant_dir+'/AMDTClassicMatMul', duplicate=0)
AMDTClassicMatMul += AMDTClassicMatMul_Obj
############################################
#
# AMDTSystemInformationHelper Section
#
#++TLRS: LPGPU2 Adding LPGPU2SyclInfo
LPGPU2SyclInfo_Obj = SConscript('../Common/Src/LPGPU2SyclInfo/SConscript', variant_dir=obj_variant_dir+'/LPGPU2SyclInfo', duplicate=0)
#--TLRS: LPGPU2 Adding LPGPU2SyclInfo
AMDTSystemInformationHelper = []
AMDTSystemInformationHelper_Obj = SConscript('Utils/AMDTSystemInformationHelper/SConscript', variant_dir=obj_variant_dir+'/AMDTSystemInformationHelper', duplicate=0)
CXL_env.Depends(AMDTSystemInformationHelper_Obj, APIClasses_Obj + OSWrappers_Obj + LPGPU2SyclInfo_Obj)
AMDTSystemInformationHelper += AMDTSystemInformationHelper_Obj + LPGPU2SyclInfo_Obj
#--KB: LPGPU2
#############################################
##
## Graphics Server Backend Section
##
#++KB: LPGPU2
# Only build the graphics server backend if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
GPSBackend = []
GPSAPICommon_Obj = SConscript(['Components/Graphics/Server/Common/SConscript'], variant_dir=obj_variant_dir+'/APICommon', duplicate=0)
Depends(GPSAPICommon_Obj, OSWrappers_Obj)
GPSBackend += GPSAPICommon_Obj
# build script for Server/VulkanServer
#GPS_env.rootFolder = os.getcwd()
VulkanServer = SConscript(['Components/Graphics/Server/VulkanServer/SConscript'], variant_dir=obj_variant_dir+'/VulkanServer', duplicate=0)
Depends(VulkanServer, GPSAPICommon_Obj + OSWrappers_Obj)
#targetName = GPS_env.targetRoot + "/Plugins/" + GPS_env.vulkanPluginName + GPS_env.projectSuffix + ".so"
#Command(targetName, fullPath + "/" + GPS_env.rootFolderName + "/Server/VulkanServer/libVulkanServer.so", Copy("$TARGET", "$SOURCE"))
GPSBackend += VulkanServer
# build script for Vulkan capture player
CapturePlayer = SConscript(['Components/Graphics/Server/CapturePlayer/SConscript'], variant_dir=obj_variant_dir +'/CapturePlayer', duplicate=0)
Depends(CapturePlayer, GPSAPICommon_Obj + OSWrappers_Obj)
#targetName = GPS_env.targetRoot + "/" + GPS_env.capturePlayerName + GPS_env.projectSuffix
#Command(targetName, fullPath + "/" + GPS_env.rootFolderName + "/CapturePlayer/CapturePlayer", Copy("$TARGET", "$SOURCE"))
GPSBackend +=CapturePlayer
# Build the graphics server
GPUPerfServer = SConscript(['Components/Graphics/Server/WebServer/SConscript'], variant_dir=obj_variant_dir + '/GPUPerfServer', duplicate=0)
Depends(GPUPerfServer, GPSAPICommon_Obj + OSWrappers_Obj)
#targetName = GPS_env.targetRoot + "/" + GPS_env.projectName + GPS_env.projectSuffix
#Command(targetName, fullPath + "/" + GPS_env.rootFolderName + "/Server/WebServer/GPUPerfServer", Copy("$TARGET", "$SOURCE"))
GPSBackend +=GPUPerfServer
# Build the Vulkan environment variable propagator shared library
VulkanEnv = SConscript(['Components/Graphics/Server/VulkanEnv/SConscript'], variant_dir=obj_variant_dir+'/VulkanEnv', duplicate=0)
Depends(VulkanEnv, GPSAPICommon_Obj + OSWrappers_Obj)
GPSBackend += VulkanEnv
#--KB: LPGPU2
#############################################
##
## WebHelp content
## The generation of the HTML files is performed by the WordToHelp tool in the Jenkins CodeXL-Doc job.
## Here we only copy the quick start guide. The extraction of the HTML files from thier tar is performed
## in the shell script \main\CodeXL\Util\linux\JenkinsCodeXLFullBuild
##
#++KB: LPGPU2
# Only copy HTML files if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
# Copy the quick start quide
os.system('mkdir ../Output_x86_64/release/bin/Help/')
os.system('cp -u ../CodeXL/Help/CodeXL_Quick_Start_Guide.pdf ../Output_x86_64/release/bin/Help/')
#--KB: LPGPU2
############################################
#++KB: LPGPU2
# Only define CodeXL_Full if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
CodeXL_Full = \
ProfilerCommonPlugins + \
GpuDebuggingPlugins + \
CpuProfilingPlugins + \
PowerProfilingPlugins + \
GpuProfilingPlugins + \
ThreadProfilingPlugins + \
AMDTSystemInformationHelper + \
AMDTTeaPot + \
AMDTClassicMatMul + \
KernelAnalyzer + \
GPSBackend + \
LPGPU2_CCVG
#--KB: LPGPU2
#++AT:LPGPU2
Default(CodeXL_Full)
else:
Default(FrameworkComponents)
#--AT:LPGPU2
#Feature group build
Alias( target='pcre', source=(pcre_Obj))
Alias( target='lua', source=(Lua_Obj))
Alias( target='rex_pcre', source=(lpcre_Obj))
Alias( target='Framework' , source=(FrameworkComponents))
#++KB: LPGPU2
# Only alias the following if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
Alias( target='CpuProfiling', source=(CpuProfilingPlugins))
Alias( target='GpuProfiling', source=(GpuProfilingPlugins))
Alias( target='GpuDebugging', source=(GpuDebuggingPlugins))
Alias( target='KernelAnalyzer', source=(KernelAnalyzer))
Alias( target='PowerProfiler', source=(PowerProfilingPlugins))
Alias( target='ThreadProfiler', source=(ThreadProfilingPlugins))
Alias( target='Teapot', source=(AMDTTeaPot))
Alias( target='ClassicMatMul', source=(AMDTClassicMatMul))
Alias( target='install' , source=(CodeXL_Full))
Alias( target='SysInfoHelper' , source=(AMDTSystemInformationHelper))
Alias( target='GPSBackend' ,source=(GPSBackend))
#--KB: LPGPU2
#Per project build support
#FrameworkComponents
Alias( target='AMDTBaseTools' , source=(BaseTools_Obj))
Alias( target='AMDTOSWrappers' , source=(OSWrappers_Obj))
Alias( target='AMDTOSAPIWrappers' , source=(OSAPIWrappers_Obj))
Alias( target='AMDTAPIClasses' , source=(APIClasses_Obj))
#++KB: LPGPU2
# Only alias the following if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
Alias( target='AMDTApplicationComponents' , source=(AppComponents_Obj))
Alias( target='AMDTRemoteClient' , source=(AMDTRemoteClient_Obj))
Alias( target='AMDTApplicationFramework' , source=(AppFramework_Obj))
Alias( target='AMDCodeXL' , source=(Application_Obj))
Alias( target='AMDTSharedProfiling' , source=(SharedProf_Obj))
#--KB: LPGPU2
Alias( target='AMDTRemoteAgent' , source=(AMDTRemoteAgent_Obj))
#++KB: LPGPU2
# Only alias the following if it isn't a remote-agent-only build
if (CXL_env['CXL_build_only_remote_agent'] == ''):
Alias( target='LPGPU2InputOutput', source=(LPGPU2InputOutput_Obj))
Alias( target='LPGPU2Database', source=(LPGPU2Database_Obj, LPGPU2DatabaseCLI_Obj, LPGPU2FeedbackEngineCLI_Obj))
#GPUDebugging
Alias( target='AMDTProcessDebugger' , source=(GpuD_ProcessDbg_Obj))
Alias( target='AMDTRemoteDebuggingServer' , source=(GpuD_RmtDbgSrv_Obj))
Alias( target='AMDTApiFunctions' , source=(GpuD_ApiFunctions_Obj))
Alias( target='AMDTServerUtilities' , source=(GpuD_ServerUtils_Obj))
Alias( target='AMDTOpenCLServer' , source=(GpuD_OCL_Obj))
Alias( target='AMDTOpenGLServer' , source=(GpuD_OpenGL_Obj))
Alias( target='AMDTGpuDebuggingComponents' , source=(GpuD_Components_Obj))
Alias( target='AMDTGpuDebugging' , source=(GpuDebugging_Obj))
#CPUProfiling
Alias( target='AMDTCpuProfilingRawData' , source=(libCpuProfilingDataAccess_Obj))
Alias( target='AMDTCpuProfilingTranslation' , source=(libCpuProfilingTranslation_Obj))
Alias( target='AMDTCpuProfilingControl' , source=(libCpuProfilingControl_Obj))
Alias( target='AMDTThreadProfileAPI' , source=(libThreadProfileAPI_Obj))
Alias( target='AMDTCpuProfilingCLI' , source=(AMDTCpuProfilingCLI_Obj))
#++TLRS: LPGPU2: Raise an error if JAVA_HOME is not defined
if (CXL_env['CXL_use_java'] != ''):
Alias( target='AMDTCpuProfiling' , source=(OverallCpuProf_Obj))
Alias( target='AMDTJvmtiAgent' , source=(libJvmtiProfileAgent_Obj))
else:
print('ERROR: JAVA_HOME is not defined therefore AMDTCpuProfiling cannot be built')
Exit(2)
#--TLRS: LPGPU2: Raise an error if JAVA_HOME is not defined
Alias( target='AMDTDisassembler' , source=(libDisassembler_Obj))
Alias( target='AMDTExecutableFormat' , source=(libExecutableFormat_Obj))
Alias( target='AMDTCpuCallstackSampling' , source=(libCpuCallstackSampling_Obj))
Alias( target='AMDTCpuPerfEventUtils' , source=(libCpuPerfEventUtils_Obj))
Alias( target='AMDTProfilingAgentsData' , source=(libProfilingAgentsData_Obj))
#ProfilerCommon
Alias( target='AMDTProfilerDAL' , source=(AMDTProfilerDAL_Obj))
#PowerProfiling
Alias( target='AMDTPowerProfilingDrivers' , source=(libAMDTPowerProfilingDrivers_Obj))
Alias( target='AMDTPowerProfileAPI' , source=(libPowerProfileAPI_Obj))
Alias( target='AMDTPowerProfileCLI' , source=(AMDTPowerProfileCLI_Obj))
Alias( target='AMDTPowerProfilingMidTier' , source=(AMDTPowerProfileMidTier_Obj))
Alias( target='AMDTPowerProfiling' , source=(AMDTPowerProfiling_Obj))
#GPUProfiling
Alias( target='AMDTGraphicsServerInterface' , source=(GpuProfGraphics_Obj))
Alias( target='AMDTGpuProfiling' , source=(GpuProf_Obj))
#KernelAnalyzer
Alias( target='AMDTBackEnd' , source=(KernelAnalyzerBackend_Obj))
Alias( target='AMDTKernelAnalyzer' , source=(KernelAnalyzerFrontEnd_Obj))
Alias( target='AMDTKernelAnalyzerCLI' , source=(KernelAnalyzerCLI_Obj))
#GPSBackend
Alias( target='APICommon' ,source=(GPSAPICommon_Obj))
Alias( target='VulkanServer' ,source=(VulkanServer))
Alias( target='CapturePlayer' ,source=(CapturePlayer))
Alias( target='GPUPerfServer' ,source=(GPUPerfServer))
Alias( target='VulkanEnv' , source=(VulkanEnv))
#++ TLRS: LPGPU2: Allow just the CCVG project to be built
# LPGPU2 Code Coverage
Alias( target='LPGPU2_CCVG', source=(LPGPU2_CCVG_Obj))
#-- TLRS: LPGPU2: Allow just the CCVG project to be built
#--KB:LPGPU2