add Windows 10 long pathname manifest

This commit is contained in:
nu774 2020-09-21 22:36:54 +09:00
parent c0919b049a
commit ef17c9436e
5 changed files with 19 additions and 0 deletions

View File

@ -55,6 +55,9 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Manifest>
<AdditionalManifestFiles>..\fdkaac.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
</Manifest>
<PreBuildEvent>
<Command>copy ..\fdk-aac\libAACdec\include\aacdecoder_lib.h include\fdk-aac\
copy ..\fdk-aac\libAACenc\include\aacenc_lib.h include\fdk-aac\

View File

@ -25,6 +25,9 @@ dist_man_MANS = man/fdkaac.1
fdkaac_LDADD = \
@LIBICONV@ @CHARSET_LIB@ -lfdk-aac -lm
.rc.o:
$(RC) $< -o $@
if FDK_PLATFORM_POSIX
fdkaac_SOURCES += \
src/compat_posix.c
@ -33,6 +36,7 @@ endif
if FDK_PLATFORM_WIN32
fdkaac_SOURCES += \
src/compat_win32.c
fdkaac_SOURCES += fdkaac.rc
endif
if FDK_NO_GETOPT_LONG

View File

@ -11,6 +11,7 @@ AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AC_CHECK_TOOL(RC, windres,)
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([libcharset.h langinfo.h endian.h byteswap.h])

8
fdkaac.manifest Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>

3
fdkaac.rc Normal file
View File

@ -0,0 +1,3 @@
#include <winresrc.h>
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "fdkaac.manifest"