Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
60536163
Unverified
Commit
60536163
authored
Jul 09, 2020
by
Edward Thomson
Committed by
GitHub
Jul 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5561 from A-Ovchinnikov-mx/a-ovchin/windres-rc
Enable building git2.rc resource script with GCC
parents
8720ae8a
dc1deb3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
src/CMakeLists.txt
+1
-3
src/win32/git2.rc
+18
-3
No files found.
src/CMakeLists.txt
View file @
60536163
...
@@ -278,9 +278,7 @@ list(SORT SRC_H)
...
@@ -278,9 +278,7 @@ list(SORT SRC_H)
# On Windows use specific platform sources
# On Windows use specific platform sources
if
(
WIN32 AND NOT CYGWIN
)
if
(
WIN32 AND NOT CYGWIN
)
if
(
MSVC
)
SET
(
WIN_RC
"win32/git2.rc"
)
SET
(
WIN_RC
"win32/git2.rc"
)
endif
()
file
(
GLOB SRC_OS win32/*.c win32/*.h
)
file
(
GLOB SRC_OS win32/*.c win32/*.h
)
list
(
SORT SRC_OS
)
list
(
SORT SRC_OS
)
...
...
src/win32/git2.rc
View file @
60536163
...
@@ -2,14 +2,29 @@
...
@@ -2,14 +2,29 @@
#include "../../include/git2/version.h"
#include "../../include/git2/version.h"
#ifndef LIBGIT2_FILENAME
#ifndef LIBGIT2_FILENAME
# define LIBGIT2_FILENAME "git2"
# ifdef __GNUC__
# define LIBGIT2_FILENAME git2
# else
# define LIBGIT2_FILENAME "git2"
# endif
#endif
#endif
#ifndef LIBGIT2_COMMENTS
#ifndef LIBGIT2_COMMENTS
# define LIBGIT2_COMMENTS "For more information visit http://libgit2.github.com/"
# define LIBGIT2_COMMENTS "For more information visit http://libgit2.github.com/"
#endif
#endif
#ifdef __GNUC__
# define _STR(x) #x
# define STR(x) _STR(x)
#else
# define STR(x) x
#endif
#ifdef __GNUC__
VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif
FILEVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
FILEVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
PRODUCTVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
PRODUCTVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
...
@@ -29,9 +44,9 @@ BEGIN
...
@@ -29,9 +44,9 @@ BEGIN
BEGIN
BEGIN
VALUE "FileDescription", "libgit2 - the Git linkable library\0"
VALUE "FileDescription", "libgit2 - the Git linkable library\0"
VALUE "FileVersion", LIBGIT2_VERSION "\0"
VALUE "FileVersion", LIBGIT2_VERSION "\0"
VALUE "InternalName",
LIBGIT2_FILENAME
".dll\0"
VALUE "InternalName",
STR(LIBGIT2_FILENAME)
".dll\0"
VALUE "LegalCopyright", "Copyright (C) the libgit2 contributors. All rights reserved.\0"
VALUE "LegalCopyright", "Copyright (C) the libgit2 contributors. All rights reserved.\0"
VALUE "OriginalFilename",
LIBGIT2_FILENAME
".dll\0"
VALUE "OriginalFilename",
STR(LIBGIT2_FILENAME)
".dll\0"
VALUE "ProductName", "libgit2\0"
VALUE "ProductName", "libgit2\0"
VALUE "ProductVersion", LIBGIT2_VERSION "\0"
VALUE "ProductVersion", LIBGIT2_VERSION "\0"
VALUE "Comments", LIBGIT2_COMMENTS "\0"
VALUE "Comments", LIBGIT2_COMMENTS "\0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment