Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
durswd committed Aug 5, 2022
1 parent 50e4813 commit eafe597
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 37 deletions.
11 changes: 1 addition & 10 deletions Dev/Cpp/EffekseerRendererDX11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ list(APPEND LOCAL_SOURCES_Common

source_group("EffekseerRendererCommon" FILES ${LOCAL_SOURCES_Common})

if(NOT USE_INTERNAL_LOADER)
list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.h
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h
)
endif()

file(GLOB_RECURSE LOCAL_HEADERS_DX11 *.h)
file(GLOB_RECURSE LOCAL_SOURCES_DX11 *.cpp)
list(APPEND LOCAL_HEADERS_DX11 ../EffekseerMaterialCompiler/DirectX11/EffekseerMaterialCompilerDX11.h)
Expand Down Expand Up @@ -51,7 +42,7 @@ if(CLANG_FORMAT_ENABLED)
clang_format(${PROJECT_NAME})
endif()

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down
2 changes: 1 addition & 1 deletion Dev/Cpp/EffekseerRendererDX12/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endif()

WarnError(${PROJECT_NAME})

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down
11 changes: 1 addition & 10 deletions Dev/Cpp/EffekseerRendererDX9/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ list(APPEND LOCAL_SOURCES_Common

source_group("EffekseerRendererCommon" FILES ${LOCAL_SOURCES_Common})

if(NOT USE_INTERNAL_LOADER)
list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.h
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h
)
endif()

file(GLOB_RECURSE LOCAL_HEADERS_DX9 *.h)
file(GLOB_RECURSE LOCAL_SOURCES_DX9 *.cpp)
list(APPEND LOCAL_HEADERS_DX9 ../EffekseerMaterialCompiler/DirectX9/EffekseerMaterialCompilerDX9.h)
Expand Down Expand Up @@ -51,7 +42,7 @@ if(CLANG_FORMAT_ENABLED)
clang_format(${PROJECT_NAME})
endif()

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down
12 changes: 5 additions & 7 deletions Dev/Cpp/EffekseerRendererGL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.h
)

if(NOT USE_INTERNAL_LOADER)
list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h
)
endif()
list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h
)

file(GLOB_RECURSE LOCAL_HEADERS_GL *.h)
file(GLOB_RECURSE LOCAL_SOURCES_GL *.cpp)
Expand Down Expand Up @@ -54,7 +52,7 @@ if(CLANG_FORMAT_ENABLED)
clang_format(${PROJECT_NAME})
endif()

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down
9 changes: 1 addition & 8 deletions Dev/Cpp/EffekseerRendererMetal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ list(REMOVE_ITEM LOCAL_SOURCES_Common
${CMAKE_CURRENT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.DXTK.DDSTextureLoader.cpp
)

if(NOT USE_INTERNAL_LOADER)
list(REMOVE_ITEM LOCAL_SOURCES_Common
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.cpp
${PROJECT_SOURCE_DIR}/../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h
)
endif()

source_group("EffekseerRendererCommon" FILES ${LOCAL_SOURCES_Common})

file(GLOB_RECURSE LOCAL_HEADERS_Metal *.h)
Expand Down Expand Up @@ -57,7 +50,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${LOCAL_HEADERS_Metal}")
target_link_libraries(${PROJECT_NAME} PUBLIC Effekseer LLGI)

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down
2 changes: 1 addition & 1 deletion Dev/Cpp/EffekseerRendererVulkan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${Vulkan_INCLUDE_DIRS})
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${LOCAL_HEADERS_Vulkan}")
target_link_libraries(${PROJECT_NAME} PUBLIC Effekseer LLGI)

if(USE_LIBPNG_LOADER AND USE_INTERNAL_LOADER)
if(USE_LIBPNG_LOADER)
add_dependencies(${PROJECT_NAME} ExternalProject_zlib ExternalProject_libpng)
endif()

Expand Down

0 comments on commit eafe597

Please sign in to comment.