Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/cmake/project_info.py')
-rwxr-xr-xbuild_files/cmake/project_info.py25
1 files changed, 2 insertions, 23 deletions
diff --git a/build_files/cmake/project_info.py b/build_files/cmake/project_info.py
index 5d756a6320f..fcd4501f231 100755
--- a/build_files/cmake/project_info.py
+++ b/build_files/cmake/project_info.py
@@ -239,26 +239,5 @@ def cmake_compiler_defines():
return lines
-def project_name_get(path, fallback="Blender", prefix="Blender_"):
- if not os.path.isdir(os.path.join(path, ".svn")):
- return fallback
-
- import subprocess
- try:
- info = subprocess.Popen(["svn", "info", path],
- stdout=subprocess.PIPE).communicate()[0]
- except:
- # possibly 'svn' isnt found/installed
- return fallback
-
- # string version, we only want the URL
- info = info.decode(encoding="utf-8", errors="ignore")
-
- for l in info.split("\n"):
- l = l.strip()
- if l.startswith("URL"):
- # https://svn.blender.org/svnroot/bf-blender/branches/bmesh/blender
- # --> bmesh
- if "/branches/" in l:
- return prefix + l.rsplit("/branches/", 1)[-1].split("/", 1)[0]
- return fallback
+def project_name_get():
+ return cmake_cache_var("CMAKE_PROJECT_NAME")