1 # -----------------------------------------------------------------------------
2 # This file defines the basics of CPack behavior for WebKit
4 # The following CPack variables will be defined if they were unset:
5 # - CPACK_PACKAGE_NAME to WebKit-${PORT}
6 # - CPACK_SOURCE_IGNORE_FILES to a known pattern of good files
8 # The following variables affect the behavior of packaging:
9 # - WEBKIT_CPACK_ALL_PORTS if defined and true, will not limit packaging
10 # to just include files of the port (affects CPACK_SOURCE_IGNORE_FILES,
11 # just if this variable was not defined before).
12 # - WEBKIT_CPACK_ADD_TESTS if defined and true, will also add tests
13 # (affects CPACK_SOURCE_IGNORE_FILES, just if this variable was
15 # - WEBKIT_CPACK_ADD_TOOLS if defined and true, will also add tools
16 # (affects CPACK_SOURCE_IGNORE_FILES, just if this variable was
18 # -----------------------------------------------------------------------------
20 IF(NOT DEFINED CPACK_PACKAGE_NAME)
21 SET(CPACK_PACKAGE_NAME WebKit-${PORT})
24 IF(NOT DEFINED CPACK_SOURCE_IGNORE_FILES)
25 SET(CPACK_SOURCE_IGNORE_FILES
36 "/\\\\.gitattributes$"
38 # SVN-only files should be ignored (site, examples...)
43 # Other build systems:
44 # - Makefiles (.mk/Makefile)
52 "/autom4te\\\\.cache/"
65 # Development & Runtime created files
75 "/Tools/Scripts/webkitpy/thirdparty/autoinstalled/"
78 IF(NOT WEBKIT_CPACK_ADD_TESTS)
79 LIST(APPEND CPACK_SOURCE_IGNORE_FILES
84 ENDIF(NOT WEBKIT_CPACK_ADD_TESTS)
86 IF(NOT WEBKIT_CPACK_ADD_TOOLS)
87 LIST(APPEND CPACK_SOURCE_IGNORE_FILES
93 ENDIF(NOT WEBKIT_CPACK_ADD_TOOLS)
96 IF(NOT WEBKIT_CPACK_ALL_PORTS)
98 # All file and directory patterns that Efl uses
100 "/cairo/" "/Cairo/" "cairo\\\\." "Cairo\\\\."
101 "/efl/" "/Efl/" "efl\\\\." "Efl\\\\."
102 "/glib/" "/Glib/" "glib\\\\." "Glib\\\\."
103 "/gobject/" "/Gobject/" "gobject\\\\." "Gobject\\\\."
104 "/icu/" "/Icu/" "icu\\\\." "Icu\\\\."
105 "/posix/" "/Posix/" "posix\\\\." "Posix\\\\."
106 "/soup/" "/Soup/" "soup\\\\." "Soup\\\\."
109 # File and Directory patterns that no CMake-ified port uses
110 SET(FILE_PATTERNS_UNKNOWN_PORTS
111 "/carbon/" "/Carbon/" "carbon\\\\." "Carbon\\\\."
112 "/cf/" "/Cf/" "cf\\\\." "Cf\\\\."
113 "/cg/" "/Cg/" "cg\\\\." "Cg\\\\."
114 "/chromium/" "/Chromium/" "chromium\\\\." "Chromium\\\\."
115 "/cocoa/" "/Cocoa/" "cocoa\\\\." "Cocoa\\\\."
116 "/Configurations/" "/Configurations/" "Configurations\\\\." "Configurations\\\\."
117 "/curl/" "/Curl/" "curl\\\\." "Curl\\\\."
118 "/gstreamer/" "/Gstreamer/" "gstreamer\\\\." "Gstreamer\\\\."
119 "/gtk/" "/Gtk/" "gtk\\\\." "Gtk\\\\."
120 "/iphone/" "/Iphone/" "iphone\\\\." "Iphone\\\\."
121 "/mac/" "/Mac/" "mac\\\\." "Mac\\\\."
122 "/opentype/" "/Opentype/" "opentype\\\\." "Opentype\\\\."
123 "/openvg/" "/Openvg/" "openvg\\\\." "Openvg\\\\."
124 "/os-win32/" "/Os-Win32/" "os-win32\\\\." "Os-Win32\\\\."
125 "/qscriptengine/" "/Qscriptengine/" "qscriptengine\\\\." "Qscriptengine\\\\."
126 "/qscriptstring/" "/Qscriptstring/" "qscriptstring\\\\." "Qscriptstring\\\\."
127 "/qscriptvalue/" "/Qscriptvalue/" "qscriptvalue\\\\." "Qscriptvalue\\\\."
128 "/qt/" "/Qt/" "qt\\\\." "Qt\\\\."
129 "/qt4/" "/Qt4/" "qt4\\\\." "Qt4\\\\."
130 "/skia/" "/Skia/" "skia\\\\." "Skia\\\\."
131 "/symbian/" "/Symbian/" "symbian\\\\." "Symbian\\\\."
132 "/v8/" "/V8/" "v8\\\\." "V8\\\\."
133 "/V8/" "/V8/" "V8\\\\." "V8\\\\."
134 "/win/" "/Win/" "win\\\\." "Win\\\\."
135 "/wince/" "/Wince/" "wince\\\\." "Wince\\\\."
136 "/wx/" "/Wx/" "wx\\\\." "Wx\\\\."
137 "/wxcode/" "/Wxcode/" "wxcode\\\\." "Wxcode\\\\."
139 "/English\\\\.lproj/"
146 # Append all Unknown port patterns
147 FOREACH(_pattern ${FILE_PATTERNS_UNKNOWN_PORTS})
148 LIST(FIND FILE_PATTERNS_${PORT} ${_pattern} _pattern_index)
149 IF(_pattern_index GREATER -1)
150 MESSAGE("pattern ${_pattern} declared of 'no-port' is actually used by ${PORT}")
152 LIST(APPEND CPACK_SOURCE_IGNORE_FILES ${_pattern})
156 # Append all "other-ports" patterns
157 FOREACH(_port ${ALL_PORTS})
158 IF(NOT ${_port} STREQUAL ${PORT})
159 FOREACH(_pattern ${FILE_PATTERNS_${_port}})
161 LIST(FIND FILE_PATTERNS_${PORT} ${_pattern} _pattern_index)
162 IF(_pattern_index GREATER -1)
163 MESSAGE("pattern ${_pattern} of port ${_port} is also used by ${PORT}")
165 LIST(APPEND CPACK_SOURCE_IGNORE_FILES ${_pattern})
171 ENDIF(NOT WEBKIT_CPACK_ALL_PORTS)
173 ENDIF(NOT DEFINED CPACK_SOURCE_IGNORE_FILES)
175 # -----------------------------------------------------------------------------
176 # Include CPack that will define targets based on the variables defined before
177 # -----------------------------------------------------------------------------