hotspot/make/windows/create_obj_files.sh
author erikj
Tue, 15 Mar 2016 13:55:23 +0100
changeset 37115 f9c20e87f9ec
parent 35164 80ecc1fdfbd6
child 37132 008db2089808
permissions -rw-r--r--
8151653: Hotspot build does not respect --enable-openjdk-only Reviewed-by: tbell, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     1
#
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
     2
# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     4
#
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     7
# published by the Free Software Foundation.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     8
#
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    13
# accompanied this code).
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    14
#
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    18
#
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    21
# questions.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    22
#  
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    23
#
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    24
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    25
set -e
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    26
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    27
# Note that we currently do not have a way to set HotSpotMksHome in
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    28
# the batch build, but so far this has not seemed to be a problem. The
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    29
# reason this environment variable is necessary is that it seems that
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    30
# Windows truncates very long PATHs when executing shells like MKS's
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    31
# sh, and it has been found that sometimes `which sh` fails.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    32
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    33
if [ "x$HotSpotMksHome" != "x" ]; then
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    34
  TOOL_DIR="$HotSpotMksHome"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    35
else
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    36
  # HotSpotMksHome is not set so use the directory that contains "sh".
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    37
  # This works with both MKS and Cygwin.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    38
  SH=`which sh`
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    39
  TOOL_DIR=`dirname "$SH"`
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    40
fi
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    41
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    42
DIRNAME="$TOOL_DIR/dirname"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    43
FIND="$TOOL_DIR/find"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    44
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    45
TYPE=$1
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    46
Platform_arch=$2
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    47
Platform_arch_model=$3
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    48
Platform_os_family=windows
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    49
Platform_os_arch=windows_$Platform_arch
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    50
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    51
WorkSpace=$4
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    52
GENERATED=$5
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    53
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    54
COMMONSRC_REL=src
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    55
ALTSRC_REL=src/closed # Change this to pick up alt sources from somewhere else
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    56
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    57
COMMONSRC=${WorkSpace}/${COMMONSRC_REL}
37115
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 35164
diff changeset
    58
if [ "x$OPENJDK" != "xtrue" ]; then
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 35164
diff changeset
    59
  ALTSRC=${WorkSpace}/${ALTSRC_REL}
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 35164
diff changeset
    60
else
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 35164
diff changeset
    61
  ALTSRC=PATH_THAT_DOES_NOT_EXIST
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 35164
diff changeset
    62
fi
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    63
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    64
BASE_PATHS="`if [ -d ${ALTSRC}/share/vm ]; then $FIND ${ALTSRC}/share/vm ! -name vm -prune -type d \! \( -name adlc -o -name c1 -o -name gc -o -name opto -o -name shark -o -name libadt \); fi`"
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    65
BASE_PATHS="${BASE_PATHS} ` $FIND ${COMMONSRC}/share/vm ! -name vm -prune -type d \! \( -name adlc -o -name c1 -o -name gc -o -name opto -o -name shark -o -name libadt \)`"
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    66
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    67
for sd in \
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    68
    share/vm/gc/shared \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    69
    os/${Platform_os_family}/vm \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    70
    cpu/${Platform_arch}/vm \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    71
    os_cpu/${Platform_os_arch}/vm; do 
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    72
  if [ -d "${ALTSRC}/${sd}" ]; then
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    73
    BASE_PATHS="${BASE_PATHS} ${ALTSRC}/${sd}"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    74
  fi
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    75
  BASE_PATHS="${BASE_PATHS} ${COMMONSRC}/${sd}"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    76
done
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    77
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17013
diff changeset
    78
BASE_PATHS="${BASE_PATHS} ${GENERATED}/jvmtifiles ${GENERATED}/tracefiles"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    79
19270
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
    80
if [ -d "${ALTSRC}/share/vm/jfr/buffers" ]; then
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17013
diff changeset
    81
  BASE_PATHS="${BASE_PATHS} ${ALTSRC}/share/vm/jfr/buffers"
11480
1bf714e8adb4 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 8921
diff changeset
    82
fi
1bf714e8adb4 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 8921
diff changeset
    83
12262
fb3b9fede660 7148488: Whitebox tests for the Diagnostic Framework Parser
nloodin
parents: 11480
diff changeset
    84
BASE_PATHS="${BASE_PATHS} ${COMMONSRC}/share/vm/prims/wbtestmethods"
fb3b9fede660 7148488: Whitebox tests for the Diagnostic Framework Parser
nloodin
parents: 11480
diff changeset
    85
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    86
# shared is already in BASE_PATHS. Should add vm/memory but that one is also in BASE_PATHS.
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    87
if [ -d "${ALTSRC}/share/vm/gc" ]; then
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    88
  BASE_PATHS="${BASE_PATHS} `$FIND ${ALTSRC}/share/vm/gc ! -name gc -prune -type d \! -name shared`"
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    89
fi
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 19270
diff changeset
    90
