|
Lines 1-21
Link Here
|
| 1 |
--- platform/x11/detect.py.orig 2016-11-15 18:44:21 UTC |
1 |
--- platform/x11/detect.py.orig 2017-08-27 16:25:12 UTC |
| 2 |
+++ platform/x11/detect.py |
2 |
+++ platform/x11/detect.py |
| 3 |
@@ -31,11 +31,6 @@ def can_build(): |
3 |
@@ -56,7 +56,9 @@ def get_opts(): |
| 4 |
print("X11 not found.. x11 disabled.") |
|
|
| 5 |
return False |
| 6 |
|
| 7 |
- ssl_error = os.system("pkg-config openssl --modversion > /dev/null ") |
| 8 |
- if (ssl_error): |
| 9 |
- print("OpenSSL not found.. x11 disabled.") |
| 10 |
- return False |
| 11 |
- |
| 12 |
x11_error = os.system("pkg-config xcursor --modversion > /dev/null ") |
| 13 |
if (x11_error): |
| 14 |
print("xcursor not found.. x11 disabled.") |
| 15 |
@@ -61,7 +56,9 @@ def get_opts(): |
| 16 |
('use_static_cpp', 'link stdc++ statically', 'no'), |
| 17 |
('use_sanitizer', 'Use llvm compiler sanitize address', 'no'), |
4 |
('use_sanitizer', 'Use llvm compiler sanitize address', 'no'), |
| 18 |
('use_leak_sanitizer', 'Use llvm compiler sanitize memory leaks', 'no'), |
5 |
('use_leak_sanitizer', 'Use llvm compiler sanitize memory leaks', 'no'), |
|
|
6 |
('use_lto', 'Use link time optimization', 'no'), |
| 19 |
- ('pulseaudio', 'Detect & Use pulseaudio', 'yes'), |
7 |
- ('pulseaudio', 'Detect & Use pulseaudio', 'yes'), |
| 20 |
+ ('alsa','Detect & Use alsa audio','no'), |
8 |
+ ('alsa','Detect & Use alsa audio','no'), |
| 21 |
+ ('oss','Detect & Use OSS audio','no'), |
9 |
+ ('oss','Detect & Use OSS audio','no'), |
|
Lines 23-38
Link Here
|
| 23 |
('udev', 'Use udev for gamepad connection callbacks', 'no'), |
11 |
('udev', 'Use udev for gamepad connection callbacks', 'no'), |
| 24 |
('debug_release', 'Add debug symbols to release version', 'no'), |
12 |
('debug_release', 'Add debug symbols to release version', 'no'), |
| 25 |
] |
13 |
] |
| 26 |
@@ -134,7 +131,7 @@ def configure(env): |
14 |
@@ -148,13 +150,14 @@ def configure(env): |
| 27 |
env.ParseConfig('pkg-config xrandr --cflags --libs') |
15 |
# Currently not compatible with OpenSSL 1.1.0+ |
|
|
16 |
# https://github.com/godotengine/godot/issues/8624 |
| 17 |
import subprocess |
| 18 |
- openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
| 19 |
+ openssl_version = '1.0.2' #subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
| 20 |
if (openssl_version >= "1.1.0"): |
| 21 |
print("Error: Found system-installed OpenSSL %s, currently only supporting version 1.0.x." % openssl_version) |
| 22 |
print("Aborting.. You can compile with 'builtin_openssl=yes' to use the bundled version.\n") |
| 23 |
sys.exit(255) |
| 28 |
|
24 |
|
| 29 |
if (env['builtin_openssl'] == 'no'): |
|
|
| 30 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
25 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
|
|
26 |
+ #env.ParseConfig('pkg-config openssl --cflags --libs') |
| 31 |
+ env.ParseConfig('echo -lssl -lcrypto') |
27 |
+ env.ParseConfig('echo -lssl -lcrypto') |
| 32 |
|
28 |
|
| 33 |
if (env['builtin_libwebp'] == 'no'): |
29 |
if (env['builtin_libwebp'] == 'no'): |
| 34 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
30 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
| 35 |
@@ -173,12 +170,13 @@ def configure(env): |
31 |
@@ -199,12 +202,13 @@ def configure(env): |
| 36 |
if (env['builtin_glew'] == 'no'): |
32 |
if (env['builtin_glew'] == 'no'): |
| 37 |
env.ParseConfig('pkg-config glew --cflags --libs') |
33 |
env.ParseConfig('pkg-config glew --cflags --libs') |
| 38 |
|
34 |
|
|
Lines 52-66
Link Here
|
| 52 |
|
48 |
|
| 53 |
if (platform.system() == "Linux"): |
49 |
if (platform.system() == "Linux"): |
| 54 |
env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) |
50 |
env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) |
| 55 |
@@ -193,6 +191,11 @@ def configure(env): |
51 |
@@ -218,6 +222,11 @@ def configure(env): |
|
|
52 |
env.ParseConfig('pkg-config libudev --cflags --libs') |
| 56 |
else: |
53 |
else: |
| 57 |
print("libudev development libraries not found, disabling udev support") |
54 |
print("libudev development libraries not found, disabling udev support") |
| 58 |
|
55 |
+ |
| 59 |
+ if (env["oss"]=="yes"): |
56 |
+ if (env["oss"]=="yes"): |
| 60 |
+ print("Enabling OSS Audio") |
57 |
+ print("Enabling OSS Audio") |
| 61 |
+ env.Append(CPPFLAGS=["-DOSS_ENABLED"]) |
58 |
+ env.Append(CPPFLAGS=["-DOSS_ENABLED"]) |
| 62 |
+ env.Append(CCFLAGS=['-Ithirdparty/rtaudio']) |
59 |
+ env.Append(CCFLAGS=['-Ithirdparty/rtaudio']) |
| 63 |
+ |
60 |
|
| 64 |
if (env["pulseaudio"] == "yes"): |
61 |
if (env["pulseaudio"] == "yes"): |
| 65 |
if not os.system("pkg-config --exists libpulse-simple"): |
62 |
if not os.system("pkg-config --exists libpulse-simple"): |
| 66 |
print("Enabling PulseAudio") |
|
|