mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
Force LF line endings for patch files
This commit is contained in:
parent
63c613f1ed
commit
1c70d26ad1
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.patch text eol=lf
|
@ -1,36 +1,36 @@
|
|||||||
diff --git a/runtime/antlr4cpp-vs2015.vcxproj b/runtime/antlr4cpp-vs2015.vcxproj
|
diff --git a/runtime/antlr4cpp-vs2015.vcxproj b/runtime/antlr4cpp-vs2015.vcxproj
|
||||||
index 85fa3da..540f031 100644
|
index 85fa3da..540f031 100644
|
||||||
--- a/runtime/antlr4cpp-vs2015.vcxproj
|
--- a/runtime/antlr4cpp-vs2015.vcxproj
|
||||||
+++ b/runtime/antlr4cpp-vs2015.vcxproj
|
+++ b/runtime/antlr4cpp-vs2015.vcxproj
|
||||||
@@ -201,6 +201,7 @@
|
@@ -201,6 +201,7 @@
|
||||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -239,6 +240,7 @@
|
@@ -239,6 +240,7 @@
|
||||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -281,6 +283,7 @@
|
@@ -281,6 +283,7 @@
|
||||||
</ForcedIncludeFiles>
|
</ForcedIncludeFiles>
|
||||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -325,6 +328,7 @@
|
@@ -325,6 +328,7 @@
|
||||||
</ForcedIncludeFiles>
|
</ForcedIncludeFiles>
|
||||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
diff --git a/bzlib.h b/bzlib.h
|
diff --git a/bzlib.h b/bzlib.h
|
||||||
index e3ba1d6..d3bed44 100644
|
index e3ba1d6..d3bed44 100644
|
||||||
--- a/bzlib.h
|
--- a/bzlib.h
|
||||||
+++ b/bzlib.h
|
+++ b/bzlib.h
|
||||||
@@ -26,6 +26,8 @@
|
@@ -26,6 +26,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#define BZ_IMPORT
|
+#define BZ_IMPORT
|
||||||
+
|
+
|
||||||
#define BZ_RUN 0
|
#define BZ_RUN 0
|
||||||
#define BZ_FLUSH 1
|
#define BZ_FLUSH 1
|
||||||
#define BZ_FINISH 2
|
#define BZ_FINISH 2
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
diff --git a/bzlib.h b/bzlib.h
|
diff --git a/bzlib.h b/bzlib.h
|
||||||
index 8277123..84fbd0a 100644
|
index 8277123..84fbd0a 100644
|
||||||
--- a/bzlib.h
|
--- a/bzlib.h
|
||||||
+++ b/bzlib.h
|
+++ b/bzlib.h
|
||||||
@@ -65,29 +65,23 @@ typedef
|
@@ -65,29 +65,23 @@ typedef
|
||||||
}
|
}
|
||||||
bz_stream;
|
bz_stream;
|
||||||
|
|
||||||
-
|
-
|
||||||
-#ifndef BZ_IMPORT
|
-#ifndef BZ_IMPORT
|
||||||
-#define BZ_EXPORT
|
-#define BZ_EXPORT
|
||||||
-#endif
|
-#endif
|
||||||
-
|
-
|
||||||
#ifndef BZ_NO_STDIO
|
#ifndef BZ_NO_STDIO
|
||||||
/* Need a definitition for FILE */
|
/* Need a definitition for FILE */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
-# include <windows.h>
|
-# include <windows.h>
|
||||||
# ifdef small
|
# ifdef small
|
||||||
/* windows.h define small to char */
|
/* windows.h define small to char */
|
||||||
# undef small
|
# undef small
|
||||||
# endif
|
# endif
|
||||||
-# ifdef BZ_EXPORT
|
-# ifdef BZ_EXPORT
|
||||||
-# define BZ_API(func) WINAPI func
|
-# define BZ_API(func) WINAPI func
|
||||||
-# define BZ_EXTERN extern
|
-# define BZ_EXTERN extern
|
||||||
+# define BZ_API(func) func
|
+# define BZ_API(func) func
|
||||||
+# if defined(BZ_BUILD_DLL)
|
+# if defined(BZ_BUILD_DLL)
|
||||||
+# define BZ_EXTERN __declspec(dllexport)
|
+# define BZ_EXTERN __declspec(dllexport)
|
||||||
+# elif defined(BZ_IMPORT)
|
+# elif defined(BZ_IMPORT)
|
||||||
+# define BZ_EXTERN __declspec(dllimport)
|
+# define BZ_EXTERN __declspec(dllimport)
|
||||||
# else
|
# else
|
||||||
- /* import windows dll dynamically */
|
- /* import windows dll dynamically */
|
||||||
-# define BZ_API(func) (WINAPI * func)
|
-# define BZ_API(func) (WINAPI * func)
|
||||||
-# define BZ_EXTERN
|
-# define BZ_EXTERN
|
||||||
+# define BZ_EXTERN
|
+# define BZ_EXTERN
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define BZ_API(func) func
|
# define BZ_API(func) func
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
diff --git a/lzma.h b/lzma.h
|
diff --git a/lzma.h b/lzma.h
|
||||||
index ce675a7..ac0fc98 100644
|
index ce675a7..ac0fc98 100644
|
||||||
--- a/lzma.h
|
--- a/lzma.h
|
||||||
+++ b/lzma.h
|
+++ b/lzma.h
|
||||||
@@ -187,6 +187,9 @@
|
@@ -187,6 +187,9 @@
|
||||||
* need to worry about LZMA_API_STATIC. Also the calling convention is
|
* need to worry about LZMA_API_STATIC. Also the calling convention is
|
||||||
* omitted on Cygwin but not on MinGW.
|
* omitted on Cygwin but not on MinGW.
|
||||||
*/
|
*/
|
||||||
+
|
+
|
||||||
+#define LZMA_API_STATIC
|
+#define LZMA_API_STATIC
|
||||||
+
|
+
|
||||||
#ifndef LZMA_API_IMPORT
|
#ifndef LZMA_API_IMPORT
|
||||||
# if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__)
|
# if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__)
|
||||||
# define LZMA_API_IMPORT __declspec(dllimport)
|
# define LZMA_API_IMPORT __declspec(dllimport)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
diff --git a/libmodplug/modplug.h b/libmodplug/modplug.h
|
diff --git a/libmodplug/modplug.h b/libmodplug/modplug.h
|
||||||
index 3ffbf9d..fd19ae5 100644
|
index 3ffbf9d..fd19ae5 100644
|
||||||
--- a/libmodplug/modplug.h
|
--- a/libmodplug/modplug.h
|
||||||
+++ b/libmodplug/modplug.h
|
+++ b/libmodplug/modplug.h
|
||||||
@@ -11,6 +11,8 @@
|
@@ -11,6 +11,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#define MODPLUG_STATIC
|
+#define MODPLUG_STATIC
|
||||||
+
|
+
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
# if defined(MODPLUG_BUILD) && defined(DLL_EXPORT) /* building libmodplug as a dll for windows */
|
# if defined(MODPLUG_BUILD) && defined(DLL_EXPORT) /* building libmodplug as a dll for windows */
|
||||||
# define MODPLUG_EXPORT __declspec(dllexport)
|
# define MODPLUG_EXPORT __declspec(dllexport)
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
diff --git a/lz4.h b/lz4.h
|
diff --git a/lz4.h b/lz4.h
|
||||||
index 7420ad8..c1c3e56 100644
|
index 7420ad8..c1c3e56 100644
|
||||||
--- a/lz4.h
|
--- a/lz4.h
|
||||||
+++ b/lz4.h
|
+++ b/lz4.h
|
||||||
@@ -73,6 +73,9 @@ extern "C" {
|
@@ -73,6 +73,9 @@ extern "C" {
|
||||||
* LZ4_DLL_EXPORT :
|
* LZ4_DLL_EXPORT :
|
||||||
* Enable exporting of functions when building a Windows DLL
|
* Enable exporting of functions when building a Windows DLL
|
||||||
*/
|
*/
|
||||||
+
|
+
|
||||||
+#define LZ4_DLL_IMPORT 1
|
+#define LZ4_DLL_IMPORT 1
|
||||||
+
|
+
|
||||||
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
||||||
# define LZ4LIB_API __declspec(dllexport)
|
# define LZ4LIB_API __declspec(dllexport)
|
||||||
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
||||||
diff --git a/lz4frame.h b/lz4frame.h
|
diff --git a/lz4frame.h b/lz4frame.h
|
||||||
index 3104d2e..4442461 100644
|
index 3104d2e..4442461 100644
|
||||||
--- a/lz4frame.h
|
--- a/lz4frame.h
|
||||||
+++ b/lz4frame.h
|
+++ b/lz4frame.h
|
||||||
@@ -55,6 +55,9 @@ extern "C" {
|
@@ -55,6 +55,9 @@ extern "C" {
|
||||||
* LZ4_DLL_EXPORT :
|
* LZ4_DLL_EXPORT :
|
||||||
* Enable exporting of functions when building a Windows DLL
|
* Enable exporting of functions when building a Windows DLL
|
||||||
*/
|
*/
|
||||||
+
|
+
|
||||||
+#define LZ4_DLL_IMPORT 1
|
+#define LZ4_DLL_IMPORT 1
|
||||||
+
|
+
|
||||||
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
||||||
# define LZ4FLIB_API __declspec(dllexport)
|
# define LZ4FLIB_API __declspec(dllexport)
|
||||||
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
||||||
|
@ -1,51 +1,51 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index 5c9c9c9..ae35185 100644
|
index 5c9c9c9..ae35185 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -149,26 +149,20 @@ endif ()
|
@@ -149,26 +149,20 @@ endif ()
|
||||||
# Find PNG
|
# Find PNG
|
||||||
if(NANA_CMAKE_ENABLE_PNG)
|
if(NANA_CMAKE_ENABLE_PNG)
|
||||||
add_definitions(-DNANA_ENABLE_PNG)
|
add_definitions(-DNANA_ENABLE_PNG)
|
||||||
- set(NANA_LINKS "${NANA_LINKS} -lpng")
|
- set(NANA_LINKS "${NANA_LINKS} -lpng")
|
||||||
if(NANA_CMAKE_LIBPNG_FROM_OS)
|
if(NANA_CMAKE_LIBPNG_FROM_OS)
|
||||||
- find_package(PNG)
|
- find_package(PNG)
|
||||||
- if (PNG_FOUND)
|
- if (PNG_FOUND)
|
||||||
- include_directories( ${PNG_INCLUDE_DIRS})
|
- include_directories( ${PNG_INCLUDE_DIRS})
|
||||||
- add_definitions(-DUSE_LIBPNG_FROM_OS)
|
- add_definitions(-DUSE_LIBPNG_FROM_OS)
|
||||||
- endif(PNG_FOUND)
|
- endif(PNG_FOUND)
|
||||||
+ find_package(PNG REQUIRED)
|
+ find_package(PNG REQUIRED)
|
||||||
+ include_directories(${PNG_INCLUDE_DIRS})
|
+ include_directories(${PNG_INCLUDE_DIRS})
|
||||||
+ add_definitions(-DUSE_LIBPNG_FROM_OS)
|
+ add_definitions(-DUSE_LIBPNG_FROM_OS)
|
||||||
endif(NANA_CMAKE_LIBPNG_FROM_OS)
|
endif(NANA_CMAKE_LIBPNG_FROM_OS)
|
||||||
endif(NANA_CMAKE_ENABLE_PNG)
|
endif(NANA_CMAKE_ENABLE_PNG)
|
||||||
|
|
||||||
# Find JPEG
|
# Find JPEG
|
||||||
if(NANA_CMAKE_ENABLE_JPEG)
|
if(NANA_CMAKE_ENABLE_JPEG)
|
||||||
add_definitions(-DNANA_ENABLE_JPEG)
|
add_definitions(-DNANA_ENABLE_JPEG)
|
||||||
- set(NANA_LINKS "${NANA_LINKS} -ljpeg")
|
- set(NANA_LINKS "${NANA_LINKS} -ljpeg")
|
||||||
if(NANA_CMAKE_LIBJPEG_FROM_OS)
|
if(NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||||
- find_package(JPEG)
|
- find_package(JPEG)
|
||||||
- if (JPEG_FOUND)
|
- if (JPEG_FOUND)
|
||||||
- include_directories( ${JPEG_INCLUDE_DIRS})
|
- include_directories( ${JPEG_INCLUDE_DIRS})
|
||||||
- add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
- add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
||||||
- endif(JPEG_FOUND)
|
- endif(JPEG_FOUND)
|
||||||
+ find_package(JPEG REQUIRED)
|
+ find_package(JPEG REQUIRED)
|
||||||
+ include_directories(${JPEG_INCLUDE_DIRS})
|
+ include_directories(${JPEG_INCLUDE_DIRS})
|
||||||
+ add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
+ add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
||||||
endif(NANA_CMAKE_LIBJPEG_FROM_OS)
|
endif(NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||||
endif(NANA_CMAKE_ENABLE_JPEG)
|
endif(NANA_CMAKE_ENABLE_JPEG)
|
||||||
|
|
||||||
@@ -253,7 +247,12 @@ endforeach(subdir ${NANA_SOURCE_SUBDIRS})
|
@@ -253,7 +247,12 @@ endforeach(subdir ${NANA_SOURCE_SUBDIRS})
|
||||||
|
|
||||||
include_directories(${NANA_INCLUDE_DIR})
|
include_directories(${NANA_INCLUDE_DIR})
|
||||||
add_library(${PROJECT_NAME} ${sources} )
|
add_library(${PROJECT_NAME} ${sources} )
|
||||||
-target_link_libraries(${PROJECT_NAME} ${NANA_LINKS})
|
-target_link_libraries(${PROJECT_NAME} ${NANA_LINKS})
|
||||||
+if(NANA_CMAKE_ENABLE_JPEG AND NANA_CMAKE_LIBJPEG_FROM_OS)
|
+if(NANA_CMAKE_ENABLE_JPEG AND NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||||
+ target_link_libraries(${PROJECT_NAME} ${JPEG_LIBRARIES})
|
+ target_link_libraries(${PROJECT_NAME} ${JPEG_LIBRARIES})
|
||||||
+endif()
|
+endif()
|
||||||
+if(NANA_CMAKE_ENABLE_PNG AND NANA_CMAKE_LIBPNG_FROM_OS)
|
+if(NANA_CMAKE_ENABLE_PNG AND NANA_CMAKE_LIBPNG_FROM_OS)
|
||||||
+ target_link_libraries(${PROJECT_NAME} ${PNG_LIBRARIES})
|
+ target_link_libraries(${PROJECT_NAME} ${PNG_LIBRARIES})
|
||||||
+endif()
|
+endif()
|
||||||
|
|
||||||
# Headers: use INCLUDE_DIRECTORIES
|
# Headers: use INCLUDE_DIRECTORIES
|
||||||
# Libraries: use FIND_LIBRARY and link with the result of it (try to avoid LINK_DIRECTORIES)
|
# Libraries: use FIND_LIBRARY and link with the result of it (try to avoid LINK_DIRECTORIES)
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
diff --git a/smpeg.h b/smpeg.h
|
diff --git a/smpeg.h b/smpeg.h
|
||||||
index 6bc2dbd..d12c8f8 100644
|
index 6bc2dbd..d12c8f8 100644
|
||||||
--- a/smpeg.h
|
--- a/smpeg.h
|
||||||
+++ b/smpeg.h
|
+++ b/smpeg.h
|
||||||
@@ -22,9 +22,9 @@
|
@@ -22,9 +22,9 @@
|
||||||
#ifndef _SMPEG_H_
|
#ifndef _SMPEG_H_
|
||||||
#define _SMPEG_H_
|
#define _SMPEG_H_
|
||||||
|
|
||||||
-#include "SDL.h"
|
-#include "SDL.h"
|
||||||
-#include "SDL_mutex.h"
|
-#include "SDL_mutex.h"
|
||||||
-#include "SDL_audio.h"
|
-#include "SDL_audio.h"
|
||||||
+#include "SDL2/SDL.h"
|
+#include "SDL2/SDL.h"
|
||||||
+#include "SDL2/SDL_mutex.h"
|
+#include "SDL2/SDL_mutex.h"
|
||||||
+#include "SDL2/SDL_audio.h"
|
+#include "SDL2/SDL_audio.h"
|
||||||
#include "MPEGframe.h"
|
#include "MPEGframe.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user