repositories
/
deb_shairplay.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the RSA key to the beginning of file in python bindings
[deb_shairplay.git]
/
src
/
SConscript
diff --git
a/src/SConscript
b/src/SConscript
index c5634988dcb7164b2f643ff6011d26af76abd377..536cc06e6e882ef3de9732432b8098bc06ed3f45 100644
(file)
--- a/
src/SConscript
+++ b/
src/SConscript
@@
-6,6
+6,10
@@
env.Append(CPPPATH = ['include'])
# Set up the environment for compiling the libraries
libenv = env.Clone()
# Set up the environment for compiling the libraries
libenv = env.Clone()
+conf = Configure(libenv)
+conf.CheckLib('pthread')
+conf.CheckLib('dns_sd')
+libenv = conf.Finish()
libenv.Append(CPPPATH = ['lib'])
# Make sure libraries are compiled with DLL_EXPORT on windows
libenv.Append(CPPPATH = ['lib'])
# Make sure libraries are compiled with DLL_EXPORT on windows
@@
-22,8
+26,8
@@
else:
# Compile the static library into lib directory and shared library
# for the bindings
if not libenv['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME']:
# Compile the static library into lib directory and shared library
# for the bindings
if not libenv['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME']:
- libenv.Library('airplay', libobj, install=False)
-libenv.SharedLibrary('airplay', shlibobj, install=False)
+ libenv.Library('
sh
airplay', libobj, install=False)
+libenv.SharedLibrary('
sh
airplay', shlibobj, install=False)
# If we want to create universal binaries of the dynamic library on Mac, do it here
if GetOption('universal'):
# If we want to create universal binaries of the dynamic library on Mac, do it here
if GetOption('universal'):
@@
-34,25
+38,26
@@
if GetOption('universal'):
libenv32.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv32.Append(LINKFLAGS = ['-arch', 'i386'])
libenv32.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv32.Append(LINKFLAGS = ['-arch', 'i386'])
- libenv32.Append(LINKFLAGS = ['-install_name', 'libairplay32.dylib'])
- libenv32.SharedLibrary('airplay32', shlibobj, install=False)
+ libenv32.Append(LINKFLAGS = ['-install_name', 'lib
sh
airplay32.dylib'])
+ libenv32.SharedLibrary('
sh
airplay32', shlibobj, install=False)
libenv64.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv64.Append(LINKFLAGS = ['-arch', 'x86_64'])
libenv64.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv64.Append(LINKFLAGS = ['-arch', 'x86_64'])
- libenv64.Append(LINKFLAGS = ['-install_name', 'libairplay64.dylib'])
- libenv64.SharedLibrary('airplay64', shlibobj, install=False)
+ libenv64.Append(LINKFLAGS = ['-install_name', 'lib
sh
airplay64.dylib'])
+ libenv64.SharedLibrary('
sh
airplay64', shlibobj, install=False)
libenv.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv.Append(LINKFLAGS = ['-arch', 'i386', '-arch', 'x86_64'])
libenv.Append(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
libenv.Append(LINKFLAGS = ['-arch', 'i386', '-arch', 'x86_64'])
- libenv.Append(LINKFLAGS = ['-install_name', 'libairplay.dylib'])
+ libenv.Append(LINKFLAGS = ['-install_name', 'lib
sh
airplay.dylib'])
# Set up the environment for compiling the examples
appenv = env.Clone()
conf = Configure(appenv)
conf.CheckLib('pthread')
# Set up the environment for compiling the examples
appenv = env.Clone()
conf = Configure(appenv)
conf.CheckLib('pthread')
+conf.CheckLib('dns_sd')
appenv = conf.Finish()
appenv.Append(LIBPATH = ['.'])
appenv = conf.Finish()
appenv.Append(LIBPATH = ['.'])
-appenv.Prepend(LIBS = ['airplay'])
+appenv.Prepend(LIBS = ['
sh
airplay'])
exampleobj = appenv.Object(['test/example.c'])
appenv.Program('example', exampleobj, install=False)
exampleobj = appenv.Object(['test/example.c'])
appenv.Program('example', exampleobj, install=False)