Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
7a5f5bfd
Commit
7a5f5bfd
authored
8 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Conf: Added configuration options (for matlab/mex)
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
c58cf758
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
zUtil_Conf/conf.example.xml
+3
-0
3 additions, 0 deletions
zUtil_Conf/conf.example.xml
zUtil_Python/dct_compile_mex_functions.py
+8
-2
8 additions, 2 deletions
zUtil_Python/dct_compile_mex_functions.py
zUtil_Python/dct_io_xml.py
+4
-0
4 additions, 0 deletions
zUtil_Python/dct_io_xml.py
with
15 additions
and
2 deletions
zUtil_Conf/conf.example.xml
+
3
−
0
View file @
7a5f5bfd
...
@@ -103,6 +103,9 @@
...
@@ -103,6 +103,9 @@
<lib>
mysqlclient
</lib>
<lib>
mysqlclient
</lib>
<lib>
z
</lib>
<lib>
z
</lib>
</libraries>
</libraries>
<preprocessor>
<option>
-compatibleArrayDims
</option>
</preprocessor>
</file>
</file>
<file>
<file>
...
...
This diff is collapsed.
Click to expand it.
zUtil_Python/dct_compile_mex_functions.py
+
8
−
2
View file @
7a5f5bfd
...
@@ -141,7 +141,7 @@ class MexBuilder(object):
...
@@ -141,7 +141,7 @@ class MexBuilder(object):
self
.
out
.
printSubSubJob
(
'
File
'
,
file_name
+
'
(
'
+
self
.
c_files
[
file_name
]
+
'
)
'
)
self
.
out
.
printSubSubJob
(
'
File
'
,
file_name
+
'
(
'
+
self
.
c_files
[
file_name
]
+
'
)
'
)
print
(
''
)
print
(
''
)
def
_buildMakeCmd
(
self
,
cmd
,
includes
,
lib_paths
,
libs
,
defines
):
def
_buildMakeCmd
(
self
,
cmd
,
includes
,
lib_paths
,
libs
,
defines
,
options
):
if
self
.
out
.
verboseLevel
>
1
:
if
self
.
out
.
verboseLevel
>
1
:
cmd
.
append
(
'
-v
'
)
cmd
.
append
(
'
-v
'
)
if
self
.
debug
is
True
:
if
self
.
debug
is
True
:
...
@@ -155,6 +155,10 @@ class MexBuilder(object):
...
@@ -155,6 +155,10 @@ class MexBuilder(object):
cmd
.
append
(
"
-l
"
+
lib
)
cmd
.
append
(
"
-l
"
+
lib
)
for
define
in
defines
:
for
define
in
defines
:
cmd
.
append
(
"
-D
"
+
define
)
cmd
.
append
(
"
-D
"
+
define
)
for
option
in
options
:
cmd
.
append
(
option
)
if
"
-compatibleArrayDims
"
not
in
options
:
cmd
.
append
(
"
-largeArrayDims
"
)
# cmd.append("-largeArrayDims") # This unfortunately conflicts with mym.cpp
# cmd.append("-largeArrayDims") # This unfortunately conflicts with mym.cpp
self
.
out
.
printSubSubJob
(
'
File
'
,
cmd
[
1
]
+
'
(cmd:
'
+
string
.
join
(
cmd
,
'
'
)
+
'
)
'
)
self
.
out
.
printSubSubJob
(
'
File
'
,
cmd
[
1
]
+
'
(cmd:
'
+
string
.
join
(
cmd
,
'
'
)
+
'
)
'
)
return
subprocess
.
call
(
cmd
)
return
subprocess
.
call
(
cmd
)
...
@@ -172,6 +176,7 @@ class MexBuilder(object):
...
@@ -172,6 +176,7 @@ class MexBuilder(object):
lib_paths
=
[]
lib_paths
=
[]
libs
=
[]
libs
=
[]
defines
=
[]
defines
=
[]
options
=
[]
if
(
self
.
mex_info
is
not
None
)
\
if
(
self
.
mex_info
is
not
None
)
\
and
(
self
.
mex_info
.
isExcluded
(
file_path
)
is
False
):
and
(
self
.
mex_info
.
isExcluded
(
file_path
)
is
False
):
...
@@ -183,8 +188,9 @@ class MexBuilder(object):
...
@@ -183,8 +188,9 @@ class MexBuilder(object):
lib_paths
=
lib_paths
+
props
.
get
(
"
lib_paths
"
)
lib_paths
=
lib_paths
+
props
.
get
(
"
lib_paths
"
)
libs
=
libs
+
props
.
get
(
"
libs
"
)
libs
=
libs
+
props
.
get
(
"
libs
"
)
defines
=
defines
+
props
.
get
(
"
defines
"
)
defines
=
defines
+
props
.
get
(
"
defines
"
)
options
=
options
+
props
.
get
(
"
options
"
)
return
self
.
_buildMakeCmd
(
cmd
,
includes
,
lib_paths
,
libs
,
defines
)
return
self
.
_buildMakeCmd
(
cmd
,
includes
,
lib_paths
,
libs
,
defines
,
options
)
def
compileFuncs
(
self
):
def
compileFuncs
(
self
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
zUtil_Python/dct_io_xml.py
+
4
−
0
View file @
7a5f5bfd
...
@@ -189,6 +189,10 @@ class MexConf(object):
...
@@ -189,6 +189,10 @@ class MexConf(object):
for
lib
in
fileEntry
.
findall
(
"
preprocessor/define
"
):
for
lib
in
fileEntry
.
findall
(
"
preprocessor/define
"
):
output
[
"
defines
"
].
append
(
lib
.
text
)
output
[
"
defines
"
].
append
(
lib
.
text
)
output
[
"
options
"
]
=
[]
for
lib
in
fileEntry
.
findall
(
"
preprocessor/option
"
):
output
[
"
options
"
].
append
(
lib
.
text
)
return
output
return
output
else
:
else
:
return
None
return
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment