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
|
From a0af2e4f825e4036472fe8047cfb470528fe9a10 Mon Sep 17 00:00:00 2001
From: Michael <michael_powell@mentor.com>
Date: Wed, 26 Oct 2016 20:46:16 -0700
Subject: [PATCH] do not use local tinyxml
---
Common/Src/SCons/CXL_init.py | 29 +++++++++++++++++++++++------
CodeXL/Components/Graphics/Server/VulkanEnv/SConscript | 4 ++--
CodeXL/Components/Graphics/Server/VulkanServer/SConscript | 4 ++--
3 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/Common/Src/SCons/CXL_init.py b/Common/Src/SCons/CXL_init.py
index af3dfac..5cb1336 100755
--- a/Common/Src/SCons/CXL_init.py
+++ b/Common/Src/SCons/CXL_init.py
@@ -82,6 +82,18 @@ def initCXLVars (CXL_vars) :
default = 'true',
allowed_values = ('true', ''))
+ # CxL support for external tinyxml
+ CXL_vars.Add(
+ key = 'CXL_tinyxml_dir',
+ help = 'Specify tinyXML directory to use',
+ default = '',)
+
+ # CxL support for external tinyxml include
+ CXL_vars.Add(
+ key = 'CXL_tinyxml_inc_dir',
+ help = 'Specify tinyXML include directory to use',
+ default = '',)
+
# CxL support for system_boost
CXL_vars.Add(
key = 'CXL_boost_dir',
@@ -465,16 +477,21 @@ def initStdc(env):
copySharedLibrary(env, file, stdclib_lib, env['CXL_lib_dir'])
def initTinyXml (env) :
- dbgSuffix = ''
+ if (env['CXL_tinyxml_dir'] == ''):
+ tinyxml_dir = env['CXL_common_dir'] + '/Lib/Ext/tinyxml/2.6.2'
+ tinyxml_inc = tinyxml_dir
+ tinyxml_lib = tinyxml_dir + '/Build/CentOS64/' + env['CXL_build'] + '/' + env['CXL_arch']
+ tinyxml_libs = ['tinyXML']
+ else:
+ tinyxml_dir = env['CXL_tinyxml_dir']
+ tinyxml_lib = tinyxml_dir
+ tinyxml_inc = env['CXL_tinyxml_inc_dir']
+ tinyxml_libs = ['tinyxml']
- tinyxml_dir = env['CXL_common_dir'] + '/Lib/Ext/tinyxml/2.6.2'
- tinyxml_inc = tinyxml_dir
- tinyxml_lib = tinyxml_dir + '/Build/CentOS64/' + env['CXL_build'] + '/' + env['CXL_arch']
libsrc = []
- tinyxml_libs = ['tinyXML']
libsrc.append(tinyxml_libs)
env.Append(CXL_TinyXML_inc = [tinyxml_dir, tinyxml_inc])
env.Append(CXL_TinyXML_libs = tinyxml_libs)
env.Append(CXL_TinyXML_libpath = tinyxml_lib)
# We do not need to install anything - it is just a single archive
diff --git a/CodeXL/Components/Graphics/Server/VulkanEnv/SConscript b/CodeXL/Components/Graphics/Server/VulkanEnv/SConscript
index e07a583..2ba2d20 100644
--- a/CodeXL/Components/Graphics/Server/VulkanEnv/SConscript
+++ b/CodeXL/Components/Graphics/Server/VulkanEnv/SConscript
@@ -31,7 +31,7 @@ linker_flags = ' -Wl,-z,defs '
env.Prepend(LINKFLAGS = linker_flags)
# These need to be in their dependency order, with most derived first
-env['LIBS'] = \
+env.Append (LIBS = \
[
#local libraries
"libCXLGraphicsServerCommon",
@@ -41,7 +41,7 @@ env['LIBS'] = \
"dl",
"rt",
"pthread",
-]
+])
# Vulkan specific source files
sources = \
diff --git a/CodeXL/Components/Graphics/Server/VulkanServer/SConscript b/CodeXL/Components/Graphics/Server/VulkanServer/SConscript
index 28ca379..5b2266d 100644
--- a/CodeXL/Components/Graphics/Server/VulkanServer/SConscript
+++ b/CodeXL/Components/Graphics/Server/VulkanServer/SConscript
@@ -51,7 +51,7 @@ linker_flags = ' -Wl,-z,defs '
env.Prepend(LINKFLAGS = linker_flags)
# These need to be in their dependency order, with most derived first
-env['LIBS'] = \
+env.Append (LIBS = \
[
#local libraries
"libCXLGraphicsServerCommon",
@@ -65,7 +65,7 @@ env['LIBS'] = \
"dl",
"rt",
"pthread",
-]
+])
# Vulkan specific source files
sources = \
--
2.5.5
|