mirror of https://github.com/xiph/flac
Purge src/monkeys_audio_utilities/ tree.
Monkey's Audio Utilities seem to have been dead for some time.
This commit is contained in:
parent
3d394924ff
commit
96a5c54feb
|
@ -454,9 +454,6 @@ AC_CONFIG_FILES([ \
|
|||
src/libFLAC++/flac++.pc \
|
||||
src/flac/Makefile \
|
||||
src/metaflac/Makefile \
|
||||
src/monkeys_audio_utilities/Makefile \
|
||||
src/monkeys_audio_utilities/flac_mac/Makefile \
|
||||
src/monkeys_audio_utilities/flac_ren/Makefile \
|
||||
src/plugin_common/Makefile \
|
||||
src/plugin_xmms/Makefile \
|
||||
src/share/Makefile \
|
||||
|
|
|
@ -29,7 +29,6 @@ SUBDIRS = \
|
|||
libFLAC \
|
||||
flac \
|
||||
metaflac \
|
||||
monkeys_audio_utilities \
|
||||
$(XMMS_DIRS) \
|
||||
test_grabbag \
|
||||
test_libs_common \
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
# FLAC - Free Lossless Audio Codec
|
||||
# Copyright (C) 2001-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2013 Xiph.Org Foundation
|
||||
#
|
||||
# This file is part the FLAC project. FLAC is comprised of several
|
||||
# components distributed under different licenses. The codec libraries
|
||||
# are distributed under Xiph.Org's BSD-like license (see the file
|
||||
# COPYING.Xiph in this distribution). All other programs, libraries, and
|
||||
# plugins are distributed under the GPL (see COPYING.GPL). The documentation
|
||||
# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
|
||||
# FLAC distribution contains at the top the terms under which it may be
|
||||
# distributed.
|
||||
#
|
||||
# Since this particular file is relevant to all components of FLAC,
|
||||
# it may be distributed under the Xiph.Org license, which is the least
|
||||
# restrictive of those mentioned above. See the file COPYING.Xiph in this
|
||||
# distribution.
|
||||
|
||||
SUBDIRS = flac_mac flac_ren
|
|
@ -1,21 +0,0 @@
|
|||
# flac_mac - wedge utility to add FLAC support to Monkey's Audio
|
||||
# Copyright (C) 2001-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2013 Xiph.Org Foundation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
EXTRA_DIST = \
|
||||
flac_mac.vcproj \
|
||||
main.c
|
|
@ -1,197 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="flac_mac"
|
||||
ProjectGUID="{4cefbc7e-c215-11db-8314-0800200c9a66}"
|
||||
RootNamespace="flac_mac"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
WholeProgramOptimization="true"
|
||||
AdditionalIncludeDirectories="..\..\..\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"
|
||||
RuntimeLibrary="0"
|
||||
BufferSecurityCheck="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
LinkTimeCodeGeneration="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\main.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -1,231 +0,0 @@
|
|||
/* flac_mac - wedge utility to add FLAC support to Monkey's Audio
|
||||
* Copyright (C) 2000-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2013 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This program can be used to allow FLAC to masquerade as one of the other
|
||||
* supported lossless codecs in Monkey's Audio. See the documentation for
|
||||
* how to do this.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<string.h>
|
||||
#include<wtypes.h>
|
||||
#include<process.h>
|
||||
#include<winbase.h>
|
||||
|
||||
#include "share/compat.h"
|
||||
#include "share/safe_str.h"
|
||||
|
||||
static int execit(char *prog, char *args);
|
||||
static int forkit(char *prog, char *args);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int flac_return_val = 0, opt_arg = 1, from_arg = -1, to_arg = -1, flac_level = 5, i;
|
||||
char prog[MAX_PATH], cmdline[MAX_PATH*2], from[MAX_PATH], to[MAX_PATH], macdir[MAX_PATH], options[256], *p;
|
||||
enum { WAVPACK, RKAU, SHORTEN } codec;
|
||||
|
||||
/* get the directory where MAC external codecs reside */
|
||||
if(0 != (p = strrchr(argv[0],'\\'))) {
|
||||
safe_strncpy(macdir, argv[0], sizeof(macdir));
|
||||
*(strrchr(macdir,'\\')+1) = '\0';
|
||||
}
|
||||
else {
|
||||
safe_strncpy(macdir, "", sizeof(macdir));
|
||||
}
|
||||
|
||||
/* determine which codec we were called as and parse the options */
|
||||
if(p == 0)
|
||||
p = argv[0];
|
||||
else
|
||||
p++;
|
||||
if(0 == strnicmp(p, "short", 5)) {
|
||||
codec = SHORTEN;
|
||||
}
|
||||
else if(0 == strnicmp(p, "rkau", 4)) {
|
||||
codec = RKAU;
|
||||
if(argv[1][0] == '-' && argv[1][1] == 'l') {
|
||||
opt_arg = 2;
|
||||
switch(argv[1][2]) {
|
||||
case '1': flac_level = 1; break;
|
||||
case '2': flac_level = 5; break;
|
||||
case '3': flac_level = 8; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(0 == strnicmp(p, "wavpack", 7)) {
|
||||
codec = WAVPACK;
|
||||
if(argv[1][0] == '-') {
|
||||
opt_arg = 2;
|
||||
switch(argv[1][1]) {
|
||||
case 'f': flac_level = 1; break;
|
||||
case 'h': flac_level = 8; break;
|
||||
default: opt_arg = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
return -5;
|
||||
}
|
||||
|
||||
/* figure out which arguments are the source and destination files */
|
||||
for(i = 1; i < argc; i++)
|
||||
if(argv[i][0] != '-') {
|
||||
from_arg = i++;
|
||||
break;
|
||||
}
|
||||
for( ; i < argc; i++)
|
||||
if(argv[i][0] != '-') {
|
||||
to_arg = i++;
|
||||
break;
|
||||
}
|
||||
if(to_arg < 0)
|
||||
return -4;
|
||||
|
||||
/* build the command to call flac with */
|
||||
flac_snprintf(prog, sizeof (prog), "%sflac.exe", macdir);
|
||||
flac_snprintf(options, sizeof (options), "-%d", flac_level);
|
||||
for(i = opt_arg; i < argc; i++)
|
||||
if(argv[i][0] == '-') {
|
||||
safe_strncat(options, " ", sizeof(options));
|
||||
safe_strncat(options, argv[i], sizeof(options));
|
||||
}
|
||||
flac_snprintf(cmdline, sizeof (cmdline), "\"%s\" %s -o \"%s\" \"%s\"", prog, options, argv[to_arg], argv[from_arg]);
|
||||
|
||||
flac_return_val = execit(prog, cmdline);
|
||||
|
||||
/*
|
||||
* Now that flac has finished, we need to fork a process that will rename
|
||||
* the resulting file with the correct extension once MAC has moved it to
|
||||
* it's final resting place.
|
||||
*/
|
||||
if(0 == flac_return_val) {
|
||||
char *cptr;
|
||||
/* get the destination directory, if any */
|
||||
if(0 != (p = strchr(argv[to_arg],'\\'))) {
|
||||
safe_strncpy(from, argv[to_arg], sizeof(from));
|
||||
*(strrchr(from,'\\')+1) = '\0';
|
||||
}
|
||||
else {
|
||||
safe_strncpy(from, "", sizeof(from));
|
||||
}
|
||||
|
||||
/* for the full 'from' and 'to' paths for the renamer process */
|
||||
p = strrchr(argv[from_arg],'\\');
|
||||
safe_strncat(from, p? p+1 : argv[from_arg], sizeof(from));
|
||||
safe_strncpy(to, from, sizeof(to));
|
||||
|
||||
cptr = strrchr(from,'.');
|
||||
if(cptr == NULL)
|
||||
return -3;
|
||||
cptr [0] = 0;
|
||||
|
||||
switch(codec) {
|
||||
case SHORTEN:
|
||||
safe_strncat(from, ".shn", sizeof (from));
|
||||
break;
|
||||
case WAVPACK:
|
||||
safe_strncat(from, ".wv", sizeof (from));
|
||||
break;
|
||||
case RKAU:
|
||||
safe_strncpy(from, ".rka", sizeof (from));
|
||||
break;
|
||||
default:
|
||||
return -4;
|
||||
}
|
||||
|
||||
cptr = strrchr(to,'.');
|
||||
if(cptr == NULL)
|
||||
return -3;
|
||||
cptr [0] = 0;
|
||||
|
||||
safe_strncat(to, ".flac", sizeof(to));
|
||||
|
||||
flac_snprintf(prog, sizeof (prog), "%sflac_ren.exe", macdir);
|
||||
flac_snprintf(cmdline, sizeof (cmdline), "\"%s\" \"%s\" \"%s\"", prog, from, to);
|
||||
|
||||
flac_return_val = forkit(prog, cmdline);
|
||||
}
|
||||
|
||||
return flac_return_val;
|
||||
}
|
||||
|
||||
int execit(char *prog, char *args)
|
||||
{
|
||||
BOOL ok;
|
||||
STARTUPINFO startup_info;
|
||||
PROCESS_INFORMATION proc_info;
|
||||
|
||||
GetStartupInfo(&startup_info);
|
||||
|
||||
ok = CreateProcess(
|
||||
prog,
|
||||
args,
|
||||
0, /*process security attributes*/
|
||||
0, /*thread security attributes*/
|
||||
FALSE,
|
||||
0, /*dwCreationFlags*/
|
||||
0, /*environment*/
|
||||
0, /*lpCurrentDirectory*/
|
||||
&startup_info,
|
||||
&proc_info
|
||||
);
|
||||
if(ok) {
|
||||
DWORD dw;
|
||||
dw = WaitForSingleObject(proc_info.hProcess, INFINITE);
|
||||
ok = (dw != 0xFFFFFFFF);
|
||||
CloseHandle(proc_info.hThread);
|
||||
CloseHandle(proc_info.hProcess);
|
||||
}
|
||||
|
||||
return ok? 0 : -1;
|
||||
}
|
||||
|
||||
int forkit(char *prog, char *args)
|
||||
{
|
||||
BOOL ok;
|
||||
STARTUPINFO startup_info;
|
||||
PROCESS_INFORMATION proc_info;
|
||||
|
||||
GetStartupInfo(&startup_info);
|
||||
|
||||
ok = CreateProcess(
|
||||
prog,
|
||||
args,
|
||||
0, /*process security attributes*/
|
||||
0, /*thread security attributes*/
|
||||
FALSE,
|
||||
DETACHED_PROCESS, /*dwCreationFlags*/
|
||||
0, /*environment*/
|
||||
0, /*lpCurrentDirectory*/
|
||||
&startup_info,
|
||||
&proc_info
|
||||
);
|
||||
if(ok) {
|
||||
CloseHandle(proc_info.hThread);
|
||||
CloseHandle(proc_info.hProcess);
|
||||
}
|
||||
|
||||
return ok? 0 : -2;
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
# flac_ren - renamer part of utility to add FLAC support to Monkey's Audio
|
||||
# Copyright (C) 2001-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2013 Xiph.Org Foundation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
EXTRA_DIST = \
|
||||
flac_ren.vcproj \
|
||||
main.c
|
|
@ -1,195 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="flac_ren"
|
||||
ProjectGUID="{4cefbc7f-c215-11db-8314-0800200c9a66}"
|
||||
RootNamespace="flac_ren"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
WholeProgramOptimization="true"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"
|
||||
RuntimeLibrary="0"
|
||||
BufferSecurityCheck="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
LinkTimeCodeGeneration="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\main.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -1,40 +0,0 @@
|
|||
/* flac_ren - renamer part of utility to add FLAC support to Monkey's Audio
|
||||
* Copyright (C) 2000-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2013 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <io.h>
|
||||
#include <sys/stat.h>
|
||||
#include <wtypes.h>
|
||||
#include <winbase.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct stat s;
|
||||
|
||||
/* wait till the 'from' file has reached its final destination */
|
||||
do {
|
||||
Sleep(2000);
|
||||
} while(stat(argv[1], &s) < 0);
|
||||
|
||||
/* now rename it */
|
||||
return rename(argv[1], argv[2]);
|
||||
}
|
Loading…
Reference in New Issue