diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-04-09 20:38:11 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-04-09 20:38:11 +0200 |
commit | c2028103f1dea1651eb3a5f3bc784e367011f3be (patch) | |
tree | 112a98a4fc810e1f3fa07ede7541b33fcae79e2c | |
parent | 13643f9c0c6ba63065ec2537de08d177de729294 (diff) | |
download | fork-godot-webrtc-native-c2028103f1dea1651eb3a5f3bc784e367011f3be.tar.gz fork-godot-webrtc-native-c2028103f1dea1651eb3a5f3bc784e367011f3be.tar.bz2 fork-godot-webrtc-native-c2028103f1dea1651eb3a5f3bc784e367011f3be.zip |
Better output library name
-rw-r--r-- | SConstruct | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -22,7 +22,7 @@ result_path = 'bin' result_name = 'webrtc_native' if target_platform == 'linux': - result_name += '.linux.' + target_arch + result_name += '.linux.' + target + '.' + target_arch env['CXX']='g++' if ARGUMENTS.get('use_llvm', 'no') == 'yes': @@ -45,7 +45,7 @@ elif target_platform == 'windows': else: env = Environment(ENV = os.environ, TARGET_ARCH='x86') - result_name += '.windows.' + target_arch + result_name += '.windows.' + target + '.' + target_arch if host_platform == 'Windows': #result_name += '.lib' @@ -70,11 +70,14 @@ elif target_platform == 'osx': # Only 64-bits is supported for OS X target_arch = '64' - result_name += '.osx.' + target_arch + result_name += '.osx.' + target + '.' + target_arch env.Append(CCFLAGS = [ '-g','-O3', '-std=c++14', '-arch', 'x86_64' ]) env.Append(LINKFLAGS = [ '-arch', 'x86_64', '-framework', 'Cocoa', '-Wl,-undefined,dynamic_lookup' ]) +else: + print("No valid target platform selected.") + sys.exit(1) # Godot CPP bindings env.Append(CPPPATH=[godot_headers]) |