Changeset 1354
- Timestamp:
- 02/21/08 15:42:43 (6 months ago)
- Location:
- portaudio/branches/v19-devel
- Files:
-
- 4 modified
-
SConstruct (modified) (2 diffs)
-
bindings/cpp/SConscript (modified) (1 diff)
-
build/scons/SConscript_opts (modified) (1 diff)
-
src/SConscript (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
portaudio/branches/v19-devel/SConstruct
r1278 r1354 37 37 # Determine parameters to build tools 38 38 if Platform in Posix: 39 baseLinkFlags = threadCFlags = "-pthread" 39 threadCFlags = '' 40 if Platform != 'darwin': 41 threadCFlags = "-pthread " 42 baseLinkFlags = threadCFlags 40 43 baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags 41 44 debugCxxFlags = debugCFlags = "-g" 42 45 optCxxFlags = optCFlags = "-O2" 43 env ["CCFLAGS"] = baseCFlags.split()44 env ["CXXFLAGS"] = baseCxxFlags.split()45 env ["LINKFLAGS"] = baseLinkFlags.split()46 env.Append(CCFLAGS = baseCFlags) 47 env.Append(CXXFLAGS = baseCxxFlags) 48 env.Append(LINKFLAGS = baseLinkFlags) 46 49 if env["enableDebug"]: 47 50 env.AppendUnique(CCFLAGS=debugCFlags.split()) … … 181 184 182 185 # Define the builder for the config header 183 env.Append(BUILDERS={"portaudioConfig": env.Builder( action=Action(buildConfigH,184 "generating '$TARGET'"), target_factory=env.fs.File,)})186 env.Append(BUILDERS={"portaudioConfig": env.Builder( 187 action=Action(buildConfigH), target_factory=env.fs.File)}) 185 188 186 189 confH = env.portaudioConfig(File("portaudio_config.h", "include"), -
portaudio/branches/v19-devel/bindings/cpp/SConscript
r1047 r1354 13 13 env["SHLIBSUFFIX"] = ".so.%d.%d.%d" % (Major, Minor, Micro) 14 14 soFile = "libportaudiocpp.so" 15 env.AppendUnique(SHLINKFLAGS="-Wl,-soname=%s.%d" % (soFile, Major)) 15 if Platform != 'darwin': 16 env.AppendUnique(SHLINKFLAGS="-Wl,-soname=%s.%d" % (soFile, Major)) 16 17 17 18 # Create symlinks -
portaudio/branches/v19-devel/build/scons/SConscript_opts
r1061 r1354 64 64 apis.append(_PackageOption("OSS")) 65 65 apis.append(_PackageOption("JACK")) 66 if Platform == "linux":67 apis.append(_PackageOption("ALSA"))68 apis.append(_PackageOption("ASIHPI"))66 apis.append(_PackageOption("ALSA", Platform == "linux")) 67 apis.append(_PackageOption("ASIHPI", Platform == "linux")) 68 apis.append(_PackageOption("COREAUDIO", Platform == "darwin")) 69 69 elif Platform in Windows: 70 70 if Platform == "cygwin": 71 71 apis.append(_EnumOption("winAPI", "Windows API to use", ("wmme", "directx", "asio"), "wmme")) 72 elif Platform == "darwin": 73 apis.append(_EnumOption("macAPI", "Mac API to use", ("asio", "core", "sm"), "core")) 72 74 73 opts["Host APIs"] = apis 75 74 -
portaudio/branches/v19-devel/src/SConscript
r1278 r1354 77 77 if env["useASIHPI"]: 78 78 optionalImpls["ASIHPI"] = ("hpi", "asihpi/hpi.h", "HPI_SubSysCreate") 79 if env["useCOREAUDIO"]: 80 optionalImpls["COREAUDIO"] = ("CoreAudio", "CoreAudio/CoreAudio.h", None) 79 81 else: 80 82 raise ConfigurationError("unknown platform %s" % Platform) 81 83 82 84 if Platform == "darwin": 83 env.Append(LINKFLAGS=["-framework CoreAudio", "-framework AudioToolBox"]) 84 env.Append(CPPDEFINES=["PA_USE_COREAUDIO"]) 85 env.Append(LINKFLAGS="-framework CoreFoundation -framework CoreServices -framework CoreAudio -framework AudioToolBox -framework AudioUnit") 85 86 elif Platform == "cygwin": 86 87 env.Append(LIBS=["winmm"]) … … 161 162 pa_process.c pa_skeleton.c pa_stream.c pa_trace.c pa_debugprint.c pa_ringbuffer.c".split()] 162 163 163 # Host API implementations164 # Host APIs implementations 164 165 ImplSources = [] 165 166 if Platform in Posix: … … 174 175 if "ASIHPI" in optionalImpls: 175 176 ImplSources.append(os.path.join("hostapi", "asihpi", "pa_linux_asihpi.c")) 177 if "COREAUDIO" in optionalImpls: 178 ImplSources.append([os.path.join("hostapi", "coreaudio", f) for f in """ 179 pa_mac_core.c pa_mac_core_blocking.c pa_mac_core_utilities.c 180 """.split()]) 176 181 177 182 … … 181 186 if Platform in Posix: 182 187 # Add soname to library, this is so a reference is made to the versioned library in programs linking against libportaudio.so 183 sharedLibEnv.AppendUnique(SHLINKFLAGS="-Wl,-soname=libportaudio.so.%d" % int(ApiVer.split(".")[0])) 188 if Platform != 'darwin': 189 sharedLibEnv.AppendUnique(SHLINKFLAGS="-Wl,-soname=libportaudio.so.%d" % int(ApiVer.split(".")[0])) 184 190 sharedLib = sharedLibEnv.SharedLibrary(target="portaudio", source=sources) 185 191