BASE_PATHS="${BASE_PATHS} `$FIND ${COMMONSRC}/share/vm/gc ! -name gc -prune -type d \! -name shared`"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    91
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    92
if [ -d "${ALTSRC}/share/vm/c1" ]; then
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    93
  COMPILER1_PATHS="${ALTSRC}/share/vm/c1"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    94
fi
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    95
COMPILER1_PATHS="${COMPILER1_PATHS} ${COMMONSRC}/share/vm/c1"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
    96
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    97
if [ -d "${ALTSRC}/share/vm/opto" ]; then
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    98
  COMPILER2_PATHS="${ALTSRC}/share/vm/opto"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
    99
fi
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
   100
COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/opto"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
   101
if [ -d "${ALTSRC}/share/vm/libadt" ]; then
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
   102
  COMPILER2_PATHS="${COMPILER2_PATHS} ${ALTSRC}/share/vm/libadt"
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
   103
fi
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7451
diff changeset
   104
COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/libadt"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   105
COMPILER2_PATHS="${COMPILER2_PATHS} ${GENERATED}/adfiles"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   106
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   107
# Include dirs per type.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   108
case "${TYPE}" in
19270
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   109
    "compiler1") Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS}" ;;
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   110
    "compiler2") Src_Dirs="${BASE_PATHS} ${COMPILER2_PATHS}" ;;
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   111
    "tiered")    Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS} ${COMPILER2_PATHS}" ;;
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   112
    "zero")      Src_Dirs="${BASE_PATHS}" ;;
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   113
    "shark")     Src_Dirs="${BASE_PATHS}" ;;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   114
esac
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   115
17013
22a05c7f3314 8011621: live_ranges_in_separate_class.patch
neliasso
parents: 15432
diff changeset
   116
COMPILER2_SPECIFIC_FILES="opto libadt bcEscapeAnalyzer.cpp c2_* runtime_*"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   117
COMPILER1_SPECIFIC_FILES="c1_*"
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 30764
diff changeset
   118
JVMCI_SPECIFIC_FILES="*jvmci* *JVMCI*"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   119
SHARK_SPECIFIC_FILES="shark"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   120
ZERO_SPECIFIC_FILES="zero"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   121
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   122
# Always exclude these.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   123
Src_Files_EXCLUDE="jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   124
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   125
# Exclude per type.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   126
case "${TYPE}" in
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 30764
diff changeset
   127
    "compiler1") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   128
    "compiler2") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   129
    "tiered")    Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 30764
diff changeset
   130
    "zero")      Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 30764
diff changeset
   131
    "shark")     Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES}" ;;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   132
esac
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   133
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   134
# Special handling of arch model.
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   135
case "${Platform_arch_model}" in
34510
f3f38d88223e 8144521: [JVMCI] JVMCI is built on 32-bit Windows compiler2 and tiered builds
twisti
parents: 33160
diff changeset
   136
	"x86_32") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_64* ${JVMCI_SPECIFIC_FILES}" ;;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   137
	"x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;;
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   138
esac
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   139
7451
cc12e11b1e07 7006659: temporary adlc files are added to the build variables
stefank
parents: 7397
diff changeset
   140
# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   141
function findsrc {
7451
cc12e11b1e07 7006659: temporary adlc files are added to the build variables
stefank
parents: 7397
diff changeset
   142
    $FIND ${1}/. ! -name . -prune \
cc12e11b1e07 7006659: temporary adlc files are added to the build variables
stefank
parents: 7397
diff changeset
   143
		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
cc12e11b1e07 7006659: temporary adlc files are added to the build variables
stefank
parents: 7397
diff changeset
   144
		-a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \
cc12e11b1e07 7006659: temporary adlc files are added to the build variables
stefank
parents: 7397
diff changeset
   145
		| sed 's/.*\/\(.*\)/\1/';
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   146
}
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   147
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   148
Src_Files=
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   149
for e in ${Src_Dirs}; do
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   150
   Src_Files="${Src_Files}`findsrc ${e}` "
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   151
done 
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   152
19270
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   153
Obj_Files=" "
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   154
for e in ${Src_Files}; do
19270
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   155
        o="${e%\.[!.]*}.obj"
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   156
        set +e
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   157
        chk=`expr "${Obj_Files}" : ".* $o"`
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   158
        set -e
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   159
        if [ "$chk" != 0 ]; then
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   160
             echo "# INFO: skipping duplicate $o"
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   161
             continue
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   162
        fi
607d97508c60 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 18025
diff changeset
   163
	Obj_Files="${Obj_Files}$o "
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   164
done
35164
80ecc1fdfbd6 8142909: Integration of minor fixes from the build-infra project
ihse
parents: 34510
diff changeset
   165
Obj_Files=`echo ${Obj_Files} | tr ' ' '\n' | sort`
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   166
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents:
diff changeset
   167
echo Obj_Files=${Obj_Files}