Skip to content

Commit

Permalink
Better output library name
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Apr 9, 2019
1 parent 13643f9 commit c202810
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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'
Expand All @@ -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])
Expand Down

0 comments on commit c202810

Please sign in to comment.