diff mbox series

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

Message ID 20240903070040.6283-1-franklin@pcpartner.com
State New
Headers show
Series edid-decode: Fix Visual Studio builds. Add utf-8 option and parse-if.cpp file. | expand

Commit Message

Wei Feng Lin Sept. 3, 2024, 7 a.m. UTC
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@pcpartner.com>
---
 vs/edid-decode.vcxproj         | 3 +++
 vs/edid-decode.vcxproj.filters | 3 +++
 2 files changed, 6 insertions(+)
diff mbox series

Patch

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">