Move uvector.h from src/librpbase/ to src/.

[rp-download] CMakeLists.txt: Don't link to librpbase. This was only
needed for uvector.h, and now that it's in src/, we don't need to
link in librpbase anymore.
This commit is contained in:
David Korth 2022-06-19 00:48:28 -04:00
parent c8acecdd2c
commit 597d0a088c
8 changed files with 10 additions and 11 deletions

View File

@ -29,7 +29,7 @@
// Uninitialized vector class. // Uninitialized vector class.
// Reference: http://andreoffringa.org/?q=uvector // Reference: http://andreoffringa.org/?q=uvector
#include "librpbase/uvector.h" #include "uvector.h"
namespace LibRpBase { namespace LibRpBase {
#ifdef ENABLE_DECRYPTION #ifdef ENABLE_DECRYPTION

View File

@ -3,7 +3,7 @@
* Nintendo3DS.hpp: Nintendo 3DS ROM reader. (Private class) * * Nintendo3DS.hpp: Nintendo 3DS ROM reader. (Private class) *
* Handles CCI/3DS, CIA, and SMDH files. * * Handles CCI/3DS, CIA, and SMDH files. *
* * * *
* Copyright (c) 2016-2021 by David Korth. * * Copyright (c) 2016-2022 by David Korth. *
* SPDX-License-Identifier: GPL-2.0-or-later * * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/ ***************************************************************************/
@ -27,7 +27,7 @@ namespace LibRpFile {
// Uninitialized vector class. // Uninitialized vector class.
// Reference: http://andreoffringa.org/?q=uvector // Reference: http://andreoffringa.org/?q=uvector
#include "librpbase/uvector.h" #include "uvector.h"
namespace LibRomData { namespace LibRomData {

View File

@ -2,7 +2,7 @@
* ROM Properties Page shell extension. (libromdata) * * ROM Properties Page shell extension. (libromdata) *
* stdafx.h: Common definitions and includes. * * stdafx.h: Common definitions and includes. *
* * * *
* Copyright (c) 2016-2021 by David Korth. * * Copyright (c) 2016-2022 by David Korth. *
* SPDX-License-Identifier: GPL-2.0-or-later * * SPDX-License-Identifier: GPL-2.0-or-later *
***************************************************************************/ ***************************************************************************/
@ -70,7 +70,7 @@
// Uninitialized vector class. // Uninitialized vector class.
// Reference: http://andreoffringa.org/?q=uvector // Reference: http://andreoffringa.org/?q=uvector
#include "librpbase/uvector.h" #include "uvector.h"
// librpbase DiscReader // librpbase DiscReader
#include "librpbase/disc/IDiscReader.hpp" #include "librpbase/disc/IDiscReader.hpp"

View File

@ -92,7 +92,6 @@ SET(${PROJECT_NAME}_SRCS
) )
# Headers. # Headers.
SET(${PROJECT_NAME}_H SET(${PROJECT_NAME}_H
uvector.h
aligned_malloc.h aligned_malloc.h
TextFuncs.hpp TextFuncs.hpp
TextFuncs_wchar.hpp TextFuncs_wchar.hpp

View File

@ -40,8 +40,7 @@ using std::vector;
// Uninitialized vector class. // Uninitialized vector class.
// Reference: http://andreoffringa.org/?q=uvector // Reference: http://andreoffringa.org/?q=uvector
// FIXME: Move out of librpbase? #include "uvector.h"
#include "librpbase/uvector.h"
namespace LibRpTexture { namespace LibRpTexture {

View File

@ -49,8 +49,10 @@
#include "librpcpu/bitstuff.h" #include "librpcpu/bitstuff.h"
#ifdef __cplusplus #ifdef __cplusplus
// C++ headers
#include "uvector.h"
// librpbase C++ headers // librpbase C++ headers
#include "librpbase/uvector.h"
#include "librpbase/RomFields.hpp" #include "librpbase/RomFields.hpp"
#include "librpbase/TextFuncs.hpp" #include "librpbase/TextFuncs.hpp"

View File

@ -102,8 +102,7 @@ SET_WINDOWS_SUBSYSTEM(${PROJECT_NAME} CONSOLE)
SET_WINDOWS_NO_MANIFEST(${PROJECT_NAME}) SET_WINDOWS_NO_MANIFEST(${PROJECT_NAME})
SET_WINDOWS_ENTRYPOINT(${PROJECT_NAME} wmain OFF) SET_WINDOWS_ENTRYPOINT(${PROJECT_NAME} wmain OFF)
# FIXME: librpbase isn't actually needed; only the headers are. TARGET_LINK_LIBRARIES(${PROJECT_NAME} PRIVATE rpsecure cachecommon)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PRIVATE rpsecure rpbase cachecommon)
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> # rp-download PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> # rp-download
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> # rp-download $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> # rp-download