Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
c1b294a6
Commit
c1b294a6
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Fix ignoring faust_torch.cpp on setup.py for Windows. (when FAUST_TORCH is OFF).
parent
c10ecc46
No related branches found
No related tags found
No related merge requests found
Pipeline
#834174
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapper/python/CMakeLists.txt
+8
-1
8 additions, 1 deletion
wrapper/python/CMakeLists.txt
with
8 additions
and
1 deletion
wrapper/python/CMakeLists.txt
+
8
−
1
View file @
c1b294a6
...
...
@@ -18,10 +18,17 @@ if(${USE_MATIO_STATIC_LIBS})
set
(
PYTHON_EXT_EXTRA_OBJECTS
"[ '
${
MATIO_STATIC_LIB_PATH
}
', '
${
HDF5_STATIC_LIB_PATH
}
', '
${
Z_STATIC_LIB_PATH
}
']"
)
# the order matters for compilation
else
()
# WIN32 # intended for Visual Studio!
# compile the pyx and all faust .cpp needed (instead to link to faust.lib)
set
(
PY_EXT_SOURCES
"
${
PY_EXT_SOURCES
}
+glob('
${
FAUST_PYTHON_SRC_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_
LINEAR_OPERATOR_CPU_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_
SRC_LINEAR_OPERATOR_DIR
}
/*.cpp')+glob('
${
FAUST_ALGORITHM_CONSTRAINT_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_ALGORITHM_FACTORIZATION_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_UTILS_SRC_DIR
}
/*.cpp')"
)
set
(
PY_EXT_SOURCES
"
${
PY_EXT_SOURCES
}
+glob('
${
FAUST_PYTHON_SRC_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_SRC_LINEAR_OPERATOR_DIR
}
/*.cpp')+glob('
${
FAUST_ALGORITHM_CONSTRAINT_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_ALGORITHM_FACTORIZATION_SRC_DIR
}
/*.cpp')+glob('
${
FAUST_UTILS_SRC_DIR
}
/*.cpp')"
)
if
(
USE_GPU_MOD
)
set
(
PY_EXT_SOURCES
"
${
PY_EXT_SOURCES
}
+glob('
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/*.cpp')"
)
endif
()
if
(
FAUST_TORCH
)
set
(
PY_EXT_SOURCES
"
${
PY_EXT_SOURCES
}
+glob('
${
FAUST_LINEAR_OPERATOR_CPU_SRC_DIR
}
/*.cpp')"
)
else
()
set
(
PY_EXT_SOURCES
"
${
PY_EXT_SOURCES
}
+['
${
FAUST_LINEAR_OPERATOR_CPU_SRC_DIR
}
/faust_Slice.cpp']"
)
# WARNING: add manually other files here
#TODO: use a cmake file(GLOB) list and ignore faust_torch.cpp to construct the py list
endif
()
# extract the name (without .lib suffix) and the path of each libs:
# 1/ matio
get_filename_component
(
MATIO_LIB_DIR
${
MATIO_STATIC_LIB_PATH
}
DIRECTORY
)
...
...
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