mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Split build types by folders for GCC.
This commit is contained in:
@@ -1112,6 +1112,8 @@ PRIVATE
|
||||
|
||||
if (${CMAKE_GENERATOR} MATCHES "(Visual Studio|Xcode|Ninja)")
|
||||
set(output_folder ${CMAKE_BINARY_DIR})
|
||||
elseif((${CMAKE_GENERATOR} MATCHES "(Unix Makefiles)") AND DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
|
||||
set(output_folder ${CMAKE_BINARY_DIR}/bin)
|
||||
else()
|
||||
set(output_folder ${CMAKE_BINARY_DIR}/$<IF:$<CONFIG:Debug>,Debug,Release>)
|
||||
endif()
|
||||
|
||||
@@ -27,6 +27,7 @@ if sys.platform == 'win32' and not 'COMSPEC' in os.environ:
|
||||
|
||||
executePath = os.getcwd()
|
||||
scriptPath = os.path.dirname(os.path.realpath(__file__))
|
||||
scriptName = os.path.basename(scriptPath)
|
||||
|
||||
arguments = sys.argv[1:]
|
||||
|
||||
@@ -50,5 +51,10 @@ if officialTarget != '':
|
||||
arguments.append('-DTDESKTOP_API_ID=' + apiIdMatch.group(1))
|
||||
elif apiHashMatch:
|
||||
arguments.append('-DTDESKTOP_API_HASH=' + apiHashMatch.group(1))
|
||||
finish(run_cmake.run(scriptName, arguments))
|
||||
|
||||
finish(run_cmake.run(os.path.basename(scriptPath), arguments))
|
||||
if 'linux' in sys.platform:
|
||||
debugCode = run_cmake.run(scriptName, arguments, "Debug")
|
||||
finish(debugCode if debugCode else run_cmake.run(scriptName, arguments, "Release"))
|
||||
else:
|
||||
finish(run_cmake.run(scriptName, arguments))
|
||||
|
||||
+1
-1
Submodule cmake updated: 8776c5c26e...1dd11ff72a
Reference in New Issue
Block a user