summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-30 19:05:14 +0100
committerRémi Verschelde <rverschelde@gmail.com>2016-11-01 00:35:16 +0100
commit817dd7ccbb166b27c93706dffc5c0c0d59fd87f8 (patch)
tree3fddab3a6a9712c5eda14b262523ff186a90c9e9 /platform/android
parentd4c17700aa2f36f69978beda04e42ff2749de270 (diff)
style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/detect.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index f1331d24d5..5de4f11445 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -3,12 +3,15 @@ import sys
import string
import platform
+
def is_active():
return True
+
def get_name():
return "Android"
+
def can_build():
import os
@@ -17,6 +20,7 @@ def can_build():
return True
+
def get_opts():
return [
@@ -47,6 +51,7 @@ def create(env):
env.Tool('gcc')
return env.Clone(tools=tools);
+
def configure(env):
# Workaround for MinGW. See:
@@ -102,7 +107,6 @@ def configure(env):
env.Tool('gcc')
env['SHLIBSUFFIX'] = '.so'
-
neon_text = ""
if env["android_arch"] == "armv7" and env['android_neon'] == 'yes':
neon_text = " (with neon)"
@@ -241,7 +245,6 @@ def configure(env):
env.Append(LIBS=['gnustl_static'])
env.Append(CCFLAGS=["-fno-exceptions", '-DNO_SAFE_CAST'])
-
import methods
env.Append(BUILDERS={'GLSL120': env.Builder(action=methods.build_legacygl_headers, suffix='glsl.h', src_suffix='.glsl')})
env.Append(BUILDERS={'GLSL': env.Builder(action=methods.build_glsl_headers, suffix='glsl.h', src_suffix='.glsl')})