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
678e9e04
Commit
678e9e04
authored
Jul 03, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Move OS-specific compat to their own folders
parent
932d1baf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
CMakeLists.txt
+4
-3
src/common.h
+2
-2
src/unix/map.c
+0
-0
src/win32/mingw-compat.h
+0
-0
src/win32/msvc-compat.h
+0
-0
No files found.
CMakeLists.txt
View file @
678e9e04
...
...
@@ -71,18 +71,19 @@ IF (THREADSAFE)
ADD_DEFINITIONS
(
-DGIT_THREADS
)
ENDIF
()
ADD_DEFINITIONS
(
-D_FILE_OFFSET_BITS=64
)
# Collect sourcefiles
FILE
(
GLOB SRC src/*.c
)
FILE
(
GLOB SRC_H include/git2/*.h
)
# On Windows use specific platform sources
IF
(
WIN32 AND NOT CYGWIN
)
ADD_DEFINITIONS
(
-DWIN32 -D_DEBUG -D_LIB
)
FILE
(
GLOB SRC src/*.c src/win32/*.c
)
ELSE
()
FILE
(
GLOB SRC src/*.c src/unix/*.c
)
ENDIF
()
ADD_DEFINITIONS
(
-D_FILE_OFFSET_BITS=64
)
# Compile and link libgit2
ADD_LIBRARY
(
git2
${
SRC
}
${
SRC_ZLIB
}
)
TARGET_LINK_LIBRARIES
(
git2
${
CMAKE_THREAD_LIBS_INIT
}
)
...
...
src/common.h
View file @
678e9e04
...
...
@@ -23,8 +23,8 @@
# include <io.h>
# include <direct.h>
# include <windows.h>
# include "msvc-compat.h"
# include "mingw-compat.h"
# include "
win32/
msvc-compat.h"
# include "
win32/
mingw-compat.h"
# ifdef GIT_THREADS
# include "win32/pthread.h"
#endif
...
...
src/
map_posix
.c
→
src/
unix/map
.c
View file @
678e9e04
File moved
src/mingw-compat.h
→
src/
win32/
mingw-compat.h
View file @
678e9e04
File moved
src/msvc-compat.h
→
src/
win32/
msvc-compat.h
View file @
678e9e04
File moved
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