summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2015-01-17 18:27:08 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2015-01-17 18:27:08 +0300
commitfa38e9b838f32baedfca7a9250a76418b1872f5d (patch)
treec37f2d5817f5de216f1d864754063993883d6f90 /platform
parentd6998995b54fd4fed83eef9db3bbb45fa60565db (diff)
parent91faf8e21810c8995e4f6e3b6ba47a6482ab877e (diff)
Merge branch 'master' of github.com:okamstudio/godot
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/detect.py3
-rw-r--r--platform/server/detect.py3
-rw-r--r--platform/windows/os_windows.cpp3
-rw-r--r--platform/x11/detect.py3
-rw-r--r--platform/x11/export/export.cpp2
5 files changed, 13 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 141a876657..5703cbc546 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -84,6 +84,9 @@ def configure(env):
env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND'])
env["CC"]="clang"
env["LD"]="clang++"
+ if (env["colored"]=="yes"):
+ if sys.stdout.isatty():
+ env.Append(CPPFLAGS=["-fcolor-diagnostics"])
import methods
diff --git a/platform/server/detect.py b/platform/server/detect.py
index 24b36d3188..e2d64c6545 100644
--- a/platform/server/detect.py
+++ b/platform/server/detect.py
@@ -40,6 +40,9 @@ def configure(env):
env["CC"]="clang"
env["CXX"]="clang++"
env["LD"]="clang++"
+ if (env["colored"]=="yes"):
+ if sys.stdout.isatty():
+ env.Append(CXXFLAGS=["-fcolor-diagnostics"])
is64=sys.maxsize > 2**32
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 45d13da828..ce79133664 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -56,6 +56,9 @@
#include "shlobj.h"
static const WORD MAX_CONSOLE_LINES = 1500;
+extern "C" {
+ _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+}
//#define STDOUT_FILE
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index ff006849c4..6c1ca670f0 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -83,6 +83,9 @@ def configure(env):
env.extra_suffix=".llvms"
else:
env.extra_suffix=".llvm"
+ if (env["colored"]=="yes"):
+ if sys.stdout.isatty():
+ env.Append(CXXFLAGS=["-fcolor-diagnostics"])
diff --git a/platform/x11/export/export.cpp b/platform/x11/export/export.cpp
index b17b92bccf..bed57fbe9f 100644
--- a/platform/x11/export/export.cpp
+++ b/platform/x11/export/export.cpp
@@ -11,7 +11,7 @@ void register_x11_exporter() {
{
Ref<EditorExportPlatformPC> exporter = Ref<EditorExportPlatformPC>( memnew(EditorExportPlatformPC) );
- exporter->set_binary_extension("bin");
+ exporter->set_binary_extension("");
exporter->set_release_binary32("linux_x11_32_release");
exporter->set_debug_binary32("linux_x11_32_debug");
exporter->set_release_binary64("linux_x11_64_release");