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
9c941ccf
Commit
9c941ccf
authored
May 23, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1599 from nulltoken/topic/windows_resources
Update windows resources to match the dll name
parents
c4085fbf
095bfd74
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
CMakeLists.txt
+11
-0
src/win32/git2.rc.cmake
+1
-5
No files found.
CMakeLists.txt
View file @
9c941ccf
...
...
@@ -321,8 +321,19 @@ IF (SONAME)
SET_TARGET_PROPERTIES
(
git2 PROPERTIES OUTPUT_NAME
"git2-
${
SONAME_APPEND
}
"
)
ENDIF
()
ENDIF
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/libgit2.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/libgit2.pc @ONLY
)
IF
(
NOT BUILD_SHARED_LIBS
)
SET
(
LIBGIT2_NAME_PREFIX
"lib"
)
ENDIF
()
IF
(
SONAME_APPEND
)
SET
(
LIBGIT2_NAME_SUFFIX
"-
${
SONAME_APPEND
}
"
)
ENDIF
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/win32/git2.rc.cmake
${
WIN_RC
}
@ONLY
)
IF
(
MSVC_IDE
)
# Precompiled headers
SET_TARGET_PROPERTIES
(
git2 PROPERTIES COMPILE_FLAGS
"/Yuprecompiled.h /FIprecompiled.h"
)
...
...
src/win32/git2.rc
→
src/win32/git2.rc
.cmake
View file @
9c941ccf
#include <winver.h>
#include "../../include/git2/version.h"
#ifndef INCLUDE_LIB
#define LIBGIT2_FILENAME "git2.dll"
#else
#define LIBGIT2_FILENAME "libgit2.dll"
#endif
#define LIBGIT2_FILENAME "@LIBGIT2_NAME_PREFIX@git2@LIBGIT2_NAME_SUFFIX@.dll"
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
FILEVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,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