jdk/src/java.base/share/native/launcher/defines.h
author ksrini
Fri, 09 Jun 2017 09:54:59 -0700
changeset 45463 d9325138bac6
parent 41966 bac52fa6e617
permissions -rw-r--r--
8180334: Unable to build jaotc launcher on windows Reviewed-by: erikj, ihse, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
     2
 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef _DEFINES_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define _DEFINES_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "java.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30822
diff changeset
    31
#define STR_HELPER(x) #x
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30822
diff changeset
    32
#define STR(x) STR_HELPER(x)
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30822
diff changeset
    33
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * This file contains commonly defined constants used only by main.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * and should not be included by another file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 */
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30822
diff changeset
    38
#ifndef VERSION_STRING
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
/* make sure the compilation fails */
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30822
diff changeset
    40
#error "VERSION_STRING must be defined"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
33987
24ecd3c83f33 8129601: [launcher] test VersionCheck.java fails with new version string
ksrini
parents: 33984
diff changeset
    43
/* Unused, but retained for JLI_Launch compatibility*/
24ecd3c83f33 8129601: [launcher] test VersionCheck.java fails with new version string
ksrini
parents: 33984
diff changeset
    44
#define DOT_VERSION "0.0"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#ifdef JAVA_ARGS
37540
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    47
#ifdef PROGNAME
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    48
static const char* const_progname = PROGNAME;
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    49
#else
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    50
static char* const_progname = NULL;
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    51
#endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
static const char* const_jargs[] = JAVA_ARGS;
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    53
#ifdef EXTRA_JAVA_ARGS
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    54
static const char* const_extra_jargs[] = EXTRA_JAVA_ARGS;
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    55
#else
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    56
static const char** const_extra_jargs = NULL;
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    57
#endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
#else  /* !JAVA_ARGS */
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    59
#ifdef EXTRA_JAVA_ARGS
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    60
#error "EXTRA_JAVA_ARGS defined without JAVA_ARGS"
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    61
#endif
37540
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 36511
diff changeset
    62
static const char* const_progname = "java";
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
static const char** const_jargs = NULL;
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 41966
diff changeset
    64
static const char** const_extra_jargs = NULL;
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents: 34000
diff changeset
    65
static const char* const_appclasspath[] = { NULL };
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#endif /* JAVA_ARGS */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#ifdef LAUNCHER_NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
static const char* const_launcher = LAUNCHER_NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#else  /* LAUNCHER_NAME */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
static char* const_launcher = NULL;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#endif /* LAUNCHER_NAME */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#ifdef EXPAND_CLASSPATH_WILDCARDS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
static const jboolean const_cpwildcard = JNI_TRUE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
static const jboolean const_cpwildcard = JNI_FALSE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#endif /* EXPAND_CLASSPATH_WILDCARDS */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
32267
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 30822
diff changeset
    80
#ifdef ENABLE_ARG_FILES
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 30822
diff changeset
    81
static const jboolean const_disable_argfile = JNI_FALSE;
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 30822
diff changeset
    82
#else
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 30822
diff changeset
    83
static const jboolean const_disable_argfile = JNI_TRUE;
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 30822
diff changeset
    84
#endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#endif /*_DEFINES_H */