diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index d2488d6f2..53394543a 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -150,7 +150,7 @@ SET( Core_SRCS Common/Assimp.cpp ) -IF(MSVC) +IF(MSVC OR (MINGW AND BUILD_SHARED_LIBS)) list(APPEND Core_SRCS "res/assimp.rc") ENDIF() diff --git a/code/res/assimp.rc b/code/res/assimp.rc index 9ae821b4b..c36d812f8 100644 --- a/code/res/assimp.rc +++ b/code/res/assimp.rc @@ -1,80 +1,37 @@ -// Microsoft Visual C++ generated resource script. -// -#include "resource.h" #include "revision.h" +#include "winres.h" -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#define APSTUDIO_HIDDEN_SYMBOLS -#include "windows.h" -#undef APSTUDIO_HIDDEN_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// Deutsch (Deutschland) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) -#ifdef _WIN32 -LANGUAGE LANG_GERMAN, SUBLANG_GERMAN +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL #pragma code_page(1252) -#endif //_WIN32 - - -///////////////////////////////////////////////////////////////////////////// -// -// Version -// VS_VERSION_INFO VERSIONINFO FILEVERSION VER_FILEVERSION PRODUCTVERSION VER_FILEVERSION - FILEFLAGSMASK 0x17L + FILEFLAGSMASK VS_FF_DEBUG #ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L + FILEFLAGS VS_FF_DEBUG #endif - FILEOS 0x4L - FILETYPE 0x7L - FILESUBTYPE 0x0L + FILEOS VOS_NT + FILETYPE VFT_DLL BEGIN BLOCK "StringFileInfo" BEGIN - BLOCK "040704b0" + BLOCK "000004B0" BEGIN VALUE "Comments", "Licensed under a 3-clause BSD license" - VALUE "CompanyName", "assimp team" + VALUE "CompanyName", "ASSIMP Team" VALUE "FileDescription", "Open Asset Import Library" - VALUE "FileVersion", VER_FILEVERSION - VALUE "InternalName", "assimp " - VALUE "LegalCopyright", "Copyright (C) 2006-2020" + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "InternalName", "assimp" + VALUE "LegalCopyright", VER_COPYRIGHT_STR VALUE "OriginalFilename", VER_ORIGINAL_FILENAME_STR VALUE "ProductName", "Open Asset Import Library" VALUE "ProductVersion", VER_FILEVERSION_STR - ,0 END END BLOCK "VarFileInfo" BEGIN - VALUE "Translation", 0x407, 1200 + VALUE "Translation", 0x0, 65001 END END -#endif // Deutsch (Deutschland) resources -///////////////////////////////////////////////////////////////////////////// - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/code/res/resource.h b/code/res/resource.h deleted file mode 100644 index c28c05073..000000000 --- a/code/res/resource.h +++ /dev/null @@ -1,14 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by assimp.rc - -// Next standard values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 101 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1001 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/tools/assimp_cmd/CMakeLists.txt b/tools/assimp_cmd/CMakeLists.txt index 6f4b61387..e66a5694d 100644 --- a/tools/assimp_cmd/CMakeLists.txt +++ b/tools/assimp_cmd/CMakeLists.txt @@ -47,16 +47,19 @@ INCLUDE_DIRECTORIES( LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${Assimp_BINARY_DIR}/lib ) +if(WIN32) + set ( ASSIMP_CMD_RC assimp_cmd.rc) +endif() + ADD_EXECUTABLE( assimp_cmd - assimp_cmd.rc CompareDump.cpp ImageExtractor.cpp Main.cpp Main.h - resource.h WriteDump.cpp Info.cpp Export.cpp + ${ASSIMP_CMD_RC} ) TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp_cmd) diff --git a/tools/assimp_cmd/assimp_cmd.rc b/tools/assimp_cmd/assimp_cmd.rc index e67100698..94572b7e0 100644 --- a/tools/assimp_cmd/assimp_cmd.rc +++ b/tools/assimp_cmd/assimp_cmd.rc @@ -1,51 +1,39 @@ -// Microsoft Visual C++ generated resource script. -// -#include "resource.h" -#include "../../revision.h" +#include "revision.h" +#include "winres.h" -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#define APSTUDIO_HIDDEN_SYMBOLS -#include "windows.h" -#undef APSTUDIO_HIDDEN_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// Deutsch (Deutschland) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) -#ifdef _WIN32 -LANGUAGE LANG_GERMAN, SUBLANG_GERMAN +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) -#endif //_WIN32 -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// +IDI_ASSIMP_CMD ICON "../shared/assimp_tools_icon.ico" -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_ASSIMP_VIEW ICON "../shared/assimp_tools_icon.ico" - - - - - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED +VS_VERSION_INFO VERSIONINFO + FILEVERSION VER_FILEVERSION + PRODUCTVERSION VER_FILEVERSION + FILEFLAGSMASK VS_FF_DEBUG +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG #endif + FILEOS VOS_NT + FILETYPE VFT_APP +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "Comments", "Licensed under a 3-clause BSD license" + VALUE "CompanyName", "ASSIMP Team" + VALUE "FileDescription", "ASSIMP CMD Application" + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "InternalName", "assimp" + VALUE "LegalCopyright", VER_COPYRIGHT_STR + VALUE "OriginalFilename", "assimp.exe" + VALUE "ProductName", "ASSIMP CMD Application" + VALUE "ProductVersion", VER_FILEVERSION_STR + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 65001 + END +END + diff --git a/tools/assimp_cmd/resource.h b/tools/assimp_cmd/resource.h deleted file mode 100644 index caf3a0a69..000000000 --- a/tools/assimp_cmd/resource.h +++ /dev/null @@ -1,21 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by assimp_view.rc -// -#define IDC_MYICON 2 -#define IDD_ASSIMP_VIEW_DIALOG 102 -#define IDD_ABOUTBOX 103 -#define IDI_ASSIMP_VIEW 107 - - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NO_MFC 1 -#define _APS_NEXT_RESOURCE_VALUE 159 -#define _APS_NEXT_COMMAND_VALUE 32831 -#define _APS_NEXT_CONTROL_VALUE 1052 -#define _APS_NEXT_SYMED_VALUE 110 -#endif -#endif