Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Aegisub
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Déploiement
Releases
Registre de paquets
Registre de conteneurs
Registre de modèles
Opération
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Ce projet est archivé. Le dépôt et les autres ressources du projet sont en lecture seule.
Afficher davantage de fils d'Ariane
Kubat
Aegisub
Validations
fd00ba50
Valider
fd00ba50
rédigé
27 oct. 2020
par
Myaamori
Validation de
Ryan Lucia
8 nov. 2020
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
meson: create git_version.h in build directory in version.sh
parent
0c5c4db1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
meson.build
+1
-1
1 ajout, 1 suppression
meson.build
tools/version.sh
+4
-3
4 ajouts, 3 suppressions
tools/version.sh
avec
5 ajouts
et
4 suppressions
meson.build
+
1
−
1
Voir le fichier @
fd00ba50
...
@@ -13,7 +13,7 @@ else
...
@@ -13,7 +13,7 @@ else
endif
endif
version_inc
=
include_directories
(
'.'
)
version_inc
=
include_directories
(
'.'
)
version_h
=
custom_target
(
'git_version.h'
,
version_h
=
custom_target
(
'git_version.h'
,
command
:
[
version_sh
,
meson
.
current_build_dir
()],
command
:
[
version_sh
,
meson
.
current_build_dir
()
,
meson
.
current_source_dir
()
],
build_by_default
:
true
,
build_by_default
:
true
,
build_always_stale
:
true
,
# has internal check whether target file will be refreshed
build_always_stale
:
true
,
# has internal check whether target file will be refreshed
output
:
[
'git_version.h'
,
'git_version.xml'
])
output
:
[
'git_version.h'
,
'git_version.xml'
])
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
tools/version.sh
+
4
−
3
Voir le fichier @
fd00ba50
srcdir
=
"
$1
"
builddir
=
"
$1
"
srcdir
=
"
$2
"
# If no git repo try to read from the existing git_version.h, for building from tarballs
# If no git repo try to read from the existing git_version.h, for building from tarballs
version_h_path
=
"
${
src
dir
}
/git_version.h"
version_h_path
=
"
${
build
dir
}
/git_version.h"
if
!
test
-d
"
${
srcdir
}
/.git"
;
then
if
!
test
-d
"
${
srcdir
}
/.git"
;
then
if
test
-f
"
${
version_h_path
}
"
;
then
if
test
-f
"
${
version_h_path
}
"
;
then
while
read
line
;
do
while
read
line
;
do
...
@@ -65,7 +66,7 @@ export BUILD_GIT_VERSION_NUMBER="${git_revision}"
...
@@ -65,7 +66,7 @@ export BUILD_GIT_VERSION_NUMBER="${git_revision}"
export
BUILD_GIT_VERSION_STRING
=
"
${
git_version_str
}
"
export
BUILD_GIT_VERSION_STRING
=
"
${
git_version_str
}
"
export
VERSION_SOURCE
=
"from git"
export
VERSION_SOURCE
=
"from git"
cat
<<
EOF
> "
${
src
dir
}
/git_version.xml"
cat
<<
EOF
> "
${
build
dir
}
/git_version.xml"
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PropertyGroup>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter