11cb0ef41Sopenharmony_ci// Copyright 2017 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci// found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci#ifndef V8_VERSION_STRING_H_ 61cb0ef41Sopenharmony_ci#define V8_VERSION_STRING_H_ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci#include "v8-version.h" // NOLINT(build/include_directory) 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci// This is here rather than v8-version.h to keep that file simple and 111cb0ef41Sopenharmony_ci// machine-processable. 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci#if V8_IS_CANDIDATE_VERSION 141cb0ef41Sopenharmony_ci#define V8_CANDIDATE_STRING " (candidate)" 151cb0ef41Sopenharmony_ci#else 161cb0ef41Sopenharmony_ci#define V8_CANDIDATE_STRING "" 171cb0ef41Sopenharmony_ci#endif 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci#ifndef V8_EMBEDDER_STRING 201cb0ef41Sopenharmony_ci#define V8_EMBEDDER_STRING "" 211cb0ef41Sopenharmony_ci#endif 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci#define V8_SX(x) #x 241cb0ef41Sopenharmony_ci#define V8_S(x) V8_SX(x) 251cb0ef41Sopenharmony_ci 261cb0ef41Sopenharmony_ci#if V8_PATCH_LEVEL > 0 271cb0ef41Sopenharmony_ci#define V8_VERSION_STRING \ 281cb0ef41Sopenharmony_ci V8_S(V8_MAJOR_VERSION) \ 291cb0ef41Sopenharmony_ci "." V8_S(V8_MINOR_VERSION) "." V8_S(V8_BUILD_NUMBER) "." V8_S( \ 301cb0ef41Sopenharmony_ci V8_PATCH_LEVEL) V8_EMBEDDER_STRING V8_CANDIDATE_STRING 311cb0ef41Sopenharmony_ci#else 321cb0ef41Sopenharmony_ci#define V8_VERSION_STRING \ 331cb0ef41Sopenharmony_ci V8_S(V8_MAJOR_VERSION) \ 341cb0ef41Sopenharmony_ci "." V8_S(V8_MINOR_VERSION) "." V8_S(V8_BUILD_NUMBER) \ 351cb0ef41Sopenharmony_ci V8_EMBEDDER_STRING V8_CANDIDATE_STRING 361cb0ef41Sopenharmony_ci#endif 371cb0ef41Sopenharmony_ci 381cb0ef41Sopenharmony_ci#endif // V8_VERSION_STRING_H_ 39