GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wfweb/buildid.pri at master · adecarolis/wfweb

Expand file tree

/

buildid.pri

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
51 lines (44 loc) · 2.14 KB
/

buildid.pri

Copy path

File metadata and controls

51 lines (44 loc) · 2.14 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# The build id: what tells a development build from a release.
# Included by wfweb.pro and launcher/launcher.pro.
#
# wfweb_build.h (WFWEB_BUILD_ID, WFWEB_BUILD_GIT) is generated in the build
# directory and included by src/buildinfo.cpp alone, so a new commit
# recompiles that one file. It is a header and not a -D flag for the reason
# given in include/wfweb_version.h: Make does not rerun a compile because a
# flag changed. The rules are in tools/build-id.sh.
INCLUDEPATH += $$OUT_PWD
SOURCES += $$PWD/src/buildinfo.cpp
HEADERS += $$PWD/include/buildinfo.h
QMAKE_DISTCLEAN += wfweb_build.h
!win32 {
BUILD_ID_SCRIPT = $$shell_quote($$PWD/tools/build-id.sh)
# Now, so that qmake's dependency scan finds the header...
!system($$BUILD_ID_SCRIPT --header $$shell_quote($$OUT_PWD/wfweb_build.h)): \
error("tools/build-id.sh failed")
# ...and again on every make: the script leaves the file alone when the
# id has not changed, so nothing is rebuilt then.
buildid.target = wfweb_build.h
buildid.depends = FORCE
buildid.commands = $$BUILD_ID_SCRIPT --header wfweb_build.h
QMAKE_EXTRA_TARGETS += buildid
}
# No shell under nmake: the same rules in qmake, applied when qmake runs
# (build.bat and CI always run it).
win32 {
BUILD_ID_LINES = $$cat($$PWD/include/wfweb_version.h, lines)
BUILD_ID_LINE = $$find(BUILD_ID_LINES, "define WFWEB_VERSION ")
BUILD_ID_BASE = $$replace(BUILD_ID_LINE, "[^0-9.]", "")
BUILD_ID = $$(WFWEB_BUILD_ID)
BUILD_GIT = $$system(git -C $$shell_quote($$PWD) rev-parse --short HEAD 2>NUL)
isEmpty(BUILD_ID):!isEmpty(BUILD_GIT) {
BUILD_ID_TAGS = $$system(git -C $$shell_quote($$PWD) tag --points-at HEAD 2>NUL)
!contains(BUILD_ID_TAGS, v$$BUILD_ID_BASE): BUILD_ID = dev.$$BUILD_GIT
}
equals(BUILD_ID, release): BUILD_ID =
BUILD_ID_HEADER = \
"// Generated by buildid.pri when qmake runs. Do not edit, do not commit." \
"$${LITERAL_HASH}define WFWEB_BUILD_ID \"$$BUILD_ID\"" \
"$${LITERAL_HASH}define WFWEB_BUILD_GIT \"$$BUILD_GIT\""
!write_file($$OUT_PWD/wfweb_build.h, BUILD_ID_HEADER): \
error("could not write wfweb_build.h")
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.