Skip to content

Commit

Permalink
Convert jpegls_bitmap_decoder.h to named module jpegls_bitmap_decoder.ix
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaderks committed Nov 19, 2023
1 parent 3c24b39 commit c116848
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "pch.h"

#include "jpegls_bitmap_decoder.h"
#include "jpegls_bitmap_encoder.h"
#include "trace.h"
#include "version.h"
Expand All @@ -17,6 +16,7 @@
import guids;
import util;
import errors;
import jpegls_bitmap_decoder;

using std::array;
using std::wstring;
Expand Down
18 changes: 16 additions & 2 deletions src/jpegls-wic-codec.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="jpegls_bitmap_decoder.h" />
<ClInclude Include="jpegls_bitmap_encoder.h" />
<ClInclude Include="jpegls_bitmap_frame_encode.h" />
<ClInclude Include="macros.h" />
Expand Down Expand Up @@ -104,6 +103,14 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="jpegls_bitmap_decoder.ixx">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="jpegls_bitmap_encoder.cpp" />
<ClCompile Include="jpegls_bitmap_frame_decode.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
Expand All @@ -125,7 +132,14 @@
<ClCompile Include="pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="jpegls_bitmap_decoder.cpp" />
<ClCompile Include="jpegls_bitmap_decoder.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="util.ixx">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
Expand Down
4 changes: 1 addition & 3 deletions src/jpegls-wic-codec.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<ClInclude Include="trace.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="jpegls_bitmap_decoder.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="jpegls_bitmap_encoder.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -74,6 +71,7 @@
<ClCompile Include="jpegls_bitmap_frame_decode.ixx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="jpegls_bitmap_decoder.ixx" />
</ItemGroup>
<ItemGroup>
<None Include="jpegls-wic-codec.def">
Expand Down
6 changes: 3 additions & 3 deletions src/jpegls_bitmap_decoder.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause

#include "pch.h"

#include "jpegls_bitmap_decoder.h"
module;

#include "trace.h"
#include "macros.h"
Expand All @@ -16,6 +14,8 @@
#include <array>
#include <mutex>

module jpegls_bitmap_decoder;

import class_factory;
import guids;
import util;
Expand Down
6 changes: 0 additions & 6 deletions src/jpegls_bitmap_decoder.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/jpegls_bitmap_decoder.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ module;

export module jpegls_bitmap_decoder;

export HRESULT create_jpegls_bitmap_decoder_factory(_In_ GUID const& interface_id, _Outptr_ void** result);
export HRESULT create_jpegls_bitmap_decoder_factory(GUID const& interface_id, void** result);

0 comments on commit c116848

Please sign in to comment.