Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/cmake/modules/KDevPlatformMacros.cmake
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 60 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | |||
---|---|---|---|---|---|
61 | --exclude .kdev_ignore --exclude .svn --numeric-owner | 61 | --exclude .kdev_ignore --exclude .svn --numeric-owner | ||
62 | -j -f ${_template} . | 62 | -j -f ${_template} . | ||
63 | DEPENDS ${_deps} | 63 | DEPENDS ${_deps} | ||
64 | ) | 64 | ) | ||
65 | else() | 65 | else() | ||
66 | set(extraArgs "") | 66 | set(extraArgs "") | ||
67 | if(DEFINED ENV{SOURCE_DATE_EPOCH}) | 67 | if(DEFINED ENV{SOURCE_DATE_EPOCH}) | ||
68 | # We assume there is tar > 1.28 if a reproducible build is wanted. | 68 | # We assume there is tar > 1.28 if a reproducible build is wanted. | ||
69 | set(extraArgs --mtime="@$ENV{SOURCE_DATE_EPOCH}" --sort=name) | 69 | set(extraArgs --mtime="@$ENV{SOURCE_DATE_EPOCH}" --sort=name | ||
70 | --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime) | ||||
70 | endif() | 71 | endif() | ||
71 | add_custom_command(OUTPUT ${_template} | 72 | add_custom_command(OUTPUT ${_template} | ||
72 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | 73 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | ||
73 | --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s | 74 | --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s | ||
74 | --owner=0 --group=0 --numeric-owner -j -f ${_template} ${extraArgs} . | 75 | --owner=0 --group=0 --numeric-owner -j -f ${_template} ${extraArgs} . | ||
75 | DEPENDS ${_deps} | 76 | DEPENDS ${_deps} | ||
76 | ) | 77 | ) | ||
77 | endif() | 78 | endif() | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |