CMake: pro2cmake.py: Remove some dead code
Change-Id: I8e3e7e4c4ef9747e0749734bdf875baccc4646bd Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
This commit is contained in:
parent
6104643db0
commit
d796410045
@ -118,21 +118,6 @@ def map_source_to_cmake(source: str, base_dir: str,
|
|||||||
return '{}-NOTFOUND'.format(source)
|
return '{}-NOTFOUND'.format(source)
|
||||||
|
|
||||||
|
|
||||||
def map_source_to_fs(base_dir: str, file: str,
|
|
||||||
source: str) -> str:
|
|
||||||
if source is None or source == '$$NO_PCH_SOURCES':
|
|
||||||
return ''
|
|
||||||
if source.startswith('$$PWD/'):
|
|
||||||
return os.path.join(os.path.dirname(file), source[6:])
|
|
||||||
if source.startswith('$$QT_SOURCE_TREE/'):
|
|
||||||
return os.path.join('.', source[17:])
|
|
||||||
if source.startswith('${PROJECT_SOURCE_DIR}/'):
|
|
||||||
return os.path.join('.', source[22:])
|
|
||||||
if source.startswith('${CMAKE_CURRENT_SOURCE_DIR}/'):
|
|
||||||
return os.path.join(base_dir, source[28:])
|
|
||||||
return os.path.join(base_dir, source)
|
|
||||||
|
|
||||||
|
|
||||||
class Operation:
|
class Operation:
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user