Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
10b2fe0f
Commit
10b2fe0f
authored
Apr 14, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement packaging.
parent
38d723f7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
11 deletions
+39
-11
.gitignore
.gitignore
+13
-8
CMakeLists.txt
CMakeLists.txt
+23
-0
doc/CMakeLists.txt
doc/CMakeLists.txt
+2
-2
doc/conf.py.in
doc/conf.py.in
+1
-1
No files found.
.gitignore
View file @
10b2fe0f
CMakeCache.txt
CMakeFiles
cmake_install.cmake
Makefile
/CTestTestfile.cmake
/_CPack_Packages
/doc/conf.py
/doc/doxyxml
/format_test
/html
/libformat.a
/doc/html
/Testing
/*.cmake
/format-test
/install_manifest.txt
/tinyformat_speed_test
*~
*.a
*.zip
cmake_install.cmake
CMakeCache.txt
CMakeFiles
Makefile
CMakeLists.txt
View file @
10b2fe0f
...
...
@@ -135,3 +135,26 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/format-benchmark/tinyformat_test.cpp)
WORKING_DIRECTORY tinyformat
DEPENDS format
)
endif
()
if
(
EXISTS .gitignore
)
# Get the list of ignored files from .gitignore.
file
(
STRINGS
".gitignore"
lines
)
LIST
(
REMOVE_ITEM lines /doc/html
)
foreach
(
line
${
lines
}
)
string
(
REPLACE
"*"
".*"
line
"
${
line
}
"
)
set
(
ignored_files
${
ignored_files
}
"
${
line
}
$"
"
${
line
}
/"
)
endforeach
()
set
(
ignored_files
${
ignored_files
}
/.git /breathe /format-benchmark /gtest
)
set
(
CPACK_SOURCE_GENERATOR ZIP
)
set
(
CPACK_SOURCE_IGNORE_FILES
${
ignored_files
}
)
set
(
CPACK_PACKAGE_VERSION_MAJOR 0
)
set
(
CPACK_PACKAGE_VERSION_MINOR 8
)
set
(
CPACK_PACKAGE_VERSION_PATCH 0
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
format-
${
CPACK_PACKAGE_VERSION_MAJOR
}
.
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
-src
)
set
(
CPACK_RESOURCE_FILE_README
${
FORMAT_SOURCE_DIR
}
/README.rst
)
include
(
CPack
)
endif
()
configure_file
(
doc/conf.py.in doc/conf.py @ONLY
)
doc/CMakeLists.txt
View file @
10b2fe0f
add_custom_command
(
OUTPUT html/index.html
COMMAND doxygen
COMMAND rm -rf
../
html
COMMAND sphinx-build -b html .
../
html
COMMAND rm -rf html
COMMAND sphinx-build -b html . html
DEPENDS conf.py index.rst
)
add_custom_target
(
doc DEPENDS html/index.html
)
doc/conf.py
→
doc/conf.py
.in
View file @
10b2fe0f
...
...
@@ -54,7 +54,7 @@ copyright = u'1990-2012, Python Software Foundation'
# built documents.
#
# The short X.Y version.
version
=
'
0.8
'
version = '
@CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@
'
# The full version, including alpha/beta/rc tags.
release = version
...
...
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