[PATCH] edid-decode: Fix Visual Studio builds. Add utf-8 option and parse-if.cpp file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the /utf-8 option to resolve the issue of not being able to compile parse-base-block.cpp.
Include parse-if.cpp in the compilation to resolve the issue of missing parse_if_vendor and
other functions during linking.

Signed-off-by: Wei Feng Lin <franklin@xxxxxxxxxxxxx>
---
 vs/edid-decode.vcxproj         | 3 +++
 vs/edid-decode.vcxproj.filters | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/vs/edid-decode.vcxproj b/vs/edid-decode.vcxproj
index 7b840ac..2c21187 100644
--- a/vs/edid-decode.vcxproj
+++ b/vs/edid-decode.vcxproj
@@ -59,6 +59,7 @@
       <ConformanceMode>true</ConformanceMode>
       <AdditionalIncludeDirectories>$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <DisableSpecificWarnings>4244; 4018; 4267; 4996; 26451; 6385; 6001</DisableSpecificWarnings>
+      <AdditionalOptions>/utf-8</AdditionalOptions>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
@@ -86,6 +87,7 @@
       <AdditionalIncludeDirectories>$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <DisableSpecificWarnings>4244; 4018; 4267; 4996; 26451; 6385; 6001</DisableSpecificWarnings>
       <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+      <AdditionalOptions>/utf-8</AdditionalOptions>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
@@ -97,6 +99,7 @@
   <ItemGroup>
     <ClCompile Include="..\calc-gtf-cvt.cpp" />
     <ClCompile Include="..\calc-ovt.cpp" />
+    <ClCompile Include="..\parse-if.cpp" />
     <ClCompile Include="getopt.c" />
     <ClCompile Include="..\edid-decode.cpp" />
     <ClCompile Include="..\parse-base-block.cpp" />
diff --git a/vs/edid-decode.vcxproj.filters b/vs/edid-decode.vcxproj.filters
index b98ab04..0b78516 100644
--- a/vs/edid-decode.vcxproj.filters
+++ b/vs/edid-decode.vcxproj.filters
@@ -43,6 +43,9 @@
     <ClCompile Include="..\calc-ovt.cpp">
       <Filter>edid-decode</Filter>
     </ClCompile>
+    <ClCompile Include="..\parse-if.cpp">
+      <Filter>edid-decode</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\edid-decode.h">
-- 
2.34.1





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux