FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/cmake/package.cmake at reload · wave2future/node · GitHub
wave2future
node
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
cmake
/
package.cmake
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (33 loc) · 1.81 KB
Breadcrumbs
node
/
cmake
/
package.cmake
Copy path
File metadata and controls
35 lines (33 loc) · 1.81 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
#
package
#
if
(
${node_platform}
MATCHES
darwin)
set
(CPACK_GENERATOR
"TGZ;PackageMaker"
)
#
CPack requires the files to end in .txt
configure_file
(
LICENSE
${
PROJECT_BINARY_DIR
}
/LICENSE.txt
COPYONLY
)
configure_file
(
ChangeLog
${
PROJECT_BINARY_DIR
}
/ChangeLog.txt
COPYONLY
)
set
(CPACK_RESOURCE_FILE_LICENSE
"
${
PROJECT_BINARY_DIR
}
/LICENSE.txt"
)
set
(CPACK_RESOURCE_FILE_README
"
${
PROJECT_BINARY_DIR
}
/ChangeLog.txt"
)
#
set(CPACK_RESOURCE_FILE_WELCOME "")
elseif
(
${node_platform}
MATCHES
linux
)
set
(CPACK_GENERATOR
"TGZ;DEB;RPM"
)
else
()
set
(CPACK_GENERATOR
"TGZ"
)
endif
()
set
(CPACK_DEBIAN_PACKAGE_MAINTAINER
"Tom Hughes <tom.hughes@palm.com>"
)
set
(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Evented I/O for V8 JavaScript."
)
set
(CPACK_PACKAGE_DESCRIPTION
"Evented I/O for V8 JavaScript.
Node's goal is to provide an easy way to build scalable network programs.
Node is similar in design to and influenced by systems like Ruby's Event
Machine or Python's Twisted. Node takes the event model a bit further—it
presents the event loop as a language construct instead of as a library."
)
set
(CPACK_DEBIAN_PACKAGE_DESCRIPTION
"
${CPACK_PACKAGE_DESCRIPTION}
"
)
set
(CPACK_DEBIAN_PACKAGE_SECTION
"web"
)
file
(
READ
${
PROJECT_SOURCE_DIR
}
/src/node_version.h
node_version_h
LIMIT
1024
OFFSET
0
)
string
(
REGEX
REPLACE
".*NODE_MAJOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
CPACK_PACKAGE_VERSION_MAJOR
"
${node_version_h}
"
)
string
(
REGEX
REPLACE
".*NODE_MINOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
CPACK_PACKAGE_VERSION_MINOR
"
${node_version_h}
"
)
string
(
REGEX
REPLACE
".*NODE_PATCH_VERSION[ ]*([0-9]+).*"
"
\\
1"
CPACK_PACKAGE_VERSION_PATCH
"
${node_version_h}
"
)
set
(node_version_string
"
${CPACK_PACKAGE_VERSION_MAJOR}
.
${CPACK_PACKAGE_VERSION_MINOR}
.
${CPACK_PACKAGE_VERSION_PATCH}
"
)
#
Note: this is intentionally at the bottom so that the above CPACK variables
#
are used by CPack.
include
(
CPack
)
Back
|
FazBrowse Home
|
New Git URL